A Clustering-Based Machine Learning Approach for Mortality Prediction in Gastrointestinal Bleeding: Development and Validation
Abstract
Background and Aims: Gastrointestinal bleeding (GIB) is a life-threatening emergency with considerable morbidity and mortality. Traditional risk scores like AIMS65 and Glasgow-Blatchford Score (GBS) are limited in capturing nonlinear clinical interactions. We developed and externally validated a machine learning model to predict 30-day mortality in GIB patients. Methods: We retrospectively analyzed 5453 emergency department patients with GIB from the Medical Information Mart for Intensive Care IV-Emergency Department database for model development, with external validation using 7166 patients from Jefferson Health. Sixteen clinical and laboratory variables were selected based on a literature review and clinical relevance. The development cohort was divided into training (80%) and internal validation (20%) sets. Survivors were partitioned into 24 clusters using K-means, with separate random forest models trained on each cluster, combined with all deceased cases. Performance was evaluated using the area under the receiver-operating characteristic curve, sensitivity, and specificity on the external validation set, then benchmarked against AIMS65 and the GBS. Results: < .001). Clustering identified distinct phenotypes with mortality ranging from 0.6% to 15.3%. SHapley Additive exPlanations analysis identified age, albumin, hemodynamic parameters, and presenting hemoglobin and platelet count as key predictors. Conclusion: Our model provides superior risk stratification for 30-day mortality in GIB compared to conventional scores, with validated generalizability and potential for integration into electronic health record systems.
Fields of Study & Subjects
Gastrointestinal Bleeding Diagnosis and Treatment
Artificial Intelligence in Healthcare
Machine Learning in Healthcare
Publication details
- Journal / source
- Gastro Hep Advances
- Publisher
- Elsevier BV
- Volume
- 5
- Issue
- 7
- Pages
- 100985–100985
- Publication date
- 1 January 2026
- Language
- EN