Developing and Validating a Machine Learning Algorithm to Predict the Risk of Incident Opioid Use Disorder Among
Jabed Al Faysal1,2, Weihsuan Lo-Ciganic3,4,5, Walid F Gellad3,4
1Department of Pharmaceutical Outcomes & Policy, University of Florida, 1889 Museum Road, Malachowsky Hall, Suite 6300, Gainesville, FL, 32611, United States, 12566946603.
Journal of Medical Internet Research
|March 11, 2026
Summary
Machine learning models can predict opioid use disorder (OUD) risk in patients starting opioid therapy. This approach enhances early identification and intervention for OUD, a critical public health issue.
Area of Science:
- Clinical Informatics
- Public Health
- Machine Learning in Healthcare
Background:
- Opioid use disorder (OUD) is a major public health crisis in the U.S.
- Current screening for OUD risk is limited and lacks individualization.
- Machine learning (ML) offers potential for improved OUD risk prediction.
Purpose of the Study:
- Develop and validate an ML model to predict 3-month incident OUD risk in adults initiating opioid therapy.
- Stratify patients into clinically actionable risk groups using electronic health record (EHR) data.
Main Methods:
- Utilized OneFlorida+ EHR data (2017-2022) for model development and UPMC data for external validation.
- Included 182,083 adults without prior OUD, cancer, or overdose history receiving opioid prescriptions.
- Developed and compared elastic net, LASSO, GBM, and random forest models using 183 predictors.
Main Results:
- The Gradient Boosting Machine (GBM) model demonstrated strong performance (C-statistic=0.879) in validation, identifying key predictors like age and pain history.
- The top risk decile identified ~68% of OUD cases with a positive predictive value of 3.26%.
- External validation on UPMC data confirmed the GBM model's discriminative ability (C-statistic=0.756).
Conclusions:
- An ML algorithm developed using EHR data effectively predicts and stratifies incident OUD risk.
- The model shows promise for cross-health system application to inform early OUD interventions.
- This approach can enhance OUD prevention strategies in clinical settings.
Related Concept Videos
Opioid Analgesics: Morphine and Other Natural Cogeners
1.3K
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.3K
Opioid Analgesics: Synthetic and Semisynthetic Opioids
1.3K
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.3K
Drug Dosing: Obese Patients
325
In the United States, obesity is a prominent concern. It is linked to heightened mortality rates due to increased occurrences of conditions such as hypertension, atherosclerosis, coronary artery disease, and diabetes compared to nonobese individuals. A patient is classified as obese if their actual body weight surpasses the ideal or desirable body weight by 20%, based on Metropolitan Life Insurance Company data. Ideal body weights consider average weights and heights for males and females...
325
Drug Toxicity: Risk factors
90
Adverse Drug Reactions (ADRs) are potential complications that arise during pharmacotherapy, influenced by multiple risk factors. Age plays a significant role; both neonates and the elderly are at heightened risk due to their respective immature and diminished metabolic and elimination processes. Gender also impacts ADRs, with females experiencing a 1.5 to 1.7-fold greater risk than males, which may be linked to pharmacokinetic, pharmacodynamic, and hormonal differences. Notably, neonates, the...
90
Steps in Outbreak Investigation
680
In the ever-evolving field of public health, statistical analysis serves as a cornerstone for understanding and managing disease outbreaks. By leveraging various statistical tools, health professionals can predict potential outbreaks, analyze ongoing situations, and devise effective responses to mitigate impact. For that to happen, there are a few possible stages of the analysis:
680


