medRxivPreprintOpen accessophthalmology

Extraction of Glaucoma Diagnosis, Type, and Severity from Clinical Notes using Secure Cloud-based Large Language Models

G. A. Samico, N. Solages, R. Scherer, R. Muralidhar, N. E. Gutkind, V. Palazoni, F. A. Medeiros, S. S. Swaminathan

Key points

From the paper's conclusion
  • Conclusions: LLMs accurately extracted glaucoma diagnosis, type, and severity from free-text clinical notes, outperforming ICD-based phenotyping.

Abstract

Purpose: To evaluate the performance of large language models (LLMs) in extracting glaucoma diagnosis, type, and severity from clinical notes in the electronic health record (EHR). Methods: Clinical notes of glaucoma-related encounters between 2014 and 2024 from 1,242 subjects were extracted from the Bascom Palmer Ophthalmic Repository. Two fellowship-trained glaucoma specialists labeled notes for glaucoma presence, type, and severity. Dataset was split into development (10%), validation (10%), and test (80%) sets. Five LLMs (Claude Opus 4.6, DeepSeek-V3.2, GPT-5.2, Grok 4.1 fast non-reasoning, and Qwen3.6-35B-A3B) were accessed via Microsoft Foundry within HIPAA-compliant containers. Model performance was assessed using standard metrics. Clinician-entered ICD-10 codes were also compared with adjudicated labels. Main Outcome Measures: Gwet AC1, accuracy, sensitivity, specificity, and F1-score. Results: Inter-grader agreement for glaucoma diagnosis, type, and severity was high (Gwet AC1 0.940, 0.917, 0.906, respectively). For glaucoma diagnosis, LLMs demonstrated high accuracy, with Claude achieving 97.5%, DeepSeek 96.0%, GPT 96.2%, Grok 94.4%, and Qwen 95.5%. F1 scores for glaucoma detection ranged from 97.0% to 98.9%. For type, accuracies were 97.1%, 94.2%, 94.2%, 94.0%, and 94.4%, respectively. F1 scores for the most prevalent type (POAG) ranged from 96.6% to 98.9%. For severity, accuracies were 95.0%, 94.8%, 94.5%, 94.0%, and 95.2%, respectively, with F1 scores ranging from 89.7% to 96.3%. ICD-10 codes demonstrated lower accuracies for type and severity (87.3% and 69.2%, respectively). Conclusions: LLMs accurately extracted glaucoma diagnosis, type, and severity from free-text clinical notes, outperforming ICD-based phenotyping. Translational Relevance: LLMs have the potential to transform unstructured documentation into scalable, research-ready phenotypes for EHR-based glaucoma cohort construction.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers