Original Paper
Abstract
Background: The availability of dedicated image analysis scripts for adaptive optics (AO)–flood illumination ophthalmoscopy (FIO) is limited, especially for large-scale measurements and analyses of nonhealthy images. This limitation highlights the need for alternative approaches to facilitate automated and scalable analysis. Large language models may help develop such scripts.
Objective: This study aimed to generate an analysis script for AO-FIO images in the R programming language using a widely available generative AI (GenAI; specifically, GPT-4) as a proof of principle for generating a functional but nonvalidated script.
Methods: GPT-4 was used to generate an R script for the analysis of AO-FIO images. The code generated by GPT-4 was fine-tuned iteratively based on trial and error, testing the script for image preprocessing and analysis using images from 4 participants, including 1 healthy individual and 3 patients with Stargardt disease. The script code was subsequently checked for errors by another researcher who was naive to previous coding, using a different test set of AO-FIO images from 4 other participants (n=1 healthy individual and n=3 patients with Stargardt disease). The cone counts from 5 AO image snippets were compared with the counts independently recorded by 2 human graders and those generated by pre-existing AO analysis software that was trained on healthy participants.
Results: After 54 iterations of instructions, a functional R script for the analysis of AO-FIO images was generated. The script identified and quantified blobs.
Conclusions: We developed a preliminary nonvalidated script for cone detection in retinal AO images with support from GPT-4. Before such a script can be used in clinical research, it should undergo more fine-tuning and extensive testing. Future work should enhance the image analysis capabilities of the script and validate its results to assess the potential of AO-based cone counts as biomarkers in clinical trials.
doi:10.2196/94906
Keywords
Introduction
The rapid evolution of modern imaging techniques has greatly advanced retinal scientific research. Converting these images into numeric data that can be used for analysis often requires scripts. Custom-made scripts for advanced image analysis software, regardless of the image modality, are not widely available, potentially leading to suboptimal interpretation and analysis of these images. Generative AI (GenAI), such as GPT-4, may be used for code generation and to generate and use code for image analysis [].
One important advancement in retinal imaging is adaptive optics (AO)–flood illumination ophthalmoscopy (FIO), which allows high-resolution imaging of cone photoreceptors in the retina [-]. Cone counts measured on AO-FIO images are a promising new end point for clinical trials in inherited retinal diseases, such as Stargardt disease []. In Stargardt disease, cone photoreceptor degeneration occurs due to the accumulation of lipofuscin in the outer segments and the retinal pigment epithelium (RPE) [,]. Recent studies using AO imaging have shown that the cone photoreceptor structure is altered in Stargardt disease. In the unaffected retina of patients with Stargardt disease, the cone mosaic is unchanged. However, in the affected retina, a disturbed photoreceptor mosaic, dark non-waveguiding cones, enlarged cones near the fovea, and discrete hyper-reflective foci have been described, as well as a decrease in photoreceptor count [-]. This decline in cone photoreceptor count may serve as a biomarker in the future, thereby enabling researchers to study the effect of potential therapies at the cone photoreceptor level [-].
Considering cone count as a possible biomarker in clinical trials, AO analysis software is urgently needed []. Unfortunately, to date, there are no data on the reliability and repeatability of the available AO software provided by the manufacturer of the only Conformité Européenne (CE)–marked AO camera (Aodetect; Imagine Eyes), especially for eyes with significant retinal pathology. In addition, this application can only be applied manually for cone analysis within small areas of 0.21°×0.21° in a 4°×4° image, which makes it less useful for large-scale data analysis.
In addition to the AO analysis software provided by the manufacturer, other software for automated cone detection has been developed. Valterova et al [] designed a tool for automated cone density calculation based on montaged AO images. Wooning et al [] developed a deep learning–based model for detecting cone photoreceptor cells in single AO images, outperforming the manufacturer’s autodetection software. However, these models were trained only on healthy participants, and their use on pathological images has not yet been evaluated.
For AO scanning light ophthalmoscope (SLO), a different type of AO imaging, automated models for cone detection have been developed for both confocal and split-detector images and are trained and reliable for detecting cones not only in the retina of healthy participants [,] but also in those of both healthy participants and patients with Stargardt disease []. Although yielding promising results, photoreceptors may have different optical properties on AO-SLO images compared to AO-FIO images [,], potentially reducing the reliability of such scripts.
In this study, we explored the feasibility of performing AO image analysis using a script generated with GPT-4. With this approach, we aim to take the initial steps toward developing a new open-access cone count analysis script for AO images.
Methods
Study Design and Participants
This study was designed as a proof-of-principle study. AO images of 2 healthy participants (3 eyes; with no history of ocular diseases and no retinal abnormalities) and 6 patients (12 eyes) with genetically confirmed Stargardt disease were included in this study. The patients with Stargardt disease all had significant macular pathology, but no disease affecting the peripapillary region or spreading outside of the vascular arch. Two test sets of AO-FIO images made with the RTX1 AO retinal camera were created. Each test set included AO-FIO images from a total of 4 participants, including 1 healthy individual and 3 patients with Stargardt disease. The training set included 118 images (32 healthy); the test set contained 157 images (38 healthy).
Data Collection
The images were acquired during outpatient clinic visits. Images were taken starting at the optic nerve head, then moving temporally toward the foveal region and the temporal retina. Image acquisition settings were optimized for each individual image. No formal image quality criteria were used.
Ethical Considerations
All images used in this study were derived from the Radboudumc ophthalmology biobank, which was approved by the Radboudumc Ethics Committee (Commissie Mensgebonden Onderzoek; CMO; 2017-3535). The study was conducted in adherence with the provisions of the Declaration of Helsinki, and all study participants gave written informed consent prior to inclusion in the study.
Automated Blob Detection
On AO-FIO images, photoreceptors generally appear as a mosaic of bright maxima [], resulting in grayscale retinal images (4°×4°) consisting of bright blobs, that is, round groups of pixels with similar pixel intensities standing out against the generalized background gray level. Thus, retinal photoreceptors on AO images can be counted using blob detection analysis [], which eventually allows estimation of the cone density within the examined area of the retina. Manual counting of the blobs is not practical, as there may be >10,000 blobs per image, resulting in a highly time-consuming analysis if performed by human graders. Automated analysis techniques, on the other hand, are expected to perform with much higher speed and possibly higher accuracy.
Development of the Automated Blob Detection Script
One of the authors (JAAHP) used GPT-4 (OpenAI; used between January 22, 2024, and February 19, 2024) to generate a script in the R programming language (version 4.3.2; R Foundation for Statistical Computing) for automated blob counting. ChatGPT was used through OpenAI’s hosted service. The underlying computational environment is managed by OpenAI and is not exposed to the user; therefore, detailed hardware and software specifications are not available. RStudio (version 2022.02.1; Posit Software PBC) was used to run the script. The following R packages were used in the script: EBImage (version 4.44.0) [], imager (version 0.45.2) [], abind (version 1.4-5) [], and spatstat (version 3.0-7) []. Only textual instructions were given to the GenAI while generating the code. Using the input provided by GPT-4, preprocessing steps were built into the code for accurate analysis. After every preprocessing step, the code returned the processed image, allowing the researchers to verify whether all preprocessing steps were applied as intended to the image. The initial code was then tested using images from test set 1, and the programming errors that occurred were reported back to GPT-4. In this way, the model was facilitated to generate code while iteratively eliminating programming errors during the process.
To ensure the efficacy of the blob analysis, the language model was directed to generate code that highlighted the identified cones on the original images. Subsequently, the accurate location of the blobs on the altered image was manually verified to ensure that only genuine blob-like structures, and not vessels or background grayness, were indicated. This facilitated visual verification by the researchers (JAAHP, LCVDZ, and TT) that the code correctly identified blobs.
Proof-of-Principle Evaluation of the Generated Script
Next, another author (LCVDZ) ran the code using a test set of AO-FIO images different from the training data to evaluate the performance of the script on independent images.
To test the script’s performance, the cone counts of 5 AO images () obtained from 2 healthy eyes and 3 eyes of patients with Stargardt disease, selected from the test set, were manually assessed by 2 independent graders (JAAHP and YVL) and compared with those generated by the script and the AO box tool of Wooning et al [].

Each AO image covered a 4°×4° field of view, which we considered too large for full manual annotation in a single step. Therefore, we extracted smaller regions of interest at random locations within each selected AO image. For the manual grading, the selected image snippets were uploaded to ImageJ (version 1.53t; National Institutes of Health). Using the multiselection tool, all round, bright blobs were counted by the 2 graders. Both graders had extensive experience (>1 year) with the AO RTX1 camera, including expertise in AO image interpretation. No formal grading training was conducted. Grading was performed independently, and the graders were blinded to the presence of pre-existing pathology. There was no adjudicated consensus label. Annotations were saved using the ROI Manager. The intraclass correlation coefficients between the graders, the script, and the AO box tool were calculated, and Bland-Altman analyses were performed. Additional validation of the script was not conducted, as the objective of this study was to show the proof of principle of the produced code.
Results
Following a cumulative total of 54 commands given to GPT-4, a functional R script was achieved. At 3 distinct intervals, the code required manual modifications using snippets that had been previously generated by GPT-4: during the execution of the preprocessing steps, to complete the weighted cone counting, and to conclude the script. GPT-4 needed to be provided with an earlier version of the script on 3 occasions to maintain consistency. The final script was tested on all 118 images and did not produce any errors. The full script can be found in , and the full prompting history is available through the link provided in . The manual intervention in the automatic code creation is highlighted in bold in . shows the human modifications made during the script generation.
| Prompt numbers | Human interventions |
| 1 | Feeding the idea of “blob detection analysis” to GPT-4 |
| 32, 39, and 43 | Feeding GPT-4 with previously generated code to stay on track |
| 35 | Feeding GPT-4 with previously generated code. This code contained manually inserted preprocessing steps generated earlier in the prompting process (prompts 23 and 30). Additionally, code was added to save the processed image after each preprocessing step to check whether the step has been executed. |
| 43 and 47 | Steering GPT-4 in another direction because the previous steps (for counting overlapping blobs) did not work. |
| 51 | Manually extrapolating the code lines for counting overlapping blobs (blobs with an area larger than x pixels). |
| ≥54 | Finishing the code, implementing the data frame for reading files from a folder, and printing data output lines generated in prompts 35 and 36. |
No particular prompting techniques were used, as the researcher using the GenAI lacked substantial experience with prompting for code development. GPT-4 developed a method for image analysis, including preprocessing and thresholding of the images. The settings of the threshold levels had to be chosen manually by the researcher, although GPT-4 provided recommendations for identifying optimal threshold settings (refer to prompt 22 in ). shows a visual representation of the image analysis workflow, including the preprocessing steps recommended by GPT-4. These steps included contrast stretching, using the “normalize” and “equalize” functions, Gaussian blur, and thresholding itself. The values for the cone count were compiled into an R data frame to facilitate efficient analysis for research purposes.

Following the initial testing phases, the threshold parameter (thresholding window w=4.5 and h=4.5; threshold=0.0043) was manually calibrated based on clearly overlooked and incorrectly identified blobs. A single threshold value was applied across all images. This threshold was determined based on the visual performance of the script on the training dataset. demonstrates the effect of different thresholds and the size of the local thresholding window (w and h).

Subsequently, the algorithm underwent additional validation (conducted by LCVDZ) on test set 2, as outlined in the Methods section, to evaluate the stability and reliability of the developed code. The algorithm executed without issues, produced quantitative results for blob counting, and did not encounter any technical failures.
Next, the cone counts for the predefined AO image snippets () were calculated using the generated script and the AO box tool, and the images were graded by the 2 independent graders. The thresholding parameters determined during the testing phase, as mentioned previously, were used. The results of the cone measurements are shown in . The annotations generated by the script, the AO box, and the 2 graders are demonstrated in .

| Images | Script cone count | Grader 1 cone count | Grader 2 cone count | Adaptive optics box [] | Difference between mean grader cone count and script cone count (%) |
| A | 2062 | 1894 | 1963 | 2566 | +6.9 |
| B | 817 | 747 | 728 | 1068 | +10.8 |
| C | 60 | 48 | 35 | 1051 | +44.6 |
| D | 571 | 223 | 215 | 272 | +136.1 |
| E | 136 | 140 | 127 | 966 | +1.8 |
aAgreement between grader 1 and grader 2 was nearly perfect. The intraclass correlation coefficient for absolute agreement was 0.999 (95% CI 0.992-1.000; P<.001).
A Bland-Altman analysis was conducted to further assess agreement between grader 1 and grader 2. The mean difference (bias) was −3.2, indicating that grader 1 recorded slightly lower cone values than grader 2 on average. The 95% limits of agreement ranged from −75.7 to 69. The plot is demonstrated in .

The mean of grader 1 and grader 2 was compared with the generated script (intraclass correlation coefficient=0.977, 95% CI 0.770-0.998; P<.001) and the AO box (intraclass correlation coefficient=0.724, 95% CI −0.105 to 0.967; P=.009). The script was also compared with the AO box (intraclass correlation coefficient=0.725, 95% CI −0.047 to 0.966; P=.03).
A Bland-Altman analysis comparing the mean grader values and the generated script scores revealed a mean bias of −117.2 (SD 138.4, indicating that the averaged human ratings generally produced lower cone counts than the generated script. The 95% limits of agreement ranged from −393.9 to 159.5.
A Bland-Altman analysis comparing the AO box and the generated script scores revealed a mean bias of 455.4 (SD 499.8), indicating that the AO box generally produced higher cone counts than the generated script. The 95% limits of agreement ranged from −544.2 to 1455.0. The Bland-Altman plots are shown in .
Discussion
Principal Findings
In our current study, we used GenAI (GPT-4) to generate R-based image analysis code with the potential to perform quantitative analysis of retinal AO-FIO imaging. A key benefit of using GenAI in image analysis lies in its broad availability. This allows researchers to generate scripts for complex image analysis software without extensive pre-existing programming knowledge. However, it appears that using GenAI for image analysis still necessitates a basic understanding of image preprocessing, the principles of image analysis, and the use of GenAI (). For instance, one should know the appropriate terminology for the appearance of a certain structure (here, photoreceptors as blobs) in image analysis. In both healthy patients and patients with Stargardt disease, the developed algorithm successfully identified blob-like structures most likely corresponding to photoreceptors throughout the imaging field. Comparing the script cone counts with those of the human graders demonstrated that the generated script counted more cones than the average count of the human graders in every image. In the healthy images A and B, which are depicted in , it counted +6.9% (134 cones) and +10.8% (80 cones) more cones, respectively, than the human graders. The worst performance was observed on image D, where the script counted 136.1% more cones (352 cones) than the human graders, as it appears to have identified many false positives at the image border, as shown in . The best apparent performance of the graded script was on image E, in which it counted +1.8% (4 cones) more than the average count of the graders.
The generated script counted fewer cones than the AO box tool in both images from healthy participants (506 and 257 fewer, respectively) and also counted fewer cones in Stargardt images C and E (991 and 830 fewer, respectively) in , while counting more cones than the AO box in image D (299 more cones) in . The intergrader agreement analysis demonstrated that the human graders had high agreement. The generated script also demonstrated high agreement with the mean of the human graders, but low agreement with the AO box. It should be noted that this analysis was performed on only 5 images; therefore, no conclusions can be drawn from these findings. However, it is noteworthy that the generated script had low agreement with the AO box. This may be because the AO box was trained only on healthy participants, whereas our script was generated and tuned using both healthy patients and patients with Stargardt disease.
Our script, for which the threshold values were manually determined using Stargardt images (excluding any of the tested images), was less likely to produce false positives when clear cones were visible. However, in images C and E in , some of the selected cones appear to differ between the human graders and the generated script. Moreover, even the intergrader interpretation differed for these images. This is most likely due to the altered appearance of cone photoreceptors in Stargardt disease, which might be a major issue for cone counting. In this study, we used criteria similar to those applied in the AO box study by Wooning et al [] for defining cone photoreceptors. We used the criterion that a cone photoreceptor should be a bright, round structure. They defined a photoreceptor according to the following criteria: the structure had to be round, exhibit an intensity peak, and have a similar size and spacing as neighboring structures. This last criterion was not used in our study. However, it is known that cone spacing changes in Stargardt disease [], making this criterion for identifying a cone unreliable when counting cones in the pathological retina. Before AO can be used as an end point, or even as a secondary biomarker for clinical trials, there needs to be consensus on the definition of a cone in Stargardt disease to reliably count the number of cones.
Limitations
This study has several limitations that warrant consideration when interpreting the results. The most significant limitation we encountered with R was the lack of options for watershed analysis. We circumvented this issue by estimating the cone count based on a predetermined cone pixel size definition. This option only works when all analyzed images have the same image resolution as the images in the training set. Nevertheless, watershed segmentation of the blobs would most likely have made the script more reliable []. Other quality measures that we wanted to implement in the script but that did not work were the width-to-height ratio for cones, as cones are often round, and Voronoi analysis to assess the cone mosaic []. In hindsight, R appeared not to have been the most logical choice of programming language for image analysis. We chose R because it was already available within our research environment and was more familiar to the team than other programming languages, such as Python. In retrospect, Python-based libraries may provide more mature and flexible tools for image analysis applications of this type.
Another weakness of the script we generated is the manually derived threshold value. For large-scale automated analysis of AO images, however, this value may need to be adapted to different datasets. Therefore, for the script to function reliably, an automated thresholding method will be required.
It should be noted that the script was generated using GPT-4. More advanced GenAI models are already available, potentially generating more sophisticated scripts. However, thorough testing and validation of such scripts will still be essential before using them in clinical research []. For now, we were able to generate a functional script for AO image analysis that was capable of detecting blob-like structures in retinal images. We did not develop or validate this script as a clinically robust research tool. Before such an approach could be considered suitable for clinical or large-scale research applications, the script would require substantial refinement, methodological validation, and review by experts in computer vision and biomedical image analysis to address issues related to generalizability, parameter optimization, and robustness across datasets. This study sought solely to demonstrate the feasibility of using GPT-4 for quantitative image analysis coding in AO imaging applications. The present study provides a preliminary evaluation of the generated script by comparing its output on 5 image snippets with counts obtained by human graders and the AO box tool. Although the script demonstrated strong agreement with the human graders, the small sample size and exploratory nature of this analysis preclude definitive conclusions regarding its accuracy, reliability, or generalizability. Therefore, a larger validation study using an improved version of the script and a substantially larger set of images is required before its performance can be comprehensively assessed and validated.
A general challenge in using GenAI is the occurrence of hallucinations []. Hallucinations, in the field of natural language processing, are defined as situations in which the generated product of GenAI is inconsistent with the given input or expected output environment, violates facts, or lacks meaning []. Hallucination in coding often appears when adding new coding snippets to perform a certain function in an already existing script or coding environment []. Adding medical images directly to ChatGPT, which we did not do, can also cause hallucinations, generating unreliable output []. While generating our AO image analysis script, we encountered some hallucination-related issues. As can be seen in , GPT-4 claimed it could add watershed analysis and Voronoi analysis to the script, but this resulted only in a nonfunctioning script, which required us to reprompt using an older version of the script to stay on track. Extensive testing of the GenAI output is necessary to ensure that no hallucinated strings of code are present in a final script that will be used for formal analysis. Furthermore, researchers must be aware that GenAI may “forget” previous prompts, which may need reiteration, and that it may not be able to combine ideas from earlier failed steps with the current step. It has been shown that learning and applying prompt engineering [] may lead to a reduced number of prompts needed. Another potential advantage of prompt engineering is that prompts should be designed in such a way that older generated code is not “forgotten” by GenAI. Standardized and improved prompting may result in more effective results with improved precision.
In conclusion, we were able to generate a functional script using GPT-4 that was able to perform blob detection in AO images and deliver plausible output compared to human graders and pre-existing software. However, before such a script can be used reliably in research, it should undergo extensive fine-tuning, testing, and validation to enhance its robustness. Future research should focus on more potent image analysis software coding and the validation of its results to ultimately assess the usability of cone counts measured on AO images as a biomarker for clinical trials.
Acknowledgments
The authors declare the use of generative AI (GenAI) in the research and writing process. According to the Generative Artificial Intelligence Delegation Taxonomy (2025), the following tasks were delegated to GenAI tools under full human supervision: code generation and code optimization. The GenAI tool used was GPT-4 (OpenAI). Responsibility for the final manuscript lies entirely with the authors. GenAI tools are not listed as authors and do not bear responsibility for the final outcomes.
Data Availability
The final scripts and prompts are available in the multimedia appendices. Test images and outputs can be requested from the corresponding author.
Funding
This work was supported by the Foundation Fighting Blindness (TA-GT-0521-0799-RAD-TRAP), Nederlands Oogonderzoek Stichting, SAFDOR, and Stichting Groesbeek. The funders had no role in study design, data collection and analysis, the decision to publish, or the preparation of the manuscript.
Authors' Contributions
Conceptualization: JAAHP, LCVDZ, YVL, TT
Data curation: JAAHP, TT
Formal analysis: JAAHP, LCVDZ, YVL
Funding acquisition: CBH, TT
Investigation: JAAHP, LCVDZ, YVL, TT
Methodology: JAAHP, LCVDZ, YVL, TT
Project administration: TT
Resources: CBH, TT
Software: JAAHP, LCVDZ
Supervision: YTEL, CBH, TT
Validation: JAAHP, YVL, TT
Visualization: JAAHP
Writing—original draft: JAAHP, YVL, YTEL, TT
Writing—review and editing: JAAHP, LCVDZ, YVL, YTEL, CBH, TT
Conflicts of Interest
None declared.
R script generated with GPT-4.
DOCX File , 15 KBComplete ChatGPT-prompting sequence (GPT-4).
PDF File (Adobe PDF File), 3316 KBCone measurement annotations.
PNG File , 5029 KBBland-Altman plots comparing the mean grader cone count with the generated script cone count and the generated script cone count with the adaptive optics box cone count.
DOCX File , 2103 KBReferences
- Meyer JG, Urbanowicz RJ, Martin PC, O'Connor K, Li R, Peng PC, et al. ChatGPT and large language models in academia: opportunities and challenges. BioData Min. Jul 13, 2023;16(1):20. [FREE Full text] [CrossRef] [Medline]
- Legras R, Gaudric A, Woog K. Distribution of cone density, spacing and arrangement in adult healthy retinas with adaptive optics flood illumination. PLoS One. Jan 16, 2018;13(1):e0191141. [FREE Full text] [CrossRef] [Medline]
- Ashourizadeh H, Fakhri M, Hassanpour K, Masoudi A, Jalali S, Roshandel D, et al. Pearls and pitfalls of adaptive optics ophthalmoscopy in inherited retinal diseases. Diagnostics (Basel). Jul 19, 2023;13(14):2413. [FREE Full text] [CrossRef] [Medline]
- Morgan JI, Chui TY, Grieve K. Twenty-five years of clinical applications using adaptive optics ophthalmoscopy [Invited]. Biomed Opt Express. Dec 20, 2022;14(1):387-428. [FREE Full text] [CrossRef] [Medline]
- Britten-Jones AC, Thai L, Flanagan JP, Bedggood PA, Edwards TL, Metha AB, et al. Adaptive optics imaging in inherited retinal diseases: a scoping review of the clinical literature. Surv Ophthalmol. 2024;69(1):51-66. [FREE Full text] [CrossRef] [Medline]
- Sparrow JR, Gregory-Roberts E, Yamamoto K, Blonska A, Ghosh SK, Ueda K, et al. The bisretinoids of retinal pigment epithelium. Prog Retin Eye Res. Mar 2012;31(2):121-135. [FREE Full text] [CrossRef] [Medline]
- Mata NL, Weng J, Travis GH. Biosynthesis of a major lipofuscin fluorophore in mice and humans with ABCR-mediated retinal and macular degeneration. Proc Natl Acad Sci U S A. Jun 20, 2000;97(13):7154-7159. [FREE Full text] [CrossRef] [Medline]
- Song H, Rossi EA, Latchney L, Bessette A, Stone E, Hunter JJ, et al. Cone and rod loss in Stargardt disease revealed by adaptive optics scanning light ophthalmoscopy. JAMA Ophthalmol. Oct 2015;133(10):1198-1203. [FREE Full text] [CrossRef] [Medline]
- Pedersen HR, Gilson SJ, Hagen LA, Holtan JP, Bragadottir R, Baraas RC. Multimodal in-vivo maps as a tool to characterize retinal structural biomarkers for progression in adult-onset Stargardt disease. Front Ophthalmol (Lausanne). Apr 23, 2024;4:1384473. [FREE Full text] [CrossRef] [Medline]
- Shah M, Downes SM, Smithson HE, Young LK. Adaptive optics scanning laser ophthalmoscopy in a heterogenous cohort with Stargardt disease. Sci Rep. Oct 09, 2024;14(1):23629. [FREE Full text] [CrossRef] [Medline]
- Samelska K, Szaflik JP, Śmigielska B, Zaleska-Żmijewska A. Progression of rare inherited retinal dystrophies may be monitored by adaptive optics imaging. Life (Basel). Sep 05, 2023;13(9):1871. [FREE Full text] [CrossRef] [Medline]
- Szewczuk A, Zaleska-Żmijewska A, Dziedziak J, Szaflik JP. Clinical application of adaptive optics imaging in diagnosis, management, and monitoring of ophthalmological diseases: a narrative review. Med Sci Monit. Dec 04, 2023;29:e941926. [FREE Full text] [CrossRef] [Medline]
- Akyol E, Hagag AM, Sivaprasad S, Lotery AJ. Adaptive optics: principles and applications in ophthalmology. Eye (Lond). Jan 2021;35(1):244-264. [FREE Full text] [CrossRef] [Medline]
- Lombardo M, Serrao S, Devaney N, Parravano M, Lombardo G. Adaptive optics technology for high-resolution retinal imaging. Sensors (Basel). Dec 27, 2012;13(1):334-366. [FREE Full text] [CrossRef] [Medline]
- Gill JS, Moosajee M, Dubis AM. Cellular imaging of inherited retinal diseases using adaptive optics. Eye (Lond). Nov 2019;33(11):1683-1698. [FREE Full text] [CrossRef] [Medline]
- Valterova E, Unterlauft JD, Francke M, Kirsten T, Kolar R, Rauscher FG. Comprehensive automatic processing and analysis of adaptive optics flood illumination retinal images on healthy subjects. Biomed Opt Express. Jan 30, 2023;14(2):945-970. [FREE Full text] [CrossRef] [Medline]
- Wooning S, Heutinck PA, Liman K, Hennekam S, van Haute M, van den Broeck F, et al. Automated cone photoreceptor detection in adaptive optics flood illumination ophthalmoscopy. Ophthalmol Sci. Dec 25, 2024;5(3):100675. [FREE Full text] [CrossRef] [Medline]
- Cunefare D, Fang L, Cooper RF, Dubra A, Carroll J, Farsiu S. Open source software for automatic detection of cone photoreceptors in adaptive optics ophthalmoscopy using convolutional neural networks. Sci Rep. Jul 26, 2017;7(1):6620. [FREE Full text] [CrossRef] [Medline]
- Liu J, Jung H, Dubra A, Tam J. Automated photoreceptor cell identification on nonconfocal adaptive optics images using multiscale circular voting. Invest Ophthalmol Vis Sci. Sep 01, 2017;58(11):4477-4489. [FREE Full text] [CrossRef] [Medline]
- Davidson B, Kalitzeos A, Carroll J, Dubra A, Ourselin S, Michaelides M, et al. Automatic cone photoreceptor localisation in healthy and Stargardt afflicted retinas using deep learning. Sci Rep. May 21, 2018;8(1):7911. [FREE Full text] [CrossRef] [Medline]
- Burns SA, Elsner AE, Sapoznik KA, Warner RL, Gast TJ. Adaptive optics imaging of the human retina. Prog Retin Eye Res. Jan 2019;68:1-30. [FREE Full text] [CrossRef] [Medline]
- Mahour M, Tolpekin V, Stein A. Automatic detection of individual trees from VHR satellite images using scale-space methods. Sensors (Basel). Dec 15, 2020;20(24):7194. [FREE Full text] [CrossRef] [Medline]
- Pau GF, Fuchs F, Sklyar O, Boutros M, Huber W. EBImage--an R package for image processing with applications to cellular phenotypes. Bioinformatics. Apr 01, 2010;26(7):979-981. [FREE Full text] [CrossRef] [Medline]
- Barthelmé S, Tschumperlé D. imager: an R package for image processing based on CImg. J Open Source Softw. 2019;4(38):1012. [CrossRef]
- Plate T, Heiberger R. abind: combine multidimensional arrays. The Comprehensive R Archive Network. 2024. URL: https://cran.r-project.org/web/packages/abind/index.html [accessed 2026-07-25]
- Baddeley A, Turner R, Rubak E. Spatial Point Patterns: Methodology and Applications with R. Boca Raton, FL. CRC Press; 2015.
- De Bruyn H, Johnson M, Moretti M, Ahmed S, Mujat M, Akula JD, et al. The surviving, not thriving, photoreceptors in patients with ABCA4 Stargardt disease. Diagnostics (Basel). Jul 17, 2024;14(14):1545. [FREE Full text] [CrossRef] [Medline]
- Chandhakanond P, Aimmanee P. Diabetic retinopathy detection via exudates and hemorrhages segmentation using iterative NICK thresholding, watershed, and Chi2 feature ranking. Sci Rep. Feb 14, 2025;15(1):5541. [FREE Full text] [CrossRef] [Medline]
- Heisler M, Ju MJ, Bhalla M, Schuck N, Athwal A, Navajas EV, et al. Automated identification of cone photoreceptors in adaptive optics optical coherence tomography images using transfer learning. Biomed Opt Express. Oct 10, 2018;9(11):5353-5367. [FREE Full text] [CrossRef] [Medline]
- Wills S, Poon ST, Salili‐James A, Scott B. The use of generative AI for coding in academia. Methods Ecol Evol. Nov 12, 2024;15(12):2189-2191. [CrossRef]
- Roberts LJ, Jayasena R, Khanna S, Arnott L, Lane P, Bain C. Challenges for implementing generative artificial intelligence (GenAI) into clinical healthcare. Intern Med J. Jul 2025;55(7):1063-1069. [CrossRef] [Medline]
- Ji Z, Lee N, Frieske R, Yu T, Su D, Xu Y, et al. Survey of hallucination in natural language generation. ACM Comput Surv. Mar 03, 2023;55(12):1-38. [CrossRef]
- Zhang Z, Wang C, Wang Y, Shi E, Ma Y, Zhong W, et al. LLM hallucinations in practical code generation: phenomena, mechanism, and mitigation. Proc ACM Softw Eng. Jun 22, 2025;2(ISSTA):481-503. [CrossRef]
- Das AB, Sakib SK, Ahmed S. Trustworthy medical imaging with large language models: a study of hallucinations across modalities. In: Proceedings of the 2025 IEEE/CVF International Conference on Computer Vision Workshops. 2025. Presented at: ICCVW 2025; Oct 19-20, 2025; Honolulu, HI. [CrossRef]
- Giray L. Prompt engineering with ChatGPT: a guide for academic writers. Ann Biomed Eng. Dec 2023;51(12):2629-2633. [CrossRef] [Medline]
Abbreviations
| AO: adaptive optics |
| CE: Conformité Européenne |
| CMO: Commissie Mensgebonden Onderzoek |
| FIO: flood illumination ophthalmoscopy |
| GenAI: generative AI |
| RPE: retinal pigment epithelium |
| SLO: scanning light ophthalmoscope |
Edited by J Sarvestan; submitted 08.Mar.2026; peer-reviewed by L Sanchez Brea, K Kunala; comments to author 01.May.2026; revised version received 02.Jul.2026; accepted 03.Jul.2026; published 14.Sep.2026.
Copyright©Jeroen AAH Pas, Ludo C van der Zanden, Yoeri van Leeuwen, Yara TE Lechanteur, Carel B Hoyng, Thomas Theelen. Originally published in JMIR Formative Research (https://formative.jmir.org), 14.Sep.2026.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on https://formative.jmir.org, as well as this copyright and license information must be included.

