Heart rate stream Fixed-threshold line CUSUM S⁺ statistic CUSUM threshold h
Trials: CUSUM mean lead time:
CUSUM false-alarm rate: Fixed-threshold false-alarm rate:

Sepsis Early-Warning CUSUM Detector (2D)

Modern hospitals generate a continuous flood of vital-sign data per patient — the "medical big data" problem is turning that stream into an early warning instead of noise. This 2D simulator plots a live heart-rate trace alongside a CUSUM (cumulative sum) statistical detector tracking the same stream. Trigger a slow physiological deterioration and compare how quickly the CUSUM statistic accumulates enough evidence to alarm against a conventional fixed-threshold monitor that only reacts once a single reading crosses its line. A built-in Monte Carlo mode replays hundreds of independent synthetic patient streams offline to measure the average detection lead time and each detector's real false-alarm rate at your chosen k/h settings — the same tradeoff hospital early-warning systems are tuned against in practice.