Related Experiment Video
Updated: Apr 28, 2026

A Mouse Model of Orthopedic Surgery to Study Postoperative Cognitive Dysfunction and Tissue Regeneration
Published on: February 27, 2018
Development and Internal Validation of a Machine Learning Model for Predicting Long-Term Opioid Therapy After Hip
Yasmina Maria Tudorache1,2, Simon Storgaard Jensen1,2, Katie Jane Sheehan3
1Department of Clinical Epidemiology, Aarhus University, Aarhus, Denmark.
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.
More Related Videos
04:09Predicting Treatment Response to Image-Guided Therapies Using Machine Learning: An Example for Trans-Arterial Treatment of Hepatocellular Carcinoma
Published on: October 10, 2018
09:51The Transition to an Anterior-Based Muscle Sparing Approach Improves Early Postoperative Function but is Associated with a Learning Curve
Published on: September 7, 2022