Introduction

Liver cirrhosis is a chronic progressive liver disease caused by various causes leading to the replacement of healthy liver parenchyma by fibrotic tissue and regenerative nodules1. Compared to patients without liver cirrhosis, patients with liver cirrhosis often have a 4–5 times higher risk of developing infections due to acquired immunodeficiency caused by hypersplenism resulting in leukopenia and lack of immune protein production2,3,4. In the occurrence of infection, patients with cirrhosis are at risk of developing sepsis and have a significantly higher mortality rate4,5. Therefore, the development of a scoring system for risk of death stratification to rapidly and accurately assess the prognosis of patients with cirrhosis and sepsis appears critical.

There are some scoring systems available for the prognostic assessment of patients with liver cirrhosis and sepsis respectively, such as the Sequential Organ Failure Scale (SOFA) score6, the Model for End-stage Liver Disease with the incorporation of serum sodium (MELD-Na)7, Age-Bilirubin-International Normalized Ratio (INR)-Creatinine (ABIC) Score8, etc. Due to the specificity of patients with liver cirrhosis and sepsis, these scoring systems have limited predictive value for the prognosis of these patients. However, there are few studies specifically focused on the prognosis of patients with liver cirrhosis and sepsis, and there are no predictive models used to predict in-hospital mortality in this group of patients. Thus, we conducted this study to identify important factors affecting the prognosis of patients with liver cirrhosis and sepsis from a large database, and to develop and validate a simple and effective nomogram for assessing the prognosis of patients with liver cirrhosis and sepsis to help clinicians to risk-stratify the prognosis of them and to develop individualized treatment strategies.

Materials and methods

Data sources

This is a retrospective study from the Medical Information Mart for Intensive Care IV (MIMIC-IV, version 2.2), a large, open-access, single-center database9. The database covers de-identified health records of patients admitted by the intensive care unit (ICU) of Beth Israel Deaconess Medical Center (BIDMC, Boston, Massachusetts, USA) from 2008 to 2019. These records include admission records, International Classification of Diseases 9th edition (ICD-9) or ICD-10 diagnoses, demographics, survival information, vital signs, laboratory tests, medication records, fluid balance, microbiological culture results, caregiver records, and other details. All patient information in the database is anonymous and therefore does not require informed consent. One author (HR Lin) has completed the CITI examination and received permission to use the database for research purposes (certification number: 11383789).

Participants

Our study included patients with a diagnosis of liver cirrhosis identified by ICD-9 or ICD-10 codes. Patients with suspected infection and a SOFA score of ≥ 2 were also considered as sepsis according to the definition of sepsis 3.010. Patients with multiple ICU admissions had only the first hospitalization data extracted. Patients aged < 18 or length of stay (LOS) of ICU < 48 h were excluded from the study. The screening process is shown in Fig. 1.

Figure 1
figure 1

The flowchart of patient selection. MIMIC-IV the medical information mart for intensive care IV, ICU intensive care unit, LOS length of stay.

Data extraction

We used Structured Query Language (SQL) via Navicat Premium (version 15.0.12) to extract data from the MIMIC-IV database, including demographic characteristics, hospitalization information, survival information, complications, causes of liver cirrhosis, comorbidities, vital signs, laboratory data, continuous renal replacement therapy (CRRT), mechanical ventilation, vasopressin, albumin use within 48 h of ICU admission, Infections position, microbiological culture results and severity of illness score, etc. Demographic information included patient gender, age, marital status, and race. Complications included hypertension, diabetes, chronic heart failure (CHF), chronic obstructive pulmonary disease (COPD), and rheumatic disease. Causes of liver cirrhosis include alcoholic, viral, and biliary. Comorbidities include hepatic encephalopathy (HE), esophageal varices with hemorrhage (EVH), liver failure, septic shock, etc. Vital signs included heartrate (HR), mean blood pressure (MBP), and respiratory rate (RR) at the time of ICU admission. Laboratory parameters were those first obtained on admission to the ICU and included white blood cells (WBC), hemoglobin (HGB), mean red blood cell hemoglobin (MCH), mean red blood cell volume (MCV), red blood cell distribution width (RDW), platelets(PLT), total bilirubin (TBIL), albumin (ALB), alanine aminotransferase (ALT), lactate dehydrogenase (LDH), serum creatinine (Scr), sodium, bicarbonate, Anion gap (AG), prothrombin time (PT), and INR. Severity scoring systems included SOFA score, MELD-Na, and ABIC score. Microbiological culture results included bacterial infections, fungal infections, and bacterial combined with fungal infections.

Statistical analysis

Data were integrated using Stata (version 17.0, Texas, USA) to obtain a complete table of hospitalization information for patients with liver cirrhosis and sepsis. To minimize bias due to missing data, variables with more than 20% missing values (e.g., lactate, uric acid, etc.) were excluded from the final cohort. Missing values for continuous variables were replaced using the median11. There were no missing values for all categorical variables. R software (V.4.2.3. https://www.r-project.org/) was used for statistical analysis. The Shapiro–Wilk test was used to confirm whether the continuous variables conformed to a normal distribution. Continuous variables conforming to a normal distribution were described using the mean and standard deviation values. Non-normality continuous variables were described using median and interquartile range (IQR). Differences between groups were identified using t-test or Wilcoxon rank sum test, respectively. Categorical variables were used for description using frequencies and percentages, and chi-square tests were used to identify differences between groups. The least absolute shrinkage and selection operator (LASSO) logistic regression was used to screen potential candidates. When the cross-validation error was within one standard error of the minimum, the maximum value of lambda was selected to screen candidates. Subsequently, multivariate logistic regression analysis was performed based on the screened variables from the LASSO regression, where variables with P < 0.05 were included in the final model, and the results were expressed as ratio (OR) and 95% confidence interval (CI). Ultimately, nomogram were developed based on the final multivariate analysis model. The area under the receiver operating characteristic curve (AUC), sensitivity, specificity, integrated discriminant improvement (IDI), and net reclassification index (NRI) were calculated to assess the apparent performance of the nomograms compared to SOFA score, MELD-Na and ABIC score. Calibration curves were used to confirm the calibration performance of the nomogram model. The Hosmer–Lemeshow goodness-of-fit test (HL test) was calculated to compare the accuracy of the nomogram. Decision curve analysis (DCA) was plotted to assess the clinical usefulness of the prediction models. p < 0.05 was considered statistically significant.

Results

Baseline characteristics

As shown in Fig. 1, we screened a total of 4326 patients with a diagnosis of liver cirrhosis, resulting in 1696 adult patients enrolled in this study. The overall in-hospital mortality rate for patients with liver cirrhosis and sepsis was 23.8%. All patients were randomized into a derivation cohort (70%, n = 1226) and a validation cohort (30%, n = 470). The derivation cohort was used to create the nomograms, while the validation cohort was used to perform the validation. The number of in-hospital mortality occurred in the derivation and validation cohorts was 220 (22.8%) and 123 (26.2%), respectively. Table 1 shows the baseline characteristics between those who died and survived during hospitalisation, and between the derivation cohort and the validation cohort. The median age of patients who died in hospital was 60.2 years (IQR 53.0–67.4 years), which was significantly higher than that of patients who survived hospitalization (62.2 years, IQR 54.0–70.8 years). The majority of patients with liver cirrhosis and sepsis were male (65.7% and 66.0% in the alive and dead cohorts, respectively), more than female (34.3% and 34.0%). More patients who died during their hospital stay had CHF, HE, hepatic failure, and Septic shock than those who survived hospitalization. Surviving patients they were less likely to have infections in the blood, lung, abdomen, and urinary than those who died. Fungal infections and bacterial infections occur more commonly in patients who died in the hospital. Patients who died had lower MCHC, glucose, sodium, and bicarbonate values. However, WBC, MCH, MCV, RDW, TBIL, Scr, AG, PT, and INR levels in patients who died during their hospital stay were significantly increased. Additionally, the deceased patients received more CRRT, Mechanical ventilation, norepinephrine, vasopressin, carbapenem antibiotic, and albumin use in 48 h than the surviving patients. All variables were evenly distributed in the derivation and validation cohorts, except RDW and TBIL.

Table 1 Baseline characteristics of the patients with liver cirrhosis and sepsis.

Predictor variable selection for nomograms

LASSO regression was performed on 56 candidates (SOFA, MELD-Na and ABIC were not included), which included 21 continuous variables (Fig. 2). Twenty-one variables were suggested by LASSO regression to be associated with in-hospital mortality, including age, HE, sepsis shock, heartrate, MBP, WBC, MCV, TBIL, glucose, sodium, AG, PT, INR, blood infection, lung infection, fungal infections, carbapenem antibiotic, CRRT, mechanical ventilation, norepinephrine and vasopressin, which were included in the full model. The screening results are shown in Table 2.

Figure 2
figure 2

Predictor selection using the LASSO binary logistic regression model. (A) Tuning parameter (λ) selection using LASSO penalized logistic regression with tenfold cross-validation. (B) A minimum criteria and a 1-SE criteria were used to draw the dotted vertical lines representing the optimal values. A lambda value of 0.027378 was chosen (1-SE criteria).

Table 2 Results of multivariate logistic regression models to assess predictors of mortality for patients with liver cirrhosis and sepsis.

In the multiple regression analysis, all nine variables screened were significantly associated with in-hospital mortality in patients with liver cirrhosis and sepsis (P < 0.05). The risk of in-hospital mortality was 3.912 times higher in patients receiving vasopressors (OR = 3.912, 95% CI 2.675–5.722). In-hospital mortality was 2.819 times higher in patients with fungal infections (OR = 2.819, 95% CI 1.879–4.229). In-hospital mortality was 2.326 times higher in patients on mechanical ventilation (OR = 2.326, 95% CI 1.670–3.239). Age (OR = 1.039, 95% CI 1.024–1.053), heartrate (OR = 1.012, 95% CI 1.006–1.018), TBIL (OR = 1.003, 95% CI 1.001–1.005), and AG (OR = 1.062, 95% CI 1.029–1.096) were risk factors for in-hospital death, while glucose (OR = 0.996, 95% CI 0.994–0.998) and sodium (OR = 0.956, 95% CI 0.934–0.979) were protective factors. A simplified model based on the above nine variables was developed and nomogram were drawn to predict the probability of in-hospital mortality in patients with liver cirrhosis and sepsis (Fig. 3). We additionally plotted risk stratification based on the tertiles of the total points: low risk (total points ≤ 437), moderate risk (437 < total points ≤ 463), and high risk (total points > 463). We also construct a dynamic nomogram (https://linhirog.shinyapps.io/Nomogram/) to assist in the application of the model.

Figure 3
figure 3

Nomogram for predicting hospital mortality among patients with liver cirrhosis and sepsis. TBIL total bilirubin, AG anion gap. **P < 0.01; ***P < 0.001.

Nomogram verification

We calculated the AUC of the nomogram and compared the predictive performance of the nomogram, SOFA, MELD and ABIC score for in-hospital mortality in liver cirrhosis and sepsis. The results are listed in Table 3. The AUC values of the nomogram were0.805 (95% CI = 0.776–0.833) in the derivation cohort and 0.827 (95% CI 0.785–0.869) in the validation cohort, which were significantly higher than those of SOFA, MELD-Na and ABIC systems.The ROC curves are shown in Fig. 4. The corresponding IDI and NRI values also indicated that our nomograms had better discriminatory power and outperformed these previous prognostic prediction scoring systems.

Table 3 Comparison of models in predicting the in-hospital mortality of liver cirrhosis and sepsis patients.
Figure 4
figure 4

ROC curves. ROC curves were generated to validate the discrimination of the models, by the areas under the ROC curves. (A) ROC curves of the derivation cohort. (B) ROC curves of validation cohort. SOFA the sequential organ failure assessment, MELD-Na the model for end-stage liver disease with the incorporation of serum sodium, ABIC age-bilirubin-INR-creatinine score.

The calibration curves showed that the column line plots for both cohorts were close to the diagonal, indicating a good fit (Fig. 5). In addition, the HL test demonstrated perfect agreement between predicted and observed values (derivation cohort, χ2 = 5.462, p = 0.792; validation cohort, χ2 = 11.879, p = 0.220). This indicates good agreement between predicted and observed values.

Figure 5
figure 5

Calibration curves. Calibration curves depict the calibration of the newly established nomogram in terms of the agreement between the predicted probabilities and observed frequencies of the derivation cohort (A), and validation cohort (B).

We plotted DCA curves to illustrate the clinical value of columnar plots and compared them with the SOFA, MELD-Na and ABIC score (Fig. 6). The horizontal axis indicates that no one received the intervention and the net benefit was 0. The slanted line indicates that everyone received the intervention. Clinical interventions guided by columnar maps had greater net benefit than other scoring systems when the predicted probability thresholds in the development and validation cohorts were set at 10–80% and 10–90%.

Figure 6
figure 6

DCA curves of the derivation cohort (A), and validation cohort (B). SOFA the sequential organ failure assessment, MELD-Na the model for end-stage liver disease with the incorporation of serum sodium, ABIC age-bilirubin-INR-creatinine score.

Discussion

Patients with cirrhosis are not only susceptible to acquiring infections due to immunodeficiency, but patients are frequently hospitalized and may carry underlying disease-specific susceptibilities, such as malnutrition or alcohol use disorders, which further increase the risk of infection12. Once sepsis occurs in patients with liver cirrhosis there is a significant increase in short and long-term mortality13. Also in-hospital mortality is significantly higher [27.7% (26.3–29.1%) vs. 3.7% (3.6–3.8%)]14. Although more studies exist on sepsis in the past, there is still a lack of research on sepsis in patients with cirrhosis15.

In our study, we used LASSO regression analysis to identify independent risk factors for in-hospital mortality in patients with liver cirrhosis and sepsis in MIMIC-IV. Development and validation of a convenient and effective nomogram to predict the prognosis of patients with cirrhosis and sepsis. As far as we know, this is the first nomogram for the prognosis of liver cirrhosis and sepsis. Our model showed similar performance not only in the derivation cohort but also in the validation cohort. Also, the nomograms showed good discriminatory power, calibration ability and clinical usefulness compared to SOFA, MELD-Na and ABIC score.

In our study, the incidence of septic shock in patients with cirrhosis and sepsis was 21.9%. LASSO regression analysis showed septic shock may be associated with patients with cirrhosis combined with sepsis. Norepinephrine, vasopressin, and terlipressin are commonly used vasoactive drugs in sepsis shock. The analysis of our study showed that norepinephrine and vasopressin were associated with in-hospital mortality in patients with cirrhosis and sepsis. And vasopressin was included in the final simplified model. Noteworthy, of the nine variables, vasopressin had the highest weight in the simplified model (OR = 3.912, 95% CI 2.675–5.722). Vasopressin is required for the occurrence of septic shock or a decrease in mean arterial pressure, yet it does not reduce the risk of in-hospital death in patients with cirrhosis and sepsis but increases it. We hypothesize that this may be related to the more severe degree of shock in patients using vasopressin and the fact that vasopressin further contributes to organ ischemia, and tachycardia, etc.16.

Our study showed a 12.4% prevalence of fungal infections in patients with liver cirrhosis and sepsis. Studies have indicated that fungal infections usually complicate the clinical course of patients with liver cirrhosis, leading to increased short-term mortality17. Our multivariate logistic regression analysis showed that the occurrence of fungal infections would increase in-hospital mortality by 2.819-fold. The occurrence of fungal infections is mostly hospital-acquired, mainly in the ICU17,18. This may be related to the fact that such patients are immunocompromised and receive more broad-spectrum antibiotics, invasive procedures, etc.

Bilirubin, serum sodium and serum AG were included in the final model. Elevated bilirubin levels occur not only in liver cirrhosis, but also in critically ill patients with hepatocellular damage due to hypoxic injury (ischemic cholestasis), and hyperbilirubinemia due to sepsis-associated cholestasis19,20. Studies have shown that hyperbilirubinemia is associated with poor outcomes in liver cirrhosis21 as well as in critically ill patients22. Patients with liver cirrhosis have impaired solute-free water excretion and dilutional hyponatremia due to nonosmotic secretion of antidiuretic hormone, activation of the renin–angiotensin–aldosterone axis and sympathetic nervous system23. Hyponatremia is a common problem of water-electrolyte disturbance in patients with advanced liver cirrhosis24. Our study showed that serum sodium concentration is a protective factor against in-hospital mortality in patients with liver cirrhosis and sepsis, and that lower blood sodium levels associated with inferior prognosis in patients with liver cirrhosis and sepsis. Interestingly, sodium is included in the formula for AG, and an increase in serum sodium would also indirectly reflect an increase in AG. However, increased AG is an independent risk factor for in-hospital mortality. AG is influenced by more indicators, the most common one leading to increased AG is metabolic acidosis, which implies the overproduction of organic acids, such as the accumulation of lactic acid25. It is hypothesized that this is related to an excess production of lactic acid due to hypoxia and shock caused by infection and a decrease in lactic acid clearance due to impaired hepatic clearance of lactic acid26. Among our studies, aging was associated with increased risk in patients with liver cirrhosis and sepsis. Also the use of mechanical ventilation is a factor that affects the prognosis of patients with liver cirrhosis and sepsis, and patients in the non-survival group are more prone to respiratory dysfunction due to pulmonary infections and ARDS and are often more critically ill, which may lead to a higher risk of death.

It was previously believed that sepsis patients have insulin resistance as well as an inflammatory response releasing inflammatory mediators that activate the neuro-endocrine system, causing an increase in blood glucose levels and leading to an increase in all-cause mortality in the ICU27. However, our study found that glucose was a protective factor for in-hospital mortality in patients with cirrhosis combined with sepsis (OR = 0.996, 95% CI 0.994–0.998). This may be related to the fact that patients with cirrhosis have impaired liver function and insufficient hepatic glycogen reserve, which makes them prone to hypoglycemia28. Appropriate maintenance of a certain level of blood glucose helps to provide the body with the necessary energy support and reduces the metabolic burden on the liver, thus exerting a protective effect on such patients.

This study also has some limitations: firstly since this is information from a single-center database and some variables such as lactate were not included in the study due to more than 20% of missing cases, as well as the unavailability of Child–Pugh score, both lead to a degree of bias. However, we set strict inclusion criteria together with exclusion criteria so that both the survivor and non-survivor groups would accurately reflect the true numbers. Secondly, our study was based on a retrospective cohort, and therefore the nomograms require further prospective validation before clinical application can be considered. Finally, the nature of observational studies suggests that unknown confounding factors may affect our results. Nomogram obviously do not provide fully accurate prognostic predictions and should therefore only be used by clinicians as a reference.

Conclusion

We established the first prognostic nomogram based on the MIMIC database to predict in-hospital mortality in patients with liver cirrhosis and sepsis. In this retrospective cohort analysis of patients with liver cirrhosis and sepsis, we used LASSO logistic regression to identify 9 independent variables associated with in-hospital mortality, including age, heartrate,TBIL, glucose, sodium, AG, fungal infectiongs, mechanical ventilation and vasopressin. Based on a simplified model with 9 variables, nomogram were drawn to predict the risk of in-hospital mortality. The nomogram model performed well compared to SOFA, MELD and ABIC. The model performed well in internal validation and can be used to guide clinical practice, but further external prospective validation is needed.