Developing large language models to detect adverse drug events in posts on x
Yu Deng Yunzhao Xing Jason Quach Xiaotian Chen Xiaoqiang Wu Yafei Zhang Charlotte Moureaud Mengjia Yu Yujie Zhao Li Wang Sheng Zhong a Data & Statistical Sciences,AbbVie Inc,North Chicago,Illinois,USAb Computer Science & Engineering,University of California San Diego,La Jolla,California,USAc Clinical Development Oncology,AbbVie Inc,North Chicago,Illinois,USA
DOI: https://doi.org/10.1080/10543406.2024.2403442
2024-09-21
Journal of Biopharmaceutical Statistics
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.
pharmacology & pharmacy,statistics & probability