Tsai SC, Lin CH, Chu CCJ, Lo HY, Ng CJ, Hsu CC, Chen SY. Machine Learning Models for Predicting Mortality in Patients with Cirrhosis and Acute Upper Gastrointestinal Bleeding at an Emergency Department: A Retrospective Cohort Study.
Diagnostics (Basel) 2024;
14:1919. [PMID:
39272704 PMCID:
PMC11394157 DOI:
10.3390/diagnostics14171919]
[Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 07/31/2024] [Revised: 08/28/2024] [Accepted: 08/29/2024] [Indexed: 09/15/2024] Open
Abstract
BACKGROUND
Cirrhosis is a major global cause of mortality, and upper gastrointestinal (GI) bleeding significantly increases the mortality risk in these patients. Although scoring systems such as the Child-Pugh score and the Model for End-stage Liver Disease evaluate the severity of cirrhosis, none of these systems specifically target the risk of mortality in patients with upper GI bleeding. In this study, we constructed machine learning (ML) models for predicting mortality in patients with cirrhosis and upper GI bleeding, particularly in emergency settings, to achieve early intervention and improve outcomes.
METHODS
In this retrospective study, we analyzed the electronic health records of adult patients with cirrhosis who presented at an emergency department (ED) with GI bleeding between 2001 and 2019. Data were divided into training and testing sets at a ratio of 90:10. The ability of three ML models-a linear regression model, an XGBoost (XGB) model, and a three-layer neural network model-to predict mortality in the patients was evaluated.
RESULTS
A total of 16,025 patients with cirrhosis and 32,826 ED visits for upper GI bleeding were included in the study. The in-hospital and ED mortality rates were 11.2% and 2.2%, respectively. The XGB model exhibited the highest performance in predicting both in-hospital and ED mortality (area under the receiver operating characteristic curve: 0.866 and 0.861, respectively). International normalized ratio, renal function, red blood cell distribution width, age, and white blood cell count were the strongest predictors in all the ML models. The median ED length of stay for the ED mortality group was 17.54 h (7.16-40.01 h).
CONCLUSIONS
ML models can be used to predict mortality in patients with cirrhosis and upper GI bleeding. Of the three models, the XGB model exhibits the highest performance. Further research is required to determine the actual efficacy of our ML models in clinical settings.
Collapse