Built to keep running. Safely, cheaply, for years.
A forecast is only useful if a health office can still run it next season. This page sets out what EpiLag-PH is worth in numbers, how it reaches more areas and users, how it protects data, who keeps it running, and what it costs people and the planet.
- ₱0 to run
- No patient data
- No server to attack
- Laptop CPU retrain
- Open code and data
- 1
Weekly file
Cases per area per week. One CSV, no patient details.
- 2
Check
The data contract rejects bad rows and any patient column.
- 3
Forecast
Retrain and forecast on an ordinary CPU, in about a minute.
- 4
Gate
A drifted model is held back; last week's forecasts stay up.
- 5
Publish
Static pages, open data, alert feeds. Works offline.
Steps 2 and 4 run automatically on GitHub every Monday; step 3 joins them once a data partner sends current weekly files.
Same budget, more cases prevented.
All from replays of real seasons, with forecasts made only from data available at the time.
more cases averted for the same money: 2,243 vs 1,792 across the 17 regions of the 2019 Dengue Drill, ₱5M each
of warning before Quezon City crossed its epidemic line in October 2024
cases reported in Quezon City after the first watch and up to the February 2025 peak: the window early action targets
provinces flagged 4 weeks before crossing the threshold (2 June 2019 replay)
Where the 25% comes from
Two computer players spend the same 10 response teams (₱500,000 each) over 8 turns in each region. One sends teams where reports already passed the epidemic line; the other follows EpiLag-PH's alerts. Each team prevents 30% of the cases among the residents it reaches over the next 2–9 weeks (Bowman et al. 2016, central estimate). EpiLag-PH did better in 12 regions.
Who gains
Provincial, city and municipal health offices get weeks to clean up and stock test kits and IV fluids. Households get a plain-language outlook in Filipino and English. Hospitals see fewer cases at the peak.
What we do not claim
These are replays and simulations, not a field trial. The effect of a clean-up is a literature range (10–50%), and the costs are example values. The pilot below is how we would measure the real effect.
Sources: scripts/drill_data.py (the game's own scoring), site/public/drill/qc.json, docs/data/replay_2019-06-02.json.
One weekly file in. Plans out, for every area.
Every layer is plain files, so any part can be swapped without rebuilding the rest.
| Layer | Today | In a deployment |
|---|---|---|
| Case data | DOH data via HDX; UPRI-NOAH regions and Quezon City | Weekly PIDSR export from the DOH Epidemiology Bureau or a city or provincial surveillance unit, in the data contract shape |
| Weather | ERA5 via the free Open-Meteo archive | The same, or PAGASA station data |
| Checks | validate_cases.py, model_gate.py, tests on every change | The same, every Monday 09:00 on GitHub Actions |
| Model | LightGBM, retrained on a laptop CPU | The same, on a free GitHub runner or a health office PC |
| Delivery | Static site on GitHub Pages and Vercel; offline app; CSV and JSON; RSS and calendar alert feeds | The same, plus SMS to barangay health workers through an LGU's existing SMS service |
Any area that counts cases
The only required input is weekly case counts per area. The data contract (data/contract/) spells out the columns, and the check rejects a bad file before anything is forecast from it.
Low bandwidth, no install
The app opens in a browser and keeps working offline once loaded, for rural health units with weak signal. Content is in Filipino and English.
Plugs into other systems
Every forecast is published as CSV and JSON with column definitions, and alerts as RSS and calendar feeds, so a DOH dashboard or a newsroom can pull them without us.
Rollout, one step at a time
- 1 · Pilot, 2027–28Batasan Hills, Quezon City's barangay with the most dengue cases2 months setup, 4 months shadow run (forecasts scored, no action), a live rainy season, then a go or no-go
- 2 · District 2, Jul 2028Payatas, Commonwealth, Holy Spirit, Bagong SilanganOnly if the pilot passed: a watch 4+ weeks ahead, clean-up within a week, few false alarms
- 3 · All of Quezon City, Jul 2029142 barangays, 3.08 million peopleMoney goes first where it averts the most cases per peso
- 4 · NCR, then national, from 2030Regional epidemiology units, then the DOH Epidemiology BureauProvince forecasts already run for all 86 units; nationally it is one scheduled job
No partnership is claimed. The pilot is a proposal; its timeline and pass mark are the ones in the final-round deck.
Every city and municipality in about a minute.
Measured, not promised: the production training code, timed at three sizes. 19 times the areas took under 3 times as long.
| Areas | Training rows | Full weekly retrain | What that is |
|---|---|---|---|
| 86 | 16,869 | 25 seconds | today's provinces |
| 400 | 78,506 | 39 seconds | about 5 times today |
| 1,600 | 313,888 | 69 seconds | about every city and municipality in the Philippines |
A full retrain = features, then 3 quantile models with conformal calibration for each of 4 horizons. Real province case histories, copied out for the larger sizes; weather columns of the right shape. Timed on a laptop (Apple silicon, CPU only, no GPU). Reproduce with python scripts/scale_benchmark.py; results in reports/scale_benchmark.csv.
More users cost nothing
Pages and data are static files served from a content delivery network. A thousand health offices or a million residents load the same files; there is no server to overload.
Small downloads
All the forecast data for 104 areas is about 1.6 MB, loaded once and then kept for offline use.
One model, many areas
All areas share one model per horizon, with population as an input, so a new area needs no new model, only its weekly counts.
Nothing about any patient. Nothing to steal.
Designed so that the safest data is the only data it needs.
Counts only
EpiLag-PH uses one number per area per week. No names, addresses, ages or case IDs ever enter it, and the data contract check rejects any column it does not know, so a patient line list cannot slip in. That keeps it clear of the personal and sensitive personal information covered by the Data Privacy Act of 2012 (RA 10173).
Small areas, careful handling
The one privacy risk in counts is a very small number in a very small area. Barangay figures are estimates shared out from city totals, and barangay-level weekly data from a partner should stay with the health office, not be published, until it is aggregated.
No accounts, no tracking
No sign-up, no cookies, no analytics. The browser stores only two conveniences on the device (whether the guide was seen and a sort order), and the game's tutorial flags. The only outside request is for the Google Fonts typeface.
A small attack surface
A static site has no database, login or server code to break into, and is served over HTTPS. Dependencies are pinned in lockfiles, and every change runs the tests before it can be merged.
Cheap to run, hard to break quietly.
The danger for any forecast is drift: it keeps publishing after it stops being right. EpiLag-PH checks itself.
A promotion gate
A retrained model goes live only if, on its latest blind test year, it beats "same week last year", stays within 5% of "same as this week", and its range covers 70–90%. Otherwise last week's forecasts stay up and the maintainers are told.
scripts/model_gate.pyA clear owner and rhythm
A surveillance officer at a city or provincial unit uploads one file a week; a data analyst reviews the gate each season. About 4 staff hours a week in the pilot.
₱0 running cost
Open data, free hosting, free GitHub runners, no paid APIs, no GPU. Nothing to renew when a grant ends.
Tests guard every change
The app's alert levels, thresholds, replays and budget plan are tested against the Python pipeline; the game's scoring against its own rules; every page for errors, phone width, keyboard use and accessibility.
Open, so it outlives us
MIT-licensed code, every result as CSV, and a step-by-step rebuild from raw data in the README. Any LGU, university or DOH team can take it over without asking.
Simple by choice
One model type, plain Python and static pages. A public health graduate can read the whole pipeline in an afternoon.
A forecast advises. People decide.
Each risk, and what EpiLag-PH does about it.
| Risk | What EpiLag-PH does |
|---|---|
| False alarms waste money and trust | False alarm rates are published: 42–63% of watch alerts for regions and Quezon City in 2019–2025, 46% for provinces in 2019. Watch asks for cheap checks (inspect breeding sites, count test kits); only the stricter outbreak warning asks for a task force. |
| Automated decisions | Nothing happens automatically. Every alert comes with its reasons (SHAP), and the local epidemiologist makes the call. EpiLag-PH supports, and does not replace, DOH surveillance and local judgement. |
| Under-reporting is uneven | Reported cases undercount infections (about 4.7× in one Cebu City study), and more so where clinics are far. A budget ranked by reported cases could underweight poorer areas, so the plan shows low, central and high estimates and lets the health office replace the costs and effects with its own. |
| Stigma for flagged places | Barangay rankings are for health offices. The residents' page gives the whole area's outlook and the DOH 4S steps, never a list of "bad" barangays. |
| Hidden uncertainty | Every forecast is a range, the weak weather effect is reported openly, and every claim can be checked against the open data. |
Light to run. Lighter on insecticide.
The biggest environmental effect is not the computer. It is where the spraying goes.
Small compute
No GPU and no large AI model. A full retrain is about a minute on a laptop CPU, even at 1,600 areas (see the timings), once a week.
Static hosting
Files served from a cache use far less energy than a server running all day, and the offline app saves repeat downloads.
Less blanket fogging
The budget plan favours clean-ups and container covers (10–50% effect) over fogging (0–10%), and points the work at the areas that need it. Less spraying means less chemical exposure and slower insecticide resistance in mosquitoes.
All of it is open. Check every claim.
The data contract in data/contract/, the checks in scripts/, the weekly job in .github/workflows/, and every result in reports/.