Related Experiment Video
Updated: Mar 7, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Evaluating the Performance of Large Language Models for Named Entity Recognition in Ophthalmology Clinical Free-Text
Iyad Majid1, Vaibhav Mishra1, Rohith Ravindranath1
1Stanford University School of Medicine, Palo Alto, CA, United States.
Abstract:
This study compared large language models (LLMs) and Bidirectional Encoder Representations from Transformers (BERT) models in identifying medication names, routes, and frequencies from publicly available free-text ophthalmology progress notes of 480 patients. 5,520 lines of annotated text were divided into train (N=3,864), validation (N=1,104), and test sets (N=552). We evaluated ChatGPT-3.5, ChatGPT-4, PaLM 2, and Gemini to identify these medication entities. We fine-tuned BERT, BioBERT, ClinicalBERT, DistilBERT, and RoBERTa for the same task using the training set. On the test set, GPT-4 achieved the best performance (macro-averaged F1 0.962). Among the BERT models, BioBERT achieved the best performance (macro-averaged F1 0.875). Modern LLMs outperformed BERT models even in the highly domain-specific task of identifying ophthalmic medication information from progress notes, showcasing the potential of LLMs for medical named entity recognition to enhance patient care.
More Related Videos
Related Concept Videos
Glaucoma: Overview
Open Angle Glaucoma: Treatment
Drugs such as carbonic anhydrase inhibitors, α2- and...

