ORIGINAL RESEARCH article
Front. Med.
Sec. Rheumatology
Volume 12 - 2025 | doi: 10.3389/fmed.2025.1714792
This article is part of the Research TopicAdvancements in Musculoskeletal Care: Integrating Immunobiology, Surgical Innovation, and RehabilitationView all articles
A SHAP-Interpretable Machine Learning Framework for Predicting Delayed Discharge in Ambulatory Total Knee Arthroplasty: Comparative Validation of 14 Models
Provisionally accepted- 1Guizhou Provincial People's Hospital, Guiyang, China
- 2Guizhou University of Traditional Chinese Medicine, Guiyang, China
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Background: The rising global demand for total knee arthroplasty (TKA) has accelerated the shift toward ambulatory surgery, aimed at same-day or next-day discharge. However, significant variability in discharge protocols and high rates of delayed discharge in unselected patients challenge its widespread implementation. This study develops an interpretable machine learning framework to preemptively identify risk factors for delayed discharge in ambulatory TKA. Method: This retrospective study analyzed data from 449 patients who underwent ambulatory total knee arthroplasty between September 2021 and June 2024. Fourteen machine learning models were developed and validated using preoperative variables selected via LASSO and multivariate regression. The dataset was split into training (70%) and validation (30%) sets, with hyperparameter tuning performed through grid search and 5-fold cross-validation. SHAP analysis was applied to interpret feature importance in the optimal model. Results: Analysis of 449 patients identified five key predictors—ejection fraction, preoperative eGFR, preoperative ESR, diabetes mellitus, and Barthel Index—via LASSO and multivariate regression. Among 14 machine learning models, CATBoost exhibited optimal performance, with an AUC of 0.959 in training and 0.832 in validation, supported by high net benefit in decision curve analysis. SHAP analysis identified EF and preoperative ESR as the most influential features, confirmed risk directionality for low EF and low Barthel Index, and revealed nuanced interactions, such as the inverse relationship of EF with risk, enhancing model interpretability. Conclusion:This study establishes that machine learning, particularly the CATBoost model, effectively predicts delayed discharge in ambulatory total knee arthroplasty using five key preoperative variables. SHAP analysis further enhanced model interpretability by revealing feature interactions, such as the modulating role of ejection fraction. These predictors enable improved risk stratification and personalized discharge planning, supporting optimized resource use and patient management. While limitations like single-center data require cautious interpretation, the findings highlight the potential of predictive analytics for clinical deployment. Further validation in diverse settings is warranted to translate these findings into clinical practice.
Keywords: machine learning, Shap, Delayed discharge, Ambulatory Total Knee Arthroplasty, risk prediction, Interpretable artificial intelligence, Perioperative management
Received: 28 Sep 2025; Accepted: 22 Oct 2025.
Copyright: © 2025 Feng, Yuan, Luo, Chen, Jiang, Li, Luo, Sun and Li. 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:
Li Sun, lisun@gzu.edu.cn
Bo Li, myronlee@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.