Worried Doctors: ICU sepsis early-warning model (LightGBM)

A LightGBM model that reads hourly ICU data (vital signs, lab results, and when labs were measured) and estimates the risk that a patient meets the Sepsis-3 definition within the next 6 hours (PhysioNet/CinC 2019 SepsisLabel).

⚠️ Research model, not a medical device. Trained and tested on public retrospective data only. Do not use it for diagnosis or treatment decisions.

▶ Watch it replay real ICU stays hour by hour: https://huggingface.co/spaces/rigel08/worried-doctors-sepsis · Code: https://github.com/rigel08/sepsis-early-warning · 7-page paper: https://github.com/rigel08/sepsis-early-warning/blob/main/paper/worried_doctors.pdf

Results

  • 40,336 ICU stays from two US hospital systems. Developed at hospital A, then tested frozen at hospital B.
  • AUROC 0.838 (95% CI 0.817–0.859) at A, and 0.772 at the unseen hospital B.
  • The finding behind the name: a model given only when labs were measured, with no values at all, matches a physiology-only model (AUROC 0.783 vs 0.785). Much of the "sepsis signal" is clinician suspicion, and that is the part that breaks at a new hospital.

Files

File What it is
gbm.txt The full LightGBM model (182 features: vital signs, lab values, measurement-pattern features)
variants.json Decision thresholds for the full model and the 3 ablation variants, plus the imputation medians
example.py Loads the model and lists its most important features

Inputs

The 182 features come from the hourly PhysioNet 2019 table via build_features() in the GitHub repo (src/sepsis/features.py). They include current values, recent changes, hours since each lab was last charted, and measurement counts. Build them with the repo, then call booster.predict(features).

pip install lightgbm huggingface_hub
python example.py

Limitations

  • Retrospective data from two US hospital systems. The label itself depends on clinicians ordering cultures and antibiotics.
  • At the utility-optimal threshold the alarm is on for about a quarter of all patient-hours at A. It is not ready for a ward.
  • It relies on charting patterns, so it may fail silently where sepsis is under-recognised.

Portfolio: https://rigel08.github.io/portfolio-site/ · GitHub: https://github.com/rigel08 · All my models and demos: https://huggingface.co/rigel08

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using rigel08/worried-doctors-sepsis 1