[Paper Review] Identifying Reasons for Contraceptive Switching from Real-World Data Using Large Language Models
The study uses GPT-4 to extract reasons for contraceptive switching from UCSF clinical notes, outperforming BERT baselines and achieving high human-validated accuracy.
Prescription contraceptives play a critical role in supporting women's reproductive health. With nearly 50 million women in the United States using contraceptives, understanding the factors that drive contraceptives selection and switching is of significant interest. However, many factors related to medication switching are often only captured in unstructured clinical notes and can be difficult to extract. Here, we evaluate the zero-shot abilities of a recently developed large language model, GPT-4 (via HIPAA-compliant Microsoft Azure API), to identify reasons for switching between classes of contraceptives from the UCSF Information Commons clinical notes dataset. We demonstrate that GPT-4 can accurately extract reasons for contraceptive switching, outperforming baseline BERT-based models with microF1 scores of 0.849 and 0.881 for contraceptive start and stop extraction, respectively. Human evaluation of GPT-4-extracted reasons for switching showed 91.4% accuracy, with minimal hallucinations. Using extracted reasons, we identified patient preference, adverse events, and insurance as key reasons for switching using unsupervised topic modeling approaches. Notably, we also showed using our approach that "weight gain/mood change" and "insurance coverage" are disproportionately found as reasons for contraceptive switching in specific demographic populations. Our code and supplemental data are available at https://github.com/BMiao10/contraceptive-switching.
Motivation & Objective
- Motivate understanding of factors driving contraceptive selection and switching.
- Evaluate zero-shot GPT-4 capabilities on unstructured clinical notes.
- Compare GPT-4 extraction performance to BERT-based baselines.
- Identify key drivers of switching and demographic patterns using unsupervised analysis.
Proposed method
- Apply GPT-4 (HIPAA-compliant via Azure) to UCSF Information Commons clinical notes.
- Extract reasons for contraceptive start and stop in a zero-shot setting.
- Quantitatively compare GPT-4 extraction to baseline BERT models using microF1 scores.
- Conduct human evaluation of GPT-4-extracted reasons to assess accuracy and hallucinations.
- Use unsupervised topic modeling to identify major switching drivers and demographic associations.
Experimental results
Research questions
- RQ1Can GPT-4 identify explicit reasons for contraceptive switching from unstructured clinical notes?
- RQ2How does GPT-4 zero-shot extraction compare to baseline BERT models on start/stop switching tasks?
- RQ3What are the predominant reasons for switching, and do they vary by demographic groups?
Key findings
- GPT-4 achieves microF1 scores of 0.849 (start) and 0.881 (stop) for extraction tasks.
- Human evaluation of GPT-4 extracted reasons shows 91.4% accuracy with minimal hallucinations.
- Reported reasons include patient preference, adverse events, and insurance as key drivers.
- Unsupervised topic modeling reveals weight gain/mood change and insurance coverage are disproportionately linked to switching in certain demographics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.