Previously submitted to: JMIR AI (no longer under consideration since Feb 06, 2026)
Date Submitted: Sep 16, 2025
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
Priority-Queue Weighted Ensemble (PQWE) for KDIGO GFR-Based Chronic Kidney Disease Stage Prediction: Internal–External Validation Study
ABSTRACT
Background:
Chronic kidney disease (CKD) staging per KDIGO guidelines underpins referral and treatment decisions, yet many machine-learning (ML) studies risk label leakage (e.g., using estimated glomerular filtration rate [eGFR] as an input) and omit probability calibration, limiting clinical trust and threshold ability. Real-world deployment also requires fold-aware preprocessing, careful in-fold class rebalancing, and external transportability from routine electronic health record (EHR) data.
Objective:
To develop and validate a Priority-Queue Weighted Ensemble (PQWE) that yields calibrated probabilities for KDIGO GFR-based CKD stages (G1–G5) from routine laboratories and vital signs without relying on eGFR as a model feature, and to demonstrate internal–external performance on real-world cohorts
Methods:
PQWE aggregates diverse ML base learners at the probability level and assigns priority-queue weights from inner cross-validation macro-F1 with exponential emphasis (γ=2). To prevent leakage, preprocessing steps (median/mode imputation, standardization/one-hot encoding) and class rebalancing (SMOTE) were performed within training folds only. A multinomial logistic calibrator aligned predicted probabilities with observed outcomes. Performance was estimated via five-fold stratified outer cross-validation on an internal retrospective cohort, followed by external validation on an independent cohort to assess transportability. Primary metrics were accuracy and macro-F1; secondary metrics were Brier score, macro expected calibration error (ECE), one-vs-rest AUROC, and AUPRC. We benchmarked against a KDIGO rule-based classifier (eGFR thresholds) and conducted an ablation excluding eGFR to verify leakage-free learning.
Results:
Internally, PQWE achieved accuracy 0.988 (95% CI 0.983–0.995) and macro-F1 0.989 (95% CI 0.984–0.995), with Brier 0.0073 and macro ECE 0.114. Discrimination was high (one-vs-rest AUROC ≥0.999, AUPRC ≥0.995 across stages). Versus the rule-based KDIGO classifier, PQWE improved accuracy by +0.268, macro-F1 by +0.353, and reduced Brier by 93.5%. eGFR-excluded ablation produced essentially unchanged performance, supporting a leakage-free pipeline. On external validation (n=200), PQWE achieved accuracy 0.975 (95% CI 0.943–0.989), macro-F1 0.974 (95% CI 0.948–0.994), and Brier 0.0129, indicating calibrated probabilities and robust transportability.
Conclusions:
PQWE provides calibrated, leakage-free, and externally transportable KDIGO staging from routine labs and vitals, with thresholdable probabilities suitable for triage and referral. By weighting base learners via a priority-queue scheme and calibrating at the ensemble level, PQWE addresses common shortcomings of prior ML approaches and demonstrates readiness for integration into decision-support workflows. Clinical Trial: Not applicable (retrospective observational EHR study; ethics approval obtained with consent waiver).
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.