Fundus Eye Disease Classification Using Vision Transformer With Fine-Tuning And Attention Map
DOI:
https://doi.org/10.52436/1.jutif.2026.7.5.5152Keywords:
Attention Map, Data Augmentation, Eye Disease Classification, Fine-Tuning, Fundus Image, Vision TransformerAbstract
Visual impairment affects over 2.2 billion people globally, with 1 billion cases preventable through early detection. This research aims to address early detection challenges by explicitly developing a classification model for eye diseases using fundus images. We employed the Vision Transformer (ViT-B/16) with fine-tuning transfer learning, trained on a balanced dataset enhanced by light data augmentation techniques such as random rotation, horizontal flipping, and brightness/contrast adjustment. Attention maps were integrated to provide visual explanations of the regions influencing model decisions, thereby supporting interpretability in clinical contexts. The fine-tuned ViT-B/16 model achieved 95% accuracy, 94% precision, 95% recall, and 94% F1-score, with AUC values of 1.00 for cataract and diabetic retinopathy, 0.99 for glaucoma, and 0.98 for normal conditions. The attention map analysis consistently highlighted clinically relevant retinal areas aligned with disease characteristics. This research contributes to the field of informatics by delivering an interpretable, high-performance AI tool for early eye disease detection and supporting scalable medical applications.
Downloads
References
World Health Organization, “Action plan for integrated people-centred eye care in South-East Asia 2022–2030,” New Delhi, 2022. [Online]. Available: https://www.who.int/publications/i/item/9789290210078
World Health Organization, “World report on vision Executive Summary,” Geneva, 2019. [Online]. Available: https://www.who.int/publications/i/item/world-report-on-vision
M. Wassel, A. M. Hamdi, N. Adly, and M. Torki, “Vision Transformers Based Classification for Glaucomatous Eye Condition,” Proc. - Int. Conf. Pattern Recognit., pp. 5082–5088, 2022, doi: 10.1109/ICPR56361.2022.9956086.
D. Wang, J. Lian, and W. Jiao, “Multi-label classification of retinal disease via a novel vision transformer model,” Front. Neurosci., vol. 17, 2024, doi: 10.3389/fnins.2023.1290803.
J. Wang et al., “SSVT: Self-Supervised Vision Transformer For Eye Disease Diagnosis Based On Fundus Images,” Proc. - Int. Symp. Biomed. Imaging, pp. 4–7, 2024, doi: 10.1109/ISBI56570.2024.10635531.
F. N. Cahya, N. Hardi, D. Riana, and S. Hadianti, “Klasifikasi Penyakit Mata Menggunakan Convolutional Neural Network ( CNN),” Sist. J. Sist. Inf., vol. 10, no. 3, pp. 1–9, 2021, doi: 10.59407/jrsit.v1i3.529.
A. G. Tuwan, M. Iskandar, A. Y. Zakiyyah, and K. A. Minor, “Eye Diseases Multiclass Classification Using Convolutional Vision Transformer,” vol. 1, 2025, doi: 10.36227/techrxiv.173886337.74494015/v1.
A. Khan et al., “A Recent Survey of Vision Transformers for Medical Image Segmentation,” vol. 2, pp. 1–60, 2023, doi: https://doi.org/10.48550/arXiv.2312.00634.
P. Komorowski and H. Baniecki, “Towards Evaluating Explanations of Vision Transformers for Medical Imaging,” Comput. Sci., vol. 1, p. 1, 2023, doi: https://doi.org/10.48550/arXiv.2304.06133.
E. U. Henry, O. Emebo, and C. Asotie, “Vision Transformers in Medical Imaging : A Review,” Comput. Sci., vol. 1, p. 1, 2021, doi: https://doi.org/10.48550/arXiv.2211.10043.
A. Halder, S. Gharami, P. Sadhu, P. K. Singh, M. Woźniak, and M. F. Ijaz, “Implementing vision transformer for classifying 2D biomedical images,” Sci. Rep., pp. 1–19, 2024, doi: 10.1038/s41598-024-63094-9.
M. Mansoori, S. Shahabodini, F. Bayatmakou, J. Abouei, K. N. Plataniotis, and A. Mohammadi, “Advancements in Medical Image Classification through Fine-Tuning Natural Domain Foundation Models,” Electr. Eng. Syst. Sci., vol. IV, pp. 1–6, 2025, doi: https://doi.org/10.48550/arXiv.2505.19779.
M. Chung, J. B. Won, and G. Kim, “Evaluating Visual Explanations of Attention Maps for Transformer-based Medical Imaging,” Comput. Sci., vol. 1, pp. 1–11, 2025, doi: https://doi.org/10.1007/978-3-031-77610-6_11.
O. Firas, “A combination of SEMMA & CRISP-DM models for effectively handling big data using formal concept analysis based knowledge discovery : A data mining approach,” Eng. Technol. Sci., vol. 08, no. 01, pp. 9–14, 2022, doi: https://doi.org/10.30574/wjaets.2023.8.1.0147.
Y. Zhang, J. Wang, and J. M. Gorriz, “Deep Learning and Vision Transformer for Medical Image Analysis,” J. Imaging, vol. 9, no. 7, pp. 9–12, 2023, doi: https://doi.org/10.3390/jimaging9070147.
A. Dosovitskiy et al., “An Image Is Worth 16X16 Words : Transformer For Image Recognition At Scale,” Proc. Int. Conf. Learn. Represent., vol. 2, p. 22, 2021, doi: https://doi.org/10.48550/arXiv.2010.11929.
S. Hong, J. Wu, L. Zhu, and W. Chen, “Brain tumor classification in VIT-B/16 based on relative position encoding and residual MLP,” PLoS One, vol. 19, no. 7 July, pp. 1–24, 2024, doi: 10.1371/journal.pone.0298102.
A. Davila, J. Colan, and Y. Hasegawa, “Comparison of fine-tuning strategies for transfer learning in medical image classification,” arXiv, vol. 1, pp. 1–27, 2024, doi: https://doi.org/10.48550/arXiv.2406.10050.
A. Solihin, D. I. Mulyana, and M. B. Yel, “Klasifikasi Jenis Alat Musik Tradisional Papua menggunakan Metode Transfer Learning dan Data Augmentasi,” J. SISKOM-KB (Sistem Komput. dan Kecerdasan Buatan), vol. 5, no. 2, pp. 36–44, 2022, doi: 10.47970/siskom-kb.v5i2.279.
I. Daqiqil, Machine Learning Teori, Studi Kasus dan Implementasi Menggunakan Python. Pekanbaru: UR PRESS, 2021. doi: 10.5281/zenodo.5113507.
M. S. Qulub and S. Agustin, “Indentifikasi Penyakit Mata Dengan Klasifikasi Citra Foto Fundus Menggunakan Convolutional Neural Network (CNN),” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 5, pp. 11034–11039, 2024, doi: https://doi.org/10.36040/jati.v8i5.10974.
F. O. Awalullaili, D. Ispriyanti, T. Widiharih, D. Statistika, and U. Diponegoro, “Klasifikasi penyakit hipertensi menggunakan metode svm grid search dan svm genetic algorithm (GA),” J. GAUSSIAN, vol. 11, pp. 488–498, 2022, doi: 10.14710/j.gauss.11.4.488-498.
G. V. Doddi, “eye_diseases_classification,” Kaggle, 2022. https://www.kaggle.com/datasets/gunavenkatdoddi/eye-diseases-classification/data
K. Ghosh, C. Bellinger, R. Corizzo, P. Branco, B. Krawczyk, and N. Japkowicz, “The class imbalance problem in deep learning,” Mach. Learn., vol. 113, no. 7, pp. 4845–4901, 2024, doi: 10.1007/s10994-022-06268-8.
P. Sharma et al., “A Hybrid Multi Model Artificial Intelligence Approach For Glaucoma Screening Using Fundus Images,” npj Digit. Med., vol. 8, no. 1, pp. 1–20, 2025, doi: https://doi.org/10.1038/s41746-025-01473-w.
S. Sathyanarayanan, “Confusion Matrix-Based Performance Evaluation Metrics,” African J. Biomed. Res., vol. 27, no. 4, pp. 4023–4031, 2024, doi: 10.53555/ajbr.v27i4s.4345.
J. Li, “Area under the ROC Curve has the most consistent evaluation for binary classification,” PLoS One, vol. 19, no. 12 December, pp. 1–34, 2024, doi: 10.1371/journal.pone.0316019.
M. Salmi, D. Atif, D. Oliva, A. Abraham, and S. Ventura, “Handling imbalanced medical datasets: review of a decade of research,” Artif. Intell. Rev., vol. 57, no. 10, pp. 1–57, 2024, doi: 10.1007/s10462-024-10884-2.
A. Wollek et al., “Attention-based Saliency Maps Improve Interpretability of Pneumothorax Classification,” Radiol. Artif. Intell., vol. 5, no. 2, 2023, doi: 10.1148/ryai.220187.
N. A. Melyani, A. F. Lubis, and A. Tatamara, “Analysis and Comparison of Eye Disease Classification Using CNN, Inception V3, DenseNet 121, and MobileNet V2 Architectures,” Public Res. J. Eng. Data Technol. Comput. Sci., vol. 3, no. 1, pp. 42–58, 2025, doi: https://doi.org/10.57152/predatecs.v3i1.1559.
C. L. Lin and K. C. Wu, “Development of revised ResNet-50 for diabetic retinopathy detection,” BMC Bioinformatics, vol. 24, no. 1, pp. 1–18, 2023, doi: 10.1186/s12859-023-05293-1.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Asri Mulyani, Arfah Ramadani, Dede Kurniadi

This work is licensed under a Creative Commons Attribution 4.0 International License.

</a



