ResearchTranslational Vision Science & Technology · Apr 17, 2026

Benchmarking GPT-5, LLaMA, and Mistral for Clinical Named Entity Recognition in Ophthalmology Progress Notes

Majid I, Ruan FY, Wang SY
OphthalmologyAdult
Read the full paper free at PubMed Central ↗

Abstract

Purpose To compare the performance of GPT-5, LLaMA 3.1-70B, and Mistral 7B in extracting clinically relevant entities from unstructured ophthalmology progress notes. Methods We evaluated GPT-5, quantized and full-precision LLaMA 3.1-70B, and Mistral 7B on a corpus of 480 publicly available deidentified progress notes from patients with glaucoma at a single academic center. Each note was presented to all models using a standardized prompt. The outputs were manually annotated for six clinical entity types: ocular surgical history, follow-up dates, intraocular pressure (IOP), diagnostic tests and results, ocular conditions, and family history. Precision, recall, F1 score, and accuracy were calculated for each model. Micro- and macro-averaged evaluations were also performed, alongside stratification by note length and qualitative error analysis. Results GPT-5 outperformed LLaMA 3.1-70B and Mistral 7B across all metrics, with its highest F1 score in surgical history extraction (0.929) and lowest in diagnostic tests (0.820). Full-precision LLaMA 3.1-70B and Mistral performed best on IOP extraction (F1 score: 0.875 and 0.884, respectively) and worst on diagnostic tests (F1 score: 0.338 and 0.642, respectively). Micro- and macro-averaged evaluations confirmed GPT-5's superior performance (F1: 0.941 micro, 0.936 macro) compared to full-precision LLaMA's (F1: 0.718 micro, 0.694 macro) and Mistral's (F1: 0.804 micro, 0.789 macro). Conclusions These findings highlight the promise of large language models for accurate clinical information extraction from unstructured ophthalmic text. Translational relevance Large language models may offer the potential to streamline information retrieval, enhance clinical decision-making, and generate structured datasets that can accelerate research and improve patient outcomes in ophthalmology.

More on this topic

AI in medicine

Subject terms

Ophthalmology; Large Language Models; Humans; Benchmarking; Glaucoma; Electronic Health Records; Generative Artificial Intelligence

DOI: 10.1167/tvst.15.4.17 · PubMed: 41989226

Cite this article

Majid I, Ruan FY, Wang SY. Benchmarking GPT-5, LLaMA, and Mistral for Clinical Named Entity Recognition in Ophthalmology Progress Notes. Transl Vis Sci Technol. 2026;15(4):17. doi:10.1167/tvst.15.4.17

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

Similar articles

Research · Transl Vis Sci Technol · Jan 14, 2026 · Ophthalmology, Digital Health & AI

Assessing the Accuracy of Artificial Intelligence-Generated Clinical Summaries From Ambulatory Glaucoma Subspecialty Clinical Encounters

Research · Transl Vis Sci Technol · Feb 10, 2026 · Ophthalmology, Digital Health & AI

Utility of ChatGPT-4o in Creating Patient Handouts in Ophthalmology: A Comparison With American Academy of Ophthalmology Educational Materials

Research · Ophthalmology · Jun 3, 2026 · Ophthalmology, Digital Health & AI

Large Language Model Authorship in Ophthalmic Publications

Research · Am J Ophthalmol · Aug 12, 2026 · Ophthalmology

AI Writing Vocabulary in Ophthalmology: Faster Non-Native Adoption, Unchanged Outcomes

Research · Transl Vis Sci Technol · May 19, 2026 · Ophthalmology, Digital Health & AI

Identification of Risk Factors for Glaucoma Progression in Free-Text Clinical Notes Using a Local Large Language Model