All projects

Amaan SurtiHealthcare AI & machine learning engineer

Resume

Sepsis­Sentinel

Hour-by-hour sepsis risk for ICU patients: calibrated, explained in plain language, and scored once on a lockbox of 8,068 patients it had never seen.

Built
solo
When
Oct–Nov 2026, Data Science & ML
Data
PhysioNet / CinC Challenge 2019
Tests
93 passing
Stack
LightGBM + GRU ensemble · isotonic calibration · SHAP · FastAPI · React

The problem

Sepsis builds over hours, and the bedside rules meant to catch it fire on so many patients that staff learn to tune them out.

The goal: warn earlier than the standard SIRS screen, with fewer false alarms, on the 40,336 ICU stays from two hospitals in the PhysioNet / Computing in Cardiology Challenge 2019, and prove it honestly.

What I built

  • Split by patient: 32,268 for development, 8,068 locked away and opened exactly once, at the end.
  • 298 causal features (carried-forward values, missingness, rolling windows, deltas, clinical scores). Each one at hour t uses only hours up to t, and a test enforces it.
  • LightGBM tuned with Optuna in 5-fold cross-validation, plus a one-directional GRU; blended 0.7 / 0.3, the weights chosen by nested cross-validation.
  • Isotonic calibration, so a displayed 3% risk means about 3%.
  • SHAP reasons for every hour, in words a nurse would use: "Lactate last measured 2h ago", "Temperature 38.4".
  • FastAPI backend and a React ward dashboard. The same inference code serves the demo and the live API (parity under 1e-6).

Results

Lockbox test set, 8,068 patients, evaluated once; 95% confidence intervals from 1,000 patient-level bootstrap resamples.

Model, same test setUtilityAUROCSensitivityFalse alerts / day
Never alert0.0000.5000.00%0.00
SIRS ≥ 2 (bedside rule)0.0510.61582.76%1.53
qSOFA ≥ 2 (partial)0.0120.51625.94%0.45
Logistic regression0.2440.73767.06%0.25
SepsisSentinel (LightGBM + isotonic)0.4270.84887.54%0.53

Median first alert 29 hours before onset (95% CI 23–33 h). Expected calibration error 0.0027.

These lockbox numbers belong to the LightGBM component. The served ensemble was chosen on development data, where it beat LightGBM by +0.013 utility in a paired bootstrap; its own lockbox score has not been measured, and the app says so.

Stress test

Trained on hospital A and tested on hospital B, it lost 32.7% of its utility (0.441 to 0.296). The other way round, false alerts nearly tripled, from 0.33 to 0.93 a day.

The ranking survives the move (AUROC drops only 0.03 to 0.08); the alert threshold does not. A hospital adopting this would have to recalibrate on its own patients first. I'd rather show that than a single flattering number.

Caution

Decision support on retrospective, de-identified data. Not a medical device and not validated prospectively.

Code and records

Code, model card and full report on GitHub. The repository includes the frozen model, the 24-bed demo cohort and every results table.

Screens

The ward at ICU hour 30: 24 real held-out stays replayed hour by hour, highest calibrated risk first.
The ward at ICU hour 30: 24 real held-out stays replayed hour by hour, highest calibrated risk first.
Bed 16: first alert at hour 28; sepsis onset came at hour 42, fourteen hours later.
Bed 16: first alert at hour 28; sepsis onset came at hour 42, fourteen hours later.
Hour by hour: what was measured, what each model said, and the reasons behind it.
Hour by hour: what was measured, what each model said, and the reasons behind it.
The evidence room keeps the one-time lockbox test apart from the development comparison.
The evidence room keeps the one-time lockbox test apart from the development comparison.