ORIGINAL RESEARCH article
Front. Med.
Sec. Intensive Care Medicine and Anesthesiology
This article is part of the Research TopicAdvancing Gastrointestinal Disease Diagnosis with Interpretable AI and Edge Computing for Enhanced Patient CareView all 8 articles
Machine Learning–Based Risk Stratification for Gastrointestinal Bleeding in ICU Patients with Cirrhosis: Evidence from the MIMIC Database
Provisionally accepted- Jiangsu University Affiliated People's Hospital, Zhenjiang, 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: Gastrointestinal bleeding (GIB) is a common complication in critically ill patients with cirrhosis, significantly impacting clinical outcomes. Early identification of high-risk patients is crucial for guiding appropriate interventions and improving outcomes. Objective: To develop and externally validate a machine learning model for predicting in-hospital GIB in ICU patients with cirrhosis, identify key predictors, and assess its clinical utility for risk stratification. Methods: This retrospective cohort study included 3,160 ICU patients with cirrhosis from the MIMIC-IV database, divided chronologically into training (n=2,528) and testing (n=632) cohorts. External validation was performed on 523 patients from the eICU database. Predictive variables were identified using the Boruta algorithm, correlation analysis, and variance inflation factor (VIF) assessment. Six machine learning algorithms—logistic regression, k-nearest neighbors, support vector machine, random forest (RF), multilayer perceptron, extreme gradient boosting, and gradient boosting machine—were trained and evaluated through 10-fold cross-validation. Model performance was assessed using AUC-ROC, accuracy, sensitivity, specificity, precision, F1-score, calibration curves, and decision curve analysis (DCA). Shapley additive explanations (SHAP) analysis identified key predictors. Multivariable logistic regression examined the relationship between anticoagulant therapy and in-ICU GIB incidence. Results: The RF model achieved AUC of 0.86 (95% CI: 0.84–0.88) in training and 0.72 (95% CI: 0.68–0.76) in testing, with sensitivity 0.68, specificity 0.71, and precision 0.47. Key predictors included red blood cell count, hemoglobin, platelet count, and anticoagulant therapy. DCA indicated meaningful clinical utility for risk stratification. Anticoagulant use was independently associated with lower GIB risk (OR: 0.29; 95% CI: 0.24–0.34), with consistent findings across gender, age, weight, and other subgroups. Conclusions: The RF model demonstrated stable discrimination for predicting GIB risk in ICU patients with cirrhosis across multiple cohorts. Built on readily available clinical data, it enables timely risk stratification and informs individualized preventive interventions in critical care settings.
Keywords: cirrhosis, gastrointestinal bleeding, machine learning, in-ICU, Prediction model
Received: 29 Sep 2025; Accepted: 12 Nov 2025.
Copyright: © 2025 DUAN, SUI, LI, CAI, XIA and FU. 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: Jianhua FU, fujianhua75@126.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.
