An interpretable machine learning model for predicting postoperative recovery quality after cardiovascular surgery: development, validation, and clinical applicability

Abstract

Objectives Quality of recovery (QoR) following cardiovascular surgery represents a key patient-centered outcome closely related to complications, hospital stay, and resource utilization. This study aimed to develop and validate an interpretable machine-learning model for predicting early postoperative recovery quality after cardiovascular surgery and to derive clinically actionable risk stratification to guide perioperative management.

Methods We retrospectively analyzed 581 adult patients who underwent cardiovascular surgery at the Affiliated Hospital of Yangzhou University between March 2021 and September 2025. The primary endpoint was poor recovery, defined as QoR-15 < 90 on postoperative day 3. Predictor variables included demographic, ASA classification, emergency status, cardiopulmonary bypass (CPB), preoperative lactate, surgical duration, rebeating strategy, and modified Frailty Index (mFI). Data were randomly split 7:3 into training and test sets, with the final 20% of patients used for temporal external validation. Six ML algorithms include logistic regression (LR), K-nearest neighbors (KNN), Extremely Randomized Trees (ExtraTrees), Support Vector Machines (SVMs), Light Gradient Boosting Machine (LightGBM), and eXtreme Gradient Boosting (XGBoost) were compared using 10-fold cross-validation and hyperparameter optimization. Model discrimination, calibration, and clinical utility were evaluated using AUC, calibration plots, the Hosmer-Lemeshow test, and decision curve analysis (DCA). Model interpretability was assessed with SHapley Additive exPlanations (SHAP), and risk thresholds were derived from DCA for practical clinical stratification.

Results Among the 581 patients, 173 (29.8%) experienced poor recovery. The XGBoost model achieved the best overall performance (AUC = 0.982, accuracy = 0.974, Hosmer–Lemeshow p = 0.791) with excellent calibration and temporal validation (AUC = 0.997). SHAP analysis identified five key predictors of poor recovery: female sex, higher ASA grade, elevated preoperative lactate (>2 mmol/L), longer operative duration, and greater frailty (mFI ≥ 0.25). Risk thresholds derived from DCA defined three clinical tiers-low (<0.15), intermediate (0.15-0.40), and high (>0.40)-for tailored postoperative management.

Conclusions An interpretable XGBoost model accurately predicted postoperative recovery quality after cardiovascular surgery using routinely collected clinical data. The model’s transparency enables identification of modifiable risk factors and supports personalized perioperative optimization. Multicenter prospective validation and integration into perioperative decision-support systems are warranted to enhance recovery-oriented, patient-centered outcomes.

Competing Interest Statement

The authors have declared no competing interest.

Clinical Trial

The study was reviewed and approved by the institutional Ethics Committee(No.2023-YKL01-09), and conducted in accordance with the Declaration of Helsinki. The ethics committee waived the requirements for informed consent and clinical trial registration due to the retrospective nature of the study.

Funding Statement

This work was supported by Yangzhou City Basic Research Program (Joint Special Project) - Health Sector - Young Researcher Project (2025-3-10), and Guannan Basic Research Program (Joint Special Project) ? Health Sector (2025-2-06).

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

The study was reviewed and approved by the Ethics Committee of Affiliated Hospital of Yangzhou University (Yangzhou, Jiangsu, China), and conducted in accordance with the Declaration of Helsinki. The ethics committee granted ethical approval for this study (Approval No. 2023-YKL01-09) and waived the requirement for informed consent and clinical trial registration due to the retrospective nature of the research.

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data availability

All datas in this study should be requested from the corresponding authors.

Comments (0)

No login
gif