Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

Scientific Reports
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. scientific reports
  3. articles
  4. article
A vision transformer model for the detection of glaucoma from optic disc photographs
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 24 March 2026

A vision transformer model for the detection of glaucoma from optic disc photographs

  • Ella Bouris1,
  • Brayden K. Leyva1,
  • Ojo Perpetua Odugbo6,
  • Jericho Lawson4,
  • Sang Wook Jin2,
  • Zhe Fei5,
  • Esteban Morales1,
  • Omar Alkhalili1 &
  • …
  • Joseph Caprioli3 

Scientific Reports , Article number:  (2026) Cite this article

  • 433 Accesses

  • Metrics details

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Abstract

This study uses a deep learning algorithm to analyze optic disc photographs (ODPs) and classify eyes as glaucomatous or healthy based on optic nerve appearance. ODPs from three databases were independently graded by two glaucoma specialists. Images were preprocessed using the open-source language R and RimNet, a deep learning model for optic disc segmentation, to prepare inputs for training. The model was developed with Python based on Google’s Vision Transformer (ViT). After assessing the ODPs, the model provided an output between 0 and 1 to predict glaucoma likelihood (≥ 0.5 signified glaucoma). Model performance was evaluated using the area under the receiver operating curve (AUC), where 1 indicates perfect classification. A total of 1,432 glaucomatous eyes with a mean MD of − 2.09 dB were analyzed using the model. The model achieved AUCs of 1.00, 0.98, and 1.00 in the training, validation, and test phases respectively. Overall accuracy in test images was 0.987, sensitivity was 0.994, and specificity was 0.969 with grader labels as the ground truth. A later assessment using 956 advanced glaucomatous eyes (MD < − 6 dB) with a mean MD of − 11.71 reached 99.9% accuracy. The model demonstrated high accuracy in detecting glaucomatous optic nerve damage from ODPs. The model’s strong potential for early disease detection suggests that deep learning can be a valuable, cost-effective tool in glaucoma screening, especially in resource-limited regions. Our study demonstrates the potential of deep learning in providing accessible, early-stage glaucoma detection, supporting global efforts to prevent vision loss.

Similar content being viewed by others

Glaucoma diagnosis using multi-feature analysis and a deep learning technique

Article Open access 16 May 2022

A generalised computer vision model for improved glaucoma screening using fundus images

Article Open access 05 November 2024

A generalizable deep learning regression model for automated glaucoma screening from fundus images

Article Open access 13 June 2023

Data availability

The data underlying this article are de-identified patient records and are available upon request to Dr. Joseph Caprioli, Ophthalmology, Jules Stein Eye Institute, Los Angeles, CA 90095, USA; Caprioli@jsei.ucla.edu.

References

  1. Steinmetz, J. D. et al. Causes of blindness and vision impairment in 2020 and trends over 30 years, and prevalence of avoidable blindness in relation to VISION 2020: The Right to Sight: An analysis for the Global Burden of Disease Study. Lancet Glob. Health. 9(2), e144–e160. https://doi.org/10.1016/S2214-109X(20)30489-7 (2021).

    Google Scholar 

  2. Vision impairment and blindness. Accessed 25 July 2023. https://www.who.int/news-room/fact-sheets/detail/blindness-and-visual-impairment.

  3. Burr, J. M. et al. The clinical effectiveness and cost-effectiveness of screening for open angle glaucoma: A systematic review and economic evaluation. Health Technol. Assess. 11(41), iii–iv. https://doi.org/10.3310/hta11410 (2007).

    Google Scholar 

  4. Moyer, V. A. Screening for glaucoma: U.S. Preventive Services Task Force recommendation statement. Ann. Intern. Med. 159(7), 484–489. https://doi.org/10.7326/0003-4819-159-6-201309170-00686 (2013).

    Google Scholar 

  5. Leske, M. C. The epidemiology of open-angle glaucoma: A review. Am. J. Epidemiol. 118(2), 166–191. https://doi.org/10.1093/oxfordjournals.aje.a113626 (1983).

    Google Scholar 

  6. Sommer, A. et al. Relationship between intraocular pressure and primary open angle glaucoma among white and black Americans. The Baltimore Eye Survey. Arch. Ophthalmol. Chic Ill 1960 109(8), 1090–1095. https://doi.org/10.1001/archopht.1991.01080080050026 (1991).

    Google Scholar 

  7. Hollows, F. C. & Graham, P. A. Intra-ocular pressure, glaucoma, and glaucoma suspects in a defined population. Br. J. Ophthalmol. 50(10), 570–586 (1966).

    Google Scholar 

  8. Kass, M. A. et al. The ocular hypertension treatment study: A randomized trial determines that topical ocular hypotensive medication delays or prevents the onset of primary open-angle glaucoma. Arch. Ophthalmol. Chic Ill. 1960 120(6), 701–713. https://doi.org/10.1001/archopht.120.6.701 (2002).

    Google Scholar 

  9. Balazsi, A. G., Drance, S. M., Schulzer, M. & Douglas, G. R. Neuroretinal rim area in suspected glaucoma and early chronic open-angle glaucoma. Correlation with parameters of visual function. Arch. Ophthalmol. Chic. Ill. 1960 102(7), 1011–1014. https://doi.org/10.1001/archopht.1984.01040030813022 (1984).

    Google Scholar 

  10. Quigley, H. A., Addicks, E. M. & Green, W. R. Optic nerve damage in human glaucoma. III. Quantitative correlation of nerve fiber loss and visual field defect in glaucoma, ischemic neuropathy, papilledema, and toxic neuropathy. Arch. Ophthalmol. Chic. Ill. 1960 100(1), 135–146. https://doi.org/10.1001/archopht.1982.01030030137016 (1982).

    Google Scholar 

  11. Varma, R., Steinmann, W. C. & Scott, I. U. Expert agreement in evaluating the optic disc for glaucoma. Ophthalmology 99(2), 215–221. https://doi.org/10.1016/s0161-6420(92)31990-6 (1992).

    Google Scholar 

  12. Tielsch, J. M., Katz, J., Quigley, H. A., Miller, N. R. & Sommer, A. Intraobserver and interobserver agreement in measurement of optic disc characteristics. Ophthalmology 95(3), 350–356. https://doi.org/10.1016/s0161-6420(88)33177-5 (1988).

    Google Scholar 

  13. Zangwill, L., Shakiba, S., Caprioli, J. & Weinreb, R. N. Agreement between clinicians and a confocal scanning laser ophthalmoscope in estimating cup/disk ratios. Am. J. Ophthalmol. 119(4), 415–421. https://doi.org/10.1016/s0002-9394(14)71226-7 (1995).

    Google Scholar 

  14. Resnikoff, S. et al. Estimated number of ophthalmologists worldwide (International Council of Ophthalmology update): Will we meet the needs?. Br. J. Ophthalmol. 104(4), 588–592. https://doi.org/10.1136/bjophthalmol-2019-314336 (2020).

    Google Scholar 

  15. Johnson, G. J. & Foster, A. Training in community ophthalmology. Int. Ophthalmol. 14(3), 221–226. https://doi.org/10.1007/BF00158322 (1990).

    Google Scholar 

  16. Ahn, J. M. et al. A deep learning model for the detection of both advanced and early glaucoma using fundus photography. PLoS ONE 13(11), e0207982. https://doi.org/10.1371/journal.pone.0207982 (2018).

    Google Scholar 

  17. Christopher, M. et al. Performance of deep learning architectures and transfer learning for detecting glaucomatous optic neuropathy in fundus photographs. Sci. Rep. 8, 16685. https://doi.org/10.1038/s41598-018-35044-9 (2018).

    Google Scholar 

  18. Nouri-Mahdavi, K. et al. Macular ganglion cell/inner plexiform layer measurements by Spectral Domain Optical Coherence Tomography for detection of early glaucoma and comparison to retinal nerve fiber layer measurements. Am. J. Ophthalmol. 156(6), 1297-1307.e2. https://doi.org/10.1016/j.ajo.2013.08.001 (2013).

    Google Scholar 

  19. Bouris, E. et al. A neural network for automated image quality assessment of optic disc photographs. J. Clin. Med. 12(3), 1217. https://doi.org/10.3390/jcm12031217 (2023).

    Google Scholar 

  20. Rasheed, H. A. et al. RimNet: A deep neural network pipeline for automated identification of the optic disc rim. Ophthalmology Science 3(1), 100244. https://doi.org/10.1016/j.xops.2022.100244 (2023).

    Google Scholar 

  21. Alexey, D. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv: 2010.11929. (2020).

  22. Fu, Z. (2022). Vision Transformer: Vit and its Derivatives. arXiv preprint arXiv:2205.11239.

  23. Tan, M., & Le, Q. Efficientnetv2: Smaller models and faster training. In International Conference on Machine Learning, 10096–10106. PMLR (2021).

  24. Phan, S. et al. Evaluation of deep convolutional neural networks for glaucoma detection. Jpn. J. Ophthalmol. 63(3), 276–283. https://doi.org/10.1007/s10384-019-00659-6 (2019).

    Google Scholar 

  25. Zulfira, F. Z., Suyanto, S. & Septiarini, A. Segmentation technique and dynamic ensemble selection to enhance glaucoma severity detection. Comput. Biol. Med. 139, 104951. https://doi.org/10.1016/j.compbiomed.2021.104951 (2021).

    Google Scholar 

  26. Caprioli, J. Clinical evaluation of the optic nerve in glaucoma. Trans. Am. Ophthalmol. Soc. 92, 589–641 (1994).

    Google Scholar 

  27. Damms, T. & Dannheim, F. Sensitivity and specificity of optic disc parameters in chronic glaucoma. Invest. Ophthalmol. Vis. Sci. 34(7), 2246–2250 (1993).

    Google Scholar 

  28. Jonas, J. B., Gusek, G. C. & Naumann, G. O. Optic disc, cup and neuroretinal rim size, configuration and correlations in normal eyes. Invest. Ophthalmol. Vis. Sci. 29(7), 1151–1158 (1988).

    Google Scholar 

  29. Bengtsson, B. The variation and covariation of cup and disc diameters. Acta Ophthalmol. (Copenh) 54(6), 804–818. https://doi.org/10.1111/j.1755-3768.1976.tb01801.x (1976).

    Google Scholar 

  30. How, A. C. S., Tan, G. S. W. & Chan, Y. H. Population prevalence of tilted and torted optic discs among an adult Chinese population in Singapore: The Tanjong Pagar Study. Arch. Ophthalmol. 127(7), 894–899. https://doi.org/10.1001/archophthalmol.2009.134 (2009).

    Google Scholar 

  31. Grassi, L. et al. Phenotypic expressions of the optic disc in primary open-angle glaucoma. Eye https://doi.org/10.1038/s41433-023-02627-4 (2023).

    Google Scholar 

  32. Pan, C. W., Dirani, M., Cheng, C. Y., Wong, T. Y. & Saw, S. M. The age-specific prevalence of myopia in Asia: A meta-analysis. Optom. Vis. Sci. 92(3), 258–266. https://doi.org/10.1097/OPX.0000000000000516 (2015).

    Google Scholar 

  33. Girkin, C. A. Differences in optic nerve structure between individuals of predominantly African and European ancestry: Implications for disease detection and pathogenesis. Clin. Ophthalmol. (Auckl. N.Z.) 2(1), 65–69 (2008).

    Google Scholar 

  34. Zangwill, L. M. et al. Racial differences in optic disc topography: baseline results from the confocal scanning laser ophthalmoscopy ancillary study to the ocular hypertension treatment study. Arch. Ophthalmol. Chic. Ill. 1960 122(1), 22–28. https://doi.org/10.1001/archopht.122.1.22 (2004).

    Google Scholar 

  35. Tielsch, J. M. et al. Racial variations in the prevalence of primary open-angle glaucoma. The Baltimore Eye Survey. JAMA 266(3), 369–374 (1991).

    Google Scholar 

  36. Varma, R. et al. Race-, age-, gender-, and refractive error-related differences in the normal optic disc. Arch. Ophthalmol. Chic. Ill. 1960 112(8), 1068–1076. https://doi.org/10.1001/archopht.1994.01090200074026 (1994).

    Google Scholar 

  37. Li, Z. et al. 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 (2018).

    Google Scholar 

  38. Cho, J., Lee, K., Shin, E., Choy, G., Do, S. How much data is needed to train a medical image deep learning system to achieve necessary high accuracy? Published online 19 Nov 2015. Accessed 2 Oct 2023. http://arxiv.org/abs/1511.06348.

  39. Dai, L. et al. A deep learning system for detecting diabetic retinopathy across the disease spectrum. Nat. Commun. 12(1), 3242. https://doi.org/10.1038/s41467-021-23458-5 (2021).

    Google Scholar 

  40. Ting, D. S. W. et al. Development and validation of a deep learning system for diabetic retinopathy and related eye diseases using retinal images from multiethnic populations with diabetes. JAMA 318(22), 2211–2223. https://doi.org/10.1001/jama.2017.18152 (2017).

    Google Scholar 

  41. Gulshan, V. et al. 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 (2016).

    Google Scholar 

Download references

Funding

Dr. Caprioli received grants from the Simms/Mann Family Foundation, the Payden Memorial Foundation, and Research to Prevent Blindness. The funders had no role in the design and conduct of the study; collection, management, analysis, and interpretation of the data; preparation, review, or approval of the manuscript; and decision to submit the manuscript for publication.

Author information

Authors and Affiliations

  1. Glaucoma Division, Stein Eye Institute, Los Angeles, CA, USA

    Ella Bouris, Brayden K. Leyva, Esteban Morales & Omar Alkhalili

  2. Department of Ophthalmology, Dong-A University College of Medicine, Busan, Republic of Korea

    Sang Wook Jin

  3. Glaucoma Division, Stein Eye Institute, David Geffen School of Medicine, University of California at Los Angeles (UCLA), Los Angeles, CA, 90095, USA

    Joseph Caprioli

  4. Computer Science, University of California Los Angeles, Los Angeles, CA, USA

    Jericho Lawson

  5. Department of Statistics, University of California, Riverside, USA

    Zhe Fei

  6. Department of Ophthalmology, Faculty of Clinical Sciences, College of Health Sciences, University of Jos, Jos, Nigeria

    Ojo Perpetua Odugbo

Authors
  1. Ella Bouris
    View author publications

    Search author on:PubMed Google Scholar

  2. Brayden K. Leyva
    View author publications

    Search author on:PubMed Google Scholar

  3. Ojo Perpetua Odugbo
    View author publications

    Search author on:PubMed Google Scholar

  4. Jericho Lawson
    View author publications

    Search author on:PubMed Google Scholar

  5. Sang Wook Jin
    View author publications

    Search author on:PubMed Google Scholar

  6. Zhe Fei
    View author publications

    Search author on:PubMed Google Scholar

  7. Esteban Morales
    View author publications

    Search author on:PubMed Google Scholar

  8. Omar Alkhalili
    View author publications

    Search author on:PubMed Google Scholar

  9. Joseph Caprioli
    View author publications

    Search author on:PubMed Google Scholar

Contributions

E.B. conceived the study, developed the model architecture, conducted the analysis, and wrote the main manuscript text, B.K.L. drove the project forward, conducted data analysis, and edited the manuscript, E.M. , J.L., and Z.F. developed the model and analyzed the data, J.L. contributed to the computer science methodology, O.P.O. and S.W.J. provided clinical expertise and image grading, Z.F. performed statistical analysis, E.M. and O.A. assisted with data processing, and J.C. supervised the study and provided funding. All authors reviewed the manuscript.

Corresponding author

Correspondence to Joseph Caprioli.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Below is the link to the electronic supplementary material.

Supplementary Material 1 (download DOCX )

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Bouris, E., Leyva, B.K., Odugbo, O.P. et al. A vision transformer model for the detection of glaucoma from optic disc photographs. Sci Rep (2026). https://doi.org/10.1038/s41598-026-44662-7

Download citation

  • Received: 14 August 2025

  • Accepted: 12 March 2026

  • Published: 24 March 2026

  • DOI: https://doi.org/10.1038/s41598-026-44662-7

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Keywords

  • Glaucoma
  • Vision transformer
  • Deep learning
  • Fundus photography
Download PDF

Advertisement

Explore content

  • Research articles
  • News & Comment
  • Collections
  • Subjects
  • Follow us on Facebook
  • Follow us on X
  • Sign up for alerts
  • RSS feed

About the journal

  • About Scientific Reports
  • Contact
  • Journal policies
  • Guide to referees
  • Calls for Papers
  • Editor's Choice
  • Journal highlights
  • Open Access Fees and Funding

Publish with us

  • For authors
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

Scientific Reports (Sci Rep)

ISSN 2045-2322 (online)

nature.com footer links

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing