Using Machine Learning to Predict Treatment Adherence in Patients on Medication for Opioid Use Disorder
Albert J Burgess-Hull1, Caleb Brooks, David H Epstein
1From the Intramural Research Program, National Institute on Drug Abuse, Baltimore, MD (AJB-H, DHE); Department of Psychiatry, University of Maryland School of Medicine, Baltimore, MD (DG); Department of Child and Adolescent Psychiatry, University of Maryland School of Medicine, Baltimore, MD (EO); MATClinics, Dundalk, MD (AJB-H, CB, EO).
Predicting treatment adherence for patients with opioid use disorder (OUD) is crucial. An automated risk-modeling framework using machine learning, like XGBoost, shows promise in predicting adherence and improving care for OUD patients.
Area of Science:
- Data Science in Healthcare
- Clinical Informatics
- Addiction Medicine Research
Background:
- Patients with opioid use disorder (OUD) on medication may struggle with adherence or use non-prescribed drugs.
- Predicting which patients will face these challenges is difficult.
- Improved risk prediction tools are needed to enhance the delivery of medication for opioid use disorder (MOUD).
Purpose of the Study:
- To develop and validate an automated risk-modeling framework.
- To predict opioid abstinence and medication adherence at a patient's next appointment.
- To evaluate machine learning algorithms against logistic regression for predictive performance.
Main Methods:
- Utilized urine drug screen and attendance records from 40,005 appointments across 2742 patients.
- Trained logistic regression, logistic ridge regression, and XGBoost models.
- Predicted a composite indicator of treatment adherence at the next attended appointment.
Main Results:
- XGBoost model achieved 88% accuracy and 0.87 AUC, similar to logistic regression models.
- XGBoost demonstrated nearly perfect calibration; logistic models slightly overestimated adherence.
- Key predictors included historical adherence, attendance rate, and current fentanyl-positive urine.
Conclusions:
- An automated, portable risk-modeling framework can predict treatment adherence for patients receiving medication for opioid use disorder.
- XGBoost offers comparable accuracy to logistic regression with potentially better calibration of risk estimates.
- This framework can aid in improving the management and outcomes for OUD patients.
Related Concept Videos
Drug Abuse and Addiction: Pharmacological Phenomena
Drug Therapy
Antianxiety Medications
Opioid Analgesics: Synthetic and Semisynthetic Opioids
Analgesia and Pain Management
Substance Use Disorders Affecting Sleep
Understanding the concepts of physical dependence,...
Opioid Analgesics: Morphine and Other Natural Cogeners


