- The Central Hospital of Wuhan, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, Hubei, China
Background: Patients undergoing maintenance hemodialysis face a high mortality rate, yet effective tools for predicting mortality risk in this population are lacking. This study aims to develop an interpretable machine learning model to predict mortality risk among maintenance hemodialysis patients.
Methods: A retrospective analysis was conducted on clinical data from 512 maintenance hemodialysis patients treated at The Central Hospital of Wuhan between January 2021 and October 2024. The dataset included 50 feature variables. The data were split into a training set (70%) and a test set (30%). Five machine learning models—Random Forest, Extreme Gradient Boosting, Support Vector Machine, Logistic Regression, and K-Nearest Neighbor—were trained and evaluated for predicting patient mortality risk, using metrics such as the F1 score, precision, accuracy, AUC-ROC, and recall. SHAP values were used to assess the contribution of each feature in the best-performing model.
Results: The K-Nearest Neighbor model achieved the highest AUC-ROC of 0.9792 (95% CI: 0.9600–0.9929). SHAP analysis identified key factors influencing predictions, including dialysis duration, creatinine levels, white blood cell ratio, blood phosphorus concentration, and unconjugated iron.
Conclusion: The K-Nearest Neighbor model demonstrated high efficacy in predicting mortality risk among hemodialysis patients. SHAP analysis highlighted critical risk factors. While these findings show promise for future clinical research, they should be interpreted with caution due to the study’s retrospective design and the need for external validation.
1 Introduction
Chronic kidney disease (CKD) is a non-communicable disease predominantly attributed to diabetes and hypertension (1). As of 2017, the global prevalence of CKD was reported to be 9.1%, with a corresponding mortality rate of 4.6% (2). Within the Chinese population, the prevalence of CKD is estimated at 8.2% (3), with a mortality rate of 6.95%, which exceeds that of the global population (4). Notably, patients undergoing end-stage renal replacement therapy exhibit a significantly elevated risk of mortality compared to the general population, with approximately 20% of dialysis patients succumbing each year (5). Various high-risk factors contribute to mortality among individuals on maintenance hemodialysis (MHD). The early identification of these risk factors, coupled with appropriate care and treatment interventions, is essential for enhancing the quality of life and extending the survival of affected patients (6). In the realm of healthcare, artificial intelligence (AI) and machine learning, distinguished by their capabilities in data management and processing, present novel opportunities for advancing healthcare delivery and care models (7). Machine learning algorithms possess the capability to process extensive volumes of clinical data, identify potential risk factors, and construct predictive models that assist physicians in more accurately assessing patients’ conditions (8). Within the domain of vascular diseases, machine learning models have been effectively employed for risk assessment in areas such as coronary artery disease, peripheral vascular disease, and renal disease, yielding favorable outcomes (9–11). Nevertheless, traditional machine learning models frequently suffer from a lack of interpretability, a challenge that constrains their application in clinical practice (12).
To address this limitation, the Local Interpretable Model-agnostic Explanations (LIME) and SHAP (SHapley Additive exPlanations) values have been introduced to elucidate the predictions of machine learning models. LIME primarily provides local explanations, focusing on the interpretability of individual samples and relying on perturbation sampling. SHAP values, derived from the Shapley values in game theory, are able to quantify the contribution of each feature to the model’s predictions, thereby providing interpretable prediction results. SHAP offers both global and local explanations, with a more rigorous theoretical foundation, but at a relatively higher computational complexity (13). The objective of this study was to develop and validate a predictive model based on machine learning, utilizing SHAP values to interpret outcomes and predict mortality risk in hemodialysis patients. The model’s capability to quantify the contribution of each feature to its predictions enhances the transparency of machine learning models by elucidating their “black box” nature. The SHAP methodology not only identifies the most influential features in forecasting mortality risk among hemodialysis patients but also elucidates the interactions and combined effects of these features on model predictions.
In this investigation, five machine learning models were constructed to predict mortality risk in hemodialysis patients, from which the optimal model was selected and subsequently interpreted using the SHAP approach. The K-nearest neighbor model (KNN) was determined to be the most suitable model. This algorithm represents a straightforward and intuitive supervised learning approach that is extensively employed in both classification and regression tasks. Its fundamental principle posits that within the feature space, the class or value of a given sample can be inferred from the classes or values of its K nearest neighboring samples. KNN algorithms have found considerable application within the medical domain (14).
The study aims to furnish clinicians with an advanced decision-support tool to facilitate the early identification of patients at elevated risk of mortality, thereby enabling timely interventions to improve patient prognosis and ultimately extend patient lifespan.
2 Materials and methods
2.1 Study design
This research employed a retrospective cohort study design, wherein demographic and biochemical data from hemodialysis patients at the Hemodialysis Center of The Central Hospital of Wuhan were collected retrospectively, spanning the period from January 1, 2021 to October 30, 2024. Data collection was conducted using a purposive sampling method. Patients were classified into two groups—death and survival—based on their mortality status. The study received ethical approval from the Ethics Committee of The Central Hospital of Wuhan, under approval number WHZXKYL2024-115.
Follow-Up: Patients receiving hemodialysis at our hospital from January 1, 2021, to October 31, 2024, were included. Follow-up began on each patient’s first recorded hemodialysis date and ended on October 31, 2024, or at the time of death, whichever occurred first. In this study, the follow-up duration for patients ranged from 3 to 221 months.
Patient censoring: Patients were censored from the study upon transferring to another healthcare facility for dialysis or becoming lost to follow-up, thereby precluding the determination of their survival outcomes.
2.2 Inclusion and exclusion criteria
(1) Inclusion Criteria: The study included participants who met the following criteria: (1) aged 18 years or older; (2) undergoing a minimum of two dialysis sessions per week; and 3) receiving dialysis sessions with a duration of at least 3 h each.
(2) Exclusion Criteria: Participants were excluded from the study if they met any of the following conditions: (1) receiving dialysis through a temporary catheter; (2) having more than 30% of clinical information missing; or (3) having left the institution without access to patient survival outcomes.
2.3 Feature selection
Patient demographics were counted based on medical records in our electronic data case system, involving a total of 69 characteristic variables. A series of clinical indicators and laboratory findings were collected to comprehensively assess the health status of hemodialysis patients. These included basic information (Age, gender, survival outcome, frequency of dialysis, etiologic diagnosis, education, type of vascular access, hypertension, diabetes mellitus, secondary hyperparathyroidism, hyperphosphatemia, heart failure, gout, cerebral infarction, myocardial infarction, and age at dialysis), Physiologic indices include body mass index and various blood cell counts, while biochemical markers cover a range of lipids, vitamins, iron levels, hormones, proteins, enzymes, and kidney function indicators.
2.4 Data processing
In this study, we conducted missing value processing and multiple imputation on data collected from hemodialysis patients. It is important to note that the missing data in our dataset are likely to be Missing Not At Random (MNAR), as the absence of certain laboratory tests or clinical assessments may be related to the patients’ health status or other factors that influenced their decision to undergo these tests. For instance, patients with less severe conditions might have opted out of certain tests, or economic constraints might have prevented some patients from completing all recommended assessments. To address the missing data, we initially excluded columns exhibiting more than 50% missing data to mitigate the potential impact of high missing rates on the analysis. Ultimately, 50 feature variables were retained.
Subsequently, we performed multiple imputation using the miceforest library in Python, generating 10 complete datasets through five iterations. This approach was chosen to comprehensively account for the uncertainty associated with missing values, especially given the potential non-random nature of the missingness. A random seed of 42 was established to ensure the reproducibility of the results. The robustness of the imputed datasets was assessed through model training and evaluation metrics, including the Normalized Root Mean Square Error (NRMSE) for regression tasks and the Receiver Operating Characteristic Area Under the Curve (AUC-ROC) for classification tasks. The datasets demonstrating optimal performance were selected for further analysis. Subsequently, the robustness of the data was assessed; for each continuous variable, the first quartile (Q1) and the third quartile (Q3) were calculated, along with the interquartile range (IQR = Q3 − Q1). Outlier boundaries were established, with values falling below Q1 − 1.5 × IQR or exceeding Q3 + 1.5 × IQR classified as outliers. These outliers were addressed by replacing values below the lower boundary with Q1 and values above the upper boundary with Q3. Finally, multiple imputation was performed utilizing the miceforest library in Python, generating 10 complete datasets through five iterations to comprehensively account for the uncertainty associated with missing values.
In the imputation process, a random seed of 42 was established to guarantee the reproducibility of the results. Subsequently, valid datasets were assessed through model training and evaluation metrics, specifically the Normalized Root Mean Square Error (NRMSE) for regression tasks and the Receiver Operating Characteristic Area Under the Curve (AUC-ROC) for classification tasks. The datasets demonstrating optimal performance were selected for further analysis; specifically, the dataset exhibiting the lowest NRMSE was chosen for regression problems, while the dataset with the highest AUC-ROC was selected for classification problems, thereby ensuring the accuracy and reliability of the model.
2.5 Constructing machine learning models
The dataset was randomly partitioned into training and test sets with a 7:3 ratio. Logistic Regression (LR), Random Forest (RF), K-Nearest Neighbors (KNN), Support Vector Machine (SVM), and Extreme Gradient Boosting (XGBoost) models were developed using Python software (version 3.13.2). The training and validation datasets were imported, and clinical demographics along with laboratory test results from the training set were utilized as predictors to construct the models, with patient mortality serving as the target variable.
2.6 Data standardization
To ensure the stability and effectiveness of model training, we standardized the continuous variables in the dataset.
Specifically, we used the StandardScaler module in Python (version 3.13.2), which is based on the Z-score standardization method. This method transforms each continuous variable into a distribution with a mean of 0 and a standard deviation of 1. This process helps to eliminate differences in scale and numerical range among different features, thereby preventing certain features from dominating the model training process due to their larger numerical ranges. The data standardization process was performed as follows: (1) The dataset was split into training and test sets. (2) The Standard Scaler was applied to the continuous variables in the training set to compute the mean and standard deviation. (3) The training set was standardized using these computed statistics. (4) The test set was standardized using the same statistics derived from the training set to ensure consistency. Handling Data ImbalanceData imbalance was addressed using oversampling techniques. Specifically, the Synthetic Minority Over-sampling Technique (SMOTE) was applied to the training set to balance the class distribution. This step was performed after standardization to ensure that the synthetic samples generated were consistent with the standardized data distribution. Model training and validation optimal parameters for each model were identified through grid search and five-fold cross-validation. Upon finalizing the models, validation was conducted using the validation dataset, and performance metrics such as the area under the receiver operating characteristic curve (AUC), sensitivity, specificity, accuracy, recall, and F1 score were computed for each model.
2.7 Feature interpretation
To interpret and rank the features of the training models, the SHAP package was employed to assess the contribution of each feature to the model. Following the selection of the best-performing model, SHAP values were further utilized to visualize and analyze the significance of the features.
2.8 Statistical analysis
Python (version 3.13.2) was employed for data processing and statistical analysis. Categorical variables were represented as frequencies and percentages and were compared using either Fisher’s exact test or the chi-square test. For continuous variables, the Shapiro-Wilk test was initially applied to assess normality. If the data conformed to a normal distribution, comparisons were made using the independent samples t-test, with results expressed as mean ± standard deviation. For data not conforming to a normal distribution, comparisons were made using non-parametric methods, and results were reported as median with interquartile range (first and third quartiles). A p-value of less than 0.05 was considered indicative of statistical significance.
3 Results
3.1 Comparison of patients’ general information
A total of 614 patients were enrolled in this study and finally 512 patients were enrolled in the study, 300 in the survivor group and 212 in the mortality group (Figure 1). 50 characteristics were included in the study [Age, gender, education level (EL), vascular access type (VAT), hypertension (HTN), diabetes mellitus (DM), secondary hyperparathyroidism (SHPT), hyperphosphatemia (HP), heart failure (HF), gout (Gout), cerebral infarction (CI), myocardial infarction (MI), dialysis frequency (DF), dialysis age (DV), and other characteristics], [heart failure (HF), gout (Gout), cerebral infarction (CI), myocardial infarction (MI), dialysis frequency (DF), dialysis age (DV)], physiologic indices [body mass index (BMI), white blood cell count (WBC), red blood cell count (RBC), Hematocrit (HCT), Monocyte count (MONO), platelet count (PLT), Lymphocyte Count (LYMPH), Neutrophil Count (NEUT), Hemoglobin Concentration (HGB), Potassium (K), Sodium (Na), Chlorine (Serum Cl), Calcium (Ca), Phosphorus (P)] as well as biochemical markers [Total Iron Binding Capacity (TIBC), Serum Iron (SI), Unbound Iron (UI), Parathyroid Hormone (iPTH), Glucose (GLU)], urea (URE), creatinine (CRE), uric acid (UA), total carbon dioxide (TCO2), alpha hydroxybutyrate dehydrogenase (αHBDH), lactate dehydrogenase (LDH), creatine kinase (CK), creatine kinase isoenzyme (CKMB), total bilirubin (TBIL), direct bilirubin (DBIL), indirect bilirubin (IBIL), alanine aminotransferase (ALT), aspartate aminotransferase (AST), gamma-glutamate aminotransferase (GGT), total protein (TP), albumin (ALB), globulin (GLB), and albumin-globulin ratio (AGR)].There was a significant difference in educational qualifications, type of pathway, diabetes mellitus, blood phosphorus, and creatinine between the 2 groups (p < 0.05) (Table 1).
3.2 Comparison between the performance of different models
In this study, five distinct machine learning models were developed. Among these, the K-Nearest Neighbors model demonstrated superior performance, achieving an Area Under the Curve of 0.9792 (95% Confidence Interval: 0.9600–0.9929), as presented in Table 2. The optimal parameters for each model are detailed in Table A1. The model exhibiting the highest AUC value was designated as the best-performing model in this study, as illustrated in Figure 2. The sensitivity analysis of the best model is provided in Table A2.
3.3 Feature importance interpretation in KNN models
Figure 3 shows Dialysis age (DV), unconjugated (UI), creatinine (CRE),Albumin/Globulin Ratio (AGR), and blood phosphorus concentration (P) are important characteristics for the risk of death in MHD. In order to better show the relationship between the variables, this study used bubble heat map to show the relationship between the characteristics (Figure 4).
Figure 5 presents a summary plot of the characteristic SHAP values. For dialysis age (DV), it was observed that elevated values (indicated in red) generally contributed to an increase in the model output, whereas lower values (indicated in blue) were associated with a decrease in the model output. In contrast, for unbound iron (UI), the impact of high and low values on the model output was more variable. However, on average, higher values exhibited a slight positive effect.
Figure 6 illustrates the impact of individual characteristics on the model. Specifically, dialysis age (DV), creatinine (CRE), albumin-globulin ratio (AGR), and blood phosphorus (P) exhibit a negative influence on the model. In contrast, unconjugated iron (UI) demonstrates a positive effect.
We employed K-Nearest Neighbors models to visualize individual patient mortality risk predictions. Specifically, the arrows illustrate the influence of each factor on the prediction outcomes. Features that elevate the risk of brain death are depicted in red, whereas those that mitigate the risk are shown in blue. The length of each stripe represents the significance of the corresponding feature in the prediction process; a longer stripe indicates a greater contribution of that feature to the prediction. By aggregating the effects of each factor, we calculated the respective prediction score for each feature. Figure 7 presents the contribution value of each feature to the accurate prediction of mortality risk in hemodialysis patients. For instance, in the case of the first patient, the predicted risk of mortality was 15%.
4 Discussion
According to the American Society of Kidney Diseases, the mortality rate for maintenance hemodialysis patients in the United States is 16.7% (15), whereas in Europe it is 13.1% (16). A study conducted in China reports a crude mortality rate of 8.8% among hemodialysis patients (17). It is imperative to implement appropriate measures to mitigate the risk of mortality in this patient population. Our study identified several factors associated with mortality risk in maintenance hemodialysis patients, including dialysis duration, levels of unconjugated iron, creatinine, white blood cell count, and blood phosphorus concentration. Notably, the relationship between dialysis duration and mortality risk exhibited a U-shaped curve: patients undergoing dialysis for less than 1 year and those with a duration of 5–10 years experienced higher mortality peaks, whereas those with 1–5 years of dialysis demonstrated a relatively stable mortality rate (18, 19).
This outcome may be attributed to the combined effects of both dialysis duration and patient age. Newly initiated dialysis patients frequently present with severe malnutrition, anemia (hemoglobin levels below 90 g/L), electrolyte imbalances such as hyperkalemia, failure to achieve dry weight, and psychological conditions including anxiety and depression (20). Furthermore, there is a markedly elevated risk of early cardiovascular events, such as acute heart failure, and infections, including catheter-associated sepsis (18). As the duration of dialysis increases, patients are more likely to experience disturbances in calcium and phosphorus metabolism and muscular dystrophy, which may elevate the mortality risk among long-term dialysis patients. Cardiovascular events remain the leading cause of mortality, potentially linked to complications arising from prolonged dialysis (21). The relationship between age at the initiation of dialysis and mortality risk in patients undergoing maintenance hemodialysis is complex and dynamic. In the early stages, risks are primarily associated with maladaptation and acute complications, whereas in the mid- to long-term, metabolic disorders and chronic pathologies predominate. Consequently, healthcare professionals can mitigate all-cause mortality in hemodialysis patients through a series of staged interventions, including nutritional support, cardiovascular management, and tumor screening, alongside personalized strategies such as optimization of the primary disease and careful selection of vascular access. Furthermore, precision in dialysis management can be enhanced by integrating biomarkers with emerging technologies.
In studies of iron metabolism, unbound iron refers to free iron ions not sequestered by transferrin. The presence of unbound iron, which can result from either iron deficiency or iron overload, is closely linked to increased mortality risk in patients undergoing maintenance hemodialysis through mechanisms involving cardiovascular injury, oxidative stress, and inflammatory responses. Iron deficiency, in particular, is associated with coronary artery calcification, potentially due to accelerated vascular calcification arising from reduced activity of iron-dependent enzymes such as anti-calcitonin (22). Conversely, iron overload leads to a significant increase in unconjugated iron, which is highly oxidative and directly contributes to lipid peroxidation, endothelial damage, and tissue iron deposition, thereby elevating the incidence of cardiovascular events under oxidative stress conditions (23).
Creatinine serves as a fundamental indicator of nutritional and muscular status in patients undergoing maintenance hemodialysis Both persistently low levels and a dynamic decline in creatinine are associated with an increased risk of mortality. In dialysis patients, renal function is compromised, rendering creatinine clearance almost entirely reliant on dialysis. Consequently, blood creatinine levels predominantly reflect muscle mass. A significant association exists between low blood creatinine levels and muscle atrophy, as well as protein-energy wasting. Studies have demonstrated that patients who succumbed exhibited lower blood creatinine levels compared to survivors, with a 12.6-fold increase in mortality risk for each 1 mg/dL decrease in creatinine (hazard ratio [HR] = 12.60, 95% confidence interval [CI] 0.66–241.35) (24). Elevated creatinine levels (e.g., > 10 mg/dL) are indicative of better muscle mass and nutritional status, correlating with more favorable clinical outcomes (25). Furthermore, patients experiencing a decline of more than 15% in serum creatinine over a 2-year period have a 5-year mortality rate of 40.3%. To maintain creatinine within the optimal range (6–10 mg/dL) and enhance patient prognosis, comprehensive clinical interventions, including nutritional supplementation, anti-inflammatory therapy, and dialysis optimization, are essential (26). Although serum creatinine holds significant predictive value, its concentration is predominantly influenced by the glomerular filtration rate (GFR), a vital marker of renal function. In clinical practice, serum creatinine is extensively utilized to estimate GFR due to its convenient measurement and cost-effectiveness. Nevertheless, it is crucial to acknowledge that serum creatinine levels may be affected by factors beyond GFR, including muscle mass, dietary intake, and specific medications, potentially leading to inaccuracies in GFR estimation (27). Consequently, integrating multiple clinical indicators and employing machine learning models is essential for achieving a more comprehensive assessment of patient prognosis.
In recent years, the albumin-globulin ratio (AGR) has emerged as a valuable prognostic marker for assessing nutritional status and chronic inflammation in patients undergoing maintenance hemodialysis. A study involving 320 MHD patients revealed that the 5-year all-cause mortality rate was significantly elevated in the low AGR group (< 1.21) compared to the high AGR group (32.98% vs. 10.3%). Even after adjusting for age and comorbidities, a low AGR was associated with a 2.74-fold increased risk of all-cause mortality (hazard ratio [HR] = 2.740, 95% confidence interval [CI] 1.08–6.64) (28). The cardiovascular effects of the albumin-globulin ratio may be mediated through inflammatory pathways. Specifically, a low globulin level results in decreased colloid osmotic pressure and tissue edema, which can exacerbate cardiac insufficiency. Additionally, it diminishes the reserve of antioxidants, such as thiol groups, thereby increasing oxidative stress. Conversely, elevated globulin levels indicate the activation of pro-inflammatory cytokines, including interleukin-6 (IL-6) and tumor necrosis factor-alpha (TNF-α), which may facilitate the progression of microinflammation to systemic inflammation, thereby accelerating atherosclerosis and protein-energy wasting. AGR is a significant predictor of mortality risk in patients undergoing maintenance hemodialysis and is valued for its ability to integrate the dual pathophysiological processes of nutrition and inflammation. Consequently, it is recommended that an AGR of ≥ 1.2 be established as a management target through dynamic monitoring, stratified intervention, and multidisciplinary management, including nutritional fortification, anti-inflammatory therapy, and dialysis optimization. Furthermore, it is advised that serum albumin, globulin, and inflammatory markers such as C-reactive protein and IL-6 be monitored every 3 months to allow for the dynamic adjustment of nutritional support in MHD patients.
The relationship between blood phosphorus levels and mortality in patients undergoing maintenance hemodialysis is characterized by a complex time-dose-effect dynamic. This relationship exhibits a U-shaped risk at absolute phosphorus levels and an independent hazard with dynamic variability. Numerous studies have demonstrated an association between blood phosphorus levels and mortality in MHD patients. Mortality rates are lowest when blood phosphorus levels are maintained within the range of 3.5–5.5 mg/dL (1.13–1.78 mmol/L). However, all-cause mortality significantly increases when blood phosphorus levels exceed 5.0 mg/dL (1.6 mmol/L), with a marked escalation in risk observed at levels above 7.0 mg/dL (2.26 mmol/L), where the hazard ratio (HR) reaches 2.02 (29). A blood phosphorus level of less than 3.5 mg/dL (1.13 mmol/L) is associated with malnutrition, and patients with such levels exhibit a 5-year mortality rate of 32.98%, alongside a 2.74-fold increase in corrected risk (30). Mechanistically, elevated phosphorus levels inhibit endothelial nitric oxide synthase and elevate markers of oxidative stress, contributing to increased arterial stiffness. Additionally, high phosphorus levels upregulate pro-inflammatory cytokines such as interleukin-6 (IL-6) and tumor necrosis factor-alpha (TNF-α), further elevating mortality risk when C-reactive protein levels exceed 5 mg/L. Phosphorus accumulation also facilitates the production of uremic toxins, such as indolephenol sulfate, which synergistically interact with fibroblast growth factor 23 (FGF-23) to impair myocardial mitochondrial function. This impairment subsequently leads to left ventricular hypertrophy, as indicated by a left ventricular mass index (LVMI) greater than 130 g/m2 (29, 31). Serum phosphorus levels play a critical role in the mortality of patients undergoing maintenance hemodialysis primarily through pathways involving vascular calcification, the inflammation-dystrophy axis, and metabolic toxicity. Clinically, a stratified management approach is essential. For patients exhibiting hyperphosphatemia, intensive dialysis coupled with pharmacological interventions is recommended. Conversely, for those with hypophosphatemia, the focus should be on addressing malnutrition and enhancing long-term outcomes by dynamically monitoring the coefficient of variation in serum phosphorus levels.
Currently, the prediction of survival rates for patients with end-stage renal disease predominantly depends on indices such as the Davies Index, Khan Index, and the Charlson Comorbidity Index (CCI). In addition, other comorbidity indices like the Index of Coexistent Diseases (ICED) and the Index of Chronic Disease Diagnoses (ICDD) are also utilized. However, these indices exhibit certain limitations: they encompass numerous variables, rendering them less suitable for clinical application and statistical analysis. The Davies Index suffers from ambiguous definitions of comorbidities, resulting in problematic weight allocation. The Khan Index assigns equal weights to each comorbidity, which may not accurately reflect their relative impact. Furthermore, the CCI tends to overestimate the weight of certain comorbidities (32). The interpretable machine learning model that we have developed can be integrated into clinical record systems for practical use in clinical settings. The model predicts the risk of death for individual patients by analyzing their data (Figure 7).
The findings of our study highlight certain features that significantly contribute to the optimal model; however, these may not align with some clinical research outcomes. Beyond the features identified in our study, it is crucial to consider additional factors in maintenance hemodialysis patients. These factors include blood pressure, fluid status, dialysis dose (e.g., Kt/V), anemia, bone mineral parameters, inflammation markers, and residual kidney function, which have not been explicitly incorporated into our model but warrant careful consideration.
Previous research has established that the nutritional status of hemodialysis patients is a critical determinant of patient mortality. Specifically, a decrease in serum albumin levels is significantly associated with an elevated risk of death within 6 months (6). In our study, no significant difference in serum albumin levels was observed between the deceased and survivor groups. However, variations were noted in the albumin/globulin ratio and globulin levels between these groups, potentially attributable to the administration of albumin during dialysis. Consequently, it is imperative to closely monitor and address the nutritional status of these patients.
Several studies have demonstrated that dialysis adequacy constitutes a significant risk factor influencing mortality among hemodialysis patients. High-dose dialysis, defined as a Kt/V greater than 1.4, has been associated with a reduction in all-cause mortality in patients undergoing maintenance hemodialysis. This effect is particularly pronounced in subgroups of patients younger than 65 years or those with a dialysis duration exceeding 60 months, where the risk of cardiovascular disease (CVD) also shows a marked decrease (33, 34).
Similarly, blood pressure significantly influences the survival rates of hemodialysis patients. Empirical evidence indicates a reduction in the incidence of cardiovascular events among patients with systolic blood pressure (SBP) levels of 101–110 mmHg (HR 0.647, 95% CI 0.455–0.920), 111–120 mmHg (HR 0.663, 95% CI 0.492–0.894), 121–130 mmHg (HR 0.747, 95% CI 0.569–0.981), and 131–140 mmHg (HR 0.757, 95% CI 0.596–0.962) (35). Our study did not incorporate blood pressure indicators. Consequently, it is imperative to consider variations in a patient’s blood pressure when formulating clinical decisions. This approach is essential to ensure the provision of comprehensive preventive measures for patients.
4.1 Limitations of the study
Several limitations of our study should be acknowledged when interpreting the results. First, this study was conducted as a single-center, retrospective analysis and did not include external validation. This design may limit the generalizability and external validity of the findings, as single-center studies may not adequately reflect the characteristics of patient populations in different regions or healthcare settings. Future research should consider conducting multicenter, large-sample, prospective cohort studies to enhance the accuracy and generalizability of the models.
Second, the data in our study are likely subject to Missing Not At Random (MNAR) issues. The absence of certain laboratory tests or clinical assessments may be related to the patients’ health status or other factors that influenced their decision to undergo these tests. This non-random missingness could introduce bias, as the missing data may systematically differ from the observed data. For example, patients with milder conditions or those with financial constraints may be more likely to have missing data. Although we employed multiple imputation techniques to address missing data, these methods rely on assumptions about the missing data mechanism. Given the potential MNAR nature of our missing data, it is possible that our imputation model did not fully capture the underlying patterns of missingness. This could affect the accuracy and generalizability of our findings. Future research should consider more advanced methods for handling MNAR data, such as pattern mixture models or selection models, which can explicitly account for the non-random nature of missing data. Additionally, sensitivity analyses could be conducted to assess the robustness of the results under different assumptions about the missing data mechanism.
Furthermore, our study may have been affected by unmeasured confounding variables. These include nominal variables (such as gender and race) and treatment-related factors (such as treatment protocols and medication use),which may have influenced the study outcomes. Although we controlled for known confounders in our analysis, unmeasured confounders could still introduce bias into the interpretation of the results. Future research should aim to reduce the impact of these potential confounders through more comprehensive data collection and analysis methods.
While our study provides some insights into the relevant issues, its findings need to be further validated in broader research contexts. Future studies should employ multicenter, large-sample, prospective cohort designs, as well as more advanced statistical methods, to improve the accuracy and reliability of the results. The objective of this modeling is to support clinical decision-making; however, the final treatment decision remains the responsibility of the attending nephrologist. This tool is not designed to supplant clinical judgment.
5 Conclusion
We developed and evaluated five distinct machine learning models to predict mortality risk among hemodialysis patients, identifying the K-nearest neighbor algorithm as the most effective. To elucidate the factors influencing mortality risk, we employed SHAP values for interpretability. Our analysis revealed that mortality risk is associated with variables such as dialysis vintage, white blood cell ratio, creatinine levels, blood phosphorus concentration, and serum iron. The integration of the KNN algorithm with SHAP values offers a transparent and interpretable framework for risk prediction, holding significant potential for application in future clinical research. This approach aids clinicians in implementing timely interventions and provides comprehensive insights for the long-term management of hemodialysis patients, ultimately contributing to the reduction of mortality risk. However, despite the model’s high predictive efficacy in the single-center data, its clinical value should still be interpreted with caution. The inherent limitations of observational studies mean that the risk factors identified by the model need to be combined with clinical judgment and cannot replace the comprehensive assessment of individual patients by physicians.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Ethics statement
The studies involving humans were approved by Ethics Committee of the Central Hospital of Wuhan. The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committee/institutional review board waived the requirement of written informed consent for participation from the participants or the participants’ legal guardians/next of kin because this study is a retrospective study.
Author contributions
PS: Writing – review and editing, Writing – original draft, Software. XW: Writing – original draft, Data curation. ZW: Methodology, Supervision, Writing – review and editing. JC: Data curation, Writing – original draft. FX: Writing – review and editing.
Funding
The author(s) declare that financial support was received for the research and/or publication of this article. This study was funded by the Chen Xiaoping Foundation for the development of science and technology of Hubei province (No. CXPJJH124001-2404).
Acknowledgments
We extend our gratitude to the nursing staff of the Hemodialysis Unit at The Central Hospital of Wuhan for their invaluable assistance in facilitating the seamless execution of our study.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The authors declare that no Generative AI was used in the creation of this manuscript.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1. Webster A, Nagler E, Morton R, Masson P. Chronic kidney disease. Lancet. (2017) 389:1238–52. doi: 10.1016/S0140-6736(16)32064-5
2. Cockwell P, Fisher L. The global burden of chronic kidney disease. Lancet. (2020) 395:662–4. doi: 10.1016/S0140-6736(19)32977-0
3. Wang L, Xu X, Zhang M, Hu C, Zhang X, Li C, et al. Prevalence of chronic kidney disease in China: Results from the Sixth China chronic disease and risk factor surveillance. JAMA Intern Med. (2023) 183:298–310. doi: 10.1001/jamainternmed.2022.6817
4. Dong S, Liu Y, Ge H, Lin Y, Guan W, Su W, et al. Trend analysis of chronic kidney disease morbidity and mortality in the Chinese population based on age-period-cohort modeling. Public Health Preventive Medicine. (2024) 35: 12–5.
5. Zhang X, Li H, Chen Y, Zhao S. Influence of hemodialysis and peritoneal dialysis on survival in elderly patients with end-stage renal disease. J Xinjiang Med Univ. (2021) 44:76–9.
6. Goldstein B, Xu C, Wilson J, Henao R, Ephraim P, Weiner D, et al. Designing an implementable clinical prediction model for near-term mortality and long-term survival in patients on maintenance hemodialysis. Am J Kidney Dis. (2024) 84:73–82. doi: 10.1053/j.ajkd.2023.12.013
7. Jiang F, Jiang Y, Zhi H, Dong Y, Li H, Ma S, et al. Artificial intelligence in healthcare: Past, present and future. Stroke Vasc Neurol. (2017) 2:230–43. doi: 10.1136/svn-2017-000101
8. Tangri N, Ferguson T. Role of artificial intelligence in the diagnosis and management of kidney disease: Applications to chronic kidney disease and acute kidney injury. Curr Opin Nephrol Hypertens. (2022) 31:283–7. doi: 10.1097/MNH.0000000000000787
9. Ebrahimi S, Bagchi P. Application of machine learning in predicting blood flow and red cell distribution in capillary vessel networks. J R Soc Interface. (2022) 19:20220306. doi: 10.1098/rsif.2022.0306
10. Al’Aref S, Anchouche K, Singh G, Slomka P, Kolli K, Kumar A, et al. Clinical applications of machine learning in cardiovascular disease and its relevance to cardiac imaging. Eur Heart J. (2019) 40:1975–86. doi: 10.1093/eurheartj/ehy404
11. Yue S, Li S, Huang X, Liu J, Hou X, Zhao Y, et al. Machine learning for the prediction of acute kidney injury in patients with sepsis. J Transl Med. (2022) 20:215. doi: 10.1186/s12967-022-03364-0
12. Chen R, Wang J, Williamson D, Chen T, Lipkova J, Lu M, et al. Algorithmic fairness in artificial intelligence for medicine and healthcare. Nat Biomed Eng. (2023) 7:719–42. doi: 10.1038/s41551-023-01056-8
13. Apley D, Zhu J. Visualizing the effects of predictor variables in black box supervised learning models. J R Stat Soc. (2020) 82:1059–86. doi: 10.4037/ajcc2024856
14. Uddin S, Haque I, Lu H, Moni M, Gide E. Comparative performance analysis of K-nearest neighbour (KNN) algorithm and its different variants for disease prediction. Sci Rep. (2022) 12:6256. doi: 10.1038/s41598-022-10358-x
15. Saran R, Robinson B, Abbott K, Bragg-Gresham J, Chen X, Gipson D, et al. US renal data system 2019 Annual Data Report: Epidemiology of kidney disease in the United States. Am J Kidney Dis. (2020) 75(1 Suppl 1):A6–7. doi: 10.1053/j.ajkd.2019.09.003
16. Stirnadel-Farrant H, Karaboyas A, Cizman B, Bieber B, Kler L, Jones D, et al. Cardiovascular event rates among hemodialysis patients across geographical regions-a snapshot from the dialysis outcomes and practice patterns Study (DOPPS). Kidney Int Rep. (2019) 4:864–72. doi: 10.1016/j.ekir.2019.03.016
17. Zhao X, Gan L, Niu Q, Chen Y, Hou F, Ni Z, et al. Analysis of causes and characteristics of deaths of hemodialysis patients in China-insights from the DOPPS study. China Blood Purif. (2022) 21:89–93.
18. Peng Z. Epidemiologic analysis of 99 patients who died on maintenance hemodialysis: A single-center survey study. J Rare Dis. (2023) 30:58–60.
19. Chen R, Bai Y, Wang C, Anna, Xu M, He J, et al. Predictive value of neutrophil/lymphocyte ratio and C-reactive protein/albumin ratio for all-cause mortality in maintenance hemodialysis patients: A cohort study with a 5-year follow-up. Chin Family Med. (2024) 27:4397–402.
20. Hua J, Liang M, Li C, Xu S. Analysis of causes and associated factors of death within 1 year in elderly maintenance hemodialysis patients. Practical Geriatr. (2017) 31:739–42. doi: 10.3969/j.issn.1003-9198.2017.08.011
21. Ao G, Zhou S, Wu R, Gu J, Li Z, Shi P, et al. Analysis of body composition and nutritional status of maintenance hemodialysis patients with different dialysis ages. Guangxi Med. (2020) 42:1450–2. doi: 10.11675/j.issn.0253-4304.2020.11.27
22. Mizuiri S, Nishizawa Y, Yamashita K, Doi T, Okubo A, Morii K, et al. Absolute iron deficiency, coronary artery calcification and cardiovascular mortality in maintenance haemodialysis patients. Nephrology. (2024) 29:415–21. doi: 10.1111/nep.14289
23. Luo K. Correlation of iron metabolism levels with cardiac structure and function in maintenance hemodialysis patients. World Abstracts Recent Med Informat. (2021) 21:24–6. doi: 10.3969/j.issn.1671-3141.2021.100.009
24. Walther C, Carter C, Low C, Williams P, Rifkin D, Steiner R, et al. Interdialytic creatinine change versus predialysis creatinine as indicators of nutritional status in maintenance hemodialysis. Nephrol Dial Transplant. (2012) 27:771–6. doi: 10.1093/ndt/gfr389
25. Wang J, Min Z, Wang S, Long G. Correlation between lean body mass and mortality risk in maintenance hemodialysis patients. China Blood Purif. (2019) 18:382–5.
26. Kang S, Kim G, Kim B, Son E, Do J, Lee J. Changes in pre-haemodialysis serum creatinine levels over 2 years and long-term survival in maintenance haemodialysis. J Cachexia Sarcopenia Muscle. (2024) 15:1568–77. doi: 10.1002/jcsm.13515
27. Chen S, Chiaramonte R. In creatinine kinetics, the glomerular filtration rate always moves the serum creatinine in the opposite direction. Physiol Rep. (2021) 9:e14957. doi: 10.14814/phy2.14957
28. Li D, Peng F, Zhou B, Long H. Correlation between albumin-globulin ratio and prognosis of patients on maintenance hemodialysis. Chin J Nephrol. (2024) 25:32–6. doi: 10.3969/j.issn.1009-587X.2024.01.009
29. Block G, Klassen P, Lazarus J, Ofsthun N, Lowrie E, Chertow G. Mineral metabolism, mortality, and morbidity in maintenance hemodialysis. J Am Soc Nephrol. (2004) 15:2208–18. doi: 10.1097/01.ASN.0000133041.27682.A2
30. Niu Z, Shi R, Wang W, Li X, Bai Y, Liu Z, et al. Analysis of serum phosphorus levels and its influencing factors in maintenance hemodialysis patients in Anhui Province. J Clin Nephrol. (2024) 24:446–51. doi: 10.3969/j.issn.1671-2390.2024.06.002
31. Cai H, Zhang W. Zhu, Lu ML, Lin RH, Lu XH, Dou JY, et al. Degree of blood phosphorus variability associated with death in patients on maintenance hemodialysis. Chin J Nephrol. (2016) 32:487–93. doi: 10.3760/cma.j.issn.1001-7097.2016.07.002
32. Park J, Kim M, Han S, Cho H, Kim H, Ryu D, et al. Recalibration and validation of the Charlson comorbidity index in Korean incident hemodialysis patients. PLoS One. (2015) 10:e0127240. doi: 10.1371/journal.pone.0127240
33. Liu S, Wang Z, Zhang S, Xiao J, You L, Zhang Y, et al. The association between dose of hemodialysis and patients mortality in a prospective cohort study. Sci Rep. (2022) 12:13708. doi: 10.1038/s41598-022-17943-0
34. Gotta V, Tancev G, Marsenic O, Vogt J, Pfister M. Identifying key predictors of mortality in young patients on chronic haemodialysis-a machine learning approach. Nephrol Dial Transplant. (2021) 36:519–28. doi: 10.1093/ndt/gfaa128
35. De Lima J, Gowdak L, Reusing J, David-Neto E, Bortolotto L. Interdialytic blood pressure and risk of cardiovascular events and death in hemodialysis patients. High Blood Press Cardiovasc Prev. (2023) 30:235–41. doi: 10.1007/s40292-023-00575-4
Appendix
Keywords: hemodialysis, predictive modeling, machine learning, mortality risk, SHAP
Citation: Shu P, Wang X, Wen Z, Chen J and Xu F (2025) SHAP combined with machine learning to predict mortality risk in maintenance hemodialysis patients: a retrospective study. Front. Med. 12:1615950. doi: 10.3389/fmed.2025.1615950
Received: 22 April 2025; Accepted: 16 June 2025;
Published: 07 July 2025.
Edited by:
Paolo Monardo, Papardo Hospital, ItalyReviewed by:
Concetto Sessa, Provincial Health Authority of Ragusa (ASP Ragusa), ItalyBernard Canaud, Université de Montpellier, France
Copyright © 2025 Shu, Wang, Wen, Chen and Xu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Peng Shu, MzEyODU1Nzg0QHFxLmNvbQ==; Fang Xu, NDUzMzI4NDMzQHFxLmNvbQ==
†These authors have contributed equally to this work