Introduction

Spontaneous bacterial peritonitis (SBP) refers to peritoneal bacterial infection with no apparent source of intra-abdominal infection [1, 2]. SBP is a common complication in patients with cirrhosis, with an estimated frequency of 10–30%, and the outcome of patients with SBP remains unfavorable despite the advancement in therapy [3, 4]. Multiple mechanisms have been shown to contribute to the occurrence of SBP in cirrhosis, including impaired humoral and cell-specific immunity caused by hypoalbuminemia [5], increased intestinal permeability caused by portal hypertension, and the impaired neutrophil and reticuloendothelial system [6, 7]. All of these factors lead to an increased susceptibility to infection.

Recently, novel indices have been proven to be potential biomarkers of SBP in cirrhosis. For example, the general laboratory test indices of ascites calprotectin and lactoferrin [8], serum procalcitonin and C-reactive protein (CRP) [9], platelet and neutrophil-to-lymphocyte ratio (NLR) [10, 11] have been documented in the diagnosis of SBP in cirrhosis. In addition, ascites endocane [12], IL-17 [13] and CD206 [14] have also been reported as biomarker candidates for the diagnosis of SBP in cirrhosis. However, these results have yet to be validated due to limitations such as sample size and confounding factors. Therefore, it remains necessary to find reliable biomarkers for the diagnosis and prognosis of cirrhotic patients with SBP.

In this study, we retrospectively analyzed the data from cirrhotic patients aiming to examine the blood biomarkers associated with SBP and constructed a model to diagnose SBP in decompensated cirrhosis. We also included patients with compensated cirrhosis because SBP was the important symbol indicating that patients with compensated cirrhosis would develop into the decompensated period. We compared the differences in indicators between compensated and decompensated cirrhosis in order to find out the characteristics of disease progression to prevent the occurrence of SBP in the early stage. Finally, we attempted to identify the blood biomarkers associated with the survival of decompensated cirrhotic patients. Our results would shed light on the crucial role of blood biomarkers in the diagnostic and prognostic value of liver cirrhosis with SBP.

Materials and methods

Data collection

We retrospectively enrolled cirrhotic patients being hospitalized at the First Affiliated Hospital of Guangxi Medical University between March 2013 and July 2022. The inclusion criteria were as follows: (1) age over 18 years; (2) the diagnosis of liver cirrhosis with or without SBP was made by clinical, laboratory, or imaging tests; (3) availability of complete clinicopathological and follow-up data after discharge. Exclusion criteria were pregnancy, secondary peritonitis, peritoneal dialysis-associated peritonitis, and chronic liver disease without cirrhosis. The Child–Pugh classification was determined as following factors: (1) encephalopathy; (2) ascites; (3) serum bilirubin level; (4) serum albumin level; (5) prothrombin time.

The diagnosis of SBP was made based on the 2017 Chinese Guidelines for the management of ascites and its related complications in cirrhosis [15]. The clinical diagnosis of SBP should be considered if patients with cirrhosis are in the following conditions: (1) One or more of the following symptoms or signs occur: fever, abdominal pain, abdominal tenderness or rebound tenderness, refractory ascites, etc.; (2) One or more of the following results on laboratory tests are positive: ascites bacteria culture, absolute ascites PMN cell counts ≥ 0.25 × 109/L, and serum procalcitonin (PCT) > 0.5 ng/ml, etc. (3) Infection of other sites is excluded.

Clinical data collection and definitions

Clinicopathologic features and laboratory data were collected from the patient's electronic medical records, and laboratory data within two days of hospital admission for diagnosing SBP. Clinicopathologic data of cirrhosis included patients' age, sex, Child–Pugh score, cancers, infection status, and laboratory test indices. We selected only the laboratory test indices that were tested for the first time after the diagnosis of cirrhosis. The index was calculated as a formula: NLR = neutrophil count/ lymphocyte count ratio; PLR = platelet count/ neutrophil count ratio; FAR = ferritin levels/ albumin levels ratio; FNR = ferritin levels/ neutrophil count ratio; CAR = C-reactive protein level/ albumin level ratio.

Follow-up

All the patients were followed for a minimum of one month after recruitment, and thereafter every three to six months at the discretion of the attending physician. The last follow-up was on December 31, 2022.

Statistical analysis

Normal continuous data are presented as mean standard deviation and compared to Student's t-test, while nonnormal data are presented as the median and interquartile range (IQR) and compared to Mann–Whitney's U-test. Categorical data are presented as absolute numbers (percent) and were compared using the chi-square test or Fisher's exact test for small samples. Xgboost algorithms and LASSO algorithms were used to verify key features related to the SBP. Logistic regression and Cox regression analysis were applied to identify key features related to the SBP and the constructed predictive model. The predicted value was calculated using receiver operating characteristic (ROC) and area under the curve (AUC) analyses. A Kaplan–Meier plot and log-rank test were used to analyze survival data using Kaplan–Meier plots, which were visualized by the “survminer” R package [16]. The risk score was calculated by multiplying the value and the coefficients of each index from the Cox regression model according to the previously described [17]. Statistical significance was defined as a P-value less than 0.05. All analyses were performed with the R software (version 4.2.2).

Results

Clinical characteristics of included data

Data were collected from a total of 413 cirrhotic patients with an average age of 54.4 to 12.3 years, including 336 male and 77 female patients. 329 were decompensated, while 84 were compensated. The etiology of cirrhosis included HBV infection (348 patients) and others (65 patients). 52 (12.6%) patients complicated SBP, 188 patients complicated cancer, the majority of which were HCC (175 patients). The laboratory tests revealed that the inflammatory indices, liver function indices, and nutritional indices were significantly different between compensated and decompensated patients (P < 0.05). The median follow-up time was eight months, with a range of one month to ninety-four months. The details of the clinical features were given in Table 1. And we also provided an additional table file showing the details of laboratory tests and clinical characteristics in patients with SBP (see Additional file 1).

Table 1 Clinical characteristics of included data

Comparison of decompensated cirrhotic patient complicated with and without SBP

The decompensated cirrhosis data were divided into two groups based on whether the patients complicating SBP. As shown in Table 2, we found that patients with SBP had a poorer Child–Pugh score (P < 0.05) and the proportion of cancers was higher in patients with SBP than in patients without SBP (P < 0.05). Regarding the laboratory tests, the results showed that most of the inflammatory indices, liver function indices and nutritional indices were significantly different between patients with and without SBP, except lymphocytes, platelets, ALP and PLR (P < 0.05).

Table 2 Comparison of decompensated cirrhotic patients complicated with and without SBP

Effect of cancers on decompensated cirrhotic patients with SBP

To investigate the effect of cancer on cirrhosis with SBP, we performed a subgroup analysis for decompensated cirrhotic patients with SBP who had cancer or not. As shown in Table 3, the indices of laboratory tests of patients with SBP were strongly influenced by the cancer in terms of WBC, Neutrophil, TBil, CRP, FNR, PLR, NLR and CAR. In the patients without SBP, more laboratory test indices were affected by cancer, but the effect differed between those with and without SBP in terms of lymphocytes, platelets, TBil, AST, ALT, ALP, ferritin, FAR and NLR, suggesting that cancer had a differential effect on these indices in decompensated cirrhotic patients with SBP.

Table 3 Effect of cancers on decompensated cirrhosis with and without SBP

Screening risk factors associated with SBP in decompensated cirrhotic patients

To determine the laboratory test indices related to SBP in decompensated cirrhotic patients, two machine learning methods, Xgboost and LASSO algorithms, were adopted to study the risk factors related to SBP in decompensated cirrhotic patients. The Xgboost and LASSO algorithms identified 10 and 14 indices related to SBP risk with an AUC value of 0.704 and 0.849, respectively (Fig. 1A, B). Then we overlapped these indices and identified six common indices including Neutrophils, Alb, ALP, NLR, CAR, FNR. Then we included these common indices in the multivariate logistic regression model and found that only ALB, NLR and FNR were independently associated with the SBP in decompensated cirrhotic patients (Table 4). We used these three indices to create a diagnostic model and found that the diagnostic value was high, with an AUC value of 0.808 (Fig. 1C). In addition, we also compared the discrimination of the model with other indicators via AUC value, including creatinine, INR and total bilirubin, which were individual components of MELD score, and the results showed that our model had the highest AUC value compared to these indices (Fig. 1D).

Fig. 1
figure 1

Identify risk factors associated with SBP in cirrhotic patients. Predictive value of A Xgboost algorithms B LASSO algorithms for SBP using the clinical features C logistic regression model for SBP using the indexes from overlapped of Xgboost algorithms and LASSO algorithms results. D ROC curves for the creatinine, INR and total bilirubin in predicting SBP

Table 4 Logistics regression for the index associated with SBP in cirrhotic patients

The false positive rate and false negative rate of the diagnostic model were 2.53% and 80.77%, the high false negative rate indicated that the model’s role in diagnosing SBP was rather limited. However, this model might be an ideal exclusive diagnostic tool due to its extremely low false positive rate.

Identify risk factors related to the prognosis of decompensated cirrhotic patients

We first estimated the association of the eight indices with the survival of decompensated cirrhotic patients, using the optimal cut-off value obtained by the “survminer” R package, we found that all six indices neutrophils, ALB, ALP, NLR, CAR, and FNR were associated with survival of decompensated patients with cirrhosis and high neutrophil levels with a shorter survival time, while ALB was associated with a longer survival time (P < 0.05; Fig. 2). However, when focusing on the 52 SBP patients, the results did not show that Alb and ALT were associated with survival of SBP patients (P > 0.05; Fig. 3).

Fig. 2
figure 2

Kaplan–Meier plots of the indices with the decompensated cirrhotic patients. A Alb; B NLR; C CAR; D neutrophils; E ALP; F FNR

Fig. 3
figure 3

Kaplan–Meier plots of the indices with the decompensated cirrhotic patients with SBP. A Alb; B NLR; C CAR; D neutrophils; E ALP; F FNR

Next, a Cox regression analysis was applied to screen the risk factors associated with patient prognosis. As shown in Table 5, CAR, neutrophils and ALP were associated with the prognosis of decompensated patients with cirrhosis, while platelets, neutrophils, NLR, CAR and ALP were significantly associated with the prognosis of patients with SBP. These results suggested that CAR, neutrophils and ALP could predict the prognosis of decompensated cirrhotic patients with or without SBP. Finally, we used CAR, neutrophils and ALP to construct a prognostic model for decompensated cirrhotic patients and calculated the risk score from the Cox regression model and visualized it by a nomogram. We found that the risk score calculated from neutrophils, ALP and CAR showed a much better prognostic value in decompensated patients with cirrhosis than other indices, regardless of the decompensated patients with or without SBP (Fig. 4).

Table 5 Cox regression analysis for the risk factors related to the prognosis of patients
Fig. 4
figure 4

Nomogram of the A decompensated cirrhotic patients; B decompensated cirrhotic patients with SBP only

Discussion

In the present study, we retrospectively analyzed data from 413 cirrhosis patients and found that 58 (11.4%) patients with SBP experienced complications, a prevalence consistent with previous reports [3, 4]. We found that SBP occured in a considerable number of patients with decompensated cirrhosis, suggesting that the progression of the disease was significantly associated with SBP. We also found that cirrhotic patients with cancer were more prone to develop SBP compared to non-cancer patients. The results of the laboratory test indices showed that most of the inflammatory indices, liver function indices and nutritional indices were significantly different between patients with and without SBP. Importantly, we discovered that cancer had differential effects on various laboratory test indices in cirrhotic patients without SBP, but had little effect in patients with SBP. Next, we examined the laboratory test indices associated with SBP in decompensated cirrhotic patients using two machine learning methods and validated by a logistic regression model. The results showed that ALB, NLR and FNR were independently associated with the SBP in which FNR had not previously been reported. Finally, we identified neutrophils, ALP, and CAR, all of which were associated with survival in cirrhotic patients with or without SBP, and the prognostic value constructed by these three indices was high compared to other indices. Taken together, these results demonstrated that several indices were associated with the occurrence of SBP in decompensated cirrhotic patients and FNR was a novel biomarker for the diagnosis of cirrhosis with SBP. We also identified three indicators that were strongly linked to the prognosis of decompensated cirrhotic patients.

SBP is a common complication in decompensated cirrhotic patients. Currently, the diagnosis of SBP in cirrhotic patients relies on testing for ascites, and abdominal paracentesis is an invasive procedure that increases the risk of infection [18]. As a result, it is beneficial for cirrhotic patients to develop a non-invasive method for diagnosing SBP. Using laboratory test indices from blood samples to diagnose SBP or estimate survival in cirrhotic patients is a viable approach in clinical practice. Previous studies have identified several common blood indices related to the SBP in cirrhosis, including CRP and NLR [11]. In the present study, we confirmed the diagnostic value of NLR in SBP of cirrhosis, indicating the robustness of this index. More importantly, as the diagnostic value of FNR in SBP in cirrhosis was reported for the first time, these results underscored the role of FNR in decompensated patients with cirrhosis.

Serum ferritin reflects the body's iron stores, which increases in iron overload and decreases in patients with iron deficiency disorders. Elevated liver iron would promote increased ferritin synthesis [19], and ferritin could activate the production of collagen and liver fibrogenesis [20]. Therefore, serum ferritin could be a useful marker of ongoing fibrosis [21]. In this study, we found that serum ferritin levels were significantly different between cirrhotic patients with and without SBP, but as shown in Table 3, the change in ferritin levels was strongly influenced by cancer, suggesting that the change in ferritin in cirrhotic patients with SBP were affected by cancer, so it could not be an independent index to diagnose SBP in cirrhosis. We therefore employed ferritin in conjunction with other blood indicators. One study reported that FAR was able to determine mortality in critically ill COVID-19 patients treated in the ICU [22]. Our study showed that FAR was elevated in decompensated cirrhotic patients and patients with SBP, however, it was not an independent index of SBP and was not associated with survival of cirrhotic patients.

FNR was estimated using the ratio of ferritin and neutrophils. The neutrophil count is a sensitive parameter of inflammation in the body. The combination of neutrophils with other indices has proven critical in diagnosing or predicting multiple diseases such as platelets to neutrophils ratio in a stroke [23], eosinophil-neutrophil ratio in tumors [24], platelet-to-neutrophil ratio in lupus nephritis [25]. This evidence showed that the combination of neutrophils with other indices had a more important value than the individual index. This study found that FNR was independently associated with the risk of SBP and worsened in patients with cirrhosis. We hypothesized that the mechanism underlying the value of FNR in cirrhotic patients with SBP might be that ferritin reflected the status of cirrhosis while neutrophils reflected infection of the peritoneum, and this combination might reflect the overall status of cirrhotic patients with SBP better.

Regarding the prognostic value of laboratory test indices associated with cirrhotic patients, one study reported that serum CRP levels were associated with a higher mortality rate in patients with SBP [26]. Ascitic fluid lactate and NLR [27], and calprotectin [28] were also associated with the mortality of patients with SBP. The present study showed that blood neutrophils, ALP and CAR levels were significantly associated with the prognosis of decompensated cirrhotic patients regardless of the decompensated patients with or without SBP, and the prognostic value of the model constructed by these indices was better than the individual index. These results indicated that the combination of certain laboratory tests indices could achieve a better prognostic value in cirrhotic patients.

There were several limitations in this study. First, although we included a large sample of cirrhotic patients, the number of SBP was relatively small, hence the survival analysis for cirrhotic patients with SBP could not be performed. Second, since this study is retrospective, the chosen bias is inevitable and confounding factors could undermine the robustness of the results. Third, this study is a single center research, so our results should be interpreted with caution when extrapolating to other population regions. Fourth, some patients with SBP didn’t accept diagnostic abdominal paracentesis and their ascitic fluid characteristics were unavailable, we could not further investigate the correlation of the biomarkers in ascitic fluid with SBP. Fifth, though the diagnosis model showed a great discrimination with the AUC of 0.808, its low false positive rate and high false negative rate indicated that it was best employed as an exclusive diagnosis tool. Therefore, a prospective multi-center design cohort is warranted to validate our results.

Conclusions

The present study systematically analyzed the risk factors associated with the occurrence and prognosis of SBP in decompensated cirrhotic patients and identified FNR as a new index for the diagnosis of SBP in decompensated cirrhotic patients. A model constructed from neutrophils, ALP and CAR showed high performance in predicting the prognosis of patients with decompensated cirrhosis.