Exploring Deep Learning and Ultra-Widefield Imaging for Diabetic Retinopathy and Macular Edema
Authors: Pablo Jimenez-Lizcano, Sergio Romero-Tapiador, Ruben Tolosana, Aythami Morales, Guillermo González de Rivera, Ruben Vera-Rodriguez, Julian Fierrez
Organizations: BiometricsAI, Universidad Autónoma de Madrid, Madrid, Spain · Department of Mathematics, Universidad de Las Palmas de Gran Canaria, Spain · HCTLab Research Group, Universidad Autónoma de Madrid, Madrid, Spain
Diabetic retinopathy (DR) and diabetic macular edema (DME) are leading causes of preventable blindness among working-age adults. Traditional approaches in the literature focus on standard color fundus photography (CFP) for the detection of these conditions. Nevertheless, recent ultra-widefield imaging (UWF) offers a significantly wider field of view in comparison to CFP. Motivated by this, the present study explores state-of-the-art deep learning (DL) methods and UWF imaging on three clinically relevant tasks: i) image quality assessment for UWF, ii) identification of referable diabetic retinopathy (RDR), and iii) identification of DME. Using the publicly available UWF4DR Challenge dataset, released as part of the MICCAI 2024 conference, we benchmark DL models in the spatial (RGB) and frequency domains, including popular convolutional neural networks (CNNs) as well as recent vision transformers (ViTs) and foundation models. In addition, we explore a final feature-level fusion to increase robustness. Finally, we also analyze the decisions of the DL models using Grad-CAM, increasing the explainability. Our proposal achieves consistently strong performance across all architectures, underscoring the competitiveness of emerging ViTs and foundation models and the promise of feature-level fusion and frequency-domain representations for UWF analysis.
Figures & tables
Fig. 1 : Graphical representation of the proposed framework, summarizing the main components and processing stages of the approach. Both RGB and frequency-domain images are considered in the analysis. Four state-of-the-art deep learning models are studied (MobileNetV2, ResNet18, ViT-B/16, and RETFound). Feature vectors are then concatenated to form a unified multimodal embedding, which is finally fed into a multilayer perceptron (MLP).
Task 1: Quality Assessment
Task 2: RDR Identification
Task 3: DME Identification
Ungradable
Gradable
Total
No RDR
RDR
Total
No DME
DME
Total
Training
138
179
317
69
92
161
75
61
136
Validation
42
37
79
16
24
40
15
19
34
Test
49
50
99
25
25
50
21
21
42
TABLE I : Experimental protocol: Distribution of images across training, validation, and test subsets of UWF4DR dataset.
Fig. 2 : UWF4DR tasks. (A–B) Quality Assessment: (A) Gradable image with good focus, contrast, and clear structures; (B) Ungradable due to blur, media opacities, and partial eyelid obstruction. (C–D) RDR Identification: (C) Non-referable case; (D) RDR case exhibiting intraretinal hemorrhages, hard exudates, and microaneurysms. (E–F) DME Identification: (E) No DME (normal macula); (F) DME present, showing hard exudates and macular blurring due to fluid accumulation.
Fig. 3 : DFT Magnitude (clipped 99%) comparison: (A) Gradable image showing balanced frequencies; (B) Ungradable image showing concentration in low frequencies due to blur.
DL Model
AUROC
AUPRC
Sens.
Spec.
Task 1 - Quality Assessment: RGB domain
MobileNetV2
94.4%
95.4%
90.0%
91.8%
ResNet18
94.8%
95.3%
88.0%
91.8%
ViT-B/16
95.4%
96.0%
88.0%
91.8%
RETFound
93.3%
94.0%
90.0%
93.9%
Fusion (RGB)
96.4%
97.1%
86.0%
98.0%
TABLE II : Performance of all DL models across the three tasks and two input image domains. Results are reported in terms of AUROC, AUPRC, Sensitivity (Sens.), and Specificity (Spec.). The best metric values for each task and domain are highlighted in bold .
Fig. 4 : Grad-CAM examples. Task 1 (Quality Assessment): (A–B) Correct gradable predictions focus on optic disc/vessels; (D–E) Correct ungradable predictions highlight peripheral opacities/eyelids; (C, F) Misclassifications. Task 2 (RDR Identification): (G–H) Attention on characteristic lesions (hemorrhages, exudates). Task 3 (DME Identification): (I–J) Focus concentrated on the macular region; (K) Misclassification. Each panel displays the UWF image and its Grad-CAM heatmap.
Diabetic Macular Edema (DME) is a leading cause of vision loss among patients with Diabetic Retinopathy (DR). While deep learning has shown promising results for automatically detecting this condition from fundus images, its application remains challenging due the limited availability of annotated data. Foundation Models (FM) have emerged as an alternative solution. However, it is unclear if they can cope with DME detection in particular. In this paper, we systematically compare different FM and standard transfer learning approaches for this task. Specifically, we compare the two most popular FM for retinal images-RETFound and FLAIR-and an EfficientNetB0 backbone, across different training regimes and evaluation settings in IDRiD, MESSIDOR-2 and OCT-and-Eye-FundusImages (OEFI). Results show that despite their scale, FM do not consistently outperform fine-tuned CNNs in this task. In particular, EfficientNet-B0 consistently achieves competitive or superior performance across evaluation settings, with FLAIR being the most competitive foundation model, consistently outperforming RETFound. These findings suggest that FMs do not necessarily provide an advantage for fine-grained ophthalmic tasks such as DME detection, even after fine-tuning, highlighting lightweight CNNs as strong baselines in data-scarce environments.
Franco Javier Arellano, José Ignacio Orlando
Yatiris Group, PLADEMA Institute, UNICEN, Tandil, Argentina · CONICET, Tandil, Argentina
Diabetic Retinopathy (DR) is a major cause of vision impairment worldwide. However, manual diagnosis is often time-consuming and prone to errors, leading to delays in screening. This paper presents a lightweight automated deep learning framework for efficient assessment of DR severity from digital fundus images. We use a MobileNetV3 architecture with a Consistent Rank Logits (CORAL) head to model the ordered progression of disease while maintaining computational efficiency for resource-constrained environments. The model is trained and validated on a combined dataset of APTOS 2019 and IDRiD images using a preprocessing pipeline including circular cropping and illumination normalization. Extensive experiments including 3-fold cross-validation and ablation studies demonstrate strong performance. The model achieves a Quadratic Weighted Kappa (QWK) score of 0.9019 and an accuracy of 80.03 percent. Additionally, we address real-world deployment challenges through model calibration to reduce overconfidence and optimization for mobile devices. The proposed system provides a scalable and practical tool for early-stage diabetic retinopathy screening.
Aadi Joshi, Manav S. Sharma, Vijay Uttam Rathod +3
Vishwakarma Institute Of Technology, Computer Engineering Department, Pune , India · Vishwakarma Institute Of Technology, Computer Science and Engineering (AI & ML ) Department, Pune , India
Despite the widespread adoption of foundation models as feature extractors for medical imaging, relatively little is understood about how different pretraining strategies influence the transferability of learned representations to weakly supervised ophthalmic imaging tasks. We investigate this question in ultra-widefield (UWF) retinal imaging by evaluating foundation model representations within a patch-based multiple instance learning (MIL) framework for disease classification on UWF images. We compare Vision Transformer encoders pretrained with supervised, Masked Autoencoder (MAE), and self-distillation objectives, while keeping the downstream aggregation architecture unchanged. Within a controlled comparison of ViT-B encoders pretrained on ImageNet-1k, the choice of pretraining objective substantially influenced frozen representation transfer, with supervised and self-distillation-based models outperforming MAE. A contemporary DINOv3 model pretrained at a larger scale achieved the strongest overall performance, with a quadratic weighted kappa of 0.863 for five-class diabetic retinopathy grading, comparable with DINOv1. Attention analysis further revealed distinct patch-aggregation behaviours associated with the different pretrained representations, while partial fine-tuning substantially reduced the performance gap for MAE. These findings suggest that pretraining strategy influences both representation transferability and the subsequent aggregation of patch-level evidence within MIL, resulting in differences in downstream classification performance.
Mingya Alexa Gong, Da Ma, Lovre Antonio Budimir +7
Institute of Ophthalmology, University College London, London, United Kingdom · Wake Forest University School of Medicine, Winston-Salem, NC, USA · Virginia Tech-Wake Forest University School of Biomedical Engineering and Sciences, Blacksburg, VA, USA +5