Machine learning prediction models for prognosis of critically ill patients after open-heart surgery

Zhihua Zhong, Xin Yuan, Shizhen Liu, Yuer Yang, Fanna LiuScientific 2021

Abstract

This study aimed to develop and validate machine learning models for predicting 30-day mortality and three major complications—septic shock, thrombocytopenia, and liver dysfunction—in patients following open-heart surgery. Utilizing data from 6,844 patients in the MIMIC-III database, we compared four algorithms: Extreme Gradient Boosting (XGBoost), Random Forest (RF), Artificial Neural Networks (ANN), and Logistic Regression (LR). XGBoost emerged as the highest-performing model, achieving an Area Under the Curve (AUC) of 0.88 for 30-day mortality and a remarkable 0.98 for septic shock. These findings were integrated into a software application designed for real-time monitoring in Intensive Care Units (ICUs).

Introduction

Open-heart surgery, including procedures like coronary artery bypass and valve replacement, carries significant risks during the post-operative recovery phase in the ICU. While some complications are well-documented, others like septic shock, thrombocytopenia, and liver dysfunction lack specialized predictive tools. Traditional clinical models often rely on Logistic Regression, which can struggle to account for the complex, non-linear interactions inherent in physiological data. This research leverages modern machine learning to provide clinicians with earlier, more accurate warnings for high-risk patients.

Methods

The study cohort consisted of 6,844 patients from the Beth Israel Deaconess Medical Center (MIMIC-III database) who underwent heart-related surgeries between 2001 and 2012. Researchers evaluated 35 input variables, including demographics, vital signs, and laboratory results.

A significant challenge was the low incidence of certain complications, such as septic shock (0.5%). To address this class imbalance, the team adjusted the weights of positive samples within the loss function of the models. Performance was assessed using five-fold cross-validation and grid search for hyperparameter tuning, with metrics including AUC, F1 score, precision, and recall.

Results and Model Performance

XGBoost consistently outperformed the other models across all four clinical outcomes. It demonstrated superior discriminative power, particularly for rare events like septic shock.

ROC curves for the four predictive models across all study outcomes, demonstrating the consistent superiority of the XGBoost algorithm.

Key performance metrics for the XGBoost model included:

  • Septic Shock: AUC 0.98, F1 0.70
  • 30-Day Mortality: AUC 0.88, F1 0.58
  • Thrombocytopenia: AUC 0.88, F1 0.55
  • Liver Dysfunction: AUC 0.89, F1 0.40

Decision Curve Analysis (DCA) further confirmed that the machine learning models provided a higher "net benefit" compared to traditional methods, suggesting they can better support clinical decision-making without increasing false positives.

Key Insights

  • Critical Predictors: The study identified specific physiological markers as high-value predictors. Vasopressin use was the strongest indicator for mortality, while hemoglobin levels were highly indicative of impending septic shock. Lactate and platelet counts also emerged as vital markers for systemic failure.
  • Algorithm Selection: While deep learning (ANN) is often favored in modern research, this study reinforces that gradient-boosted trees (XGBoost) remain the gold standard for structured, tabular medical data.
  • Clinical Application: To move the research from theory to practice, the authors developed a Windows-based software tool that allows hospital staff to monitor these risk scores in real-time.

Conclusion and Future Work

The developed XGBoost framework provides a promising tool for improving the prognosis of post-operative cardiac patients. However, the study is limited by its reliance on a single-center database (MIMIC-III), which may introduce geographic bias. Future research should focus on multi-center validation and the integration of live data streaming from ICU monitors to provide dynamic, real-time risk assessments.

Summary updated

BibTeX
@inproceedings{zhong2021machine,
  author = {Zhihua Zhong and Xin Yuan and Shizhen Liu and Yuer Yang and Fanna Liu},
  title = {{Machine learning prediction models for prognosis of critically ill patients after open-heart surgery}},
  booktitle = {Scientific},
  year = {2021},
  doi = {10.1038/s41598-021-83020-7},
}
Figure