Related Experiment Video
Updated: Jan 11, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Extracting TNFi switching reasons and trajectories from real-world data using large language models
Brenda Y Miao1, Marie Binvignat1,2,3, Augusto Garcia-Agundez4
1Bakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Large language models (LLMs) can automate the review of electronic health records to identify tumor necrosis factor inhibitor (TNFi) switching patterns and reasons for switching in real-world patient data.
Area of Science:
- Health Informatics
- Artificial Intelligence in Medicine
- Real-World Evidence Generation
Background:
- Tumor necrosis factor inhibitors (TNFi) are crucial for treating inflammatory conditions.
- Understanding TNFi switching patterns is vital for optimizing patient care.
- Manual chart review for treatment changes is time-consuming and resource-intensive.
Purpose of the Study:
- To evaluate the capability of large language models (LLMs) to automate the identification of TNFi treatment switching.
- To determine the reasons behind TNFi switches using LLM-based chart review.
- To compare the performance of advanced LLMs against open-source models and traditional methods.
Main Methods:
- An observational study utilized de-identified electronic health record (EHR) data from 2012-2023.
- GPT-4 was employed to extract TNFi treatment switches and reasons from clinical notes.
- Performance was benchmarked against eight open-source LLMs, structured EHR data, and expert annotations.
Main Results:
- GPT-4 demonstrated strong performance in identifying stopped drugs (micro-F1=0.75), started drugs (0.80), and reasons for switching (0.83).
- Open-source models like Starling-7B-beta and Llama-3-8B showed competitive results.
- The primary reasons for TNFi switching were lack of efficacy (56.9%), adverse events (13.5%), and insurance/cost (10.8%).
Conclusions:
- LLMs, including GPT-4 and deployable open-source models, can effectively extract complex treatment information from clinical notes.
- Automated chart review using LLMs facilitates scalable analysis of real-world data.
- This technology supports enhanced real-world evidence generation for treatment patterns.
More Related Videos
05:47Evidence-based Knowledge Synthesis and Hypothesis Validation: Navigating Biomedical Knowledge Bases via Explainable AI and Agentic Systems
Published on: June 13, 2025
03:37Author Spotlight: Impact of Intergenic Interactions on Disease-Identifying Dark Biomarkers
Published on: March 1, 2024
Related Concept Videos
Improving Translational Accuracy
Improving Translational Accuracy
Language and Cognition
Leaky Scanning