Understanding contraceptive switching rationales from real world clinical notes using large language models

Understanding reasons for treatment switching is of significant medical interest, but these factors are often only found in unstructured clinical notes and can be difficult to extract. We evaluated the zero-shot abilities of GPT-4 and eight other open-source large language models (LLMs) to extract contraceptive switching information from 1964 clinical notes derived from the UCSF Information Commons dataset. GPT-4 extracted the contraceptives started and stopped at each switch with microF1 scores of 0.85 and 0.88, respectively, compared to 0.81 and 0.88 for the best open-source model. When evaluated by clinical experts, GPT-4 extracted reasons for switching with an accuracy of 91.4% (2.2% hallucination rate). Transformer-based topic modeling identified patient preference, adverse events, and insurance coverage as key reasons. These findings demonstrate the value of LLMs in identifying complex treatment factors and provide insights into reasons for contraceptive switching in real-world settings.

Authors

Institutions

Publication Details

Journal
npj Digital Medicine
Published
2025-04-23
DOI
https://doi.org/10.1038/s41746-025-01615-0
Citations
1
Primary Topic
Reproductive Health and Contraception
Type
article
Field-Weighted Citation Impact
1.88

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Understanding contraceptive switching rationales from real world clinical notes using large language models

Travis Ian Zack, Brenda Y. Miao, Atul J. Butte, Emily Alsentzer et al.
1 citations
npj Digital Medicine
Reproductive Health and Contraception
1.88
article

Understanding contraceptive switching rationales from real world clinical notes using large language models

Travis Ian Zack, Brenda Y. Miao, Atul J. Butte, Emily Alsentzer, Christopher Y. K. Williams, Irene Y. Chen, Ebenezer Chinedu-Eneh
article en
1 citations

Abstract

Understanding reasons for treatment switching is of significant medical interest, but these factors are often only found in unstructured clinical notes and can be difficult to extract. We evaluated the zero-shot abilities of GPT-4 and eight other open-source large language models (LLMs) to extract contraceptive switching information from 1964 clinical notes derived from the UCSF Information Commons dataset. GPT-4 extracted the contraceptives started and stopped at each switch with microF1 scores of 0.85 and 0.88, respectively, compared to 0.81 and 0.88 for the best open-source model. When evaluated by clinical experts, GPT-4 extracted reasons for switching with an accuracy of 91.4% (2.2% hallucination rate). Transformer-based topic modeling identified patient preference, adverse events, and insurance coverage as key reasons. These findings demonstrate the value of LLMs in identifying complex treatment factors and provide insights into reasons for contraceptive switching in real-world settings.

npj Digital MedicineVol. 8(1)
Brigham and Women's Hospital (US), Executive Office of the President (US), Harvard University (US), University of California, San Francisco (US), UCSF Helen Diller Family Comprehensive Cancer Center (US), University of California, Berkeley (US)
National Institutes of Health, University of California, San Francisco, National Center for Advancing Translational Sciences
Good health and well-being
Openalex Percentile: Top 17%
Reproductive Health and Contraception
1.88
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.