Back to Search Start Over

Developing large language models to detect adverse drug events in posts on x.

Authors :
Deng Y
Xing Y
Quach J
Chen X
Wu X
Zhang Y
Moureaud C
Yu M
Zhao Y
Wang L
Zhong S
Source :
Journal of biopharmaceutical statistics [J Biopharm Stat] 2024 Sep 20, pp. 1-12. Date of Electronic Publication: 2024 Sep 20.
Publication Year :
2024
Publisher :
Ahead of Print

Abstract

Adverse drug events (ADEs) are one of the major causes of hospital admissions and are associated with increased morbidity and mortality. Post-marketing ADE identification is one of the most important phases of drug safety surveillance. Traditionally, data sources for post-marketing surveillance mainly come from spontaneous reporting system such as the Food and Drug Administration Adverse Event Reporting System (FAERS). Social media data such as posts on X (formerly Twitter) contain rich patient and medication information and could potentially accelerate drug surveillance research. However, ADE information in social media data is usually locked in the text, making it difficult to be employed by traditional statistical approaches. In recent years, large language models (LLMs) have shown promise in many natural language processing tasks. In this study, we developed several LLMs to perform ADE classification on X data. We fine-tuned various LLMs including BERT-base, Bio_ClinicalBERT, RoBERTa, and RoBERTa-large. We also experimented ChatGPT few-shot prompting and ChatGPT fine-tuned on the whole training data. We then evaluated the model performance based on sensitivity, specificity, negative predictive value, positive predictive value, accuracy, F1-measure, and area under the ROC curve. Our results showed that RoBERTa-large achieved the best F1-measure (0.8) among all models followed by ChatGPT fine-tuned model with F1-measure of 0.75. Our feature importance analysis based on 1200 random samples and RoBERTa-Large showed the most important features are as follows: "withdrawals"/"withdrawal", "dry", "dealing", "mouth", and "paralysis". The good model performance and clinically relevant features show the potential of LLMs in augmenting ADE detection for post-marketing drug safety surveillance.

Details

Language :
English
ISSN :
1520-5711
Database :
MEDLINE
Journal :
Journal of biopharmaceutical statistics
Publication Type :
Academic Journal
Accession number :
39300965
Full Text :
https://doi.org/10.1080/10543406.2024.2403442