Large Language Models for Drug Overdose Prediction from Longitudinal Medical Records
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 OpenAI's GPT-4o and Google's MedGemma-27B LLMs in predicting drug overdose events using patients' longitudinal insurance claims records.
We evaluate their performance in both fine-tuned and zero-shot settings, comparing them to strong traditional machine learning methods as baselines.
Our results show that fine-tuned GPT-4o outperforms the traditional baselines, achieving F1 scores of 84.5 and 84.8 for the 7-day and 30-day prediction windows, compared to 78.9 and 77.3 for XGBoost, the strongest baseline.
In addition, both LLMs can predict overdose risk in a zero-shot setting without any task-specific training.
These findings highlight the potential of LLMs in clinical decision support for drug overdose risk prediction, but need prospective validation for real world deployment.