Skip to main content
Back

UCL's HierEM Teaches AI to Ignore Biased Hospital Labels on MRI Scans

A hierarchical expectation-maximisation framework treats each hospital's prostate lesion annotations as noisy observations, improving segmentation on unseen sites.

Pro

  • HierEM models each site's lesion contour as a noisy observation of an unobserved clean mask via hierarchical EM.
  • Hierarchical priors decompose label quality into global, site-specific, and case-level components to prevent style overfitting.
  • On leave-one-site-out evaluation across three cohorts, mean Dice improved to 27.91-32.67% with p < 0.039.
  • Estimated site sensitivity ranged 31.5-47.3% at 0.99 specificity, offering interpretable annotation quality diagnostics.
  • Method is backbone-agnostic and uses a UNet with nnUNet preprocessing; risk-coverage curves show well-calibrated uncertainty.
  • Code released at github.com/yanwenCi/HierEM for reuse on other multi-site medical segmentation tasks.

Prostate lesion segmentation on MRI has a dirty secret: the ground truth labels are barely ground truth at all. Different hospitals contour lesions differently, and a model trained on one site's annotations tends to learn that site's drawing style rather than the actual lesion. A new paper from University College London proposes HierEM, a hierarchical expectation-maximisation framework that models this label noise explicitly and improves cross-site generalisation on three real-world cohorts.

Why prostate segmentation labels are unreliable

The scale of the problem is worse than most people assume. Inter-reader agreement for prostate lesion contours on mpMRI is only moderate, with reported Dice often around 0.4. That means two expert radiologists looking at the same scan overlap only about 40% of the time on where the lesion actually is.

The downstream consequence is brutal for deployment. Segmentation networks easily overfit to the local contouring style of the training sites. When deployed to a new institution, the model generalises poorly, as single-site training achieves only 4%-28% Dice on a held-out site. Standard fixes like fine-tuning on the target site just teach the model to match another set of imperfect, biased labels.

Treating annotations as noisy observations

The authors frame each observed contour as a corrupted version of an unobserved 'clean' lesion mask. Every voxel annotation is characterised by two numbers per site: a sensitivity α (probability of labelling a true lesion voxel as lesion) and a specificity β (probability of correctly leaving a non-lesion voxel unlabelled).

The key trick is the hierarchical prior. Logistic-normal hierarchical priors on the sensitivity and specificity parameters are decomposed into three components: global population factors capturing lesion characteristics shared across sites; site-specific effects modelling systematic offsets due to local contouring and imaging protocols; and case-level variability capturing intrinsic ambiguity, such as small or low-contrast lesions. This 'partial pooling' penalises site-specific deviations, so the model can't just memorise each hospital's style.

HierEM framework showing E-step and M-step iterations with hierarchical Bayesian structure

How the EM loop actually runs

Training alternates between two steps until convergence:

  • E-step: Combine the network's current voxel probability map with the annotation likelihood (using current site sensitivity/specificity) to produce a soft posterior q_k(x) over the latent clean mask.
  • M-step (A): Update the UNet by minimising cross-entropy plus Dice loss against q_k(x) as a soft target rather than the raw annotation.
  • M-step (B): Re-estimate the sensitivity/specificity parameters via MAP optimisation, aggregating expected true positives and true negatives per case, using L-BFGS on the low-dimensional hierarchical variables.

In practice, they perform 5-epoch gradient steps for the network per EM iteration, and 5 optimiser steps for the hierarchical parameters using aggregated sufficient statistics. An auxiliary supervised loss on the raw labels is decayed to zero over the first five epochs to stabilise early training.

What the numbers show

Experiments span three cohorts: 1,201 UCLH scans, 391 from a public PROMIS-derived dataset, and 1,265 from a Miami multi-institution collection. Two evaluation splits were used: pooled held-out (train on data from all sites) and leave-one-site-out (LOSO, generalisation to unseen sites).

Under the harder LOSO setting, HierEM improved Dice on all three sites compared to a supervised UNet, label bootstrapping, and a non-hierarchical site-EM baseline. Mean Dice went from roughly 25/25/31% for the supervised baseline to 28/28/33% for HierEM, with statistically significant improvements over comparison methods (p < 0.039). HD95 boundary errors also dropped on the unseen sites.

Risk-coverage curves and per-site sensitivity comparison across methods

An interesting side effect: the estimated site-level parameters are interpretable. Sensitivity α ranges from 31.5% to 47.3% at specificity β approximately 0.99, which quantifies how conservative or aggressive each hospital's contouring style tends to be. That's a useful diagnostic in its own right for auditing multi-site datasets.

Where it helps and where it doesn't

HierEM shines when you have multi-site data and need to deploy to an unseen institution without fine-tuning. It's backbone-agnostic (the paper uses a UNet with nnUNet preprocessing) so it should slot into existing pipelines. The risk-coverage curves also show its uncertainty estimates are well-calibrated enough to support selective segmentation, where the model abstains on ambiguous voxels.

The limitations are honest. Absolute Dice scores are still modest (under 40%), reflecting the fundamental difficulty of prostate lesion contouring rather than a shortcoming of the method. Under the pooled evaluation, the improvements shrink because baselines already benefit from multi-site diversity. The method also assumes one annotation per case, which is realistic for clinical data but doesn't leverage multi-rater information when available.

Code is released at github.com/yanwenCi/HierEM, making this straightforward to try on other multi-site segmentation problems where annotation style varies by institution, which is essentially every medical imaging task worth solving.