Abstract
Automatic classification of diabetic retinopathy from retinal images has been widely studied using deep neural networks with impressive results. However, there is a clinical need for estimation of the uncertainty in the classifications, a shortcoming of modern neural networks. Recently, approximate Bayesian deep learning methods have been proposed for the task but the studies have only considered the binary referable/non-referable diabetic retinopathy classification applied to benchmark datasets. We present novel results by systematically investigating a clinical dataset and a clinically relevant 5-class classification scheme, in addition to benchmark datasets and the binary classification scheme. Moreover, we derive a connection between uncertainty measures and classifier risk, from which we develop a new uncertainty measure. We observe that the previously proposed entropy-based uncertainty measure generalizes to the clinical dataset on the binary classification scheme but not on the 5-class scheme, whereas our new uncertainty measure generalizes to the latter case.
Introduction
Deep neural networks are incredibly effective at pattern recognition in medical imaging, yet they suffer from a significant "calibration" problem: they are often 100% certain even when they are 100% wrong. In diabetic retinopathy (DR) screening, where a false negative could lead to irreversible blindness, this overconfidence is unacceptable.
While previous research has explored uncertainty-aware models, most studies focused on simplified binary tasks (referable vs. non-referable) using clean, curated benchmark datasets. This paper addresses the gap between academic benchmarks and clinical reality by investigating whether these methods hold up under the standard 5-class grading system (PIRC) and "in-the-wild" data from a Finnish hospital (KSSHP), where image quality and grading conventions differ from gold-standard benchmarks.
Methodology
Approximate Bayesian Approaches
The authors evaluate nine different Approximate Bayesian Deep Learning approaches. Unlike standard models that provide a single point estimate, these models estimate a probability distribution over the network's weights, allowing the model to express ambiguity. Key techniques included:
- Deep Ensembles: Averaging predictions from multiple trained models.
- MC Dropout: Sampling multiple predictions during inference via dropout.
- Variational Inference (MFVI, GVI, Radial BNN): Mathematical frameworks to approximate the complex posterior distribution of the model. To address the "Soap Bubble" pathology—where probability mass in high-dimensional Gaussians sits on a thin shell far from the mean—the authors utilized Radial BNNs.
Datasets
The study utilized four distinct datasets to test generalization across different populations and grading styles: EyePACS (USA benchmark), APTOS (India benchmark), Messidor-2 (France benchmark), and KSSHP (a clinical dataset from the Central Finland Health Care District).
The QWK-Risk Measure
A core innovation is the QWK-Risk uncertainty measure. Standard uncertainty often uses "Entropy," but DR grading is evaluated using the Quadratic Weighted Kappa (QWK), which penalizes large misclassifications (e.g., Class 0 vs. Class 4) more harshly than minor ones. The authors derived a new measure that specifically estimates the "risk" relative to the QWK metric, providing a clinically grounded basis for referral.
Results and Discussion
Referral as a Safety Valve
The study frames uncertainty as a clinical workflow tool. By referring the most uncertain cases (e.g., 30% or 50%) to a human expert, the "retained performance" of the automated system improves significantly.
As shown in Figure 1, performance generally increases as the model is allowed to refer its most uncertain predictions. However, a key insight is that Entropy is not enough for the 5-class scheme. While entropy works well for binary classification, it often fails to generalize to the 5-class system on clinical data. In contrast, the new QWK-Risk measure systematically improved performance where entropy failed.
Performance Benchmarks
On the binary (RDR) task, the baseline models reached up to 98.4 AUC on EyePACS with 50% referral. For the 5-class PIRC system, the QWK-Risk measure allowed the model to reach a QWK of 89.9 on the clinical KSSHP dataset with 50% referral, whereas entropy-based referral often led to stagnant performance.
The models also demonstrated impressive robustness to distribution shifts. For example, a model trained on Finnish data (KSSHP) achieved a 100.0 AUC on the French Messidor-2 dataset when the most uncertain 50% of cases were referred.
Conclusion
This research demonstrates that uncertainty-aware models can significantly improve the reliability of automated DR screening, provided the uncertainty measure is aligned with the clinical evaluation metric. While grading variability among human experts remains a hurdle, the use of QWK-Risk and referral systems offers a viable path for integrating AI into clinical assistance workflows. Future work will explore multi-view image fusion and larger regional datasets to further validate these findings.
Summary updated