1793

Analysing The Role Of Model Uncertainty in Flourine-19 MRI using Markov Chain Monte Carlo methods
Masoumeh Javanbakhat1, Ludger Starke2, Sonia Waiczies2, and Christoph Lippert1
1Digital Health-Machine Learning Group, Hasso Plattner Institute, Potsdam, Germany, 2Berlin Ultrahigh Field Facility, Max Delbrück Centre for Moleculare Medicine in the Helmholtz Association, Berlin, Germany

Synopsis

Deep learning (DL) has achieved state of the art results in semantic segmentation of numerous medical imaging applications. Despite promising results deep learning models tend to produce point estimates as outputs which leads to overconfident, miscalibrated predictions. These overconfident predictions are specifically problematic in medical applications. Hence, providing a measure of a system’s confidence to identify untrustworthy predictions is essential to guide clinical decisions. Here we propose a 3D Bayesian segmentation model to provide uncertainty estimation for the Fluorine-19 MRI dataset based on Stochastic Gradient Markov Chain Monte Carlo methods.

Introduction

Deep learning (DL) algorithms have achieved state of the art in segmentation of various medical image datasets. Despite promising results, they suffer from over confident predictions which questions their generalisation capabilities. Moreover, producing deterministic outputs hinders DL adoption into clinical routines. Uncertainty estimates for the predictions would permit subsequent revision by clinicians and facilitate the safe deployment of machine learning in the medical diagnosis systems. Fluorinated compounds have significant impact in fields of pharmaceuticals, agrochemicals and household products. However, deposition of these compounds in vulnerable organs has harmful effects to mammals. So a reliable quantification method is essential to estimate concentrations in specific organs (e.g. the brain) to predict treatment and disease outcomes. Available methods to monitor Flourine-19 (19F) compounds rely on the estimation of the noise level and subtraction of background1. Since most signals in 19F magnetic resonance (MR) data are close to detection threshold, background subtraction strongly influences signal sensitivity and most importantly the reliability of the obtained results.This work proposes a 3D Bayesian convolutional neural network which combines recent advances in uncertainty estimation and semantic segmentation to improve the sensitivity of 19F MRI and accurately quantify 19F compounds in vivo. Our model does not only increase signal sensitivity in low signal to noise ratio (SNR) 19F MR data but also assigns uncertainty to each predicted label which enables further analysis in more challenging cases.

Methods

A U-net2 and a combination of Binary cross entropy and Dice loss were used for segmentation to address the extreme class imbalance. Segmentation’s performance is evaluated on the test set by Dice score, sensitivity and precision. For the Bayesian model, a specific Markov Chain Monte Carlo (MCMC) method called Stochastic Gradient Hamiltonian Monte Carlo (SGHMC)3 is used. In the Bayesian paradigm we assume the parameters of a model are probabilistic. Then we estimate predictive distribution $$P(y|x,D)$$ by estimating the probability distribution over the parameters, so called posterior $$p(\theta|D)$$ and marginalising over all likely models
$$$P(y|x,D)= \int P(y|x,\theta)~ P(\theta|D)~d\theta\approx \frac{1}{s}\Sigma_{i=1}^{s} p(y|x, \theta_{i}).$$$
The uncertainty in predictions are then quantified by measuring either the variance or the entropy of the predictive distribution4. Here we use SGHMC to take 300 samples from the posterior, we measured the uncertainty using entropy computed as:
$$$H(y|x,D) = -\Sigma_{c\in C} p(y=c|x,D) \log p(y=c|x,D)$$$
Where $$c$$ ranges over all classes. We evaluate the quality of estimated uncertainties with respect to their reliability and their benefit to correct the failure predictions in terms of 3 metrics: Calibration5: a model is said to be perfectly calibrated if its predictions with confidence p occur with a fraction p of the time. Uncertainty-Error-overlap5: is used to determine the overlap between segmentation error and thresholded uncertainty. Corrections5: the benefit of uncertainties is assessed by measuring the improvement in Dice score or AUC-ROC when removing uncertain voxels at different thresholds.

Results

We employed a dataset of 5 ex vivo and 11 in vivo 3D 19F MRI for training and a dataset of the same size for testing6. Each image is of a size of 112x40x40 isotropic (1 mm3) voxels. We split the dataset into 14 training and 2 validation. Segmentation results are summarised in (Table. 1). The input 19F MRI data (Fig. 1A) were tested and compared to reference (ground truth) 19F MRI data (Fig. 1B) to predict segmentation masks (Fig. 1C). Uncertainties maps (Fig. 1D) were then used to correct segmentation failures. The highest Dice score between error map and thresholded uncertainty map occurs at 0.6 (Fig. 3D), confirming that the model is most uncertain at voxels that are false positives and certain when it is correct (Fig. 2A). By removing voxels with uncertainty>0.6 (typically 19F MRI borders) we achieved 93% Dice score without losing too many true positives/negatives (10%/ 1%) which indicates that the model truly assigns the highest uncertainty to the misclassified voxels (Fig. 2B). A ROC curve from plotting true positive rates (TPR) against false detection rates (FDR) at various uncertainty thresholds shows the improvement in TPR/FDR ratios by thresholding uncertain voxels (Fig. 2C). In terms of calibration, calibration diagram (Fig. 3A-D) indicates that the model is perfectly calibrated in both dataset level and subject level.

Discussion

The results show that estimated uncertainties are well-calibrated at both the dataset level and at the subject level (Fig. 3). Moreover, our results indicate that thresholding the most uncertain voxels significantly improve segmentation performance indicating that high uncertainty reflects wrong predictions (Fig. 2). These observations confirm that estimated uncertainties are reliable enough to be used as a mechanism to detect failed segmentations in the absence of the ground truth.

Conclusion

Preliminary work shows that Bayesian based deep learning approaches can provide reliable uncertainty estimations when segmenting 19F MR images. Such measures are vital as they provide a new option to the 19F MR scientist to assess predictions of high uncertainty or further analyse uncertain boundaries.

Acknowledgements

No acknowledgement found.

References

1. Starke L, et al. in Preclinical MRI of the Kidney: Methods and Protocols, A Pohlmann, et al. Editors. 2021, Springer US: New York, NY. 711-722.

2. Ronneberger O, Fischer P, Brox T. U-Net: Convolutional Networks for Biomedical Image Segmentation. MICCAI 2015.

3. Ma Y. A, et al. A complete recipe for stochastic gradient MCMC. NIPS 2015.

4. Nair T, Precup D, Douglas L. A, Arbel T. Exploring uncertainty measures in deep networks for Multiple sclerosis lesion detection and segmentation. Medical Image Analysis, Volume 59, 2020.

5. Jungo A, et al. Assessing Reliability and Challenges of Uncertainty Estimations for Medical Image Segmentation. MICCAI 2019.

6. Starke L, et al.Magn Reson Med.2019. 1-17.

Figures

Figure 1: Predictions and uncertainties of 19F MRI segmentation using SG-MCMC methods. (A) Input image: a 2D slice of a 3D volume in test set, (B) Ground truth: mask of reference 19F MR images, (C) Prediction: predicted mask of 19F MR images, (D) Uncertainty map: voxel-wise uncertainties in order to determine the reliability of the predictions.

Figure 2: Evaluation of estimated uncertainties. (A) Uncertainty-error-overlap: Dice score between error map and uncertainty map, (B) Corrections: effect of removal uncertain voxels on improving Dice score, (C) ROC curve: effect of changing uncertainty thresholds on TPR and FDR.

Figure 3: Calibration of estimated uncertainties. (A) Reliability diagram on dataset level, (B) Reliability diagram of subject 2, (C) Reliability diagram of subject 4, (D) Reliability diagram of subject 6.

Table 1: Segmentation performance

Proc. Intl. Soc. Mag. Reson. Med. 30 (2022)
1793
DOI: https://doi.org/10.58530/2022/1793