Accepted for/Published in: Journal of Medical Internet Research
Date Submitted: Nov 20, 2023
Date Accepted: Nov 7, 2024
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
Utilizing Open-Source Language Models and ChatGPT for Zero-Shot Identification of Drug Discontinuation Events in Online Forums: Development and Validation Study
ABSTRACT
Background:
The implementation of Transformer-based Natural Language Processing (NLP) systems, such as BERT and GPT-4, has revolutionized the extraction of insights from unstructured text. These advancements have expanded into healthcare, analyzing social media for public health insights. Yet, drug discontinuation events (DDEs) detection remains underexplored. Identifying DDEs is crucial for understanding medication adherence and patient outcomes.
Objective:
The objective of this study is to provide a flexible framework for investigating various clinical research questions in data-sparse environments. We exemplify the utility of this framework by identifying DDEs in an open-source online forum, medhelp.org, and by releasing the first open-source DDE datasets to aid further research in this domain.
Methods:
We used pre-trained Transformer-based Natural Language Processing (NLP) models, including ChatGPT, DeBERTa, BART, RoBERTa, DistilRoBERTa, and DistilBERT for zero-shot classification of user comments describing DDEs from medhelp.org.
Results:
Among the selected models, BART performed the best by achieving an F1 score of 0.86207, a false positive rate of 2.8%, and a false negative rate of 6.5% without any fine-tuning. The dataset comprised 10.7% DDEs, emphasizing the models’ robustness in an imbalanced data context.
Conclusions:
Our study demonstrates the effectiveness of Transformer-based NLP models, such as ChatGPT and BART, for detecting DDEs from publicly accessible data through zero-shot classification. The robust and scalable framework we propose can aid researchers in addressing data-sparse clinical research questions. The release of open-access DDE datasets stands to stimulate further research and novel discoveries in this area.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.