Nonlinear Markov Random Fields Learned via Backpropagation

Mikael Brudfors, Yaël Balbastre, John Ashburner · DOI

Introduction

In medical image analysis, particularly brain MRI segmentation, researchers often face a trade-off between the high accuracy of modern deep learning models and the robust generalization of classical generative models. While architectures like U-Nets excel on data similar to their training sets, they frequently struggle when applied to images from different scanners or imaging protocols. Conversely, generative models—such as those used in SPM software—are robust because they incorporate physical and biological priors, but they often rely on simplistic assumptions about spatial tissue distribution.

This paper introduces a hybrid approach that bridges this gap by replacing standard linear Markov Random Field (MRF) priors with a nonlinear recurrent Convolutional Neural Network (CNN). By "marrying" these two paradigms, the authors create a model that captures complex spatial tissue patterns while remaining scanner-agnostic.

Methodology: The Nonlinear MRF

The core contribution of this work is the reformulation of the Prior distribution within a Bayesian framework. Instead of modeling tissue arrangement (Grey Matter, White Matter, etc.) with simple linear filters, the authors propose a "Nonlinear MRF" architecture.

The Nonlinear MRF architecture mimics mean-field inference through a recurrent CNN structure, utilizing MRF layers, ReLU nonlinearities, and softmax activations.

Key components of this architecture include:

  1. MRF Layers as Convolutions: The mathematical steps for mean-field inference are functionally identical to CNN operations. The authors use convolutions where the center weight is constrained to zero, ensuring a pixel's label is predicted solely by its neighbors.
  2. Nonlinearities and Recurrence: ReLU activation functions are integrated to capture complex spatial patterns. The network is recurrent, feeding its output back into itself to iteratively refine the segmentation.
  3. End-to-End Learning: Unlike traditional MRFs that require hand-tuned parameters, this model learns its spatial weights directly from labeled data using backpropagation and the Adam optimizer.

Experimental Setup and Generalization

To evaluate both accuracy and robustness, the study utilized two distinct datasets:

  • MICCAI2012: T1-weighted scans of 30 subjects used for 10-fold cross-validation.
  • MRBrainS18: Multi-sequence scans of 7 subjects used as an "unseen" dataset to test generalization across different centers and imaging protocols.
Comparison of scans from the MICCAI2012 and MRBrainS18 datasets, illustrating the significant differences in contrast and intensity that typically hinder model generalization.

By learning the tissue prior rather than a direct mapping of raw image intensities, the model focuses on the spatial arrangement of brain tissues, which remains relatively consistent even when scanner characteristics vary wildly.

Key Results

The proposed Nonlinear MRF significantly outperformed the baseline SPM12 segmentation on the MICCAI2012 dataset:

  • Grey Matter (GM): Dice score improved from 0.867 (SPM12) to 0.909.
  • White Matter (WM): Dice score improved from 0.921 (SPM12) to 0.931.

Crucially, when the model trained on MICCAI2012 was applied to the MRBrainS18 dataset, it maintained a significant performance boost over the baseline. This demonstrates that the learned spatial priors are effectively transferable across different imaging environments.

Discussion and Future Work

While the nonlinear model provided the highest accuracy on the training population, the authors noted signs of slight overfitting on unseen data, where a simpler linear version of the MRF sometimes showed greater robustness. Additionally, the current model faced challenges with pathological cases, such as subjects with major white matter lesions.

Future research will focus on integrating this MRF-CNN hybrid more deeply into generative frameworks to better handle abnormal anatomy and utilizing data augmentation to further improve the robustness of the learned spatial priors.

Summary updated

BibTeX
@inproceedings{brudfors2019nonlinear,
  author = {Mikael Brudfors and Yaël Balbastre and John Ashburner},
  title = {{Nonlinear Markov Random Fields Learned via Backpropagation}},
  booktitle = {IPMI},
  year = {2019},
  doi = {10.1007/978-3-030-20351-1\_63},
}
Figure