Development and Internal Validation of a Machine Learning Model for Predicting Long-Term Opioid Therapy After Hip Fracture Surgery in Older, Opioid-Naïve Adults.
Yasmina Maria Tudorache, Simon Storgaard Jensen, Katie Jane Sheehan, Jan-Erik Gjertsen, Alma Becic Pedersen
{"title":"Development and Internal Validation of a Machine Learning Model for Predicting Long-Term Opioid Therapy After Hip Fracture Surgery in Older, Opioid-Naïve Adults.","authors":"Yasmina Maria Tudorache, Simon Storgaard Jensen, Katie Jane Sheehan, Jan-Erik Gjertsen, Alma Becic Pedersen","doi":"10.1002/ejp.70280","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Long-term opioid therapy (LTOT) after hip fracture surgery is a common postoperative complication associated with adverse outcomes, yet tools to identify at-risk patients among opioid-naïve older adults are lacking. This study aimed to develop and internally validate a parsimonious model to predict LTOT following hip fracture surgery.</p><p><strong>Methods: </strong>Using Danish nationwide registries, we identified 26,057 opioid-naïve patients (≥ 65 years) undergoing hip fracture surgery (2010-2020) and analysed 29 predictors, covering demographics, comorbidities, medication, lifestyle, socioeconomics and surgical factors. LTOT was defined as redeeming ≥ 2 prescriptions between 31 and 365 days of surgery. Models were developed using four machine learning methods: logistic regression, backwards elimination, elastic net penalised logistic regression and random forest. Model performance was assessed using area under the receiver operating characteristic curve (AUC), calibration slope, intercept, Brier score and decision curve analysis.</p><p><strong>Results: </strong>LTOT was identified in 8095 (31.1%) patients. The backward elimination algorithm identified the best performing model, selecting 8 of 29 predictors and achieving an AUC of 0.68, calibration slope of 0.99, intercept of 0.02 and Brier score of 0.20. Predictors included age, marital status, preoperative non-opioid pain medication, preoperative novel oral anticoagulants, fracture type, surgery delay, length of hospital stay and postoperative cumulated ambulation score at discharge.</p><p><strong>Conclusions: </strong>A prediction model was developed and validated for use at discharge to identify patients at risk of LTOT 1 year after hip fracture. The model may support risk stratification at discharge, but requires external validation and evaluation of clinical implementation before routine use.</p><p><strong>Significance statement: </strong>This study presents the first internally validated prediction model for long-term opioid use in opioid-naïve older adults after hip fracture surgery. The model functions as a simple and interpretable risk stratification tool at discharge and has been incorporated in a freely available risk calculator. It addresses the lack of clinically applicable risk stratification tools in this frail population and highlights opportunities for more targeted postoperative pain management, although feasibility testing is required before clinical implementation.</p>","PeriodicalId":12021,"journal":{"name":"European Journal of Pain","volume":"30 5","pages":"e70280"},"PeriodicalIF":3.4000,"publicationDate":"2026-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13111901/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"European Journal of Pain","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1002/ejp.70280","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ANESTHESIOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Background: Long-term opioid therapy (LTOT) after hip fracture surgery is a common postoperative complication associated with adverse outcomes, yet tools to identify at-risk patients among opioid-naïve older adults are lacking. This study aimed to develop and internally validate a parsimonious model to predict LTOT following hip fracture surgery.
Methods: Using Danish nationwide registries, we identified 26,057 opioid-naïve patients (≥ 65 years) undergoing hip fracture surgery (2010-2020) and analysed 29 predictors, covering demographics, comorbidities, medication, lifestyle, socioeconomics and surgical factors. LTOT was defined as redeeming ≥ 2 prescriptions between 31 and 365 days of surgery. Models were developed using four machine learning methods: logistic regression, backwards elimination, elastic net penalised logistic regression and random forest. Model performance was assessed using area under the receiver operating characteristic curve (AUC), calibration slope, intercept, Brier score and decision curve analysis.
Results: LTOT was identified in 8095 (31.1%) patients. The backward elimination algorithm identified the best performing model, selecting 8 of 29 predictors and achieving an AUC of 0.68, calibration slope of 0.99, intercept of 0.02 and Brier score of 0.20. Predictors included age, marital status, preoperative non-opioid pain medication, preoperative novel oral anticoagulants, fracture type, surgery delay, length of hospital stay and postoperative cumulated ambulation score at discharge.
Conclusions: A prediction model was developed and validated for use at discharge to identify patients at risk of LTOT 1 year after hip fracture. The model may support risk stratification at discharge, but requires external validation and evaluation of clinical implementation before routine use.
Significance statement: This study presents the first internally validated prediction model for long-term opioid use in opioid-naïve older adults after hip fracture surgery. The model functions as a simple and interpretable risk stratification tool at discharge and has been incorporated in a freely available risk calculator. It addresses the lack of clinically applicable risk stratification tools in this frail population and highlights opportunities for more targeted postoperative pain management, although feasibility testing is required before clinical implementation.
期刊介绍:
European Journal of Pain (EJP) publishes clinical and basic science research papers relevant to all aspects of pain and its management, including specialties such as anaesthesia, dentistry, neurology and neurosurgery, orthopaedics, palliative care, pharmacology, physiology, psychiatry, psychology and rehabilitation; socio-economic aspects of pain are also covered.
Regular sections in the journal are as follows:
• Editorials and Commentaries
• Position Papers and Guidelines
• Reviews
• Original Articles
• Letters
• Bookshelf
The journal particularly welcomes clinical trials, which are published on an occasional basis.
Research articles are published under the following subject headings:
• Neurobiology
• Neurology
• Experimental Pharmacology
• Clinical Pharmacology
• Psychology
• Behavioural Therapy
• Epidemiology
• Cancer Pain
• Acute Pain
• Clinical Trials.