Accepted as a conference paper at ISBI 2021
This repository contains source code for "Post training uncertainty calibration of deep networks for medical image segmentation"
Neural networks for automated image segmentation are typically trained to achieve maximum accuracy, while less attention has been given to the calibration of their confidence scores. However, well-calibrated confidence scores provide valuable information towards the user. We investigate several post hoc calibration methods that are straightforward to implement, some of which are novel, and compare them to Monte Carlo dorpout. Figure 1 shows scatter plots of ECE versus Dice score for two datasets, and for models trained on cross-entropy and soft-dice lossfunctions. For BR18, the MC methods are outperformed by simple methods like platt scaling. On IS18, fine-tuning is pareto-efficient for all weight-types. MC dropout is most effective for models trained with cross-entropy.
Overall, we find that simple post hoc methods are competitive with the popular MC dropout
Figure 1
- Obtain model weights and pre-process data as in https://github.com/JeroenBertels/optimizingdice
- Place model weights in the appropriate subfolders in ./Models. rename the files to Fold_0.hdf5, Fold_1.hdf5,...
- Place cases of the datasets in the ./Datasets/BRATS_2018 and ./Datasets/ISLES_2018 folders
- Download the trained filters from https://drive.google.com/drive/folders/1Ub9lSIEV-IHCIFCgNXzcLP2fwp4DkYQD?usp=sharing or train from stratch in steps 5 and 6.
- run the retrain_dropout.py and fintune_base_model.py scripts to train the dropout and fine-tune methods
- run make_base_model_predictions.py and then Train_aux.py to train the auxiliary models.
- save_aux_segmaps.py, MC_predictions.py and make_fine_tune_predictions.py to save the segmentation outputs
- Finally, run Make_evaluations.py to calculate Dice and ECE scores.
@inproceedings{Rousseau2020a,
title={Post Training Uncertainty Calibration of Deep Networks for Medical Image Segmentation},
AUTHOR = {Rousseau, Axel-Jan and Thijs Becker and Jeroen Bertels and Matthew B. Blaschko and Dirk Valkenborg},
YEAR = {2021},
booktitle = {IEEE International Symposium on Biomedical Imaging (ISBI)},
}
