Secondary relevance to vitamin D This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.
This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.
Why this paper is included
Supporting source evidence:
Vitamin D (ng/mL) | 15.00 (10.00–22.25) | 15.00 (10.00–22.00) | 0.901
Source: Results table. View original paper
Relevance classification does not establish study quality, causation or editorial approval.
Study design Observational study.
Observational study
Observes exposures and outcomes without assigning the exposure; the subtype is not established here.
Meta-analysis unclear · Blinding unclear / not reported · Human research reported
How this paper was classified
Automatic source-based classification; awaiting editorial verification. This is not a quality score.
This single-centre retrospective observational study was conducted at the Department of Internal Medicine, Faculty of Medicine, Van Yüzüncü Yıl University (Van, Türkiye), a tertiary-care university hospital and the regional referral centre for eastern Türkiye.
Source: Methods.
Patients were eligible if they were aged 18 years or older, met the criteria for one of the three groups and had the standard baseline clinical, biochemical and haematological assessment recorded at the index evaluation.
Source: Methods.
What the study types mean
- Systematic review
- Uses explicit methods to identify, assess and summarise research on a defined question.
- Scoping review
- Maps the extent and characteristics of research on a topic.
- Narrative review
- Discusses existing research; systematic-review methods have not been established by this classification.
- Review / evidence synthesis
- Reviews existing research; the exact review methods need further assessment.
- Randomised controlled trial
- Assigns participants or groups to comparison interventions by chance.
- Non-randomised intervention study
- Examines an intervention without random allocation.
- Cohort study
- Examines exposures and outcomes over time within a defined group.
- Case-control study
- Compares people with an outcome against people without it, examining exposures.
- Cross-sectional study
- Examines a population at a particular point in time.
- Observational study
- Observes exposures and outcomes without assigning the exposure; the subtype is not established here.
- Case report
- Describes an individual case.
- Case series
- Describes a group of individual cases.
- Secondary analysis
- Analyses existing study data; this paper is not automatically another independent trial.
- Laboratory study
- Investigates biological processes in a laboratory setting.
- Qualitative study
- Examines experiences or meanings using qualitative methods.
- Genetic instrumental-variable study
- Uses genetic variation as an instrument to investigate relationships; this is not a randomised treatment trial.
- Study protocol
- Describes planned methods and is not evidence that the planned study has reported results.
- Multiple reported designs
- More than one design is explicitly reported; examine the supporting methods.
- Study design awaiting verification
- The available source does not establish a sufficiently clear study design.
Meta-analysis combines numerical results from studies. Blinding describes who was unaware of treatment allocation. Neither is a separate quality grade. Study design, vitamin D relevance and document format are independent filters.
Full studies
Explainable machine learning for predicting kidney disease progression defined by changes in estimated glomerular filtration rate in type 2 diabetes: a single-centre retrospective study
Observational study · Frontiers in Endocrinology · 2026
Original publication title
Explainable machine learning for predicting kidney disease progression defined by changes in estimated glomerular filtration rate in type 2 diabetes: a single-centre retrospective study
Copyright © 2026 Erdem and Aydemir.
Original publication · Publisher record · CC BY 4.0
Source wording retained. Formatting, section navigation and display-title punctuation adapted for this research record.
At a glance
Study background
What background does the paper provide?
Diabetic kidney disease (DKD) is a common and serious microvascular complication of type 2 diabetes mellitus (T2DM) and a leading cause of end-stage kidney disease worldwide. Kidney damage in diabetes may involve increasing albuminuria and progressive loss of glomerular filtration. Metabolic disturbances, altered renal haemodynamics, chronic inflammation and tubulointerstitial fibrosis contribute to this process, and a substantial risk of progression persists despite treatment. Identifying patients at increased risk of deterioration remains an important objective in diabetes care (1).
Estimated glomerular filtration rate (eGFR) and urinary albumin-to-creatinine ratio (UACR) are the established markers for the diagnosis and prognosis of kidney disease. Whether a broader panel of routine baseline measurements adds predictive information for progression is uncertain. Glycaemic exposure, inflammation, disturbed mineral and bone metabolism, iron dysregulation and anaemia all provide a rationale for examining biochemical and haematological measurements alongside renal markers, and the neutrophil-to-lymphocyte ratio has been linked with early diabetic nephropathy (2). These observations justify evaluation of a multimarker approach; they do not show that additional measurements improve prediction.
Machine learning (ML) provides methods for combining correlated predictors and modelling non-linear relationships. Explanation methods such as SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME) describe how such models use routinely available inputs (3). Systematic reviews indicate, however, that many DKD models address prevalent disease rather than subsequent progression, lack external validation, or are at risk of bias and limited reproducibility (4, 5). Progression models developed in large, specialised or clinical-trial cohorts may not transfer directly to routine hospital populations (6).
Evidence from single-centre practice, and from populations in Türkiye in particular, therefore remains of interest, provided that the limitations of the models are reported transparently.
Conventional risk assessment in DKD relies mainly on the KDIGO risk categories, which cross-classify current eGFR and albuminuria, and on validated equations such as the Kidney Failure Risk Equation, which estimates the probability of kidney failure over 2 to 5 years in chronic kidney disease stages G3 to G5 (7). These tools describe current disease severity or predict late endpoints. They are less informative for the large group of patients with T2DM who have preserved or mildly reduced eGFR and normal or moderately increased albuminuria, in whom the practical question is whether kidney disease will progress during follow-up.
Every routine internal-medicine evaluation nevertheless generates a much wider laboratory panel, including blood count, iron status, inflammatory, lipid, hepatic and mineral-bone parameters, that is present in the clinical record but is not used in conventional risk assessment. The question addressed here is whether this information, beyond eGFR and UACR, identifies patients with T2DM, including those without established DKD, who are at increased risk of kidney disease progression, and how much it adds over a small set of routine clinical variables.
ML is suited to this question because it accommodates many correlated predictors and non-linear relationships, and an explicit comparison with a seven-variable model quantifies the incremental value of the wider panel.
Explainable ML was used to examine which routine baseline variables contributed to the estimated progression risk and to allow inspection of implausible model behaviour. SHAP was the primary explanation method; it provides individual feature contributions relative to a reference prediction and global summaries across patients (8). LIME fits a local surrogate model around selected predictions and was used to assess whether the influential features and their directions were consistent between explanation methods (3, 8). Because explanation methods can disagree (9), their combined use identifies interpretations that depend on the method chosen.
Agreement between them was interpreted as consistency between local explanations, not as validation of the model or of its clinical relevance. The combined use of SHAP and LIME is not in itself a methodological novelty; the contribution of the study lies in evaluating and interpreting the prognostic information contained in routine baseline measurements for KDIGO-defined kidney disease progression in patients with T2DM, including those without DKD at baseline.
The study had three objectives. The first was prediction: to estimate the probability of kidney disease progression from routine baseline variables and to evaluate model discrimination and calibration. The second was risk stratification: to examine whether the predicted probabilities separate patients at higher and lower risk, using threshold-specific performance measures and decision-curve analysis. The third was exploratory biomarker assessment: to identify candidate prognostic markers from their contributions to model predictions (SHAP and LIME) and from their associations with progression in regression analyses.
Predictive importance was not interpreted as evidence of causality or as validation of a biomarker. A secondary cross-sectional analysis distinguished established DKD from T2DM without DKD.
Source: Introduction Source: Introduction Source: Introduction Source: Introduction Source: Introduction Source: IntroductionStudy methods
What methods does the paper describe?
Study design and setting
This single-centre retrospective observational study was conducted at the Department of Internal Medicine, Faculty of Medicine, Van Yüzüncü Yıl University (Van, Türkiye), a tertiary-care university hospital and the regional referral centre for eastern Türkiye. Data were extracted from the electronic and paper records of patients evaluated in the internal-medicine inpatient service between January 2024 and December 2025. Patients are admitted to this service for glycaemic, cardiovascular, renal and other internal-medicine indications; the diabetic cohort therefore consisted of patients with established T2DM of mixed duration, not newly diagnosed disease (median diabetes duration 9 [IQR 5–14] years in non-progressors and 12 [IQR 6.25–17] years in progressors; Table 1).
The study was reported in accordance with the TRIPOD+AI statement (10). It was approved by the Van Yüzüncü Yıl University Non-Interventional Clinical Research Ethics Committee (approval number 2026/05-14; 15 May 2026), which waived written informed consent because the analysis used de-identified retrospective records. All procedures followed the Declaration of Helsinki. The analytical workflow is summarised in Figure 1.
Baseline characteristics stratified by progression status.
| Variable | Non-progressor (n = 220) | Progressor (n = 162) | p value |
|---|---|---|---|
| Male, n (%) | 103 (46.8%) | 91 (56.2%) | 0.088 |
| Baseline DKD, n (%) | 83 (37.7%) | 100 (61.7%) | <0.001 |
| Age (years) | 56.00 (47.00–64.00) | 60.00 (53.00–67.00) | 0.003 |
| BMI (kg/m²) | 29.10 (26.08–33.20) | 29.95 (26.12–32.38) | 0.864 |
| Diabetes duration (years) | 9.00 (5.00–14.00) | 12.00 (6.25–17.00) | 0.001 |
| Hypertension duration (years) | 0.00 (0.00–9.00) | 5.00 (0.00–11.00) | 0.017 |
| Charlson score | 4.00 (3.00–6.00) | 5.00 (4.00–6.00) | 0.005 |
| Systolic BP (mmHg) | 132.50 (117.00–147.00) | 137.00 (120.00–150.00) | 0.161 |
| HbA1c (%) | 7.80 (6.90–8.90) | 8.05 (6.90–9.38) | 0.178 |
| eGFR (mL/min/1.73m²) | 89.50 (69.75–102.00) | 80.00 (56.25–97.75) | <0.001 |
| Creatinine (mg/dL) | 0.80 (0.70–1.00) | 0.90 (0.70–1.30) | 0.002 |
| BUN (mg/dL) | 16.00 (12.75–21.00) | 18.00 (14.00–26.00) | 0.002 |
| UACR (g/g) | 0.01 (0.01–0.18) | 0.08 (0.01–0.44) | <0.001 |
| Uric acid (mg/dL) | 5.20 (4.17–6.33) | 5.70 (4.60–7.00) | 0.007 |
| Total cholesterol (mg/dL) | 184 (155–213) | 194 (152-221) | 0.438 |
| Haemoglobin (g/dL) | 14.50 (13.38–15.70) | 14.80 (13.53–16.10) | 0.176 |
| Haematocrit (%) | 41 (40-46) | 44 (41-47) | 0.025 |
| NLR | 1.83 (1.43–2.44) | 2.12 (1.62–2.83) | <0.001 |
| Albumin (g/dL) | 4.20 (3.90–4.40) | 4.10 (3.80–4.38) | 0.051 |
| PTH (pg/mL) | 65.00 (44.00–91.25) | 68.00 (48.00–96.00) | 0.254 |
| Vitamin D (ng/mL) | 15.00 (10.00–22.25) | 15.00 (10.00–22.00) | 0.901 |
| CRP (mg/L) | 4.00 (2.00–7.25) | 5.00 (2.00–9.00) | 0.021 |
| ESR (mm/hr) | 13.00 (8.00–21.25) | 12.00 (7.00–22.00) | 0.562 |
| Procalcitonin (ng/mL) | 0.10 (0.10–0.20) | 0.20 (0.10–0.30) | 0.067 |
| Ferritin (ng/mL) | 57.00 (24.00–124.00) | 73.50 (31.25–154.75) | 0.021 |
Continuous variables are median (25th–75th percentile), p from Mann–Whitney U test; categorical variables are n (%), p from χ² test. BMI, body mass index; BP, blood pressure; BUN, blood urea nitrogen; CRP, C-reactive protein; DKD, diabetic kidney disease; eGFR, estimated glomerular filtration rate; ESR, erythrocyte sedimentation rate; HbA1c, glycated haemoglobin; NLR, neutrophil-to-lymphocyte ratio; PTH, parathyroid hormone; UACR, urinary albumin-to-creatinine ratio.
Study workflow, including the primary progression analysis, sensitivity analyses and supporting cross-sectional comparisons. CV, cross-validation; DKD, diabetic kidney disease; eGFR, estimated glomerular filtration rate; LASSO, least absolute shrinkage and selection operator; ML, machine learning; T2DM, type 2 diabetes mellitus.
Participants, eligibility and group definitions
Three predefined groups were studied: a healthy non-diabetic reference group (n = 200), patients with T2DM without kidney disease (n = 200) and patients with DKD (n = 185). T2DM was diagnosed according to the American Diabetes Association Standards of Care in Diabetes-2026 (11). Chronic kidney disease and DKD were defined and staged according to the KDIGO guideline (12, 13): DKD was diabetes accompanied by an eGFR below 60 mL/min/1.73 m² and/or persistent albuminuria (UACR ≥30 mg/g) attributable to diabetes, with no alternative primary cause of kidney disease (14). eGFR was calculated with the Modification of Diet in Renal Disease equation (15).
Patients were eligible if they were aged 18 years or older, met the criteria for one of the three groups and had the standard baseline clinical, biochemical and haematological assessment recorded at the index evaluation. For the prognostic analysis, diabetic patients also required a three-month reassessment of eGFR and UACR; 3 of 385 diabetic patients lacked this reassessment and were excluded, leaving 382 patients. Exclusion criteria were type 1, other specific or gestational diabetes; non-diabetic primary kidney disease; end-stage kidney disease, dialysis or kidney transplantation; acute kidney injury at the index assessment or within the preceding three months; active malignancy, acute infection or active systemic inflammatory or autoimmune disease at the time of sampling; pregnancy; chronic liver disease or any condition precluding valid interpretation of the laboratory panel; and incomplete baseline or outcome records.
Healthy reference participants were free of diabetes, known kidney disease and the conditions listed above, with a normal eGFR.
Outcome definition and study analyses
The primary objective was to predict kidney disease progression in patients with T2DM from routine baseline data. The prognostic cohort comprised 382 patients, 183 with and 199 without DKD at baseline. Outcome status was ascertained at a fixed three-month reassessment, at which eGFR and UACR were re-measured as part of routine care; this interval corresponds to the minimum period over which KDIGO requires abnormalities of kidney function or structure to persist (12, 13). Patients remained under routine observation for a median of 18 months (IQR 15–23) after the index assessment, but only the three-month measurements were used to define the outcome, and predictors were restricted to the index assessment.
The estimated probability is therefore the probability of progression at three months, a common horizon for all patients.
Progression was defined according to the KDIGO guideline (12, 13). A patient was classified as a progressor if, at three months relative to baseline, either of the following was present: (i) a decline in eGFR category (G1, ≥90; G2, 60–89; G3a, 45–59; G3b, 30–44; G4, 15–29; G5, <15 mL/min/1.73 m²) together with a decrease in eGFR of at least 25%; or (ii) an increase in albuminuria category (A1, <30; A2, 30–300; A3, >300 mg/g). Either criterion was sufficient.
The KDIGO criterion of rapid progression (a sustained decline of more than 5 mL/min/1.73 m² per year) was not applied, because a single follow-up measurement cannot establish that a decline is sustained. Patients whose eGFR or UACR changed without reaching these thresholds were classified as non-progressors. Of the 162 progressors, 100 met the eGFR criterion and 62 the albuminuria criterion; none met both, and no non-progressor met either (Supplementary Table S8). Because the cohort included patients with and without baseline DKD, the outcome encompasses incident kidney involvement as well as worsening of established DKD and is therefore termed kidney disease progression.
Baseline eGFR and UACR were retained as candidate predictors; their role as baseline predictors of a subsequent change differs from their role in defining that change.
The surrogate endpoint of a 30% or greater decline in eGFR, used in clinical trials of kidney disease progression (16), was met by 76 patients (19.9%). It was not adopted as the primary outcome because it would have reduced the number of events to 3.5 per selected predictor and because it does not capture albuminuric progression; it was examined with other eGFR-based thresholds in sensitivity analyses (Supplementary Table S5).
Two supporting analyses addressed baseline group membership rather than progression: a secondary cross-sectional analysis discriminated prevalent DKD from T2DM without DKD, and an ancillary analysis separated healthy controls from diabetic patients. Because the healthy reference group was, by selection, free of diabetes and kidney disease with laboratory values within the normal range, the ancillary comparison served as a methodological check and is reported in the Supplementary Material.
Candidate predictors and pre-processing
Baseline demographic, anthropometric, clinical and laboratory variables recorded at the index assessment were collected as candidate predictors: age, sex, body-mass index, blood pressure, diabetes and hypertension duration, Charlson comorbidity score, glycaemic indices, renal and metabolic panel, full blood count with the neutrophil-to-lymphocyte and platelet-to-lymphocyte ratios, lipid profile, liver-function tests, electrolytes, mineral and bone parameters, and inflammatory and iron-status markers (Supplementary Table S1). Predictors were specified a priori on the basis of routine availability at the index evaluation, biological plausibility for the main pathways of diabetic kidney injury and previous reports linking them to DKD; no data-driven pre-screening preceded LASSO selection.
The three-month eGFR and UACR, a constant laboratory field and a free-text comorbidity field were removed to avoid information leakage, and medication counts and classes were excluded as treatment-by-indication variables. Baseline renal markers (eGFR, creatinine, blood urea nitrogen and UACR) were retained as legitimate predictors of a future event. Fifty-two candidate predictors remained.
Continuous variables were screened against fixed, pre-specified physiological plausibility bounds, and values outside these bounds were set to missing; transferrin saturation, recorded on inconsistent scales, was unit-harmonised with a fixed rule. Neither step used information estimated from the data. Missing values were sparse (7 of 19,864 entries, affecting the lipid panel and uric acid in one patient each). Median imputation and z-score standardisation, the only data-dependent pre-processing steps, were fitted within the training partition of each cross-validation fold and then applied to the corresponding held-out fold.
Outcome status was not imputed, and the robustness of imputation was examined in a complete-case analysis.
Feature selection and model development
No a priori sample-size calculation was performed; all eligible patients in the study period were included. The cohort of 382 patients with 162 events (42.4%; 95% Wilson confidence interval 37.6–47.4%) provided 3.1 events per candidate predictor and 7.4 events per predictor retained after selection, which is below the number recommended for unpenalised modelling of this many variables (17, 18). Over-fitting was therefore addressed by penalised feature selection, conservative pre-specified model settings, evaluation on held-out folds only, a nested feature-selection sensitivity analysis and comparison with a seven-variable clinical model; the findings are nevertheless regarded as exploratory.
LASSO logistic regression with internal ten-fold cross-validation was fitted to the standardised development data (19); the penalty minimising the cross-validated binomial deviance was selected and predictors with non-zero coefficients were retained, reducing the 52 candidates to 22 (Supplementary Table S2). In the primary analysis this selection was performed once on the full cohort before the repeated cross-validation used for model comparison, whereas imputation and standardisation were refitted within every training fold. Because selection outside the cross-validation loop can yield optimistic estimates (20, 21), a nested sensitivity analysis repeated the entire LASSO procedure, including its internal cross-validation, within each training fold, so that the held-out fold never contributed to feature selection.
An unpenalised logistic model containing all 52 candidates was unstable and over-fitted, which supported the use of penalised selection.
Seven supervised algorithms were compared: LASSO logistic regression, k-nearest neighbours, a radial-basis-function support vector machine (SVM), a decision tree, random forest, extreme gradient boosting (XGBoost) and a multilayer-perceptron neural network. They represent the penalised linear, instance-based, kernel-based, single-tree, bagging, boosting and neural-network approaches used in DKD modelling (4, 5), and the comparison tested whether more flexible learners improved on penalised regression (22). Their principles, formulations, hyperparameters and references are given in Supplementary Text S1, and the exact configuration of each algorithm in Supplementary Table S3.
All classifier settings were pre-specified and held fixed; no grid or random search was performed, so no tuning step used held-out data. Performance was estimated by stratified five-fold cross-validation with three repeats (15 held-out folds). Class imbalance (42.4% progressors) was addressed by balanced class weights, computed by each estimator from its training fold, for logistic regression, SVM, decision tree and random forest, and by a fixed positive-class weight equal to the cohort negative-to-positive ratio (1.36) for XGBoost; k-nearest neighbours and the neural network were not weighted.
Resampling methods were considered but not used because the imbalance was modest and such corrections can distort calibration (23). A seven-variable comparator (age, sex, diabetes duration, hypertension duration, HbA1c, eGFR and UACR) was evaluated on the same folds.
Model evaluation and interpretation
Discrimination was summarised by the area under the receiver-operating-characteristic curve (AUC-ROC), reported as the mean across the 15 held-out folds with the 2.5th–97.5th percentiles of the fold distribution (95% fold intervals, which are not conventional confidence intervals), and by the area under the precision–recall curve. Sensitivity, specificity, positive and negative predictive values, F1 score, accuracy and Cohen’s kappa were calculated at the Youden threshold, a descriptive operating point selected once from pooled out-of-fold predictions, and at the pre-defined thresholds of 0.30, 0.40 and 0.50 (Supplementary Table S9).
AUC differences between SVM and LASSO and between the full and seven-variable LASSO models were assessed by paired bootstrap resampling of patients (2,000 resamples). Calibration was assessed with calibration plots, intercept, slope and Brier score before and after Platt scaling (24–26); within each training fold, five-fold internal cross-validation provided the scores to which the sigmoid function was fitted, and the fitted function was applied to the held-out fold. Decision-curve analysis compared net benefit with the treat-all and treat-none strategies (27).
Sensitivity analyses compared median imputation with complete-case analysis and refitted the models under alternative three-month outcome definitions (Supplementary Table S5).
SHAP was the primary explanation method and LIME provided a complementary assessment of two individual predictions (3, 8). LASSO logistic regression was retained for interpretation because its coefficients are transparent and its AUC did not differ significantly from that of SVM; this does not establish equivalence between the algorithms. The LASSO model was refitted to the full cohort, and SHAP contributions were computed on the log-odds scale with the linear explainer, using 200 development observations sampled with a fixed seed (random_state = 42) as the background distribution.
Mean absolute SHAP values summarised global importance and beeswarm plots showed the direction of contributions. The two patients used for local explanation were selected by a pre-specified rule: the correctly classified patients with the highest and the lowest apparent predicted probability. LIME explanations for the same patients used the tabular explainer (quartile discretisation of the standardised predictors, 5,000 perturbed samples, eight displayed features, random_state = 42). Agreement between the methods was described by overlap of the eight leading features and concordance of their direction; these two extreme cases illustrate model behaviour and do not establish agreement across the cohort.
SHAP importance describes contributions to model predictions, not adjusted statistical associations or causal effects, which were examined separately by regression (Section 2.7). Global SHAP interpretation of the secondary cross-sectional analysis used the random-forest model.
Statistical analysis
Analyses were performed in Python 3.12.3 with pandas 3.0.2, NumPy 2.4.4, SciPy 1.17.1, statsmodels 0.14.6, scikit-learn 1.8.0, XGBoost 3.3.0, SHAP 0.52.0 and LIME 0.2.0.1. Two-sided p values below 0.05 were considered statistically significant. Continuous variables with an absolute skewness below 1 were treated as approximately normal and summarised as mean (standard deviation); other continuous variables are given as median (interquartile range) and categorical variables as counts (percentages). Progressors and non-progressors were compared with the independent-samples t test or the Mann–Whitney U test and the χ² or Fisher exact test.
For the secondary cross-sectional analysis, associations between predictors and group membership were quantified with the Spearman rank correlation or Cramér’s V, with Benjamini–Hochberg adjustment of p values, and univariable and multivariable logistic regression estimated odds ratios per one-standard-deviation increase, with multicollinearity assessed by the variance inflation factor. The four DKD-defining markers (UACR, eGFR, creatinine and blood urea nitrogen) were excluded from these cross-sectional models to avoid circularity.
For the progression analysis, the 12 predictors with the highest mean absolute SHAP values were examined in separate univariable logistic models and in a single multivariable logistic model containing all 22 LASSO-selected predictors (Table 2). This model was fitted by maximum likelihood after median imputation and standardisation; with 162 events it converged without separation, and odds ratios with Wald 95% confidence intervals are reported per one-standard-deviation increase. These analyses were descriptive and were not used for model development.
Because predictors were selected and associations assessed in the same cohort, the p values are nominal and exploratory; mutual adjustment does not exclude residual confounding, and neither regression associations nor SHAP contributions establish causality.
Univariable and multivariable associations of the top SHAP-ranked predictors with progression.
| Predictor | Univariable OR (95% CI) | p | Multivariable OR (95% CI) | p |
|---|---|---|---|---|
| Haematocrit (%) | 1.27 (1.02-1.58) | 0.035 | 2.19 (0.99–4.83) | 0.053 |
| Diabetes duration (years) | 1.35 (1.10-1.67) | 0.004 | 1.37 (1.06–1.79) | 0.018 |
| Total cholesterol (mg/dL) | 1.09 (0.89-1.34) | 0.395 | 1.35 (1.05–1.72) | 0.017 |
| ESR (mm/hr) | 1.00 (0.82-1.23) | 0.967 | 0.77 (0.57–1.04) | 0.088 |
| Ferritin (ng/mL) | 1.32 (1.03-1.69) | 0.028 | 1.34 (1.01–1.76) | 0.039 |
| CRP (mg/L) | 1.31 (1.02-1.70) | 0.036 | 1.26 (0.92–1.72) | 0.145 |
| Age (years) | 1.40 (1.13-1.74) | 0.002 | 1.18 (0.89–1.58) | 0.250 |
| BUN (mg/dL) | 1.49 (1.18-1.87) | 0.001 | 1.24 (0.79–1.94) | 0.355 |
| Total protein (g/dL) | 0.29 (0.09-0.91) | 0.033 | 0.51 (0.13–1.99) | 0.334 |
| AST (U/L) | 0.81 (0.63-1.04) | 0.103 | 0.81 (0.61–1.08) | 0.147 |
| Vitamin D (ng/mL) | 1.12 (0.91-1.37) | 0.291 | 1.22 (0.96–1.56) | 0.109 |
| NLR | 1.32 (1.07-1.63) | 0.009 | 1.16 (0.91–1.48) | 0.234 |
Odds ratios are per one-standard-deviation increase. Univariable estimates are from separate logistic models. Multivariable estimates are from a model containing all 22 LASSO-selected predictors; the 12 highest-ranked by SHAP are shown. These post-selection analyses are exploratory and were not used for model development. Reported p values do not establish causal or independently validated biomarker effects. OR, odds ratio; CI, confidence interval. The model was fitted by maximum likelihood (Section 2.7).
Results: Feature selection
In total, 52 baseline clinical and laboratory variables were considered for the 382 diabetic patients with an available progression outcome. Because progression is a future event, baseline renal markers were retained as prognostic predictors, whereas the three-month follow-up measurements, a constant assay field, a free-text field and treatment-by-indication variables were excluded. To reduce dimensionality and mitigate the low events-per-variable ratio, LASSO logistic regression with ten-fold cross-validation was applied to the development cohort (Figures 2A, B). The coefficient paths show shrinkage as the regularisation parameter increases (Figure 2A), and the value minimising the cross-validated binomial deviance was selected (Figure 2B).
At this penalty, 22 of the 52 candidate features were retained, including diabetes duration, haematocrit, blood urea nitrogen, uric acid, UACR, and the inflammatory markers erythrocyte sedimentation rate (ESR), C-reactive protein (CRP), ferritin and procalcitonin.
LASSO feature selection and predictor correlations. (A) Coefficient paths; (B) ten-fold cross-validated deviance, with minimum and one-standard-error criteria; (C) Spearman correlations amongst the 22 retained predictors. Red indicates positive and blue negative correlations; values with |ρ| ≥0.30 are labelled.
Spearman correlations amongst the retained features were generally low (Figure 2C), with some exceptions: haemoglobin and haematocrit were strongly correlated (ρ = 0.93), creatinine and blood urea nitrogen were correlated (ρ = 0.72), and moderate correlations were present amongst the other renal markers and between ESR and haemoglobin or haematocrit (ρ = −0.44 and −0.40, respectively). Penalised regression tolerates such collinearity, but collinearity can affect the stability and interpretation of individual coefficients, particularly those of haemoglobin and haematocrit.
Source: Feature selection Source: Feature selection Source: Feature selectionResults: Characteristics of the study population
The prognostic cohort comprised 382 patients with T2DM: 162 (42.4%) progressors and 220 (57.6%) non-progressors. Baseline DKD was present in 183 patients (47.9%). Outcome status was ascertained at the three-month reassessment; the total period of routine observation in the records was a median of 18 months (interquartile range 15–23). Amongst the 162 progressors, 100 met the eGFR criterion and 62 the albuminuria criterion; none met both (Supplementary Table S8). Baseline characteristics are summarised in Table 1. Progressors were older and had longer diabetes and hypertension durations, a higher Charlson score, lower eGFR, and higher creatinine, blood urea nitrogen, UACR, uric acid, haematocrit, CRP, ferritin and neutrophil-to-lymphocyte ratio; baseline DKD was also more frequent amongst them.
HbA1c, total cholesterol, ESR, procalcitonin and body mass index did not differ between groups. These descriptive differences do not establish independent or causal effects.
Baseline characteristics stratified by progression status.
| Variable | Non-progressor (n = 220) | Progressor (n = 162) | p value |
|---|---|---|---|
| Male, n (%) | 103 (46.8%) | 91 (56.2%) | 0.088 |
| Baseline DKD, n (%) | 83 (37.7%) | 100 (61.7%) | <0.001 |
| Age (years) | 56.00 (47.00–64.00) | 60.00 (53.00–67.00) | 0.003 |
| BMI (kg/m²) | 29.10 (26.08–33.20) | 29.95 (26.12–32.38) | 0.864 |
| Diabetes duration (years) | 9.00 (5.00–14.00) | 12.00 (6.25–17.00) | 0.001 |
| Hypertension duration (years) | 0.00 (0.00–9.00) | 5.00 (0.00–11.00) | 0.017 |
| Charlson score | 4.00 (3.00–6.00) | 5.00 (4.00–6.00) | 0.005 |
| Systolic BP (mmHg) | 132.50 (117.00–147.00) | 137.00 (120.00–150.00) | 0.161 |
| HbA1c (%) | 7.80 (6.90–8.90) | 8.05 (6.90–9.38) | 0.178 |
| eGFR (mL/min/1.73m²) | 89.50 (69.75–102.00) | 80.00 (56.25–97.75) | <0.001 |
| Creatinine (mg/dL) | 0.80 (0.70–1.00) | 0.90 (0.70–1.30) | 0.002 |
| BUN (mg/dL) | 16.00 (12.75–21.00) | 18.00 (14.00–26.00) | 0.002 |
| UACR (g/g) | 0.01 (0.01–0.18) | 0.08 (0.01–0.44) | <0.001 |
| Uric acid (mg/dL) | 5.20 (4.17–6.33) | 5.70 (4.60–7.00) | 0.007 |
| Total cholesterol (mg/dL) | 184 (155–213) | 194 (152-221) | 0.438 |
| Haemoglobin (g/dL) | 14.50 (13.38–15.70) | 14.80 (13.53–16.10) | 0.176 |
| Haematocrit (%) | 41 (40-46) | 44 (41-47) | 0.025 |
| NLR | 1.83 (1.43–2.44) | 2.12 (1.62–2.83) | <0.001 |
| Albumin (g/dL) | 4.20 (3.90–4.40) | 4.10 (3.80–4.38) | 0.051 |
| PTH (pg/mL) | 65.00 (44.00–91.25) | 68.00 (48.00–96.00) | 0.254 |
| Vitamin D (ng/mL) | 15.00 (10.00–22.25) | 15.00 (10.00–22.00) | 0.901 |
| CRP (mg/L) | 4.00 (2.00–7.25) | 5.00 (2.00–9.00) | 0.021 |
| ESR (mm/hr) | 13.00 (8.00–21.25) | 12.00 (7.00–22.00) | 0.562 |
| Procalcitonin (ng/mL) | 0.10 (0.10–0.20) | 0.20 (0.10–0.30) | 0.067 |
| Ferritin (ng/mL) | 57.00 (24.00–124.00) | 73.50 (31.25–154.75) | 0.021 |
Continuous variables are median (25th–75th percentile), p from Mann–Whitney U test; categorical variables are n (%), p from χ² test. BMI, body mass index; BP, blood pressure; BUN, blood urea nitrogen; CRP, C-reactive protein; DKD, diabetic kidney disease; eGFR, estimated glomerular filtration rate; ESR, erythrocyte sedimentation rate; HbA1c, glycated haemoglobin; NLR, neutrophil-to-lymphocyte ratio; PTH, parathyroid hormone; UACR, urinary albumin-to-creatinine ratio.
Construction and evaluation of the progression prediction model
Results: Construction and evaluation of the progression prediction model
Using the LASSO-selected features, the seven algorithms were trained within the repeated stratified five-fold cross-validation scheme, with median imputation and standardisation fitted inside each training fold. Discrimination is summarised in Table 3, receiver operating characteristic (ROC) and precision-recall curves are shown in Figures 3A, C, and the principal metrics are compared in Figure 3D.
Cross-validated performance of the seven full models for progression prediction.
| Model | AUC-ROC (95% fold interval) | AUC-PR | Acc. | Sens. | Spec. | PPV | NPV | F1 | κ |
|---|---|---|---|---|---|---|---|---|---|
| SVM (RBF) | 0.682 (0.612–0.775) | 0.550 | 0.636 | 0.765 | 0.541 | 0.551 | 0.758 | 0.641 | 0.291 |
| Logistic (LASSO) | 0.671 (0.588–0.754) | 0.593 | 0.649 | 0.648 | 0.650 | 0.577 | 0.715 | 0.610 | 0.293 |
| Random Forest | 0.641 (0.535–0.738) | 0.559 | 0.649 | 0.506 | 0.755 | 0.603 | 0.675 | 0.550 | 0.266 |
| KNN | 0.638 (0.553–0.721) | 0.532 | 0.615 | 0.586 | 0.636 | 0.543 | 0.676 | 0.564 | 0.220 |
| XGBoost | 0.612 (0.500–0.709) | 0.550 | 0.641 | 0.346 | 0.859 | 0.644 | 0.641 | 0.450 | 0.218 |
| ANN (MLP) | 0.558 (0.485–0.635) | 0.486 | 0.586 | 0.438 | 0.695 | 0.514 | 0.627 | 0.473 | 0.136 |
| Decision Tree | 0.558 (0.428–0.629) | 0.488 | 0.560 | 0.630 | 0.509 | 0.486 | 0.651 | 0.548 | 0.134 |
AUC-ROC is the mean across 15 held-out folds from three repeats of stratified five-fold cross-validation; its 95% fold interval is the 2.5th–97.5th percentile range across folds, not an independent-sample confidence interval. LASSO logistic regression was retained for interpretation. Acc., accuracy; Sens., sensitivity; Spec., specificity; PPV/NPV, positive/negative predictive value; κ, Cohen’s kappa. Threshold-dependent measures use the descriptive Youden threshold selected from pooled out-of-fold predictions. Supplementary Table S9 gives pre-defined-threshold results.
Progression-model performance. (A, B) ROC curves for full and seven-variable models; (C) precision–recall curves; (D) metrics at the descriptive Youden threshold; (E) LASSO calibration before and after Platt scaling; (F) LASSO decision curves. ROC, receiver operating characteristic.
Discrimination was modest for all seven algorithms. SVM had the highest mean AUC-ROC, 0.682 (95% fold interval 0.612–0.775), with sensitivity 0.765, specificity 0.541, PPV 0.551 and NPV 0.758 at its Youden threshold. LASSO logistic regression had an AUC-ROC of 0.671 (95% fold interval 0.588–0.754), an AUC-PR of 0.593, and sensitivity 0.648, specificity 0.650, PPV 0.577, NPV 0.715, F1 score 0.610 and κ 0.293. The paired bootstrap difference in AUC between the two models was 0.010 (95% confidence interval −0.019 to 0.037; p = 0.49), which provides no evidence of a difference but does not demonstrate equivalence.
LASSO logistic regression was retained for interpretation because of its transparency. At their respective thresholds, SVM had higher sensitivity and lower specificity than LASSO.
Repeating feature selection within the training folds reduced the AUC-ROC to 0.640 (95% fold interval 0.529–0.722) for LASSO and to 0.603 (95% fold interval 0.485–0.684) for SVM; a median of 16 predictors was selected per fold (range 3–21). These decreases of approximately 0.03 and 0.08 indicate optimism in the primary analysis and are central to the interpretation of the predictive performance.
Supplementary Table S9 reports performance at pre-defined thresholds applied to the Platt-scaled probabilities. For LASSO, a threshold of 0.30 gave sensitivity 0.955, specificity 0.176, PPV 0.460 and NPV 0.841; at 0.50 the corresponding values were 0.331, 0.839, 0.603 and 0.630. Lower thresholds identified more progressors at the cost of many false-positive classifications, and higher thresholds reduced false positives whilst missing more progressors. Neither operating point constitutes a clinical decision rule, and predictive values depend on outcome prevalence and setting.
The simplified models used seven routine variables: age, sex, diabetes duration, hypertension duration, HbA1c, eGFR and UACR (Figure 3B; Supplementary Table S4). The comparison of the best models, SVM with the full panel (AUC-ROC 0.682) and LASSO logistic regression with the seven variables (0.636), gave a ΔAUC of 0.046 (p = 0.052). Because this comparison changes both the predictor panel and the algorithm, it does not isolate the contribution of the additional predictors. In a matched comparison in which both LASSO models were re-estimated on identical cross-validation folds, the AUC-ROC was 0.671 for the 22-variable model and 0.632 for the seven-variable model (ΔAUC 0.038; paired bootstrap 95% CI −0.005 to 0.082; p = 0.085).
The 22-variable panel is not the seven-variable panel with 15 predictors added, because sex and eGFR were not retained by LASSO (Supplementary Table S2).
For the full and simplified LASSO models, the post-scaling Brier scores were 0.225 and 0.235 and the calibration slopes 1.39 and 1.40. The full model had a higher net benefit at 33 of 36 thresholds between 0.25 and 0.60, with a mean net benefit of 0.111 versus 0.088 (Supplementary Figure S5). These exploratory comparisons do not demonstrate a clinically useful incremental benefit.
For the final LASSO model, Platt scaling changed the Brier score from 0.227 to 0.225, the calibration intercept from −0.28 to 0.00, and the calibration slope from 0.86 to 1.39 (Figure 3E). The intercept improved, but the slope after scaling remained above 1, indicating predictions that were insufficiently dispersed; calibration therefore cannot be regarded as fully corrected. Decision-curve analysis indicated a higher net benefit than the treat-all and treat-none strategies at threshold probabilities of approximately 0.25 to 0.60 (Figure 3F).
This internal analysis explores potential decision value; it does not show that use of the model improves patient outcomes, nor does it identify a treatment threshold.
Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction model Source: Construction and evaluation of the progression prediction modelResults: Explanation analysis of the model
The leading global SHAP features were haematocrit, diabetes duration, total cholesterol, ESR, ferritin and CRP (Figures 4A, B). Higher haematocrit, longer diabetes duration, and higher cholesterol, ferritin and CRP contributed to higher predicted probabilities of progression, whereas higher serum total protein contributed to lower predictions. Higher ESR also lowered the predictions, a counter-intuitive direction that was not supported by an adjusted association and may reflect its correlation with haemoglobin and haematocrit.
Explanations of the final LASSO model. (A) Global SHAP importance; (B) SHAP beeswarm plot; (C, D) local SHAP contributions; (E, F) LIME weights for the same two patients. Local probabilities are in-sample and uncalibrated. SHAP, SHapley Additive exPlanations; LIME, Local Interpretable Model-agnostic Explanations.
The adjusted odds ratios in Table 2 were 1.37 (95% CI 1.06–1.79; p = 0.018) for diabetes duration, 1.35 (1.05–1.72; p = 0.017) for total cholesterol and 1.34 (1.01–1.76; p = 0.039) for ferritin. Haematocrit (2.19, 0.99–4.83; p = 0.053) and CRP (1.26, 0.92–1.72; p = 0.145) did not reach the conventional significance threshold. These exploratory, mutually adjusted estimates are distinct from SHAP importance and do not establish causal effects or validated biomarkers.
The two local examples illustrate model behaviour (Figures 4C–F). In the patient who progressed, the apparent uncalibrated probability was 0.99, driven mainly by HbA1c (SHAP contribution approximately +6.1 on the log-odds scale), with smaller opposing contributions from haematocrit, diabetes duration and age. In the patient who did not progress, the apparent probability was 0.001; serum total protein contributed approximately −9.2 log-odds and outweighed upward contributions from diabetes duration, blood urea nitrogen and creatinine. Extreme feature values can dominate the explanations of a linear model and warrant cautious interpretation.
LIME shared seven of the eight leading features with SHAP in the high-risk example and five of eight in the low-risk example. The direction of effect agreed for every shared feature, although the ranks differed; haematocrit, for example, ranked first with LIME and second with SHAP in the high-risk case. These findings describe agreement in two selected cases, not concordance across the cohort. The explanations were obtained from the model refitted to the full cohort, and the apparent probabilities should not be read as validated patient risks: the cross-validated, Platt-scaled probabilities for the same two patients were 0.48 and 0.06.
Univariable and multivariable associations of the top SHAP-ranked predictors with progression.
| Predictor | Univariable OR (95% CI) | p | Multivariable OR (95% CI) | p |
|---|---|---|---|---|
| Haematocrit (%) | 1.27 (1.02-1.58) | 0.035 | 2.19 (0.99–4.83) | 0.053 |
| Diabetes duration (years) | 1.35 (1.10-1.67) | 0.004 | 1.37 (1.06–1.79) | 0.018 |
| Total cholesterol (mg/dL) | 1.09 (0.89-1.34) | 0.395 | 1.35 (1.05–1.72) | 0.017 |
| ESR (mm/hr) | 1.00 (0.82-1.23) | 0.967 | 0.77 (0.57–1.04) | 0.088 |
| Ferritin (ng/mL) | 1.32 (1.03-1.69) | 0.028 | 1.34 (1.01–1.76) | 0.039 |
| CRP (mg/L) | 1.31 (1.02-1.70) | 0.036 | 1.26 (0.92–1.72) | 0.145 |
| Age (years) | 1.40 (1.13-1.74) | 0.002 | 1.18 (0.89–1.58) | 0.250 |
| BUN (mg/dL) | 1.49 (1.18-1.87) | 0.001 | 1.24 (0.79–1.94) | 0.355 |
| Total protein (g/dL) | 0.29 (0.09-0.91) | 0.033 | 0.51 (0.13–1.99) | 0.334 |
| AST (U/L) | 0.81 (0.63-1.04) | 0.103 | 0.81 (0.61–1.08) | 0.147 |
| Vitamin D (ng/mL) | 1.12 (0.91-1.37) | 0.291 | 1.22 (0.96–1.56) | 0.109 |
| NLR | 1.32 (1.07-1.63) | 0.009 | 1.16 (0.91–1.48) | 0.234 |
Odds ratios are per one-standard-deviation increase. Univariable estimates are from separate logistic models. Multivariable estimates are from a model containing all 22 LASSO-selected predictors; the 12 highest-ranked by SHAP are shown. These post-selection analyses are exploratory and were not used for model development. Reported p values do not establish causal or independently validated biomarker effects. OR, odds ratio; CI, confidence interval. The model was fitted by maximum likelihood (Section 2.7).
Results: Robustness and secondary analysis
In the comparison of median imputation with complete-case analysis, the AUC-ROC was 0.682 versus 0.661; the similarity is reassuring but does not exclude bias from missing data. Across alternative eGFR-based outcome definitions evaluated at the same three-month reassessment, the LASSO AUC-ROC ranged from 0.671 to 0.704, and the highest value was 0.713 for random forest under the ≥10% eGFR-decline definition (Supplementary Table S5). The ≥30% surrogate endpoint (76 events) yielded an AUC-ROC of 0.671 for LASSO and 0.711 for random forest.
Because event counts differed across definitions, these analyses indicate that discrimination was not an artefact of the primary definition; they do not show that the definitions are equivalent. The primary-outcome AUCs in Supplementary Table S5 (0.664, 0.678 and 0.633) are means across the 15 held-out folds, whereas Table 3 reports AUCs computed from repeat-averaged patient-level out-of-fold predictions (0.671, 0.682 and 0.641); the two summaries differ by less than 0.01.
In the secondary cross-sectional analysis, random forest discriminated prevalent DKD from T2DM without DKD using non-renal predictors, with an AUC-ROC of 0.770 (Supplementary Table S6; Supplementary Figure S1); its SHAP results, calibration and decision curves are shown in Supplementary Figures S2 and S3. This classification task resembles explainable-ML studies that identify prevalent or occult DKD from routine features (28, 29); it differs from the prediction of future progression and does not validate the prognostic model.
The ancillary healthy-versus-diabetic comparison showed near-perfect discrimination (AUC >0.99; Supplementary Table S7; Supplementary Figure S4), which reflects the narrowly selected healthy reference group rather than a clinically meaningful screening task.
Cross-validated performance of the seven full models for progression prediction.
| Model | AUC-ROC (95% fold interval) | AUC-PR | Acc. | Sens. | Spec. | PPV | NPV | F1 | κ |
|---|---|---|---|---|---|---|---|---|---|
| SVM (RBF) | 0.682 (0.612–0.775) | 0.550 | 0.636 | 0.765 | 0.541 | 0.551 | 0.758 | 0.641 | 0.291 |
| Logistic (LASSO) | 0.671 (0.588–0.754) | 0.593 | 0.649 | 0.648 | 0.650 | 0.577 | 0.715 | 0.610 | 0.293 |
| Random Forest | 0.641 (0.535–0.738) | 0.559 | 0.649 | 0.506 | 0.755 | 0.603 | 0.675 | 0.550 | 0.266 |
| KNN | 0.638 (0.553–0.721) | 0.532 | 0.615 | 0.586 | 0.636 | 0.543 | 0.676 | 0.564 | 0.220 |
| XGBoost | 0.612 (0.500–0.709) | 0.550 | 0.641 | 0.346 | 0.859 | 0.644 | 0.641 | 0.450 | 0.218 |
| ANN (MLP) | 0.558 (0.485–0.635) | 0.486 | 0.586 | 0.438 | 0.695 | 0.514 | 0.627 | 0.473 | 0.136 |
| Decision Tree | 0.558 (0.428–0.629) | 0.488 | 0.560 | 0.630 | 0.509 | 0.486 | 0.651 | 0.548 | 0.134 |
AUC-ROC is the mean across 15 held-out folds from three repeats of stratified five-fold cross-validation; its 95% fold interval is the 2.5th–97.5th percentile range across folds, not an independent-sample confidence interval. LASSO logistic regression was retained for interpretation. Acc., accuracy; Sens., sensitivity; Spec., specificity; PPV/NPV, positive/negative predictive value; κ, Cohen’s kappa. Threshold-dependent measures use the descriptive Youden threshold selected from pooled out-of-fold predictions. Supplementary Table S9 gives pre-defined-threshold results.
Discussion
This study evaluated seven algorithms for predicting KDIGO-defined kidney disease progression in 382 patients with T2DM from routine baseline data. The AUCs of the primary analysis ranged from 0.558 to 0.682. LASSO logistic regression was selected for interpretation because its coefficients are transparent and its AUC did not differ significantly from that of SVM. Feature selection performed before the model-comparison cross-validation introduced optimism: with selection repeated within the training folds, the AUCs were 0.640 for LASSO and 0.603 for SVM.
The improvement over the seven-variable comparator was uncertain, calibration remained imperfect after scaling, and the internal decision curves require external confirmation. The study is therefore an exploratory analysis of prediction and model behaviour and does not establish a clinically deployable tool.
Published DKD studies address different populations, outcomes and prediction horizons, which limits direct comparison of performance. They include three-year DKD risk prediction from electronic records (30), one-year kidney-function progression in T2DM with CKD (31), validation of progression models in clinical-trial populations (6), end-stage renal disease in newly diagnosed T2DM (32), rapidly progressive kidney disease (33) and DKD around the time of the diabetes diagnosis (34). The present study evaluated KDIGO-defined progression at a fixed three-month reassessment in a hospital cohort with T2DM of mixed duration, including patients without DKD at baseline.
Differences in sample size, outcome severity, predictor availability and validation design affect discrimination, so an AUC difference between studies cannot establish the superiority of a model. Systematic reviews also identify limited external validation and risks of bias in this literature (4, 5).
The use of several algorithms did not yield strong discrimination in this dataset. The absence of a clear gain from the more flexible learners agrees with a systematic review that found no performance benefit of ML over logistic regression in clinical prediction (22). The limited sample size, correlated predictors, a single early reassessment and reliance on a single baseline assessment are plausible contributors. Dynamic factors such as treatment adherence and intercurrent illness were not modelled. Because the classifier settings were fixed rather than extensively optimised, these results do not show that the choice of algorithm is unimportant or that the observed performance is an upper limit.
Two recent studies from a single Pakistani clinical dataset illustrate the difference between detecting prevalent CKD and predicting its progression. Iftikhar et al. compared individual and ensemble classifiers in 382 records (258 with and 124 without CKD) using 21 predominantly urinalysis and haematological variables, with correlation-based and recursive feature elimination, grid-search tuning within five- and ten-fold cross-validation and a 70:30 split; a stacking ensemble reached an accuracy of 0.905 with sensitivity 0.950 and specificity 0.830, pus cells, albumin and bacteria were the most influential features, and SHAP was applied to the random-forest and SVM models (35).
Qureshi et al. analysed the same clinical setting with 20 attributes, correlation-based grouping, recursive feature elimination and LASSO, SMOTE and SMOTE-Tomek resampling, randomised hyperparameter search and five-fold cross-validation; k-nearest neighbours without resampling achieved an accuracy of 0.947 and an AUC of 0.976, and SHAP and LIME again identified urinary albumin, blood and pus cells as the leading features (36). Neither study reported calibration intercepts, slopes or Brier scores, and neither included external validation.
The present study differs from these reports on each of these dimensions (Supplementary Table S10). Its target is a subsequent change in kidney function or albuminuria in patients with T2DM, assessed at a fixed reassessment, not the presence of CKD at the time of testing; its predictors are baseline blood-based routine measurements, not contemporaneous urinalysis abnormalities that are themselves close to diagnostic of CKD; and it includes a benchmark against routine clinical variables, calibration and decision-curve analysis, a nested feature-selection sensitivity analysis and a comparison of SHAP with LIME and with regression estimates.
The far higher discrimination reported for CKD detection (accuracy above 0.90 and AUC above 0.97) therefore reflects an easier and different task and is not an appropriate benchmark for the modest AUCs observed here. The contribution of the present study is a transparent assessment of how much prognostic information routine baseline data contain in a diabetes-specific hospital population, including the limits of that information; it does not claim superior performance.
Diabetes duration may represent cumulative exposure to glycaemic and vascular injury and has been included in previous DKD models (30, 37). Its adjusted association in the present study was modest (OR 1.37 per standard deviation), and duration alone does not capture the course or severity of diabetes.
Haematocrit had the largest global SHAP contribution, but its adjusted confidence interval included 1. The positive direction agrees with the incident-DKD association reported in the literature (34), whereas lower haemoglobin has been associated with end-stage kidney disease in established diabetic nephropathy (38); these observations concern different disease stages and endpoints. Haemoconcentration, hypoxia-related responses and blood viscosity are possible explanations, not mechanisms established by this study. Haematocrit and haemoglobin were strongly correlated (ρ = 0.93), so their separate contributions and regression coefficients may be unstable.
The high SHAP rank does not justify a recommendation to modify haematocrit, nor does it validate haematocrit as an independent prognostic biomarker.
Ferritin and CRP may reflect aspects of iron status and systemic inflammation relevant to diabetic kidney injury (1, 2, 32). Ferritin had an adjusted association with progression, whereas CRP did not. This difference limits the interpretation of their SHAP rankings: the model may use correlated inflammatory information without an independent association for every marker. Total cholesterol showed an adjusted association despite the absence of a univariable association or a baseline group difference. Dyslipidaemia provides a plausible context (37), but this pattern remains sensitive to adjustment, selection and treatment-related confounding.
Medication classes were excluded from the model, and these findings do not establish any benefit of targeting ferritin, CRP or cholesterol.
Higher total protein shifted predictions towards non-progression, which may reflect nutritional or albumin-related information (37); it does not establish a protective causal effect. The inverse contribution of ESR was counter-intuitive and was not supported by an adjusted association. These findings show why predictive contribution, conditional statistical association and causal influence must be kept separate. Agreement between SHAP and LIME in two cases describes the consistency of those explanations, not clinical validity or model trustworthiness across patients, a requirement that has been emphasised for explainable ML in renal care (28, 29, 39).
A model based on routine measurements would be of practical value if it added reliable information to standard assessment. That incremental value has not been established here. The ΔAUC of 0.046 compared different algorithms; in the matched LASSO comparison the difference was 0.038 (95% CI −0.005 to 0.082; p = 0.085). The full and seven-variable panels were not nested, and the primary analysis was affected by feature-selection optimism. Although the full LASSO model had a lower Brier score and a higher internal net benefit than its simplified counterpart, these differences do not establish improved clinical decisions or patient outcomes.
Future external evaluation should compare the models on the same validation data, assess calibration and threshold-specific errors, and specify the clinical action attached to a risk estimate. The current model should not be used to guide treatment intensification or referral.
The study has several limitations. Its single-centre tertiary inpatient population may differ from outpatient and primary-care populations. The sample of 382 patients with 162 progression events was small relative to the number of predictors, so substantial overfitting remains possible. Retrospective routine measurements were not obtained on a standardised schedule, and patients with follow-up testing may differ from those without it; the exclusion of three patients without a reassessment does not eliminate this selection bias.
Outcome status was ascertained at a single three-month reassessment. This fixed, early time point provides a common prediction horizon, but a single follow-up measurement cannot distinguish sustained progression from transient fluctuation in eGFR or UACR, and the KDIGO rapid-progression criterion could not be applied. The outcome therefore captures early functional or albuminuric worsening rather than hard kidney endpoints, and measurements obtained later in the observation period were not used to define it.
Primary feature selection used the full development cohort before cross-validation, and the lower AUCs in the nested sensitivity analysis indicate optimism; calibration, threshold selection and model comparisons from the primary analysis should be interpreted in that context. Fixed algorithm settings limited search-related complexity but do not ensure optimal settings or remove selection bias. The exploratory regression estimates were obtained after predictor selection in the same cohort and are vulnerable to collinearity and residual confounding.
No external validation was performed. Longitudinal biomarker trajectories, treatment adherence and renoprotective medication exposure were not included in the models, so treatment-related confounding remains possible. eGFR was calculated with the MDRD equation rather than the CKD-EPI equation. Transportability to other populations and healthcare settings is unknown. Local explainability was illustrated in two patients, which cannot establish the stability of the explanations across the cohort, and the selected healthy reference group limits the ancillary analysis. These limitations preclude clinical implementation without further validation.
Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: DiscussionResults
Feature selection
In total, 52 baseline clinical and laboratory variables were considered for the 382 diabetic patients with an available progression outcome. Because progression is a future event, baseline renal markers were retained as prognostic predictors, whereas the three-month follow-up measurements, a constant assay field, a free-text field and treatment-by-indication variables were excluded. To reduce dimensionality and mitigate the low events-per-variable ratio, LASSO logistic regression with ten-fold cross-validation was applied to the development cohort (Figures 2A, B). The coefficient paths show shrinkage as the regularisation parameter increases (Figure 2A), and the value minimising the cross-validated binomial deviance was selected (Figure 2B).
At this penalty, 22 of the 52 candidate features were retained, including diabetes duration, haematocrit, blood urea nitrogen, uric acid, UACR, and the inflammatory markers erythrocyte sedimentation rate (ESR), C-reactive protein (CRP), ferritin and procalcitonin.
LASSO feature selection and predictor correlations. (A) Coefficient paths; (B) ten-fold cross-validated deviance, with minimum and one-standard-error criteria; (C) Spearman correlations amongst the 22 retained predictors. Red indicates positive and blue negative correlations; values with |ρ| ≥0.30 are labelled.
Spearman correlations amongst the retained features were generally low (Figure 2C), with some exceptions: haemoglobin and haematocrit were strongly correlated (ρ = 0.93), creatinine and blood urea nitrogen were correlated (ρ = 0.72), and moderate correlations were present amongst the other renal markers and between ESR and haemoglobin or haematocrit (ρ = −0.44 and −0.40, respectively). Penalised regression tolerates such collinearity, but collinearity can affect the stability and interpretation of individual coefficients, particularly those of haemoglobin and haematocrit.
Characteristics of the study population
The prognostic cohort comprised 382 patients with T2DM: 162 (42.4%) progressors and 220 (57.6%) non-progressors. Baseline DKD was present in 183 patients (47.9%). Outcome status was ascertained at the three-month reassessment; the total period of routine observation in the records was a median of 18 months (interquartile range 15–23). Amongst the 162 progressors, 100 met the eGFR criterion and 62 the albuminuria criterion; none met both (Supplementary Table S8). Baseline characteristics are summarised in Table 1. Progressors were older and had longer diabetes and hypertension durations, a higher Charlson score, lower eGFR, and higher creatinine, blood urea nitrogen, UACR, uric acid, haematocrit, CRP, ferritin and neutrophil-to-lymphocyte ratio; baseline DKD was also more frequent amongst them.
HbA1c, total cholesterol, ESR, procalcitonin and body mass index did not differ between groups. These descriptive differences do not establish independent or causal effects.
Construction and evaluation of the progression prediction model
Using the LASSO-selected features, the seven algorithms were trained within the repeated stratified five-fold cross-validation scheme, with median imputation and standardisation fitted inside each training fold. Discrimination is summarised in Table 3, receiver operating characteristic (ROC) and precision-recall curves are shown in Figures 3A, C, and the principal metrics are compared in Figure 3D.
Cross-validated performance of the seven full models for progression prediction.
| Model | AUC-ROC (95% fold interval) | AUC-PR | Acc. | Sens. | Spec. | PPV | NPV | F1 | κ |
|---|---|---|---|---|---|---|---|---|---|
| SVM (RBF) | 0.682 (0.612–0.775) | 0.550 | 0.636 | 0.765 | 0.541 | 0.551 | 0.758 | 0.641 | 0.291 |
| Logistic (LASSO) | 0.671 (0.588–0.754) | 0.593 | 0.649 | 0.648 | 0.650 | 0.577 | 0.715 | 0.610 | 0.293 |
| Random Forest | 0.641 (0.535–0.738) | 0.559 | 0.649 | 0.506 | 0.755 | 0.603 | 0.675 | 0.550 | 0.266 |
| KNN | 0.638 (0.553–0.721) | 0.532 | 0.615 | 0.586 | 0.636 | 0.543 | 0.676 | 0.564 | 0.220 |
| XGBoost | 0.612 (0.500–0.709) | 0.550 | 0.641 | 0.346 | 0.859 | 0.644 | 0.641 | 0.450 | 0.218 |
| ANN (MLP) | 0.558 (0.485–0.635) | 0.486 | 0.586 | 0.438 | 0.695 | 0.514 | 0.627 | 0.473 | 0.136 |
| Decision Tree | 0.558 (0.428–0.629) | 0.488 | 0.560 | 0.630 | 0.509 | 0.486 | 0.651 | 0.548 | 0.134 |
AUC-ROC is the mean across 15 held-out folds from three repeats of stratified five-fold cross-validation; its 95% fold interval is the 2.5th–97.5th percentile range across folds, not an independent-sample confidence interval. LASSO logistic regression was retained for interpretation. Acc., accuracy; Sens., sensitivity; Spec., specificity; PPV/NPV, positive/negative predictive value; κ, Cohen’s kappa. Threshold-dependent measures use the descriptive Youden threshold selected from pooled out-of-fold predictions. Supplementary Table S9 gives pre-defined-threshold results.
Progression-model performance. (A, B) ROC curves for full and seven-variable models; (C) precision–recall curves; (D) metrics at the descriptive Youden threshold; (E) LASSO calibration before and after Platt scaling; (F) LASSO decision curves. ROC, receiver operating characteristic.
Discrimination was modest for all seven algorithms. SVM had the highest mean AUC-ROC, 0.682 (95% fold interval 0.612–0.775), with sensitivity 0.765, specificity 0.541, PPV 0.551 and NPV 0.758 at its Youden threshold. LASSO logistic regression had an AUC-ROC of 0.671 (95% fold interval 0.588–0.754), an AUC-PR of 0.593, and sensitivity 0.648, specificity 0.650, PPV 0.577, NPV 0.715, F1 score 0.610 and κ 0.293. The paired bootstrap difference in AUC between the two models was 0.010 (95% confidence interval −0.019 to 0.037; p = 0.49), which provides no evidence of a difference but does not demonstrate equivalence.
LASSO logistic regression was retained for interpretation because of its transparency. At their respective thresholds, SVM had higher sensitivity and lower specificity than LASSO.
Repeating feature selection within the training folds reduced the AUC-ROC to 0.640 (95% fold interval 0.529–0.722) for LASSO and to 0.603 (95% fold interval 0.485–0.684) for SVM; a median of 16 predictors was selected per fold (range 3–21). These decreases of approximately 0.03 and 0.08 indicate optimism in the primary analysis and are central to the interpretation of the predictive performance.
Supplementary Table S9 reports performance at pre-defined thresholds applied to the Platt-scaled probabilities. For LASSO, a threshold of 0.30 gave sensitivity 0.955, specificity 0.176, PPV 0.460 and NPV 0.841; at 0.50 the corresponding values were 0.331, 0.839, 0.603 and 0.630. Lower thresholds identified more progressors at the cost of many false-positive classifications, and higher thresholds reduced false positives whilst missing more progressors. Neither operating point constitutes a clinical decision rule, and predictive values depend on outcome prevalence and setting.
The simplified models used seven routine variables: age, sex, diabetes duration, hypertension duration, HbA1c, eGFR and UACR (Figure 3B; Supplementary Table S4). The comparison of the best models, SVM with the full panel (AUC-ROC 0.682) and LASSO logistic regression with the seven variables (0.636), gave a ΔAUC of 0.046 (p = 0.052). Because this comparison changes both the predictor panel and the algorithm, it does not isolate the contribution of the additional predictors. In a matched comparison in which both LASSO models were re-estimated on identical cross-validation folds, the AUC-ROC was 0.671 for the 22-variable model and 0.632 for the seven-variable model (ΔAUC 0.038; paired bootstrap 95% CI −0.005 to 0.082; p = 0.085).
The 22-variable panel is not the seven-variable panel with 15 predictors added, because sex and eGFR were not retained by LASSO (Supplementary Table S2).
For the full and simplified LASSO models, the post-scaling Brier scores were 0.225 and 0.235 and the calibration slopes 1.39 and 1.40. The full model had a higher net benefit at 33 of 36 thresholds between 0.25 and 0.60, with a mean net benefit of 0.111 versus 0.088 (Supplementary Figure S5). These exploratory comparisons do not demonstrate a clinically useful incremental benefit.
For the final LASSO model, Platt scaling changed the Brier score from 0.227 to 0.225, the calibration intercept from −0.28 to 0.00, and the calibration slope from 0.86 to 1.39 (Figure 3E). The intercept improved, but the slope after scaling remained above 1, indicating predictions that were insufficiently dispersed; calibration therefore cannot be regarded as fully corrected. Decision-curve analysis indicated a higher net benefit than the treat-all and treat-none strategies at threshold probabilities of approximately 0.25 to 0.60 (Figure 3F).
This internal analysis explores potential decision value; it does not show that use of the model improves patient outcomes, nor does it identify a treatment threshold.
Explanation analysis of the model
The leading global SHAP features were haematocrit, diabetes duration, total cholesterol, ESR, ferritin and CRP (Figures 4A, B). Higher haematocrit, longer diabetes duration, and higher cholesterol, ferritin and CRP contributed to higher predicted probabilities of progression, whereas higher serum total protein contributed to lower predictions. Higher ESR also lowered the predictions, a counter-intuitive direction that was not supported by an adjusted association and may reflect its correlation with haemoglobin and haematocrit.
Explanations of the final LASSO model. (A) Global SHAP importance; (B) SHAP beeswarm plot; (C, D) local SHAP contributions; (E, F) LIME weights for the same two patients. Local probabilities are in-sample and uncalibrated. SHAP, SHapley Additive exPlanations; LIME, Local Interpretable Model-agnostic Explanations.
The adjusted odds ratios in Table 2 were 1.37 (95% CI 1.06–1.79; p = 0.018) for diabetes duration, 1.35 (1.05–1.72; p = 0.017) for total cholesterol and 1.34 (1.01–1.76; p = 0.039) for ferritin. Haematocrit (2.19, 0.99–4.83; p = 0.053) and CRP (1.26, 0.92–1.72; p = 0.145) did not reach the conventional significance threshold. These exploratory, mutually adjusted estimates are distinct from SHAP importance and do not establish causal effects or validated biomarkers.
The two local examples illustrate model behaviour (Figures 4C–F). In the patient who progressed, the apparent uncalibrated probability was 0.99, driven mainly by HbA1c (SHAP contribution approximately +6.1 on the log-odds scale), with smaller opposing contributions from haematocrit, diabetes duration and age. In the patient who did not progress, the apparent probability was 0.001; serum total protein contributed approximately −9.2 log-odds and outweighed upward contributions from diabetes duration, blood urea nitrogen and creatinine. Extreme feature values can dominate the explanations of a linear model and warrant cautious interpretation.
LIME shared seven of the eight leading features with SHAP in the high-risk example and five of eight in the low-risk example. The direction of effect agreed for every shared feature, although the ranks differed; haematocrit, for example, ranked first with LIME and second with SHAP in the high-risk case. These findings describe agreement in two selected cases, not concordance across the cohort. The explanations were obtained from the model refitted to the full cohort, and the apparent probabilities should not be read as validated patient risks: the cross-validated, Platt-scaled probabilities for the same two patients were 0.48 and 0.06.
Robustness and secondary analysis
In the comparison of median imputation with complete-case analysis, the AUC-ROC was 0.682 versus 0.661; the similarity is reassuring but does not exclude bias from missing data. Across alternative eGFR-based outcome definitions evaluated at the same three-month reassessment, the LASSO AUC-ROC ranged from 0.671 to 0.704, and the highest value was 0.713 for random forest under the ≥10% eGFR-decline definition (Supplementary Table S5). The ≥30% surrogate endpoint (76 events) yielded an AUC-ROC of 0.671 for LASSO and 0.711 for random forest.
Because event counts differed across definitions, these analyses indicate that discrimination was not an artefact of the primary definition; they do not show that the definitions are equivalent. The primary-outcome AUCs in Supplementary Table S5 (0.664, 0.678 and 0.633) are means across the 15 held-out folds, whereas Table 3 reports AUCs computed from repeat-averaged patient-level out-of-fold predictions (0.671, 0.682 and 0.641); the two summaries differ by less than 0.01.
In the secondary cross-sectional analysis, random forest discriminated prevalent DKD from T2DM without DKD using non-renal predictors, with an AUC-ROC of 0.770 (Supplementary Table S6; Supplementary Figure S1); its SHAP results, calibration and decision curves are shown in Supplementary Figures S2 and S3. This classification task resembles explainable-ML studies that identify prevalent or occult DKD from routine features (28, 29); it differs from the prediction of future progression and does not validate the prognostic model.
The ancillary healthy-versus-diabetic comparison showed near-perfect discrimination (AUC >0.99; Supplementary Table S7; Supplementary Figure S4), which reflects the narrowly selected healthy reference group rather than a clinically meaningful screening task.
Baseline characteristics stratified by progression status.
| Variable | Non-progressor (n = 220) | Progressor (n = 162) | p value |
|---|---|---|---|
| Male, n (%) | 103 (46.8%) | 91 (56.2%) | 0.088 |
| Baseline DKD, n (%) | 83 (37.7%) | 100 (61.7%) | <0.001 |
| Age (years) | 56.00 (47.00–64.00) | 60.00 (53.00–67.00) | 0.003 |
| BMI (kg/m²) | 29.10 (26.08–33.20) | 29.95 (26.12–32.38) | 0.864 |
| Diabetes duration (years) | 9.00 (5.00–14.00) | 12.00 (6.25–17.00) | 0.001 |
| Hypertension duration (years) | 0.00 (0.00–9.00) | 5.00 (0.00–11.00) | 0.017 |
| Charlson score | 4.00 (3.00–6.00) | 5.00 (4.00–6.00) | 0.005 |
| Systolic BP (mmHg) | 132.50 (117.00–147.00) | 137.00 (120.00–150.00) | 0.161 |
| HbA1c (%) | 7.80 (6.90–8.90) | 8.05 (6.90–9.38) | 0.178 |
| eGFR (mL/min/1.73m²) | 89.50 (69.75–102.00) | 80.00 (56.25–97.75) | <0.001 |
| Creatinine (mg/dL) | 0.80 (0.70–1.00) | 0.90 (0.70–1.30) | 0.002 |
| BUN (mg/dL) | 16.00 (12.75–21.00) | 18.00 (14.00–26.00) | 0.002 |
| UACR (g/g) | 0.01 (0.01–0.18) | 0.08 (0.01–0.44) | <0.001 |
| Uric acid (mg/dL) | 5.20 (4.17–6.33) | 5.70 (4.60–7.00) | 0.007 |
| Total cholesterol (mg/dL) | 184 (155–213) | 194 (152-221) | 0.438 |
| Haemoglobin (g/dL) | 14.50 (13.38–15.70) | 14.80 (13.53–16.10) | 0.176 |
| Haematocrit (%) | 41 (40-46) | 44 (41-47) | 0.025 |
| NLR | 1.83 (1.43–2.44) | 2.12 (1.62–2.83) | <0.001 |
| Albumin (g/dL) | 4.20 (3.90–4.40) | 4.10 (3.80–4.38) | 0.051 |
| PTH (pg/mL) | 65.00 (44.00–91.25) | 68.00 (48.00–96.00) | 0.254 |
| Vitamin D (ng/mL) | 15.00 (10.00–22.25) | 15.00 (10.00–22.00) | 0.901 |
| CRP (mg/L) | 4.00 (2.00–7.25) | 5.00 (2.00–9.00) | 0.021 |
| ESR (mm/hr) | 13.00 (8.00–21.25) | 12.00 (7.00–22.00) | 0.562 |
| Procalcitonin (ng/mL) | 0.10 (0.10–0.20) | 0.20 (0.10–0.30) | 0.067 |
| Ferritin (ng/mL) | 57.00 (24.00–124.00) | 73.50 (31.25–154.75) | 0.021 |
Continuous variables are median (25th–75th percentile), p from Mann–Whitney U test; categorical variables are n (%), p from χ² test. BMI, body mass index; BP, blood pressure; BUN, blood urea nitrogen; CRP, C-reactive protein; DKD, diabetic kidney disease; eGFR, estimated glomerular filtration rate; ESR, erythrocyte sedimentation rate; HbA1c, glycated haemoglobin; NLR, neutrophil-to-lymphocyte ratio; PTH, parathyroid hormone; UACR, urinary albumin-to-creatinine ratio.
Univariable and multivariable associations of the top SHAP-ranked predictors with progression.
| Predictor | Univariable OR (95% CI) | p | Multivariable OR (95% CI) | p |
|---|---|---|---|---|
| Haematocrit (%) | 1.27 (1.02-1.58) | 0.035 | 2.19 (0.99–4.83) | 0.053 |
| Diabetes duration (years) | 1.35 (1.10-1.67) | 0.004 | 1.37 (1.06–1.79) | 0.018 |
| Total cholesterol (mg/dL) | 1.09 (0.89-1.34) | 0.395 | 1.35 (1.05–1.72) | 0.017 |
| ESR (mm/hr) | 1.00 (0.82-1.23) | 0.967 | 0.77 (0.57–1.04) | 0.088 |
| Ferritin (ng/mL) | 1.32 (1.03-1.69) | 0.028 | 1.34 (1.01–1.76) | 0.039 |
| CRP (mg/L) | 1.31 (1.02-1.70) | 0.036 | 1.26 (0.92–1.72) | 0.145 |
| Age (years) | 1.40 (1.13-1.74) | 0.002 | 1.18 (0.89–1.58) | 0.250 |
| BUN (mg/dL) | 1.49 (1.18-1.87) | 0.001 | 1.24 (0.79–1.94) | 0.355 |
| Total protein (g/dL) | 0.29 (0.09-0.91) | 0.033 | 0.51 (0.13–1.99) | 0.334 |
| AST (U/L) | 0.81 (0.63-1.04) | 0.103 | 0.81 (0.61–1.08) | 0.147 |
| Vitamin D (ng/mL) | 1.12 (0.91-1.37) | 0.291 | 1.22 (0.96–1.56) | 0.109 |
| NLR | 1.32 (1.07-1.63) | 0.009 | 1.16 (0.91–1.48) | 0.234 |
Odds ratios are per one-standard-deviation increase. Univariable estimates are from separate logistic models. Multivariable estimates are from a model containing all 22 LASSO-selected predictors; the 12 highest-ranked by SHAP are shown. These post-selection analyses are exploratory and were not used for model development. Reported p values do not establish causal or independently validated biomarker effects. OR, odds ratio; CI, confidence interval. The model was fitted by maximum likelihood (Section 2.7).
Conclusions
Routine baseline measurements provided modest prediction of KDIGO-defined kidney disease progression at three months in T2DM. Performance decreased when feature selection was repeated within the training folds, and a clinically useful improvement over a seven-variable comparator has not been shown. Diabetes duration, total cholesterol and ferritin showed exploratory adjusted associations with progression; high SHAP importance did not consistently correspond to statistical significance and does not establish causality. Internal calibration and decision-curve results do not demonstrate clinical benefit. Larger external and preferably prospective studies with clearly defined follow-up, rigorous validation and evaluation against routine risk assessment are required before clinical application.
Source: ConclusionsAuthors’ abstract
Background and objectives
Routine clinical data may contain information on the future course of kidney disease in type 2 diabetes mellitus (T2DM). This study assessed the predictive performance and interpretability of seven machine learning (ML) algorithms applied to baseline measurements.
Materials and methods
This single-centre retrospective study included 382 patients with T2DM evaluated between January 2024 and December 2025. Progression was ascertained at a fixed three-month reassessment and defined according to KDIGO criteria as a decline in estimated glomerular filtration rate (eGFR) category with a fall of at least 25% from baseline or an increase in albuminuria category. Least absolute shrinkage and selection operator (LASSO) regression selected 22 of 52 candidate predictors before repeated stratified five-fold cross-validation, and a sensitivity analysis repeated the selection within training folds.
SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME) were used to interpret the models.
Results
Progression occurred in 162 patients (42.4%). The area under the receiver operating characteristic curve (AUC) was 0.682 for the radial-basis support vector machine (SVM) and 0.671 for LASSO logistic regression; when feature selection was repeated within training folds, the AUCs were 0.603 and 0.640, respectively. LASSO logistic regression was retained for interpretation because its coefficients are transparent and its AUC did not differ significantly from that of SVM. At the Youden threshold, its sensitivity, specificity, positive predictive value and negative predictive value were 0.648, 0.650, 0.577 and 0.715.
The best full model did not differ significantly from the best seven-variable model (ΔAUC 0.046; p = 0.052). After Platt scaling, the Brier score of the LASSO model was 0.225 and the calibration slope 1.39. Diabetes duration, total cholesterol and ferritin were associated with progression in an exploratory multivariable analysis.
Conclusions
Routine baseline data provided modest discrimination, part of which reflected optimism from feature selection performed before cross-validation. The incremental clinical value of the model has not been established, and external, preferably prospective, validation is required before clinical use.
Read the full paper
Introduction
Diabetic kidney disease (DKD) is a common and serious microvascular complication of type 2 diabetes mellitus (T2DM) and a leading cause of end-stage kidney disease worldwide. Kidney damage in diabetes may involve increasing albuminuria and progressive loss of glomerular filtration. Metabolic disturbances, altered renal haemodynamics, chronic inflammation and tubulointerstitial fibrosis contribute to this process, and a substantial risk of progression persists despite treatment. Identifying patients at increased risk of deterioration remains an important objective in diabetes care (1).
Estimated glomerular filtration rate (eGFR) and urinary albumin-to-creatinine ratio (UACR) are the established markers for the diagnosis and prognosis of kidney disease. Whether a broader panel of routine baseline measurements adds predictive information for progression is uncertain. Glycaemic exposure, inflammation, disturbed mineral and bone metabolism, iron dysregulation and anaemia all provide a rationale for examining biochemical and haematological measurements alongside renal markers, and the neutrophil-to-lymphocyte ratio has been linked with early diabetic nephropathy (2). These observations justify evaluation of a multimarker approach; they do not show that additional measurements improve prediction.
Machine learning (ML) provides methods for combining correlated predictors and modelling non-linear relationships. Explanation methods such as SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME) describe how such models use routinely available inputs (3). Systematic reviews indicate, however, that many DKD models address prevalent disease rather than subsequent progression, lack external validation, or are at risk of bias and limited reproducibility (4, 5). Progression models developed in large, specialised or clinical-trial cohorts may not transfer directly to routine hospital populations (6).
Evidence from single-centre practice, and from populations in Türkiye in particular, therefore remains of interest, provided that the limitations of the models are reported transparently.
Conventional risk assessment in DKD relies mainly on the KDIGO risk categories, which cross-classify current eGFR and albuminuria, and on validated equations such as the Kidney Failure Risk Equation, which estimates the probability of kidney failure over 2 to 5 years in chronic kidney disease stages G3 to G5 (7). These tools describe current disease severity or predict late endpoints. They are less informative for the large group of patients with T2DM who have preserved or mildly reduced eGFR and normal or moderately increased albuminuria, in whom the practical question is whether kidney disease will progress during follow-up.
Every routine internal-medicine evaluation nevertheless generates a much wider laboratory panel, including blood count, iron status, inflammatory, lipid, hepatic and mineral-bone parameters, that is present in the clinical record but is not used in conventional risk assessment. The question addressed here is whether this information, beyond eGFR and UACR, identifies patients with T2DM, including those without established DKD, who are at increased risk of kidney disease progression, and how much it adds over a small set of routine clinical variables.
ML is suited to this question because it accommodates many correlated predictors and non-linear relationships, and an explicit comparison with a seven-variable model quantifies the incremental value of the wider panel.
Explainable ML was used to examine which routine baseline variables contributed to the estimated progression risk and to allow inspection of implausible model behaviour. SHAP was the primary explanation method; it provides individual feature contributions relative to a reference prediction and global summaries across patients (8). LIME fits a local surrogate model around selected predictions and was used to assess whether the influential features and their directions were consistent between explanation methods (3, 8). Because explanation methods can disagree (9), their combined use identifies interpretations that depend on the method chosen.
Agreement between them was interpreted as consistency between local explanations, not as validation of the model or of its clinical relevance. The combined use of SHAP and LIME is not in itself a methodological novelty; the contribution of the study lies in evaluating and interpreting the prognostic information contained in routine baseline measurements for KDIGO-defined kidney disease progression in patients with T2DM, including those without DKD at baseline.
The study had three objectives. The first was prediction: to estimate the probability of kidney disease progression from routine baseline variables and to evaluate model discrimination and calibration. The second was risk stratification: to examine whether the predicted probabilities separate patients at higher and lower risk, using threshold-specific performance measures and decision-curve analysis. The third was exploratory biomarker assessment: to identify candidate prognostic markers from their contributions to model predictions (SHAP and LIME) and from their associations with progression in regression analyses.
Predictive importance was not interpreted as evidence of causality or as validation of a biomarker. A secondary cross-sectional analysis distinguished established DKD from T2DM without DKD.
Materials and methods
Study design and setting
This single-centre retrospective observational study was conducted at the Department of Internal Medicine, Faculty of Medicine, Van Yüzüncü Yıl University (Van, Türkiye), a tertiary-care university hospital and the regional referral centre for eastern Türkiye. Data were extracted from the electronic and paper records of patients evaluated in the internal-medicine inpatient service between January 2024 and December 2025. Patients are admitted to this service for glycaemic, cardiovascular, renal and other internal-medicine indications; the diabetic cohort therefore consisted of patients with established T2DM of mixed duration, not newly diagnosed disease (median diabetes duration 9 [IQR 5–14] years in non-progressors and 12 [IQR 6.25–17] years in progressors; Table 1).
The study was reported in accordance with the TRIPOD+AI statement (10). It was approved by the Van Yüzüncü Yıl University Non-Interventional Clinical Research Ethics Committee (approval number 2026/05-14; 15 May 2026), which waived written informed consent because the analysis used de-identified retrospective records. All procedures followed the Declaration of Helsinki. The analytical workflow is summarised in Figure 1.
Baseline characteristics stratified by progression status.
| Variable | Non-progressor (n = 220) | Progressor (n = 162) | p value |
|---|---|---|---|
| Male, n (%) | 103 (46.8%) | 91 (56.2%) | 0.088 |
| Baseline DKD, n (%) | 83 (37.7%) | 100 (61.7%) | <0.001 |
| Age (years) | 56.00 (47.00–64.00) | 60.00 (53.00–67.00) | 0.003 |
| BMI (kg/m²) | 29.10 (26.08–33.20) | 29.95 (26.12–32.38) | 0.864 |
| Diabetes duration (years) | 9.00 (5.00–14.00) | 12.00 (6.25–17.00) | 0.001 |
| Hypertension duration (years) | 0.00 (0.00–9.00) | 5.00 (0.00–11.00) | 0.017 |
| Charlson score | 4.00 (3.00–6.00) | 5.00 (4.00–6.00) | 0.005 |
| Systolic BP (mmHg) | 132.50 (117.00–147.00) | 137.00 (120.00–150.00) | 0.161 |
| HbA1c (%) | 7.80 (6.90–8.90) | 8.05 (6.90–9.38) | 0.178 |
| eGFR (mL/min/1.73m²) | 89.50 (69.75–102.00) | 80.00 (56.25–97.75) | <0.001 |
| Creatinine (mg/dL) | 0.80 (0.70–1.00) | 0.90 (0.70–1.30) | 0.002 |
| BUN (mg/dL) | 16.00 (12.75–21.00) | 18.00 (14.00–26.00) | 0.002 |
| UACR (g/g) | 0.01 (0.01–0.18) | 0.08 (0.01–0.44) | <0.001 |
| Uric acid (mg/dL) | 5.20 (4.17–6.33) | 5.70 (4.60–7.00) | 0.007 |
| Total cholesterol (mg/dL) | 184 (155–213) | 194 (152-221) | 0.438 |
| Haemoglobin (g/dL) | 14.50 (13.38–15.70) | 14.80 (13.53–16.10) | 0.176 |
| Haematocrit (%) | 41 (40-46) | 44 (41-47) | 0.025 |
| NLR | 1.83 (1.43–2.44) | 2.12 (1.62–2.83) | <0.001 |
| Albumin (g/dL) | 4.20 (3.90–4.40) | 4.10 (3.80–4.38) | 0.051 |
| PTH (pg/mL) | 65.00 (44.00–91.25) | 68.00 (48.00–96.00) | 0.254 |
| Vitamin D (ng/mL) | 15.00 (10.00–22.25) | 15.00 (10.00–22.00) | 0.901 |
| CRP (mg/L) | 4.00 (2.00–7.25) | 5.00 (2.00–9.00) | 0.021 |
| ESR (mm/hr) | 13.00 (8.00–21.25) | 12.00 (7.00–22.00) | 0.562 |
| Procalcitonin (ng/mL) | 0.10 (0.10–0.20) | 0.20 (0.10–0.30) | 0.067 |
| Ferritin (ng/mL) | 57.00 (24.00–124.00) | 73.50 (31.25–154.75) | 0.021 |
Continuous variables are median (25th–75th percentile), p from Mann–Whitney U test; categorical variables are n (%), p from χ² test. BMI, body mass index; BP, blood pressure; BUN, blood urea nitrogen; CRP, C-reactive protein; DKD, diabetic kidney disease; eGFR, estimated glomerular filtration rate; ESR, erythrocyte sedimentation rate; HbA1c, glycated haemoglobin; NLR, neutrophil-to-lymphocyte ratio; PTH, parathyroid hormone; UACR, urinary albumin-to-creatinine ratio.
Study workflow, including the primary progression analysis, sensitivity analyses and supporting cross-sectional comparisons. CV, cross-validation; DKD, diabetic kidney disease; eGFR, estimated glomerular filtration rate; LASSO, least absolute shrinkage and selection operator; ML, machine learning; T2DM, type 2 diabetes mellitus.
Participants, eligibility and group definitions
Three predefined groups were studied: a healthy non-diabetic reference group (n = 200), patients with T2DM without kidney disease (n = 200) and patients with DKD (n = 185). T2DM was diagnosed according to the American Diabetes Association Standards of Care in Diabetes-2026 (11). Chronic kidney disease and DKD were defined and staged according to the KDIGO guideline (12, 13): DKD was diabetes accompanied by an eGFR below 60 mL/min/1.73 m² and/or persistent albuminuria (UACR ≥30 mg/g) attributable to diabetes, with no alternative primary cause of kidney disease (14). eGFR was calculated with the Modification of Diet in Renal Disease equation (15).
Patients were eligible if they were aged 18 years or older, met the criteria for one of the three groups and had the standard baseline clinical, biochemical and haematological assessment recorded at the index evaluation. For the prognostic analysis, diabetic patients also required a three-month reassessment of eGFR and UACR; 3 of 385 diabetic patients lacked this reassessment and were excluded, leaving 382 patients. Exclusion criteria were type 1, other specific or gestational diabetes; non-diabetic primary kidney disease; end-stage kidney disease, dialysis or kidney transplantation; acute kidney injury at the index assessment or within the preceding three months; active malignancy, acute infection or active systemic inflammatory or autoimmune disease at the time of sampling; pregnancy; chronic liver disease or any condition precluding valid interpretation of the laboratory panel; and incomplete baseline or outcome records.
Healthy reference participants were free of diabetes, known kidney disease and the conditions listed above, with a normal eGFR.
Outcome definition and study analyses
The primary objective was to predict kidney disease progression in patients with T2DM from routine baseline data. The prognostic cohort comprised 382 patients, 183 with and 199 without DKD at baseline. Outcome status was ascertained at a fixed three-month reassessment, at which eGFR and UACR were re-measured as part of routine care; this interval corresponds to the minimum period over which KDIGO requires abnormalities of kidney function or structure to persist (12, 13). Patients remained under routine observation for a median of 18 months (IQR 15–23) after the index assessment, but only the three-month measurements were used to define the outcome, and predictors were restricted to the index assessment.
The estimated probability is therefore the probability of progression at three months, a common horizon for all patients.
Progression was defined according to the KDIGO guideline (12, 13). A patient was classified as a progressor if, at three months relative to baseline, either of the following was present: (i) a decline in eGFR category (G1, ≥90; G2, 60–89; G3a, 45–59; G3b, 30–44; G4, 15–29; G5, <15 mL/min/1.73 m²) together with a decrease in eGFR of at least 25%; or (ii) an increase in albuminuria category (A1, <30; A2, 30–300; A3, >300 mg/g). Either criterion was sufficient.
The KDIGO criterion of rapid progression (a sustained decline of more than 5 mL/min/1.73 m² per year) was not applied, because a single follow-up measurement cannot establish that a decline is sustained. Patients whose eGFR or UACR changed without reaching these thresholds were classified as non-progressors. Of the 162 progressors, 100 met the eGFR criterion and 62 the albuminuria criterion; none met both, and no non-progressor met either (Supplementary Table S8). Because the cohort included patients with and without baseline DKD, the outcome encompasses incident kidney involvement as well as worsening of established DKD and is therefore termed kidney disease progression.
Baseline eGFR and UACR were retained as candidate predictors; their role as baseline predictors of a subsequent change differs from their role in defining that change.
The surrogate endpoint of a 30% or greater decline in eGFR, used in clinical trials of kidney disease progression (16), was met by 76 patients (19.9%). It was not adopted as the primary outcome because it would have reduced the number of events to 3.5 per selected predictor and because it does not capture albuminuric progression; it was examined with other eGFR-based thresholds in sensitivity analyses (Supplementary Table S5).
Two supporting analyses addressed baseline group membership rather than progression: a secondary cross-sectional analysis discriminated prevalent DKD from T2DM without DKD, and an ancillary analysis separated healthy controls from diabetic patients. Because the healthy reference group was, by selection, free of diabetes and kidney disease with laboratory values within the normal range, the ancillary comparison served as a methodological check and is reported in the Supplementary Material.
Candidate predictors and pre-processing
Baseline demographic, anthropometric, clinical and laboratory variables recorded at the index assessment were collected as candidate predictors: age, sex, body-mass index, blood pressure, diabetes and hypertension duration, Charlson comorbidity score, glycaemic indices, renal and metabolic panel, full blood count with the neutrophil-to-lymphocyte and platelet-to-lymphocyte ratios, lipid profile, liver-function tests, electrolytes, mineral and bone parameters, and inflammatory and iron-status markers (Supplementary Table S1). Predictors were specified a priori on the basis of routine availability at the index evaluation, biological plausibility for the main pathways of diabetic kidney injury and previous reports linking them to DKD; no data-driven pre-screening preceded LASSO selection.
The three-month eGFR and UACR, a constant laboratory field and a free-text comorbidity field were removed to avoid information leakage, and medication counts and classes were excluded as treatment-by-indication variables. Baseline renal markers (eGFR, creatinine, blood urea nitrogen and UACR) were retained as legitimate predictors of a future event. Fifty-two candidate predictors remained.
Continuous variables were screened against fixed, pre-specified physiological plausibility bounds, and values outside these bounds were set to missing; transferrin saturation, recorded on inconsistent scales, was unit-harmonised with a fixed rule. Neither step used information estimated from the data. Missing values were sparse (7 of 19,864 entries, affecting the lipid panel and uric acid in one patient each). Median imputation and z-score standardisation, the only data-dependent pre-processing steps, were fitted within the training partition of each cross-validation fold and then applied to the corresponding held-out fold.
Outcome status was not imputed, and the robustness of imputation was examined in a complete-case analysis.
Feature selection and model development
No a priori sample-size calculation was performed; all eligible patients in the study period were included. The cohort of 382 patients with 162 events (42.4%; 95% Wilson confidence interval 37.6–47.4%) provided 3.1 events per candidate predictor and 7.4 events per predictor retained after selection, which is below the number recommended for unpenalised modelling of this many variables (17, 18). Over-fitting was therefore addressed by penalised feature selection, conservative pre-specified model settings, evaluation on held-out folds only, a nested feature-selection sensitivity analysis and comparison with a seven-variable clinical model; the findings are nevertheless regarded as exploratory.
LASSO logistic regression with internal ten-fold cross-validation was fitted to the standardised development data (19); the penalty minimising the cross-validated binomial deviance was selected and predictors with non-zero coefficients were retained, reducing the 52 candidates to 22 (Supplementary Table S2). In the primary analysis this selection was performed once on the full cohort before the repeated cross-validation used for model comparison, whereas imputation and standardisation were refitted within every training fold. Because selection outside the cross-validation loop can yield optimistic estimates (20, 21), a nested sensitivity analysis repeated the entire LASSO procedure, including its internal cross-validation, within each training fold, so that the held-out fold never contributed to feature selection.
An unpenalised logistic model containing all 52 candidates was unstable and over-fitted, which supported the use of penalised selection.
Seven supervised algorithms were compared: LASSO logistic regression, k-nearest neighbours, a radial-basis-function support vector machine (SVM), a decision tree, random forest, extreme gradient boosting (XGBoost) and a multilayer-perceptron neural network. They represent the penalised linear, instance-based, kernel-based, single-tree, bagging, boosting and neural-network approaches used in DKD modelling (4, 5), and the comparison tested whether more flexible learners improved on penalised regression (22). Their principles, formulations, hyperparameters and references are given in Supplementary Text S1, and the exact configuration of each algorithm in Supplementary Table S3.
All classifier settings were pre-specified and held fixed; no grid or random search was performed, so no tuning step used held-out data. Performance was estimated by stratified five-fold cross-validation with three repeats (15 held-out folds). Class imbalance (42.4% progressors) was addressed by balanced class weights, computed by each estimator from its training fold, for logistic regression, SVM, decision tree and random forest, and by a fixed positive-class weight equal to the cohort negative-to-positive ratio (1.36) for XGBoost; k-nearest neighbours and the neural network were not weighted.
Resampling methods were considered but not used because the imbalance was modest and such corrections can distort calibration (23). A seven-variable comparator (age, sex, diabetes duration, hypertension duration, HbA1c, eGFR and UACR) was evaluated on the same folds.
Model evaluation and interpretation
Discrimination was summarised by the area under the receiver-operating-characteristic curve (AUC-ROC), reported as the mean across the 15 held-out folds with the 2.5th–97.5th percentiles of the fold distribution (95% fold intervals, which are not conventional confidence intervals), and by the area under the precision–recall curve. Sensitivity, specificity, positive and negative predictive values, F1 score, accuracy and Cohen’s kappa were calculated at the Youden threshold, a descriptive operating point selected once from pooled out-of-fold predictions, and at the pre-defined thresholds of 0.30, 0.40 and 0.50 (Supplementary Table S9).
AUC differences between SVM and LASSO and between the full and seven-variable LASSO models were assessed by paired bootstrap resampling of patients (2,000 resamples). Calibration was assessed with calibration plots, intercept, slope and Brier score before and after Platt scaling (24–26); within each training fold, five-fold internal cross-validation provided the scores to which the sigmoid function was fitted, and the fitted function was applied to the held-out fold. Decision-curve analysis compared net benefit with the treat-all and treat-none strategies (27).
Sensitivity analyses compared median imputation with complete-case analysis and refitted the models under alternative three-month outcome definitions (Supplementary Table S5).
SHAP was the primary explanation method and LIME provided a complementary assessment of two individual predictions (3, 8). LASSO logistic regression was retained for interpretation because its coefficients are transparent and its AUC did not differ significantly from that of SVM; this does not establish equivalence between the algorithms. The LASSO model was refitted to the full cohort, and SHAP contributions were computed on the log-odds scale with the linear explainer, using 200 development observations sampled with a fixed seed (random_state = 42) as the background distribution.
Mean absolute SHAP values summarised global importance and beeswarm plots showed the direction of contributions. The two patients used for local explanation were selected by a pre-specified rule: the correctly classified patients with the highest and the lowest apparent predicted probability. LIME explanations for the same patients used the tabular explainer (quartile discretisation of the standardised predictors, 5,000 perturbed samples, eight displayed features, random_state = 42). Agreement between the methods was described by overlap of the eight leading features and concordance of their direction; these two extreme cases illustrate model behaviour and do not establish agreement across the cohort.
SHAP importance describes contributions to model predictions, not adjusted statistical associations or causal effects, which were examined separately by regression (Section 2.7). Global SHAP interpretation of the secondary cross-sectional analysis used the random-forest model.
Statistical analysis
Analyses were performed in Python 3.12.3 with pandas 3.0.2, NumPy 2.4.4, SciPy 1.17.1, statsmodels 0.14.6, scikit-learn 1.8.0, XGBoost 3.3.0, SHAP 0.52.0 and LIME 0.2.0.1. Two-sided p values below 0.05 were considered statistically significant. Continuous variables with an absolute skewness below 1 were treated as approximately normal and summarised as mean (standard deviation); other continuous variables are given as median (interquartile range) and categorical variables as counts (percentages). Progressors and non-progressors were compared with the independent-samples t test or the Mann–Whitney U test and the χ² or Fisher exact test.
For the secondary cross-sectional analysis, associations between predictors and group membership were quantified with the Spearman rank correlation or Cramér’s V, with Benjamini–Hochberg adjustment of p values, and univariable and multivariable logistic regression estimated odds ratios per one-standard-deviation increase, with multicollinearity assessed by the variance inflation factor. The four DKD-defining markers (UACR, eGFR, creatinine and blood urea nitrogen) were excluded from these cross-sectional models to avoid circularity.
For the progression analysis, the 12 predictors with the highest mean absolute SHAP values were examined in separate univariable logistic models and in a single multivariable logistic model containing all 22 LASSO-selected predictors (Table 2). This model was fitted by maximum likelihood after median imputation and standardisation; with 162 events it converged without separation, and odds ratios with Wald 95% confidence intervals are reported per one-standard-deviation increase. These analyses were descriptive and were not used for model development.
Because predictors were selected and associations assessed in the same cohort, the p values are nominal and exploratory; mutual adjustment does not exclude residual confounding, and neither regression associations nor SHAP contributions establish causality.
Univariable and multivariable associations of the top SHAP-ranked predictors with progression.
| Predictor | Univariable OR (95% CI) | p | Multivariable OR (95% CI) | p |
|---|---|---|---|---|
| Haematocrit (%) | 1.27 (1.02-1.58) | 0.035 | 2.19 (0.99–4.83) | 0.053 |
| Diabetes duration (years) | 1.35 (1.10-1.67) | 0.004 | 1.37 (1.06–1.79) | 0.018 |
| Total cholesterol (mg/dL) | 1.09 (0.89-1.34) | 0.395 | 1.35 (1.05–1.72) | 0.017 |
| ESR (mm/hr) | 1.00 (0.82-1.23) | 0.967 | 0.77 (0.57–1.04) | 0.088 |
| Ferritin (ng/mL) | 1.32 (1.03-1.69) | 0.028 | 1.34 (1.01–1.76) | 0.039 |
| CRP (mg/L) | 1.31 (1.02-1.70) | 0.036 | 1.26 (0.92–1.72) | 0.145 |
| Age (years) | 1.40 (1.13-1.74) | 0.002 | 1.18 (0.89–1.58) | 0.250 |
| BUN (mg/dL) | 1.49 (1.18-1.87) | 0.001 | 1.24 (0.79–1.94) | 0.355 |
| Total protein (g/dL) | 0.29 (0.09-0.91) | 0.033 | 0.51 (0.13–1.99) | 0.334 |
| AST (U/L) | 0.81 (0.63-1.04) | 0.103 | 0.81 (0.61–1.08) | 0.147 |
| Vitamin D (ng/mL) | 1.12 (0.91-1.37) | 0.291 | 1.22 (0.96–1.56) | 0.109 |
| NLR | 1.32 (1.07-1.63) | 0.009 | 1.16 (0.91–1.48) | 0.234 |
Odds ratios are per one-standard-deviation increase. Univariable estimates are from separate logistic models. Multivariable estimates are from a model containing all 22 LASSO-selected predictors; the 12 highest-ranked by SHAP are shown. These post-selection analyses are exploratory and were not used for model development. Reported p values do not establish causal or independently validated biomarker effects. OR, odds ratio; CI, confidence interval. The model was fitted by maximum likelihood (Section 2.7).
Results
Feature selection
In total, 52 baseline clinical and laboratory variables were considered for the 382 diabetic patients with an available progression outcome. Because progression is a future event, baseline renal markers were retained as prognostic predictors, whereas the three-month follow-up measurements, a constant assay field, a free-text field and treatment-by-indication variables were excluded. To reduce dimensionality and mitigate the low events-per-variable ratio, LASSO logistic regression with ten-fold cross-validation was applied to the development cohort (Figures 2A, B). The coefficient paths show shrinkage as the regularisation parameter increases (Figure 2A), and the value minimising the cross-validated binomial deviance was selected (Figure 2B).
At this penalty, 22 of the 52 candidate features were retained, including diabetes duration, haematocrit, blood urea nitrogen, uric acid, UACR, and the inflammatory markers erythrocyte sedimentation rate (ESR), C-reactive protein (CRP), ferritin and procalcitonin.
LASSO feature selection and predictor correlations. (A) Coefficient paths; (B) ten-fold cross-validated deviance, with minimum and one-standard-error criteria; (C) Spearman correlations amongst the 22 retained predictors. Red indicates positive and blue negative correlations; values with |ρ| ≥0.30 are labelled.
Spearman correlations amongst the retained features were generally low (Figure 2C), with some exceptions: haemoglobin and haematocrit were strongly correlated (ρ = 0.93), creatinine and blood urea nitrogen were correlated (ρ = 0.72), and moderate correlations were present amongst the other renal markers and between ESR and haemoglobin or haematocrit (ρ = −0.44 and −0.40, respectively). Penalised regression tolerates such collinearity, but collinearity can affect the stability and interpretation of individual coefficients, particularly those of haemoglobin and haematocrit.
Characteristics of the study population
The prognostic cohort comprised 382 patients with T2DM: 162 (42.4%) progressors and 220 (57.6%) non-progressors. Baseline DKD was present in 183 patients (47.9%). Outcome status was ascertained at the three-month reassessment; the total period of routine observation in the records was a median of 18 months (interquartile range 15–23). Amongst the 162 progressors, 100 met the eGFR criterion and 62 the albuminuria criterion; none met both (Supplementary Table S8). Baseline characteristics are summarised in Table 1. Progressors were older and had longer diabetes and hypertension durations, a higher Charlson score, lower eGFR, and higher creatinine, blood urea nitrogen, UACR, uric acid, haematocrit, CRP, ferritin and neutrophil-to-lymphocyte ratio; baseline DKD was also more frequent amongst them.
HbA1c, total cholesterol, ESR, procalcitonin and body mass index did not differ between groups. These descriptive differences do not establish independent or causal effects.
Construction and evaluation of the progression prediction model
Using the LASSO-selected features, the seven algorithms were trained within the repeated stratified five-fold cross-validation scheme, with median imputation and standardisation fitted inside each training fold. Discrimination is summarised in Table 3, receiver operating characteristic (ROC) and precision-recall curves are shown in Figures 3A, C, and the principal metrics are compared in Figure 3D.
Cross-validated performance of the seven full models for progression prediction.
| Model | AUC-ROC (95% fold interval) | AUC-PR | Acc. | Sens. | Spec. | PPV | NPV | F1 | κ |
|---|---|---|---|---|---|---|---|---|---|
| SVM (RBF) | 0.682 (0.612–0.775) | 0.550 | 0.636 | 0.765 | 0.541 | 0.551 | 0.758 | 0.641 | 0.291 |
| Logistic (LASSO) | 0.671 (0.588–0.754) | 0.593 | 0.649 | 0.648 | 0.650 | 0.577 | 0.715 | 0.610 | 0.293 |
| Random Forest | 0.641 (0.535–0.738) | 0.559 | 0.649 | 0.506 | 0.755 | 0.603 | 0.675 | 0.550 | 0.266 |
| KNN | 0.638 (0.553–0.721) | 0.532 | 0.615 | 0.586 | 0.636 | 0.543 | 0.676 | 0.564 | 0.220 |
| XGBoost | 0.612 (0.500–0.709) | 0.550 | 0.641 | 0.346 | 0.859 | 0.644 | 0.641 | 0.450 | 0.218 |
| ANN (MLP) | 0.558 (0.485–0.635) | 0.486 | 0.586 | 0.438 | 0.695 | 0.514 | 0.627 | 0.473 | 0.136 |
| Decision Tree | 0.558 (0.428–0.629) | 0.488 | 0.560 | 0.630 | 0.509 | 0.486 | 0.651 | 0.548 | 0.134 |
AUC-ROC is the mean across 15 held-out folds from three repeats of stratified five-fold cross-validation; its 95% fold interval is the 2.5th–97.5th percentile range across folds, not an independent-sample confidence interval. LASSO logistic regression was retained for interpretation. Acc., accuracy; Sens., sensitivity; Spec., specificity; PPV/NPV, positive/negative predictive value; κ, Cohen’s kappa. Threshold-dependent measures use the descriptive Youden threshold selected from pooled out-of-fold predictions. Supplementary Table S9 gives pre-defined-threshold results.
Progression-model performance. (A, B) ROC curves for full and seven-variable models; (C) precision–recall curves; (D) metrics at the descriptive Youden threshold; (E) LASSO calibration before and after Platt scaling; (F) LASSO decision curves. ROC, receiver operating characteristic.
Discrimination was modest for all seven algorithms. SVM had the highest mean AUC-ROC, 0.682 (95% fold interval 0.612–0.775), with sensitivity 0.765, specificity 0.541, PPV 0.551 and NPV 0.758 at its Youden threshold. LASSO logistic regression had an AUC-ROC of 0.671 (95% fold interval 0.588–0.754), an AUC-PR of 0.593, and sensitivity 0.648, specificity 0.650, PPV 0.577, NPV 0.715, F1 score 0.610 and κ 0.293. The paired bootstrap difference in AUC between the two models was 0.010 (95% confidence interval −0.019 to 0.037; p = 0.49), which provides no evidence of a difference but does not demonstrate equivalence.
LASSO logistic regression was retained for interpretation because of its transparency. At their respective thresholds, SVM had higher sensitivity and lower specificity than LASSO.
Repeating feature selection within the training folds reduced the AUC-ROC to 0.640 (95% fold interval 0.529–0.722) for LASSO and to 0.603 (95% fold interval 0.485–0.684) for SVM; a median of 16 predictors was selected per fold (range 3–21). These decreases of approximately 0.03 and 0.08 indicate optimism in the primary analysis and are central to the interpretation of the predictive performance.
Supplementary Table S9 reports performance at pre-defined thresholds applied to the Platt-scaled probabilities. For LASSO, a threshold of 0.30 gave sensitivity 0.955, specificity 0.176, PPV 0.460 and NPV 0.841; at 0.50 the corresponding values were 0.331, 0.839, 0.603 and 0.630. Lower thresholds identified more progressors at the cost of many false-positive classifications, and higher thresholds reduced false positives whilst missing more progressors. Neither operating point constitutes a clinical decision rule, and predictive values depend on outcome prevalence and setting.
The simplified models used seven routine variables: age, sex, diabetes duration, hypertension duration, HbA1c, eGFR and UACR (Figure 3B; Supplementary Table S4). The comparison of the best models, SVM with the full panel (AUC-ROC 0.682) and LASSO logistic regression with the seven variables (0.636), gave a ΔAUC of 0.046 (p = 0.052). Because this comparison changes both the predictor panel and the algorithm, it does not isolate the contribution of the additional predictors. In a matched comparison in which both LASSO models were re-estimated on identical cross-validation folds, the AUC-ROC was 0.671 for the 22-variable model and 0.632 for the seven-variable model (ΔAUC 0.038; paired bootstrap 95% CI −0.005 to 0.082; p = 0.085).
The 22-variable panel is not the seven-variable panel with 15 predictors added, because sex and eGFR were not retained by LASSO (Supplementary Table S2).
For the full and simplified LASSO models, the post-scaling Brier scores were 0.225 and 0.235 and the calibration slopes 1.39 and 1.40. The full model had a higher net benefit at 33 of 36 thresholds between 0.25 and 0.60, with a mean net benefit of 0.111 versus 0.088 (Supplementary Figure S5). These exploratory comparisons do not demonstrate a clinically useful incremental benefit.
For the final LASSO model, Platt scaling changed the Brier score from 0.227 to 0.225, the calibration intercept from −0.28 to 0.00, and the calibration slope from 0.86 to 1.39 (Figure 3E). The intercept improved, but the slope after scaling remained above 1, indicating predictions that were insufficiently dispersed; calibration therefore cannot be regarded as fully corrected. Decision-curve analysis indicated a higher net benefit than the treat-all and treat-none strategies at threshold probabilities of approximately 0.25 to 0.60 (Figure 3F).
This internal analysis explores potential decision value; it does not show that use of the model improves patient outcomes, nor does it identify a treatment threshold.
Explanation analysis of the model
The leading global SHAP features were haematocrit, diabetes duration, total cholesterol, ESR, ferritin and CRP (Figures 4A, B). Higher haematocrit, longer diabetes duration, and higher cholesterol, ferritin and CRP contributed to higher predicted probabilities of progression, whereas higher serum total protein contributed to lower predictions. Higher ESR also lowered the predictions, a counter-intuitive direction that was not supported by an adjusted association and may reflect its correlation with haemoglobin and haematocrit.
Explanations of the final LASSO model. (A) Global SHAP importance; (B) SHAP beeswarm plot; (C, D) local SHAP contributions; (E, F) LIME weights for the same two patients. Local probabilities are in-sample and uncalibrated. SHAP, SHapley Additive exPlanations; LIME, Local Interpretable Model-agnostic Explanations.
The adjusted odds ratios in Table 2 were 1.37 (95% CI 1.06–1.79; p = 0.018) for diabetes duration, 1.35 (1.05–1.72; p = 0.017) for total cholesterol and 1.34 (1.01–1.76; p = 0.039) for ferritin. Haematocrit (2.19, 0.99–4.83; p = 0.053) and CRP (1.26, 0.92–1.72; p = 0.145) did not reach the conventional significance threshold. These exploratory, mutually adjusted estimates are distinct from SHAP importance and do not establish causal effects or validated biomarkers.
The two local examples illustrate model behaviour (Figures 4C–F). In the patient who progressed, the apparent uncalibrated probability was 0.99, driven mainly by HbA1c (SHAP contribution approximately +6.1 on the log-odds scale), with smaller opposing contributions from haematocrit, diabetes duration and age. In the patient who did not progress, the apparent probability was 0.001; serum total protein contributed approximately −9.2 log-odds and outweighed upward contributions from diabetes duration, blood urea nitrogen and creatinine. Extreme feature values can dominate the explanations of a linear model and warrant cautious interpretation.
LIME shared seven of the eight leading features with SHAP in the high-risk example and five of eight in the low-risk example. The direction of effect agreed for every shared feature, although the ranks differed; haematocrit, for example, ranked first with LIME and second with SHAP in the high-risk case. These findings describe agreement in two selected cases, not concordance across the cohort. The explanations were obtained from the model refitted to the full cohort, and the apparent probabilities should not be read as validated patient risks: the cross-validated, Platt-scaled probabilities for the same two patients were 0.48 and 0.06.
Robustness and secondary analysis
In the comparison of median imputation with complete-case analysis, the AUC-ROC was 0.682 versus 0.661; the similarity is reassuring but does not exclude bias from missing data. Across alternative eGFR-based outcome definitions evaluated at the same three-month reassessment, the LASSO AUC-ROC ranged from 0.671 to 0.704, and the highest value was 0.713 for random forest under the ≥10% eGFR-decline definition (Supplementary Table S5). The ≥30% surrogate endpoint (76 events) yielded an AUC-ROC of 0.671 for LASSO and 0.711 for random forest.
Because event counts differed across definitions, these analyses indicate that discrimination was not an artefact of the primary definition; they do not show that the definitions are equivalent. The primary-outcome AUCs in Supplementary Table S5 (0.664, 0.678 and 0.633) are means across the 15 held-out folds, whereas Table 3 reports AUCs computed from repeat-averaged patient-level out-of-fold predictions (0.671, 0.682 and 0.641); the two summaries differ by less than 0.01.
In the secondary cross-sectional analysis, random forest discriminated prevalent DKD from T2DM without DKD using non-renal predictors, with an AUC-ROC of 0.770 (Supplementary Table S6; Supplementary Figure S1); its SHAP results, calibration and decision curves are shown in Supplementary Figures S2 and S3. This classification task resembles explainable-ML studies that identify prevalent or occult DKD from routine features (28, 29); it differs from the prediction of future progression and does not validate the prognostic model.
The ancillary healthy-versus-diabetic comparison showed near-perfect discrimination (AUC >0.99; Supplementary Table S7; Supplementary Figure S4), which reflects the narrowly selected healthy reference group rather than a clinically meaningful screening task.
Discussion
This study evaluated seven algorithms for predicting KDIGO-defined kidney disease progression in 382 patients with T2DM from routine baseline data. The AUCs of the primary analysis ranged from 0.558 to 0.682. LASSO logistic regression was selected for interpretation because its coefficients are transparent and its AUC did not differ significantly from that of SVM. Feature selection performed before the model-comparison cross-validation introduced optimism: with selection repeated within the training folds, the AUCs were 0.640 for LASSO and 0.603 for SVM.
The improvement over the seven-variable comparator was uncertain, calibration remained imperfect after scaling, and the internal decision curves require external confirmation. The study is therefore an exploratory analysis of prediction and model behaviour and does not establish a clinically deployable tool.
Published DKD studies address different populations, outcomes and prediction horizons, which limits direct comparison of performance. They include three-year DKD risk prediction from electronic records (30), one-year kidney-function progression in T2DM with CKD (31), validation of progression models in clinical-trial populations (6), end-stage renal disease in newly diagnosed T2DM (32), rapidly progressive kidney disease (33) and DKD around the time of the diabetes diagnosis (34). The present study evaluated KDIGO-defined progression at a fixed three-month reassessment in a hospital cohort with T2DM of mixed duration, including patients without DKD at baseline.
Differences in sample size, outcome severity, predictor availability and validation design affect discrimination, so an AUC difference between studies cannot establish the superiority of a model. Systematic reviews also identify limited external validation and risks of bias in this literature (4, 5).
The use of several algorithms did not yield strong discrimination in this dataset. The absence of a clear gain from the more flexible learners agrees with a systematic review that found no performance benefit of ML over logistic regression in clinical prediction (22). The limited sample size, correlated predictors, a single early reassessment and reliance on a single baseline assessment are plausible contributors. Dynamic factors such as treatment adherence and intercurrent illness were not modelled. Because the classifier settings were fixed rather than extensively optimised, these results do not show that the choice of algorithm is unimportant or that the observed performance is an upper limit.
Two recent studies from a single Pakistani clinical dataset illustrate the difference between detecting prevalent CKD and predicting its progression. Iftikhar et al. compared individual and ensemble classifiers in 382 records (258 with and 124 without CKD) using 21 predominantly urinalysis and haematological variables, with correlation-based and recursive feature elimination, grid-search tuning within five- and ten-fold cross-validation and a 70:30 split; a stacking ensemble reached an accuracy of 0.905 with sensitivity 0.950 and specificity 0.830, pus cells, albumin and bacteria were the most influential features, and SHAP was applied to the random-forest and SVM models (35).
Qureshi et al. analysed the same clinical setting with 20 attributes, correlation-based grouping, recursive feature elimination and LASSO, SMOTE and SMOTE-Tomek resampling, randomised hyperparameter search and five-fold cross-validation; k-nearest neighbours without resampling achieved an accuracy of 0.947 and an AUC of 0.976, and SHAP and LIME again identified urinary albumin, blood and pus cells as the leading features (36). Neither study reported calibration intercepts, slopes or Brier scores, and neither included external validation.
The present study differs from these reports on each of these dimensions (Supplementary Table S10). Its target is a subsequent change in kidney function or albuminuria in patients with T2DM, assessed at a fixed reassessment, not the presence of CKD at the time of testing; its predictors are baseline blood-based routine measurements, not contemporaneous urinalysis abnormalities that are themselves close to diagnostic of CKD; and it includes a benchmark against routine clinical variables, calibration and decision-curve analysis, a nested feature-selection sensitivity analysis and a comparison of SHAP with LIME and with regression estimates.
The far higher discrimination reported for CKD detection (accuracy above 0.90 and AUC above 0.97) therefore reflects an easier and different task and is not an appropriate benchmark for the modest AUCs observed here. The contribution of the present study is a transparent assessment of how much prognostic information routine baseline data contain in a diabetes-specific hospital population, including the limits of that information; it does not claim superior performance.
Diabetes duration may represent cumulative exposure to glycaemic and vascular injury and has been included in previous DKD models (30, 37). Its adjusted association in the present study was modest (OR 1.37 per standard deviation), and duration alone does not capture the course or severity of diabetes.
Haematocrit had the largest global SHAP contribution, but its adjusted confidence interval included 1. The positive direction agrees with the incident-DKD association reported in the literature (34), whereas lower haemoglobin has been associated with end-stage kidney disease in established diabetic nephropathy (38); these observations concern different disease stages and endpoints. Haemoconcentration, hypoxia-related responses and blood viscosity are possible explanations, not mechanisms established by this study. Haematocrit and haemoglobin were strongly correlated (ρ = 0.93), so their separate contributions and regression coefficients may be unstable.
The high SHAP rank does not justify a recommendation to modify haematocrit, nor does it validate haematocrit as an independent prognostic biomarker.
Ferritin and CRP may reflect aspects of iron status and systemic inflammation relevant to diabetic kidney injury (1, 2, 32). Ferritin had an adjusted association with progression, whereas CRP did not. This difference limits the interpretation of their SHAP rankings: the model may use correlated inflammatory information without an independent association for every marker. Total cholesterol showed an adjusted association despite the absence of a univariable association or a baseline group difference. Dyslipidaemia provides a plausible context (37), but this pattern remains sensitive to adjustment, selection and treatment-related confounding.
Medication classes were excluded from the model, and these findings do not establish any benefit of targeting ferritin, CRP or cholesterol.
Higher total protein shifted predictions towards non-progression, which may reflect nutritional or albumin-related information (37); it does not establish a protective causal effect. The inverse contribution of ESR was counter-intuitive and was not supported by an adjusted association. These findings show why predictive contribution, conditional statistical association and causal influence must be kept separate. Agreement between SHAP and LIME in two cases describes the consistency of those explanations, not clinical validity or model trustworthiness across patients, a requirement that has been emphasised for explainable ML in renal care (28, 29, 39).
A model based on routine measurements would be of practical value if it added reliable information to standard assessment. That incremental value has not been established here. The ΔAUC of 0.046 compared different algorithms; in the matched LASSO comparison the difference was 0.038 (95% CI −0.005 to 0.082; p = 0.085). The full and seven-variable panels were not nested, and the primary analysis was affected by feature-selection optimism. Although the full LASSO model had a lower Brier score and a higher internal net benefit than its simplified counterpart, these differences do not establish improved clinical decisions or patient outcomes.
Future external evaluation should compare the models on the same validation data, assess calibration and threshold-specific errors, and specify the clinical action attached to a risk estimate. The current model should not be used to guide treatment intensification or referral.
The study has several limitations. Its single-centre tertiary inpatient population may differ from outpatient and primary-care populations. The sample of 382 patients with 162 progression events was small relative to the number of predictors, so substantial overfitting remains possible. Retrospective routine measurements were not obtained on a standardised schedule, and patients with follow-up testing may differ from those without it; the exclusion of three patients without a reassessment does not eliminate this selection bias.
Outcome status was ascertained at a single three-month reassessment. This fixed, early time point provides a common prediction horizon, but a single follow-up measurement cannot distinguish sustained progression from transient fluctuation in eGFR or UACR, and the KDIGO rapid-progression criterion could not be applied. The outcome therefore captures early functional or albuminuric worsening rather than hard kidney endpoints, and measurements obtained later in the observation period were not used to define it.
Primary feature selection used the full development cohort before cross-validation, and the lower AUCs in the nested sensitivity analysis indicate optimism; calibration, threshold selection and model comparisons from the primary analysis should be interpreted in that context. Fixed algorithm settings limited search-related complexity but do not ensure optimal settings or remove selection bias. The exploratory regression estimates were obtained after predictor selection in the same cohort and are vulnerable to collinearity and residual confounding.
No external validation was performed. Longitudinal biomarker trajectories, treatment adherence and renoprotective medication exposure were not included in the models, so treatment-related confounding remains possible. eGFR was calculated with the MDRD equation rather than the CKD-EPI equation. Transportability to other populations and healthcare settings is unknown. Local explainability was illustrated in two patients, which cannot establish the stability of the explanations across the cohort, and the selected healthy reference group limits the ancillary analysis. These limitations preclude clinical implementation without further validation.
Conclusions
Routine baseline measurements provided modest prediction of KDIGO-defined kidney disease progression at three months in T2DM. Performance decreased when feature selection was repeated within the training folds, and a clinically useful improvement over a seven-variable comparator has not been shown. Diabetes duration, total cholesterol and ferritin showed exploratory adjusted associations with progression; high SHAP importance did not consistently correspond to statistical significance and does not establish causality. Internal calibration and decision-curve results do not demonstrate clinical benefit. Larger external and preferably prospective studies with clearly defined follow-up, rigorous validation and evaluation against routine risk assessment are required before clinical application.
Edited by: Hiroyuki Unoki-Kubota, National Center for Global Health and Medicine, Japan
Reviewed by: Lei Yang, Harbin Medical University, China
Moiz Qureshi, Quaid-i-Azam University, Pakistan
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Ethics statement
The studies involving humans were approved by the Non-Interventional Clinical Research Ethics Committee, Van Yüzüncü Yıl University, Van, Türkiye (approval number 2026/05-14; 15 May 2026). The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent was waived by the ethics committee because the study was a retrospective analysis of de-identified routine clinical records.
Author contributions
ME: Writing – original draft, Software, Conceptualization, Writing – review & editing, Investigation, Resources, Validation, Formal analysis, Supervision, Data curation, Methodology, Visualization. OA: Investigation, Validation, Writing – original draft, Writing – review & editing.
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. Language editing of the manuscript was assisted by a large language model (Claude, Anthropic, San Francisco, CA, USA). The authors reviewed and verified all content and take full responsibility for the final version of the manuscript.
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.1983789/full#supplementary-material
References
Publication and source details
Original title: Explainable machine learning for predicting kidney disease progression defined by changes in estimated glomerular filtration rate in type 2 diabetes: a single-centre retrospective study
Mehmet Erdem; Ozan Aydemir
Frontiers in Endocrinology · 2026
* Correspondence: Mehmet Erdem, dr.mehmet_erdem@hotmail.com†ORCID: Mehmet Erdem, orcid.org/0000-0001-5439-9473; Ozan Aydemir, orcid.org/0000-0001-6967-8352
Repository JATS snapshot; version as supplied
Source retrieved: 2026-11-26T20:26:17.002718+00:00
DOI: 10.3389/fendo.2026.1983789 · PMC13789589
