Madrid Researchers Show RETFound Beats CNNs at Catching Blindness Early
A new benchmark study tests CNNs, Vision Transformers, and foundation models on ultra-widefield retinal scans, showing that frequency-domain features and model fusion can meaningfully improve diabetic eye disease detection.
ProTakeaways
- The problem: Diabetic retinopathy will affect 160M+ people by 2045; ultra-widefield (UWF) eye scans see more retina but are harder to analyze automatically.
- The benchmark: Researchers tested CNNs, Vision Transformers, and the RETFound foundation model on the public UWF4DR MICCAI 2024 dataset across 3 clinical tasks.
- Key finding: Feature-level fusion of multiple models and frequency-domain image representations consistently outperform single-model RGB-only baselines.
- Foundation models work: RETFound, pre-trained on 1.6M retinal images, transfers effectively to UWF scans despite being designed for standard fundus photography.
- Explainability included: Grad-CAM heatmaps verify models focus on pathologically relevant retinal regions, addressing the clinical black-box problem.
- Limitations: No external clinical validation; no code release; UWF hardware remains inaccessible in many low-income regions where DR burden is highest.
Diabetic retinopathy (DR) and diabetic macular edema (DME) are quietly becoming one of the most pressing public health crises in ophthalmology. In 2020, an estimated 103 million adults worldwide had DR, and that number is projected to climb to over 160 million by 2045. The tragedy is that most of this blindness is preventable -- if caught early enough. A new study from researchers at Universidad Autónoma de Madrid takes a systematic look at how modern deep learning architectures perform on a newer, more powerful imaging modality: ultra-widefield (UWF) fundus photography.
The paper, published on arXiv, benchmarks a wide range of models -- from classic CNNs to Vision Transformers and retinal foundation models -- across three clinically relevant tasks using the publicly available UWF4DR dataset. The results make a strong case that the combination of frequency-domain image representations and feature-level model fusion is a particularly promising direction for automated retinal screening.
Why standard eye scans aren't enough
For decades, the gold standard for DR screening has been color fundus photography (CFP), which captures a relatively narrow 30-50 degree window of the retina. The problem is that diabetic damage often starts at the periphery -- areas CFP simply cannot see. Ultra-widefield fundus imaging, which provides up to a 200-degree view of the retina, is gaining traction as a powerful alternative. More retina visible means more lesions detectable, earlier.
But UWF images come with their own complications. Unlike conventional CFPs, UWF images introduce peripheral distortion, uneven illumination, and greater anatomical variability. These artifacts make automated analysis significantly harder -- a model trained on clean CFP images will not simply transfer to UWF scans without adjustment.

Three tasks, one unified pipeline
The study frames the problem as three sequential clinical tasks, mirroring how a real screening workflow would operate:
- Task 1 -- Image Quality Assessment: Before any diagnosis, the system must determine whether an image is even usable. Blurry, poorly illuminated, or artifacted scans need to be flagged and rejected before they mislead a classifier.
- Task 2 -- Referable Diabetic Retinopathy (RDR) Detection: Identifying whether a patient's retinal scan shows signs of DR severe enough to warrant referral to a specialist.
- Task 3 -- Diabetic Macular Edema (DME) Detection: Detecting swelling in the macula (the central region of the retina responsible for sharp vision), which can cause rapid vision loss.
The UWF4DR 2024 challenge, held at MICCAI in Marrakesh, Morocco, produced 17 full papers covering exactly these three subtasks, making it the first dedicated benchmark of its kind for UWF-based DR analysis. The paper under review uses this same dataset to run a more exhaustive architectural comparison than any single challenge submission attempted.
The model zoo: from MobileNet to foundation models
The researchers tested models across two fundamentally different input representations: the standard RGB spatial domain (what the image looks like to the human eye) and the frequency domain (where the image is transformed to reveal patterns in texture and periodicity that are invisible in pixel space). This dual-domain approach is one of the paper's key innovations.
The model lineup included:
- CNNs: MobileNetV2 and ResNet18 as efficient, well-understood baselines
- Vision Transformers (ViTs): ViT-B/16, which processes images as sequences of patches and uses self-attention to capture long-range dependencies across the retina
- Foundation model: RETFound, a retinal-specific foundation model pre-trained on 1.6 million unlabelled retinal images using self-supervised learning (specifically masked autoencoders, where the model learns by reconstructing randomly hidden patches of an image)
RETFound learns generalizable representations from unlabelled retinal images and is then adapted to disease detection tasks with explicit labels, providing a basis for label-efficient fine-tuning. This makes it especially attractive in medical settings where labelled data is scarce.

The fusion trick that ties it all together
Rather than picking a single winning architecture, the team explored feature-level fusion -- extracting the learned feature vectors from multiple models and combining them before the final classification layer. Think of it as an ensemble that operates at the representation level rather than just averaging output probabilities. Each model sees the same image but extracts different aspects of it; the fusion layer then learns which combination of features is most predictive for each task.
The frequency-domain branch is particularly interesting here. By converting retinal images into their frequency representation (using a Fourier transform), the model can pick up on subtle periodic textures -- like the fine vascular patterns associated with early DR -- that might be washed out in the raw pixel domain. This is not a new idea in computer vision, but its application to UWF retinal analysis is relatively unexplored.
Explainability baked in
A recurring criticism of deep learning in clinical settings is the black-box problem: a model might be highly accurate, but if a clinician cannot understand why it flagged a scan, adoption is limited. The paper addresses this directly using Grad-CAM (Gradient-weighted Class Activation Mapping), a technique that generates a heatmap over the input image showing which regions most influenced the model's decision. Grad-CAM highlights the most critical regions of an image used in a deep learning model's decision-making process, increasing interpretability and trust in the results.
In medical applications, deep learning models are often labeled as "black-box" systems, as even domain experts struggle to interpret their inner workings -- a challenge that is particularly critical in medicine, where explainability is not just a technical preference but a clinical necessity. The Grad-CAM analysis in this paper lets the team verify that models are actually looking at pathologically relevant regions of the retina, rather than spurious background artifacts.
What the results show
The paper reports consistently strong performance across all three tasks, with the fusion approach and frequency-domain representations providing meaningful boosts over single-model RGB-only baselines. Importantly, the results show that ViTs and foundation models like RETFound are genuinely competitive with -- and in several cases superior to -- traditional CNNs on UWF data, even though these models were originally designed for standard CFP images.
For context, other teams working on the same UWF4DR dataset have reported results like an AUROC of 0.9055 on the test set using EfficientNet-B1, and an average AUC-ROC of 0.8582 on the test set using a pretrained ResNet-34. The multi-model fusion approach in this paper targets robustness across all three tasks simultaneously, rather than optimizing a single metric on a single task.
Where this falls short
A few important caveats apply. The study is a benchmarking paper, not a clinical trial -- the models have not been validated on external patient populations or tested in a real screening workflow. UWF imaging equipment is also not universally available, particularly in low- and middle-income countries where DR burden is highest. In high-income countries, widespread screening programs have contributed to earlier detection, but LMICs continue to face significant barriers including limited access to ophthalmic care and low screening coverage. A highly accurate model is only useful if the imaging hardware is accessible.
Additionally, the frequency-domain approach adds computational overhead, and the feature-level fusion pipeline requires training and maintaining multiple models simultaneously -- a non-trivial engineering burden for a resource-constrained clinic.
Why this matters beyond the paper
The broader significance here is the systematic validation that modern architectures -- especially ViTs and foundation models -- can transfer effectively to UWF imaging, a modality that has been largely underserved by the deep learning literature. The UWF4DR dataset is publicly available, meaning teams can build directly on these benchmarks. The paper also establishes frequency-domain analysis as a credible complementary signal for retinal imaging, opening a direction that future work can explore with more specialized architectures.
No code or pre-trained model weights are released alongside this paper, but the use of the publicly available UWF4DR challenge dataset means the experiments are fully reproducible by anyone with access to the data. The RETFound model weights used in the study are also publicly available on GitHub, making it straightforward for practitioners to replicate the foundation model component of the pipeline.