Leveraging Uncertainty Estimates for Predicting Segmentation Quality

Terrance DeVries, Graham W. TaylorarXiv 2018 · OpenReview

TL;DR

This paper tackles the critical issue of deep learning models failing silently in medical imaging by proposing a two-stage framework that leverages pixel-level uncertainty maps to predict overall segmentation quality. This approach aims to make automated medical image analysis more reliable and interpretable for clinicians.

What Problem Does This Paper Address?

Deep learning has shown immense promise in medical imaging tasks like metastasis detection and diabetic retinopathy diagnosis. However, a major hurdle to their clinical adoption is their "black box" nature and tendency to fail silently, meaning they produce incorrect predictions without any indication of error. This is particularly problematic in medical settings where accurate diagnoses are paramount. The paper focuses on semantic segmentation in medical images, where a poor segmentation can lead to misdiagnosis. The challenge is to not only identify where a model might be failing (pixel-level uncertainty) but also to predict the overall quality of a segmentation to flag potentially problematic cases for human review.

Methods

The authors propose a two-stage architecture. The first stage involves a standard deep learning semantic segmentation network, denoted as $f$. This network takes an input image $x$ and outputs both class prediction logits $\rho$ and an uncertainty map $z$. The uncertainty map $z$ can be derived from the network's outputs or directly produced by the network. The second stage uses a segmentation quality prediction network, $g$, which takes the original image $x$, the predicted segmentation mask $\hat{y}$ (derived from $\rho$), and the uncertainty map $z$ as input to predict an overall segmentation quality estimate $\hat{v}$.

The paper explores four different methods for generating the uncertainty map $z$:

  • Maximum Softmax Probability (MSP): A simple and free method derived from the softmax output of the segmentation network.
  • Monte-Carlo Dropout (MC-dropout): Approximates Bayesian Neural Networks by applying dropout during inference and averaging predictions.
  • Heteroscedastic Classifier Neural Network (HCNN): Models aleatoric uncertainty (data noise) by learning a variance estimate.
  • Learned Confidence Estimates (LCE): A method that learns to estimate confidence directly, pushing low-confidence predictions towards the correct answer.

The segmentation quality prediction network $g$ is trained to predict metrics like the Jaccard index, using the ground truth segmentation quality as labels.

Datasets

The primary dataset used for training and evaluation is the ISIC 2017 dataset. This dataset contains 2,750 dermoscopic images of skin lesions, each with an expert-labeled binary segmentation mask. The dataset is split into training, validation, and test sets. Images and masks are resized to 224x224 pixels for experiments.

Key Insights and Ideas

  • Uncertainty as a Bridge: The core idea is that pixel-level uncertainty maps, often used for interpretability, can serve as a crucial intermediate representation for predicting image-level segmentation quality. This unifies two previously disparate research areas.
  • Explicit Uncertainty Boosts Quality Prediction: Explicitly providing uncertainty information to the quality prediction network significantly improves its performance compared to models that only use the image and predicted segmentation.
  • MSP, MC-Dropout, and LCE Shine: These three uncertainty estimation methods demonstrated similar and strong improvements in segmentation quality prediction, outperforming HCNN and a baseline without explicit uncertainty.
  • HCNN's Limitation: HCNN, which models aleatoric uncertainty, performed poorly in this context. This suggests that aleatoric uncertainty (noise in the data) is less indicative of segmentation failures than epistemic uncertainty (model parameter uncertainty) for this specific task.
  • Corrupted Labels are a Problem: The scatter plots reveal that many false positives in quality prediction (where a poor segmentation is rated highly) are likely due to issues with the ground truth labels themselves (corrupted or lazy annotations).

Key Results

  • The proposed two-stage framework, leveraging explicit uncertainty, reduced RMSE by up to 0.03 points and detection error by up to 8 percentage points compared to a baseline without uncertainty information.
  • Maximum Softmax Probability, MC-dropout, and Learned Confidence Estimates all yielded comparable improvements in segmentation quality prediction.
  • The HCNN method showed the least improvement, with only a 5-point reduction in detection error and no improvement in RMSE.
  • The paper's implementation of QualityNet performed similarly to their no-uncertainty baseline.
  • Reverse Classification Accuracy (RCA) performed poorly, suggesting it is less suited for datasets with high variability in lesion appearance and location.

Limitations and Future Work

  • Dataset Bias: The authors acknowledge that the segmentation quality estimation network might be biased towards predicting good quality due to the rarity of poor segmentations in the training set. Using a separate, held-out dataset for training the quality predictor could mitigate this, but the ISIC dataset's small size makes this challenging.
  • Generalizability: While the framework is designed to be general, the experiments were conducted on skin lesion segmentation. Future work could extend this to other medical segmentation problems and even non-medical tasks that could benefit from human-in-the-loop analysis.
  • Loss Functions: The authors used standard losses for segmentation and suggest that optimizing for application-specific metrics like the Jaccard index directly could further improve performance.

Summary updated

Abstract

The use of deep learning for medical imaging has seen tremendous growth in the research community. One reason for the slow uptake of these systems in the clinical setting is that they are complex, opaque and tend to fail silently. Outside of the medical imaging domain, the machine learning community has recently proposed several techniques for quantifying model uncertainty (i.e.~a model knowing when it has failed). This is important in practical settings, as we can refer such cases to manual inspection or correction by humans. In this paper, we aim to bring these recent results on estimating uncertainty to bear on two important outputs in deep learning-based segmentation. The first is producing spatial uncertainty maps, from which a clinician can observe where and why a system thinks it is failing. The second is quantifying an image-level prediction of failure, which is useful for isolating specific cases and removing them from automated pipelines. We also show that reasoning about spatial uncertainty, the first output, is a useful intermediate representation for generating segmentation quality predictions, the second output. We propose a two-stage architecture for producing these measures of uncertainty, which can accommodate any deep learning-based medical segmentation pipeline.
BibTeX
@misc{devries2018leveraging,
  author = {Terrance DeVries and Graham W. Taylor},
  title = {{Leveraging Uncertainty Estimates for Predicting Segmentation Quality}},
  year = {2018},
  eprint = {1807.00502},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.00502},
}
Figure