Instance-level quantitative saliency in multiple sclerosis lesion segmentation

Federico Spagnolo, Nataliia Molchanova, Meritxell Bach Cuadra, Mario Ocampo Pineda, Lester Melie-Garcia, Cristina Granziera, Vincent Andrearczyk, Adrien DepeursingearXiv 2024

TL;DR

This paper introduces two architecture-agnostic explainable AI (XAI) methods that extend SmoothGrad and Grad-CAM++ to provide quantitative, instance-level saliency maps for semantic segmentation. Applied to multiple sclerosis lesion segmentation, these maps successfully validate model decisions against clinical practice and demonstrate that quantitative feature distributions can be used to flag segmentation errors.

What Problem Does This Paper Address?

Deep learning models excel at semantic segmentation tasks, such as identifying white matter lesions (WMLs) in Multiple Sclerosis (MS) patients. However, these models operate as "black boxes," making it difficult for clinicians to trust or verify their decisions.

While explainable AI (XAI) techniques like Grad-CAM and SmoothGrad exist, they were originally designed for classification tasks where the output is a single scalar per class, rather than a dense tensor of voxel-wise scores as seen in semantic segmentation.

Figure 2. Input-output dimensions for a classification (top) and a semantic segmentation (bottom) task.

When standard XAI methods are adapted straightforwardly to semantic segmentation, they aggregate predictions across an entire image class. In multi-lesional diseases like MS, this results in a single, confusing heatmap that merges all lesions together, failing to explain why a specific lesion instance was detected or contoured. Furthermore, standard pixel attribution methods lack quantitative consistency, meaning their absolute values cannot be reliably compared across different images or objects.

Methods

The authors propose instance-level adaptations of two complementary XAI approaches:

  1. Instance-Level SmoothGrad (SG): Instead of averaging gradients across all class predictions, gradients are computed only for the voxels within the domain ($\Omega$) of a specific lesion instance. Crucially, to make saliency maps comparable across lesions of varying sizes, the authors replace standard averaging with a voxel-wise maximum with sign aggregation method.
Figure 4. Overview of the proposed adaptation of SG to segmentation.
  1. Instance-Level Grad-CAM++: The authors modify the weight calculation by isolating the gradients to the specific lesion domain ($\Omega$) and removing the global spatial summation over the entire image domain. This prevents activations from neighboring or distant lesions from bleeding into the instance map.

These methods are architecture-agnostic and were evaluated using three distinct deep learning networks: a 3D U-Net, nnU-Net, and Swin UNETR.

Datasets

The study utilized a substantial clinical dataset from the University Hospital of Basel, Switzerland, consisting of:

  • 4,023 FLAIR and MPRAGE MRI scans
  • 687 MS patients

Ground-truth white matter lesion masks were semi-automatically annotated and corrected by four expert clinicians, each with over 5 years of experience.

Key Insights and Ideas

  • Alignment with Clinical Intuition: The instance saliency maps revealed that the models rely much more heavily on FLAIR sequences than MPRAGE to segment WMLs. Saliency was positive inside the lesion for FLAIR (hyperintensity drives detection) and negative for MPRAGE (hypointensity drives detection), perfectly mirroring how human radiologists evaluate these scans.
  • The Importance of Context: Through synthetic lesion experiments and morphological dilation, the authors discovered that models don't just look at the lesion itself; they require a minimum of 7mm (and up to 12–15mm for a score plateau) of surrounding healthy white matter tissue to correctly detect a lesion. This insight can directly inform optimal patch-size selection during model training.
  • Error Detection via Quantitative Saliency: Because the proposed SmoothGrad adaptation yields truly quantitative values, the authors found that peak saliency distributions differ significantly between True Positives (TP), False Positives (FP), False Negatives (FN), and True Negatives (TN). This means absolute saliency values could potentially be used as a diagnostic tool to flag and prune model errors.

Key Results

  • Segmentation Performance: The underlying segmentation models achieved strong baseline performance on the test set, with normalized Dice scores of 0.71 (3D U-Net), 0.78 (nnU-Net), and 0.80 (Swin UNETR).
  • Quantitative Separation: The median peak positive saliency values showed clear statistical separation between prediction categories: 1.997 for TPs, 1.630 for FPs, 1.202 for FNs, and 0.465 for TNs (with $p < 0.001$ across all pairs via Mann-Whitney U tests).
  • Qualitative Clarity: The instance-level maps successfully isolated individual lesions, preventing the "bleeding" effect common in class-level XAI methods when multiple lesions are in close proximity.

Limitations and Future Work

  • Data Preprocessing: The MRI data was not skull-stripped, which led to a higher rate of false positives located in the cerebral sulci and gyri where non-cerebral hyperintensities mimic lesions.
  • Computational Overhead: Computing instance-level saliency maps for transformer-based architectures like Swin UNETR is computationally expensive compared to standard CNNs.
  • Future Directions: The authors suggest integrating uncertainty maps to automatically generate explanation maps for false negatives (where a lesion domain isn't predefined by model output) and exploring localized error pruning across different anatomical brain regions.

Summary updated

BibTeX
@misc{spagnolo2024instance,
  author = {Federico Spagnolo and Nataliia Molchanova and Meritxell Bach Cuadra and Mario Ocampo Pineda and Lester Melie-Garcia and Cristina Granziera and Vincent Andrearczyk and Adrien Depeursinge},
  title = {{Instance-level quantitative saliency in multiple sclerosis lesion segmentation}},
  year = {2024},
  eprint = {2406.09335},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09335},
}
Figure