Overview
Group project at Vrije Universiteit Amsterdam (M.Sc. AI) developing a predictive model for Acute Kidney Injury (AKI) in ICU patients with septic shock. Roughly two-thirds of septic shock patients develop AKI, and nearly half do so before they reach the emergency department. A reliable 12-hour-ahead risk signal lets clinicians adjust treatment or initiate renal support sooner.
Research question: which septic shock patients are at risk of developing a specific stage of AKI (0, 1, 2, 3) in the next 12 hours, with predictions made at repeated points from 48 hours into the ICU stay?
Data
AmsterdamUMC database (UMCdb): 23,106 ICU admissions of 20,109 adult patients between 2003 and 2016, with nearly 1.0 billion clinical observations and 5.0 million medication records. Sepsis cohort isolation was a four-step pipeline: leveraging UMCdb's existing sepsis cohort code, filtering to lactate > 2.0 mmol/L, cross-referencing vasopressor administration (Dopamine, Dobutamine, Adrenaline, Noradrenaline), then joining on visit IDs (not patient IDs, since the same patient can have multiple ICU stays).
AKI stage labels are not in UMCdb directly, so we labelled them ourselves from KDIGO 2012 guidelines using creatinine, urine output, and eGFR.
Approach
- Expanding-window training. Train on the first 48 hours of ICU data and predict the AKI stage at 60 hours, then expand the training window by 12 hours at a time and predict at 72h, 84h and 96h. This matches how clinicians re-evaluate patients during a stay.
- Two models head-to-head. Decision Tree as the interpretable baseline (clinicians need to be able to read the model), XGBoost as the high-performance comparison.
- Tuning. Optuna with 50 trials per model. Final XGBoost: 237 estimators, max depth 10, lr 0.1609, lambda 3.38, alpha 1.35.
- Explainability. SHAP beeswarm plots and feature importance, plus per-prediction uncertainty estimates so clinical staff can read confidence alongside the prediction.
Key findings
- XGBoost beat the Decision Tree, statistically significantly (paired t-test, significant differences at p < 0.05 across accuracy, precision, recall, F1, and calibration scores). Shapiro-Wilk first confirmed normality of the differences. Averaged over the four test windows, XGBoost reached 0.89 accuracy against 0.85 for the Decision Tree. XGBoost also had the better Brier score and negative log-likelihood; the Decision Tree had the lower expected calibration error (0.00 to 0.01 against 0.02 to 0.03).
- Stage-by-stage performance is very uneven. Stage 0 (no AKI) is the easiest class for both models (F1 0.97 for XGBoost, 0.96 for the Decision Tree). Stage 2 AKI is the hardest (F1 0.75 and 0.69) and degrades both models, likely because it sits between cleaner stage-1 and stage-3 boundaries.
- Feature importance is stable across time windows. Urine output, baseline creatinine, and creatinine were consistently the top three predictors from the 60h to 96h windows.
- XGBoost stabilises by 96h; Decision Tree starts declining. Suggests the gradient-boosted model continues to extract signal from longer ICU histories where the simpler model overfits.
Limitation
These scores are inflated. Urine output and creatinine are the same measurements we used to assign the KDIGO stage labels, so the tree models can largely relearn our labelling rules, which is also why they top the SHAP ranking. The paper also flags possible leakage from forward-filling during imputation. Future work needs a more objective labelling method or true clinical labels.
Feature Importance Across Time Windows
Decision Tree Visualisation
Stack
Python, XGBoost, scikit-learn (Decision Trees), SHAP, Optuna, Pandas, AmsterdamUMC database (UMCdb).

