Related Experiment Video
Updated: Jan 25, 2026

Constructing and Visualizing Models using Mime-based Machine-learning Framework
Published on: July 22, 2025
Machine learning for phenotyping opioid overdose events
Jonathan Badger1, Eric LaRose2, John Mayer2
1Marshfield Clinic Research Institute, Marshfield, WI, USA; Department of Biostatistics and Medical Informatics, University of Wisconsin, Madison, WI, USA.
Objective:
To develop machine learning models for classifying the severity of opioid overdose events from clinical data.
Materials And Methods:
Opioid overdoses were identified by diagnoses codes from the Marshfield Clinic population and assigned a severity score via chart review to form a gold standard set of labels. Three primary feature sets were constructed from disparate data sources surrounding each event and used to train machine learning models for phenotyping.
Results:
Random forest and penalized logistic regression models gave the best performance with cross-validated mean areas under the ROC curves (AUCs) for all severity classes of 0.893 and 0.882 respectively. Features derived from a common data model outperformed features collected from disparate data sources for the same cohort of patients (AUCs 0.893 versus 0.837, p value = 0.002). The addition of features extracted from free text to machine learning models also increased AUCs from 0.827 to 0.893 (p value < 0.0001). Key word features extracted using natural language processing (NLP) such as 'Narcan' and 'Endotracheal Tube' are important for classifying overdose event severity.
Conclusion:
Random forest models using features derived from a common data model and free text can be effective for classifying opioid overdose events.
Related Concept Videos
Opioid Analgesics: Synthetic and Semisynthetic Opioids
Opioid Receptors: Overview
Opioid Analgesics: Morphine and Other Natural Cogeners
Machines
A free-body diagram of the...
Drugs Affecting GI Tract Motility: Opioids as Antidiarrheal Agents
Opioids, widely used antidiarrheal agents, mitigate diarrhea by slowing down...
Machines: Problem Solving II

