Large Language Models for Drug Overdose Prediction from Longitudinal Medical Records
Preprint
Abstract
The ability to predict drug overdose risk from a patient's medical records is crucial for timely intervention and prevention. Traditional machine learning models have shown promise in analyzing longitudinal medical records for this task. However, recent advancements in large language models (LLMs) offer an opportunity to enhance prediction performance by leveraging their ability to process long textual data and their inherent prior knowledge across diverse tasks. In this study, we assess the effectiveness of Open AI's GPT-4o LLM in predicting drug overdose events using patients' longitudinal insurance claims records. We evaluate its performance in both fine-tuned and zero-shot settings, comparing them to strong traditional machine learning methods as baselines. Our results show that LLMs not only outperform traditional models in certain settings but can also predict overdose risk in a zero-shot setting without task-specific training. These findings highlight the potential of LLMs in clinical decision support, particularly for drug overdose risk prediction.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- A systematic review of machine learning applications in predicting opioid associated adverse eventsnpj Digital Medicine, 2025
- TAP4LLM: Table Provider on Sampling, Augmenting, and Packing Semi-structured Data for Large Language Model Reasoning2024
- Concurrent use of opioids and stimulants and risk of fatal overdose: A cohort studyBMC Public Health, 2022
- Drug overdose and the risk of cardiovascular diseases: a nested case–control studyClinical Research in Cardiology, 2021
- Descriptive exploration of overdose codes in hospital and emergency department discharge data to inform development of drug overdose morbidity surveillance indicator definitions in ICD-10-CMInjury Prevention, 2021
- Evaluation of Machine-Learning Algorithms for Predicting Opioid Overdose Risk Among Medicare Beneficiaries With Opioid PrescriptionsJAMA Network Open, 2019
- Predicting opioid dependence from electronic health records with machine learningBioData Mining, 2019
- Understanding Links among Opioid Use, Overdose, and SuicideNew England Journal of Medicine, 2019
- Drug overdose in the ED: a record linkage study examining emergency department ICD-10 coding practices in a cohort of people who inject drugsBMC Health Services Research, 2018
- Evaluating the impact of prescription drug monitoring program implementation: a scoping reviewBMC Health Services Research, 2017