Diagnostic accuracy of a deep learning model for pterygium detection in Barcelos, Brazilian Amazon
Diego Casagrande, Mauro Gobira, Arthur G. Fernandes, Marcos Jacob Cohen, Paula Marques Marinho, Kevin Waquim Pessoa Carvalho, Ariane Luttecke-Anders, Beatriz Araujo Stauber, Nívea Nunes Ferraz, Jacob Moysés Cohen, Adriana Berezovsky, Solange Rios Salomão, Rubens Belfort Jr.

TL;DR
A deep learning model accurately detects pterygium in eye photos taken with smartphones in the Brazilian Amazon, showing promise for improving eye care in remote areas.
Contribution
This study demonstrates a deep learning model's high diagnostic accuracy for pterygium detection in a remote population using smartphone images.
Findings
The model achieved 91.43% sensitivity and 90.24% specificity in detecting pterygium.
Diagnostic metrics were comparable to those of experienced ophthalmologists.
The model's area under the curve was 0.91, indicating strong diagnostic performance.
Abstract
This pilot study evaluated the diagnostic accuracy of a deep learning model for detecting pterygium in anterior segment photographs taken using smartphones in the Brazilian Amazon. The model’s performance was benchmarked against assessments made by experienced ophthalmologists, considered the clinical gold standard. In this cross-sectional study, 38 participants (76 eyes) from Barcelos, Brazil, were enrolled. Trained nonmedical health workers captured high-resolution anterior segment images using smartphones. These images were analyzed using a deep learning model based on the MobileNet-V2 convolutional neural network. Diagnostic metrics–including sensitivity, specificity, accuracy, positive predictive value, negative predictive value, and area under the receiver operating characteristic curve–were calculated and compared with the ophthalmologists’ evaluations. The deep learning model…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5| Metric | AI model |
|---|---|
| Sensitivity (%) | 91.43 (76.94–98.20) |
| Specificity (%) | 90.24 (76.87–97.28) |
| Positive predictive value (%) | 88.46 (75.04–95.14) |
| Negative predictive value (%) | 92.79 (81.28–97.45) |
| F1 score | 0.901 |
| Area under the curve | 0.91 |
- —Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP)
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCorneal Surgery and Treatments · Retinopathy of Prematurity Studies · Mosquito-borne diseases and control
INTRODUCTION
Pterygium is a common fibrovascular growth of the conjunctiva that can progressively encroach onto the cornea and cause significant visual impairment if left untreated^(1^,^2)^. Its etiology is multifactorial, involving genetic susceptibility, environmental exposure, and other contributory factors, with ultraviolet (UV) radiation identified as a key driver of disease development and progression^(1^-^4)^.
According to a 2018 systematic review and meta-analysis, the global prevalence of pterygium is approximately 12%^(5)^. However, this prevalence varies widely by geographic region. For instance, high rates have been reported in the Brazilian Amazon (approximately 59%) and parts of China (39%), while substantially lower rates are observed in countries such as Australia (2.83%) and Iran (1.3%)^(6^-^9)^. The condition is particularly common in equatorial regions, where UV radiation exposure is intense^(1^-^4)^.
The Brazilian Amazon, characterized by high ambient UV levels and limited access to eye care services, demonstrates an especially high burden of pterygium. The Brazilian Amazon Region Eye Survey, conducted by our research group, remains the largest population-based study to report the highest known prevalence of pterygium to date^(6)^. In this cross-sectional study, carried out in Parintins (Amazonas State), pterygium emerged as the second leading cause of visual impairment and blindness, following uncorrected refractive error^(6)^.
In recent years, artificial intelligence (AI), particularly deep learning (DL), has gained traction in the medical field as a valuable tool for diagnosis and disease management^(10)^. AI applications in ophthalmology have enabled automated detection, classification, and monitoring of ocular diseases, including pterygium, especially in settings where access to slit-lamp biomicroscopy and trained specialists is scarce^(11^,^12)^. These technologies, when integrated with accessible tools such as smartphones, offer promising solutions for improving early diagnosis in remote and underserved areas^(6)^.
Nevertheless, challenges persist. Variability in image quality, limited availability of large and diverse datasets, and inconsistent validation approaches have hindered the diagnostic performance of some AI models^(13)^. In response, researchers have developed models trained on various imaging modalities–including slit-lamp and smartphone-captured images–and hybrid models that combine both. Many of these have demonstrated promising diagnostic performance, often comparable with that of experienced ophthalmologists^(11^,^12^,^14^,^15)^.
Given the disproportionately high prevalence of pterygium in the Brazilian Amazon and the limited access to ophthalmic care in this region, there is a compelling need for scalable and accurate screening tools. This pilot study was conducted to evaluate the feasibility and initial diagnostic performance of a DL model for pterygium detection. Specifically, we assessed the model’s performance using smartphone-acquired anterior segment photographs, comparing its diagnostic accuracy with that of trained health workers and ophthalmologists–the clinical gold standard–in a population from the Brazilian Amazon.
METHODS
Ethical approval
This study was conducted in accordance with the principles of the Declaration of Helsinki and was appro ved by the appropriate institutional review board (details omitted for double-anonymized peer review). Informed consent was obtained from all participants prior to data collection.
Study design
This pilot study employed a cross-sectional design to assess the diagnostic accuracy of a DL model for detecting pterygium using smartphone-acquired anterior segment images. The model’s performance was compared against the diagnostic consensus of experienced ophthalmologists, considered the clinical gold standard.
Participants were recruited from the population of Barcelos, a semirural municipality in the state of Amazonas, Brazil. Eligible participants included individuals aged 18 yr or older who sought care at one of three strategically selected basic health units (BHUs), each with an average daily patient volume of approximately 50. All individuals presenting through spontaneous demand were considered for inclusion. Exclusion criteria included patients without ocular complaints, whose smartphone-acquired images were deemed normal by both the nonmedical health worker and the attending ophthalmologist.
Data collection
Prior to initiating the study, a specialized training session was conducted for four nonmedical health workers (nursing technicians) employed at the participating BHUs. The session was led by a highly qualified ophthalmic technologist (A.G.F.), who holds a Ph.D. in Visual Sciences with a specialization in pterygium. The training was divided into two distinct phases.
The first phase comprised didactic lectures delive red in person using PowerPoint presentations. These lectures were developed and adapted by researchers from the Graduate Program in Visual Sciences at the Universidade Federal de São Paulo (UNIFESP), Escola Paulista de Medicina (N.N.F. and A.B.). The key topics covered included the following:
– Basic anatomy and physiology of vision: Overview of the primary ocular structures and their respective functions.– Common ocular complaints: Discussion of prevalent symptoms such as unilateral or bilateral vision loss, red eye, fleshy conjunctival growths, and leukocoria.– External eye examination: Instruction on inspecting the external eye, with emphasis on identifying abnormalities such as pterygium and cataracts.– Referral protocols: Guidelines for referring patients for further evaluation based on initial findings.
The second phase focused on practical training in smartphone-based anterior segment imaging. Participants were trained to capture high-quality ocular images and formulate preliminary diagnostic hypotheses for anterior segment conditions, specifically pterygium and cataracts. Each technician was assigned a unique identifier for tracking purposes. For each eye, a standardized examination form was completed, and a preliminary diagnosis was recorded.
These forms, along with the corresponding images, were subsequently reviewed by a team ophthalmologist stationed at the BHUs. Importantly, this ophthalmologist had no prior interaction with the technicians to ensure objective assessment. The ophthalmologist confirmed or revised the technicians’ diagnostic impressions. All study participants were then referred for comprehensive ophthalmological evaluation at the General Hospital of Barcelos (Nazaré Lacerda Chaves).
Smartphone-based imaging training included the use of two Samsung Galaxy A55 smartphones, selected for their high-resolution cameras, affordability, and availability. The training lasted approximately 2.5 h and was again led by the ophthalmic technologist (A.G.F.). It emphasized standardization to ensure image consistency across patients. Technicians were instructed to use the phone’s autofocus and to center the nasal and temporal palpebral fissures clearly within the frame. The focal point was to be properly aligned on the device screen for all cases to ensure uniformity.
After 1 day of practice, limitations in image quality were identified, prompting a protocol adjustment. From the second day onward, an auxiliary light source–a flashlight–was introduced. Positioned at a 45° to the temporo-nasal axis and directed toward the pupil, this light enhanced ocular surface illumination, resulting in clearer, more defined images. All subsequent photographs adhered to this revised protocol, incorporating both the flashlight enhancement and standardized alignment (Figure 1).
Figure 1A technician captures an ocular image using a smartphone while a flashlight, angled at 45° to the temporo-nasal axis, enhances illumination of the pupil, providing a clearer view of the ocular surface.
The comprehensive ophthalmological evaluation at the General Hospital of Barcelos included the following procedures:
– Distance visual acuity (DVA): Measured using an ETDRS logMAR chart at a 4-m distance, with participants wearing their habitual correction, if available. The smallest line on which at least four of five optotypes were correctly identified was recorded monocularly. Presenting DVA worse than 0.05 (<20/400) was classified as distance visual impairment.– Near visual acuity: Assessed with the ETDRS “E” logMAR near vision chart under ambient lighting. Participants with bifocals or reading glasses were tested using their correction; others were asked to remove distance-only glasses. Monocular visual acuity worse than 0.05 (<20/400) was categorized as near visual impairment.– Refraction: Automated refraction was performed using the Gilras GRK 7000 autorefractor. Best-correc ted visual acuity for both distance and near vision was subsequently determined.– Anterior segment examination: Conducted using a Luxvision SL 1000 slit-lamp, this exam evaluated the eyelids, globe, pupillary reflexes, and lens. Pterygium cases were noted based on lesion size and location, while cataracts were graded using the Lens Opacities Classification System III.– Posterior segment examination: Fundoscopy under pharmacologic pupil dilation was performed, employing both direct and indirect methods, to assess the macula and optic disc for pathological changes.
All patient data were anonymized, and personal identifiers were replaced with unique alphanumeric codes to maintain confidentiality. This anonymization process was strictly adhered to throughout the study, ensuring ethical compliance and the protection of participant privacy.
Dataset preparation
In August 2024, horizontal cross-sectional anterior segment images were collected from patients diagnosed with pterygium at BHUs. Two experienced ophthalmologists (M.J.C. and D.C.) independently reviewed and classified these images into two categories based on the presence or absence of pterygium. Ultimately, a dataset comprising 170 anterior segment images from 85 patients was compiled and saved in JPEG format for training the DL model.
To ensure compatibility with standard DL model input requirements, all images were resized to 224 × 224 pixels and centered on the pupil. Patient-identifiable information and device metadata were removed to maintain confidentiality and avoid bias. The training and testing datasets were completely independent. The testing dataset included 124 anterior segment images from 62 patients (124 eyes), ensuring no overlap with training data.
Gobvision AI platform and model training
Model development was conducted using the Gobvision AI platform, which is built on the MobileNet-V2 architecture and utilizes convolutional neural networks (CNNs) for efficient image classification. This web-based tool, accessible via https://www.gobvisionai.com/, enables clinicians to apply AI for diagnostic purposes without requiring advanced programming expertise. The platform was selected for its cost-effectiveness, accessibility, and the absence of alternative AI-based solutions specifically tailored for pterygium diagnosis (Figure 2).
Figure 2. Interface and diagnostic output of the Gobvision AI platform.
The model was trained on anterior segment images using the platform’s default hyperparameters: 50 epochs, a batch size of 16, and a learning rate of 0.001. To improve generalizability and minimize overfitting, several data augmentation techniques were applied during training, including random rotations, horizontal and vertical flips, and adjustments in brightness and contrast. It is important to note that, as of this writing, the Gobvision AI model has not received formal regulatory approval, and its performance has not yet been validated in peer-reviewed studies.
Statistical analysis
Model performance was evaluated using standard diagnostic metrics, including accuracy, sensitivity, spe cificity, F1 score, and the area under the receiver operating characteristic curve (AUC). Confidence intervals for these metrics were estimated using bootstrap resampling with 1,000 iterations.
The DL model outputs a probability score indicating the likelihood of pterygium. A case was classified as positive if the probability was ≥50% and negative if <50%. In addition, multiple logistic regression analysis was conducted to assess demographic variables associated with the occurrence of pterygium in the study population.
All statistical analyses were performed using DATAtab (2024), an online statistical tool developed by DATAtab e.U., Graz, Austria.
RESULTS
A total of 62 patients (124 eyes) were initially enrolled in the study. However, 24 patients were excluded due to their nonparticipation in the second-stage anterior segment evaluation using slit-lamp examination. Thus, 38 patients (76 eyes) were included in the final analysis utilizing the DL model.
The mean age of the included participants was 45.61 yr (standard deviation=11.91). Among them, 57.89% were female, and 42.11% were male. Based on the ophthalmologist’s evaluation, the overall prevalence of pterygium was 46.05%. Sex-specific prevalence was 57.89% among females and 40.6% among males. Age-stratified analysis showed a pterygium prevalence of 46.87% among participants aged ≥50 yr and 45.44% among those aged <50 yr. A multiple logistic regression analysis revealed no statistically significant association between pterygium occurrence and sex (p=0.417) or age (p=0.884). Of the 38 patients diagnosed with pterygium, 12 (31.6%) presented with bilateral involvement.
The DL model achieved a sensitivity of 91.43% (95% confidence interval [95% CI], 76.94–98.20), specificity of 90.24% (95% CI, 76.87–97.28), positive predictive value of 88.46% (95% CI, 75.04–95.14), and NPV of 92.79% (95% CI, 81.28–97.45). The F1 score was 0.901, and the AUC was 0.91 (Table 1 and Figure 3). Representative examples of false-positive, false-negative, true-positive, and true-negative cases are illustrated (Figures 4 and 5).
Figure 3. Receiver operating characteristic curve of the deep learning model.
Figure 4. Examples of false-positive (A) and false-negative (B) cases from different patients.
Figure 5. True-positive (A) and true-negative (B) eyes from the same patient.
DISCUSSION
Teleophthalmology has proven to be an effective support system for primary care in the diagnosis and management of ocular conditions in remote areas, particularly in regions such as the Amazon^(16)^. This approach facilitates ongoing monitoring of clinical outcomes without necessitating in-person consultations with ophthalmologists, which is especially valuable in settings with limited healthcare resources^(17)^.
AI has emerged as a promising tool for the diagnosis and management of pterygium^(11^,^12)^. Recent advancements in AI–particularly in machine learning and DL–have led to the development of automated systems for detecting and classifying pterygium, potentially enhancing diagnostic accuracy and efficiency^(14)^. Xu et al. implemented a DL-based intelligent diagnostic system using anterior segment photographs, achieving a high accuracy rate of 94.68% in classifying images into normal, observation, and surgical groups, along with excellent sensitivity, specificity, and F1-scores across categories^(15)^.
Similarly, Zheng et al.^(18)^ developed a lightweight AI model based on the MobileNet architecture, which demonstrated high sensitivity and specificity for pterygium diagnosis using anterior segment images. This model is particularly suitable for primary healthcare settings due to its efficiency and compatibility with mobile devices, supporting early screening and timely referrals. Gan et al.^(19)^ focused on detecting pterygium requiring surgical intervention using an ensemble DL model, while Zamani et al.^(20)^ proposed an enhanced CNN-based model, VggNet16-wbn, which achieved strong performance metrics, including 99.22% accuracy and 98.45% sensitivity, reinforcing the potential of DL approaches in developing effective screening tools.
Despite these advancements, several challenges hinder the widespread implementation of AI for pterygium diagnosis. These include variability in image quality, differences in clinical settings, and the need for large, diverse datasets to train robust AI models^(13^,^14)^. The heterogeneity of pterygium lesions–manifesting in variations in size, thickness, and vascularity–also complicates the development of standardized grading systems, limiting the consistency and accuracy of AI diagnoses^(19)^. Moreover, the computational demands of advanced AI systems pose a significant barrier, particularly in resource-constrained regions where such technologies are most urgently needed^(21)^. To address these challenges, this study proposes an accessible AI model that is freely available online and requires no programming expertise.
Despite the inherent limitations of this pilot study, the findings provide preliminary evidence that AI models can aid in identifying pterygium using smartphone-captured anterior segment images. The DL model achieved encouraging diagnostic performance in a limited dataset, with a sensitivity of 91.43%, specificity of 90.24%, and an area under the curve (AUC) of 0.91. These results are promising, especially considering the model’s ability to approximate the diagnostic accuracy of ophthalmologists^(22)^.
Although a fixed classification threshold of 50% was used, future studies could investigate the impact of adjusting this threshold to optimize sensitivity and specificity based on different clinical screening objectives.
One key limitation of this study is the relatively small sample size, which reflects the unique challenges of con ducting research in the Brazilian Amazon. Geographic and infrastructural barriers in this region restrict access and mobility, making participant recruitment difficult^(6)^. While this limitation may affect the generalizability of the findings and increase the risk of statistical bias, the study’s primary objective was to assess the feasibility and initial effectiveness of a DL model in a resource-limited and underserved setting^(23)^. The results suggest that this approach may be applicable in similar environments, particularly where access to specialists and advanced medical equipment is restricted.
During the early stages of the study, the research team encountered specific challenges, such as inconsistencies in initial image interpretations by health agents. These issues underscore the need for continuous training and routine evaluations to ensure diagnostic accuracy^(24)^. Another important limitation is the potential for selection bias, as patient inclusion was based on spontaneous visits to the BHU, which may not fully represent the broader population of the Amazon region^(25)^. This pilot study provides initial insights into the feasibility of using a DL model for pterygium diagnosis. Further research involving larger and more diverse populations is essential to validate these findings and assess model performance in varied clinical contexts^(25)^. This stepwise approach aligns with common trajectories in AI research, wherein early-stage studies assess feasibility under specific conditions before expanding to broader applications^(10)^.
Collaborations with local health authorities could be pivotal in adapting and validating these AI models for a wider range of ocular diseases^(26)^. Additionally, successful integration into the Amazon’s broader health care system will require embedding these tools within primary care workflows and providing ongoing support and training to healthcare professionals, including nonmedical health agents^(27)^. Such efforts may enhance healthcare delivery efficiency and reduce the burden on specialized services^(28)^.
Ultimately, these findings highlight the potential of collaborative efforts between health agents and ophthalmologists to leverage imaging and AI technologies in improving diagnostic capabilities in remote regions^(24)^. Continued investigation, including the surgical intervention phase and subsequent patient follow-up, will be essential to further validate the clinical utility of the proposed model^(25)^.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Chen J Maqsood S Kaye S Tey A Ahmad S Pterygium: Are we any closer to the cause?Br J Ophthalmol.201498442342415884310.1136/bjophthalmol-2013-304232 · doi ↗ · pubmed ↗
- 2Shahraki T Arabi A Feizi S Pterygium: An update on pathophysiology, clinical features, and management Ther Adv Ophthalmol.202113251584142110201523410487110.1177/25158414211020152 PMC 8170279 · doi ↗ · pubmed ↗
- 3Taylor R Chen M Jacobs DS Jhanji V Update on evolving approaches for pterygia Eye Net Mag.202331312
- 4Chu WK Choi HL Bhat AK Jhanji V Pterygium: new insights Eye (Lond)20203461047503202991810.1038/s 41433-020-0786-3PMC 7413326 · doi ↗ · pubmed ↗
- 5Rezvan F Khabazkhoob M Hooshmand E Yekta A Saatchi M Hashemi H Prevalence and risk factors of pterygium: a systematic review and meta-analysis Surv Ophthalmol.2018635719352955159710.1016/j.survophthal.2018.03.001 · doi ↗ · pubmed ↗
- 6Fernandes AG Salomão SR Ferraz NN Mitsuhiro MH Furtado JM Muñoz S Pterygium in adults from the Brazilian Amazon Region: prevalence, visual status and refractive errors Br J Ophthalmol.20201046757633153392810.1136/bjophthalmol-2019-314131 · doi ↗ · pubmed ↗
- 7Zhong H Cha X Wei T Lin X Li X Li J Prevalence of and risk factors for pterygium in rural adult Chinese populations of the Bai nationality in Dali: The Yunnan Minority Eye Study Invest Ophthalmol Vis Sci.201253106617212295660510.1167/iovs.11-8947 · doi ↗ · pubmed ↗
- 8Mc Carty CA Fu CL Taylor HR Epidemiology of pterygium in Victoria, Australia Br J Ophthalmol.2000843289921068484010.1136/bjo.84.3.289PMC 1723391 · doi ↗ · pubmed ↗
