Connect environmental exposure with aggregate health and workplace signals so teams can investigate emerging risk earlier.
Future Health Digital Innovation Challenge · Challenge 06
Live demo · Quick start · Product tour · Validation · Technical docs
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.
Open or download the MP4 · Captions · Transcript
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.shOpen 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 devOpen 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| 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
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"]
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
| 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 |
- 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.
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 Implementation, QA, and showcase |
![]() GitHub Actions Builds, tests, and security checks |
![]() Dependabot Dependency updates |
![]() 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.
















