{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,14]],"date-time":"2026-09-14T21:02:34Z","timestamp":1789419754228,"version":"build-2803163510"},"reference-count":35,"publisher":"JMIR Publications Inc.","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["JMIR Form Res"],"abstract":"<jats:sec>\n                    <jats:title>Background<\/jats:title>\n                    <jats:p>The availability of dedicated image analysis scripts for adaptive optics (AO)\u2013flood 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.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Objective<\/jats:title>\n                    <jats:p>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.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Methods<\/jats:title>\n                    <jats:p>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.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>After 54 iterations of instructions, a functional R script for the analysis of AO-FIO images was generated. The script identified and quantified blobs.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Conclusions<\/jats:title>\n                    <jats:p>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.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.2196\/94906","type":"journal-article","created":{"date-parts":[[2026,9,14]],"date-time":"2026-09-14T20:05:06Z","timestamp":1789416306000},"page":"e94906","source":"Crossref","is-referenced-by-count":0,"title":["Adaptive Optics Image Analysis Using Generative AI (GPT-4) Scripting: Exploratory Study"],"prefix":"10.2196","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0302-6690","authenticated-orcid":false,"given":"Jeroen AAH","family":"Pas","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1694-0473","authenticated-orcid":false,"given":"Ludo C","family":"van der Zanden","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0005-7611-2150","authenticated-orcid":false,"given":"Yoeri","family":"van Leeuwen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0951-4625","authenticated-orcid":false,"given":"Yara TE","family":"Lechanteur","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1358-5963","authenticated-orcid":false,"given":"Carel B","family":"Hoyng","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9067-1171","authenticated-orcid":false,"given":"Thomas","family":"Theelen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1010","published-online":{"date-parts":[[2026,9,14]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","DOI":"10.1186\/s13040-023-00339-9"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0191141"},{"key":"ref3","doi-asserted-by":"publisher","DOI":"10.3390\/diagnostics13142413"},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1364\/BOE.472274"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1016\/j.survophthal.2023.09.006"},{"key":"ref6","doi-asserted-by":"publisher","DOI":"10.1016\/j.preteyeres.2011.12.001"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.130110497"},{"key":"ref8","doi-asserted-by":"publisher","DOI":"10.1001\/jamaophthalmol.2015.2443"},{"key":"ref9","doi-asserted-by":"publisher","DOI":"10.3389\/fopht.2024.1384473"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-024-74088-y"},{"key":"ref11","doi-asserted-by":"publisher","DOI":"10.3390\/life13091871"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.12659\/MSM.941926"},{"key":"ref13","doi-asserted-by":"publisher","DOI":"10.1038\/s41433-020-01286-z"},{"key":"ref14","doi-asserted-by":"publisher","DOI":"10.3390\/s130100334"},{"key":"ref15","doi-asserted-by":"publisher","DOI":"10.1038\/s41433-019-0474-3"},{"key":"ref16","doi-asserted-by":"publisher","DOI":"10.1364\/BOE.471881"},{"key":"ref17","doi-asserted-by":"publisher","DOI":"10.1016\/j.xops.2024.100675"},{"key":"ref18","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-017-07103-0"},{"key":"ref19","doi-asserted-by":"publisher","DOI":"10.1167\/iovs.16-21003"},{"key":"ref20","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-018-26350-3"},{"key":"ref21","doi-asserted-by":"publisher","DOI":"10.1016\/j.preteyeres.2018.08.002"},{"key":"ref22","doi-asserted-by":"publisher","DOI":"10.3390\/s20247194"},{"key":"ref23","doi-asserted-by":"publisher","DOI":"10.1093\/bioinformatics\/btq046"},{"key":"ref24","doi-asserted-by":"publisher","DOI":"10.21105\/joss.01012"},{"key":"ref25","unstructured":"PlateTHeibergerRabind: combine multidimensional arraysThe Comprehensive R Archive Network20242026-07-25https:\/\/cran.r-project.org\/web\/packages\/abind\/index.html"},{"key":"ref26","doi-asserted-by":"crossref","DOI":"10.1201\/b19708","author":"Baddeley, A","year":"2015","journal-title":"Spatial Point Patterns: Methodology and Applications with R"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.3390\/diagnostics14141545"},{"key":"ref28","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-025-90048-6"},{"key":"ref29","doi-asserted-by":"publisher","DOI":"10.1364\/BOE.9.005353"},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.1111\/2041-210X.14454"},{"key":"ref31","doi-asserted-by":"publisher","DOI":"10.1111\/imj.70035"},{"key":"ref32","doi-asserted-by":"publisher","DOI":"10.1145\/3571730"},{"key":"ref33","doi-asserted-by":"publisher","DOI":"10.1145\/3728894"},{"key":"ref34","doi-asserted-by":"publisher","DOI":"10.1109\/iccvw69036.2025.00136"},{"key":"ref35","doi-asserted-by":"publisher","DOI":"10.1007\/s10439-023-03272-4"}],"container-title":["JMIR Formative Research"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/formative.jmir.org\/2026\/1\/e94906","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,14]],"date-time":"2026-09-14T20:05:09Z","timestamp":1789416309000},"score":1,"resource":{"primary":{"URL":"https:\/\/formative.jmir.org\/2026\/1\/e94906"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,14]]},"references-count":35,"URL":"https:\/\/doi.org\/10.2196\/94906","relation":{"has-preprint":[{"id-type":"doi","id":"10.2196\/preprints.94906","asserted-by":"object"}]},"ISSN":["2561-326X"],"issn-type":[{"value":"2561-326X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,14]]}}}