Explaining Uncertainty in Multiple Sclerosis Cortical Lesion Segmentation Beyond Prediction Errors

Nataliia Molchanova, Pedro M. Gordaliza, Alessandro Cagol, Mario Ocampo--Pineda, Po--Jui Lu, Matthias Weigel, Xinjie Chen, Erin S. Beck, Haris Tsagkas, Daniel Reich, Anna Stölting, Pietro Maggi, Delphine Ribes, Adrien Depeursinge, Cristina Granziera, Henning Müller, Meritxell Bach CuadraarXiv 2025

TL;DR

This paper introduces an explainability framework that uncovers why deep learning models become uncertain when segmenting cortical lesions in multiple sclerosis (MS). By shifting the focus from simple error tracking to human-interpretable features, the authors demonstrate that AI uncertainty is heavily driven by clinical factors like lesion size, shape, and gray matter involvement—closely mirroring the exact sources of doubt faced by human medical experts.

What Problem Does This Paper Address?

Automated deep learning models are increasingly used to segment focal brain lesions from MRI scans to help diagnose and monitor Multiple Sclerosis. However, segmenting cortical lesions (CLs) is notoriously difficult because they are tiny, have poor contrast, and easily blend into surrounding tissues.

While Uncertainty Quantification (UQ) methods can flag when a model is unsure about a prediction, these uncertainty metrics are typically treated as a black box. Standard evaluations only check if high uncertainty correlates with segmentation errors. They fail to explain the underlying medical or geometric reasons why the model is struggling. This lack of interpretability hinders clinical adoption, as radiologists cannot tell if a model's hesitation stems from poor image quality, an unusual lesion shape, or a fundamental software failure.

Methods

The authors built an interpretability framework layered on top of a standard medical image segmentation pipeline to dissect instance-level uncertainty.

[Input MRI] ➔ [Deep Ensemble (5x nnU-Nets)] ➔ [Predicted Lesions + LSU Uncertainty]
                                                        │
                                                        ▼
[Elastic-Net Explainer] ◄── [156 Engineered Features (Radiomics/Atlases)]
  1. Base Segmentation & UQ: The core architecture uses nnU-Net, a state-of-the-art framework for medical image segmentation, trained on 3D MP2RAGE MRI scans. To quantify uncertainty, they deployed a Deep Ensemble of five independently trained nnU-Net models.
  2. Instance-Scale Metric: Instead of looking at voxel-level noise, they calculated Lesion Structural Uncertainty (LSU). LSU measures the structural disagreement (Intersection over Union) among the five ensemble members for each individual predicted lesion, bounding the uncertainty score between 0 (certain) and 1 (highly uncertain).
  3. Feature Engineering: For every predicted lesion, they extracted 156 human-interpretable features using PyRadiomics and anatomical brain atlases. These features captured prediction quality, location (gray matter overlap), intensity statistics, texture, 3D shape geometry, and novelty (distance from the training set).
  4. The Explainer Model: They trained an Elastic-Net linear regression model to predict the LSU score using these 156 features. This allowed them to use the regression coefficients as a direct measure of feature importance.
  5. Expert Validation: Finally, they collected structured questionnaire feedback from five MS clinical experts to compare the model's uncertainty drivers with human radiological challenges.
Overview of the proposed framework for explaining instance-wise AI uncertainty using feature engineering and expert feedback.

Datasets

The study evaluated a total of 206 patients and nearly 2,000 cortical lesions across two distinct clinical centers:

  • In-Domain Dataset: Acquired from University Hospital Basel (163 patients, 1,227 lesions), split into Train (109 patients), Validation (13 patients), and Test-in (41 patients) cohorts.
  • Out-of-Domain Dataset (Distribution Shift): Acquired from Lausanne University Hospital (Test-out: 43 patients, 758 lesions). This dataset featured different MRI scanner models, acquisition protocols, and center-specific annotation styles, serving as a rigorous test for domain robustness.

Key Insights and Ideas

  • Uncertainty is More Than Just Error: A key "aha!" moment was discovering that model uncertainty is not just a mirror of segmentation mistakes. Incorporating clinical and geometric features more than doubled the explained variance ($R^2$) of the uncertainty scores compared to using prediction quality alone.
  • The Dominance of Geometry: Across all datasets, the surface-to-volume ratio emerged as the single most critical predictor of uncertainty. High surface-to-volume ratios—which signify smaller, highly irregular, or elongated lesions—strongly drive up model uncertainty.
  • Human-AI Alignment: The statistical drivers behind the AI's uncertainty beautifully aligned with human intuition. The factors that made the model hesitate (small size, subpial location, low contrast with surrounding gray matter) were identical to the challenges reported by the five expert raters as their primary sources of clinical doubt.
  • Domain Shifts Alter Uncertainty Behavior: Under a strong distribution shift (Test-out), the relationship between uncertainty and actual prediction error degrades significantly. Furthermore, the explainer model revealed that under domain shift, intensity-based features become more dominant than shape features, likely due to variations in scanner contrasts.

Key Results

  • Segmentation Performance Drop: The nnU-Net ensemble performed reliably in-domain (Test-in Dice Similarity Score = 0.617) but struggled under domain shift (Test-out Dice Score = 0.318).
  • Uncertainty-Error Correlation: In-domain, the correlation between LSU uncertainty and prediction error was solid (Spearman's $\rho = 0.545$). Out-of-domain, this relationship weakened significantly ($\rho = 0.353$).
  • Explainer Model Fit: The Elastic-Net model successfully captured a large portion of uncertainty variance in-domain (Cross-validation $R^2 = 0.571$ on Train, $0.465$ on Test-in). However, its explanatory power dropped to $0.309$ on the out-of-domain Test-out set, highlighting that domain shifts make uncertainty inherently less interpretable.

Limitations and Future Work

  • Unexplained Variance: A notable portion of predictive uncertainty (roughly 43% to 70% depending on the dataset) remains unexplained by the engineered features. This suggests that non-linear relationships or internal algorithmic approximation errors are still unaccounted for.
  • Correlational, Not Causal: The current framework identifies strong associations between lesion features and uncertainty but cannot definitively prove causal links.
  • Downstream Clinical Impact: The study is currently correlational regarding image features. The authors note that future work must bridge these uncertainty-associated lesion factors with actual clinical endpoints, such as long-term patient disability scores (EDSS).

Summary updated

BibTeX
@misc{molchanova2025explaining,
  author = {Nataliia Molchanova and Pedro M. Gordaliza and Alessandro Cagol and Mario Ocampo--Pineda and Po--Jui Lu and Matthias Weigel and Xinjie Chen and Erin S. Beck and Haris Tsagkas and Daniel Reich and Anna Stölting and Pietro Maggi and Delphine Ribes and Adrien Depeursinge and Cristina Granziera and Henning Müller and Meritxell Bach Cuadra},
  title = {{Explaining Uncertainty in Multiple Sclerosis Cortical Lesion Segmentation Beyond Prediction Errors}},
  year = {2025},
  eprint = {2504.04814},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.04814},
}
Figure