Introduction

Hyponatremia, the most common electrolyte disorder in liver cirrhosis, is significantly associated with worse outcome1,2. Hyponatremia is defined as serum sodium (Na) level < 135mmol/L3, and its prevalence is approximately 50% in patients with liver cirrhosis and ascites4. In a registry of 6796 patients awaiting liver transplantation, an increase of 5% in the risk of death was observed per unit decrease in serum Na level5. Thus, serum Na level has been included in the MELD-Na score to determine the priority of liver transplantation6. However, at present, effective treatment of hypervolemic hyponatremia, especially moderate and severe hyponatremia, is still lacking in patients with liver cirrhosis7. Therefore, it is crucial to clarify the patients with poor prognosis in the early stage of disease.

Artificial intelligence (AI), especially machine learning, has been widely used to develop the diagnosis and prognosis model of various diseases8. Nowadays, several specific AI approaches, such as support vector machine, random forest, decision tree, and artificial neural network (ANN), outperform conventional approaches in screening and diagnosis of various diseases and drug design9. Among them, ANN is one of the most commonly used to construct a predictive model in the nonlinear complex biological systems10,11. It has been used to predict post-hepatectomy survival of early hepatocellular carcinoma12, evaluate liver transplantation prioritization13, manage colorectal cancer liver metastases14, differentiate between prostate cancer from benign hyperplasia of prostate15, and diagnose chronic atrophic gastritis16. Generally, ANN models are more accurate than multiple logistic regression and multiple linear discriminant analysis models17,18.

This study aimed to develop a predictive model for the in-hospital death of patients with liver cirrhosis and hyponatremia by using an ANN approach.

Method

Study design

This retrospective study conformed to the ethical guidelines of the 1975 Declaration of Helsinki and was approved by the Medical Ethical Committee of the General Hospital of Northern Theater Command with an approval number of Y(2022)171. The requirement of informed written consent was waived, because we only extracted the data from the inpatients’ medical records. As mentioned in our previous studies19,20, patients with liver cirrhosis who were consecutively admitted to the General Hospital of Northern Theater Command from January 2010 to June 2014 were selected. Patients who lacked baseline data were excluded. Hyponatremia was defined as a serum Na level of less than 135mmol/L. The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) checklist for research reporting of observational studies was followed.

Dataset acquisition

Baseline data included age, sex, etiology of liver cirrhosis, ascites, acute upper gastrointestinal bleeding (AUGIB), hepatocellular carcinoma (HCC), hemoglobin (Hb), white blood cell (WBC), platelet (PLT), total bilirubin (TBIL), alanine aminotransferase (ALT), albumin (ALB), alkaline phosphatase (AKP), serum creatinine (Scr), potassium (K), Na, and international normalized ratio (INR). Child-Pugh and model for end-stage liver disease (MELD) scores were calculated. The outcome data was the death during hospitalization.

Statistical analyses

Continuous variables were expressed as mean ± standard deviation and median (range), and categorical variables were expressed as frequency (percentage). Random sampling was used to divide patients into training and validation cohorts with an approximate percentage of 50%. Difference between training and validation cohorts was compared by the nonparametric Mann-Whitney U test and the Chi-square test. Logistic regression analyses were performed to identify the independent predictors associated with in-hospital death in the training cohort. Odds ratios (ORs) with 95% confidence intervals (CIs) were calculated. In the training cohort, an ANN model was established by the independent predictors by the nnet package of the R software. Then, receiver operating characteristic curve (ROC) analysis was performed to evaluate the predictive performance of the ANN model. Its area under curve (AUC) was calculated and compared with those of Child-Pugh, MELD, and MELD-Na scores. The predictive performance of the ANN model was also validated in the validation cohort. Additionally, the calibration ability of the ANN model was measured using the calibration plot and Hosmer-Lemeshow test. All statistical analyses were performed by the SPSS software (version 25.0, IBM Corp, Armonk, NY, USA), R software (version 4.0.3, R Core Team, R Foundation for Statistical Computing, Vienna, Austria), and MedCalc software (version 11.4.2.0, MedCalc Software, Mariakerke, Belgium). A two-tailed P < 0.05 was considered statistically significant.

Results

Characteristics of included patients

Overall, 943 patients with cirrhosis and hyponatremia were included. Their mean age was 59.35 years. Among them, 669 patients were male, and 396, 325, 247, 219, and 626 patients had HBV infection, alcohol-related liver disease, HCC, AUGIB, and ascites at their admissions. One hundred patients died during hospitalization (Table 1).

Table 1 Characteristics of included patients with liver cirrhosis and hyponatremia.

Characteristics of training and validation cohorts

Among them, 472 and 471 patients were assigned to the training and validation cohorts, respectively. The training cohort has significantly higher proportion of AUGIB (26.30% vs. 20.20%, P = 0.027) and lower Hb level (92.06 ± 30.06 vs. 96.49 ± 28.12, P = 0.010) than the validation cohort. Other baseline data was not significantly different between training and validation cohorts (Table 2).

Table 2 Characteristics of included patients in training and validation cohorts.

Development of ANN model

Univariate logistic regression analyses showed that ascites, WBC, TBIL, ALB, ALT, Scr, K, INR, Child-Pugh score, and MELD score were significantly associated with the in-hospital death of cirrhotic patients with hyponatremia in the training cohort (Table 3). Multivariate logistic regression analyses showed that ascites (OR = 2.705, 95%CI: 1.036–7.060, P = 0.042), TBIL (OR = 1.004, 95%CI: 1.001–1.006, P = 0.003), Scr (OR = 1.004, 95%CI: 1.001–1.007, P = 0.017), and INR (OR = 1.457, 95%CI: 1.123–1.891, P = 0.005) were independently associated with in-hospital death of cirrhotic patients with hyponatremia (Table 3). Accordingly, the ANN model for predicting the in-hospital death in cirrhotic patients with hyponatremia was developed (Supplementary Fig. 1). The ANN model had a significantly higher AUC than the Child-Pugh (0.865 vs. 0.757, P = 0.0018), MELD (0.865 vs. 0.765, P = 0.004), and MELD-Na (0.865 vs. 0.769, P = 0.0016) scores (Fig. 1). Calibration plots showed a satisfactory accordance between the predicted probabilities based on the ANN model and actual values (Supplementary Fig. 2A). The Hosmer-Lemeshow test value was 10.369 (P = 0.240).

Table 3 Univariate and multivariate logistic regression analyses of predictors associated with the in-hospital death of patients with liver cirrhosis and hyponatremia.
Fig. 1
Fig. 1
Full size image

ROC curves of ANN model, Child-Pugh score, MELD score, and MELD-Na score for predicting the risk of in-hospital death in patients with cirrhosis and hyponatremia in the training cohort.

Validation of ANN model

The AUC of this ANN model remained significantly higher than Child-Pugh (0.810 vs. 0.502, P < 0.001), MELD (0.810 vs. 0.520, P < 0.001), and MELD-Na (0.810 vs. 0.510, P < 0.001) scores in the validation cohort (Fig. 2). Calibration plots showed the satisfactory accordance between the predicted probabilities based on the ANN model and actual values (Supplementary Fig. 2B). The Hosmer-Lemeshow test value was 5.045 (P = 0.538).

Fig. 2
Fig. 2
Full size image

ROC curves of ANN model, Child-Pugh score, MELD score, and MELD-Na score for predicting the risk of in-hospital death in patients with cirrhosis and hyponatremia in the validation cohort.

Discussion

The current study developed and validated an ANN model for the prediction of in-hospital death in patients with liver cirrhosis and hyponatremia. It includes only four clinical variables, including ascites, TBIL, Scr, and INR, which can be easily obtained in clinical practice.

Hyponatremia is a common electrolyte dysfunction in liver cirrhosis. Its major pathogenesis is portal hypertension, which is induced by increased hepatic resistance to portal blood flow through the liver in cirrhosis21. Portal hypertension can induce the development of hyperdynamic circulation and splanchnic vasodilation22. Additionally, the impairment of the intestinal mucosal barrier caused by portal hypertension will lead to bacterial translocation to the submucosa, and then induce the development of inflammation and release of vasoactive mediators23,24,25, which can further worsen hyperdynamic circulation and splanchnic vasodilation in liver cirrhosis26. Splanchnic vasodilation can activate the renin angiotensin aldosterone system (RAAS) and cause abnormal secretion of antidiuretic hormone (ADH)27. Aldosterone can reserve sodium and water28, and ADH can reserve a large amount of water29, thereby inducing the development of hypervolemic hyponatremia30. Thus, hepatic and renal dysfunction as well as water-sodium retention are important for the development and progression of hyponatremia in liver cirrhosis. Accordingly, in our ANN model, TBIL and INR indicate the severity of liver dysfunction in liver cirrhosis, Scr is a conventional parameter for the severity of renal dysfunction, and ascites reflects the status of water-sodium retention.

Some existing models include Child-Pugh31,32, ALBI33,34, NLR35,36, and MELD37,38,39 scores for predicting the outcomes of cirrhotic patients. However, all of them focus on general patients with liver cirrhosis, but not cirrhotic patients with hyponatremia. In 2021, based on the National Inpatient Sample database, Thuluvath et al. developed a model to predict the risk of in-hospital death in patients with liver cirrhosis and hyponatremia40. The characteristics of the study population are different between the Thuluvath’s and our studies. Our study included all cirrhotic patients with hyponatremia, and the Thuluvath’s study included cirrhotic patients with ascites and hyponatremia but without HCC. Additionally, the Thuluvath’s model included age ≥ 65, variceal bleeding, ACLF, sepsis, and coagulopathy. But it should be noted that the diagnostic criteria of ACLF are greatly different among regions41,42,43,44,45. In contrast, four variables from our ANN model were objective. Finally, the Thuluvath’s model was based on the traditional logistic regression analysis, but our model was based on the ANN, as a mathematical method governed by the biological nervous system, which is similar to the information processing in the central nervous system and can complete statistical analyses of numerous complex relationships46.

Our study has several limitations. First, it was retrospective, so a potential patient selection bias was inevitable. Second, only internal validation was performed in our study, but not external validation. Third, the treatment selection during hospitalization might influence the patients’ outcomes, and we just included the baseline data to predict the risk of in-hospital death in patients with liver cirrhosis and hyponatremia. Fourth, we did not follow these patients or analyze their long-term outcomes in the current study. Fifth, the potential influence of previous decompensation and drugs cannot be analyzed in the current study. Sixth, we did not distinguish patients into acute decompensated cirrhosis, chronic decompensated cirrhosis, and acute-on-chronic liver failure groups.

In conclusion, an ANN model was constructed to predict the in-hospital death of patients with liver cirrhosis and hyponatremia with a good performance in both training and validation cohorts.