Differentiation of Active Corneal Infections from Healed Scars Using Deep Learning
- PMID: 34352302
- PMCID: PMC8792172
- DOI: 10.1016/j.ophtha.2021.07.033
Differentiation of Active Corneal Infections from Healed Scars Using Deep Learning
Abstract
Purpose: To develop and evaluate an automated, portable algorithm to differentiate active corneal ulcers from healed scars using only external photographs.
Design: A convolutional neural network was trained and tested using photographs of corneal ulcers and scars.
Participants: De-identified photographs of corneal ulcers were obtained from the Steroids for Corneal Ulcers Trial (SCUT), Mycotic Ulcer Treatment Trial (MUTT), and Byers Eye Institute at Stanford University.
Methods: Photographs of corneal ulcers (n = 1313) and scars (n = 1132) from the SCUT and MUTT were used to train a convolutional neural network (CNN). The CNN was tested on 2 different patient populations from eye clinics in India (n = 200) and the Byers Eye Institute at Stanford University (n = 101). Accuracy was evaluated against gold standard clinical classifications. Feature importances for the trained model were visualized using gradient-weighted class activation mapping.
Main outcome measures: Accuracy of the CNN was assessed via F1 score. The area under the receiver operating characteristic (ROC) curve (AUC) was used to measure the precision-recall trade-off.
Results: The CNN correctly classified 115 of 123 active ulcers and 65 of 77 scars in patients with corneal ulcer from India (F1 score, 92.0% [95% confidence interval (CI), 88.2%-95.8%]; sensitivity, 93.5% [95% CI, 89.1%-97.9%]; specificity, 84.42% [95% CI, 79.42%-89.42%]; ROC: AUC, 0.9731). The CNN correctly classified 43 of 55 active ulcers and 42 of 46 scars in patients with corneal ulcers from Northern California (F1 score, 84.3% [95% CI, 77.2%-91.4%]; sensitivity, 78.2% [95% CI, 67.3%-89.1%]; specificity, 91.3% [95% CI, 85.8%-96.8%]; ROC: AUC, 0.9474). The CNN visualizations correlated with clinically relevant features such as corneal infiltrate, hypopyon, and conjunctival injection.
Conclusions: The CNN classified corneal ulcers and scars with high accuracy and generalized to patient populations outside of its training data. The CNN focused on clinically relevant features when it made a diagnosis. The CNN demonstrated potential as an inexpensive diagnostic approach that may aid triage in communities with limited access to eye care.
Keywords: Artificial intelligence; Corneal scar; Corneal ulcer; Deep learning; Infectious keratitis.
Copyright © 2021 American Academy of Ophthalmology. Published by Elsevier Inc. All rights reserved.
Conflict of interest statement
Figures





Similar articles
-
Image-Based Differentiation of Bacterial and Fungal Keratitis Using Deep Convolutional Neural Networks.Ophthalmol Sci. 2022 Jan 29;2(2):100119. doi: 10.1016/j.xops.2022.100119. eCollection 2022 Jun. Ophthalmol Sci. 2022. PMID: 36249698 Free PMC article.
-
Neural network approach to classify infective keratitis.Curr Eye Res. 2003 Aug;27(2):111-6. doi: 10.1076/ceyr.27.2.111.15949. Curr Eye Res. 2003. PMID: 14632163
-
Classifying the severity of corneal ulcers by using the "1, 2, 3" rule.Cornea. 2007 Jan;26(1):16-20. doi: 10.1097/ICO.0b013e31802b2e47. Cornea. 2007. PMID: 17198008
-
A deep learning approach in diagnosing fungal keratitis based on corneal photographs.Sci Rep. 2020 Sep 2;10(1):14424. doi: 10.1038/s41598-020-71425-9. Sci Rep. 2020. PMID: 32879364 Free PMC article.
-
Updates in Diagnostic Imaging for Infectious Keratitis: A Review.Diagnostics (Basel). 2023 Oct 31;13(21):3358. doi: 10.3390/diagnostics13213358. Diagnostics (Basel). 2023. PMID: 37958254 Free PMC article. Review.
Cited by
-
Artificial intelligence in stroke risk assessment and management via retinal imaging.Front Comput Neurosci. 2025 Feb 17;19:1490603. doi: 10.3389/fncom.2025.1490603. eCollection 2025. Front Comput Neurosci. 2025. PMID: 40034651 Free PMC article. Review.
-
Advances in artificial intelligence applications for ocular surface diseases diagnosis.Front Cell Dev Biol. 2022 Dec 20;10:1107689. doi: 10.3389/fcell.2022.1107689. eCollection 2022. Front Cell Dev Biol. 2022. PMID: 36605721 Free PMC article. Review.
-
Establishment of a corneal ulcer prognostic model based on machine learning.Sci Rep. 2024 Jul 12;14(1):16154. doi: 10.1038/s41598-024-66608-7. Sci Rep. 2024. PMID: 38997339 Free PMC article.
-
Artificial intelligence and corneal diseases.Curr Opin Ophthalmol. 2022 Sep 1;33(5):407-417. doi: 10.1097/ICU.0000000000000885. Epub 2022 Jul 12. Curr Opin Ophthalmol. 2022. PMID: 35819899 Free PMC article. Review.
-
Achieving diagnostic excellence for infectious keratitis: A future roadmap.Front Microbiol. 2022 Oct 3;13:1020198. doi: 10.3389/fmicb.2022.1020198. eCollection 2022. Front Microbiol. 2022. PMID: 36262329 Free PMC article. No abstract available.
References
-
- India - number of ophthalmologists 2005–2020. https://www.statista.com/statistics/953172/india-number-of-ophthalmologi.... Accessed December 22, 2020.
-
- Access to eye care, uptake of services are issues in India. https://www.healio.com/news/ophthalmology/20120225/access-to-eye-care-up.... Accessed December 22, 2020.
-
- Strodthoff N, Strodthoff C. Detecting and interpreting myocardial infarction using fully convolutional neural networks. Physiol Meas. 2019;40(1):015001. - PubMed