Pytorch implementation for Uncertainty Estimation for Safety-critical Scene Segmentation via Fine-grained Reward Maximization, by Hongzheng Yang*, Cheng Chen*, Yueyao Chen, Markus Scheppach, Hon Chi Yip, Qi Dou (* indicates equal contribution).
Uncertainty estimation plays an important role for future reliable deployment of deep segmentation models in safety-critical scenarios such as medical applications. However, existing methods for uncertainty estimation have been limited by the lack of explicit guidance for calibrating the prediction risk and model confidence. In this work, we propose a novel fine-grained reward maximization (FGRM) framework, to address uncertainty estimation by directly utilizing an uncertainty metric related reward function with a reinforcement learning based model tuning paradigm. This would benefit the model uncertainty estimation with direct optimization guidance for model calibration. Specifically, our method designs a new uncertainty estimation reward function using the calibration metric, which is maximized to fine-tune an evidential learning pre-trained segmentation model for calibrating prediction risk. Importantly, we innovate an effective fine-grained parameter update scheme, which imposes fine-grained reward-weighting of each network parameter according to the parameter importance quantified by the fisher information matrix. To the best of our knowledge, this is the first work exploring reward optimization for model uncertainty estimation for safety-critical vision tasks. The effectiveness of our method is demonstrated on two large safety-critical surgical scene segmentation datasets under two different uncertainty estimation settings. With real-time one forward pass at inference, our method outperforms state-of-the-art methods by a clear margin on all the calibration metrics of uncertainty estimation, while maintaining a high task accuracy for the segmentation results.
In this repository, we provide the implementation of our uncertainty estimation method on CholecSeg8K dataset. The evidential learning implementation were adopted from TBraTS.
To reproduce results on AI-ENDO ESD datasets, please refer to the experiments folder.
The CholecSeg8K dataset can downloaded from here. You can also download the preprocessed data from this link.
For AI-ENDO ESD dataset, access to the human cases is limited now due to ethical regulations. Source code are provided.
-
create conda environment from env.yml
-
download the dataset
-
put your pretrained model under appropate path or train the EDL method with run_EDL()
-
modify the corresponding data path and model path
-
run run_FGRM() to calibrate the model
If this repository is useful for your research, please cite:
@article{2023FGRM,
title={Uncertainty Estimation for Safety-critical Scene Segmentation via Fine-grained Reward Maximization},
author={Hongzheng Yang, Cheng Chen, Markus Scheppach, Hon Chi Yip, Qi Dou},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems (NeurIPS)},
year={2023}
}
Please contact 'hzyang05@gmail.com' if you have any questions.