Development and validation of a machine learning based model for predicting prolonged length of hospital stay after coronary artery bypass grafting: a retrospective study

Prolonged postoperative hospitalization after coronary artery bypass grafting (CABG) increases healthcare resource use and reflects poor recovery. Early identification of high-risk patients may improve perioperative management and resource allocation. This study aimed to develop and validate a machine learning-based model for predicting prolonged hospital stay after CABG. A total of 572 patients who underwent CABG at the Second Xiangya Hospital of Central South University between January 2023 and March 2024 were retrospectively enrolled and randomly divided into training and validation sets (7:3). Prolonged hospitalization was defined as length of stay above the 70th percentile. Feature selection was performed using Boruta and LASSO regression, with multicollinearity assessed by variance inflation factor. Ten machine learning models were constructed and compared. Model performance was evaluated using area under the receiver operating characteristic curve (AUC), accuracy, positive predictive value, recall, F1 score and specificity, with integrated ranking to determine the optimal model. Decision curve analysis, calibration curves, and the Brier score were used to assess clinical utility and predictive accuracy. Shapley Additive Explanations (SHAP) analysis was applied to interpret the Logistic Regression model. Finally, a web-based prediction tool was developed based on the optimal model. Logistic regression showed the most stable validation performance (AUC = 0.759, 95%CI: 0.669–0.850), with good calibration and net clinical benefit. SHAP analysis identified preoperative myoglobin, mechanical ventilation duration, preoperative prothrombin time, and activated partial thromboplastin time as the main predictors. A nomogram and online tool enabled individualized risk assessment. A Logistic Regression model for predicting prolonged hospital stay after CABG was developed and validated in this study. The nomogram and web-based tool provide an initial approach for identifying patients at high risk of prolonged hospital stay during the early postoperative period. Further prospective and external validation studies are needed to confirm the validity and clinical applicability of this tool.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-09-11
DOI
https://doi.org/10.1038/s41598-026-71163-4
Primary Topic
Cardiac, Anesthesia and Surgical Outcomes
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Development and validation of a machine learning based model for predicting prolonged length of hospital stay after coronary artery bypass grafting: a retrospective study

Kang Zhou, Yichun Shuai, Junmei Xu, Lijie Xu et al.
Scientific Reports
Cardiac, Anesthesia and Surgical Outcomes
article

Development and validation of a machine learning based model for predicting prolonged length of hospital stay after coronary artery bypass grafting: a retrospective study

Kang Zhou, Yichun Shuai, Junmei Xu, Lijie Xu, Xin Wang, Linhai Zuo
article en

Abstract

Prolonged postoperative hospitalization after coronary artery bypass grafting (CABG) increases healthcare resource use and reflects poor recovery. Early identification of high-risk patients may improve perioperative management and resource allocation. This study aimed to develop and validate a machine learning-based model for predicting prolonged hospital stay after CABG. A total of 572 patients who underwent CABG at the Second Xiangya Hospital of Central South University between January 2023 and March 2024 were retrospectively enrolled and randomly divided into training and validation sets (7:3). Prolonged hospitalization was defined as length of stay above the 70th percentile. Feature selection was performed using Boruta and LASSO regression, with multicollinearity assessed by variance inflation factor. Ten machine learning models were constructed and compared. Model performance was evaluated using area under the receiver operating characteristic curve (AUC), accuracy, positive predictive value, recall, F1 score and specificity, with integrated ranking to determine the optimal model. Decision curve analysis, calibration curves, and the Brier score were used to assess clinical utility and predictive accuracy. Shapley Additive Explanations (SHAP) analysis was applied to interpret the Logistic Regression model. Finally, a web-based prediction tool was developed based on the optimal model. Logistic regression showed the most stable validation performance (AUC = 0.759, 95%CI: 0.669–0.850), with good calibration and net clinical benefit. SHAP analysis identified preoperative myoglobin, mechanical ventilation duration, preoperative prothrombin time, and activated partial thromboplastin time as the main predictors. A nomogram and online tool enabled individualized risk assessment. A Logistic Regression model for predicting prolonged hospital stay after CABG was developed and validated in this study. The nomogram and web-based tool provide an initial approach for identifying patients at high risk of prolonged hospital stay during the early postoperative period. Further prospective and external validation studies are needed to confirm the validity and clinical applicability of this tool.

Scientific Reports
Central South University (CN), Second Xiangya Hospital of Central South University (CN)
Natural Science Foundation of Hunan Province
No poverty
Openalex Percentile: Top 11%
Cardiac, Anesthesia and Surgical Outcomes
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.