Skip to main content
Cureus logoLink to Cureus
. 2021 Aug 30;13(8):e17579. doi: 10.7759/cureus.17579

Clinical Wide-Field Retinal Image Deep Learning Classification of Exudative and Non-Exudative Age-Related Macular Degeneration

Nathaniel Tak 1, Akshay J Reddy 2,, Juliette Martel 3, James B Martel 1
Editors: Alexander Muacevic, John R Adler
PMCID: PMC8480936  PMID: 34646633

Abstract

Background: Age-related macular degeneration (AMD) is a disease that currently affects approximately 196 million individuals and is projected to affect 288 million in 2040. As a result, better and earlier detection methods for this disease are needed in an effort to provide a higher quality of care. One way to achieve this is through the utilization of machine learning. A deep neural network, specifically a convoluted neural network (CNN) can be trained to differentiate between different types of AMD images given the proper training data.

Methods: In this study, a CNN was trained on 420 Optos wide-field retinal images for 70 epochs in order to classify between exudative and non-exudative AMD. These images were obtained and labeled by ophthalmologists from the Martel Eye Clinic in Rancho Cordova, CA. 

Results: After completing the study, a model was created with 88% accuracy. Both the training and validation loss started above 1 and ended below 0.2. Despite only analyzing a single image at a time, the model was still able to accurately identify if the individual had AMD in both eyes or one eye only. The model had the most trouble with bilateral non-exudative AMD. Overall the model was fairly accurate in the other categories. It was noted that the neural network was able to further differentiate from a single image if the disease is present in left, right, or both eyes. This is a point of contention for further investigation as it is impossible for the artificial intelligence (AI) to extrapolate the condition of both eyes from only one image.

Conclusion: This research fostered the development of a CNN that was able to differentiate between exudative and non-exudative AMD. As well as determine if the disease is present in the right, left, or both eyes with a relatively high degree of accuracy. The model was trained on clinical data and can theoretically be used to classify other clinical images it has never encountered before. 

Keywords: artificial intelligence in medicine, macular degeneration, optos imaging, convolutional neural networks (cnn), computer-aided diagnosis

Introduction

Age-related macular degeneration is a chronic disease occurring in the central retina that affects 196 million people worldwide [1]. As the disease progresses, it leads to a loss of the visual field. This disease has a range of symptoms such as visual distortions and reduced central vision [1]. Typically, visual loss occurs in the later stages of the disease due to neovascularization and geographic atrophy [2]. As a result, age-related macular degeneration (AMD) can be further classified into exudative (wet) and non-exudative (dry). Wet AMD occurs when the choroidal neovascular membranes under the retina leak fluid and blood. If wet AMD is caught in the early stages it can be treated with anti-vascular endothelial growth factor (anti-VEGF) shots [3]. This, in turn, damages the retina. Dry AMD occurs when the retina and choroid degrade due to atrophy or detachment of the retinal pigment epithelium [3]. In the field of ophthalmology, machine learning has been extensively utilized for classifying diseases such as glaucoma and diabetic retinopathy with high degrees of success [4-5]. Even with the utilization of teleophthalmology, machine learning has the potential to vastly improve the quality of care provided [6]. Convoluted neural networks (CNNs) composed of convolutional layers are primarily used for visual applications. This can be a form of a deep neural network as there are often times many hidden layers. This study was conducted in order to develop a deep learning model that is able to differentiate between exudative and non-exudative AMD through analyzing wide-field images from a clinical setting. This will be further differentiated between AMD in the left, right, and both eyes.

Materials and methods

This was a retrospective cohort study of individuals diagnosed with exudative or non-exudative macular degeneration. Retinal fundus images from patients and diagnoses by ophthalmologists were obtained from the Martel Eye Clinic in Rancho Cordova, CA. 

Images used were wide-field Optos images collected from 2017 to 2021. Images collected were initially filtered to remove low-quality images from the dataset. They were then labeled based on the respective side they were taken on (left or right) and ICD-10-CM diagnostic codes (H35.313, H35.323, H35.322, H35.321, H35.312, H35.311, or H35.35). The images labeled with H35.35 were relabeled to “#na#”. From an initial pool of 957 images, 20% of the images and their labels were randomly sampled and separated into the validation set. The remaining images were randomly sampled until each category had a total of 50 images each. This created a training set of 350 images and a validation set of 70 images for a total of 420 images used. The patient sample size for this study was 210. 

The machine-learning CNN algorithm was run on a Windows computer with an Nvidia GTX 3090 24GB. A batch size of four images was used with an initial learning rate of 1 x 10-3. Batch image augmentations were applied along with resizing of the images to 1950 x 1535 pixels. The CNN was run for a total of 70 epochs taking about three minutes and 20 s for each epoch.

Results

Figure 1 shows a sample of four images with transformations applied along with their ICD-10 diagnostic code. These images after the transformations are the ones that are used to train the model. Since these images were obtained from a clinical setting there is a significant variation in the quality of images. This increased the difficulty of training the model requiring more images in order to compensate for the variations in each image. Image augmentations allow for new data to be created by modifying the original image in order to make an image the model has not been trained on. 

Figure 1. Images with ICD-10 labels and transformations.

Figure 1

Figure 2 shows how the training loss, validation loss, and accuracy progressed for each epoch. It was determined that the CNN model had a final accuracy of 88%. Overall there was a general trend of decreasing loss for both the validation and training set as the number of epochs increased. This trend was opposite to accuracy as it increased as the number of epochs increased. There was a dip in accuracy around epoch 56. This may be due to the model getting stuck in local minimum.

Figure 2. A plot of training loss, validation loss, and accuracy per epoch.

Figure 2

Figure 3 shows a confusion matrix that displays the category and predicted category of the validation dataset. This is the result of testing the model on the validation dataset. Overall, the model predicted accurately when compared to the actual diagnosis. The model had relatively little difficulty when determining if the image was a right or left side image when compared to bilateral images.

Figure 3. Confusion matrix between actual and predicted categories of the validation dataset.

Figure 3

Discussion

Age-related macular degeneration is an extremely pervasive ocular disease that can cause complications such as blindness if left untreated [7]. Macular degeneration can also lead to deterioration of the fovea which can cause decreased color perception [8]. The two primary types of macular degeneration are exudative and non-exudative [8-9]. Exudative macular degeneration, which is less common, occurs when there is a leakage of fluid from new blood vessels that formed below the blood vessels. This leakage of fluid causes the macula to be distorted from its original position which results in poorer central vision. Non-exudative macular degeneration is where the macula degenerates and thins over time due to the natural aging process [8-9]. More commonly, people have non-exudative macular degeneration which can be treated with laser photocoagulation [10]. In fact, over 8.7% of the world’s population becomes blind due to macular degeneration [11]. Macular degeneration is a treatable disease for most people if it is caught early enough. There are many features on retinal scans, such as drusen, that physicians can look at to determine if a patient has macular degeneration; however, many individuals do not receive treatment or a diagnosis on time either due to negligence or more commonly a lack of access to proper medical care [12]. With an increasing patient population, there will always be a shortage of physicians to treat diseases such as macular degeneration. In order to counterbalance this issue, technology needs to be improved to enable patients to access quality care at a faster rate. Fortunately, recent advances in technology have produced artificial intelligence (AI) that can make tasks such as diagnosis more efficient. If AI could be used to assist physicians with diagnosis, then responses to clinical issues would be more efficient and accurate. AI has been already proven to be capable of diagnosing ocular diseases such as diabetic retinopathy [5,13]. The abilities of an AI software is limited by the information and data biases within its training set and as such should still be checked by an attending physician when in use [14]. Although it may not be possible to produce a completely accurate AI software, it may be possible to develop software that is accurate enough to help physicians diagnose cases at a faster rate. In this investigation, the authors attempt to develop an AI software that can be utilized to diagnose cases where patients have exudative or non-exudative macular degeneration in either their left eye, their right eye, or both eyes. Our investigation builds upon previous studies that have demonstrated how AI software can accurately diagnose macular degeneration within a patient [15-20]. 

In this investigation, the AI software was trained for 70 epochs utilizing 350 retinal scans of patients with either exudative and non-exudative macular degeneration. The AI software was able to distinguish patients who had exudative macular degeneration in their left eye and bilaterally with an accuracy of 100%. It was also able to determine if a patient had exudative macular degeneration in their right eye with an accuracy rating of 81.8%. The software was also able to determine if a patient had non-exudative macular degeneration in their right eye with 100% accuracy, their left eye with 92.3% accuracy, and both eyes with 69.6% accuracy. The program was also able to determine if a patient did not fall into any of the other categories with an accuracy rating of 100%. The results from the data suggest that it may be easier for the AI software to identify signs of exudative macular degeneration. This could potentially illustrate that there are more obvious signs on retinal scans for cases of exudative macular edema such as physicians that make it easier for the AI to obtain higher accuracy results to detect the disease. This could also indicate that the retinal scans for exudative macular degeneration may have been of better quality, or that the limited sample size resulted in these accuracy readings. The accuracy ratings of the AI software for detecting macular degeneration bilaterally were surprisingly high. Since only a single image is processed at a time, the program should have had difficulty determining if the image bilateral, left, or right as bilateral contains both left and right images. Despite this, the majority of the bilateral images were able to be correctly predicted. This would suggest that there is a difference in the macular degeneration between bilateral cases than cases only in the left or right eye. This would be a point of further research to determine if there is a fundamental difference between bilateral macular degeneration and macular degeneration only occurring in one eye.

Our findings have crucial implications for the field of medicine. Our report is the first to our knowledge that reports an AI software that is able to scan a single retinal image and tell if a patient has macular degeneration in both eyes. This proves that the application and usage of AI software in the field of medicine is not only useful at decreasing costs and improving patient outcomes but that it can also be utilized to identify new patterns and make discoveries within the field of medicine. One of the biggest strengths of this study is that the AI software utilized raw unprocessed clinical data to identify patterns and produce results. Unlike previous studies that were done using processed images and datasets, our software was able to function using low-quality images [12-15, 20]. This means that our AI will be more applicable to the practical clinical setting if physicians decide to use our tool. Although our investigation produced fairly accurate results, there were some limitations to the study. One of the main limitations to this study was that the patient data collected for the AI software all came from a patient database located in one city. Another limitation to our study was the sample size that we used for both our training and validation sets. The training set for this study was the image database that was used to train the AI software to recognize patterns within the retinal scans to detect macular degeneration. The validation set was the image database used to verify the accuracy and ability of the AI software to detect macular degeneration within retinal scans. Had we used more images from the clinical database for both of these sets, the accuracy of the software to diagnose patients with either exudative or non-exudative macular degeneration could have dramatically increased. The results could have differed if we utilized a database of images that took patient data from multiple areas across the world. Further research on the application of AI in a clinical setting needs to be conducted in order to increase the accuracy and the generalizability of the results that are produced from the technology.

Conclusions

The authors in this investigation developed a CNN algorithm that is able to differentiate between exudative and non-exudative macular degeneration from ultrawide field Optos images. On the validation dataset, the model was calculated to be 88%. The model was able to differentiate from analyzing a single image if AMD is present in the left eye, right eye, or both eyes. Being able to identify if AMD is present in both eyes from an image of a single retina. AMD needs to be caught early on in order to prevent further patient complications, therefore, it is quintessential for physicians to continue developing tools and methods that facilitate diagnosis. Further research is required to verify and explain the possibility of extrapolating the fact that a patient has AMD in both eyes when only looking at one retinal scan. The results from this exploration demonstrate that AI has the potential to have a significant impact on diagnostics and the overall quality of care in the healthcare industry.

The content published in Cureus is the result of clinical experience and/or research by independent individuals or organizations. Cureus is not responsible for the scientific accuracy or reliability of data or conclusions published herein. All content published within Cureus is intended only for educational, research and reference purposes. Additionally, articles published within Cureus should not be deemed a suitable substitute for the advice of a qualified health care professional. Do not disregard or avoid professional medical advice due to content published within Cureus.

We are planning on patenting the code and model developed to classify AMD disease utilized in this investigation.

Human Ethics

Consent was obtained or waived by all participants in this study

Animal Ethics

Animal subjects: All authors have confirmed that this study did not involve animal subjects or tissue.

References

  • 1.Global prevalence of age-related macular degeneration and disease burden projection for 2020 and 2040: a systematic review and meta-analysis. Wong WL, Su X, Li X, et al. Lancet Glob Health. 2014;2:106–116. doi: 10.1016/S2214-109X(13)70145-1. [DOI] [PubMed] [Google Scholar]
  • 2.A large-scale database and a CNN model for attention-based glaucoma detection. Li L, Xu M, Liu H, et al. IEEE Trans Med Imaging. 2020;39:413–424. doi: 10.1109/TMI.2019.2927226. [DOI] [PubMed] [Google Scholar]
  • 3.Age-related macular degeneration. Lim LS, Mitchell P, Seddon JM, Holz FG, Wong TY. https://pubmed.ncbi.nlm.nih.gov/22559899/ Lancet. 2012;5:1728–1738. doi: 10.1016/S0140-6736(12)60282-7. [DOI] [PubMed] [Google Scholar]
  • 4.Optical coherence tomography-based deep-learning models for classifying normal and age-related macular degeneration and exudative and non-exudative age-related macular degeneration changes. Motozawa N, An G, Takagi S, et al. Ophthalmol Ther. 2019;8:527–539. doi: 10.1007/s40123-019-00207-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Deep neural network learning for detection and grading of diabetic retinopathy. Reddy AJ, Martel JB. Appl Cell. 2020;8:67–73. [Google Scholar]
  • 6.The current state of artificial intelligence in ophthalmology. Kapoor R, Walters SP, Al-Aswad LA. Surv Ophthalmol. 2019;64:233–240. doi: 10.1016/j.survophthal.2018.09.002. [DOI] [PubMed] [Google Scholar]
  • 7.Age-related macular degeneration (AMD): pathogenesis and therapy. Nowak JZ. https://pubmed.ncbi.nlm.nih.gov/16845209/ Pharmacol Rep. 2006;58:353–363. [PubMed] [Google Scholar]
  • 8.Wet versus dry age-related macular degeneration in patients with central field loss: different effects on maximum reading speed. Calabrèse A, Bernard JB, Hoffart L, Faure G, Barouch F, Conrath J, Castet E. Invest Ophthalmol Vis Sci. 2011;52:2417–2424. doi: 10.1167/iovs.09-5056. [DOI] [PubMed] [Google Scholar]
  • 9.Mechanisms of age-related macular degeneration. Ambati J, Fowler BJ. Neuron. 2012;12:26–39. doi: 10.1016/j.neuron.2012.06.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Laser photocoagulation as treatment of non-exudative age-related macular degeneration: state-of-the-art and future perspectives. Querques G, Cicinelli MV, Rabiolo A, de Vitis L, Sacconi R, Querques L, Bandello F. Graefes Arch Clin Exp Ophthalmol. 2018;256:1–9. doi: 10.1007/s00417-017-3848-x. [DOI] [PubMed] [Google Scholar]
  • 11.Ruia S, Kaufman EJ. Treasure Island, FL: StatPearls Publishing; 2021. Macular Degeneration. [PubMed] [Google Scholar]
  • 12.Predictive model for earlier diagnosis of suspected age-related macular degeneration patients. Sharma NK, Sharma SK, Gupta A, Prabhakar S, Singh R, Anand A. DNA Cell Biol. 2013;32:549–555. doi: 10.1089/dna.2013.2072. [DOI] [PubMed] [Google Scholar]
  • 13.Artificial intelligence for diabetic retinopathy screening, prediction and management. Gunasekeran DV, Ting DSW, Tan GSW, Wong TY. Curr Opin Ophthalmol. 2020;31:357–365. doi: 10.1097/ICU.0000000000000693. [DOI] [PubMed] [Google Scholar]
  • 14.L’intelligenza artificiale in medicina: quali limiti, quali ostacoli, quali domande [Artificial intelligence in medicine: limits and obstacles.] Santoro E. Recent Prog Med. 2017;108:500–502. doi: 10.1701/2829.28580. [DOI] [PubMed] [Google Scholar]
  • 15.Artificial intelligence (AI) applications for age-related macular degeneration (AMD) and other retinal dystrophies. Perepelkina T, Fulton AB. Semin Ophthalmol. 2021;36:304–309. doi: 10.1080/08820538.2021.1896756. [DOI] [PubMed] [Google Scholar]
  • 16.A review on the role of ethylenediaminetetraacetic acid (EDTA) in the treatment and understanding of psoriasis. Sunil A, Shaheed G, Reddy AJ, Nawathey N, Brahmbhatt H. Cureus. 2021;16:0. doi: 10.7759/cureus.16424. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Case study of endogenous streptococcal endophthalmitis in the critical care setting. Reddy AJ, Tak N, Martel JB. Cureus. 2021;5:0. doi: 10.7759/cureus.16192. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.A comparison of DASH scores resulting from different treatment options for the intra-articular distal radius fracture in the geriatric population. Wagh H, Reddy AJ. Appl Cell Biol. 2021;9:18–23. [Google Scholar]
  • 19.A quantitative analysis on the effect of varying nitrate concentrations on pH levels on the growth of algae. Tak N, Wagh P, Sandhu S, Reddy A, Wagh H. Appl Cell Biol. 2021;9:24–28. [Google Scholar]
  • 20.Deep-learning-based prediction of late age-related macular degeneration progression. Yan Q, Weeks DE, Xin H, et al. Nat Mach Intell. 2020;2:141–150. doi: 10.1038/s42256-020-0154-9. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Cureus are provided here courtesy of Cureus Inc.

RESOURCES