Outbreak Signal Service: open-source EARS/CUSUM aberration detection for DHIS2 surveillance data

Hi all,

I’m building Outbreak Signal Service, an open-source backend that pulls weekly DHIS2 aggregate surveillance data and flags statistical aberrations for human review, using CDC’s EARS (C1-C3) and CUSUM methods alongside a moving-average z-score baseline.

Why a separate service instead of DHIS2’s native Predictors or Validation Rules: those work well for a single threshold check, but a proper EARS/CUSUM baseline with guard bands and a full alert lifecycle needs its own time-series store and state machine, which a DHIS2 instance can’t hold on its own. This is the same gap Zambia’s eIDSR team described when they built their own external threshold app (posted here as “The Automated Surveillance Alert threshold program”).

What’s built so far :

  • Weekly, idempotent sync from a DHIS2 instance
  • Five detection strategies running side by side (moving-average z, EARS C1/C2/C3, CUSUM), each a pluggable Spring bean
  • A JWT-secured Alerts API with a real lifecycle (open, acknowledged, resolved, dismissed)

Before trusting any of the strategies, I backtested all five against 200 synthetic series with a known, injected outbreak and published the full results, including the less flattering numbers (CUSUM’s high raw false-alarm rate, for instance). The best performer, EARS C3, caught 88.5% of the injected outbreaks.

Still to come: notifications (signed webhooks and email), FHIR DetectedIssue output, and a companion DHIS2 App (Outbreak Signal Manager) that will let an admin configure, trigger, and review this from inside DHIS2 itself, through a Route, so no credential sits in the browser.

An alert from this system is a signal for a person to review, never a confirmed outbreak - that distinction is written into the project on purpose.

Repo, including the backtest methodology and full results: GitHub - khalilurrrahmanridoykhan/outbreak-signal-service: Spring Boot service that pulls weekly surveillance data from DHIS2, flags statistical aberrations (EARS, CUSUM), and publishes alerts as REST, signed webhooks and FHIR DetectedIssue. Signals for review, not confirmed outbreaks. · GitHub

Happy to hear from anyone who has hit the same gap, or has thoughts on tuning the detection parameters for a specific disease or context.

1 Like