{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,3]],"date-time":"2026-11-03T00:30:18Z","timestamp":1793665818618,"version":"4.5.1"},"reference-count":46,"publisher":"BMJ","issue":"2","funder":[{"name":"Department of Anesthesiology, Critical Care & Pain Management Research & Education Fund","award":["n\/a"],"award-info":[{"award-number":["n\/a"]}]}],"content-domain":{"domain":["bmj.com"],"crossmark-restriction":true},"short-container-title":["Reg Anesth Pain Med"],"accepted":{"date-parts":[[2024,10,20]]},"published-print":{"date-parts":[[2025,2]]},"abstract":"<jats:p>The use of machine learning to predict postoperative pain and opioid use has likely been catalyzed by the availability of complex patient-level data, computational and statistical advancements, the prevalence and impact of chronic postsurgical pain, and the persistence of the opioid crisis. The objectives of this narrative review were to identify and characterize methodological aspects of studies that have developed and\/or tested machine learning algorithms to predict acute, subacute, or chronic pain or opioid use after any surgery and to propose considerations for future machine learning studies. Pairs of independent reviewers screened titles and abstracts of 280 PubMed-indexed articles and ultimately extracted data from 61 studies that met entry criteria. We observed a marked increase in the number of relevant publications over time. Studies most commonly focused on machine learning algorithms to predict chronic postsurgical pain or opioid use, using real-world data from patients undergoing orthopedic surgery. We identified variability in sample size, number and type of predictors, and how outcome variables were defined. Patient-reported predictors were highlighted as particularly informative and important to include in such machine learning algorithms, where possible. We hope that findings from this review might inform future applications of machine learning that improve the performance and clinical utility of resultant machine learning algorithms.<\/jats:p>","DOI":"10.1136\/rapm-2024-105603","type":"journal-article","created":{"date-parts":[[2025,2,5]],"date-time":"2025-02-05T08:20:20Z","timestamp":1738743620000},"page":"102-109","update-policy":"https:\/\/doi.org\/10.1136\/crossmarkpolicy","source":"Crossref","is-referenced-by-count":14,"title":["Machine learning research methods to predict postoperative pain and opioid use: a narrative review"],"prefix":"10.1136","volume":"50","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2321-2850","authenticated-orcid":false,"given":"Dale J","family":"Langford","sequence":"first","affiliation":[{"name":"Pain Prevention Research Center, Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"},{"name":"Department of Anesthesiology, Weill Cornell Medicine, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Julia F","family":"Reichel","sequence":"additional","affiliation":[{"name":"Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3114-0263","authenticated-orcid":false,"given":"Haoyan","family":"Zhong","sequence":"additional","affiliation":[{"name":"Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Benjamin H","family":"Basseri","sequence":"additional","affiliation":[{"name":"Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Marc P","family":"Koch","sequence":"additional","affiliation":[{"name":"Davidson College, Davidson, North Carolina, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ramana","family":"Kolady","sequence":"additional","affiliation":[{"name":"University of Rochester, Rochester, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1029-2786","authenticated-orcid":false,"given":"Jiabin","family":"Liu","sequence":"additional","affiliation":[{"name":"Pain Prevention Research Center, Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"},{"name":"Department of Anesthesiology, Weill Cornell Medicine, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-9839-4553","authenticated-orcid":false,"given":"Alexandra","family":"Sideris","sequence":"additional","affiliation":[{"name":"Pain Prevention Research Center, Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"},{"name":"Department of Anesthesiology, Weill Cornell Medicine, New York, New York, USA"},{"name":"Hospital for Special Surgery Research Institute, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Robert H","family":"Dworkin","sequence":"additional","affiliation":[{"name":"Pain Prevention Research Center, Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"},{"name":"Hospital for Special Surgery Research Institute, New York, New York, USA"},{"name":"Anesthesiology and Perioperative Medicine, University of Rochester, Rochester, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7058-5102","authenticated-orcid":false,"given":"Jashvant","family":"Poeran","sequence":"additional","affiliation":[{"name":"Pain Prevention Research Center, Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"},{"name":"Hospital for Special Surgery Research Institute, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4484-0787","authenticated-orcid":false,"given":"Christopher L","family":"Wu","sequence":"additional","affiliation":[{"name":"Pain Prevention Research Center, Department of Anesthesiology, Critical Care & Pain Management, Hospital for Special Surgery, New York, New York, USA"},{"name":"Department of Anesthesiology, Weill Cornell Medicine, New York, New York, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"239","published-online":{"date-parts":[[2025,2,5]]},"reference":[{"key":"2025101110332637000_50.2.102.1","doi-asserted-by":"publisher","DOI":"10.1056\/NEJMra1814259"},{"key":"2025101110332637000_50.2.102.2","doi-asserted-by":"crossref","DOI":"10.1097\/PR9.0000000000001052","article-title":"Factors associated with persistent postsurgical pain after total knee or hip joint replacement: a systematic review and meta-analysis","volume":"8","author":"Ghoshal","year":"2023","journal-title":"Pain Rep"},{"key":"2025101110332637000_50.2.102.3","doi-asserted-by":"crossref","first-page":"2644","DOI":"10.1097\/j.pain.0000000000002261","article-title":"Prognostic prediction models for chronic postsurgical pain in adults: a systematic review","volume":"162","author":"Papadomanolakis-Pakis","year":"2021","journal-title":"Pain"},{"key":"2025101110332637000_50.2.102.4","doi-asserted-by":"crossref","first-page":"399","DOI":"10.1007\/s10549-018-4841-8","article-title":"Machine-learning-derived classifier predicts absence of persistent pain after breast cancer surgery with high accuracy","volume":"171","author":"L\u00f6tsch","year":"2018","journal-title":"Breast Cancer Res Treat"},{"key":"2025101110332637000_50.2.102.5","doi-asserted-by":"crossref","first-page":"1067","DOI":"10.1007\/s40122-021-00324-2","article-title":"Machine Learning in Pain Medicine: An Up-To-Date Systematic Review","volume":"10","author":"Matsangidou","year":"2021","journal-title":"Pain Ther"},{"key":"2025101110332637000_50.2.102.6","doi-asserted-by":"crossref","first-page":"103","DOI":"10.1016\/j.artd.2021.07.012","article-title":"Artificial Learning and Machine Learning Decision Guidance Applications in Total Hip and Knee Arthroplasty: A Systematic Review","volume":"11","author":"Lopez","year":"2021","journal-title":"Arthroplast Today"},{"key":"2025101110332637000_50.2.102.7","doi-asserted-by":"crossref","first-page":"140","DOI":"10.1177\/00031348231198112","article-title":"Machine Learning Algorithms Predict Long-Term Postoperative Opioid Misuse: A Systematic Review","volume":"90","author":"Emam","year":"2024","journal-title":"Am Surg"},{"key":"2025101110332637000_50.2.102.8","doi-asserted-by":"publisher","DOI":"10.1016\/j.recesp.2021.06.016"},{"key":"2025101110332637000_50.2.102.9","unstructured":"Glare P . Chronic postsurgical pain in adults: incidence, risk factors, and potential risk reduction. In: Post TW , ed. UpToDate. Wolters Kluwer, 2024."},{"key":"2025101110332637000_50.2.102.10","doi-asserted-by":"crossref","DOI":"10.2196\/jmir.5870","article-title":"Guidelines for Developing and Reporting Machine Learning Predictive Models in Biomedical Research: A Multidisciplinary View","volume":"18","author":"Luo","year":"2016","journal-title":"J Med Internet Res"},{"key":"2025101110332637000_50.2.102.11","doi-asserted-by":"crossref","DOI":"10.1148\/ryai.220232","article-title":"A Guide to Cross-Validation for Artificial Intelligence in Medical Imaging","volume":"5","author":"Bradshaw","year":"2023","journal-title":"Radiol Artif Intell"},{"key":"2025101110332637000_50.2.102.12","doi-asserted-by":"crossref","first-page":"1119","DOI":"10.1016\/j.spinee.2022.02.009","article-title":"A machine learning algorithm for predicting prolonged postoperative opioid prescription after lumbar disc herniation surgery. An external validation study using 1,316 patients from a Taiwanese cohort","volume":"22","author":"Yen","year":"2022","journal-title":"Spine J"},{"key":"2025101110332637000_50.2.102.13","doi-asserted-by":"crossref","first-page":"573","DOI":"10.1097\/PRS.0000000000011099","article-title":"Predicting Persistent Opioid Use after Hand Surgery: A Machine Learning Approach","volume":"154","author":"Baxter","year":"2024","journal-title":"Plast Reconstr Surg"},{"key":"2025101110332637000_50.2.102.14","doi-asserted-by":"crossref","first-page":"1321","DOI":"10.1016\/j.jfma.2023.06.027","article-title":"External validation of machine learning algorithm predicting prolonged opioid prescriptions in opioid-na\u00efve lumbar spine surgery patients using a Taiwanese cohort","volume":"122","author":"Chen","year":"2023","journal-title":"J Formos Med Assoc"},{"key":"2025101110332637000_50.2.102.15","doi-asserted-by":"crossref","DOI":"10.1186\/s12891-023-06667-5","article-title":"The Skeletal Oncology Research Group Machine Learning Algorithm (SORG-MLA) for predicting prolonged postoperative opioid prescription after total knee arthroplasty: an international validation study using 3,495 patients from a Taiwanese cohort","volume":"24","author":"Tsai","year":"2023","journal-title":"BMC Musculoskelet Disord"},{"key":"2025101110332637000_50.2.102.16","doi-asserted-by":"publisher","DOI":"10.1097\/EDE.0b013e3181c30fb2"},{"key":"2025101110332637000_50.2.102.17","doi-asserted-by":"crossref","DOI":"10.1186\/s41512-021-00102-w","article-title":"A relationship between the incremental values of area under the ROC curve and of area under the precision-recall curve","volume":"5","author":"Zhou","year":"2021","journal-title":"Diagn Progn Res"},{"key":"2025101110332637000_50.2.102.18","doi-asserted-by":"publisher","DOI":"10.1097\/EJA.0000000000000319"},{"key":"2025101110332637000_50.2.102.19","doi-asserted-by":"crossref","first-page":"700","DOI":"10.1177\/0310057X1704500609","article-title":"Prevalence and predictors of persistent post-surgical opioid use: a prospective observational cohort study","volume":"45","author":"Stark","year":"2017","journal-title":"Anaesth Intensive Care"},{"key":"2025101110332637000_50.2.102.20","doi-asserted-by":"crossref","first-page":"294","DOI":"10.3109\/15360288.2014.941131","article-title":"Real-world evidence in pain research: a review of data sources","volume":"28","author":"Bellows","year":"2014","journal-title":"J Pain Palliat Care Pharmacother"},{"key":"2025101110332637000_50.2.102.21","doi-asserted-by":"publisher","DOI":"10.1016\/j.carj.2019.06.002"},{"key":"2025101110332637000_50.2.102.22","doi-asserted-by":"crossref","DOI":"10.1186\/s12859-023-05156-9","article-title":"Evaluation of a decided sample size in machine learning applications","volume":"24","author":"Rajput","year":"2023","journal-title":"BMC Bioinformatics"},{"key":"2025101110332637000_50.2.102.23","article-title":"SpineCloud: image analytics for predictive modeling of spine surgery outcomes","volume":"7","author":"De Silva","year":"2020","journal-title":"J Med Imaging (Bellingham)"},{"key":"2025101110332637000_50.2.102.24","doi-asserted-by":"crossref","DOI":"10.3390\/biomedicines11030685","article-title":"Sample Size Analysis for Machine Learning Clinical Validation Studies","volume":"11","author":"Goldenholz","year":"2023","journal-title":"Biomedicines"},{"key":"2025101110332637000_50.2.102.25","doi-asserted-by":"crossref","first-page":"112","DOI":"10.1016\/j.arth.2020.07.026","article-title":"Can Machine Learning Methods Produce Accurate and Easy-to-Use Preoperative Prediction Models of One-Year Improvements in Pain and Functioning After Knee Arthroplasty?","volume":"36","author":"Harris","year":"2021","journal-title":"J Arthroplasty"},{"key":"2025101110332637000_50.2.102.26","doi-asserted-by":"crossref","first-page":"808","DOI":"10.1002\/jor.25125","article-title":"Development of machine learning algorithms to predict achievement of minimal clinically important difference for the KOOS-PS following total knee arthroplasty","volume":"40","author":"Katakam","year":"2022","journal-title":"J Orthop Res"},{"key":"2025101110332637000_50.2.102.27","doi-asserted-by":"publisher","DOI":"10.1016\/j.jse.2020.07.042"},{"key":"2025101110332637000_50.2.102.28","doi-asserted-by":"crossref","first-page":"746","DOI":"10.1177\/03635465211067546","article-title":"Association Between Preoperative Patient Factors and Clinically Meaningful Outcomes After Hip Arthroscopy for Femoroacetabular Impingement Syndrome: A Machine Learning Analysis","volume":"50","author":"Kunze","year":"2022","journal-title":"Am J Sports Med"},{"key":"2025101110332637000_50.2.102.29","doi-asserted-by":"crossref","first-page":"1488","DOI":"10.1016\/j.arthro.2021.01.005","article-title":"Development and Internal Validation of Supervised Machine Learning Algorithms for Predicting Clinically Significant Functional Improvement in a Mixed Population of Primary Hip Arthroscopy","volume":"37","author":"Kunze","year":"2021","journal-title":"Arthroscopy"},{"key":"2025101110332637000_50.2.102.30","doi-asserted-by":"crossref","first-page":"2119","DOI":"10.1016\/j.arth.2020.03.019","article-title":"Development of Machine Learning Algorithms to Predict Clinically Meaningful Improvement for the Patient-Reported Health State After Total Hip Arthroplasty","volume":"35","author":"Kunze","year":"2020","journal-title":"J Arthroplasty"},{"key":"2025101110332637000_50.2.102.31","doi-asserted-by":"publisher","DOI":"10.1007\/s00586-022-07135-9"},{"key":"2025101110332637000_50.2.102.32","doi-asserted-by":"crossref","first-page":"821","DOI":"10.1093\/bja\/aex236","article-title":"Prediction of persistent post-surgery pain by preoperative cold pain sensitivity: biomarker development with machine-learning-derived analysis","volume":"119","author":"L\u00f6tsch","year":"2017","journal-title":"Br J Anaesth"},{"key":"2025101110332637000_50.2.102.33","doi-asserted-by":"crossref","first-page":"239","DOI":"10.1016\/j.spinee.2023.09.029","article-title":"Predicting postoperative outcomes in lumbar spinal fusion: development of a machine learning model","volume":"24","author":"Sch\u00f6nnagel","year":"2024","journal-title":"Spine J"},{"key":"2025101110332637000_50.2.102.34","doi-asserted-by":"crossref","first-page":"274","DOI":"10.1055\/s-0042-1750785","article-title":"Use of Artificial Intelligence for the Development of Predictive Model to Help in Decision-Making for Patients with Degenerative Lumbar Spine Disease","volume":"17","author":"Purohit","year":"2022","journal-title":"Asian J Neurosurg"},{"key":"2025101110332637000_50.2.102.35","doi-asserted-by":"crossref","first-page":"839","DOI":"10.1016\/j.arthro.2021.08.009","article-title":"A Machine-Learning Algorithm to Predict the Likelihood of Prolonged Opioid Use Following Arthroscopic Hip Surgery","volume":"38","author":"Grazal","year":"2022","journal-title":"Arthroscopy"},{"key":"2025101110332637000_50.2.102.36","doi-asserted-by":"crossref","first-page":"659","DOI":"10.1016\/j.amjsurg.2021.03.058","article-title":"Predicting postoperative opioid use with machine learning and insurance claims in opioid-na\u00efve patients","volume":"222","author":"Hur","year":"2021","journal-title":"Am J Surg"},{"key":"2025101110332637000_50.2.102.37","doi-asserted-by":"crossref","first-page":"888","DOI":"10.1016\/j.spinee.2019.12.019","article-title":"Predicting prolonged opioid prescriptions in opioid-na\u00efve lumbar spine surgery patients","volume":"20","author":"Karhade","year":"2020","journal-title":"Spine J"},{"key":"2025101110332637000_50.2.102.38","doi-asserted-by":"crossref","first-page":"2573","DOI":"10.1007\/s00167-021-06812-4","article-title":"Machine learning algorithms predict extended postoperative opioid use in primary total knee arthroplasty","volume":"30","author":"Klemt","year":"2022","journal-title":"Knee Surg Sports Traumatol Arthrosc"},{"key":"2025101110332637000_50.2.102.39","doi-asserted-by":"publisher","DOI":"10.1016\/j.spinee.2019.01.009"},{"key":"2025101110332637000_50.2.102.40","doi-asserted-by":"crossref","first-page":"358e","DOI":"10.1097\/PRS.0000000000010297","article-title":"Patient-Reported Data Augment Prediction Models of Persistent Opioid Use after Elective Upper Extremity Surgery","volume":"152","author":"Giladi","year":"2023","journal-title":"Plast Reconstr Surg"},{"key":"2025101110332637000_50.2.102.41","doi-asserted-by":"crossref","DOI":"10.1186\/s12913-021-06626-7","article-title":"Electronic health record-integrated approach for collection of patient-reported outcome measures: a retrospective evaluation","volume":"21","author":"Horn","year":"2021","journal-title":"BMC Health Serv Res"},{"key":"2025101110332637000_50.2.102.42","doi-asserted-by":"crossref","first-page":"1235","DOI":"10.1007\/s11606-018-4456-0","article-title":"Treat the Patient, Not the Pain: Using a Multidimensional Assessment Tool to Facilitate Patient-Centered Chronic Pain Care","volume":"33","author":"Langford","year":"2018","journal-title":"J Gen Intern Med"},{"key":"2025101110332637000_50.2.102.43","doi-asserted-by":"publisher","DOI":"10.1002\/(SICI)1097-0258(19970228)16:4<385::AID-SIM380>3.0.CO;2-3"},{"key":"2025101110332637000_50.2.102.44","doi-asserted-by":"crossref","first-page":"3510","DOI":"10.1109\/TNNLS.2017.2729778","article-title":"A Novel Consistent Random Forest Framework: Bernoulli Random Forests","volume":"29","author":"Wang","year":"2018","journal-title":"IEEE Trans Neural Netw Learn Syst"},{"key":"2025101110332637000_50.2.102.45","doi-asserted-by":"crossref","first-page":"152","DOI":"10.21037\/atm.2019.03.29","article-title":"Predictive analytics with gradient boosting in clinical medicine","volume":"7","author":"Zhang","year":"2019","journal-title":"Ann Transl Med"},{"key":"2025101110332637000_50.2.102.46","doi-asserted-by":"crossref","DOI":"10.3171\/2023.3.FOCUS2372","article-title":"Which supervised machine learning algorithm can best predict achievement of minimum clinically important difference in neck pain after surgery in patients with cervical myelopathy? A QOD study","volume":"54","author":"Park","year":"2023","journal-title":"Neurosurg Focus"}],"container-title":["Regional Anesthesia &amp; Pain Medicine"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.1136\/rapm-2024-105603","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T17:33:37Z","timestamp":1760204017000},"score":1,"resource":{"primary":{"URL":"https:\/\/rapm.bmj.com\/lookup\/doi\/10.1136\/rapm-2024-105603"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,2]]},"references-count":46,"journal-issue":{"issue":"2","published-online":{"date-parts":[[2025,2,5]]},"published-print":{"date-parts":[[2025,2]]}},"alternative-id":["10.1136\/rapm-2024-105603"],"URL":"https:\/\/doi.org\/10.1136\/rapm-2024-105603","relation":{},"ISSN":["1098-7339","1532-8651"],"issn-type":[{"value":"1098-7339","type":"print"},{"value":"1532-8651","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,2]]}}}