Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada

Objective To develop machine learning models employing administrative health data that can estimate risk of adverse outcomes within 30 days of an opioid dispensation for use by health departments or prescription monitoring programmes.Design, setting and participants This prognostic study was conduct...

Full description

Bibliographic Details
Main Authors: Dean T Eurich, Salim Samanani, Vinaykumar Kulkarni, Luke Kumar
Format: Article
Language:English
Published: BMJ Publishing Group 2021-06-01
Series:BMJ Open
Online Access:https://bmjopen.bmj.com/content/11/5/e043964.full
id doaj-8e2c4d2f9782442cb8ac61fc4d3e8db7
record_format Article
spelling doaj-8e2c4d2f9782442cb8ac61fc4d3e8db72021-10-03T05:00:05ZengBMJ Publishing GroupBMJ Open2044-60552021-06-0111510.1136/bmjopen-2020-043964Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, CanadaDean T Eurich0Salim Samanani1Vinaykumar Kulkarni2Luke Kumar31 School of Public Health, University of Alberta, Edmonton, Alberta, Canada3 Okaki Health Intelligence, Calgary, Alberta, CanadaOKAKI Health Analytics, Edmonton, Alberta, CanadaAlberta Machine Intelligence Institute, Edmonton, Alberta, CanadaObjective To develop machine learning models employing administrative health data that can estimate risk of adverse outcomes within 30 days of an opioid dispensation for use by health departments or prescription monitoring programmes.Design, setting and participants This prognostic study was conducted in Alberta, Canada between 2017 and 2018. Participants included all patients 18 years of age and older who received at least one opioid dispensation. Pregnant and cancer patients were excluded.Exposure Each opioid dispensation served as an exposure.Main outcomes/measures Opioid-related adverse outcomes were identified from linked administrative health data. Machine learning algorithms were trained using 2017 data to predict risk of hospitalisation, emergency department visit and mortality within 30 days of an opioid dispensation. Two validation sets, using 2017 and 2018 data, were used to evaluate model performance. Model discrimination and calibration performance were assessed for all patients and those at higher risk. Machine learning discrimination was compared with current opioid guidelines.Results Participants in the 2017 training set (n=275 150) and validation set (n=117 829) had similar baseline characteristics. In the 2017 validation set, c-statistics for the XGBoost, logistic regression and neural network classifiers were 0.87, 0.87 and 0.80, respectively. In the 2018 validation set (n=393 023), the corresponding c-statistics were 0.88, 0.88 and 0.82. C-statistics from the Canadian guidelines ranged from 0.54 to 0.69 while the US guidelines ranged from 0.50 to 0.62. The top five percentile of predicted risk for the XGBoost and logistic regression classifiers captured 42% of all events and translated into post-test probabilities of 13.38% and 13.45%, respectively, up from the pretest probability of 1.6%.Conclusion Machine learning classifiers, especially incorporating hospitalisation/physician claims data, have better predictive performance compared with guideline or prescription history only approaches when predicting 30-day risk of adverse outcomes. Prescription monitoring programmes and health departments with access to administrative data can use machine learning classifiers to effectively identify those at higher risk compared with current guideline-based approaches.https://bmjopen.bmj.com/content/11/5/e043964.full
collection DOAJ
language English
format Article
sources DOAJ
author Dean T Eurich
Salim Samanani
Vinaykumar Kulkarni
Luke Kumar
spellingShingle Dean T Eurich
Salim Samanani
Vinaykumar Kulkarni
Luke Kumar
Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada
BMJ Open
author_facet Dean T Eurich
Salim Samanani
Vinaykumar Kulkarni
Luke Kumar
author_sort Dean T Eurich
title Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada
title_short Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada
title_full Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada
title_fullStr Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada
title_full_unstemmed Safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in Alberta, Canada
title_sort safe opioid prescribing: a prognostic machine learning approach to predicting 30-day risk after an opioid dispensation in alberta, canada
publisher BMJ Publishing Group
series BMJ Open
issn 2044-6055
publishDate 2021-06-01
description Objective To develop machine learning models employing administrative health data that can estimate risk of adverse outcomes within 30 days of an opioid dispensation for use by health departments or prescription monitoring programmes.Design, setting and participants This prognostic study was conducted in Alberta, Canada between 2017 and 2018. Participants included all patients 18 years of age and older who received at least one opioid dispensation. Pregnant and cancer patients were excluded.Exposure Each opioid dispensation served as an exposure.Main outcomes/measures Opioid-related adverse outcomes were identified from linked administrative health data. Machine learning algorithms were trained using 2017 data to predict risk of hospitalisation, emergency department visit and mortality within 30 days of an opioid dispensation. Two validation sets, using 2017 and 2018 data, were used to evaluate model performance. Model discrimination and calibration performance were assessed for all patients and those at higher risk. Machine learning discrimination was compared with current opioid guidelines.Results Participants in the 2017 training set (n=275 150) and validation set (n=117 829) had similar baseline characteristics. In the 2017 validation set, c-statistics for the XGBoost, logistic regression and neural network classifiers were 0.87, 0.87 and 0.80, respectively. In the 2018 validation set (n=393 023), the corresponding c-statistics were 0.88, 0.88 and 0.82. C-statistics from the Canadian guidelines ranged from 0.54 to 0.69 while the US guidelines ranged from 0.50 to 0.62. The top five percentile of predicted risk for the XGBoost and logistic regression classifiers captured 42% of all events and translated into post-test probabilities of 13.38% and 13.45%, respectively, up from the pretest probability of 1.6%.Conclusion Machine learning classifiers, especially incorporating hospitalisation/physician claims data, have better predictive performance compared with guideline or prescription history only approaches when predicting 30-day risk of adverse outcomes. Prescription monitoring programmes and health departments with access to administrative data can use machine learning classifiers to effectively identify those at higher risk compared with current guideline-based approaches.
url https://bmjopen.bmj.com/content/11/5/e043964.full
work_keys_str_mv AT deanteurich safeopioidprescribingaprognosticmachinelearningapproachtopredicting30dayriskafteranopioiddispensationinalbertacanada
AT salimsamanani safeopioidprescribingaprognosticmachinelearningapproachtopredicting30dayriskafteranopioiddispensationinalbertacanada
AT vinaykumarkulkarni safeopioidprescribingaprognosticmachinelearningapproachtopredicting30dayriskafteranopioiddispensationinalbertacanada
AT lukekumar safeopioidprescribingaprognosticmachinelearningapproachtopredicting30dayriskafteranopioiddispensationinalbertacanada
_version_ 1716846278950780928