Maximum Entropy on Erroneous Predictions: Improving Model Calibration for Medical Image Segmentation

Agostina J. Larrazabal, César Martínez, Jose Dolz, Enzo Ferrante

TL;DR

This paper introduces Maximum Entropy on Erroneous Predictions (MEEP), a novel training strategy for medical image segmentation models. MEEP selectively penalizes overconfident predictions on misclassified pixels, leading to improved model calibration and, surprisingly, better segmentation quality.

What Problem Does This Paper Address?

Deep learning models have revolutionized medical image segmentation, but a significant issue is their tendency to be "overconfident." This means they often assign high probability to their predictions, even when those predictions are incorrect. This lack of calibration is problematic in healthcare, where reliable estimates of uncertainty are crucial for clinical decision-making. While some methods exist to improve calibration, they often require complex architectures or post-processing steps. This paper aims to address this by proposing a simple, integrated training strategy that directly tackles overconfidence in a targeted manner.

Methods

The core of the proposed method, MEEP, is a new regularization term added to the standard segmentation loss function. Instead of penalizing low entropy (high confidence) across all predictions, MEEP focuses only on pixels that the model misclassifies during training. The intuition is that if a pixel is difficult to classify, the model should be less certain and assign more uniform probabilities across classes, rather than being confidently wrong.

Two specific regularization terms are introduced:

  1. Standard Entropy Maximization ($L_H(\hat{y}_w)$): This term directly maximizes the entropy of the output probability distribution for the misclassified pixels.
  2. Proxy for Entropy Maximization ($L_{KL}(\hat{y}_w)$): This term uses a variant of the Kullback-Leibler (KL) divergence to encourage the predicted probabilities for misclassified pixels to be close to a uniform distribution.

These terms are added to the main segmentation loss (e.g., Dice or Cross-Entropy) with a weighting hyperparameter ($\lambda$). The method is designed to be architecture-agnostic and does not increase model complexity.

Datasets

The paper evaluates the proposed method on two challenging medical image segmentation tasks:

  • Left Atrial (LA) cavity segmentation: Using the Atrial Segmentation Challenge dataset, which consists of 100 3D gadolinium-enhanced MR imaging scans.
  • White Matter Hyperintensities (WMH) segmentation: Using a dataset of 60 MR images with binary WMH masks, including T1-weighted and FLAIR sequences.

Key Insights and Ideas

  • Targeted Calibration: The key insight is that focusing regularization efforts only on misclassified pixels is more effective for calibration than applying it globally. This prevents "dampening" the confidence in correctly classified regions.
  • Calibration Improves Segmentation: Counter-intuitively, improving model calibration through MEEP also leads to improvements in segmentation quality (e.g., lower Dice loss, lower Hausdorff Distance). This suggests that better uncertainty estimation can indirectly guide the model towards more accurate predictions.
  • Architecture Agnostic: The method's effectiveness across different loss functions (Dice, Cross-Entropy) and its demonstrated performance with both UNet and ResUNet architectures highlight its flexibility and broad applicability.
  • Simplicity is Key: MEEP offers a straightforward way to enhance calibration without requiring complex post-hoc methods or significant architectural changes.

Key Results

  • Improved Calibration: MEEP consistently improved calibration metrics (Brier score, Stratified Brier score, Expected Calibration Error) across both datasets and segmentation losses. For example, in LA segmentation, the $L_{dice} + L_{KL}(\hat{y}_w)$ model showed a significant reduction in ECE compared to the baseline.
  • Enhanced Segmentation Quality: The proposed methods often outperformed baseline models in segmentation metrics like Dice Similarity Coefficient (DSC) and Hausdorff Distance (HD). For instance, $L_{dice} + L_{KL}(\hat{y}_w)$ in WMH segmentation achieved a more than 3% improvement in HD over the baseline.
  • Qualitative Improvements: Visualizations show that MEEP models produce smoother probability maps, assigning probabilities closer to 0.5 in uncertain or challenging regions, unlike baseline models that tend to output probabilities of 0 or 1 even for incorrect predictions.

Limitations and Future Work

  • Domain Shift: The authors acknowledge that the effect of MEEP under severe domain shift (e.g., testing on images from different organs) is not yet assessed. It's unclear if the model would still output uncertain posteriors or revert to overconfident wrong predictions.
  • Hyperparameter Tuning: While the paper suggests optimal hyperparameters were found through grid search, the sensitivity of these parameters to different datasets or tasks might warrant further investigation.
  • Future Directions: The paper implicitly suggests exploring the impact of MEEP on other medical imaging tasks and potentially investigating its interaction with other advanced segmentation techniques.

Summary updated

BibTeX
@inproceedings{larrazabal2023maximum,
  author = {Agostina J. Larrazabal and César Martínez and Jose Dolz and Enzo Ferrante},
  title = {{Maximum Entropy on Erroneous Predictions: Improving Model Calibration for Medical Image Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  url = {https://openreview.net/forum?id=llZqERO7nJ},
}
Figure