ResearchOphthalmology Science · Jun 1, 2026

Automated Review of Patient Records: Privacy-Preserving Large Language Models for Identifying Incident Nonarteritic Anterior Ischemic Optic Neuropathy at Scale

Nguyen TT, Li KZ, Chaitanuwong P, Moss HE
OphthalmologyAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗

Abstract

Purpose Retrospective identification of acute nonarteritic anterior ischemic optic neuropathy (NAION) cases is critical for research on risk factors. However, reliance on International Classification of Diseases (ICD) 10th edition coding for case identification has limited accuracy, and manual review of longitudinal electronic health records is time-intensive. The purpose of this study is to evaluate automated methods for retrospective identification of acute NAION cases using large language models (LLMs) that preserve patient privacy. Design Retrospective cross-sectional study. Subjects 165 patients with ≥1 ICD-10 code for ischemic optic neuropathy (H47.01∗) in the electronic health record at an academic medical center. Methods Five locally deployed LLM models (Mistral Small 3.1, Magistral Small, Gemma3, MedGemma, GPT-OSS 20B) were used to implement 4 approaches for acute NAION diagnostic classification using unstructured ophthalmology records (basic prompting, retrieval-augmented generation [RAG], 2-step agentic workflow, and 3-step agentic workflow). Ten percent of subjects were used for prompt refinement. Large language model/approach diagnostic classifications were compared against expert neuro-ophthalmologist diagnoses based on chart review. Main outcome measures Positive predictive value (PPV) of LLM approaches for acute NAION case identification with expert chart review diagnosis serving as gold standard. Secondary outcomes included negative predictive value, sensitivity, specificity, accuracy, F1 score, and distribution of LLM/approach classifications. Results 7/17 prompt refinement subjects and 58/148 testing subjects had acute NAION by expert chart review corresponding to PPV of 0.39 for ≥1 ICD code. Large language model approaches accurately identified 20 ± 12 (mean, standard deviation) acute NAION cases in the test set with PPV of 0.78 ± 0.16 and accuracy of 0.69 ± 0.06. The Mistral model using a 3-step agentic approach had the best-balanced performance (39 cases identified, 0.85 PPV, 0.82 accuracy, 0.75 F1 score). Conclusions Privacy-preserving agentic LLM approaches can achieve high PPV for acute NAION case identification using unstructured ophthalmology longitudinal electronic health records. These results exceed the performance of using structured ICD codes to identify cases, offering a scalable, efficient method for case identification in retrospective research while maintaining patient confidentiality and local data control. This method has application for enhancing research efficiency and accuracy for studies on NAION risk factors, with potential applicability to other conditions requiring complex diagnostic review. Financial disclosures Proprietary or commercial disclosure may be found in the Footnotes and Disclosures at the end of this article.

More on this topic

AI in medicine

DOI: 10.1016/j.xops.2026.101265 · PubMed: 42437116

Cite this article

Nguyen TT, Li KZ, Chaitanuwong P, Moss HE. Automated Review of Patient Records: Privacy-Preserving Large Language Models for Identifying Incident Nonarteritic Anterior Ischemic Optic Neuropathy at Scale. Ophthalmol Sci. 2026;6(8):101265. doi:10.1016/j.xops.2026.101265

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Ophthalmology studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

More in Ophthalmology

Research · Am J Ophthalmol · Nov 20, 2026 · Pediatric · Ophthalmology, Pediatrics

Higher severity of allergic conjunctivitis was linked to more meibomian gland loss in children

Randomized trial n = 264 · JAMA Ophthalmol · Nov 19, 2026 · Pediatric · Ophthalmology

Higher concentration atropine eye drops slowed myopia progression in children

Research · Am J Ophthalmol · Nov 19, 2026 · Ophthalmology, Neurology

Wildfire smoke exposure was linked to conversion in Leber's Hereditary Optic Neuropathy carriers

Research · Ophthalmology · Nov 18, 2026 · Ophthalmology, Oncology

Enucleations decreased and globe-sparing radiation increased for uveal melanoma

Research · Am J Ophthalmol · Nov 18, 2026 · Ophthalmology

Static perimetry thresholds developed to assess visual field loss severity in retinitis pigmentosa patients