Skip to main content
QUICK REVIEW

[Paper Review] Improving Calibration and Out-of-Distribution Detection in Medical Image Segmentation with Convolutional Neural Networks

Davood Karimi, Ali Gholipour|arXiv (Cornell University)|Apr 12, 2020
Radiomics and Machine Learning in Medical ImagingMedicine5 citations
TL;DR

This paper proposes multi-task learning with heterogeneous medical imaging data to improve calibration and out-of-distribution (OOD) detection in CNN-based segmentation. By training a single model on diverse organs and modalities, it achieves better-calibrated predictions and introduces a spectral analysis method on CNN feature maps that outperforms uncertainty-based OOD detection, achieving 100% accuracy in key experiments.

ABSTRACT

Convolutional Neural Networks (CNNs) have shown to be powerful medical image segmentation models. In this study, we address some of the main unresolved issues regarding these models. Specifically, training of these models on small medical image datasets is still challenging, with many studies promoting techniques such as transfer learning. Moreover, these models are infamous for producing over-confident predictions and for failing silently when presented with out-of-distribution (OOD) data at test time. In this paper, we advocate for multi-task learning, i.e., training a single model on several different datasets, spanning several different organs of interest and different imaging modalities. We show that not only a single CNN learns to automatically recognize the context and accurately segment the organ of interest in each context, but also that such a joint model often has more accurate and better-calibrated predictions than dedicated models trained separately on each dataset. Our experiments show that multi-task learning can outperform transfer learning in medical image segmentation tasks. For detecting OOD data, we propose a method based on spectral analysis of CNN feature maps. We show that different datasets, representing different imaging modalities and/or different organs of interest, have distinct spectral signatures, which can be used to identify whether or not a test image is similar to the images used to train a model. We show that this approach is far more accurate than OOD detection based on prediction uncertainty. The methods proposed in this paper contribute significantly to improving the accuracy and reliability of CNN-based medical image segmentation models.

Motivation & Objective

  • Address the challenge of poor calibration and unreliable predictions in CNN-based medical image segmentation models trained on small datasets.
  • Improve model reliability by detecting out-of-distribution (OOD) data at test time, where models often fail silently.
  • Explore whether joint training on heterogeneous datasets (different organs, modalities) can enhance generalization and calibration compared to dedicated models.
  • Develop a novel, more accurate method for OOD detection in medical image segmentation than existing uncertainty-based approaches.

Proposed method

  • Train a single CNN model on a mixture of heterogeneous medical image datasets spanning multiple organs and imaging modalities, without additional inputs for modality or organ.
  • Use spectral analysis of feature maps from the final convolutional layer to compute an OOD score (OODM), based on the power spectrum of activations.
  • Define a threshold τ on the OODM to classify test images as in-distribution or OOD, using in-distribution data for calibration.
  • Compare the proposed OODM method against prediction uncertainty-based detection using metrics like AUC, accuracy, sensitivity, and specificity.
  • Train models jointly on multiple datasets (e.g., liver in MRI, cortical plate in fetal MRI) to evaluate generalization and calibration performance.
  • Use Dice Similarity Coefficient (DSC) and calibration metrics (e.g., ECE) to evaluate segmentation accuracy and confidence calibration.

Experimental results

Research questions

  • RQ1Can a single CNN model trained on heterogeneous medical imaging data (different organs, modalities) achieve segmentation performance comparable to or better than dedicated models trained on individual datasets?
  • RQ2Does multi-task learning on heterogeneous data lead to better-calibrated predictions compared to training on individual datasets?
  • RQ3Can spectral analysis of CNN feature maps effectively detect out-of-distribution (OOD) images in medical image segmentation?
  • RQ4How does the proposed OOD detection method based on spectral analysis compare in accuracy to uncertainty-based OOD detection methods?
  • RQ5Can the model generalize across diverse data distributions (e.g., different age groups, imaging protocols) without explicit modality or organ information?

Key findings

  • A single CNN trained on heterogeneous datasets (e.g., liver in MRI, cortical plate in fetal MRI) achieved segmentation performance on par with or better than dedicated models trained on individual datasets.
  • Models trained on heterogeneous data demonstrated significantly better-calibrated predictions, as measured by lower Expected Calibration Error (ECE).
  • The proposed OOD detection method based on spectral analysis of CNN feature maps achieved 100% accuracy, 100% sensitivity, 100% specificity, and AUC of 1.00 in detecting OOD data from Liver-MRI-SPIR on a liver segmentation task.
  • In contrast, the uncertainty-based OOD detection method achieved only 64% accuracy, 61% sensitivity, 60% specificity, and AUC of 0.65 in the same experiment.
  • The OODM values for in-distribution data (Liver-MRI-DUAL-In and Liver-MRI-DUAL-Out) were consistently below the threshold τ=0.0057, while OOD data (Liver-MRI-SPIR) had significantly higher values, enabling perfect separation.
  • The model successfully segmented the Liver-MRI-DUAL-Out dataset at test time (DSC=0.886), and its OODM values were distributed similarly to training in-distribution data, confirming robustness to distributional shifts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.