Bayesian Pseudo Labels: Expectation Maximization for Robust and Efficient Semi-Supervised Segmentation

Mou-Cheng Xu, Yukun Zhou, Chen Jin, Marius de Groot, Daniel C. Alexander, Neil P. Oxtoby, Yipeng Hu, Joseph Jacob

TL;DR

This paper mathematically reframes semi-supervised pseudo-labelling as an Expectation-Maximization (EM) algorithm, introducing a simple yet highly efficient segmentation method called SegPL. By extending this framework with variational inference (SegPL-VI), the model dynamically learns its own thresholding parameters and delivers gold-standard uncertainty estimation—all while drastically reducing computational overhead compared to complex state-of-the-art methods.

What Problem Does This Paper Address?

Deep learning has revolutionized medical image segmentation, but it faces a massive bottleneck: data scarcity. Generating pixel-wise annotations for complex structures like brain tumors or lung vessels requires rare and expensive expert clinical knowledge.

To leverage abundant unlabelled data, the current state-of-the-art relies on consistency regularization. These methods force networks to output similar predictions when inputs or features are perturbed. However, they come with a catch: they are notoriously complex, requiring intricately designed multi-decoder architectures, ensembles, or heavy data augmentations that don't easily transfer across different imaging modalities.

The authors ask a fundamental question: Can we ditch this complexity and build a highly competitive semi-supervised segmentation model using nothing but basic pseudo-labelling?

Methods

The authors introduce SegPL, which grounds traditional pseudo-labelling within the rigorous statistical framework of the Expectation-Maximization (EM) algorithm.

In this formulation, the unlabelled data's pseudo-labels are treated as latent variables:

  • E-step (Expectation): The model uses its current parameters to estimate the posterior probability of the unlabelled data, generating pseudo-labels via a threshold (conventionally fixed at $T = 0.5$).
  • M-step (Maximization): The model updates its parameters by optimizing a combined Dice loss function across both the manually labelled and pseudo-labelled batches.
Overview of the SegPL framework and its EM formulation

Taking it a step further, they introduce SegPL-VI. Instead of forcing a hard, fixed threshold ($T=0.5$) which can introduce noisy labels early in training, they treat $T$ as a continuous latent variable drawn from a Normal distribution. Using Variational Inference (VI), the model dynamically learns the optimal threshold for pseudo-labelling as training progresses.

Datasets

The approach was validated on two distinct medical imaging tasks to prove its versatility:

  1. BRATS 2018: A 2D multi-class MRI dataset for brain tumor segmentation (high-grade and low-grade gliomas). Models were evaluated under strict low-data regimes using only 50, 150, or 300 labelled slices.
  2. CARVE 2014: A 3D binary CT dataset focused on the anatomy of pulmonary arteries and veins. This represents a highly challenging task due to severe class imbalance (vessels occupy less than 8% of the image volume). It was tested using 2, 5, 10, and 20 labelled volumes.

Key Insights and Ideas

  • Simplicity Outperforms Complexity: SegPL proves that a single-model architecture without heavy data augmentation can match or beat complex, multi-model consistency regularization baselines.
  • Inherent Robustness: Because pseudo-labelling naturally filters out low-confidence predictions, SegPL demonstrates superior generalization against out-of-distribution (OOD) scan noise and adversarial attacks (like the Fast Gradient Sign Method) compared to consistency-based models.
  • Principled Uncertainty Quantification: By turning the threshold into a stochastic variable, SegPL-VI can perform uncertainty estimation during inference using Monte Carlo sampling, matching the performance of computationally expensive Deep Ensembles.

Key Results

SegPL consistently outperformed top-tier semi-supervised methods like Cross Pseudo Supervision (CPS) and Cross Consistency Training (CCT), particularly when labelled data was extremely scarce.

  • Performance Boost: On the 3D CARVE dataset with only 2 labelled volumes, SegPL achieved an Intersection over Union (IoU) of 69.44% (and SegPL-VI reached 70.65%), significantly outperforming CPS (66.67%) and the supervised-only baseline (56.79%).
  • Efficiency Gains: SegPL required only 1,601 seconds to train compared to CPS (2,730s) and CCT (4,129s). It also cut the number of model parameters in half relative to CPS, making it highly practical for resource-constrained environments.
Qualitative segmentation results on BRATS and CARVE datasets
  • Uncertainty Accuracy: For uncertainty estimation, SegPL-VI achieved a Brier score of 0.97 using just 5 Monte Carlo samples, perfectly matching the gold-standard Deep Ensemble method without needing to train multiple separate networks.
Fig. 3. Row1: BRATS with 300 labelled slices. Red: whole tumour. Green: tumour core. Blue: enhancing tumour core. Row2: CARVE with 5 labelled volumes. Red: false positive. Green: true positive. Blue: false negative. Yellow: ground truth.

Limitations and Future Work

While SegPL-VI shines on the multi-class MRI dataset, the authors noted that its variational inference mechanism is sensitive to dataset characteristics and choice of priors; it did not show an automatic performance leap on the 3D CARVE dataset without careful hyperparameter tuning.

Moving forward, the authors suggest exploring alternative prior distributions (such as Beta or Categorical distributions) to better model the threshold variable, automating hyperparameter searches, and applying the framework to other medical imaging domains like image registration and classification.

Summary updated

BibTeX
@inproceedings{xu2022bayesian,
  author = {Mou-Cheng Xu and Yukun Zhou and Chen Jin and Marius de Groot and Daniel C. Alexander and Neil P. Oxtoby and Yipeng Hu and Joseph Jacob},
  title = {{Bayesian Pseudo Labels: Expectation Maximization for Robust and Efficient Semi-Supervised Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  doi = {10.1007/978-3-031-16443-9\_56},
}
Figure