A Patch-Based Attention Framework for Automated Diabetic Retinopathy Severity Grading Using Fundus Images
Diagnostics · 2026-11-01 · 16 (21) · 3601
DOI: 10.3390/diagnostics16213601 ↗At a glance
Journal article in Diagnostics, published online on 2026-11-01. Written by Abdulnasır Yıldız and 1 co-authors. Institution: Department of Electrical and Electronics Engineering, Dicle University, Diyarbakır 21200, Turkey. 45 references. The full text is freely available (open access, CC BY 4.0). Funded by: Dicle University Scientific Research Projects (DÜBAP) Coordinatorship.
Abstract (original language)
Background/Objectives: Automated diabetic retinopathy (DR) severity grading from fundus images is a challenging task due to the high resolution of retinal images and the spatially sparse nature of pathological lesions.
Methods
In this study, we propose a patch-based attention framework for DR severity grading that exploits localized information while avoiding aggressive global downsampling. Each fundus image is partitioned into non-overlapping patches, which are processed using a shared ResNet-18 encoder to extract patch-level feature representations. An attention-based aggregation mechanism then assigns adaptive importance weights to the extracted features and produces an image-level representation for severity classification. The proposed framework is evaluated on the APTOS 2019 dataset.
Results
An analysis of different patch configurations identifies 25 patches as the best-performing setting, achieving a multi-class accuracy of 0.852, compared with 0.817 for the whole-image baseline. A controlled ablation using the same effective input resolution further shows that attention-based aggregation achieves the highest accuracy and F1-score among the evaluated whole-image and patch-based aggregation configurations. The model also achieves a binary DR/No-DR accuracy of 0.986. Attention visualizations provide qualitative insight into the regions contributing to model predictions.
Conclusions
These results demonstrate the potential of attention-guided patch-based feature learning for accurate and interpretable diabetic retinopathy severity grading.
Subjects
Author keywords
Authors and institutions
- Department of Electrical and Electronics Engineering, Dicle University, Diyarbakır 21200, Turkey.
- Department of Computer Engineering, Mardin Artuklu University, Mardin 47200, Turkey.
ORCID profiles: Abdulnasır Yıldız, Hasan Zan
Funding
- Dicle University Scientific Research Projects (DÜBAP) Coordinatorship
Cite
APA
Yıldız, A., & Zan, H. (2026). A Patch-Based Attention Framework for Automated Diabetic Retinopathy Severity Grading Using Fundus Images. Diagnostics, 16(21), 3601. https://doi.org/10.3390/diagnostics16213601
Vancouver
Yıldız A, Zan H. A Patch-Based Attention Framework for Automated Diabetic Retinopathy Severity Grading Using Fundus Images. Diagnostics. 2026;16(21):3601. doi:10.3390/diagnostics16213601
BibTeX
@article{Yldz2026,
author = {Yıldız, Abdulnasır and Zan, Hasan},
title = {A Patch-Based Attention Framework for Automated Diabetic Retinopathy Severity Grading Using Fundus Images},
journal = {Diagnostics},
year = {2026},
volume = {16},
number = {21},
pages = {3601},
doi = {10.3390/diagnostics16213601}
}
EUVIMED