Prediction of gastrointestinal hemorrhage in cardiology inpatients using an interpretable XGBoost model.

Sci Rep

Department of Neurology, The Second Hospital of Lanzhou University, 82 Cuiyingmen, Chengguan District, Lanzhou, 730030, Gansu, China.

Published: July 2025


Category Ranking

98%

Total Visits

921

Avg Visit Duration

2 minutes

Citations

20

Article Abstract

Gastrointestinal bleeding (GIB) occurs more frequently in cardiovascular patients than in the general population, significantly affecting morbidity and mortality. However, existing predictive models often lack sufficient accuracy and interpretability. We developed an interpretable and practical machine learning model to predict the risk of GIB in cardiology inpatients. This retrospective study analyzed electronic health records of 10,706 patients admitted to the Department of Cardiology at the Second Hospital of Lanzhou University from October 8, 2019, to October 30, 2024. Variables with > 30% missing data were excluded, leaving 35 potential predictors. The dataset was randomly split into a training cohort (80%, n = 9,356) and a test cohort (20%, n = 2,340). GIB occurred in 110 patients (1.03%). Ten variables were identified as the strongest predictors: hemoglobin (importance score: 0.16), creatinine (0.12), D-dimer (0.10), NT-proBNP (0.06), glucose (0.06), white blood cell count (0.06), body weight (0.06), serum albumin (0.04), urea (0.04), and age (0.04). Among seven machine learning classifiers, XGBoost performed best, with an AUC of 0.995 in the validation cohort. In the validation set, the model achieved an accuracy of 0.975, sensitivity of 0.769, and specificity of 0.996. SHapley Additive exPlanations (SHAP) analysis confirmed hemoglobin, creatinine, and D-dimer as the top contributors to GIB risk. The model demonstrated excellent calibration (Brier score = 0.016), and decision curve analysis supported its clinical utility across various risk thresholds. The XGBoost model offers high accuracy and interpretability in predicting GIB risk among cardiology inpatients. It holds promise for clinical decision support by enabling early risk identification and personalized prevention strategies.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC12255804PMC
http://dx.doi.org/10.1038/s41598-025-10906-1DOI Listing

Publication Analysis

Top Keywords

cardiology inpatients
12
xgboost model
8
accuracy interpretability
8
machine learning
8
gib risk
8
model
5
gib
5
risk
5
prediction gastrointestinal
4
gastrointestinal hemorrhage
4

Similar Publications

Background: Effective risk communication is essential in managing cardiovascular disease, the leading cause of global mortality. Clear communication between patients and physicians supports informed decision-making, yet comprehension gaps persist. We aimed to assess the quality of risk communication during hospital admissions for cardiovascular events, from patient and physician perspectives, and identify discrepancies in risk perception and associated factors.

View Article and Find Full Text PDF

Introduction: Pulmonary arterial hypertension (PAH) is a rare, progressive disease resulting from elevated pulmonary arterial pressure leading to right ventricular failure and death. Optimal adherence and persistence to medical therapy are necessary to improve outcomes. The objective of this study was to characterize adherence and persistence to first-line PAH therapies in patients newly initiating treatment.

View Article and Find Full Text PDF

Background: Pulmonary embolism (PE) is a life-threatening condition with significant morbidity and mortality. The relationship between psychiatric disorders and PE outcomes is complex and not well understood. This study aimed to determine the impact of psychiatric disorders on PE outcomes by comparing patients with and without these conditions.

View Article and Find Full Text PDF

Catheter ablation has emerged as a first-line therapy for many arrhythmias. However, data on the safety and outcomes of catheter ablation in the elderly population remain limited. Here, we aimed to study the outcomes of catheter ablation in octogenarians.

View Article and Find Full Text PDF

Taking the Pulse: A Retrospective, Population-Based Analysis of Alberta's Privatization of Cardiac Testing.

Can J Cardiol

September 2025

Cumming School of Medicine, University of Calgary, Calgary, Alberta; Department of Community Health Sciences, University of Calgary, Calgary, Alberta; O'Brien Institute for Public Health, University of Calgary, Calgary, Alberta; Department of Obstetrics and Gynaecology, University of Calgary, Calgar

Background: Many provinces are considering an expanded role for for-profit diagnostic imaging facilities. We describe trends over time in the use of cardiac imaging studies, a subset of diagnostic imaging, in the for-profit and publicly operated facilities in Alberta. Alberta has allowed testing in private facilities since the 1970s, with formalized guidelines released in 1998.

View Article and Find Full Text PDF