From Registration Uncertainty to Segmentation Uncertainty

When a registration network is used to propagate labels, which uncertainty tells you where the labels are wrong? This page registers a cardiac MRI slice from end-diastole to end-systole many times with Monte Carlo dropout, builds the four uncertainty maps compared in our ISBI 2024 paper, and scores each against the actual label error, live, as the samples come in. Paint noise or a blur onto either image to see the aleatoric uncertainty respond.

Loading…
Patient
Direction

Monte Carlo dropout

Each sample is one forward pass with a different dropout mask (p = 0.15). The maps and scores update after every sample.

Corrupt the images

Paint on the moving or the fixed image; the samples rerun when you let go.

Moving
Fixed
Propagated labels
Label error: where the propagated labels are wrong

right ventricle   myocardium   left ventricle. Maps below share one colour scale (black = low, white = high), each stretched between its own 1st and 99.5th percentiles.

Four uncertainty maps

Transformation · registration
variance of the displacement magnitude across samples
Appearance · registration
mean squared intensity difference after warping
Epistemic · segmentation
entropy of the propagated labels across samples
Aleatoric · segmentation
variance predicted by the uncertainty head from the appearance error

Which uncertainty points at the errors?

Pearson correlation between each map and the label error |true one-hot − propagated probability|, computed per structure over all pixels of this slice and averaged over the three structures, exactly as in the paper’s evaluation.

What you are looking at

Uncertainty for deep registration has usually meant transformation uncertainty (how much the deformation varies when the network is sampled, here with Monte Carlo dropout) or appearance uncertainty (how badly the warped image matches the fixed one). Both describe the registration. But when the deformation is used to carry labels from one image to another, what matters is whether the labels end up wrong, and a region can deform consistently, or match well in intensity, while its labels are still misplaced.

Our ISBI 2024 paper adds two segmentation uncertainties. Epistemic: the entropy of the propagated labels across the dropout samples. Aleatoric: a small network reads the appearance error and the decoder features and predicts a per-structure variance, trained with a β-weighted Gaussian negative log-likelihood of the propagated labels. The paper found that these track label errors much more closely than the two registration uncertainties.

This page’s model

A 2D TransMorph with Monte Carlo dropout and the paper’s uncertainty head, trained for this page on short-axis ED ↔ ES slice pairs from ACDC and M&Ms with the released loss (local NCC + diffusion + Dice + β-NLL). On 2,628 held-out test pairs (25 samples each) the correlations with the label error were: epistemic 0.51, aleatoric 0.37, combined 0.55, transformation 0.19, appearance 0.10, the same ordering as in the paper. Expect individual slices to vary.

Differences from the released 3D model: 2D, smaller, a single displacement head instead of the 7-step time-varying field, and dropout masks drawn from a hashed seed so the stochastic network runs in ONNX Runtime Web (7.5 MB, on your device). Images: ACDC test patients (Bernard et al., IEEE TMI 2018), CC BY-NC-SA 4.0; the slices shown here are shared under the same licence.

Continue the story All demos

This demo is step 5 of 6: How far can you trust the result?

Previous · step 4, Regularize Spatially varying regularization for image registration How smooth should the deformation be? Next · step 6, Measure Learning fuzzy clustering for SPECT/CT segmentation From alignment to measurement
  1. 1Represent
  2. 2Compare
  3. 3Learn
  4. 4Regularize
  5. 5Trust
  6. 6Measure