Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Med.

Sec. Geriatric Medicine

Volume 12 - 2025 | doi: 10.3389/fmed.2025.1699842

This article is part of the Research TopicPerioperative Management and Clinical Challenges in Elderly Major Surgical PatientsView all 3 articles

A Machine Learning Approach to Predict Postoperative Sleep Disturbance After Total Knee Arthroplasty: A Comparative Study of Multiple Algorithms

Provisionally accepted
Yixiang  ZhangYixiang Zhang1,2Sen  HeSen He3Tao  YangTao Yang1,2Haoliang-Li  LiHaoliang-Li Li1,2Chun-lei  WuChun-lei Wu2,4Lei  WangLei Wang1Xiao-quan  WangXiao-quan Wang1Jun  LiuJun Liu1,2*
  • 1Tianjin Hospital, Tianjin, China
  • 2Tianjin Medical University, Tianjin, China
  • 3Tianjin Beichen Hospital, Tianjin, China
  • 4The 983rd Hospital of the Chinese People's Liberation Army Joint Logistics Support Force, Tianjin, China

The final, formatted version of the article will be published soon.

Background: Postoperative sleep disturbance (PSD) is a common complication following total knee arthroplasty (TKA), which negatively impacts patient recovery. Despite the critical need for early detection and management, there is limited research on predictive models for early PSD, particularly those integrating machine learning (ML) techniques. Objective: This study aimed to develop a predictive model for early PSD following TKA using ML algorithms, identify key predictive factors, and provide an interpretable model to guide clinical decision-making. Methods: The study included 505 patients who underwent TKA. Clinical data were collected at three stages: preoperatively, intraoperatively, and postoperatively. Ten MLa models, including Logistic Regression, Support Vector Machine (SVM), and XGBoost, were trained and evaluated using a test set. Performance metrics, including accuracy, sensitivity, specificity, and area under the curve (AUC), were used to evaluate the efficacy of the models. Key features influencing PSD were identified through SHapley Additive Explanations (SHAP) analysis to enhance model interpretability. Results: Gradient Boosting Machine (GBM) demonstrated the highest AUC (0.906), accuracy (0.834), and sensitivity (0.879), establishing it as the optimal model for predicting PSD. Key predictors identified included age, smoking, living alone, living in the city, VAS one month postoperative, and anxiety one month postoperative. SHAP analysis revealed that postoperative VAS and age were the most influential factors in predicting PSD, with their impact varying based on individual patient data. Conclusion: The study developed a robust and interpretable ML model for the early prediction of PSD following TKA. This model can aid in preoperative risk stratification, facilitating personalized management strategies to improve postoperative outcomes. Further validation in larger cohorts and diverse settings is necessary to enhance its broader clinical applicability.

Keywords: Postoperative sleep disturbance, Total knee arthroplasty, machine learning, predictive model, SHAP analysis

Received: 05 Sep 2025; Accepted: 21 Oct 2025.

Copyright: © 2025 Zhang, He, Yang, Li, Wu, Wang, Wang and Liu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Jun Liu, liujun1968tju@163.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.