Skip to main content
Frontiers in Endocrinology logoLink to Frontiers in Endocrinology
. 2026 Apr 23;17:1806046. doi: 10.3389/fendo.2026.1806046

Prevalence and clinical correlates of diabetes in hospitalized heart failure patients: a retrospective study

Lingqin Li 1,†, Xinzhu Yuan 2,†, Yanni Zhang 3, Quanbo Zhang 4, Yufeng Qing 1,*
PMCID: PMC13149073  PMID: 42109730

Abstract

Background

Heart failure (HF) and diabetes frequently coexist and are associated with worse outcomes, yet contemporary evidence on the prevalence and clinical correlates of diabetes in hospitalized patients with HF in China remains limited.

Methods

Data for this study were obtained from Zigong Fourth People’s Hospital. A total of 2,008 adults hospitalized with HF were included, of whom 466 had diabetes. Demographic, clinical, hemodynamic and laboratory variables were extracted from the first admission records. We estimated the prevalence of diabetes and used univariate and multivariable logistic regression to identify factors associated with diabetes. Machine learning models were applied to rank variable importance, and restricted cubic splines were used to explore the shapes of these associations. Sex- and age-stratified analyses were further conducted to assess heterogeneity.

Results

The prevalence of diabetes among hospitalized patients with HF was 23.21% (95% CI: 21.39–25.13). In multivariable models, female sex, higher systolic blood pressure, statin use, elevated white blood cell (WBC) count, and higher serum potassium were associated with greater odds of diabetes, whereas higher high-density lipoprotein cholesterol (HDL-C) was inversely associated with diabetes (OR = 0.53, 95% CI: 0.37–0.76). WBC, potassium and HDL-C consistently ranked among the top contributors in both machine learning models. Restricted cubic splines revealed a nonlinear association between WBC count and diabetes, while potassium and HDL-C showed monotonic relationships. In stratified analyses, potassium and HDL-C remained associated with diabetes in females and in patients aged ≥70 years.

Conclusion

In Chinese inpatients with HF, approximately one in four had concomitant diabetes. WBC count, blood pressure, potassium and HDL-C were associated with diabetes status, with some variation across sex and age groups. These findings provide additional evidence on the clinical characteristics associated with diabetes in hospitalized patients with HF.

Keywords: clinical correlates, diabetes, heart failure, machine learning, prevalence

1. Introduction

Heart failure (HF) and diabetes are two highly prevalent chronic conditions that frequently coexist and jointly worsen prognosis (1, 2). Globally, up to one quarter of patients with HF have concomitant diabetes, and in many contemporary cohorts the proportion reaches 20%–40%, reflecting the shared background of aging, obesity and cardiometabolic risk (3). When HF and diabetes occur together, patients experience higher rates of hospitalization, arrhythmia, renal dysfunction and premature death than those with either condition alone, and treatment becomes more complex due to polypharmacy and drug-disease interactions (4, 5). Previous studies have shown that diabetes in patients with HF is associated with a more complex clinical profile and worse health status, underscoring the importance of better characterizing this subgroup in routine clinical practice (6).

However, several important knowledge gaps remain. Despite the high prevalence and substantial clinical impact of diabetes in patients with HF, evidence specifically describing the prevalence of diabetes and its associated clinical characteristics among hospitalized patients with HF in real-world settings remains limited (7). In particular, data from Chinese inpatient populations are still relatively scarce, and, due to differences in demographic characteristics, comorbidity patterns, and healthcare practices, findings from Western cohorts may not be directly generalizable to Chinese patients (8). In addition, multiple studies have shown that clinical characteristics and routinely measured biomarkers such as sex, obesity, elevated blood pressure, renal impairment, pro-inflammatory markers and lipids are closely associated with diabetes in broader populations (9–11). However, whether these factors exhibit similar association patterns in patients with established HF, and which of them are most strongly related to diabetes in this specific clinical context, has not been sufficiently characterized in hospitalized patients with HF, particularly across clinically relevant subgroups such as sex and age.

Accordingly, this study was designed as a hospital-based cross-sectional analysis using an HF database derived from the electronic medical records of a tertiary care center in Southwest China to estimate the prevalence of diabetes and examine the clinical characteristics associated with diabetes in hospitalized patients with HF, with further analyses stratified by sex and age. By combining multivariable logistic regression, machine learning-based variable importance ranking, restricted cubic spline analyses, and stratified analyses, we further characterized the relative importance, association patterns, and subgroup heterogeneity of these factors.

2. Materials and methods

2.1. Data source

This study drew on a registry of consecutive HF hospitalizations at the Fourth People’s Hospital of Zigong spanning December 2016 to June 2019. The registry aggregates standardized variables extracted from the electronic medical record. A de-identified version was released publicly on PhysioNet by Zhang et al. (12, 13).

2.2. Study population

Patients were eligible if they were aged ≥18 years and had a clinical diagnosis of HF at hospital admission. HF was diagnosed by cardiologists according to the 2016 European Society of Cardiology guidelines, based on typical symptoms and signs, elevated natriuretic peptide levels, and objective evidence of cardiac structural or functional abnormalities on echocardiography. In the source database, diabetes status was available for all 2,008 patients. According to the source data documentation, diabetes was identified from prior medical history information documented in the admission notes at hospital admission. Therefore, all 2,008 HF inpatients were included in the present analysis, of whom 466 had diabetes and 1,542 did not.

2.3. Data collection

We collected demographic characteristics (age and sex), HF related information including heart failure type and New York Heart Association functional class (NYHA), and anthropometric data such as body mass index (BMI). Medication variables included statins, ACEI/ARB, diuretics, and beta-blockers. Vital signs included systolic blood pressure (SBP), diastolic blood pressure (DBP), and mean arterial pressure (MAP). Hematologic indices included white blood cell count (WBC), monocyte count (MONO), lymphocyte count, red blood cell count (RBC), hemoglobin, and platelet count. Biochemical and cardiac biomarkers included B-type natriuretic peptide (BNP), high-sensitivity cardiac troponin (hs-cTn), serum creatinine (SCr), serum uric acid (SUA), estimated glomerular filtration rate (eGFR), serum calcium, serum potassium, albumin, globulin, albumin-to-globulin ratio (A/G ratio), total bilirubin (TBIL), total cholesterol, low-density lipoprotein cholesterol (LDL-C), triglycerides, and high-density lipoprotein cholesterol (HDL-C). All laboratory measurements were obtained from the first routine blood tests performed after admission.

2.4. Statistical analysis

All statistical analyses were conducted using R software (version 4.3.3) and DecisionLinnc (version 1.0) (14). Continuous variables were expressed as mean ± standard deviation (SD), and categorical variables as counts and percentages. Baseline characteristics were compared between patients with and without diabetes using the t-test or Mann–Whitney U test for continuous variables, and the chi-square test for categorical variables, as appropriate. The overall prevalence of diabetes and its 95% confidence interval (CI), as well as subgroup-specific prevalences, were calculated, and differences between subgroups were evaluated using the chi-square test. Missing data were handled using multiple imputation.

To identify factors associated with diabetes, we used logistic regression models with diabetes status as the dependent variable. First, univariate logistic regression analyses were performed for each clinical and laboratory variable, and odds ratios (ORs) with 95% CI were calculated. Variables with a P value < 0.05 in univariate analyses or considered clinically relevant were then included in a multivariable logistic regression model to obtain adjusted ORs and 95% CIs. Stepwise selection was not performed. Clinical relevance was determined based on demographic characteristics, heart failure severity, and variables related to inflammation, renal function, electrolyte balance, nutritional status, lipid metabolism, and available medication use, as informed by prior clinical knowledge and previous literature. Variance inflation factors were used to assess multicollinearity among covariates, and highly collinear variables were not entered simultaneously into the same model. To assess the robustness of these associations, the multivariable analyses were further repeated in sex- and age-stratified subgroups.

To provide a complementary assessment of variable importance, we constructed machine learning models using extreme gradient boosting (XGBoost) and random forest based on the significant variables identified in the multivariable analysis. The dataset was randomly split into a training set and a validation set at a ratio of 7:3. Hyperparameters were optimized using grid search combined with five-fold cross-validation, with the area under the receiver operating characteristic curve (AUC) used as the evaluation metric. Shapley Additive Explanations (SHAP) were then applied to quantify the relative contribution of each variable and derive an importance ranking. These machine learning analyses were performed primarily as complementary approaches for variable importance ranking and interpretability.

Subsequently, for continuous variables that remained significantly associated with diabetes in the multivariable model, we used restricted cubic spline (RCS) functions to further characterize the shape of the associations between these variables and diabetes. RCS models were fitted using four knots placed at the 5th, 35th, 65th, and 95th percentiles, with the second knot used as the reference value. A two-sided P value < 0.05 was considered statistically significant.

3. Results

3.1. Baseline characteristics of patients

A total of 2,008 patients with HF were included in this study. As shown in Table 1, baseline comparisons between patients with and without diabetes showed no significant differences in age distribution or HF type. In contrast, sex and NYHA class differed significantly between the two groups. The diabetes group had a higher proportion of females and a greater proportion of patients classified as NYHA class IV. Regarding clinical and laboratory parameters, patients with diabetes tended to have slightly higher BMI and SBP, along with higher WBC, monocyte and lymphocyte counts, and increased levels of SCr, potassium and triglycerides. On the other hand, hemoglobin, albumin, A/G ratio, TBIL and HDL-C were modestly lower in the diabetes group (all P < 0.05). Statin use was also more frequent in the diabetes group. For most of the remaining variables, including DBP, MAP, RBC count, platelet count, and LDL-C, no obvious differences were observed between the two groups.

Table 1.

Baseline characteristics of study population.

Variable Non-diabetes
(n=1542)
Diabetes
(n=466)
P-value
Age, n (%) 0.925
<70 418 (27.11) 128 (27.47)
≥70 1124 (72.89) 338 (72.53)
Sex, n (%) 0.036
female 873 (56.61) 290 (62.23)
male 669 (43.39) 176 (37.77)
Type, n (%) 0.251
left 368 (23.87) 109 (23.39)
right 44 (2.85) 7 (1.50)
both 1130 (73.28) 350 (75.11)
NYHA, n (%) 0.022
II 279 (18.09) 74 (15.88)
III 814 (52.79) 225 (48.28)
IV 449 (29.12) 167 (35.84)
BMI (kg/m²) 21.18 ± 3.74 21.68 ± 4.00 0.013
SBP (mmHg) 130.40 ± 24.64 133.219 ± 25.00 0.031
DBP (mmHg) 76.61 ± 14.28 76.46 ± 15.06 0.852
MAP (mmHg) 94.540 ± 16.20 95.38 ± 16.72 0.329
WBC (×109/L) 7.06 ± 3.33 8.13 ± 3.82 <0.001
MONO (×109/L) 0.47 ± 0.23 0.50 ± 0.28 0.004
RBC (×1012/L) 3.87 ± 0.76 3.83 ± 0.78 0.336
Lymphocyte (×109/L) 1.01 ± 0.58 1.11 ± 0.67 0.002
Hemoglobin (g/L) 115.69 ± 24.480 113.02 ± 24.62 0.041
Platelet (×109/L) 144.49 ± 65.80 147.33 ± 61.96 0.411
BNP (pg/mL) 1285.50 ± 1365.81 1263.84 ± 1316.55 0.764
hs-cTn (pg/mL) 0.27 ± 1.97 0.34 ± 1.77 0.498
SCr (μmol/L) 105.87 ± 74.24 118.95 ± 92.81 0.002
SUA (μmol/L) 483.46 ± 171.04 481.56 ± 165.19 0.833
eGFR (mL/min/1.73 m²) 69.37 ± 35.18 66.35 ± 40.89 0.123
Calcium (mmol/L) 2.29 ± 0.18 2.30 ± 0.19 0.602
Potassium (mmol/L) 3.95 ± 0.68 4.09 ± 0.78 <0.001
Albumin (g/L) 36.67 ± 4.91 36.07 ± 5.18 0.027
Globulin (g/L) 28.48 ± 6.15 28.88 ± 5.74 0.220
A/G ratio 1.34 ± 0.31 1.29 ± 0.29 0.005
TBIL (μmol/L) 23.35 ± 17.63 20.69 ± 16.84 0.005
Cholesterol (mmol/L) 3.7 ± 1.06 3.70 ± 1.18 0.638
LDL-C (mmol/L) 1.86 ± 0.74 1.85 ± 0.81 0.848
HDL-C (mmol/L) 1.12 ± 0.35 1.05 ± 0.35 <0.001
Triglyceride (mmol/L) 1.09 ± 0.94 1.39 ± 1.43 <0.001
Statins, n (%) <0.001
NO 956 (62.04%) 229 (49.14%)
YES 585 (37.96%) 237 (50.86%)
ACEI/ARB, n (%) 0.510
NO 944 (61.26%) 294 (63.09%)
YES 597 (38.74%) 172 (36.91%)
Diuretics, n (%) 0.856
NO 25 (1.62%) 7 (1.50%)
YES 1516 (98.38%) 459 (98.50%)
Beta-blockers, n (%) 0.943
NO 954 (61.91%) 290 (62.23%)
YES 587 (38.09%) 176 (37.77%)

NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; DBP, diastolic blood pressure; MAP, mean arterial pressure; WBC, white blood cell; MONO, monocyte; RBC, red blood cell; BNP, B-type natriuretic peptide; hs-cTn, high-sensitivity cardiac troponin; SCr, serum creatinine; SUA, serum uric acid; eGFR, estimated glomerular filtration rate; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; LDL-C, low-density lipoprotein cholesterol; HDL-C, high-density lipoprotein cholesterol; ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

3.2. Prevalence of diabetes

Overall, the prevalence of diabetes among hospitalized patients with HF was 23.21% (95% CI: 21.39–25.13). As shown in Figure 1, subgroup comparisons demonstrated that the prevalence of diabetes was significantly higher in females than in males (24.94% vs 20.83%; P = 0.036) and in patients with BMI ≥24 kg/m2 than in those with BMI <24 kg/m2 (28.04% vs 21.90%; P = 0.009). No significant difference was observed between patients aged <70 years and those ≥70 years (23.44% vs 23.12%; P = 0.925). Although prevalence was higher in patients with eGFR <60 mL/min/1.73 m2 than in those with eGFR ≥60 mL/min/1.73 m2 (25.19% vs 21.55%), the difference was not statistically significant (P = 0.061). Across NYHA classes II, III, and IV, the prevalence of diabetes was 20.96%, 21.66%, and 27.11%, respectively, with a significant overall difference (P = 0.022).

Figure 1.

Grouped bar chart consisting of five panels showing prevalence of diabetes across subgroups: A shows higher prevalence in females (24.94%) versus males (20.83%, P=0.036); B shows similar prevalence for age groups less than 70 years (23.44%) and 70 years or older (23.12%, P=0.925); C shows higher prevalence for BMI 24 kilograms per square meter or more (28.04%) vs. less than 24 kilograms per square meter (21.90%, P=0.009); D shows no significant difference by eGFR, with 25.19% for less than 60 milliliters per minute per 1.73 square meters and 21.55% for 60 or more (P=0.061); E shows increasing prevalence by NYHA class, with class II at 20.96%, class III at 21.66%, and class IV at 27.11% (P=0.022).

Prevalence of diabetes. Bar charts display the percentage of patients with Diabetes within each subgroup. (A) sex, (B) age, (C) BMI, (D) eGFR, and (E) NYHA. P-values refer to comparisons between subgroups. BMI, body mass index; eGFR, estimated glomerular filtration rate; NYHA, New York Heart Association.

3.3. Univariate logistic regression analysis

In the univariate logistic regression analyses (Table 2), sex and NYHA class showed significant associations with diabetes. Using female sex as the reference, male sex was associated with lower odds of diabetes (OR = 0.79, P = 0.032). Compared with NYHA class II, NYHA class IV was associated with higher odds of diabetes (OR = 1.40, P = 0.034). Among continuous variables, higher BMI, SBP, WBC, monocyte count, lymphocyte count, SCr, potassium, and triglycerides were associated with higher odds of diabetes, whereas higher albumin, A/G ratio, TBIL, and HDL-C were associated with lower odds of diabetes. Among medication variables, statin use was associated with higher odds of diabetes (OR = 1.69, P < 0.001). Most of the other clinical and laboratory variables were not significantly associated with diabetes in the univariate models.

Table 2.

Univariate logistic regression.

Variable OR 95% CI P-value
Age, n (%)
<70 1.00
≥70 0.98 0.78–1.24 0.878
Sex, n (%)
Female 1.00
Male 0.79 0.64–0.98 0.032
Type, n (%)
Left 1.00
right 0.54 0.22–1.15 0.140
both 1.05 0.82–1.34 0.721
NYHA, n (%)
II 1.00
III 1.04 0.78–1.41 0.784
IV 1.40 1.03–1.92 0.034
BMI (kg/m²) 1.03 1.00–1.06 0.020
SBP (mmHg) 1.00 1.00–1.01 0.032
DBP (mmHg) 1.00 0.99–1.01 0.852
MAP (mmHg) 1.00 1.00–1.01 0.328
WBC (×109/L) 1.08 1.05–1.11 <0.001
MONO (×109/L) 1.78 1.18–2.65 0.005
RBC (×1012/L) 0.94 0.82–1.07 0.338
Lymphocyte (×109/L) 1.28 1.09–1.51 0.002
Hemoglobin (g/L) 1.00 0.99–1.00 0.037
Platelet (×109/L) 1.00 1.00–1.00 0.432
BNP (pg/mL) 1.00 1.00–1.00 0.721
hs-cTn (pg/mL) 1.02 0.96–1.07 0.493
SCr (μmol/L) 1.00 1.00–1.00 0.002
SUA (μmol/L) 1.00 1.00–1.00 0.837
eGFR (mL/min/1.73 m²) 1.00 0.99–1.00 0.143
Calcium (mmol/L) 1.15 0.64–2.04 0.642
Potassium (mmol/L) 1.31 1.14–1.51 <0.001
Albumin (g/L) 0.98 0.96–1.00 0.035
Globulin (g/L) 1.01 0.99–1.03 0.298
A/G ratio 0.65 0.46–0.91 0.012
TBIL (μmol/L) 0.99 0.98–1.00 0.005
Cholesterol (mmol/L) 0.96 0.88–1.06 0.431
LDL-C (mmol/L) 0.97 0.85–1.12 0.714
HDL-C (mmol/L) 0.56 0.41–0.75 <0.001
Triglyceride (mmol/L) 1.32 1.16–1.51 <0.001
Statins, n (%)
NO 1.00
YES 1.69 1.37-2.08 <0.001
ACEI/ARB, n (%)
NO 1.00
YES 0.92 0.74-1.14 0.467
Diuretics, n (%)
NO 1.00
YES 1.08 0.49-2.72 0.857
Beta-blockers, n (%)
NO 1.00
YES 0.98 0.80-1.22 0.887

NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; DBP, diastolic blood pressure; MAP, mean arterial pressure; WBC, white blood cell; MONO, monocyte; RBC, red blood cell; BNP, B-type natriuretic peptide; hs-cTn, high-sensitivity cardiac troponin; SCr, serum creatinine; SUA, serum uric acid; eGFR, estimated glomerular filtration rate; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; LDL-C, low-density lipoprotein cholesterol; HDL-C, high-density lipoprotein cholesterol; ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

3.4. Multivariate logistic regression analysis

In the multivariable logistic regression model (Figure 2), several variables remained significantly associated with diabetes after mutual adjustment. Male sex was associated with lower odds of diabetes compared with female sex (OR = 0.77, P = 0.036). Compared with NYHA class II, NYHA class IV was positively associated with diabetes (OR = 1.42, P = 0.036), whereas class III showed no significant association. Among continuous variables, higher SBP, WBC and potassium were independently associated with increased odds of diabetes. In contrast, HDL-C was inversely associated with diabetes (OR = 0.53, P = 0.001). Statin use was positively associated with diabetes (OR = 1.61, P < 0.001), whereas ACEI/ARB use, diuretic use, and beta-blocker use were not significantly associated with diabetes. Age, BMI, hemoglobin, monocyte and lymphocyte count, SCr, albumin, A/G ratio, triglycerides and other variables were not significantly associated with diabetes. No substantial multicollinearity was observed among the included covariates, with all GVIF^(1/(2*Df)) values ranging from 1.01 to 1.37 (Supplementary Table S1). In addition, the model demonstrated modest discrimination (AUC = 0.659), and the ROC and calibration curves are shown in Supplementary Figure S1.

Figure 2.

Forest plot graphic displaying odds ratios with 95% confidence intervals from multivariable logistic regression for diabetes. Significant associations include NYHA class IV, systolic blood pressure, white blood cell count, potassium, and HDL-C, with corresponding confidence intervals and p-values provided.

Multivariable logistic regression analysis. NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; WBC, white blood cell; Mono, monocyte; SCr, serum creatinine; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; HDL-C, high-density lipoprotein cholesterol, ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

3.5. Variable importance ranking using SHAP

To complement the multivariable logistic regression analysis, we further developed XGBoost and random forest models using the diabetes-related variables retained in the adjusted analysis and interpreted them with SHAP (Figures 3, 4). In both models, WBC was ranked as the most important variable, followed by potassium and HDL-C. The SHAP distributions further showed that higher WBC and potassium levels were generally associated with higher SHAP values, whereas higher HDL-C levels showed an opposite pattern. Overall, the variable importance patterns were broadly consistent across the two algorithms. Model evaluation is shown in Supplementary Figures S2, S3. For XGBoost, the mean training AUC across five-fold cross-validation was 0.840, and the test-set AUC was 0.622. For the random forest model, the mean training AUC across five-fold cross-validation was 0.872, and the test-set AUC was 0.656. In addition, the calibration plots of both models showed acceptable but not perfect agreement with the ideal line in the test set.

Figure 3.

Figure with two SHAP plots comparing variable importance in a model: Panel A shows a horizontal bar chart highlighting WBC as most important, followed by HDL-C, Potassium, SBP, NYHA, and Sex. Panel B presents a beeswarm plot displaying individual SHAP value distributions for the same variables, colored by value from low (yellow) to high (purple), emphasizing the range and variability of their impacts.

SHAP-based importance ranking of diabetes-related variables in the XGBoost model. (A) SHAP importance plot showing the mean absolute SHAP value for each variable in the XGBoost model. (B) SHAP Bees plot displaying the distribution of SHAP values for each variable across all patients.

Figure 4.

Panel A displays a horizontal bar chart ranking feature importance for a SHAP model, with WBC, Potassium, HDL-C, SBP, NYHA, and Sex listed. Panel B shows a beeswarm plot for the same features, depicting SHAP value distributions colored from yellow to purple, representing low to high feature values.

SHAP-based importance ranking of diabetes-related variables in the Random Forest model. (A) SHAP importance plot showing the mean absolute SHAP value for each variable in the random forest model. (B) SHAP Bees plot displaying the distribution of SHAP values for each variable across all patients.

3.6. Nonlinear associations with diabetes

In restricted cubic spline analyses, WBC, HDL-C, and potassium showed significant overall associations with the odds of diabetes, whereas SBP did not (Figure 5). WBC displayed a clear nonlinear relationship with diabetes (P for overall <0.001, P for nonlinearity = 0.003), with the odds of diabetes increasing steeply as WBC rose from lower to intermediate levels and then plateauing at higher counts. For HDL-C and potassium, the overall associations with diabetes were statistically significant, but there was no clear evidence of marked nonlinearity. In contrast, SBP did not show a statistically significant overall association or nonlinear association with diabetes.

Figure 5.

Four line charts titled RCS Prediction Plot, labeled A–D, each depict odds ratios versus clinical variables with 95% confidence intervals shaded in blue. Chart A shows odds ratio rising with WBC count, significant for overall and nonlinear association (P < 0.001, 0.003). Chart B shows odds ratio increasing with potassium, overall significant (P = 0.008, 0.433). Chart C shows odds ratio decreasing then leveling with HDL-C, significant for overall but not nonlinear (P = 0.001, 0.081). Chart D shows no significant association between SBP and odds ratio (P for overall = 0.086; P for non-linearity = 0.337). Pink vertical lines indicate the boundaries in each panel.

Nonlinear associations of continuous variables with diabetes. (A) Restricted cubic spline curve for the association between WBC and Diabetes. (B) Restricted cubic spline curve for the association between potassium and Diabetes. (C) Restricted cubic spline curve for the association between HDL-C and Diabetes. (D) Restricted cubic spline curve for the association between SBP and Diabetes.

3.7. Sex and age stratified analyses

In the sex-stratified analysis (Table 3), among females, NYHA class IV remained significantly associated with higher odds of diabetes (OR = 1.56, 95% CI: 1.04–2.38), and higher WBC and potassium levels were positively related to diabetes, whereas HDL-C was inversely associated (OR = 0.44, 95% CI: 0.27–0.71). Statin use was also significantly associated with diabetes among females (OR = 1.48, 95% CI: 1.11–1.97). In males, statin use was significantly associated with diabetes (OR = 1.90, 95% CI: 1.33–2.73), whereas the other variables showed no clear associations. Formal interaction analyses further showed no statistically significant interactions between sex and SBP, NYHA class, or HDL-C (all P for interaction > 0.05). In the age-stratified analysis (Table 4), higher SBP and lower albumin were associated with diabetes in patients <70 years. Statin use was also associated with diabetes in this age group (OR = 1.62, 95% CI: 1.03–2.53). In contrast, among patients ≥70 years, WBC, potassium, and triglycerides were positively associated with diabetes (WBC: OR = 1.09, 95% CI: 1.03–1.14; potassium: OR = 1.38, 95% CI: 1.14–1.67; triglycerides: OR = 1.27, 95% CI: 1.04–1.59), while HDL-C remained negatively associated with diabetes (OR = 0.44, 95% CI: 0.28–0.67). Statin use was also associated with diabetes among patients aged ≥70 years (OR = 1.57, 95% CI: 1.21–2.04).

Table 3.

Sex stratified correlates of diabetes in HF patients.

Variable Female Male
OR 95% CI P-value OR 95% CI P-value
Age, n (%)
<70 1.00 1.00
≥70 0.93 0.66-1.33 0.689 0.85 0.56-1.31 0.467
NYHA, n (%)
II 1.00 1.00
III 1.11 0.76-1.63 0.604 1.02 0.62-1.73 0.936
IV 1.56 1.04-2.38 0.035 1.20 0.70-2.09 0.518
BMI (kg/m²) 1.01 0.97-1.04 0.735 1.04 0.99-1.09 0.093
SBP (mmHg) 1.01 1.00-1.01 0.049 1.00 1.00-1.01 0.380
WBC (×109/L) 1.08 1.03-1.14 0.002 1.06 0.99-1.14 0.091
MONO (×109/L) 0.76 0.36-1.57 0.463 0.70 0.27-1.80 0.461
Lymphocyte (×109/L) 1.15 0.90-1.46 0.264 1.24 0.93-1.66 0.146
Hemoglobin (g/L) 1.00 0.99-1.00 0.308 1.00 0.99-1.01 0.534
Potassium (mmol/L) 1.36 1.11-1.67 0.003 1.17 0.88-1.55 0.274
SCr (μmol/L) 1.00 1.00-1.00 0.653 1.00 1.00-1.00 0.395
Albumin (g/L) 0.99 0.96-1.03 0.748 1.01 0.96-1.06 0.675
A/G ratio 0.66 0.36-1.19 0.171 1.17 0.58-2.35 0.663
TBIL (μmol/L) 1.00 0.99-1.00 0.410 0.99 0.97-1.00 0.060
HDL-C (mmol/L) 0.44 0.27-0.71 0.001 0.79 0.44-1.39 0.430
Triglyceride (mmol/L) 1.08 0.95-1.26 0.291 1.17 0.84-1.63 0.344
Statins, n (%)
NO 1.00 1.00
YES 1.48 1.11-1.97 0.008 1.90 1.33-2.73 <0.001
ACEI/ARB, n (%)
NO 1.00 1.00
YES 1.00 0.73-1.36 0.999 1.00 0.69-1.45 0.997
Diuretics, n (%)
NO 1.00 1.00
YES 1.27 0.44-4.60 0.688 1.21 0.34-5.70 0.789
Beta-blockers, n (%)
NO 1.00 1.00
YES 0.93 0.68-1.26 0.641 1.13 0.78-1.63 0.506

NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; WBC, white blood cell; MONO, monocyte; SCr, serum creatinine; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; HDL-C, high-density lipoprotein cholesterol; ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

Table 4.

Age-stratified correlates of diabetes in HF patients.

Variable <70 ≥70
OR 95% CI P-value OR 95% CI P-value
Sex, n (%)
Female 1.00 1.00
Male 0.79 0.49-1.28 0.339 0.80 0.60-1.07 0.130
NYHA, n (%)
II 1.00 1.00
III 1.34 0.73-2.54 0.356 1.03 0.72-1.48 0.890
IV 1.99 1.04-3.97 0.043 1.31 0.89-1.93 0.176
BMI (kg/m²) 1.03 0.98-1.09 0.214 1.01 0.97-1.04 0.633
SBP (mmHg) 1.01 1.00-1.02 0.004 1.00 1.00-1.01 0.510
WBC (×109/L) 1.03 0.95-1.11 0.461 1.09 1.03-1.14 0.001
MONO (×109/L) 1.13 0.40-3.23 0.814 0.67 0.33-1.35 0.266
Lymphocyte (×109/L) 1.28 0.91-1.82 0.157 1.13 0.90-1.41 0.287
Hemoglobin (g/L) 1.00 0.99-1.01 0.556 1.00 0.99-1.00 0.259
Potassium (mmol/L) 1.02 0.74-1.41 0.896 1.38 1.14-1.67 0.001
SCr (μmol/L) 1.00 1.00-1.01 0.284 1.00 1.00-1.00 0.692
Albumin (g/L) 0.94 0.89-0.99 0.026 1.02 0.98-1.06 0.283
A/G ratio 0.91 0.40-2.07 0.827 0.80 0.46-1.37 0.418
TBIL (μmol/L) 1.00 0.99-1.01 0.737 0.99 0.98-1.00 0.115
HDL-C (mmol/L) 0.98 0.50-1.86 0.953 0.44 0.28-0.67 <0.001
Triglyceride (mmol/L) 1.06 0.90-1.23 0.470 1.27 1.04-1.59 0.031
Statins, n (%)
NO 1.00 1.00
YES 1.62 1.03-2.53 0.037 1.57 1.21-2.04 0.001
ACEI/ARB, n (%)
NO 1.00 1.00
YES 0.95 0.60-1.48 0.809 0.99 0.75-1.31 0.958
Diuretics, n (%)
NO 1.00 1.00
YES 0.73 0.12-5.88 0.743 1.48 0.57-4.59 0.451
Beta-blockers, n (%)
NO 1.00 1.00
YES 1.20 0.77-1.89 0.420 0.90 0.68-1.19 0.468

NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; WBC, white blood cell; MONO, monocyte; SCr, serum creatinine; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; HDL-C, high-density lipoprotein cholesterol; ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

4. Discussion

We found that the prevalence of diabetes was 23.21% among HF inpatients. In the adjusted analysis, female sex, NYHA class IV, higher SBP, higher WBC count, higher serum potassium, and statin use were associated with greater odds of diabetes, whereas higher HDL-C was independently and inversely associated with diabetes. Complementary machine learning analyses identified WBC, potassium, and HDL-C as among the most important variables in both the XGBoost and random forest models. Restricted cubic spline analyses further suggested a clear nonlinear association between WBC and diabetes. In addition, sex- and age-stratified models indicated that these relationships were not uniform across subgroups: the association between diabetes and advanced NYHA class appeared more evident in females, the link with higher potassium was stronger in older patients, and the inverse association between HDL-C and diabetes was particularly robust in these subgroups.

The prevalence of diabetes in our cohort of hospitalized patients with HF was 23.21%, broadly in line with contemporary registry data and prior literature. In the nationwide Swedish Heart Failure Registry, 22.00% of patients had diabetes, very similar to our estimate (15). Likewise, a study from Colombia of hospitalized HF patients reported a diabetes prevalence of 24.7%, again closely matching our findings (16). Large reviews of the HF literature also suggest that roughly 25–40% of HF patients have concomitant diabetes, placing our data at the lower end of this expected range (17). In contrast, some cohorts have reported substantially higher prevalences: for example, the Jordanian Heart Failure Registry found that nearly 70% of HF patients had diabetes (18), and HF populations enriched for mildly reduced or preserved ejection fraction often show diabetes rates around 37-43% (19, 20). Randomized HF trials also tend to include a higher proportion of patients with diabetes. For instance, diabetes was present in about 62% of participants in the CHARM program and in approximately 49.8% of those enrolled in the PARAGON-HF trial (21). Moreover, a recent analysis showed that the proportion of HF hospitalizations occurring in patients with diabetes has increased over the past two decades, underscoring the growing overlap between the two conditions (22). Taken together, these data indicate that the diabetes burden observed in our Chinese HF cohort is comparable to that seen in many other real-world HF populations, while somewhat lower than in highly comorbid or trial selected cohorts.

We found that the prevalence of diabetes was lower in males than in females among patients with heart failure. In the multivariable model, male sex was associated with lower odds of diabetes, suggesting a higher diabetes burden among female patients in this hospitalized HF cohort. A large meta-analysis showed that diabetes was more strongly associated with heart failure in women than in men (23). In another heart failure cohort, women were more likely to have diabetes despite a lower body mass index and had a greater burden of chronic kidney disease than men (24). A further study also reported a higher prevalence of diabetes in women than in men with heart failure, with rates of 60% versus 55% (25). Previous studies suggest that although diabetes is more prevalent in males than in females among young and middle-aged adults, females may have a higher overall prevalence of diabetes after 70 years of age (26). As the patients included in our study were predominantly older adults, this age-related pattern may be relevant to the observed sex difference. Although women generally have more favorable insulin sensitivity earlier in life, this pattern may become less apparent with aging, menopause, and worsening glucose tolerance (27). Women may also show a greater burden of adverse metabolic changes before overt diabetes, including less favorable adiposity, blood pressure, glucose, and lipid profiles (28). In addition, older women are more likely to present with postprandial hyperglycemia, and menopause-related increases in visceral adiposity may also be relevant (29). Behavioral and treatment-related gender differences may likewise be associated with susceptibility to diabetes and its progression.

In the present study, WBC count was independently and positively associated with diabetes among patients with HF (OR = 1.07, 95% CI: 1.03–1.12). Restricted cubic spline analyses suggested a nonlinear pattern in this association, and WBC also ranked as the top contributor in both machine learning models. Previous studies have similarly reported positive associations between higher WBC levels and diabetes-related outcomes. For example, Twig and colleagues reported that every 1,000 cells/mm3 increment in WBC was associated with a 7.6% higher incidence of diabetes, even though values remained within the conventional normal range, and that WBC remained associated with diabetes after adjustment for BMI and other metabolic risk factors (30). The Yuport Medical Checkup Center Study also reported that higher baseline WBC was associated with incident diabetes in Japanese adults, and that the combination of elevated WBC and C-reactive protein was related to a higher risk estimate (31). Furthermore, a large Chinese cohort showed that higher total WBC, neutrophil and lymphocyte counts were all associated with both newly diagnosed and future type 2 diabetes and correlated positively with HbA1c, reinforcing the link between leukocytosis, insulin resistance and chronic hyperglycemia (32). Taken together, these findings suggest that WBC may reflect an inflammatory state associated with abnormal glucose metabolism in patients with HF. However, given the cross-sectional design of the present study, the temporal direction of this association cannot be determined.

Higher serum potassium and statin use were both independently associated with diabetes. This finding is broadly consistent with previous literature. Collins et al. showed that potassium abnormalities were more common in patients with HF, CKD, or diabetes, reflecting the close overlap among these conditions (33). In addition, prior observational studies have reported that statin initiation was associated with a higher likelihood of diabetes progression (34). However, these associations should be interpreted cautiously in the context of our cross-sectional design. Because the kidney plays a central role in potassium homeostasis, impaired renal potassium excretion in the setting of kidney dysfunction may contribute to higher serum potassium levels (35). In addition, renin–angiotensin–aldosterone system-inhibiting therapies commonly used in HF may increase serum potassium by reducing aldosterone-mediated potassium excretion, whereas the effects of diuretics may vary by class, with loop and thiazide diuretics tending to promote potassium loss and potassium-sparing agents having the opposite effect (36, 37). Patients with heart failure may also experience acid-base disturbances, which can further alter transcellular potassium distribution and thereby complicate the interpretation of a single serum potassium measurement (38). Therefore, the association between potassium and diabetes in our study may be better understood as reflecting overlapping comorbidity burden, treatment exposure, and acute physiological disturbances.

In our cohort, higher SBP was associated with greater odds of diabetes. This observation is broadly consistent with previous studies reporting a positive relationship between SBP and diabetes-related outcomes (39). In addition, another study reported positive associations of both SBP and DBP with incident type 2 diabetes (40). Several biological pathways may partly explain this association. Previous studies have suggested that elevated blood pressure may be accompanied by low-grade inflammation, oxidative stress, endothelial dysfunction, and impaired microvascular perfusion, all of which may be relevant to glucose metabolism (41, 42). In addition, higher blood pressure often coexists with obesity, neurohormonal activation, and other adverse cardiometabolic features, which may also contribute to the observed association (43, 44). Overall, our findings are consistent with previous studies showing a positive association between SBP and diabetes. However, residual confounding related to obesity, medication use, and underlying cardiometabolic status may also have influenced this association.

In the adjusted model, higher HDL-C was independently associated with lower odds of diabetes, with an OR of 0.53 in the adjusted model. HDL-C was also ranked among the top three variables in the SHAP analysis, and the restricted cubic spline curves suggested a largely monotonic inverse association between HDL-C and diabetes. These findings are generally consistent with previous observational studies. For example, a recent analysis of 9,420 adults from NHANES reported lower odds of diabetes among individuals in the highest HDL-C quartile than among those in the lowest quartile, and the spline analysis also showed an overall decreasing pattern across increasing HDL-C levels (45). Prospective cohort data from Asia provided further support. In a large Japanese cohort of more than 15,000 adults, lower HDL-C was associated with a higher incidence of diabetes, and a nonlinear relationship was also described (46). A meta-analysis of 15 studies reported that patients with type 2 diabetes had markedly lower HDL-C than controls, reinforcing low HDL-C as a typical feature of diabetic dyslipidemia (47). In addition, a prospective study in individuals with prediabetes reported that a higher triglyceride-to-HDL-C ratio was associated with a higher incidence of diabetes (48).

Previous experimental and clinical studies have suggested that HDL-C may be involved in several mechanisms relevant to glucose homeostasis. HDL-C particles and their major apolipoprotein, apolipoprotein A-I, have been reported to support pancreatic β-cell function and insulin secretion in experimental studies (49). In peripheral tissues, HDL-C and ApoA-I have also been linked to increased glucose uptake and improved metabolic regulation (50). HDL-C has additionally been associated with anti-inflammatory and antioxidant properties that may be relevant to insulin sensitivity and glucose regulation (51). At the same time, HDL-C function may be impaired in diabetes, and so-called dysfunctional HDL-C has been described in the setting of glycation, oxidation, and inflammatory modification (52). These mechanisms may provide biological plausibility for the observed association; however, in the present cross-sectional study, they should be regarded as possible explanations rather than direct evidence for a directional relationship between HDL-C and diabetes.

The present study combined clinical characteristics, hemodynamic indices and routinely measured blood biomarkers to explore factors associated with diabetes in HF patients. Moreover, by combining multivariable logistic regression with machine learning methods and restricted cubic spline analyses, we obtained a more detailed picture of these associations in a hospitalized HF cohort, which has been rarely reported in Chinese populations. However, several limitations should be noted. First, as a cross-sectional study based on prevalent diabetes, our findings can only be interpreted as associations rather than causal relationships between diabetes and the identified variables. Second, diabetes status in this study was identified from prior medical history information documented in the admission notes at hospital admission rather than from a standardized adjudication protocol. The original records did not further specify the diagnostic basis for pre-existing diabetes, nor did they provide detailed information on glucose-lowering medication use or ICD coding. In addition, systematic HbA1c or oral glucose tolerance testing data were not available in the source records. Therefore, previously undiagnosed diabetes may have been missed, and transient stress hyperglycemia during acute hospitalization may not have been fully distinguishable from established diabetes. As a result, some degree of misclassification is possible, which may have affected both the estimated prevalence of diabetes and the observed associations with clinical variables. Third, although available medication variables, including statins, ACEI/ARB, diuretics, and beta-blockers, were included in the analysis, detailed other treatment details were unavailable. Therefore, residual confounding related to medication use cannot be excluded. In addition, because LVEF was missing in more than 60% of the study sample, we were unable to evaluate differences in diabetes across HF phenotypes. Finally, the data were derived from a single tertiary hospital and included only hospitalized HF patients, which may limit generalizability and leave room for residual confounding.

5. Conclusion

Diabetes was common among hospitalized patients with HF in this cohort. Several clinical characteristics, including female sex, NYHA class IV, higher SBP, higher WBC count, higher serum potassium, statin use, and lower HDL-C, were associated with diabetes in the adjusted analyses. These findings may help improve understanding of the clinical profile of HF patients with coexisting diabetes. However, given the cross-sectional design, possible misclassification, residual confounding, and the single-center inpatient setting, these results should be interpreted cautiously. Further studies are needed to confirm these associations and clarify their clinical relevance.

Acknowledgments

We gratefully acknowledge Professor Ping Xu (Zigong Fourth People’s Hospital) for sharing the database.

Funding Statement

The author(s) declared that financial support was received for this work and/or its publication. This work was supported by Science and Technology Program of Sichuan Province (No: 2024YFFK0223); National Natural Science Foundation of China (No: 81974250); Sichuan Province Medical Science and Technology Innovation Research Association Project (No: YCH-KY-YCZD2024–260); Medical Science and Technology Program of the Sichuan Provincial Health Commission (25QNMP102).

Footnotes

Edited by: Sohail Akhtar, The University of Haripur, Pakistan

Reviewed by: Hamza Islam, Faisalabad Medical University, Pakistan

Aqsa Ali, University of Padua, Italy

Data availability statement

Publicly available datasets were analyzed in this study. This data can be found here: https://physionet.org/content/heart-failure-zigong/1.3/.

Ethics statement

Ethical approval was not required for the study involving humans in accordance with the local legislation and institutional requirements because the study used publicly available dataset only. Written informed consent to participate in this study was not required from the participants or the participants’ legal guardians/next of kin in accordance with the national legislation and the institutional requirements because the study used publicly available dataset only.

Author contributions

LL: Methodology, Conceptualization, Writing – review & editing, Writing – original draft, Software. XY: Writing – original draft, Methodology, Software, Conceptualization, Writing – review & editing. YZ: Validation, Data curation, Writing – original draft, Writing – review & editing. QZ: Writing – review & editing, Formal analysis, Writing – original draft, Data curation. YQ: Writing – review & editing, Funding acquisition, Resources, Writing – original draft.

Conflict of interest

The author(s) declared that this work 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 author(s) declared that generative AI was used in the creation of this manuscript. During the preparation of this work the authors used ChatGpt-5.2 in order to check spell and grammar. After using this tool, the authors reviewed and edited the content as needed and takes full responsibility for the content of the publication.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

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.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fendo.2026.1806046/full#supplementary-material

Supplementary Table S1

Multicollinearity diagnostics for variables included in the multivariable logistic regression model. NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; WBC, white blood cell; MONO, monocyte; SCr, serum creatinine; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; HDL-C, high-density lipoprotein cholesterol; ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

Table1.docx (17.5KB, docx)
Supplementary Figure S1

Receiver operating characteristic curve and calibration curve of the multivariable logistic regression model. (A) ROC curve. (B) Calibration curve.

Image1.tif (2MB, tif)
Supplementary Figure S2

Performance evaluation of the XGBoost model. (A) ROC curves of the XGBoost model in the training set based on five-fold cross-validation. (B) ROC curve of the XGBoost model in the test set. (C) Calibration plot of the XGBoost model in the test set.

Image2.tif (1.7MB, tif)
Supplementary Figure S3

Performance evaluation of the Random Forest model. (A) ROC curves of the Random Forest model in the training set based on five-fold cross-validation. (B) ROC curve of the Random Forest model in the test set. (C) Calibration plot of the Random Forest model in the test set.

Image3.tif (1.7MB, tif)

References

  • 1. Triposkiadis F, Xanthopoulos A, Bargiota A, Kitai T, Katsiki N, Farmakis D, et al. Diabetes mellitus and heart failure. J Clin Med. (2021) 10:3682. doi:  10.3390/jcm10163682. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Lee KS, Noh J, Park SM, Choi KM, Kang SM, Won KC, et al. Evaluation and management of patients with diabetes and heart failure: a Korean Diabetes Association and Korean Society of Heart Failure consensus statement. Diabetes Metab J. (2023) 47:10–26. doi:  10.4093/dmj.2022.0420. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Palazzuoli A, Iacoviello M. Diabetes leading to heart failure and heart failure leading to diabetes: epidemiological and clinical evidence. Heart Fail Rev. (2023) 28:585–96. doi:  10.1007/s10741-022-10238-6. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Lawson CA, Jones PW, Teece L, Dunbar SB, Seferovic PM, Khunti K, et al. Association between type 2 diabetes and all-cause hospitalization and mortality in the UK general heart failure population: stratification by diabetic glycemic control and medication intensification. JACC Heart Fail. (2018) 6:18–26. doi:  10.1016/j.jchf.2017.08.020. PMID: [DOI] [PubMed] [Google Scholar]
  • 5. Wan SH, Slusser JP, Hodge DO, Chen HH. Outcomes of patients with diabetes versus patients without diabetes hospitalized with acute heart failure. Am J Cardiol. (2022) 165:65–71. doi:  10.1016/j.amjcard.2021.11.006. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Tuleta I, Frangogiannis NG. Fibrosis of the diabetic heart: clinical significance, molecular mechanisms, and therapeutic opportunities. Adv Drug Delivery Rev. (2021) 176:113904. doi:  10.1016/j.addr.2021.113904. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Gu WL, Katherine Teng TH, Lawson C, Tromp J, Ouwerkerk W, Huang JY, et al. Temporal trends in incidence, clinical characteristics and outcomes among young adults with heart failure: a territory-wide study from 2014 to 2023 on 19,537 patients. Lancet Reg Health West Pac. (2025) 62:101687. doi:  10.1016/j.lanwpc.2025.101687. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Jerkins T, McGill JB, Bell DSH. Heart failure and diabetes: clinical significance and epidemiology of this two-way association. Diabetes Obes Metab. (2023) 25:3–14. doi:  10.1111/dom.15062. PMID: [DOI] [PubMed] [Google Scholar]
  • 9. Ortiz-Martinez M, Gonzalez-Gonzalez M, Martagon AJ, Hlavinka V, Willson RC, Rito-Palomares M. Recent developments in biomarkers for diagnosis and screening of type 2 diabetes mellitus. Curr Diabetes Rep. (2022) 22:95–115. doi:  10.1007/s11892-022-01453-4. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Yu T, Wong TJ, Chang JW, Lao XQ. Trajectories of body mass index before the diagnosis of type 2 diabetes in a cohort of Taiwanese adults. Obes Res Clin Pract. (2024) 18:21–7. doi:  10.1016/j.orcp.2024.02.002. PMID: [DOI] [PubMed] [Google Scholar]
  • 11. Wise J. High blood pressure is linked to increased risk of diabetes. BMJ. (2015) 351:h5167. doi:  10.1136/bmj.h5167. PMID: [DOI] [PubMed] [Google Scholar]
  • 12. Zhang Z, Cao L, Chen R, Zhao Y, Lv L, Xu Z, et al. Electronic healthcare records and external outcome data for hospitalized patients with heart failure. Sci Data. (2021) 8:46. doi:  10.1038/s41597-021-00835-9. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Zhang Z, Cao L, Zhao Y, Xu Z, Chen R, Lv L, et al. Hospitalized patients with heart failure: integrating electronic healthcare records and external outcome data. PhysioNet. (2020) e215–20. doi:  10.1038/s41597-021-00835-9. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14. Han Y, Zhou P, Wang L, Tang Y, Ding Y, Yang Y, et al. Linear inverse association between prognostic nutritional index and colorectal cancer risk based on NHANES data. Sci Rep. (2025) 15:25647. doi:  10.1038/s41598-025-10574-1. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15. Merolla A, Valente V, Basile C, Benson L, Cosentino F, Dahlström U, et al. Impact of type 2 diabetes on the relationship between chronic kidney disease and cardiovascular outcomes in heart failure across ejection fraction: observational study from the Swedish heart failure and the Swedish National diabetes registries. Cardiovasc Diabetol. (2025) 24:452. doi:  10.1186/s12933-025-02998-w. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Echeverría LE, Saldarriaga C, Campbell-Quintero S, Morales-Rodríguez LN, López-Ponce de León JD, Buitrago AF, et al. Diabetes mellitus in patients with heart failure and effect modification of risk factors for short-term mortality: an observational study from the Registro Colombiano de Falla Cardíaca (RECOLFACA). Biomédica. (2024) 44:182–97. doi:  10.7705/biomedica.6951, PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Li X, Zhou X, Gao L. Diabetes and heart failure: a literature review, reflection and outlook. Biomedicines. (2024) 12:1572. doi:  10.3390/biomedicines12071572. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Izraiq M, Almousa E, Hammoudeh S, Sudqi M, Ahmed Y, Abu-Dhaim O, et al. Impact of diabetes mellitus on heart failure patients: insights from a comprehensive analysis and machine learning model using the Jordanian Heart Failure Registry. Int J Gen Med. (2024) 17:2253–64. doi:  10.2147/ijgm.s465169. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Arévalo-Lorido JC, Carretero-Gomez J, Rubini A, Félix-Redondo FJ, Robles Pérez Monteoliva NR, Hernández González M, et al. Temporal trends on the prevalence of renal disease and outcomes among patients with diabetes mellitus hospitalized by heart failure: findings from INCAex. Expert Rev Endocrinol Metab. (2024) 19:447–57. doi:  10.1080/17446651.2024.2365769. PMID: [DOI] [PubMed] [Google Scholar]
  • 20. Schupp T, Abumayyaleh M, Weidner K, Lau F, Reinhardt M, Abel N, et al. Prognostic implications of type 2 diabetes mellitus in heart failure with mildly reduced ejection fraction. J Clin Med. (2024) 13:472. doi:  10.3390/jcm13030742. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Valensi P. Evidence of a bi-directional relationship between heart failure and diabetes: a strategy for the detection of glucose abnormalities and diabetes prevention in patients with heart failure. Cardiovasc Diabetol. (2024) 23:354. doi:  10.1186/s12933-024-02436-3. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Vranken NPA, Li X, Bouman H, Mourmans SGJ, Achten A, Barandiarán Aizpurua A, et al. Temporal prevalence and prognostic impact of diabetes mellitus and albuminuria in heart failure with preserved ejection fraction. Cardiovasc Diabetol. (2025) 24:156. doi:  10.1186/s12933-025-02708-6. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23. Ohkuma T, Komorita Y, Peters SAE, Woodward M. Diabetes as a risk factor for heart failure in women and men: a systematic review and meta-analysis of 47 cohorts including 12 million individuals. Diabetologia. (2019) 62:1550–60. doi:  10.1007/s00125-019-4926-x. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Chandramouli C, Teng TK, Tay WT, Yap J, MacDonald MR, Tromp J, et al. Impact of diabetes and sex in heart failure with reduced ejection fraction patients from the Asian-Hf Registry. Eur J Heart Fail. (2019) 21:297–307. doi:  10.1002/ejhf.1358. PMID: [DOI] [PubMed] [Google Scholar]
  • 25. Tay JCK, Chia SY, Sim DKL, Chai P, Loh SY, Shum AKL, et al. Interaction of sex and diabetes in Asian patients with heart failure with mildly reduced left ventricular ejection fraction. Ann Acad Med Singap. (2022) 51:473–82. doi:  10.47102/annals-acadmedsg.2022113. PMID: [DOI] [PubMed] [Google Scholar]
  • 26. Kautzky-Willer A, Leutner M, Harreiter J. Sex differences in type 2 diabetes. Diabetologia. (2023) 66:986–1002. doi:  10.1007/s00125-023-05891-x. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27. Kautzky-Willer A, Harreiter J, Pacini G. Sex and gender differences in risk, pathophysiology and complications of type 2 diabetes mellitus. Endocr Rev. (2016) 37:278–316. doi:  10.1210/er.2015-1137. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28. Ramezankhani A, Azizi F, Hadaegh F. Sex differences in rates of change and burden of metabolic risk factors among adults who did and did not go on to develop diabetes: two decades of follow-up from the Tehran Lipid and Glucose Study. Diabetes Care. (2020) 43:3061–9. doi:  10.2337/dc20-1112. PMID: [DOI] [PubMed] [Google Scholar]
  • 29. Marsh ML, Oliveira MN, Vieira-Potter VJ. Adipocyte metabolism and health after the menopause: the role of exercise. Nutrients. (2023) 15:444. doi:  10.3390/nu15020444. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30. Twig G, Afek A, Shamiss A, Derazne E, Tzur D, Gordon B, et al. White blood cells count and incidence of type 2 diabetes in young men. Diabetes Care. (2013) 36:276–82. doi:  10.2337/dc11-2298. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31. Kashima S, Inoue K, Matsumoto M, Akimoto K. White blood cell count and C-reactive protein independently predicted incident diabetes: Yuport Medical Checkup Center Study. Endocr Res. (2019) 44:127–37. doi:  10.1080/07435800.2019.1589494. PMID: [DOI] [PubMed] [Google Scholar]
  • 32. Zhang H, Yang Z, Zhang W, Niu Y, Li X, Qin L, et al. White blood cell subtypes and risk of type 2 diabetes. J Diabetes Complications. (2017) 31:31–7. doi:  10.1016/j.jdiacomp.2016.10.029. PMID: [DOI] [PubMed] [Google Scholar]
  • 33. Collins AJ, Pitt B, Reaven N, Funk S, McGaughey K, Wilson D, et al. Association of serum potassium with all-cause mortality in patients with and without heart failure, chronic kidney disease, and/or diabetes. Am J Nephrol. (2017) 46:213–21. doi:  10.1159/000479802. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34. Mansi IA, Chansard M, Lingvay I, Zhang S, Halm EA, Alvarez CA. Association of statin therapy initiation with diabetes progression: a retrospective matched-cohort study. JAMA Intern Med. (2021) 181:1562–74. doi:  10.1001/jamainternmed.2021.5714. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35. Szlagor M, Dybiec J, Mlynarska E, Rysz J, Franczyk B. Chronic kidney disease as a comorbidity in heart failure. Int J Mol Sci. (2023) 24:2922. doi:  10.3390/ijms24032988. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36. Fan Y, Wu M, Li X, Zhao J, Shi J, Ding L, et al. Potassium levels and the risk of all-cause and cardiovascular mortality among patients with cardiovascular diseases: a meta-analysis of cohort studies. Nutr J. (2024) 23:8. doi:  10.1186/s12937-023-00888-z. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37. Hundemer GL, Sood MM. Hyperkalemia with Raas inhibition: mechanism, clinical significance, and management. Pharmacol Res. (2021) 172:105835. doi:  10.1016/j.phrs.2021.105835. PMID: [DOI] [PubMed] [Google Scholar]
  • 38. Grobbee DE, Filippatos G, Desai NR, Coats AJS, Pinto F, Rosano GMC, et al. Epidemiology and risk factors for hyperkalaemia in heart failure. ESC Heart Fail. (2024) 11:1821–40. doi:  10.1002/ehf2.14661. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39. Aikens RC, Zhao W, Saleheen D, Reilly MP, Epstein SE, Tikkanen E, et al. Systolic blood pressure and risk of type 2 diabetes: a Mendelian randomization study. Diabetes. (2017) 66:543–50. doi:  10.2337/db16-0868. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40. Mancusi C, Izzo R, di Gioia G, Losi MA, Barbato E, Morisco C. Insulin resistance the hinge between hypertension and type 2 diabetes. High Blood Press Cardiovasc Prev. (2020) 27:515–26. doi:  10.1007/s40292-020-00408-8. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41. Yang X, Chen J, Pan A, Wu JHY, Zhao F, Xie Y, et al. Association between higher blood pressure and risk of diabetes mellitus in middle-aged and elderly Chinese adults. Diabetes Metab J. (2020) 44:436–45. doi:  10.4093/dmj.2019.0081. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42. Przezak A, Bielka W, Pawlik A. Hypertension and type 2 diabetes-the novel treatment possibilities. Int J Mol Sci. (2022) 23:6500. doi:  10.3390/ijms23126500. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43. Sinha S, Haque M. Insulin resistance is cheerfully hitched with hypertension. Life (Basel). (2022) 12:564. doi:  10.3390/life12040564. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44. Li S, Yang B, Shang S, Jiang W. Association of hypertension and long-term blood pressure changes with new-onset diabetes in the elderly: a 10-year cohort study. Diabetes Obes Metab. (2025) 27:92–101. doi:  10.1111/dom.15986. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45. Yan Z, Xu Y, Li K, Liu L. Association between high-density lipoprotein cholesterol and type 2 diabetes mellitus: dual evidence from NHANES database and Mendelian randomization analysis. Front Endocrinol (Lausanne). (2024) 15:1272314. doi:  10.3389/fendo.2024.1272314. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46. Cao C, Hu H, Zheng X, Zhang X, Wang Y, He Y. Non-linear relationship between high-density lipoprotein cholesterol and incident diabetes mellitus: a secondary retrospective analysis based on a Japanese cohort study. BMC Endocr Disord. (2022) 22:163. doi:  10.1186/s12902-022-01074-8. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47. Zhu XW, Deng FY, Lei SF. Meta-analysis of atherogenic index of plasma and other lipid parameters in relation to risk of type 2 diabetes mellitus. Prim Care Diabetes. (2015) 9:60–7. doi:  10.1016/j.pcd.2014.03.007. PMID: [DOI] [PubMed] [Google Scholar]
  • 48. Sharafi M, Amiri Z, Pezeshki B, Mohsenpour MA, Eftekhari MH, Afrashteh S, et al. Predictive value of triglycerides to high-density lipoprotein cholesterol and triglyceride glycemic index for diabetes incidence in pre-diabetes patients: a prospective cohort study. J Health Popul Nutr. (2023) 42:67. doi:  10.1186/s41043-023-00410-5. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49. Cochran BJ, King TW, Chemello K, Thomas SR, Rye KA. HDL metabolism and function in diabetes mellitus. Nat Rev Endocrinol. (2026) 22:36–49. doi:  10.1038/s41574-025-01176-y. PMID: [DOI] [PubMed] [Google Scholar]
  • 50. Siebel AL, Heywood SE, Kingwell BA. HDL and glucose metabolism: current evidence and therapeutic potential. Front Pharmacol. (2015) 6:258. doi:  10.3389/fphar.2015.00258. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51. Grao-Cruces E, Lopez-Enriquez S, Martin ME, Montserrat-de la Paz S. High-density lipoproteins and immune response: A review. Int J Biol Macromol. (2022) 195:117–23. doi:  10.1016/j.ijbiomac.2021.12.009. PMID: [DOI] [PubMed] [Google Scholar]
  • 52. Bonilha I, Zimetti F, Zanotti I, Papotti B, Sposito AC. Dysfunctional high-density lipoproteins in type 2 diabetes mellitus: Molecular mechanisms and therapeutic implications. J Clin Med. (2021) 10:2233. doi:  10.3390/jcm10112233. PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Table S1

Multicollinearity diagnostics for variables included in the multivariable logistic regression model. NYHA, New York Heart Association; BMI, body mass index; SBP, systolic blood pressure; WBC, white blood cell; MONO, monocyte; SCr, serum creatinine; A/G ratio, albumin-to-globulin ratio; TBIL, total bilirubin; HDL-C, high-density lipoprotein cholesterol; ACEI, Angiotensin-Converting Enzyme Inhibitor; ARB, Angiotensin II Receptor Blocker.

Table1.docx (17.5KB, docx)
Supplementary Figure S1

Receiver operating characteristic curve and calibration curve of the multivariable logistic regression model. (A) ROC curve. (B) Calibration curve.

Image1.tif (2MB, tif)
Supplementary Figure S2

Performance evaluation of the XGBoost model. (A) ROC curves of the XGBoost model in the training set based on five-fold cross-validation. (B) ROC curve of the XGBoost model in the test set. (C) Calibration plot of the XGBoost model in the test set.

Image2.tif (1.7MB, tif)
Supplementary Figure S3

Performance evaluation of the Random Forest model. (A) ROC curves of the Random Forest model in the training set based on five-fold cross-validation. (B) ROC curve of the Random Forest model in the test set. (C) Calibration plot of the Random Forest model in the test set.

Image3.tif (1.7MB, tif)

Data Availability Statement

Publicly available datasets were analyzed in this study. This data can be found here: https://physionet.org/content/heart-failure-zigong/1.3/.


Articles from Frontiers in Endocrinology are provided here courtesy of Frontiers Media SA

RESOURCES