MID: Mask-Image Distributional Divergence for Evaluating Medical Image Segmentation
Organizations: EURECOM · Sorbonne Université · King’s College London · Technische Universität Graz
Abstract
Current evaluation protocols for medical image segmentation remain largely anchored in sample-wise comparisons, e.g., Dice and Hausdorff distance, which require each prediction to be paired with a ground-truth mask. Yet two limitations arise in practice: they are inapplicable when predictions are made on unlabeled data; and even when annotations are available, they cannot assess whether a collection of predictions matches the distributional structure of the ground-truth population. We introduce MID (Mask-Image Distributional Divergence), a distribution-level evaluation metric for medical image segmentation. MID builds upon the observation that segmentation quality is a property of the joint image-mask distribution: a mask may be anatomically plausible in isolation yet incorrect for the image it accompanies. MID compares the joint distribution of images and masks between a reference set and a set of predictions, without requiring sample-wise correspondence. This captures both mask realism and image-mask consistency. We evaluate MID across 13 publicly available datasets spanning CT, MRI, and MRA. Under anatomically realistic corruptions across 56 organ groups, MID tracks mean Dice and Hausdorff distance without per-sample ground-truth pairing. MID also detects distributional shifts across modalities and anatomies, identifies image-mask misalignment through controlled shuffling experiments, and produces reliable model rankings across real segmentation models. Official implementation available at github.com/erc-caravel/pytorch-mid
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Modality | Structures | |
|---|---|---|---|
| AbdomenCT-1K ∙ [ 28 ] | CT | ||
| ACDC [ 4 ] | MRI | ||
| AMOS CT ∙ [ 20 ] | CT | ||
| AMOS MRI ∙ | MRI | ||
| IXI MRA (VesselVerse [ 6 , 12 ] ) | MRA | ||
| Task03 Liver (Decathlon [ 1 ] ) | CT |
| Category | Metric | Encoding | vs. Dice | vs. HD95 | ||
|---|---|---|---|---|---|---|
| CI | CI | |||||
| Ours | MedSigLIP | |||||
| Baselines | FID-mask, 3-D | MedSigLIP | ||||
| FID-img, 3-D | MedSigLIP | |||||
| KID | MedSigLIP | |||||
| FID-Inception, 2-D | Inception-v3 | |||||
| Organ | Candidate | Universal | Organ-PCA |
|---|---|---|---|
| Liver | TotalSeg CT held-out (in-distribution) | 0.050 | 0.049 |
| Task03 liver, class 1 (healthy, cross-dataset) | 0.154 | 0.152 | |
| Task03 liver tumour, class 2 (pathological) | 0.165 | 0.162 | |
| Pancreas | TotalSeg CT held-out (in-distribution) | 0.038 | 0.037 |
| Task07 pancreas, class 1 (healthy, cross-dataset) | 0.238 | 0.236 | |
| Task07 pancreas tumour, class 2 (pathological) | 0.216 | 0.214 |
| Statistic | Candidate set size | ||||||
|---|---|---|---|---|---|---|---|
| 10 | 25 | 50 | 100 | 250 | 500 | 1000 | |
| Mean | 1.85 | 0.92 | 0.58 | 0.42 | 0.34 | 0.31 | 0.30 |
| CV | 32% | 20% | 14% | 10% | 6.3% | 4.5% | 3.2% |
Medical Image Segmentation
Medical image segmentation delineates organs, lesions, and other structures in scans to support measurement, diagnosis, treatment planning, and research.
See all 796 papers