The Use of Explainable Deep Learning Models for Diabetic Retinopathy Management: From Screening to Severity Grading

Authors

  • Silas Majyambere Department of Computer and Systems Sciences, Stockholm University, Sweden
  • Tony Lindgren Department of Computer and Systems Sciences, Stockholm University, Sweden
  • Celestin Twizere Center for Biomedical Engineering and E-health (CEBE), University of Rwanda, Rwanda
  • Egide Gisagara University Teaching Hospital of Kigali (CHUK), Rwanda

Keywords:

Keywords: Explainable Deep Learning, Diabetic Retinopathy, DR Screening, DR Grading, Image Denoising, SHAP.

Abstract

Background: Diabetic Retinopathy (DR), a leading cause of blindness, is rising globally due to increasing diabetes prevalence, especially in low-resource settings lacking diagnostic tools and specialists. Early DR is often asymptomatic; timely and scalable screening is essential. This study introduces a cost-effective two-stage deep learning framework for DR detection: Stage 1 performs binary classification on Optical Coherence Tomography (OCT) images, while Stage 2 grades DR severity use multi-class classification. Shapley Additive exPlanations (SHAP) enhance model transparency and clinical trust. Trained on public datasets and validated by a CHUK ophthalmologist, the approach provides a cost-effective solution for DR management in the underserved diabetic population.

Methods: The study followed five phases: (1) image dataset preparation using a four-step preprocessing pipeline: blurring, denoising, augmentation, and vector transformation for CNN input; (2) training and evaluating five pre-trained CNNs (MobileNetV3, DenseNet121, InceptionV3, Xception, VGG19) with standard metrics; (3) applying SHAP to interpret predictions of a multi-class model; (4) validating performance on 270 CHUK specialist-annotated images and 270 from the Brazil dataset; and (5) deploying the top models in a web application.

Results: The proposed model achieved strong performance in both DR screening and severity grading. DenseNet121 performed best, reaching 97% accuracy for referable DR detection and class accuracy of 97% (healthy), 92% (mild), 89% (moderate), 94% (severe), and 92% (proliferative). Validation datasets yielded Cohen’s Kappa scores of 0.771 and 0.680, demonstrating substantial agreement with expert grading. SHAP explanations enhanced interpretability across DR stages.

Conclusion: The applied preprocessing techniques improved image clarity and boosted model accuracy in grading DR severity. The proposed CNN framework enables end-to-end DR management. Combining expert validation, quality imaging, and interpretable deep learning offers a promising solution for early detection of DR and vision preservation in diabetic populations.

Author Biography

Silas Majyambere, Department of Computer and Systems Sciences, Stockholm University, Sweden

1 Department of Computer and Systems Sciences, Stockholm University, Sweden.

2 Center for Biomedical Engineering and E-health (CEBE), University of Rwanda, Rwanda

References

References

. International diabetes federation. IDF diabetes atlas, 10th edn (2021). Brussels, Belgium. Available at: https://www.diabetesatlas.org

. M. Kropp, et al. Diabetic retinopathy as the leading cause of blindness and early predictor of cascading complications-risks and mitigation. EPMA J. 2023;14(1):21-42. 2023. doi:10.1007/s13167-023-00314-8

. U. V. Shukla and K. Tripath. Diabetic Retinopathy, PMID: 32809640, 2023

. M. Porta and F. Bandello. Diabetic retinopathy: A clinical update, Diabetologia, pp. 1617–1634, 2002

. E. W. J. Dervan, P. D O’Brien, H. Hobbs, R. Acheson, and D.I Flitcroft. Targeted mydriasis strategies for diabetic retinopathy screening clinics, Nature Eye Vol. 24, pp. 207–1212, 2010

. T. Tan and T. Wong. Diabetic retinopathy: Looking forward to 2030, Frontiers in Endocrynology, 2022. DOI 10.3389/fendo.2022.1077669

. ETDRS Report. Early Treatment Diabetic Retinopathy Study design and baseline patient characteristics. Number 7. Ophthalmology. 1991;98(5 Suppl):741-756. doi:10.1016/s0161-6420(13)38009-9

. Y. Zhengwei , T. Tien-En, S. Yan Shao, Y. W. Tien, and L. Xiaorong. Classification of diabetic retinopathy: Past, present and future, Frontiers in Endocrinology, 2022. https://doi.org/10.3389/fendo.2022.1079217

. H. T. María, R. O. Roberto, H. Roberto, C. G. T Gonzalo, I. L. María, and G. María. An explainable deep-learning model reveals clinical clues in diabetic retinopathy through SHAP, Biomedical Signal Processing and Control 102, 2025. https://doi.org/10.1016/j.bspc.2024.107328

. G. Andrzej, S. Panisa, and N. Onnisa. Artificial Intelligence for Diabetic Retinopathy Screening Using Color Retinal Photographs: From Development to Deployment, Ophthalmology and Therapy, pp. 1419–1437, 2023.

https://doi.org/10.1007/s40123-023-00691-3

. H. Jiang, K. Yang, M. Gao, D. Zhang, H. Ma, and W. Qian. An Interpretable Ensemble Deep Learning Model for Diabetic Retinopathy Disease Classification, EMBC, 2019. doi: 10.1109/EMBC.2019.8857160

. R. H. A. Hamada, et al. A pilot study on diabetes detection using handheld fundus camera and mobile app development, Discovery in Applied Sciences, 2025. https://doi.org/10.1007/s42452-025-06460-0

. H. Naz, R. Nijhawan, and J. A. Neelu. Clinical utility of handheld fundus and smartphone?based camera for monitoring diabetic retinal diseases: a review study,

International Ophthalmology vol. 44, 2024. https://doi.org/10.1007/s10792-024-02975-4

. T. Martina, V. Romano, D. Hendelja, K. Vilma, B. Tomislav, and R. Dario. Diagnostic Accuracy of Hand-Held Fundus Camera and Artificial Intelligence in Diabetic Retinopathy Screening, Biomedicines, 2023.

https://doi.org/10.3390/biomedicines12010034

. N. Mia, K. Feti, R.Nina, and S. H. Widihastha. Efficacy of Smartphone-based Fundus Photo in Vision Threatening Diabetic Retinopathy Screening: Developing Country Perspective, The Open Ophthalmology Journal, Vol. 18, 2024.

http://dx.doi.org/10.2174/0118743641281527240116095349

. World Health Organization. Regional Office for South-East Asia, Strengthening diagnosis and treatment of Diabetic Retinopathy in SEA Region, 2020. https://iris.who.int/handle/10665/334224

. M. B. Charlotte, M. Sanctus, P. C. Rutayisire, M. N. Loise, R. McQuillan, and H. W Sarah. Socio-demographic and clinical characteristics of diabetes mellitus in rural Rwanda: time to contextualize the interventions? A cross-sectional study, BMC Endocrine Disorders, 2020. https://doi.org/10.1186/s12902-020-00660-y

. M. Hayati, et al. Impact of CLAHE-based image enhancement for diabetic retinopathy classification through deep learning, Procedia Computer Science 216, pp. 57–66, 2023.

. U. K. Inam, et al. A Computer-Aided Diagnostic System to Identify Diabetic Retinopathy, Utilizing a Modified Compact Convolutional Transformer and Low-Resolution Images to Reduce Computation Time, Biomedicines Vol. 11, 2023. https://doi.org/10.3390/biomedicines11061566

. S. B. Anuja and F. R. Dhanaseelan. Denoising of Diabetic Retinopathy Images Using Adaptive Median Filter, IJATEM pp. 122-131, 2023.

. X. Luo, W. Wang, Y. Xu, Z. Lai, and J. Xiaopeng. A deep convolutional neural network for diabetic retinopathy detection via mining local and long?range dependence, CAAI Transactions on Intelligence Technology Vol. 9, pp. 153–166, 2023. https://doi.org/10.1049/cit2.12155

. M. O. Odigie, G. O. George, E. C. Igodan, and K. C. Ukaoha. Detection of Diabetic Retinopathy Using VGG19 and ResNet 50 Models, EASJECS Vol. 7, 2024. https://doi.org/10.36349/easjecs.2024.v07i08.002

. D. R. Sarvamangala and R. V. Kulkarni. Convolutional neural networks in medical image understanding: a survey, Evolutionary Intelligence Vol. 15, pp. 1-22, 2022. https://doi.org/10.1007/s12065-020-00540-3

. K. Rajdeep, K. Rakesh, and M. Gupta. Review on Transfer Learning for Convolutional Neural Network, ICACCCN, 2021.

. L. Tuggener, J. Schmidhuber, and T. Stadelmann. Is it enough to optimize CNN architectures on ImageNet?, Frontiers in Computer Science, 2022.

https://doi.org/10.3389/fcomp.2022.1041703

. J. E. Gutierrez, et al. Analysis of Pre-trained Convolutional Neural Network Models in Diabetic Retinopathy Detection Through Retinal Fundus Images, CISIM pp. 202-213, 2022.

. G. Huang, L. Zhuang, P. Geoff, V. M. Laurens, and, K. Q. Weinberger. Convolutional Networks with Dense Connectivity, TPAMI, 2019. DOI 10.1109/TPAMI.2019.2918284

. H. Chunjuan, S. Mohammad , and E. R. Adham. MobileNet-V2 /IFHO model for Accurate Detection of early-stage diabetic retinopathy, Heliyon Vol. 10, 2024.

https://doi.org/10.1016/j.heliyon.2024.e37293

. B. Rakesh, D. Ragavi, M. Kavya Reddy, and G. L. Sumalata. Detection and Classification of Non-Proliferation Diabetic Retinopathy using VGG-19 CNN Algorithm, ICAAIC, 202. DOI: 10.1109/ICAAIC56838.2023.10141450

. D. Gautam, G. Yash, and J. Anamika. Machine Learning-Based Diabetic Retinopathy Detection: A Comprehensive Study Using InceptionV3 Model, ICETSIS, 2024. DOI: 10.1109/ICETSIS61505.2024.10459541

. F. Chollet. Xception: Deep learning with depthwise separable convolutions, CVPR, pp. 1251–1258, 2017. DOI 10.1109/CVPR.2017.195

. V. Ashok, N. Hosmane, G. Mahagaonkar, A. Gudigar, and P. Anvith. Diabetic Retinopathy Detection using Retinal Images and Deep Learning Model, IJITEE Vol. 10 Issue-9, 2021.

. K. M. Prasant, A. J. F. Sharmila, K. B. Rabindra, S. R. Diptendu, and J. S. Manob. Leveraging Shapley Additive Explanations for Feature Selection in Ensemble Models for Diabetes Prediction, Bioengineering Vol. 11, 2024.

. V. Bellemo, et al. Artificial intelligence using deep learning to screen for referable and vision-threatening diabetic retinopathy in Africa: a clinical validation study, Lancet Digital Health Vol. 1, 2019.

. N. Whitestone, et al. Feasibility and acceptance of artificial intelligence-based diabetic retinopathy screening in Rwanda, British Journal of Ophthalmology, 2022.

https://doi.org/10.1136/bjo-2022-322683

. M. SHORFUZZAMAN, M. S. HOSSAIN, and A. E. SADDIK. An Explainable Deep Learning Ensemble Model for Robust Diagnosis of Diabetic Retinopathy Grading, ACM Transactions on Multimedia Computing, Communications, and Applications, Vol. 17, 2021. https://doi.org/10.1145/3469841

. G. Alwakid, W. Gouda, M. Humayun, and N. Z. Jhanjhi. Enhancing diabetic retinopathy classification using deep learning, Sage Digital Health Vol. 9, pp. 1-18, 2023. DOI: 10.1177/20552076231203676

Published

2025-11-21

How to Cite

Majyambere, S. ., Lindgren, T., Twizere, C. ., & Gisagara, E. (2025). The Use of Explainable Deep Learning Models for Diabetic Retinopathy Management: From Screening to Severity Grading. Journal of Health Informatics in Developing Countries, 19(02). Retrieved from https://www.jhidc.org/index.php/jhidc/article/view/457

Issue

Section

Research Articles