MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1097/md.0000000000049373

Медицинская библиотека · Medicine · 2026

Predictors of death in diabetes-associated Enterobacteriaceae sepsis: A Mendelian randomization and machine learning study.

Lou Hengtong, Han Kaiyu, Wang Yunpeng

СтатьяПеревод в очереди

Аннотация

Diabetes mellitus is a common comorbidity that may increase susceptibility to severe infections and worse outcomes. We aimed to identify clinical predictors of in-hospital mortality in diabetic patients with Gram-negative Enterobacteriaceae sepsis using a data-driven feature-selection and machine learning (ML) approach, and to examine the causal relationship between diabetes and sepsis using Mendelian randomization (MR). We performed a retrospective cohort study of patients admitted to The Second Affiliated Hospital of Harbin Medical University between January 2018 and August 2025 with diabetes and Gram-negative Enterobacteriaceae sepsis. The Boruta algorithm was used to identify variables important for mortality prediction; selected features were entered into ML classifiers and evaluated using receiver operating characteristic analysis. Separately, MR analysis was conducted with diabetes as the exposure and sepsis as the outcome. The inverse-variance weighted method was used as the primary estimator, and MR-Egger, weighted median, simple mode, and weighted mode approaches were applied as sensitivity analyses to assess robustness and potential directional pleiotropy. Boruta selection retained 10 variables associated with in-hospital mortality: intensive care unit admission, concomitant shock, respiratory failure, liver abscess, coma, anemia, decreased platelet count, reduced red blood cell count, infection with extended-spectrum β-lactamase-producing organisms, and carbapenem-resistant Enterobacteriaceae infection. Among ML models, a neural network classifier achieved the highest discriminative performance on the validation set (area under the curve = 0.957; 95% confidence interval: 0.905-1.000). MR indicated a modest but statistically significant association of genetically predicted diabetes with risk of sepsis (inverse-variance weighted P < .05; odds ratio = 1.08, 95% confidence interval: 1.02-1.13). In this single-center cohort of diabetic patients with Gram-negative Enterobacteriaceae sepsis, intensive care unit admission, shock, respiratory failure, hepatic abscess, impaired consciousness, cytopenias, and infections due to extended-spectrum β-lactamase- or carbapenem-resistant Enterobacteriaceae-producing organisms were key predictors of mortality. A neural network model demonstrated excellent discrimination for in-hospital death. MR indicates a causal effect of diabetes on sepsis risk.

Другие публикации по теме

Machine LearningSepsisRetrospective StudiesMendelian Randomization Analysis
Для цитирования: Lou Hengtong, Han Kaiyu, Wang Yunpeng. Predictors of death in diabetes-associated Enterobacteriaceae sepsis: A Mendelian randomization and machine learning study.. Medicine. 2026. DOI: 10.1097/md.0000000000049373.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by-nc/4.0/ This is an open-access article distributed under the terms of the Creative Commons Attribution-Non Commercial License 4.0 (CCBY-NC) , where it is permissible to download, share, remix, transform, and buildup the work provided it is properly cited. The work cannot be used commercially without permission from the journal.

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

1. Introduction

Sepsis remains a leading cause of morbidity and mortality worldwide, [ 1 – 3 ] with Gram-negative Enterobacteriaceae among the most frequent etiologic agents of bloodstream infections. [ 1 , 3 ] The clinical course of Enterobacteriaceae sepsis is increasingly complicated by the emergence of antimicrobial resistance, including extended-spectrum β-lactamase (ESBL) production and carbapenem-resistant Enterobacteriaceae (CRE), which are associated with treatment failure and worse outcomes. [ 4 – 8 ] Identifying patients at high risk of in-hospital death is critical to guide early escalation of care, optimize antimicrobial therapy, and allocate intensive care resources.

Diabetes mellitus is a prevalent chronic condition that alters host immune responses and predisposes to both common and severe infections. [ 9 ] Hyperglycemia, [ 10 ] impaired neutrophil function, [ 11 , 12 ] microvascular disease, [ 13 – 15 ] and comorbid organ dysfunction [ 16 ] may collectively increase the severity of infection and adversely affect clinical outcomes in diabetic patients. Although diabetes has been recognized as a risk factor for infection incidence and poor prognosis, the extent to which diabetes itself causally contributes to sepsis risk – independent of confounding and reverse causation – remains debated.

Prognostic models for sepsis traditionally rely on a limited set of clinical and laboratory variables; however, conventional variable selection approaches can miss complex, nonlinear associations and interactions present in contemporary clinical data. Machine learning (ML) methods offer flexible modeling frameworks that may improve discrimination and identify novel combinations of predictors. [ 17 ] Feature-selection algorithms such as Boruta, which are based on randomized variable importance measures, can help select robust predictors while reducing overfitting and preserving interpretability for downstream ML classifiers.

Mendelian randomization (MR) uses genetic variants as instrumental variables to interrogate causal effects of exposures on outcomes, mitigating confounding and reverse causation inherent to observational epidemiology. [ 18 ] Applying MR to the diabetes sepsis relationship can provide complementary evidence regarding causality that is not obtainable from retrospective clinical cohorts alone.

In this study, we combined a data-driven feature-selection strategy and ML classifiers to identify clinical and microbiological predictors of in-hospital mortality among diabetic patients with Gram-negative Enterobacteriaceae sepsis in a single-center retrospective cohort. We further applied MR – to assess whether genetically predicted diabetes causally influences sepsis risk. Our objectives were to: characterize key clinical related determinants of mortality in this high-risk population; evaluate the predictive performance of ML models trained on Boruta-selected features; and provide genetic evidence regarding the causal role of diabetes in sepsis susceptibility.

2. Methods

2.1. Data sources

We conducted a retrospective review of electronic medical records from The Second Affiliated Hospital of Harbin Medical University, identifying 204 adult patients admitted between January 2018 and August 2025 who met inclusion criteria: a positive blood culture yielding Enterobacteriaceae and a concurrent diagnosis of diabetes mellitus. For each case, we abstracted demographic data (age, sex, and preexisting comorbidities), presenting clinical features at bloodstream infection onset (coma, shock, and respiratory failure), laboratory measurements obtained within 24 hours of the index positive blood culture (complete blood count, hepatic and renal function tests, and serum electrolytes) and baseline comorbidities were extracted from the electronic medical record at admission and/or prior medical history, including pneumonia, liver abscess, renal insufficiency. The primary endpoint was in-hospital mortality. All extracted records were independently reviewed and confirmed by 2 senior clinicians to ensure completeness and accuracy. The institutional ethics committee of The Second Affiliated Hospital of Harbin Medical University approved the study protocol and waived informed consent because of the retrospective design; all patient identifiers were removed prior to analysis to maintain confidentiality.

For the MR analyses, we retrieved summary level genome-wide association study (GWAS) statistics from the Medical Research Council-Integrative Epidemiology Unit GWAS database ( https://gwas.mrcieu.ac.uk/ ). Exposure data for diabetes were drawn from a GWAS comprising 490,089 individuals of European ancestry (38,841 cases and 451,248 controls; GWAS ID: ebi-a-GCST90018926), including association estimates for approximately 24,167,560 single-nucleotide polymorphisms (SNPs). Outcome data for sepsis were obtained from an independent GWAS of European ancestry individuals (6164 cases and 197,660 controls; GWAS ID: finn-b-AB1_SEPSIS), with summary statistics for approximately 16,380,410 SNPs. All MR analyses were performed using these publicly available, harmonized summary statistics. Because only aggregated GWAS summary data were used, no individual level genetic data were accessed and no additional ethical approval beyond that obtained for the original GWAS was required.

2.2. Patient information collection

Patient data were extracted from the hospital’s electronic medical record and laboratory information systems, and included baseline characteristics (age, sex, and comorbidities), primary site of infection, and all relevant laboratory parameters. Blood-culture specimens were obtained from every patient at the onset of fever (defined as a single tympanic temperature ≥38.5°C). Sample processing was performed by the institutional microbiology laboratory in strict accordance with current Clinical and Laboratory Standards Institute guidelines and manufacturer-recommended standard operating procedures.

2.3. Grouping

Of the 204 included patients, 182 constituted the survival cohort and 22 the death cohort. Criteria were: at least 2 separate blood culture sets yielding Enterobacteriaceae, together with a concomitant diagnosis of diabetes; availability of complete demographic, clinical, and laboratory records, including full blood counts and comprehensive biochemistry panels obtained within 48 hours before and after the index blood culture; only adult patients aged ≥18 years were included; and eligible patients were required to have a hospital/intensive care unit (ICU) stay of at least 1 day (≥24 hours). Patients were excluded if any of the following applied: critical clinical or laboratory data were absent or deemed unreliable; discharge occurred against medical advice; or concurrent serious infections other than the index Enterobacteriaceae bloodstream infection were present.

Sepsis was defined according to the Third International Consensus Definitions for Sepsis and Septic Shock (Sepsis-3) [ 19 ] : sepsis is “life threatening organ dysfunction caused by a dysregulated host response to infection.” Clinically, organ dysfunction was operationalized as an acute increase in the Sequential Organ Failure Assessment score of ≥2 points consequent to the infection, a change associated with an increased risk of in-hospital mortality.

2.4. Statistical analysis

2.4.1. Boruta algorithm

For predictive modeling, the dataset was randomly partitioned into training (70%) and validation (30%) subsets. Categorical variables are reported as frequencies and percentages, and continuous variables as mean ± standard deviation. Between-group comparisons were performed using the chi-square test for categorical data. Continuous variables with approximately normal distributions are presented as mean ± standard deviation and compared using Student t test. Variables with non-normal distributions are presented as median and compared using the Mann–Whitney U test. In the statistical analysis, feature selection was performed on the training set using the Boruta algorithm, a random forest-based wrapper that evaluates each predictor’s importance against permuted “shadow” variables. In an iterative procedure, Boruta computes Z -scores of variable importance and compares them with the distribution of importance values for the shadow features, thereby identifying predictors whose importance significantly exceeds chance while helping to control the family wise error rate. This multivariable approach is particularly suitable for high-dimensional data, where univariate or stepwise methods may overfit or overlook complex interactions. Boruta was executed with ntree = 1000 to improve the stability and reproducibility of the selection process; features labeled as “confirmed” were carried forward to downstream model development. The “Boruta” package in R (version 4.5.1; R Foundation for Statistical Computing, Vienna, Austria) was used for all Boruta algorithm computations.

Data preprocessing, extreme values, and missing data handling. Extreme values were treated as missing data when they were outside physiologically plausible ranges or were judged to represent measurement/data entry errors after reviewing the source records; these values were set to missing prior to analysis. Patients with missing critical variables required for cohort definition or outcome assessment were excluded. For the remaining variables, missing values were handled using a complete case strategy for analyses requiring full data and simple imputation for predictive modeling: continuous variables were imputed with the mean when approximately normally distributed and with the median when skewed; categorical variables were not imputed and were analyzed as complete cases. To avoid information leakage, imputation parameters (mean/median) were calculated using the training set only and then applied to the validation set.

2.4.2. ML and SHapley Additive exPlanations (SHAP) value interpretation

The features retained by the Boruta algorithm were entered into a panel of ten supervised learning methods: logistic regression, support vector machine, gradient boosting machine, neural network, random forest, XGBoost, K-nearest neighbors, AdaBoost, Light gradient boosting machine, and CatBoost. This selection was intended to span linear approaches, kernel-based classifiers, ensemble learners, and neural models so that both simple additive associations and complex nonadditive relationships between predictors and sepsis could be captured.

Model discrimination was assessed primarily with the area under the curve (AUC), interpreted on the conventional 0.5 to 1.0 scale. To provide a more complete view of classifier performance, we also reported accuracy, sensitivity, specificity, precision, and the F 1 score. Post hoc interpretation of the best-performing model was performed with SHAP. SHAP is grounded in cooperative game theory and decomposes an individual prediction into a sum of feature-level contributions. It yields consistent and locally accurate attributions at the instance level and can be aggregated to produce global importance measures, thereby improving model transparency and supporting clinically meaningful interpretation compared with heuristic approximation methods.

2.4.3. MR analysis

The inverse-variance weighted (IVW) method was prespecified as the primary estimator for testing putative causal effects of diabetes on sepsis. To probe the robustness of IVW findings, a set of complementary sensitivity analyses was conducted. These comprised MR-Egger, the weighted median, the simple mode, and the weighted mode approaches. MR-Egger regression provides both a causal estimate and an intercept term that was examined to detect directional horizontal pleiotropy. The weighted median estimator was included because it yields a consistent effect estimate when at least half of the total instrument weight derives from valid genetic variants.

Outlier detection and correction were performed using the MR-PRESSO framework, which identifies variants that disproportionately influence the global heterogeneity statistic and, where appropriate, produces outlier-corrected causal estimates. Any variants flagged as outliers prompted reestimation of causal effects after their removal or correction. SNP selection was performed using linkage disequilibrium clumping with an r 2 threshold of 0.001 and a sliding window of 10,000 kb; all retained variants exhibited an F statistic >10, confirming their strength as instrumental variables.

Heterogeneity among instrument-specific estimates and potential small study or selection bias were explored graphically with funnel plots and examined statistically. The impact of individual variants on the overall causal estimate was assessed via leave-one-out analysis, in which the analysis is iteratively repeated excluding 1 variant at a time. Statistical significance was defined as a 2-sided P value below .05. A forest plot was drawn using the grid package and forestploter package (version 1.1.2) in R software (version 4.4.1; R Foundation for Statistical Computing). MR analyses were performed using the TwoSampleMR R package (version 0.6.8; MRC-IEU, University of Bristol, Bristol, UK).

3. Results

3.1. Characteristics of participants

After exclusion of cases with incomplete data, 204 patients (100 males [49%], 104 females [51%]) were included. Compared with survivors, nonsurvivors were significantly more likely to have been admitted to the ICU, to have presented with shock, coma, respiratory failure, liver abscess, ESBL-producing or CRE, anemia, increased or decreased lymphocyte, decreased red blood cell (RBC) count, decreased platelet (PLT) count, hypoproteinemia (all P < .05; Table 1 ).

Table 1
Demographic baseline chart of participants.
ALT = alanine aminotransferase, AST = aspartate aminotransferase, CRE = carbapenem-resistant Enterobacteriaceae, ESBLs = extended-spectrum beta-lactamases, ICU = intensive care unit, PLT = platelet, RBC = red blood cells, WBC = white blood cells.

VariablesOverall N = 204Survivors N = 182Death N = 22P value
ICU.022
No162 (79%)149 (82%)13 (59%)
Yes42 (21%)33 (18%)9 (41%)
Sex.147
Male100 (49%)86 (47%)14 (64%)
Female104 (51%)96 (53%)8 (36%)
Age60.56 ± (13.93)60.25 ± (13.87)63.14 ± (14.50).591
Coma<.001
No182 (89%)171 (94%)11 (50%)
Yes22 (11%)11 (6.0%)11 (50%)
Respiratory failure<.001
No177 (87%)167 (92%)10 (45%)
Yes27 (13%)15 (8.2%)12 (55%)
Shock<.001
No167 (82%)160 (88%)7 (32%)
Yes37 (18%)22 (12%)15 (68%)
Pneumonia.129
No96 (47%)89 (49%)7 (32%)
Yes108 (53%)93 (51%)15 (68%)
Liver abscess.024
No155 (76%)134 (74%)21 (95%)
Yes49 (24%)48 (26%)1 (4.5%)
Renal insufficiency.770
No108 (53%)97 (53%)11 (50%)
Yes96 (47%)85 (47%)11 (50%)
CRE<.001
No192 (94%)176 (97%)16 (73%)
Yes12 (5.9%)6 (3.3%)6 (27%)
ESBLs<.001
No130 (64%)124 (68%)6 (27%)
Yes74 (36%)58 (32%)16 (73%)
Increased or decreased WBC.530
No58 (28%)53 (29%)5 (23%)
Yes146 (72%)129 (71%)17 (77%)
Increased or decreased monocyte>.999
No43 (21%)39 (21%)4 (18%)
Yes161 (79%)143 (79%)18 (82%)
Increased or decreased lymphocyte.005
No121 (59%)114 (63%)7 (32%)
Yes83 (41%)68 (37%)15 (68%)
Anemia.002
No109 (53%)104 (57%)5 (23%)
Yes95 (47%)78 (43%)17 (77%)
Decreased RBC<.001
No132 (65%)126 (69%)6 (27%)
Yes72 (35%)56 (31%)16 (73%)
Decreased PLT<.001
No132 (65%)125 (69%)7 (32%)
Yes72 (35%)57 (31%)15 (68%)
Increased ALT.064
No141 (69%)122 (67%)19 (86%)
Yes63 (31%)60 (33%)3 (14%)
Increased AST.681
No131 (64%)116 (64%)15 (68%)
Yes73 (36%)66 (36%)7 (32%)
Hypoproteinemia.004
No76 (37%)74 (41%)2 (9.1%)
Yes128 (63%)108 (59%)20 (91%)
Hypokalemia.530
No146 (72%)129 (71%)17 (77%)
Yes58 (28%)53 (29%)5 (23%)
Hyponatremia.195
No85 (42%)73 (40%)12 (55%)
Yes119 (58%)109 (60%)10 (45%)
Hypocalcemia.293
No149 (73%)135 (74%)14 (64%)
Yes55 (27%)47 (26%)8 (36%)

3.2. Feature selection with the Boruta algorithm

Feature selection was performed using the Boruta algorithm to identify variables with statistically meaningful importance for in-hospital mortality. Boruta evaluates the importance of each original predictor by comparing it to the distribution of importance scores of corresponding shadow (randomized) features across repeated random forest iterations; predictors whose importance significantly exceeds that of the best shadow feature are classified as confirmed, while those that do not are deemed rejected or tentative.

After completion of the Boruta procedure, ten variables were confirmed as important predictors of mortality and retained for subsequent modeling: ICU admission, concomitant shock, respiratory failure, hepatic abscess, coma, anemia, decreased platelet count, reduced red blood cell count, infection with ESBL-producing organisms, and CRE infection. Figure 1 displays the distribution of variable importance scores compared with shadow features.

Иллюстрация — в первоисточнике ↗

Figure 1. Feature selection results of the Boruta algorithm. Box plots show the distribution of Boruta feature importance Z -scores across random forest iterations. Blue boxes represent shadow (permuted) attributes used as the reference distribution; green boxes indicate confirmed important predictors; yellow boxes indicate tentative predictors; and red boxes indicate rejected predictors. Features are ordered by median importance. Note: a, renal insufficiency; b, increased or decreased monocyte count; c, increased or decreased white blood cell count; d, increased or decreased lymphocyte count; e, respiratory failure. ALT = alanine aminotransferase, CRE = carbapenem-resistant Enterobacteriaceae, ESBLs = extended-spectrum β-lactamase-producing organisms, ICU = intensive care unit, PLT = platelet, RBC = red blood cell.

Figure 2 presents the cross-validation error plot used to assess model stability across different penalty strengths (lambda). The x -axis represents the natural logarithm of lambda (log[λ]), and the y -axis shows the cross-validated mean squared error; error bars indicate the standard error of the mean squared error estimate at each lambda value. In the importance-profile visualization, green lines denote confirmed predictors, blue shaded lines represent the shadow (randomized) comparator features, yellow lines indicate tentative attributes, and red lines indicate variables that were ultimately rejected by Boruta.

Иллюстрация — в первоисточнике ↗

Figure 2. Score variation plot of the Boruta algorithm. Trajectories of Boruta feature importance Z -scores over repeated classifier runs (iterations). Each line corresponds to one attribute, and colors denote the Boruta decision category: shadow (blue), rejected (red), tentative (yellow), and confirmed (green). The plot illustrates the stability and separation of confirmed predictors from shadow and rejected attributes across iterations.

3.3. ML model development and validation

The ten predictors identified by the Boruta algorithm were used as input features for a panel of ten ML algorithms. The dataset was partitioned into a training cohort and a validation cohort; model development (feature preprocessing, hyperparameter optimization, and internal validation) was performed exclusively on the training cohort, whereas final model performance was assessed on the held-out validation cohort.

Primary discrimination was quantified by AUC; 95% confidence intervals (CIs) for AUC were estimated by bootstrap resampling of the validation set. In addition, we computed complementary performance metrics to provide a multidimensional assessment of clinical utility: accuracy, sensitivity, specificity, precision, and F 1 score.

Among the evaluated classifiers, the neural network model demonstrated the highest discriminative performance on the validation cohort (AUC = 0.957; 95% CI: 0.905–1.000). Other classifiers showed varying degrees of discrimination and trade-offs between sensitivity and specificity (Fig. 3 A and B and Table 2 ).

Table 2
Assessment of performance metrics for 10 ML models.
GBM = gradient boosting machine, KNN = K-nearest neighbors, ML = machine learning, RF = random forest, SVM = support vector machine.

ModelAccuracySensitivitySpecificityPrecisionF 1
Logistic0.910.8890.50.667
SVM0.81710.7960.3530.522
GBM0.8170.8330.8150.3330.476
Neural network0.910.8890.50.667
RF0.78310.7590.3160.48
XGBoost0.83310.8150.3750.545
KNN0.950.6670.9810.80.727
AdaBoost0.8670.8330.870.4170.556
LightGBM0.8510.8330.40.571
CatBoost0.86710.8520.4290.6

Иллюстрация — в первоисточнике ↗

Figure 3. ROC curves for 10 ML models on training (A) and validation (B) cohorts. Each colored curve corresponds to 1 model (the legend shows model name with AUC and 95% CI). The diagonal gray dashed line represents no discrimination (AUC = 0.5). AUCs and 95% CIs were estimated by bootstrap resampling. Models shown: logistic, SVM, GBM, neural network, random forest, XGBoost, K-nearest neighbors, AdaBoost, LightGBM, and CatBoost. AUC = area under the curve, CI = confidence interval, GBM = gradient boosting machine, KNN = K-nearest neighbors, ML = machine learning, ROC = receiver operating characteristic, SVM = support vector machine.

Decision curve analysis indicated that the neural network model conferred greater net benefit across a range of clinically plausible threshold probabilities compared with alternative models and default strategies (Fig. 4 A and B).

Иллюстрация — в первоисточнике ↗

Figure 4. DCA curves for 10 ML models on training (A) and validation (B) cohorts. The x -axis indicates the threshold probability for classifying a patient as high risk; the y -axis shows standardized net benefit. Colored lines represent individual models; the solid black line labeled “All” indicates the strategy of treating all patients, and the dashed black line labeled “None” indicates treating no patients. Models that lie above the “All” and “None” lines over a range of clinically relevant thresholds provide greater net benefit. DCA = decision curve analysis, GBM = gradient boosting machine, KNN = K-nearest neighbors, ML = machine learning, ROC = receiver operating characteristic, SVM = support vector machine.

Calibration plots comparing predicted probabilities with observed event rates showed acceptable agreement for the neural network model, with model curves approaching the ideal diagonal ( y = x ) across most risk strata (Fig. 5 A and B).

Иллюстрация — в первоисточнике ↗

Figure 5. Calibration curves for 10 ML models on training (A) and validation (B) cohorts. Plotted are observed event percentages ( y -axis) versus predicted probability ( x -axis) across risk bins (bin midpoints shown on the x -axis). Each colored line denotes a model’s calibration; the diagonal dashed line denotes perfect calibration (observed = predicted). Points indicate observed event rates per bin; deviations from the diagonal reflect model miscalibration. GBM = gradient boosting machine, KNN = K-nearest neighbors, SVM = support vector machine.

3.4. SHAP analysis

We applied SHAP to the final neural network classifier to clarify how each Boruta-selected feature contributed to model predictions at both the cohort and individual levels. SHAP provides additive, locally accurate feature attributions that can be summarized as global importance (mean absolute SHAP values), the distribution and directionality of feature effects (beeswarm), and patient-level explanations (waterfall/force plots).

3.4.1. Global importance (bar plot, Fig. 6A )

Mean absolute SHAP values (Fig. 6 A) rank the predictors by their overall contribution to model output across the cohort. Decreased PLT was the single most influential feature, followed by coma, respiratory failure, shock, and ESBL production. ICU admission, decreased RBC, CRE infection, liver abscess, and anemia contributed to a lesser but non-negligible extent. These quantitative differences indicate that markers of hematologic compromise and organ dysfunction account for the largest share of the model’s explain ability at the population level.

Иллюстрация — в первоисточнике ↗

Figure 6. SHAP analyses for the neural network classifier. (A) Bar plot: features ranked by mean absolute SHAP value (global importance); longer bars indicate greater overall contribution to the model’s predictions. (B) Beeswarm plot: each point represents 1 patient; the x -axis shows the SHAP value (feature contribution to predicted probability of in-hospital death; positive values increase predicted risk), and the color scale indicates the raw feature value (warm = high/presence, cool = low/absence). The plot displays the distribution and directionality of individual feature effects across the cohort. (C) Waterfall plot: decomposition of a single example prediction into the model baseline (expected value) and the signed contributions from the top features, illustrating how individual feature contributions sum to the final predicted probability for that patient. (D) Force plot: alternative individual-level visualization showing pushing (red/right) and pulling (blue/left) feature effects relative to the baseline for the same example; labels indicate feature values and per-feature contributions. All SHAP analyses were generated from the final neural network model and are intended to provide both global and patient-level interpretability of feature effects. CRE = carbapenem-resistant Enterobacteriaceae, ESBLs = extended-spectrum β-lactamase-producing organisms, ICU = intensive care unit, PLT = platelet, RBC = red blood cell, SHAP = SHapley Additive exPlanations.

3.4.2. Feature–value relationships (beeswarm plot, Fig. 6B )

The SHAP beeswarm plot shows the per-sample distribution and direction of each feature’s effect. For predominantly binary clinical variables in our dataset, the presence of the adverse condition (displayed in warm colors) is generally associated with positive SHAP values (increased predicted probability of death), whereas absence (cool colors) is associated with SHAP values near or below zero. Notably, decreased PLT, coma, respiratory failure, and shock show concentrated positive SHAP values for cases with the adverse condition, indicating a consistent association with higher predicted mortality. ESBL and CRE status also shift predictions upward when present, although individual contributions are more dispersed, reflecting heterogeneity in their marginal effects across patients. Several features (e.g., decreased RBC and liver abscess) exhibit a wider spread of SHAP values, suggesting context-dependent effects and possible interactions with other covariates.

3.4.3. Individual-level contributions (waterfall and force plots, Fig. 6C and D)

Waterfall/force visualizations decompose a single prediction into the baseline expectation ( E [ f ( x )]) and the signed contributions from each feature. For the exemplar case shown, the population baseline risk was E [ f ( x )] = 0.0167. Individual feature contributions in that case included ICU = No (+0.00653), liver abscess = Yes (−0.00751), ESBLs = No (−0.00748), and PLT = Decrease (−0.00733). The summed contributions yielded the subject-level prediction ( f ( x ) ≈ –0.00000000000000625 shown in the figure). These visualizations demonstrate 3 important points: The same predictor can exert positive or negative contributions depending on its value and the feature encoding (for example, ICU = No produced a positive contribution in the displayed instance), emphasizing that SHAP attributions are context-specific. Several moderate-sized contributions combine additively to produce the final prediction; in the exemplar, contributions from platelet status and microbiological variables substantially modified the baseline probability. Individual explanations facilitate clinical interpretability by explicitly showing which features drive a high or low predicted risk for a particular patient, and they can reveal counterintuitive interactions that merit clinical review.

Overall, SHAP analyses corroborate the clinical plausibility of the model: indicators of severe physiologic derangement (coma, respiratory failure, and shock), hematologic compromise (decreased platelets and reduced RBC/anemia) and infections with resistant organisms (ESBL and CRE) are the dominant drivers of predicted in-hospital mortality in our cohort. The beeswarm and individual level plots also illustrate inter-sample variability and interactions, highlighting that the prognostic impact of a given feature may depend on the co-occurrence of other abnormalities. These insights can help clinicians prioritize monitoring and treatment for patients with combinations of high-risk features and can guide targeted prospective validation.

3.5. MR analysis

A total of 173 independent genome-wide significant SNPs associated with type 2 diabetes (T2DM) ( P < 5E−08) were selected as instrumental variables and validated in an independent dataset in accordance with the 3 core MR assumptions (relevance, independence, and exclusion restriction). SNPs potentially associated with sepsis at P ≤ 1E−05 were excluded to reduce the risk of horizontal pleiotropy.

Primary analysis using the IVW method demonstrated a statistically significant positive causal effect of genetically predicted diabetes on sepsis risk (IVW, odds ratio [OR] = 1.08, 95% CI: 1.02–1.13; P = .00412) (Fig. 7 A). In contrast, alternative MR estimators produced nonsignificant estimates: MR-Egger (OR = 0.98, 95% CI: 0.89–1.09; P = .75000), weighted median (OR = 1.00, 95% CI: 0.92–1.09; P = .99600), simple mode (OR = 1.12, 95% CI: 0.92–1.35; P = .26400), and weighted mode (OR = 0.99, 95% CI: 0.89–1.09; P = .79500) (Fig. 7 A).

Иллюстрация — в первоисточнике ↗

Figure 7. MR analyses of genetically predicted T2DM on sepsis risk. (A) Forest plot of MR estimators: point estimates and 95% confidence intervals for causal effect (odds ratio scale) from multiple MR methods: IVW, MR-Egger, weighted median, simple mode, and weighted mode. The IVW result (OR 1.08, 95% CI: 1.02–1.13, P = .00412) is highlighted. (B) Scatter plot: SNP effect sizes on the exposure ( x -axis; SNP → T2DM) versus SNP effect sizes on the outcome ( y -axis; SNP → sepsis); each point denotes a single SNP with error bars. Colored lines show fitted causal slopes for different MR methods to visualize concordance. (C) Funnel plot: SNP-specific causal estimates plotted against precision to assess symmetry and potential directional horizontal pleiotropy; the approximate symmetry of points indicates the absence of large unbalanced pleiotropy. CI = confidence interval, IVW = inverse-variance weighted, MR = Mendelian randomization, OR = odds ratio, SNP = single-nucleotide polymorphism, T2DM = type 2 diabetes.

Sensitivity analyses supported the primary IVW finding. The MR-Egger intercept test did not provide evidence of directional pleiotropy (intercept P > .05), and visual inspection of the funnel plot showed approximate symmetry, arguing against substantial unbalanced pleiotropy (Fig. 7 C). Leave-one-out analysis demonstrated that no single SNP disproportionately influenced the IVW estimate (Fig. 8 B), and the single SNP forest plot showed the majority of individual SNP effects aligned in the same direction as the summary estimate (Fig. 8 A). The scatter plot of SNP effects on T2DM versus sepsis depicted a positive slope consistent with the IVW result (Fig. 7 B).

Иллюстрация — в первоисточнике ↗

Figure 8. MR analyses of genetically predicted T2DM on sepsis risk. (A) Leave-one-out plot: results of iterative IVW analyses omitting 1 SNP at a time; each point represents the IVW estimate obtained after excluding the labeled SNP, with horizontal bars showing 95% CIs. The vertical dashed line indicates the overall IVW estimate from the full instrument set. This plot assesses whether any single variant disproportionately influences the summary causal estimate. (B) Single-SNP forest plot: individual SNP effect estimates (log-odds or beta scale) with 95% confidence intervals for the association with sepsis, displayed in rank order; the pooled IVW summary estimate and its CI are shown at the bottom. CI = confidence interval, IVW = inverse-variance weighted, MR = Mendelian randomization, SNP = single-nucleotide polymorphism, T2DM = type 2 diabetes.

Taken together, the MR analyses provide evidence for a modest positive causal effect of genetically predicted diabetes on sepsis susceptibility using the primary IVW approach, while other robust methods yielded nonsignificant but directionally similar estimates. All MR plots (forest, scatter, funnel, and leave-one-out) are provided in Figures 7 and 8 to illustrate instrument validity and the consistency of results.

4. Discussion

In this retrospective single-center study of 204 patients with diabetes and Gram-negative Enterobacteriaceae sepsis, we identified a set of clinical factors – ICU admission, septic shock, respiratory failure, hepatic abscess, coma, anemia, thrombocytopenia, reduced red blood cell count, infection with ESBL-producing organisms, and CRE infection – that were associated with in-hospital mortality after Boruta feature selection. A neural network classifier incorporating these features demonstrated excellent discrimination (validation AUC = 0.957), and MR analyses provided evidence for a modest causal effect of genetically predicted diabetes on sepsis risk (IVW, OR = 1.08, 95% CI: 1.02–1.13).

The identified predictors are biologically and clinically plausible. ICU admission, shock, respiratory failure, and impaired consciousness reflect greater physiologic derangement and illness severity and have been associated with poor outcomes in sepsis cohorts. [ 20 , 21 ] Cytopenias (anemia and thrombocytopenia) likely signify either underlying comorbidity, bone marrow suppression, consumption coagulopathy, or severe systemic inflammation and have prognostic relevance in septic patients. [ 22 , 23 ] The association of hepatic abscess with mortality may reflect both a locus of severe infection and delayed source control. [ 24 , 25 ] Importantly, infection with ESBL- and CRE-producing Enterobacteriaceae emerged as strong mortality-related features, underscoring the adverse impact of antimicrobial resistance on therapeutic options and clinical outcomes. [ 26 ]

The high AUC of the neural network indicates strong potential for discriminatory prediction when the selected clinical and microbiological variables are available. However, predictive performance should be considered in the context of sample size and event rate: with 22 deaths among 204 patients, model estimates can be optimistic and subject to overfitting despite the use of a held-out validation set. Therefore, while results are encouraging for the use of ML approaches to risk stratification, external validation and prospective assessment are required before clinical implementation.

The MR results suggest that genetically proxied diabetes confers a small but statistically significant increase in susceptibility to sepsis. This finding aligns with mechanistic knowledge that diabetes impairs innate and adaptive immunity, alters neutrophil function, promotes hyperglycemia-driven immune dysfunction, and facilitates bacterial colonization and translocation. [ 27 – 31 ] Nevertheless, the observed OR is modest (≈1.08), indicating that diabetes is one of multiple risk contributors to sepsis susceptibility and that the clinical magnitude of effect at the individual level may be limited.

Several limitations temper the interpretation of our findings. First, the study is retrospective and single-center, which limits generalizability. Importantly, only 22 in-hospital deaths occurred in this cohort. Such a low number of events limits the statistical precision and stability of both feature selection and model development, and increases the risk of optimistic performance estimates (including potential AUC inflation), even though we applied feature selection and evaluated models on a held-out validation set. Because multiple ML algorithms were trained and compared, the best-performing model may be subject to model selection optimism, and the reported AUC should be interpreted as exploratory rather than definitive. External validation in independent cohorts and prospective multi-center studies are required before any clinical implementation. Second, calibration uncertainty. Although we quantified calibration using the Brier score (and calibration slope/intercept), calibration estimates remain uncertain given the limited number of events. Third, we did not formally compare the best-performing machine learning model with conventional approaches such as multivariable logistic regression. Without an explicit baseline model, the incremental predictive value of a more complex algorithm cannot be quantified, and the necessity of adopting a less transparent model is harder to justify from a clinical implementation perspective. Given the limited number of deaths, complex models may also be more susceptible to overfitting, potentially inflating internal discrimination. Fourth, although Boruta provides a robust, data-driven approach to variable selection, it selects predictors of association rather than causal determinants. Some retained features may act as mediators of severity rather than antecedent risk factors. Fifth, regarding MR, we used 173 independent genome-wide significant SNPs for T2DM and applied standard sensitivity analyses. Nevertheless, MR assumptions warrant caution. Although we excluded SNPs with strong associations with sepsis ( P ≤ 1E−05) and detected no evidence of directional pleiotropy by MR-Egger intercept and funnel plot symmetry, unrecognized horizontal pleiotropy, weak-instrument bias, or population stratification could affect causal estimates. In addition, potential sample overlap between the GWAS sources and the outcome data, and the exposure and outcome GWAS were primarily conducted in individuals of European ancestry, whereas our clinical cohort was Chinese, can bias MR results; these aspects should be explicitly assessed in future investigations. Sixth, although the IVW estimator suggested a statistically significant association, the alternative robust estimators (MR-Egger, weighted median, simple/weighted mode) were not statistically significant. This pattern is compatible with a very small true effect size, limited statistical power for some robust methods, and/or between-instrument heterogeneity. Therefore, our MR findings should be viewed as suggestive evidence for a modest effect rather than definitive proof of causality. Seventh, clinical variables such as glycemic control (e.g., HbA1c), diabetes duration, comorbidities, outpatient antibiotic exposure, time to appropriate therapy and source control, and other biomarkers (e.g., procalcitonin, lactate) were not fully incorporated in the present analysis but may materially influence outcomes. Finally, antimicrobial stewardship practices and local resistance epidemiology change over time and across centers, which may influence the observed relationships with ESBL/CRE.

Future research should focus on multi-center, prospective validation of the prediction model, the addition of dynamic clinical and laboratory data (including glycemic metrics and time-varying variables), assessment of model calibration and clinical utility, and evaluation of whether model-guided interventions improve outcomes. Further MR studies addressing ancestry matching, additional sensitivity analyses (e.g., MR-PRESSO), and exploration of mediating pathways (e.g., obesity, dyslipidemia, and glycemic control) would help clarify the mechanisms linking diabetes and sepsis.

5. Conclusions

In summary, our integrated analytic approach, combining feature selection, ML, and MR, identified clinically plausible predictors of mortality in diabetic patients with Gram-negative Enterobacteriaceae sepsis, demonstrated high discriminative performance of a neural network model in internal validation, and provided genetic evidence for a modest causal effect of diabetes on sepsis risk. These findings merit external validation and further mechanistic and interventional study to determine whether early recognition and targeted management of identified risk factors can improve patient outcomes.

Acknowledgments

The authors thank all participants and all investigators.

Author contributions

Conceptualization: Hengtong Lou, Kaiyu Han.

Data curation: Kaiyu Han.

Formal analysis: Hengtong Lou, Kaiyu Han.

Funding acquisition: Hengtong Lou, Kaiyu Han.

Investigation: Hengtong Lou, Kaiyu Han.

Methodology: Hengtong Lou, Kaiyu Han.

Project administration: Hengtong Lou, Kaiyu Han, Yunpeng Wang.

Resources: Hengtong Lou, Kaiyu Han, Yunpeng Wang.

Software: Hengtong Lou, Yunpeng Wang.

Supervision: Hengtong Lou, Yunpeng Wang.

Validation: Hengtong Lou, Yunpeng Wang.

Visualization: Hengtong Lou, Yunpeng Wang.

Writing – original draft: Hengtong Lou, Yunpeng Wang.

Writing – review & editing: Hengtong Lou, Yunpeng Wang.

Abbreviations: AUC area under the curve CI confidence interval CRE carbapenem-resistant Enterobacteriaceae ESBL extended-spectrum β-lactamase GWAS genome-wide association study ICU intensive care unit IVW inverse-variance weighted KNN K-nearest neighbors ML machine learning MR Mendelian randomization OR odds ratio PLT platelet RBC red blood cell SHAP SHapley Additive exPlanations SNPs single-nucleotide polymorphisms SVM support vector machine T2DM type 2 diabetes

Patient and Public Involvement statement Patients or the public were not involved in the design, or conduct, or reporting, or dissemination plans of our research.

The protocol was approved by the Medical Ethics Committee from The Second Affiliated Hospital of Harbin Medical University. All patient identifiers were irreversibly removed to guarantee anonymity and confidentiality.

The authors have no funding and conflicts of interest to disclose.

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

How to cite this article: Lou H, Han K, Wang Y. Predictors of death in diabetes-associated Enterobacteriaceae sepsis: A Mendelian randomization and machine learning study. Medicine 2026;105:25(e49373).

References

[1] Conroy OD Mazzella A Choi H . Bloodstream infections in critical care units in England, April 2017 to March 2023: results from the first six years of a national surveillance programme. Microorganisms . 2025 ; 13 : 183 . 39858951 10.3390/microorganisms13010183 PMC11767419

[2] GBD 2021 Global Sepsis Collaborators . Global, regional, and national sepsis incidence and mortality, 1990–2021: a systematic analysis. Lancet Glob Health . 2025 ; 13 : e2013 – 26 . 41135560 10.1016/S2214-109X(25)00356-0

[3] GBD 2019 Antimicrobial Resistance Collaborators . Global mortality associated with 33 bacterial pathogens in 2019: a systematic analysis for the Global Burden of Disease Study 2019. Lancet . 2022 ; 400 : 2221 – 48 . 36423648 10.1016/S0140-6736(22)02185-7 PMC9763654

[4] Verma A Singh N Agarwal J Sen M Das A . Emergence and spread of carbapenem antimicrobial resistance: a review on mechanism of drug resistance and laboratory detection. Ann Afr Med . 2026 ; 25 : 495 – 503 . French, English. 41190501 10.4103/aam.aam_169_25 PMC13249389

[5] Singh SK Sudhir S Menon V . Epidemiology and clinical outcomes of monomicrobial carbapenem-resistant Eenterobacteriaceae (CRE) from a metropolitan area of Kerala, India. J Infect Dev Ctries . 2025 ; 19 : 569 – 75 . 40305539 10.3855/jidc.18777

[6] Alraddadi BM Heaphy ELG Alzahrani MS . Association between carbapenem-resistant enterobacterales (CRE) colonization status at time of hospital admission and the subsequent development of CRE infection and mortality in high-risk patients. Infect Drug Resist . 2024 ; 17 : 4655 – 64 . 39473910 10.2147/IDR.S479487 PMC11520729

[7] Anesi JA Lautenbach E Nachamkin I . Poor clinical outcomes associated with community-onset urinary tract infections due to extended-spectrum cephalosporin-resistant Enterobacteriaceae. Infect Control Hosp Epidemiol . 2018 ; 39 : 1431 – 5 . 30375298 10.1017/ice.2018.254 PMC6289636

[8] Namikawa H Imoto W Yamada K . Predictors of mortality from extended-spectrum beta-lactamase-producing Enterobacteriaceae bacteremia. Emerg Microbes Infect . 2023 ; 12 : 2217951 . 37219067 10.1080/22221751.2023.2217951 PMC10243396

[9] Ganesan A Moore AR Zheng H . A conserved immune dysregulation signature is associated with infection severity, risk factors prior to infection, and treatment response. Immunity . 2025 ; 58 : 2104 – 19.e5 . 40532705 10.1016/j.immuni.2025.05.020 PMC13109016

[10] Yan F Chen X Quan X Wang L Wei X Zhu J . Association between the stress hyperglycemia ratio and 28-day all-cause mortality in critically ill patients with sepsis: a retrospective cohort study and predictive model establishment based on machine learning. Cardiovasc Diabetol . 2024 ; 23 : 163 . 38725059 10.1186/s12933-024-02265-4 PMC11084034

[11] Zhao H Liu Y . Neutrophil extracellular traps induce fibroblast ferroptosis via IRE1α/XBP1-mediated ER stress to impair diabetic wound healing. Free Radic Biol Med . 2025 ; 236 : 17 – 27 . 40379156 10.1016/j.freeradbiomed.2025.05.391

[12] Saadh MJ Allela OQB Kareem RA . Immune cell dysfunction: a critical player in development of diabetes complications. Curr Res Transl Med . 2025 ; 73 : 103510 . 40339429 10.1016/j.retram.2025.103510

[13] Stehouwer CDA . Microvascular dysfunction and hyperglycemia: a vicious cycle with widespread consequences. Diabetes . 2018 ; 67 : 1729 – 41 . 30135134 10.2337/dbi17-0044

[14] Yen FS Yen YH Hung YM . Diabetic microvascular disease and risk of peripheral artery disease, foot ulcer, leg infection, and amputation. Thromb Haemost . 2026 ; 126 : 610 – 22 . 40763784 10.1055/a-2661-2537

[15] Zhang L Jiang F Xie Y Mo Y Zhang X Liu C . Diabetic endothelial microangiopathy and pulmonary dysfunction. Front Endocrinol (Lausanne) . 2023 ; 14 : 1073878 . 37025413 10.3389/fendo.2023.1073878 PMC10071002

[16] Chen X Sun J Li H Lin M Mo X Liang H . Phenotypic consensus clustering and treatment heterogeneity analysis in critically Ill patients with comorbid type 2 diabetes mellitus. Arch Med Res . 2025 ; 56 : 103197 . 40068482 10.1016/j.arcmed.2025.103197

[17] Hua X Gan Y Lv X . Association between high-density lipoprotein cholesterol-related inflammation indices and chronic obstructive pulmonary disease: a cross-sectional study employing machine learning analysis. Lipids Health Dis . 2025 ; 24 : 378 . 41345953 10.1186/s12944-025-02806-0 PMC12679782

[18] Bentz GP Lambrechts MJ . Understanding Mendelian randomization [published online ahead of print December 26, 2025]. Clin Spine Surg . doi: 10.1097/BSD.0000000000002014 . 41474356

[19] Singer M Deutschman CS Seymour CW . The third international consensus definitions for sepsis and septic shock (sepsis-3). JAMA . 2016 ; 315 : 801 – 10 . 26903338 10.1001/jama.2016.0287 PMC4968574

[20] Wilhelms SB Walther SM Sjöberg F De Geer L . Causes of late mortality among ICU-treated patients with sepsis. Acta Anaesthesiol Scand . 2020 ; 64 : 961 – 6 . 32319686 10.1111/aas.13592

[21] Williams B Zou L Pittet JF Chao W . Sepsis-induced coagulopathy: a comprehensive narrative review of pathophysiology, clinical presentation, diagnosis, and management strategies. Anesth Analg . 2024 ; 138 : 696 – 711 . 38324297 10.1213/ANE.0000000000006888 PMC10916756

[22] Wu X Li Y Tong H . Research advances in the subtype of sepsis-associated thrombocytopenia. Clin Appl Thromb Hemost . 2020 ; 26 : 1076029620959467 . 33054353 10.1177/1076029620959467 PMC7573720

[23] Abe T Kubo K Izumoto S . Complement activation in human sepsis is related to sepsis-induced disseminated intravascular coagulation. Shock . 2020 ; 54 : 198 – 204 . 31917735 10.1097/SHK.0000000000001504

[24] Lyu Y Wang B . Prognostic risk factors for pyogenic liver abscess caused by Klebsiella pneumoniae. BMC Gastroenterol . 2024 ; 24 : 298 . 39227812 10.1186/s12876-024-03391-9 PMC11373132

[25] Li J Wang Y Luo J Yin Z Huang W Zhang J . Development and validation of a nomogram for predicting sepsis in patients with pyogenic liver abscess. Sci Rep . 2023 ; 13 : 10849 . 37407641 10.1038/s41598-023-37907-2 PMC10322897

[26] Pérez-Nadales E Fernández-Ruiz M Gutiérrez-Gutiérrez B . Extended-spectrum β-lactamase-producing and carbapenem-resistant Enterobacterales bloodstream infection after solid organ transplantation: recent trends in epidemiology and therapeutic approaches. Transpl Infect Dis . 2022 ; 24 : e13881 . 35691028 10.1111/tid.13881 PMC9540422

[27] Yang G Su R Bu J . Emerging role of adaptive immunity in diabetes-induced cognitive impairment: from the periphery to the brain. Metab Brain Dis . 2025 ; 40 : 102 . 39821703 10.1007/s11011-025-01532-x

[28] Khajuria DK Reider I Kamal F Norbury CC Elbarbary RA . Distinct defects in early innate and late adaptive immune responses typify impaired fracture healing in diet-induced obesity. Front Immunol . 2023 ; 14 : 1250309 . 37854593 10.3389/fimmu.2023.1250309 PMC10579581

[29] Thimmappa PY Vasishta S Ganesh K Nair AS Joshi MB . Neutrophil (dys)function due to altered immuno-metabolic axis in type 2 diabetes: implications in combating infections. Hum Cell . 2023 ; 36 : 1265 – 82 . 37115481 10.1007/s13577-023-00905-7 PMC10284735

[30] Wang Q Lin W Lei K . Hyperglycemia-enhanced neutrophil extracellular traps drive mucosal immunopathology at the oral barrier. Adv Sci (Weinh) . 2024 ; 11 : e2407346 . 39499780 10.1002/advs.202407346 PMC11653653

[31] Deng H Liu Q Gong Y Qiu Y . Regulation of m6A methylation in the immune microenvironment in the development of diabetes mellitus. J Transl Med . 2025 ; 23 : 1308 . 41254647 10.1186/s12967-025-07331-3 PMC12625415

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.