Towards safe deep learning: accurately quantifying biomarker uncertainty in neural network predictions

Zach Eaton-Rosen, Felix Bragman, Sotirios Bisdas, Sebastien Ourselin, M. Jorge CardosoarXiv 2018

TL;DR

This paper introduces a method to transform the voxel-wise uncertainty of deep learning segmentations into well-calibrated volumetric error bars for medical biomarkers. By using Bayesian neural networks and a novel calibration step, the authors demonstrate how to provide clinicians with reliable confidence intervals for tumor volumes, making AI-driven diagnostics significantly safer.

What Problem Does This Paper Address?

Deep convolutional neural networks (CNNs) are the gold standard for medical image segmentation, but they have a dangerous "black box" problem: they typically provide a single point-estimate (a "best guess") without any measure of how certain they are.

In clinical settings, this lack of uncertainty is a major safety risk. If a model miscalculates the volume of a tumor or misses a small lesion, the downstream clinical decision—such as changing a chemotherapy dose or scheduling surgery—could be wrong. A point estimate of 50ml is far less useful than a range of 45–55ml. The challenge lies in the fact that while we can estimate uncertainty for a single pixel (voxel), combining those thousands of tiny uncertainties into a single, reliable error bar for a total volume is mathematically non-trivial and often results in overconfident, poorly calibrated ranges.

Methods

The authors employ Bayesian Neural Networks to capture model uncertainty. Since true Bayesian inference is computationally prohibitive for large CNNs, they use Monte Carlo (MC) Dropout as a practical approximation. By keeping dropout active during testing and running multiple forward passes (stochastic sampling), the model generates a distribution of possible segmentations rather than just one.

The paper evaluates four variants of the "High-Res Net" architecture:

  1. HRdefault: A standard non-stochastic baseline.
  2. HRdrop_last: Dropout applied only to the final layer.
  3. HRdrop_all: Dropout applied after every residual block.
  4. HRhetero: A model that explicitly learns to predict "aleatoric" uncertainty (noise inherent in the data itself) alongside the segmentation.
Visualizing mean confidence and predictive standard deviation across different model variants.

The core innovation is the calibration of volumetric uncertainty. Simply summing up voxel-wise variances leads to error bars that are too narrow. The authors propose building a cumulative distribution function (CDF) of volumes by taking quantiles of voxel probabilities. They then apply an affine transformation (similar to 1D histogram equalization) to these percentiles using validation data. This ensures that a "95% confidence interval" actually contains the ground truth 95% of the time.

Datasets

The study utilizes the BraTS 2017 (Brain Tumour Segmentation) training dataset.

  • Content: 285 subjects with high- or low-grade gliomas.
  • Imaging: Four MRI modalities per subject (T1, T1-contrast, T2, and FLAIR).
  • Labels: Expert segmentations for three regions: Gd-enhancing tumor, edema, and necrotic core.

Key Insights and Ideas

  • Raw Dropout is Not Enough: The authors found that simply running 20 forward passes and looking at the spread of volumes produced almost no variation. The predictions were too highly correlated to serve as a natural confidence interval.
  • Calibration is the "Secret Sauce": The uncalibrated model was consistently overconfident. The proposed affine scaling step was essential to "stretch" the error bars so they actually encompassed the ground truth.
  • Uncertainty as a Quality Proxy: By adding artificial Gaussian noise to images, the authors showed that as image quality drops, the segmentation error increases, but the calibrated confidence intervals widen appropriately to maintain safety.
  • Aleatoric vs. Epistemic: In this specific task, model uncertainty (epistemic) was orders of magnitude more significant than data-level noise (aleatoric). The more complex HRhetero model didn't provide a meaningful advantage over the simpler HRdrop_all approach.

Key Results

  • Performance: The HRdrop_all model achieved the highest mean Dice score (0.86) for the "whole tumor" label, outperforming the non-stochastic baseline (0.79).
  • Reliability: Before calibration, the model's volume estimates rarely included the true value within their predicted range. After the proposed calibration, the confidence intervals were significantly more robust.
Fig. 1: Top row: mean confidences (over 20 forward passes) for the given model to belong to the ‘Active’ class. Bottom row: σpredicted, the standard deviation across predictions. Different methods display similar predictions, but the level of uncertainty varies depending on the network used.
  • Robustness: Even when tumor volume estimates decreased due to high input noise, the calibrated error bars remained wide enough to contain the true volume, demonstrating a form of "safe failure."

Limitations and Future Work

The authors acknowledge several limitations:

  • Architecture Bias: The study only accounts for uncertainty within a specific network architecture. A truly Bayesian approach would also marginalize over different possible architectures.
  • Data Requirements: The calibration step is empirical and requires a sufficiently large, representative validation set. It is also sensitive to "domain shift"—if the test images look significantly different from the training/validation data, the calibration may fail.
  • Future Directions: The researchers plan to extend this to other biomarkers, such as lesion counts in Multiple Sclerosis, and explore using uncertainty as an automated tool for image quality assurance in clinical pipelines.
Fig. 2: Left: ground truth ‘Whole’ segmentation. Middle: 5th percentile volumet- ric measurement (yellow), contained within the 50th percentile (dark green) and outside that, the 95th percentile (cyan). Right: the probability of a voxel along the black line belonging to the ‘Whole Tumour’ class, as given by different per- centiles in the volume space. These percentiles are not yet calibrated, but do contain the ground truth.

Summary updated

BibTeX
@misc{eatonrosen2018towards,
  author = {Zach Eaton-Rosen and Felix Bragman and Sotirios Bisdas and Sebastien Ourselin and M. Jorge Cardoso},
  title = {{Towards safe deep learning: accurately quantifying biomarker uncertainty in neural network predictions}},
  year = {2018},
  eprint = {1806.08640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.08640},
}
Figure