Introduction

With a high incidence rate, mortality, and morbidity, sepsis still poses a major challenge to intensive care units (ICUs)1,2. Phosphorus is a vital element for living organisms. It is mainly found in the form of phosphate in humans. Phosphate balance is crucial for maintaining bone health, energy metabolism, membrane stability, and cell signaling3,4,5. Bones and teeth store approximately 85% of calcium-binding phosphate, while tissue cells store approximately 14%. The remaining 1% is present in the extracellular fluid and serum. Only 30% of organic phosphates can be regulated and measured in clinical practice3,4. Phosphate is also crucial in extracellular fluid. Normal serum phosphate levels range from 2.5 mg/dL to 4.5 mg/dL6. The regulation of serum phosphate involves the respiratory, cardiovascular, urinary, neuromuscular, and immune systems. Various factors, such as extracellular phosphate transfer, dietary phosphate intake, tubular phosphate reabsorption, glomerular function, respiratory alkalosis, and serum insulin, influence serum phosphate levels7. Therefore, maintaining an appropriate phosphate concentration is crucial.

However, the role of phosphate in critically ill patients is often not given enough attention in clinical practice, which can result in phosphate disorders. Studies indicated that about approximately 20% of critically ill patients suffer from hypophosphatemia, while 45% suffer from hyperphosphatemia. These imbalances can significantly affect the outcome of critically ill patients, especially those who require mechanical ventilation (MV), leading to prolonged hospitalization and mechanical ventilation time8.

The impact of imbalanced serum phosphate on the prognosis of septic patients has not been conclusively determined. First, although previous studies have shown that serum phosphate can predict sepsis prognosis and that elevated serum phosphate levels (within or outside the normal range) are associated with increased mortality9,10, it is still controversial about whether hypophosphatemia is associated with increases the risk of adverse outcomes in septic patients11,12. Second, previous studies9,10,11,12 mainly explored the association between the initial phosphate level and the outcomes of septic patients. Although Luo et al.13 explored the association between septic patient outcomes and serum phosphate change, they overlooked the importance of the initial serum phosphate level. Xin Xu et al.6 comprehensively evaluated the relationship between the serum phosphate levels in the first 2 days of ICU admission and the short-term mortality of septic patients, yet they neglected the significance of the trend in the variation of serum phosphate levels. Third, some of them have insufficient statistical power because of small sample sizes11. Hence we hypothesized that since both the level and changes of serum phosphate affect the prognosis of septic patients, the combined effect of the level and changes of serum phosphate has a more complicated impact on this population, and we aimed to verify this hypothesis by conducting a large cohort study.

Methods

This study was reported in accordance with the Strengthening Epidemiological Observation Research Report (STROBE) statement14.

Data source

All the data were extracted from The Medical Information Mart for Intensive Care (MIMIC-III) using structured query languages. The MIMIC-III database includes comprehensive data on more than 60,000 ICU patients admitted to the Beth Israel Deacon Medical Center from 2001 to 201215. The MIMIC III database was approved by the Beth Israel Deaconess Medical Center (Boston, MA, USA) and the Institutional Review Board (IRB) of the Massachusetts Institute of Technology (Cambridge, MA, US), and consent was obtained for the original data collection. Therefore, our institutional IRB approval, as well as the ethical approval statement and informed consent form for this manuscript, were waived.

Inclusion and exclusion criteria of the study population

Patients over 18 years old who were diagnosed with sepsis were eligible for inclusion. Sepsis was diagnosed according to the Sepsis-3 criteria16. In brief, patients with documented or suspected infections and an acute change in the total sequential organ failure assessment (SOFA) score of ≥ 2 points were considered to have sepsis. Infection status was determined based on the International Classification of Diseases (ICD-9) code in the MIMIC-III. We only analyzed the data of each patient’s first admission to the ICU. Patients who stayed in the ICU for less than 72 h were excluded.

The outcome and exposure

In-hospital mortality was the main outcome of this study. In this study, the delta serum phosphate concentration during the first three days was collected, defined as the difference between the maximum and minimum serum phosphate concentrations. If the time of the maximum value of serum phosphate was earlier than the minimum value, the delta serum phosphate was recorded as a negative value (decreasing in serum phosphate) or a positive value (increasing in serum phosphate) otherwise.

Covariates

Baseline demographic information (age, body mass index [BMI], sex, body temperature, ethnicity, admission type, service unit), laboratory tests (pH, oxygen saturation [SO2], basic excess [BE], bicarbonate, calcium, potassium, sodium, chloride, albumin, bilirubin, creatinine, blood urinary nitrogen [BUN], blood glucose, lactate, platelet, white blood cell [WBC], hemoglobin), severity scores (Simplified Acute Physiology Score II [SAPS II], systemic inflammatory response syndrome [SIRS], SOFA), microbial cultivation, comorbidities (congestive heart failure [CHF], cardiac arrhythmia [CA], hypertension, paralysis, chronic obstructive pulmonary disease [COPD]; diabetes, malignancy, anemia, hypothyroidism, chronic kidney disease [CKD], chronic liver disease [CLD], peptic ulcer, acquired immune deficiency syndrome [AIDS], weight loss, drug abuse, alcohol abuse, psychoses) and interventions during the first 24 h (renal replacement treatment [RRT], MV, vasopressor). Given that patients accustomed to consuming protein-rich foods usually have higher serum phosphate levels17, dietary habits may serve as a potential confounder, but there is no dietary habit data in MIMIC-III. Therefore, we included BMI and comorbidities such as alcohol abuse, weight loss, drug abuse, as those variables may indirectly mirror dietary habits. The clinical manifestations of some inherited diseases include hypophosphatemia or Hyperphosphatemia, but there is no genetic disease data in MIMIC-III. Therefore, we incorporated a set of comorbidities that could better characterize the physiological and pathological conditions of the patients to mitigate the confounding bias.

Statistical analysis

The datasets with the highest and lowest phosphate levels were analyzed and classified into several clusters using K-means clustering. K-means clustering is a technique that aims to divide N observations into K clusters. Each observation is assigned to the cluster with the closest mean value, which serves as the cluster prototype. The k-means clustering was selected because of its remarkable computational efficiency and its capacity to visualize the data points understandably, which can greatly facilitate the analysis and interpretation of the data18,19.

Descriptive statistics (medians and interquartile ranges, IQRs, for continuous data, and percentages for categorical data) were used to report basic characteristics. Analysis of variance (ANOVA) or Kruskal-Wallis tests for continuous variables, as appropriate, and chi‒squared tests for categorical variables were used to analyze differences in baseline characteristics between clusters. Univariable and multivariable logistic regression analyses were performed to elucidate the association between the clusters and in-hospital mortality and the association between the change in serum phosphate concentration and in-hospital mortality.

Sensitivity analysis

We conducted sensitivity analyses to evaluate the robustness of our findings.

As previous studies provide controversial evidence regarding the relationship between serum phosphate level and outcomes of septic patients, we hypothesized that this relationship is not simply a linear one. A restricted cubic spline regression model (RCSRM) with 3 knots at the 10th, 50th, and 90th was carried out to examine the shape of the correlation between phosphate change and mortality. RCSRM has found extensive application in clinical investigations aimed at exploring a continuous predictor’s impact on an outcome. Its remarkable flexibility in characterizing the relationship between the predictor and the outcome is a significant advantage. Regardless of the nature of the outcome variable, in multiple linear regression, logistic regression, or survival analysis, RCSRM can be effectively employed. Moreover, the conventional techniques for making inferences regarding parameter estimates are equally applicable to RCSRM. Incorporating RCSRM offers a formal means by which to assess the presumption of a linear association between a predictor and the outcome through standard procedures. Neglect of nonlinearity, if it exists, might lead to an inaccurate estimation of the relationship, either in the form of overestimation or underestimation, or even a misidentified relationship. RCSRM proves highly effective in accurately modelling nonlinearity, thereby minimizing model misspecification and enhancing our understanding of the intricate relationship between the predictor and the outcome20,21. Subgroup analyses and interaction analyses were performed to discover potential impact factors. The relative excess risk due to interaction (RERI), the attributable proportion due to interaction (AP), and the synergy index (SI) were utilized to evaluate the additive interactions.

The effects of interaction analysis between phosphate clusters and covariates are reported as odds ratios (ORs) and 95% confidence intervals (CIs). Statistical analyses were performed using R software (version 4.2.3, http://www.R-project.org/). The standardized mean differences (SMDs) were calculated, and P < 0.05 was considered to indicate statistical significance.

Results

Selection, clusters, and baseline characteristics of the study participants

Among 61,532 admissions, we identified 22,232 patients with sepsis according to the Sepsis-3 criteria. After including the first ICU admissions of each patient and excluding patients who were younger than 18 years old, stayed in the ICU for less than 72 h and lacked serum phosphate measurements during the first 3 days, a cohort of 8586 patients was ultimately included in the present study (Fig. 1). The average age of the cohort was 66.81 (IQR, 54.29–78.59) years, and 55.5% were males. The median values of serum phosphate 1 and serum phosphate 2 were 3.7 mg/dL and 3.1 mg/dL, respectively (serum phosphate 1 and serum phosphate 2 were defined according to the time sequence in which the phosphate values were recorded), and the overall phosphate change was −0.8 (IQR −1.9–1.2).

Fig. 1
figure 1

Flowchart of the study population.

In the K-means clustering process, as the number of categorized clusters increased, the maximum number of clusters recruited was 5, each containing at least two data points. When the number of clusters was 5, the effect of k-means clustering was the best.

The changes in the serum phosphate concentration of each cluster are summarized as follows: in cluster 1, the phosphate concentration ranged from 3.6 mg/dL to 2.1 mg/dL; in cluster 2, the phosphate concentration ranged from 5.2 mg/dL to 3 mg/dL; in cluster 3, the phosphate concentration ranged from 2.4 mg/dL to 3.9 mg/dL; in cluster 4, the phosphate concentration ranged from 8.2 mg/dL to 4.3 mg/dL; and in cluster 5, the phosphate concentration ranged from 4.2 mg/dL to 6.7 mg/dL. A decreasing trend was shown in cluster 1, cluster 2, and cluster 4. An increasing trend was shown in cluster 3 and cluster 5. (Fig. 2).

Fig. 2
figure 2

The trend of serum phosphate concentration in each cluster.

Compared with those in cluster 1, participants in the other clusters were younger, had higher SAPS II and SOFA scores, were more likely to receive RRT and vasopressor treatment during the first 24 h, and were more likely to have a positive culture (Table 1).

Table 1 Characteristics of included patients according to the clusters of serum phosphate levels.

Odds ratios for mortality

A total of 1810 (21.1%) participants died during their hospital stay (Table 2). Compared to cluster 1, the odds ratios for mortality were 1.542 (95% CI 1.331–1.786) for cluster 2, 1.334 (95% CI 1.159–1.536) for cluster 3, 2.242 (95% CI 1.788–2.801) for cluster 4, and 3.335 (95% CI 2.8-3.972) for cluster 5 (all p < 0.001).

After adjustment for baseline variables (model 2), cluster 2 (OR 1.303, 95% CI 1.101–1.542, p = 0.002), cluster 3 (OR 1.348, 95% CI 1.158–1.57, p < 0.001), cluster 4 (OR 1.652, 95% CI 1.225–2.222, p = 0.001) and cluster 5 (OR 2.745, 95% CI 2.212–3.407, p < 0.001) remained associated with significantly increased risks of death.

Table 2 Logistic regression analysis for the association between different clusters and in-hospital mortality.

According to the RCSRMs, the correlation between the change in serum phosphate concentration and the risk of death was linear (Fig. 3). In Cluster 3 and Cluster 5 where the serum phosphate showed an increasing trend, the odds ratios rose as the serum phosphate change increased. Conversely, in Cluster 2 and Cluster 4 with decreasing serum phosphate, the odds ratios rose as the serum phosphate change decreased (Figs. 2 and 3).

Fig. 3
figure 3

Cubic model of the correlation between the change in serum phosphate concentration and in-hospital mortality after adjusting for baseline variables.

The risk of death increased with each increase in the phosphate concentration change above 0.961 (OR 1.469, 95% CI 1.3-1.659, p < 0.001) and −3.692 (OR 2.537, 95% CI 1.461–4.475, p = 0.001) in the whole cohort and cluster 4, respectively (Table 3).

Table 3 Logistic regression analysis for the association between the change in serum phosphate levels and in-hospital mortality according to cut-off values from the restricted cubic spline regression models.

Subgroup analyses

We performed subgroup analyses to stratify the relevance between changes in serum phosphate concentration and in-hospital mortality, as shown in (Table 4). The ORs of the female subgroup were lower than those of the male subgroup across all clusters, and the ORs of the MV subgroup were lower than those of the non-MV subgroup across all clusters.

Table 4 Subgroup logistic regressions of different clusters and in-hospital mortality.

Multiplicative and additive interactions were detected between phosphate clusters and mechanical ventilation (Table 5). The SI of BMI in the additive interaction analysis was null because of meaningless statistical value.

Table 5 Interaction analysis of subgroup variables and serum phosphate clusters.

Discussion

We found in the present study that both higher and incremental serum phosphate levels were associated with increased in-hospital mortality in septic patients.

Previous studies focusing on baseline serum phosphate have proven the importance of maintaining a balance of serum phosphate since both hypophosphatemia and hyperphosphatemia are associated with poor prognosis6,10. Hayward et al. reported increased mortality and longer hospital stays in patients with hyperphosphatemia than in those with normal or low phosphate levels. In contrast, no similar results were observed in patients with hypophosphatemia22. Padelli et al. found a significant association between hypophosphatemia and a greater 90-day mortality rate in critically ill patients with bloodstream infection23.

However, as most septic patients develop early internal environmental disturbances, resulting in fluctuations in serum ion concentrations, a single measurement may not fully reflect a patient’s condition. For example, we observed an interesting phenomenon in which cluster 4 had higher serum phosphate 1 and mean phosphate levels than did cluster 5; however, cluster 4 had a lower risk of death, which may be explained by the decreasing trend in cluster 4 and the increasing trend in cluster 5. A similar phenomenon can be found between cluster 2 and cluster 3. Therefore, an increasing number of researchers have become aware of the significance of change trends in serum phosphate. It was suggested that even minor change trends within the normal range may increase the risk of mortality in sepsis patients10. Xu X et al. reported a greater mortality rate in patients with fluctuating serum phosphate levels than in those with stable levels6. Similarly, Kim et al. demonstrated the relationship between greater change trends in serum phosphate levels and increased in-hospital mortality24. In addition, Nan et al. reported a nonlinear relationship between serum phosphate changes and mortality among septic patients, similar to our results25. However, they defined phosphate change in their study as the difference between the first and last serum phosphate measurements during ICU stays, which may not reflect the true phosphate change trends and the true relationship between serum phosphate change and mortality in septic patients because some patients may start and end up with similar serum phosphate levels while fluctuating violently during their ICU stays. To overcome this shortcoming, we innovatively used the difference between the highest and lowest phosphate levels in the first three days after ICU admission to reflect change trends in the serum phosphate concentration. A recent study also used this strategy; they divided their study population into four groups according to the quartile of the serum phosphate change, and they observed that a change in the serum phosphate concentration ≥ 3.2 mg/dL was associated with increased 28-day mortality and in-hospital mortality in septic patients13. However, simply using quantity differences may not accurately classify patients. For example, patients in cluster 3 and cluster 5 all showed an increasing trend in serum phosphate and had similar distributions among the quartiles of the serum phosphate change, so some patients in these two clusters may be mixed into the same group if we simply used the quartiles of the serum phosphate change to group the included patients. Therefore, we innovatively used K-means clustering to capture the true characteristics of our study population and make a more accurate classification.

The logistic regressions in our study demonstrated a significant relationship between in-hospital mortality and the clusters, and we observed higher mortality in cluster 2, cluster 3, cluster 4, and cluster 5, patients of which had higher and more unstable serum phosphate levels than those of cluster 1, suggesting that maintaining a lower and stable serum phosphate level is crucial for surviving sepsis. For instance, testing serum phosphate dynamically and treating patients with abnormal results promptly may improve the outcome of patients with sepsis.

In addition, according to the lower odds ratios and mortalities in cluster 2 and cluster 4 than in cluster 3 and cluster 5, respectively, we speculated that for those with high serum phosphate levels in the early stage of the ICU stay, a decreasing trend in the serum phosphate level may be associated with a better prognosis than an increasing trend. As shown in the RCSRMs, the relationship between in-hospital mortality and the change in serum phosphate, combined with the change trends of each cluster, indicated that the mortality increased with the increasing serum phosphate change in cluster 3 and cluster 5. Conversely, the mortality increased with the decreasing serum phosphate change in cluster 2 and cluster 4. These results may provide supportive evidence for treatments for lowering serum phosphate in patients with hyperphosphatemia. For those with hypophosphatemia, although phosphorus supplementation is recommended26, correcting hypophosphatemia at a slow pace and testing serum phosphate dynamically to avoid overcorrection may be safer.

The role of change trends in serum phosphate in the progression of sepsis is complicated and still unclear. On the one hand, cellular damage and ischemic injury caused by sepsis increase phosphate release, leading to an elevated serum phosphate level27. On the other hand, elevated phosphate has been demonstrated to be associated with reduced muscle strength28, vascular calcification29, cardiovascular disease30, and the toxic effects of phosphate31. Higher serum phosphate may increase the risk of microcirculatory dysfunction and cardiovascular disease via oxidative stress, endothelial dysfunction, inflammatory responses, and vascular calcification30. In the present study, vasopressor treatment for patients in cluster 2, cluster 3, cluster 4, and cluster 5 lasted longer, in which vascular morbidities of elevated serum phosphate may play a role. Furthermore, elevated phosphate impairs mitochondrial function, leading to increased production of reactive oxygen species, reduced endothelial nitric oxide synthase phosphorylation, and decreased nitric oxide production. Therefore, there may be reciprocal causation between change trends in serum phosphate and sepsis progression. Further research on the underlying mechanism is needed to validate this hypothesis.

According to the subgroup analyses, fluctuating serum phosphate may affect MV and non-MV patients differently. A study including only patients receiving mechanical ventilation showed that elevated maximum–minimum phosphate values and phosphate arithmetic averages were associated with increased mortality24. However, there is limited evidence about the different effects of serum phosphate on patients receiving different respiratory therapies, which deserves proper attention in further research. Mandy et al. reported that females may incur more risk from oral phosphate32. Lan et al. reported that higher serum phosphate was associated with an increased risk of developing diabetes mellitus in women33. Therefore, we speculated that fluctuating serum phosphate levels may exert different effects on male and female patients. Our results showed that the ORs of the female subgroup were lower than those of the male subgroup across all clusters, although no interaction was found between phosphate clusters and sex, and the sample size may account for this. Hence, a prospective cohort study with a larger sample size is needed to explore the interaction between fluctuating serum phosphate levels and sex.

The strength of our study lies in the statistical efficiency of large data from the MIMIC-III database and comprehensive analyses based on the accurate classification of patients with different characteristics of serum phosphate. The main novelty of this research lies in focusing on the dynamic processes of serum phosphate levels using the approach of K-means clustring and providing additional evidence for the association between serum phosphate levels and in-hospital mortality. Although we have made some improvements on the basis of previous studies, this study still has several limitations. First, some confounding factors were not included in the present study because of the limitations of the database. Although we have included some relevant covariates to minimize the confounding bias, the extrapolation of our findings might be restricted and the estimation of the correlation between the dynamic change trend of serum phosphate level and the outcome of septic patients might be inaccurate. Therefore, a set of customized confounding factors is needed in a prospective cohort study. Second, as an observational single-center retrospective cohort study, the generalizability may be limited. Therefore, we propose to conduct a multi-center prospective cohort study to verify our findings. In addition, a randomized controlled trial has also been put on the agenda to verify whether lowering serum phosphate concentration in septic patients with elevated initial levels can improve the clinical outcome. Third, we performed several subgroup analyses and detected multiplicative and additive interactions between phosphate clusters and mechanical ventilation, but we failed to carry out further mechanistic research due to the lack of relevant data; therefore, experimental studies are needed to explore the molecular and cytological mechanisms.

Conclusion

First, a high and unstable serum phosphate level is associated with increased mortality in septic patients. Second, for those with elevated phosphate levels, treatments to lower serum phosphate may reduce mortality in septic patients. Third, an increasing trend in phosphate levels may be more important than a high level in predicting poor prognosis in septic patients.