实用老年医学 ›› 2026, Vol. 40 ›› Issue (9): 929-934.doi: 10.3969/j.issn.1003-9198.2026.09.013

• 临床研究 • 上一篇    下一篇

基于机器学习算法的老年髋关节置换术后慢性疼痛早期风险模型的构建与验证

张莉, 李娟齐, 张彩蕾, 张子茹   

  1. 710038 陕西省西安市,空军军医大学唐都医院骨科
  • 收稿日期:2026-02-14 出版日期:2026-09-20 发布日期:2026-09-16
  • 通讯作者: 张子茹,Email:282081840@qq.com
  • 基金资助:
    空军军医大学唐都医院护理科研基金资助项目(TDHLKY-2023-13)

Construction and validation of an early risk model for chronic pain after hip replacement in the elderly based on machine learning algorithms

ZHANG Li, LI Juanqi, ZHANG Cailei, ZHANG Ziru   

  1. Department of Orthopedics, Tangdu Hospital of Air Force Medical University, Xi’an 710038, China
  • Received:2026-02-14 Online:2026-09-20 Published:2026-09-16
  • Contact: ZHANG Ziru, Email: 282081840@qq.com

摘要: 目的 基于机器学习算法构建老年髋关节置换术后慢性疼痛(CPSP)早期风险模型并进行验证。方法 选取2023年5月至2025年6月空军军医大学唐都医院接受髋关节置换术的607例老年患者作为研究对象,按照7∶3的比例分为建模组(n=425)与测试组(n=182)。通过LASSO回归筛选CPSP特征变量,分别采用logistic回归、极限梯度提升(XGBoost)、k近邻(KNN)法、随机森林(RF)、LightGBM、支持向量机(SVM)、高斯朴素贝叶斯分类(GNB)方法构建CPSP早期风险模型,采用ROC曲线、校准曲线、决策曲线(DCA)及F1分数评估模型性能,采用Shapley加法解释(SHAP)分析关键变量的重要性。结果 建模组CPSP发生率为20.24%(86/425),测试组为24.18%(44/182)。建模组与测试组术前焦虑、假体类型及物理治疗比较,差异有统计学意义(P<0.05)。采用LASSO回归筛选出6个变量特征:饮酒史、术后首次髋关节活动时间、手术时间、术后24 h疼痛数字评估量表(NRS)评分、术中出血量、下肢静脉血栓,以此构建的7种模型中,logistic回归模型的AUC、校准曲线、DCA曲线等表现最优。基于logistic回归模型对变量因素进行重要性排序,依次为:术后24 h NRS评分、术后首次髋关节活动时间、饮酒史、手术时间、术中出血量、下肢静脉血栓。结论 基于logistic回归构建的老年髋关节置换术患者CPSP早期风险模型具有良好的预测能力和较强的可解释性。该模型指标均可在患者住院期间获得,有利于在早期识别术后CPSP高风险患者,从而提前进行合理的预防与治疗。

关键词: 髋关节置换术, 术后慢性疼痛, 机器学习算法, 预测模型

Abstract: Objective To construct and validate a model for early risk stratification of chronic post-surgical pain (CPSP) after hip replacement in the elderly based on machine learning algorithms. Methods The elderly patients who underwent hip replacement surgery at Tangdu Hospital of Air Force Medical University from May 2023 to June 2025 were enrolled, and were divided into a modeling group (n=425) and a testing group (n=182) in a 7∶3 ratio. LASSO regression was used to screen the characteristic variables of CPSP, and early-risk models were constructed employing various methods: logistic regression, extreme gradient boosting (XGBoost), k-nearest neighbors (KNN), random forest (RF), Light GBM, support vector machine (SVM), and Gaussian Naive Bayes classification (GNB). The models were evaluated using ROC curves, calibration curves, decision curve analysis (DCA), and F1 score, with Shapley additive explanation (SHAP) analysis employed to determine the importance of key variables. Results The incidence rate of CPSP in the modeling group was 20.24% (86/425), compared with 24.18% (44/182) in the testing group. There were statistically significant differences between the modeling group and the testing group in preoperative anxiety, prosthesis type, and physical therapy outcomes (P<0.05). Using LASSO regression, six variable characteristics were identified: alcohol consumption history, time to first postoperative hip movement, surgical duration, Numerical Rate Scale (NRS) score 24 hours after operation, intraoperative blood loss volume, and lower extremity venous thrombosis. Among the seven models developed, the logistic regression model demonstrated the best performance in terms of the area under the curve (AUC), calibration curve, and DCA curve. Using a logistic regression model, the variable factors were ranked by importance as follows: NRS score 24 hours after operation, time to first hip movement after surgery, alcohol consumption history, surgical duration, intraoperative blood loss volume, and lower extremity venous thrombosis. Conclusions The early-stage CPSP risk model for elderly patients receiving hip replacement, constructed using logistic regression, demonstrates strong predictive capability and high interpretability. All model indicators can be obtained during the patient’s hospitalization, facilitating early identification of the patients at high risk for postoperative CPSP. This enables timely implementation of appropriate preventive measures and treatment.

Key words: hip replacement, chronic posto-surgical pain, machine learning algorithms, forecasting model

中图分类号: