Appl Clin Inform
DOI: 10.1055/a-2321-0397
Research Article

ACM BCB 2023: Predicting Postoperative Pain and Opioid Use with Machine Learning Applied to Longitudinal Electronic Health Record and Wearable Data

Nidhi Soley
1   Biomedical Engineering, Johns Hopkins University, Baltimore, United States (Ringgold ID: RIN1466)
,
Traci J. Speed
2   Department of Psychiatry and Behavioral Sciences, The Johns Hopkins University School of Medicine, Baltimore, United States (Ringgold ID: RIN1500)
,
Anping Xie
3   Armstrong Institute for Patient Safety and Quality, The Johns Hopkins University School of Medicine, Baltimore, United States (Ringgold ID: RIN1500)
,
Casey Overby Taylor
4   Johns Hopkins University, Baltimore, United States
› Author Affiliations
Supported by: National Human Genome Research Institute NIH NHGRI R35 HG010714

Background: Managing acute postoperative pain and minimizing chronic opioid use is crucial for patient recovery and long-term well-being. Objective: This study explored using preoperative electronic health records (EHR) and wearable device data for machine-learning models that predict postoperative acute pain and chronic opioid use. Methods: The study cohort consisted of ~347 All of Us Research Program participants who underwent one of eight surgical procedures and shared EHR and wearable device data. We developed four machine learning models and used the Shapley additive explanations (SHAP) technique to identify the most relevant predictors of acute pain and chronic opioid use. Results: The stacking ensemble model achieved the highest accuracy in predicting acute pain (0.68) and chronic opioid use (0.89). The area under the curve (AUC) score for severe pain vs. other pain was highest (0.88) when predicting acute post-operative pain. Values of logistic regression, random forest, extreme gradient boosting, and stacking ensemble ranged from 0.74 to 0.90 when predicting postoperative chronic opioid use. Variables from wearable devices played a prominent role in predicting both outcomes. Conclusions: SHAP detection of individual risk factors for severe pain can help healthcare providers tailor pain management plans. Accurate prediction of postoperative chronic opioid use before surgery can help mitigate the risk for the outcomes we studied. Prediction can also reduce the chances of opioid overuse and dependence. Such mitigation can promote safer and more effective pain control for patients during their recovery.



Publication History

Received: 02 December 2023

Accepted after revision: 06 May 2024

Accepted Manuscript online:
07 May 2024

© . Thieme. All rights reserved.

Georg Thieme Verlag KG
Rüdigerstraße 14, 70469 Stuttgart, Germany