Introduction

Infective endocarditis (IE), typically caused by bacterial or fungal infections of the inner lining of the heart chambers and heart valves, can lead to serious complications such as heart damage, stroke, and organ failure1. Symptoms may include fever, chills, fatigue, weakness, and changes in heart rhythm. Treatment usually involves a combination of antibiotics and, in some cases, surgery to repair or replace damaged heart valves. The incidence of IE is 3–10 per 100,000 people2,3,4. Despite advancements in diagnostic tools and therapeutic measures, the in-hospital mortality rate due to IE remains at approximately 25%5, leading to a high economic burden with average hospitalization costs ranging from $37,000 to $55,000 per patient6. The prognosis of patients with infective endocarditis is often influenced by multiple factors, including the severity of the infection and the timeliness of early diagnosis and treatment. Various factors, including individual patient characteristics, cardiac and non-cardiac comorbidities, infecting microbial species, and echocardiographic disease status, contribute to the poor prognosis of IE4,7. Early diagnosis is critical to improving patient outcomes and reducing mortality associated with IE8. However, research on risk factors for infective endocarditis is limited, presenting a challenge. In clinical practice, it is crucial to identify reliable risk factors to assess disease progression and prognosis, which can guide treatment decisions.

Bicarbonate measurements are widely recognized as a valuable clinical biomarker for evaluating acid–base balance9,10. Previous research has shown that serum bicarbonate levels are a significant factor correlated with prognosis in sepsis11, stroke12,13, diabetes14,15, hypertension16, heart failure17, and chronic kidney disease (CKD)patients18,19. Nonetheless, the relationship between serum bicarbonate levels and overall clinical results in patients with IE remains unclear. The purpose of this study was to assess the correlation between the serum bicarbonate levels at admission and the 28-day mortality for patients with IE in the ICU. We hypothesized that serum bicarbonate levels are linked to 28-day mortality in patients in serious condition with IE.

Methods

Database

This study utilized the version 2.2 database of the Medical Information Mart for Intensive Care IV (MIMIC-IV) (https://mimic.mit.edu/), which comprises data from 73,181 critically sick individuals’ hospital stays at Boston’s Beth Israel Deaconess Medical Center from 2008 to 201920. Numerous factors are included in the database, including vital signs, diagnosis, treatment plans, test findings, and survival status. Due to its extensive and superior-quality data, the MIMIC database has become increasingly popular among researchers for conducting studies21,22,23. After successfully completing an online course and test, Yingxiu Huang (Certificate ID: 56,513,391) and Ting Ao (Certificate ID: 58,844,105) were granted access to the database. Given the anonymized nature of the database, obtaining informed consent was waived. This cohort analysis strictly followed the protocols outlined in the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) recommendations24.

We performed a retrospective cohort examination, leveraging data from MIMIC-IV v2.2. The study encompassed all individuals with infective endocarditis (IE) who were initially admitted to the intensive care unit (ICU). The key result we focused on was the 28-day mortality rate.

Study population

Patients admitted to the ICU with infective endocarditis (IE) from 2008 to 2019 were included in our study. The diagnosis was ascertained based on the criteria from the International Classification of Diseases, Ninth Revision (ICD-9) and Tenth Revision (ICD-10) (code = 03,642, 07,422, 0932X, 09,884, 11,281, 11,504, 11,514, 11,594, 3911, 421X, 4249X, A3282, A3951, A5203, B3321, B376, I011, I38, I33,I39, M3211). In the case of patients with IE who had multiple ICU admissions, only their initial admission was considered for inclusion in the study. The analysis was confined to individuals whose serum electrolytes were assessed within the first 24 h following their ICU admission, which facilitated the determination of their bicarbonate levels (Fig. 1).

Fig. 1
figure 1

The flow chart of the study.

Exposure

The study’s primary outcome variable was the serum bicarbonate level, evaluated as a continuous variable. It was also divided into three tertile groups based on admission values from the MIMIC-IV database: T1 (≤ 22 mEq/L), T2 (23–24 mEq/L), T3 (≥ 25 mEq/L). Baseline serum bicarbonate concentration was determined by the initial measurement taken within 24 h of admission to the ICU.

Covariates

Data pertaining to patients was extracted from the MIMIC-IV database utilizing Structured Query Language (SQL) and was then stored in a PostgreSQL database for further analysis. This dataset encompassed various demographics including age, sex, and race, as well as comorbid conditions such as renal disease, sepsis, diabetes, congestive heart failure, acute kidney injury within 2 day of ICU admission, and shock. Intervention measures were also recorded, including continuous renal replacement therapy (CRRT), and surgery. Additionally, the dataset included the left ventricular ejection fraction (LVEF), sequential organ failure assessment (SOFA) score, Charlson Comorbidity Index (CCI), result of blood culture, and laboratory measurements from the initial day of ICU stay, such as serum bicarbonate, anion gap, pH, glucose, blood urea nitrogen (BUN), hemoglobin, white blood cell count, and platelet count. Illness severity was evaluated using the CCI. For variables with missing data rates below 50%, we utilized the K-Nearest Neighbors (KNN) imputation method25.

Statistical analysis

Patient characteristics were summarized using descriptive statistics. Continuous variables were expressed as mean ± standard deviation (SD) or median (interquartile range [IQR]), while categorical variables were shown as counts and percentages. To assess the baseline characteristics, we used the Mann–Whitney U test to evaluate the differences in continuous variables, while the chi-square test was applied to analyze categorical variables across the groups.

Multiple Cox regression models were employed to evaluate the correlation between serum bicarbonate levels and the risk of 28-day mortality. An extended Cox proportional hazards model was utilized to incorporate time-varying covariates into the analysis. Model 1 was crude model without adjustment. Model 2 included adjustments for race, sex and age. Model 3 incorporated adjustments for age, sex, race, diabetes, sepsis, LVEF, CCI, and surgical intervention to refine the analysis. Curve fitting methods were utilized to explore the relationship between serum bicarbonate and the probability of 28-day death. Additionally, Kaplan–Meier curves were constructed to depict survival differences among patient groups categorized by bicarbonate tertiles.

All analyses were performed using R version 4.2.2, which can be accessed from The R Foundation at http://www.R-project.org, and the Free Statistics software, version 1.9.2, available at http://www.clinicalscientists.cn/freestatistics. A two-tailed p-value of less than 0.05 was used as the threshold for statistical significance26.

Results

Baseline characteristics of patients

This study included an overall of 450 critically ill patients with IE. Baseline bicarbonate levels were categorized into three groups based on tertiles: T1 (≤ 22 mEq/L), T2 (23–24 mEq/L), and T3 (≥ 25 mEq/L) (see Table 1). The average age of the cohort was 57.4 years, with 64.2% being male. Among the 450 patients, 360 survived (survival group) and 90 did not (non-survival group), resulting in an overall 28-day mortality rate of 20%. Individuals in the non-survival cohort exhibited reduced serum bicarbonate concentrations, with an average of 22.7 ± 5.4 mEq/L, in contrast to those in the survival cohort, who demonstrated higher levels at 24.4 ± 3.8 mEq/L. Additionally, the non-survival group exhibited higher prevalence of comorbid conditions such as chronic renal disease, acute kidney injury and sepsis.

Table 1 Baseline characteristics of subjects.

Association of serum bicarbonate with mortality

Within the multivariable Cox hazard regression analysis, (Table 2), higher bicarbonate levels at admission were significantly associated with reduced 28-day mortality in the model 1 without adjustment (HR, 0.90; 95% confidence interval [CI], 0.85–0.95; p < 0.001). 28-day mortality decreased by 10 per cent per mEq/L increase in bicarbonate in model 1 (HR, 0.90; 95% CI 0.85–0.95; p < 0.001). This correlation remained significant even after accounting for variables such as age, gender, race, comorbid conditions (diabetes, and sepsis), the CCI, LVEF, and treatment variables (surgery) (model 3 adjusted HR, 0.94; 95% CI 0.89–0.99; p = 0.028). When the analysis categorized bicarbonate levels, the adjusted hazard ratios for bicarbonate levels in T2 (23–24 mEq/L) and T3 (≥ 25 mEq/L) compared to the lowest group (T1, bicarbonate ≤ 22 mEq/L) were 0.54(95% CI 0.31–0.91, p = 0.027) and 0.55 (95% CI 0.33–0.93, p = 0.02) respectively, in the final model. Significantly, the general trend demonstrated a statistical significance (p < 0.05), as ascertained by the trend test (Table 2).

Table 2 Relationship between bicarbonate and 28-day morality in patients with IE.

The analysis of curve fitting uncovered a “L-shaped” of non-linear correlation between serum bicarbonate and the rate of mortality within a 28-day period (p for non-linearity = 0.004, Fig. 2). Through the integration of graphical analysis and clinical significance, we identified the optimal inflection point for bicarbonate levels to be 27 mEq/L. In patients with serum bicarbonate levels below this threshold, each 1 mEq/L increase in bicarbonate is associated with a 14% reduction in the risk of mortality (HR, 95% CI: 0.86 [0.79–0.94]; p < 0.001). However, this relationship does not hold true for bicarbonate levels at or above 27 mEq/L (HR, 95% CI 1.13 [0.93–1.37]; p = 0.223), as indicated in Table 3.

Fig. 2
figure 2

The non-linear relationship between serum bicarbonate levels and the risk of 28-day mortality was analyzed, with adjustment for age, sex, race, diabetes, sepsis, CCI, surgery, LVEF, and SOFA score. Only 99% of the data is displayed.

Table 3 Threshold effect analysis of the relationship of bicarbonate with 28-day mortality.

Kaplan–Meier survival curve analysis

The Kaplan–Meier curves for the three groups are illustrated in Fig. 3. These curves reveal that the survival probabilities within 28 days were notably reduced in the lowest tertile (T1) compared to the highest tertile (T3) (log-rank test, p < 0.0001) (Fig. 3).

Fig. 3
figure 3

Kaplan–Meier survival curves for critically ill patients with IE based on serum bicarbonate.

Subgroup analysis

Subgroup analysis indicated consistent results various subgroups based on sex, age, race, diabetes, congestive heart failure, CCI, sepsis, and shock (Fig. 4). The interaction analysis showed an interaction between the congestive heart failure and age (< 65 years and ≥ 65 years) (Fig. 4).

Fig. 4
figure 4

Subgroup analyses for the association of serum bicarbonate with 28-day mortality in the patients with IE. Each stratification factor was adjusted for age, sex, race, diabetes, sepsis, CCI, surgery, and LVEF.

Discussion

This research highlights the correlation between blood bicarbonate concentrations and the risk of death within a 28-day period in ICU patients suffering from IE. Our analysis revealed that, even after adjusting for other variables, bicarbonate levels were inversely related to 28-day mortality. Based on our understanding, this research marks a pioneering effort in exploring the relationship between serum bicarbonate levels and mortality in IE.

Bicarbonate plays a crucial role in maintaining the body’s acid–base balance, and disturbances in this balance are closely associated with outcomes in critically ill patients4,12,27. Prior research indicates that diminished serum bicarbonate concentrations correlate with heightened mortality rates among patients with stroke 12,13, acute aortic dissection27, diabetes15,28, chronic kidney disease19. Patients in the lowest tertile of serum bicarbonate were facing an elevated mortality risk. Our findings are consistent with these studies, highlighting an independent association between serum bicarbonate levels and mortality.

We hypothesize that the elevated mortality observed in critically ill patients with IE with low bicarbonate levels may be attributed to several factors. Low bicarbonate levels often signify metabolic acidosis or an increased risk of it29. Metabolic acidosis can exacerbate endothelial cell dysfunction and has a spectrum of adverse impacts on bodily functions. It may impair myocardial contractility, increase the risk of cardiac arrhythmias, decrease vascular tone, diminish the body’s sensitivity to stress hormones and trigger constriction of the pulmonary blood vessels30. Additionally, metabolic acidosis may impair the immune system and impede the activity of white blood cells, thereby increasing the susceptibility to infections among patients31. These findings highlight the significance of closely monitoring bicarbonate levels in patients with IE and indicate that healthcare providers should contemplate specialized interventions for individuals exhibiting decreased bicarbonate levels.

This research possesses numerous advantages. Firstly, it boasts a considerable sample size, leveraging data from the MIMIC-IV database, a comprehensive and high-quality real-world dataset. Secondly, the robustness of the findings is supported by subgroup analyses, which reinforce the reliability of the results. However, this research encounters certain constraints. Firstly, being a retrospective analysis, it is potentially prone to selection bias. Secondly, data on bicarbonate were only available for patients admitted to the ICU, limiting our ability to evaluate how fluctuations in bicarbonate after ICU stay might impact death rates, potentially affecting the accuracy of our results. Thirdly, while our study focuses on the association between bicarbonate levels and 28-day mortality, we acknowledge that variability in treatment approaches can affect patient outcomes. In future studies, we will explore this aspect in greater depth. Lastly, being an observational study, we were unable to validate the proposed mechanisms linking bicarbonate levels to the degree of seriousness and the likely outcome of IE.

Conclusion

Upon admission, elevated serum bicarbonate levels were significantly and independently linked to a reduction in the risk of mortality within a 28-day for critically ill patients afflicted with IE. These findings indicate that measure of serum bicarbonate may support the process of risk assessment and providing direction for the clinical care of patients with IE.