[Paper Review] Improved Trainable Calibration Method for Neural Networks on Medical Imaging Classification
This paper proposes a novel, trainable calibration method called Difference in Confidence and Accuracy (DCA) that improves neural network calibration in medical imaging without sacrificing classification accuracy. By adding DCA as an auxiliary loss, the method penalizes overfitting to cross-entropy loss when accuracy plateaus, reducing Expected Calibration Error (ECE) by 65.72% on average across four medical datasets and four architectures while maintaining high accuracy.
Recent works have shown that deep neural networks can achieve super-human performance in a wide range of image classification tasks in the medical imaging domain. However, these works have primarily focused on classification accuracy, ignoring the important role of uncertainty quantification. Empirically, neural networks are often miscalibrated and overconfident in their predictions. This miscalibration could be problematic in any automatic decision-making system, but we focus on the medical field in which neural network miscalibration has the potential to lead to significant treatment errors. We propose a novel calibration approach that maintains the overall classification accuracy while significantly improving model calibration. The proposed approach is based on expected calibration error, which is a common metric for quantifying miscalibration. Our approach can be easily integrated into any classification task as an auxiliary loss term, thus not requiring an explicit training round for calibration. We show that our approach reduces calibration error significantly across various architectures and datasets.
Motivation & Objective
- To address the critical issue of miscalibration in deep neural networks used for medical image classification, where models are often overconfident in their predictions.
- To improve uncertainty quantification in medical AI systems by reducing discrepancy between predicted confidence and actual accuracy.
- To develop a calibration method that maintains high classification accuracy while significantly improving model calibration.
- To provide a simple, trainable, and integrable calibration solution that does not require separate training rounds or complex post-processing.
Proposed method
- The method introduces an auxiliary loss term called Difference in Confidence and Accuracy (DCA), which penalizes the model when cross-entropy loss decreases but accuracy remains stagnant.
- DCA is defined as the absolute difference between the average confidence and accuracy within each bin of predicted probabilities, approximated using ECE with M bins.
- The DCA loss is combined with standard cross-entropy loss during training, allowing end-to-end optimization without additional calibration phases.
- The method uses a hyperparameter β to scale the DCA loss, balancing calibration improvement and training stability.
- The approach is architecture-agnostic and can be applied to any neural network classifier with minimal modification.
Experimental results
Research questions
- RQ1Can a trainable, end-to-end calibration method reduce model miscalibration in medical image classification without degrading classification accuracy?
- RQ2How effective is the DCA loss in improving calibration across diverse medical imaging datasets and network architectures?
- RQ3Does the proposed method better recover the true underlying probability distribution compared to existing calibration techniques?
- RQ4How sensitive is the performance of the DCA method to the choice of the hyperparameter β?
Key findings
- The proposed DCA method reduced Expected Calibration Error (ECE) by an average of 65.72% across four medical imaging datasets and four CNN architectures, from 0.1006 to 0.0345.
- The method maintained high classification accuracy, with 83.08% for the uncalibrated model and 83.58% for the DCA-calibrated model, showing no degradation in performance.
- t-SNE visualization demonstrated that features learned with DCA were more class-discriminative and densely packed compared to temperature scaling, especially on the Kather 5000 dataset.
- The probability distribution recovered by the DCA method closely followed the ground-truth diagonal, indicating better calibration than uncalibrated models and temperature scaling.
- ECE was relatively insensitive to β values when β ≥ 10, with optimal performance observed in the range of 10–15 across most datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.