Anatomically-aware conformal prediction for medical image segmentation with random walks
Mélanie Gaillochet, Christian Desrosiers, Hervé Lombaert
TL;DR
This work tackles the challenge of uncertainty quantification in medical image segmentation by combining Conformal Prediction with a spatial diffusion mechanism. RW-CP diffuses probability maps through a kNN graph built from foundation-model embeddings, producing anatomically coherent prediction sets that preserve marginal coverage via conformal risk control. The approach improves segmentation quality (higher DSC, lower ASSD/HD95) across ultrasound, MRI, and CT datasets while maintaining statistically valid guarantees. The method offers a model-agnostic enhancement to existing segmentation pipelines, bridging rigorous uncertainty quantification with clinically meaningful anatomically plausible predictions.
Abstract
The reliable deployment of deep learning in medical imaging requires uncertainty quantification that provides rigorous error guarantees while remaining anatomically meaningful. Conformal prediction (CP) is a powerful distribution-free framework for constructing statistically valid prediction intervals. However, standard applications in segmentation often ignore anatomical context, resulting in fragmented, spatially incoherent, and over-segmented prediction sets that limit clinical utility. To bridge this gap, this paper proposes Random-Walk Conformal Prediction (RW-CP), a model-agnostic framework which can be added on top of any segmentation method. RW-CP enforces spatial coherence to generate anatomically valid sets. Our method constructs a k-nearest neighbour graph from pre-trained vision foundation model features and applies a random walk to diffuse uncertainty. The random walk diffusion regularizes the non-conformity scores, making the prediction sets less sensitive to the conformal calibration parameter $λ$, ensuring more stable and continuous anatomical boundaries. RW-CP maintains rigorous marginal coverage while significantly improving segmentation quality. Evaluations on multi-modal public datasets show improvements of up to $35.4\%$ compared to standard CP baselines, given an allowable error rate of $α=0.1$.
