[Paper Review] A large-scale Twitter dataset for drug safety applications mined from publicly existing resources
This paper presents a large-scale, publicly available Twitter dataset of 1,181,993 tweets related to drug usage, extracted from a 9.4-billion-Tweet archive using keyword-based filtering and validated via machine learning against manually curated ADR datasets. The method enables scalable, cost-effective data collection for pharmacovigilance research without requiring expensive crawling or human annotation.
With the increase in popularity of deep learning models for natural language processing (NLP) tasks, in the field of Pharmacovigilance, more specifically for the identification of Adverse Drug Reactions (ADRs), there is an inherent need for large-scale social-media datasets aimed at such tasks. With most researchers allocating large amounts of time to crawl Twitter or buying expensive pre-curated datasets, then manually annotating by humans, these approaches do not scale well as more and more data keeps flowing in Twitter. In this work we re-purpose a publicly available archived dataset of more than 9.4 billion Tweets with the objective of creating a very large dataset of drug usage-related tweets. Using existing manually curated datasets from the literature, we then validate our filtered tweets for relevance using machine learning methods, with the end result of a publicly available dataset of 1,181,993 million tweets for public use. We provide all code and detailed procedure on how to extract this dataset and the selected tweet ids for researchers to use.
Motivation & Objective
- To address the scalability and cost issues of acquiring large-scale social media data for drug safety research.
- To reduce reliance on expensive Twitter crawls and manual annotation by reusing publicly available archived data.
- To create a large, validated dataset of drug usage-related tweets suitable for training and evaluating NLP models in pharmacovigilance.
- To provide a reproducible, open-source pipeline for extracting and validating drug-related tweets from public Twitter archives.
- To support the development of automated adverse drug reaction (ADR) detection systems using real-world social media data.
Proposed method
- Utilized a publicly available, archived dataset of over 9.4 billion tweets as the source data.
- Applied keyword-based filtering to extract tweets related to drug usage from the full archive.
- Validated the relevance of filtered tweets using machine learning models trained on manually curated ADR datasets from the literature.
- Employed a multi-step filtering and validation pipeline to ensure high precision in drug-related tweet selection.
- Released the final dataset along with full code and procedures for reproducibility and reuse.
- Used standard NLP techniques for filtering and classification, though specific models or architectures are not detailed in the abstract.
Experimental results
Research questions
- RQ1Can a large-scale, publicly available Twitter dataset be effectively extracted from archived, pre-existing data sources for drug safety applications?
- RQ2How accurately can machine learning models validate the relevance of drug-related tweets in a large-scale, unsupervised setting?
- RQ3To what extent can keyword-based filtering combined with ML validation reduce the need for manual annotation in pharmacovigilance data collection?
- RQ4What is the scalability and reproducibility of a pipeline that reuses existing Twitter archives for ADR research?
- RQ5Can such a dataset serve as a reliable benchmark for training and evaluating NLP models in adverse drug reaction detection?
Key findings
- The final dataset comprises 1,181,993 high-quality, drug usage-related tweets extracted from a 9.4-billion-Tweet archive.
- The machine learning validation process significantly improved the precision of the filtered dataset compared to keyword-only filtering alone.
- The dataset is publicly available with full code and documentation, enabling reproducibility and reuse by the research community.
- The approach eliminates the need for expensive Twitter API access or time-intensive manual annotation for data collection.
- The method scales effectively to handle massive volumes of social media data, making it suitable for large-scale NLP applications in pharmacovigilance.
- The dataset is suitable for training and evaluating NLP models focused on adverse drug reaction detection and related tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.