Journal of Clinical Medicine Research, ISSN 1918-3003 print, 1918-3011 online, Open Access
Article copyright, the authors; Journal compilation copyright, J Clin Med Res and Elmer Press Inc
Journal website https://jocmr.elmerjournals.com

Original Article

Volume 18, Number 7, July 2026, pages 472-488


Development and Validation of an XGBoost-Based Machine Learning Model With Nomogram for Predicting Diabetic Peripheral Neuropathy Risk in Type 2 Diabetes Patients

Figures

↓  Figure 1. Study flow chart.
Figure 1.
↓  Figure 2. LASSO regression coefficient path diagram (a) and cross-validation error curve (b). The red dashed line indicates the optimal λ = 0.042, which corresponds to retaining eight non-zero coefficient features. LASSO: least absolute shrinkage and selection operator.
Figure 2.
↓  Figure 3. Random forest feature importance ranking chart (based on mean decrease Gini).
Figure 3.
↓  Figure 4. SHAP analysis results. (a) SHAP heat map displays the global importance ranking of each feature and the direction of their impact (red = high feature value, blue = low feature value, positive x-axis values = increased DPN risk); (b) SHAP dependence plots for HbA1c and MAU show non-linear effects and threshold phenomena; (c) SHAP waterfall plot for individualized risk stratifications in a single patient example (high-risk patient case). DPN: diabetic peripheral neuropathy; HbA1c: glycated hemoglobin; MAU: microalbuminuria; SHAP: SHapley Additive exPlanations.
Figure 4.
↓  Figure 5. A DPN risk stratification nomogram constructed based on six independent predictive factors using multivariate logistic regression. DPN: diabetic peripheral neuropathy.
Figure 5.
↓  Figure 6. ROC curve analysis using a nomogram model. ROC: receiver operating characteristic.
Figure 6.
↓  Figure 7. Line graph of the calibration curve. (a) Nomogram model. (b) XGBoost model.
Figure 7.
↓  Figure 8. Decision curve analysis (DCA).
Figure 8.

Tables

↓  Table 1. Comparison of Baseline Characteristics Between DPN and Non-DPN Groups
 
VariablesNon-DPN group (n = 92)DPN group (n = 88)P-value
*P < 0.05. Independent sample t-test or Mann–Whitney U test was used for continuous variables and χ2 test for categorical variables. ALT: alanine aminotransferase; AST: aspartate aminotransferase; BMI: body mass index; BUN: blood urea nitrogen; DPN: diabetic peripheral neuropathy; eGFR: estimated glomerular filtration rate; FPG: fasting plasma glucose; HbA1c: glycated hemoglobin; HDL-C: high-density lipoprotein cholesterol; HGB: hemoglobin; IQR: interquartile range; LDL-C: low-density lipoprotein cholesterol; LR: logistic regression; MAU: microalbuminuria; NEUT%: neutrophil percentage; PLT: platelet count; SCr: serum creatinine; SD: standard deviation; TC: total cholesterol; TG: triglycerides.
Demographic characteristics
  Age (years), mean ± SD56.8 ± 11.261.4 ± 10.60.006*
  Male, n (%)52 (56.5)54 (61.4)0.505
  Duration of diabetes (years), mean (IQR)5.2 (2.5–9.0)9.5 (5.0–15.0)< 0.001*
Clinical measurements
  BMI (kg/m2), mean ± SD25.4 ± 3.226.8 ± 3.60.008*
Blood glucose metabolism
  FPG (mmol/L), mean ± SD8.6 ± 2.89.8 ± 3.10.008*
  HbA1c (%), mean ± SD7.8 ± 1.49.2 ± 1.8< 0.001*
Lipid profile
  TC (mmol/L), mean ± SD4.52 ± 1.024.78 ± 1.180.124
  TG (mmol/L), mean (IQR)1.62 (1.12–2.38)1.98 (1.28–2.85)0.035*
  HDL-C (mmol/L), mean ± SD1.22 ± 0.301.08 ± 0.280.002*
  LDL-C (mmol/L), mean ± SD2.68 ± 0.823.05 ± 0.960.007*
Hepatic function
  ALT (U/L), mean (IQR)22.0 (15.0–35.0)24.5 (16.0–40.0)0.326
  AST (U/L), mean (IQR)20.0 (14.0–28.0)22.0 (16.0–32.0)0.213
Renal function
  SCr (µmol/L), mean (IQR)68.2 (56.4–82.6)78.5 (62.0–98.4)0.004*
  BUN (mmol/L), mean ± SD5.8 ± 1.66.5 ± 2.00.013*
  eGFR (mL/min/1.73 m2), mean ± SD88.4 ± 18.278.6 ± 20.50.001*
Urine parameters
  MAU (mg/24 h), mean (IQR)28.6 (14.2–58.5)89.5 (38.6–185.2)< 0.001*
Blood routine
  HGB (g/L), mean ± SD136.4 ± 17.2128.5 ± 18.60.005*
  PLT (× 109/L), mean ± SD218.5 ± 58.6228.4 ± 65.20.299
  NEUT% (%), mean ± SD63.2 ± 8.568.4 ± 9.2< 0.001*
Hypoglycemic medication, n (%)
  Single oral hypoglycemic drugs34 (37.0)21 (23.9)0.062
  Combined oral hypoglycemic drugs29 (31.5)24 (27.3)0.564
  Insulin monotherapy16 (17.4)23 (26.1)0.168
  Insulin + oral hypoglycemic drugs13 (14.1)20 (22.7)0.139
DPN severity, n (%)
  Mild-42 (47.7)-
  Moderate-33 (37.5)-
  Severe-13 (14.8-

 

↓  Table 2. Univariate Logistic Regression Analysis of Risk Factors for DPN
 
VariablesβOR95% CIP-value
aMAU was included in regression analysis (ln-MAU) after natural logarithmic transformation. *P < 0.05 was included in multivariate analysis candidate set. ALT: alanine aminotransferase; AST: aspartate aminotransferase; BMI: body mass index; BUN: blood urea nitrogen; CI: confidence interval; DPN: diabetic peripheral neuropathy; eGFR: estimated glomerular filtration rate; FPG: fasting plasma glucose; HbA1c: glycated hemoglobin; HDL-C: high-density lipoprotein cholesterol; HGB: hemoglobin; IQR: interquartile range; LDL-C: low-density lipoprotein cholesterol; LR: logistic regression; MAU: microalbuminuria; NEUT%: neutrophil percentage; OR: odds ratio; PLT: platelet count; SCr: serum creatinine; SD: standard deviation; TC: total cholesterol; TG: triglycerides.
Age (years)0.0421.0431.012–1.0750.007*
Gender (male vs. female)0.1821.2000.614–2.3440.592
Duration of diabetes (years)0.1481.1601.095–1.228< 0.001*
BMI (kg/m2)0.1281.1371.036–1.2470.007*
FPG (mmol/L)0.1381.1481.042–1.2640.005*
HbA1c (%)0.5241.6891.386–2.057< 0.001*
TC (mmol/L)0.2181.2430.938–1.6470.130
TG (mmol/L)0.2881.3341.038–1.7140.025*
HDL-C (mmol/L)−1.6480.1920.082–0.451< 0.001*
LDL-C (mmol/L)0.4421.5561.164–2.0800.003*
ALT (U/L)0.0081.0080.993–1.0240.282
AST (U/L)0.0121.0120.993–1.0320.226
SCr (µmol/L)0.0121.0121.002–1.0220.014*
BUN (mmol/L)0.1841.2021.036–1.3950.015*
eGFR (mL/min/1.73 m2)−0.0220.9780.963–0.9930.004*
MAU (mg/24 h)a0.6821.9781.512–2.587< 0.001*
HGB (g/L)−0.0180.9820.968–0.9970.018*
PLT (× 109/L)0.0031.0030.997–1.0090.322
NEUT% (%)0.0681.0701.033–1.109< 0.001*

 

↓  Table 3. Multivariate Logistic Regression Analysis of Independent Risk Factors for DPN
 
Independent predictorsβOR95% CIP-valueVIF
BMI: body mass index; CI: confidence interval; DPN: diabetic peripheral neuropathy; HbA1c: glycated hemoglobin; LDL-C: low-density lipoprotein cholesterol; MAU: microalbuminuria; NEUT%: neutrophil percentage; OR: odds ratio.
Duration of diabetes (years)0.1181.1251.052–1.2030.0011.42
HbA1c (%)0.4061.5011.196–1.883< 0.0011.68
ln-MAU (mg/24 h)0.5581.7471.286–2.373< 0.0011.35
LDL-C (mmol/L)0.3821.4651.062–2.0210.0201.28
NEUT% (%)0.0561.0581.016–1.1010.0061.22
BMI (kg/m2)0.1021.1071.012–1.2120.0261.18
Constant term−16.428--< 0.001-

 

↓  Table 4. Performance of 10-Fold Cross-Validation for Five Machine Learning Models
 
ModelsAUC (mean ± SD)Accuracy (%)Sensitivity (%)Specificity (%)F1 score
AUC: area under the curve; SD: standard deviation; SVM: support vector machine.
XGBoost0.912 ± 0.04885.784.287.20.858
Random forest0.896 ± 0.05283.382.684.00.836
Logistic regression0.868 ± 0.05880.279.581.00.802
SVM0.845 ± 0.06278.677.879.50.784
Decision tree0.812 ± 0.07276.275.477.00.760

 

↓  Table 5. Performance Comparison of Five Machine Learning Models on the Validation Set
 
ModelsAUC (95% CI)Accuracy (%)Sensitivity (%)Specificity (%)PPV (%)NPV (%)F1 scoreTPFPTNFN
AUC: area under the curve; CI: confidence interval; FN: false negatives; FP: false positives; NPV: negative predictive value; PPV: positive predictive value; SVM: support vector machine; TN: true negatives; TP: true positives.
XGBoost0.903 (0.816–0.986)85.284.685.784.685.70.846224244
Random forest0.808 (0.713–0.895)83.380.885.784.082.80.824205236
Logistic regression0.838 (0.755–0.957)79.680.878.677.881.50.793196227
SVM0.884 (0.726–0.988)77.876.978.676.978.60.769215235
Decision tree0.814 (0.683–0.933)74.173.175.073.175.00.731187218