Related Experiment Video
Updated: Jan 22, 2026

Manipulation of Rhythmic Food Intake in Mice Using a Custom-Made Feeding System
Published on: December 16, 2022
An Analysis of a Twitter Corpus for Training a Medication Intake Classifier
Ari Z Klein1, Abeed Sarker1, Karen O'Connor1
1Department of Biostatistics, Epidemiology, and Informatics, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, United States.
Social media data aids medication studies, but machine learning models trained on general medication tweets perform poorly for nervous system drugs. Specialized models may improve accuracy for these specific medications.
Area of Science:
- Computational linguistics
- Pharmacovigilance
- Health informatics
Background:
- Social media platforms are increasingly recognized as valuable data sources for medication-related research.
- Traditional observational studies of medications often rely on data sources other than social media.
- Advancing the use of social media data requires robust methods for analyzing medication information.
Purpose of the Study:
- To evaluate the performance of a machine learning classifier trained on a general corpus of medication-related tweets for detecting specific medication types.
- To identify medication classes where a general classifier performs suboptimally, necessitating specialized approaches.
- To inform the development of more accurate social media-based pharmacovigilance tools.
Main Methods:
- Analysis of an annotated corpus of 27,941 tweets related to medication intake.
- Training and evaluation of a baseline machine learning classifier on a diverse set of medication-related tweets.
- Comparative performance assessment of the classifier across different medication categories, with a focus on nervous system medications.
Main Results:
- The baseline classifier demonstrated significantly better performance for most medication types compared to its overall performance.
- A notable decline in classifier performance was observed for nervous system medications.
- This suggests that medication type significantly influences the effectiveness of general machine learning models.
Conclusions:
- A general machine learning model trained on social media data is useful for observational studies of most medication types.
- Studying nervous system medications using social media data may require developing classifiers trained exclusively on this specific medication class.
- Future work will explore data-level approaches for specialized medication classification.
More Related Videos
Related Concept Videos
Classifying Matter by Composition
According to its composition, the matter can be classified into two broad categories — pure substances and mixtures.
A pure substance is a form of matter that has a constant composition throughout with uniform properties. For example, any sample of sucrose has the same composition and same physical properties, such as melting point, color, and sweetness, regardless of the source from which it is isolated.
A mixture is composed of two or...
Classifying Matter by State
Regulation of Food Intake
Regulation of Water Intake
How Data are Classified: Numerical Data
Quantitative data may be either discrete or continuous. All quantitative data that take on only specific numerical...
How Data are Classified: Categorical Data
Data are classified based on whether they are measurable or not. Categorical data cannot be measured; instead, it can be divided into categories. For example, if Y denotes a person's party affiliation, some examples of Y include...

