RSS-Feed abonnieren
DOI: 10.1055/a-2321-0397
Predicting Postoperative Pain and Opioid Use with Machine Learning Applied to Longitudinal Electronic Health Record and Wearable Data
Funding This work was also supported in part by an NIH NHGRI Genomic Innovator award (award no.: R35 HG010714 to C.O.T.).Abstract
Background Managing acute postoperative pain and minimizing chronic opioid use are crucial for patient recovery and long-term well-being.
Objectives This study explored using preoperative electronic health record (EHR) and wearable device data for machine-learning models that predict postoperative acute pain and chronic opioid use.
Methods The study cohort consisted of approximately 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 score for severe pain versus other pain was highest (0.88) when predicting acute postoperative 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.
Conclusion SHAP detection of individual risk factors for severe pain can help health care 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.
Keywords
acute postoperative pain - chronic opioid use - electronic health records - wearable device data - machine learningProtection of Human and Animal Subjects
The protocol was reviewed and approved by the Institutional Review Board at the Johns Hopkins University School of Medicine (identifier: IRB00422898).
Publikationsverlauf
Eingereicht: 02. Dezember 2023
Angenommen: 06. Mai 2024
Accepted Manuscript online:
07. Mai 2024
Artikel online veröffentlicht:
17. Juli 2024
© 2024. Thieme. All rights reserved.
Georg Thieme Verlag KG
Rüdigerstraße 14, 70469 Stuttgart, Germany
-
References
- 1 Gupta A, Kaur K, Sharma S, Goyal S, Arora S, Murthy RS. Clinical aspects of acute post-operative pain management & its assessment. J Adv Pharm Technol Res 2010; 1 (02) 97-108
- 2 Katz J, Jackson M, Kavanagh BP, Sandler AN. Acute pain after thoracic surgery predicts long-term post-thoracotomy pain. Clin J Pain 1996; 12 (01) 50-55
- 3 Prescription Opioid Use Among Adults With Chronic Pain. United States, 2019 . National Health Statistics Reports. Accessed May 8, 2023 at: https://www.cdc.gov/nchs/data/nhsr/nhsr162-508.pdf
- 4 Lo-Ciganic WH, Huang JL, Zhang HH. et al. Evaluation of machine-learning algorithms for predicting opioid overdose risk among Medicare beneficiaries with opioid prescriptions. JAMA Netw Open 2019; 2 (03) e190968
- 5 Lo-Ciganic WH, Donohue JM, Yang Q. et al. Developing and validating a machine-learning algorithm to predict opioid overdose in Medicaid beneficiaries in two US states: a prognostic modelling study. Lancet Digit Health 2022; 4 (06) e455-e465
- 6 Nair AA, Velagapudi MA, Lang JA. et al. Machine learning approach to predict postoperative opioid requirements in ambulatory surgery patients. PLoS One 2020; 15 (07) e0236833
- 7 Morisson L, Nadeau-Vallée M, Espitalier F. et al. Prediction of acute postoperative pain based on intraoperative nociception level (NOL) index values: the impact of machine learning-based analysis. J Clin Monit Comput 2023; 37 (01) 337-344
- 8 Tighe PJ, Harle CA, Hurley RW, Aytug H, Boezaart AP, Fillingim RB. Teaching a machine to feel postoperative pain: combining high-dimensional clinical data with machine learning algorithms to forecast acute postoperative pain. Pain Med 2015; 16 (07) 1386-1401
- 9 Kumar V, Roche C, Overman S. et al. What is the accuracy of three different machine learning techniques to predict clinical outcomes after shoulder arthroplasty?. Clin Orthop Relat Res 2020; 478 (10) 2351-2363
- 10 Zhang J, Li D, Dai R. et al. Predicting post-operative complications with wearables: a case study with patients undergoing pancreatic surgery. Proc ACM Interact Mob Wearable Ubiquitous Technol 2022; 6 (02) 27
- 11 Ning Y, Ong MEH, Chakraborty B. et al. Shapley variable importance cloud for interpretable machine learning. Patterns (N Y) 2022; 3 (04) 100452
- 12 American College of Surgeons. ACS NSQIP. Accessed 20 May 2024 at: https://www.facs.org/quality-programs/data-and-registries/acs-nsqip/
- 13 Soley N, Song S, Flaks-Manov N, Taylor CO. Risk for poor post-operative quality of life among wearable use subgroups in an all of us research cohort. Pac Symp Biocomput 2023; 28: 31-42
- 14 Coronado RA, George SZ, Devin CJ, Wegener ST, Archer KR. Pain sensitivity and pain catastrophizing are associated with persistent pain and disability after lumbar spine surgery. Arch Phys Med Rehabil 2015; 96 (10) 1763-1770
- 15 Veal FC, Bereznicki LRE, Thompson AJ, Peterson GM, Orlikowski C. Subacute pain as a predictor of long-term pain following orthopedic surgery: an Australian prospective 12 month observational cohort study. Medicine (Baltimore) 2015; 94 (36) 1
- 16 Patel ABU, May SM, Reyes A. et al. Elevated heart rate after noncardiac surgery: post hoc analysis of a prospective observational cohort study. Br J Anaesth 2020; 124 (04) e207-e208
- 17 Tousignant-Laflamme Y, Rainville P, Marchand S. Establishing a link between heart rate and pain in healthy subjects: a gender effect. J Pain 2005; 6 (06) 341-347
- 18 Zubrzycki M, Liebold A, Skrabal C. et al. Assessment and pathophysiology of pain in cardiac surgery. J Pain Res 2018; 11: 1599-1611
- 19 Azur MJ, Stuart EA, Frangakis C, Leaf PJ. Multiple imputation by chained equations: what is it and how does it work?. Int J Methods Psychiatr Res 2011; 20 (01) 40-49
- 20 Imputation of missing values. ( n.d. ). Scikit-learn. Accessed 20 May 2024 at: https://scikit-learn.org/stable/modules/impute.html
- 21 National Institutes of Health, Warren Grant Magnuson Clinical Center (UW). Pain intensity instruments. 0–10 Numeric Rating Scale. Bethesda, MD: Warren Grant Magnuson Clinical Center; 2003 . Accessed June 11, 2019 at: https://www.dshs.wa.gov/sites/default/files/ALTSA/stakeholders/documents/duals/toolkit/Numeric%20Rating%20Pain%20Scale.pdf
- 22 Jivraj NK, Raghavji F, Bethell J. et al. Persistent postoperative opioid use: a systematic literature search of definitions and population-based cohort study. Anesthesiology 2020; 132 (06) 1528-1539
- 23 Pang J, Tringale KR, Tapia VJ. et al. Chronic opioid use following surgery for oral cavity cancer. JAMA Otolaryngol Head Neck Surg 2017; 143 (12) 1187-1194
- 24 Mueller KG, Memtsoudis SG, Mariano ER, Baker LC, Mackey S, Sun EC. Lack of association between the use of nerve blockade and the risk of persistent opioid use among patients undergoing shoulder arthroplasty: evidence from the Marketscan database. Anesth Analg 2017; 125 (03) 1014-1020
- 25 National Center for Injury Prevention and Control. CDC Compilation of Benzodiazepines, Muscle Relaxants, Stimulants, Zolpidem, and Opioid Analgesics with Oral Morphine Milligram Equivalent Conversion Factors, 2017 Version. Atlanta, GA; 2017 . Accessed August 1, 2018 at: https://medicaid.utah.gov/Documents/files/Opioid-Morphine-EQ-Conversion-Factors.pdf
- 26 Factsheet CDC Guideline for Prescribing Opioids for Chronic Pain. Accessed May 2, 2023 at: https://www.cdc.gov/injury/pdfs/bsc/Observations-on-the-Updated-CDC-Guideline-for-Prescribing-6-30-2021-508.pdf
- 27 sklearn.ensemble.StackingClassifier.(n.d.). Scikit-learn. Accessed May 2, 2023 at: https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.StackingClassifier.html
- 28 Fotouhi S, Asadi S, Kattan MW. A comprehensive data level analysis for cancer diagnosis on imbalanced data. J Biomed Inform 2019; 90: 103089
- 29 Sáez J, Luengo J, Stefanowski J, Herrera F. SMOTE–IPF: addressing the noisy and borderline examples problem in imbalanced classification by a re-sampling method with filtering. Inf Sci 2015; 291: 184-203
- 30 Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP. SMOTE: synthetic minority over-sampling technique. J Artif Intell Res 2002; 16 (01) 321-357
- 31 World Health Organization. WHO. Physical activity. www.who.int . Accessed 2 May 2023 at: https://www.who.int/news-room/fact-sheets/detail/physical-activity
- 32 “How Much Physical Activity Do Adults Need?”. Centers for Disease Control and Prevention. Accessed May 2, 2023 at: https://www.cdc.gov/physical-activity-basics/guidelines/adults.html
- 33 “How Much Sleep Do I Need?” Centers for Disease Control and Prevention. September 14, 2022 . Accessed May 2, 2023 at: https://www.cdc.gov/niosh/work-hour-training-for-nurses/longhours/mod2/08.html
- 34 “Laboratory Procedure Manual.” Centers for Disease Control and Prevention. Accessed 2 May 2023 at https://wwwn.cdc.gov/nchs/data/nhanes/2015-2016/labmethods/BIOPRO_I_MET_ALBUMIN_DXC660i.pdf
- 35 “Defining Adult Overweight & Obesity.”. Centers for Disease Control and Prevention. Accessed May 2, 2023 at: https://www.cdc.gov/ncbddd/disabilityandhealth/documents/obesityfactsheet2010.pdf
- 36 Miller A, Roth T, Roehrs T, Yaremchuk K. Correlation between sleep disruption on postoperative pain. Otolaryngol Head Neck Surg 2015; 152 (05) 964-968
- 37 Wright CE, Bovbjerg DH, Montgomery GH. et al. Disrupted sleep the night before breast surgery is associated with increased postoperative pain. J Pain Symptom Manage 2009; 37 (03) 352-362
- 38 Sipilä RM, Kalso EA. Sleep well and recover faster with less pain-a narrative review on sleep in the perioperative period. J Clin Med 2021; 10 (09) 7
- 39 Yang MMH, Hartley RL, Leung AA. et al. Preoperative predictors of poor acute postoperative pain control: a systematic review and meta-analysis. BMJ Open 2019; 9 (04) e025091
- 40 Lee A, Shelton E, Bidwell S. et al. Association of prehabilitation with postoperative opioid use in colorectal surgery: an observational cohort study. J Surg Res 2022; 273: 226-232
- 41 Aoyagi K, Neogi T, Peloquin C. et al. Association of physical therapy interventions with long-term opioid use after total knee replacement. JAMA Netw Open 2021; 4 (10) e2131271
- 42 Psarianos A, Chryssanthopoulos C, Paparrigopoulos T, Philippou A. The role of physical exercise in opioid substitution therapy: mechanisms of sequential effects. Int J Mol Sci 2023; 24 (05) 4763
- 43 Clarke H, Soneji N, Ko DT, Yun L, Wijeysundera DN. Rates and risk factors for prolonged opioid use after major surgery: population based cohort study. BMJ 2014; 348: g1251
- 44 Stafford C, Francone T, Roberts PL, Ricciardi R. What factors are associated with increased risk for prolonged postoperative opioid usage after colorectal surgery?. Surg Endosc 2018; 32 (08) 3557-3561
- 45 Liu R, Gutiérrez R, Mather RV. et al. Development and prospective validation of postoperative pain prediction from preoperative EHR data using attention-based set embeddings. NPJ Digit Med 2023; 6 (01) 209
- 46 Hur J, Tang S, Gunaseelan V. et al. Predicting postoperative opioid use with machine learning and insurance claims in opioid-naïve patients. Am J Surg 2021; 222 (03) 659-665
- 47 Zeng C, Schlueter DJ, Tran TC. et al. Comparison of phenomic profiles in the All of Us Research Program against the US general population and the UK Biobank. J Am Med Inform Assoc 2024; 31 (04) 846-854 ; Advance online publication
- 48 Mapes BM, Foster CS, Kusnoor SV. et al; All of Us Research Program. Diversity and inclusion for the All of Us research program: a scoping review. PLoS One 2020; 15 (07) e0234962
- 49 Pedregosa F, Varoquaux G, Gramfort A. et al. Scikit-learn: machine learning in Python. J Mach Learn Res 2011; 12: 2825-2830
- 50 Sperandei S. Understanding logistic regression analysis. Biochem Med (Zagreb) 2014; 24 (01) 12-18
- 51 Sklearn.linear_model.logisticregression. scikit. (n.d.). Accessed 20 May 2024 at: https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html
- 52 Sarica A, Cerasa A, Quattrone A. Random forest algorithm for the classification of neuroimaging data in Alzheimer's disease: a systematic review. Front Aging Neurosci 2017; 9: 329
- 53 Sklearn.ensemble.randomforestclassifier. scikit. (n.d.-a). Accessed 20 May 2024 at: https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html
- 54 Torlay L, Perrone-Bertolotti M, Thomas E, Baciu M. Machine learning-XGBoost analysis of language networks to classify patients with epilepsy. Brain Inform 2017; 4 (03) 159-169
- 55 Moore A, Bell M. XGBoost, a novel explainable AI technique, in the prediction of myocardial infarction: a UK Biobank cohort study. Clin Med Insights Cardiol 2022; 16: 11 795468221133611
- 56 Python API reference. Python API Reference - xgboost 1.7.6 documentation. ( n.d. ). Accessed May 20, 2024 at: https://xgboost.readthedocs.io/en/stable/python/python_api.html#module-xgboost.sklearn
- 57 Khan PW, Byun YC, Jeong OR. A stacking ensemble classifier-based machine learning model for classifying pollution sources on photovoltaic panels. Sci Rep 2023; 13 (01) 10256
- 58 Collins GS, Reitsma JB, Altman DG, Moons KG. Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): the TRIPOD statement. BMJ 2015; 350: g7594