Skip to content
JayDev-27Public

About

Explainable early warning for population and workforce health using privacy-preserving aggregate signals.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Canary Challenge 06. See the signal. Act sooner.

Canary

Connect environmental exposure with aggregate health and workplace signals so teams can investigate emerging risk earlier.

Future Health Digital Innovation Challenge · Challenge 06

Canary CI Code Review MIT License Next.js 16 Python 3.12

Live demo · Quick start · Product tour · Validation · Technical docs

The actual Canary website scrolls through a full-screen canary film as blue signals connect and the caption follows their motion.

See what changed, then decide what to do

Canary is a prototype for occupational health, site safety, and public health teams. Environmental exposure can raise an early watch. Aggregate clinic and workplace signals help confirm whether the pattern warrants closer review.

  • Sense changes across simulated respiratory, gastrointestinal, and heat stress events.
  • Explain an alert with observed and expected signals, evidence contributions, a time window, and data completeness.
  • Act with a suggested response, an owner, assumptions, and a human review step.
  • Protect aggregate data through schema checks, small-cell suppression, and scoped backend views.

Important

The workspace is a decision-support demonstration. The Next.js demo uses seeded data and selectable roles. Clinical effectiveness requires real-world validation.

Product tour

Surveillance room with the illustrative Dubai map and an area dossier
01 · Surveillance room
Inspect an area, its tier, and supporting context.
Respiratory scenario replay with signal trajectories and a timeline
02 · Scenario replay
Scrub simulated events and compare detector markers.
Alert detail showing observed versus expected signals
03 · Alert evidence
Trace what changed, why it was flagged, and how reliable the evidence is.
Response playbook with an owner, assumptions, and review details
04 · Response playbook
Review suggested actions alongside evidence and assumptions.
Privacy sandbox showing the suppression threshold and synthetic counts
05 · Privacy preview
Adjust the suppression threshold or test the aggregate ingestion contract.
Validation view showing sensitivity, precision, and a detector comparison table
06 · Validation
Compare detectors and test how missing feeds affect sensitivity.
More screens
Dark workspace Mobile landing page
Dark theme in the Canary surveillance room The Canary landing page on a phone-sized screen
Impact estimator Settings and telemetry
Illustrative health impact calculator with adjustable assumptions Demo role and feed preview controls
See both moments of the landing animation
Opening frame Signals connecting
Canary landing page with the full-screen bird and opening headline The follow-up caption tracking the blue lights in the film

Narrated walkthrough

Cover of the narrated Canary motion graphics walkthrough

Open or download the MP4 · Captions · Transcript

Quick start

Install Python 3.12, uv, and Node.js 22 with npm.

git clone https://github.com/JayDev-27/Canary.git
cd Canary
uv sync --locked
./start.sh

Open the website and FastAPI docs. The launcher starts both services. The website uses its bundled demo endpoints by default, while the FastAPI service exposes the statistical pipeline separately.

Run just the website
cd frontend
npm ci
npm run dev

Open Analyze site counts from the workspace to run the sample, upload a CSV, or paste a report. Reviewer walkthrough

Validate the backtest and build
uv run pytest -q
uv run python -m eval.backtest --no-charts --output-dir /tmp/canary-eval
uv run python scripts/check_report.py /tmp/canary-eval/summary.json
cd frontend
npm ci
npm run build

Validation

Held-out simulation results showing comparator lead time and sensitivity under missing feeds

Detector Event sensitivity Alert precision False alerts per site-month Median Canary timing
Canary fusion 88.9% 92.3% 0.032 —
Absence EARS C2 66.0% 35.2% 0.588 1 day earlier
Clinic CUSUM 98.6% 88.9% 0.107 1 day later
Fixed exposure 49.3% 53.5% 0.577 3 days later

The backtest uses 144 injected events across three held-out simulation seeds. Timing comparisons only include events found by both methods. Clinic CUSUM detected more events, especially gastrointestinal clusters. Canary returned higher precision and fewer false alerts per site-month than the clinic comparator. Report · Methods and limitations

How it works

flowchart LR
  A["Aggregate clinic and workplace reports"] --> B["Schema validation"]
  C["Open-Meteo weather and air quality"] --> D["Environmental exposure"]
  B --> E["Expected outcome baselines"]
  D --> F["Evidence fusion"]
  E --> F
  F --> G["Risk tier and spatial scan"]
  G --> H["Suppression and role scope"]
  H --> I["Alert evidence and review playbook"]
Loading

The backend accepts aggregate records and rejects person-level fields. Small values and related contributions are protected in scoped backend outputs. The website's privacy preview deliberately uses synthetic input examples to show how suppression works. Reviewers remain responsible for interpreting an alert and choosing a response. Data governance · Data contract

Technical docs

Document What it covers
Architecture · API Engine, interfaces, storage, and response contracts
Product requirements · Design Intended workflows, design system, and interaction
Rules · Model card and assumptions Model boundaries, operational assumptions, and evaluation
Deployment · Release audit Demo configuration, verification, and pilot gaps

Next steps

  • Run a shadow-mode pilot with authorized aggregate feeds and a predefined alert budget.
  • Calibrate thresholds on pilot data and review missed events by syndrome.
  • Replace demo role selection with authenticated organization and site scope before connecting sensitive data.

Contributors

The original Canary authors and contributors are credited below. This repository imports the project snapshot and the locally available reviewer-workflow commits. Available commit history

OpenAI Codex logo
OpenAI Codex

Implementation, QA, and showcase
GitHub Actions bot avatar
GitHub Actions

Builds, tests, and security checks
Dependabot avatar
Dependabot

Dependency updates
Vercel bot avatar
Vercel

Production deploys and commit status

Canary is released under the MIT License. Environmental inputs and forecast capabilities are documented by Open-Meteo. The demo narration uses Sarvam Bulbul v3 with Ishita.

About

Explainable early warning for population and workforce health using privacy-preserving aggregate signals.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages