Ensemble Deep Learning for Automated Detection and Classification of Ungradable Ultrawide-Field Retinal Images

Cameron Mehran Ashrafzadeh, Raul Garrido Garcia, Xiyu Yang, Daniel Uriel Gonzalez Quezada, Milan Bahi, Hassan Naushad Jessani, Vivian Paraskevi Douglas, Sakshi Shiromani, Ward Fickweiler, Jennifer K. Sun, Lloyd P. Aiello, Paolo S. Silva, Mauricio Santillana
Investigative Ophthalmology & Visual Science
Volume 67, Issue 7
June 15, 2026

Purpose : To develop and evaluate an ensemble deep-learning model that detects and classifies ungradable ultrawide-field (UWF) retinal images.

Methods : 27,671 UWF images were labeled as gradable or ungradable by certified graders. Ungradable images were defined as optic disc or macula obscured, greater than 50% of the peripheral field obscured or blur/defocus worse than ETDRS standard 14. An ensemble architecture was developed by training multiple SwinV2-Large models across five data folds, each specialized on different data partitions. Each fold was partitioned into training, validation, and held-out test sets. Performance was assessed using balanced accuracy, sensitivity, specificity, AUC-ROC, and F1 score. Default ensembles (0.5 threshold), calibrated ensembles and default individual models were evaluated.

Results : The test set included 806 gradable and 20 ungradable images. The ensemble model achieved an AUC 0.928 (calibration) and 0.869 (test), with sensitivity 86.0% and specificity 86.9%. Individual models achieved calibration AUCs from 0.896-0.932 and test AUCs from 0.854-0.877. The ensemble approach achieved consistent AUC performance on calibration (0.928) and test sets (0.869), demonstrating more balanced generalization compared to individual models. This stability across heterogeneous image quality issues highlights the ensemble's improved robustness to diverse ungradability patterns.

Conclusions : An ensemble deep-learning model for UWF images detects ungradable images with good accuracy and well-calibrated performance. This approach has superior generalization compared to individual models by reducing overfitting to specific image quality patterns. By effectively handling the heterogeneous nature of ungradability factors, this automated quality control system may improve reliability and efficiency in large-scale DR screening programs and reduce the burden of manual image quality assessment in clinical research workflows.

‍

Related publications