Deep Learning-Based Ophthalmic Disease Classification With Ensemble Modeling And Grad-CAM Visualization

Authors

  • Mukesh Kumar Ojha Department of Electronics and Communication Engineering,Greater Noida Institute of Technology, Greater Noida, India
  • Tarun Kumar Department of Information Technology, International Institute of Information Technology, Pune,India
  • Amrita Rai Galgotias college of Engineering and Technology, Greater Noida, India.
  • Sindhu hak gupta Amity School of Engineering and Technology, Amity University, Noida–201313,U.P.,India
  • Ajay Roy Department of Electrical Engineering, college of Engineering, University of Bisha, Saudi Arabia

DOI:

https://doi.org/10.29284/6pj2vq53

Keywords:

Ophthalmic diseases, Fundus image classification, Deep learning, Convolutional neural networks, Ensemble model, Grad-CAM.

Abstract

Cataract, diabetic retinopathy (DR), and glaucoma are ophthalmic diseases that cause vision impairment and blindness worldwide. For safeguardingtimely treatment and preventing irreversible vision loss, early detection and diagnosis are vital. This study presents a comprehensive and interpretable deep learning framework that blends multiple pre-trained convolutional neural network architectures, ensemble learning, and Grad-CAM for accurate and transparent segmentation of retinal fundus imagesfor multi-class classification of ophthalmic diseases. Four CNN models, i.e. ResNet-50, InceptionV3, GoogLeNet, and AlexNet were adjusted through transfer learning approaches and trained on a curated dataset comprising four categories: Cataract, Diabetic Retinopathy, Glaucoma, and Normal. Data augmentation approaches, such as rotation, translation, and scaling, were employed to enhance model robustness and generalization. Each model was evaluated in context toperformance evaluation parameters such as accuracy, confusion matrices, and ROC curves. Further, an ensemble model was constructed to combine the strengths of individual networks, achieving improved diagnostic accuracy. ResNet-50 attained the highest classification accuracy of 93.80 % among the individual model, while the ensemble approach demonstrated superior overall performance with accuracy of 94.14 %. To address the limitations caused by opaque decision-making process of CNN, visualization methods such as Gradient-weighted Class Activation Mapping (Grad-CAM) are employed to interpret class activation regions and validate model focus on clinically relevant areas to boost interpretability. The proposed framework establishes a promising foundation for clinical decision support systems and AI-assisted classification of ophthalmic diseases that not only achieves high diagnostic reliability but also bridges performance and explainability.

References

1. Kandel, I. and Castelli, M. (2020) Transfer Learning with Convolutional Neural Networks for Diabetic Retinopathy Image Classification. A Review.Applied Sciences, 10(6), 2021.https://doi.org/10.3390/app10062021

2. Cai, L., Gao, J. and Zhao, D. (2020) A review of the application of deep learning in medical image classification and segmentation. Ann Transl Med, 8(11), 713.doi: 10.21037/atm.2020.02.44

3. Dubey, S.R. and Jalal, S. (2023) A Comprehensive Survey on Deep Learning for Ocular Disease Classification. Artificial Intelligence in Medicine, 141, 102693.

4. Cho, H., Hwang, Y.H., Chung, J.K., Lee, K.B., Park, J.S., Kim, H.G. and Jeong, J.H. (2021) Deep Learning Ensemble Method for Classifying Glaucoma Stages Using Fundus Photographs and Convolutional Neural Networks. Curr Eye Res, 46(10), 1516–1524. doi: 10.1080/02713683.2021.1900268

5. Gulshan, V., Peng, L., Coram, M., et al. (2016) Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs.JAMA, 316(22), 2402–2410.

https://doi.org/10.1001/jama.2016.17216

6. Li, Z., He, Y., Keel, S., Meng, W., Chang, R.T. and He, M. (2018) Efficacy of a deep learning system for detecting glaucomatous optic neuropathy based on color fundus photographs.Ophthalmology,125(8),1199–1206.

https://doi.org/10.1016/j.ophtha.2018.01.023

7. Singh, P., Bhatia, M. and Kumar, A. (2022) Multi-class retinal disease classification using DenseNet and data augmentation.Expert Systems with Applications, 200, 117050.

8. Dietterich, T.G. (2000) Ensemble methods in machine learning.Multiple Classifier Systems, 1–15.

9. Krogh, A. and Vedelsby, J. (1995) Neural network ensembles, cross validation, and active learning. NIPS, 231–238.

10. Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D. and Batra, D. (2017) Grad-CAM: Visual explanations from deep networks via gradient-based localization.In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 618–626.

11. Pratt, H., Coenen, F., Broadbent, D.M., Harding, S.P. and Zheng, Y. (2016) Convolutional neural networks for diabetic retinopathy.Procedia Computer Science, 90, 200–205.

12. Agarwal, A., Singh, R. and Gupta, S. (2020) Glaucoma detection using transfer learning based deep CNN. Biomedical Signal Processing and Control, 62, 102150.

13. Li, X., Liu, R. and Chen, J. (2021) Automatic cataract detection using InceptionV3 transfer learning. Computer Methods and Programs in Biomedicine, 204, 106050.

14. Zhang, K., Liu, Y., Chen, J. and Chen, L. (2018) DeepDR: Detection of Diabetic Retinopathy Using Deep Convolutional Neural Networks. IEEE Transactions on Medical Imaging, 37(11), 2369–2380.

15. .Li, T., Gao, Y. and Wang, K. (2023) Multi-Disease Classification of Retinal Images Based on Deep Learning. Biomedical Signal Processing and Control, 79, 104098.

16. Tan, M., Al-Bander, A. and Pratt, S. (2022) Transfer Learning for Diabetic Retinopathy Classification Using Pretrained Deep Convolutional Neural Networks. Computers in Biology and Medicine, 141, 105080.

17. Muhammad, H., Fraz, S. and Barman, A. (2020) Automated Glaucoma Detection Using Deep Convolutional Neural Networks. Expert Systems with Applications, 158, 113486.

18. Li, X., Hu, Y. and Zhao, W. (2022) Automatic Cataract Classification Using Deep Convolutional Neural Networks.BMC Ophthalmology, 22(1), 1–12.

19. He, K., Zhang, X., Ren, S. and Sun, J. (2016) Deep residual learning for image recognition.In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770–778.

20. Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J. and Wojna, Z. (2016) Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2818–2826.

21. Krizhevsky, A., Sutskever, I. and Hinton, G.E. (2017) ImageNet Classification with Deep Convolutional Neural Networks. Communications of the ACM, 60(6), 84–90.

22. Ajitha, S. and Rani, S.S. (2019) Automated cataract detection using transfer learning with deep convolutional neural networks. International Journal of Engineering and Advanced Technology, 8(6S3), 540–544.

23. Zeng, Y., Xu, W. and Zhang, H. (2023) Lightweight EfficientNet-based model for multi-disease eye image classification.Biomedical Signal Processing and Control, 85, 104950.

Downloads

Published

2026-03-09

Issue

Section

Articles

How to Cite

[1]
M. K. Ojha, T. Kumar, A. Rai, S. hak gupta, and A. Roy, “Deep Learning-Based Ophthalmic Disease Classification With Ensemble Modeling And Grad-CAM Visualization”, IJASIS, pp. 1403–1417, Mar. 2026, doi: 10.29284/6pj2vq53.

Share