Related Experiment Video
Updated: May 5, 2026

08:53
Integrating Computerized Linguistic and Social Network Analyses to Capture Addiction Recovery Capital in an Online Community
Published on: May 31, 2019
5.8K
Automated Risk Assessment of Opioid Use: Analysis Using Pre-Trained Transformers on Social Media Data
Muhammad Ahmad1, Rita Orji2, Maaz Amjad3
1Instituto Politécnico Nacional, Centro de Investigación en Computación, Mexico City, Mexico.
JMIR Infodemiology
|February 19, 2026
Summary
This study developed an automated tool using BioBERT and social media data to detect opioid overdose risks. The model achieved 99% accuracy, significantly improving early intervention for the opioid crisis.
Area of Science:
- Computational linguistics
- Public health informatics
- Machine learning for healthcare
Background:
- The opioid epidemic causes significant mortality and addiction globally.
- Automated tools are needed for faster overdose detection and risk assessment.
- Social media platforms like Reddit offer valuable self-reported data on opioid misuse.
Purpose of the Study:
- To develop an automated system for detecting opioid overdose risks.
- To classify substances as high-risk or low-risk using social media posts.
- To enhance early intervention and harm reduction strategies.
Main Methods:
- Constructed and manually annotated a novel dataset from Reddit posts.
- Utilized a BioBERT (Bidirectional Encoder Representations from Transformers for Biomedical text mining) model enhanced with a custom attention mechanism.
- Evaluated performance using 5-fold cross-validation and compared against baseline models, including XGBoost (Extreme Gradient Boosting).
Main Results:
- The BioBERT model with custom attention achieved a 0.99 F1-score, surpassing the best baseline (XGBoost at 0.97).
- A paired t-test confirmed a statistically significant performance improvement (P=.003).
- The model demonstrated robust and accurate overdose risk detection capabilities.
Conclusions:
- Social media data combined with advanced NLP models can create effective opioid overdose detection systems.
- The BioBERT model with custom attention offers state-of-the-art performance for real-time intervention.
- This technology supports timely harm reduction efforts in the opioid crisis.
Related Concept Videos
Opioid Analgesics: Morphine and Other Natural Cogeners
1.7K
Opioids are a class of drugs that mimic endogenous opioid peptides and act on opioid receptors, and help in pain relief. These compounds are classified as natural, synthetic, or semi-synthetic. Natural opioids, like morphine, codeine, and thebaine, are derived from the opium poppy plant (Papaver somniferum or Papaver album) and are termed opiates. Synthetic opioids are artificial, while semi-synthetic opioids combine natural and synthetic compounds. Morphine, a prototypical opioid, possesses a...
1.7K
Opioid Analgesics: Synthetic and Semisynthetic Opioids
1.5K
Synthetic and semisynthetic opioids are pivotal in pain management and tackling opioid addiction. Semisynthetic opioids, including morphinans (morphine derivatives), oxycodone, oxymorphone, hydrocodone, and hydromorphone, have improved pharmacokinetic profiles compared to morphine. Additionally, heroin and 6-MAM (6-Monoacetylmorphine) show better CNS penetration than morphine due to heightened lipid solubility. Hydromorphone, a potent opioid, undergoes hepatic metabolism to form the active...
1.5K