Neural ODE · Phase 7
Learned dynamics research layer
COVID Flow keeps the ensemble on region dashboards. This page documents the Neural ODE research track: a constrained correction experiment on wastewater activity, not a replacement production forecaster.
Why this is not on production dashboards
v1.7.5-shrinkage-conservative is frozen as the canonical research model. It is calibrated and research-positive, but the promotion gate blocks it for one clear reason.
Four-week MAE is slightly above the allowed ensemble slack on the holdout slice (Illinois 0.773 vs 0.746 allowed; Cook 0.739 vs 0.722). Every other production safety check passes.
That is a useful finding, not a failure: the model learned selective h1/h2 corrections, knows when to abstain on longer horizons, and produces ~79% coverage on nominal 80% bands.
We do not promote this run and do not keep tuning the same gate to chase 4-week MAE. Simple ensemble rules remain stronger at four weeks on noisy weekly surveillance.
On Illinois and Cook dashboards
The default forecast is always the ensemble baseline. Neural ODE overlays appear only after an explicit manual promotion, which we do not plan for the frozen v1.7.5 research reference.
Where modeling goes next
The next product step is honest communication in Model Lab, not more aggressive 4-week Neural ODE tuning.
- Short-horizon selective correction (h1/h2) with richer wastewater context, including site quality, coverage, and regime labels.
- Better data and evaluation hygiene before new architectures.
- Optional one-shot h4-abstention experiment (1.7.6). If it cannot clear the narrow 4w gap without hurting h1/h2, stop forcing h4 and treat week-4 as ensemble territory.
Research track: not a case-count predictor
All models here predict a weekly wastewater activity index derived from NWSS surveillance. They do not directly forecast confirmed COVID cases, hospitalizations, or deaths.
The ensemble remains the trusted production forecast. v1.7.5 is the frozen canonical research candidate: safe, interpretable, and near-miss on 4-week lift only.
Phase 7 · Learned dynamics
What is a Neural ODE here?
Instead of a fixed rule like “next week equals this week,” we fit a small neural network that describes how fast activity changes at any moment along a trajectory. The model then integrates that law forward in time, similar in spirit to how physics simulates motion, but learned from wastewater history.
How it works in three steps
Step 01
Observe the signal
We use the same weekly weighted activity index as the rest of COVID Flow, a normalized measure of viral RNA in community wastewater.
Step 02
Learn a dynamical law
A Neural ODE fits a smooth rate-of-change function to historical weeks. Think of it as learning “if activity is here today, how fast is it moving?” rather than memorizing one fixed rule.
Step 03
Project forward
The model integrates that law up to four weeks ahead, producing point forecasts, uncertainty bands, and an instantaneous rate-of-change curve you can read on the dashboard.
Promotion gate (held-out weeks)
Holdout metrics from training are compared to production baseline metrics in Model Lab. Rolling-origin scores after inference use the same evaluation pipeline as baselines.
- 1-week error must beat or match persistence (hard to beat at short horizon).
- 2-week error must beat or match the ensemble baseline.
- 4-week error may be up to 5% above ensemble MAE.
- Trend direction at 1 week must stay within 5 percentage points of persistence.
- RMSE at each horizon must not exceed ensemble by more than 20%.
- 80% interval coverage must stay within a sane band (not empty, not trivially wide).
- No severe degradation vs ensemble in rising, falling, stable, or turn-point regimes.
- Training metadata (seed, data hash, artifact) must be recorded for reproducibility.
Promotion tiers
- Production safe: all held-out production checks pass (manual promote only).
- Near miss: model is safe on h1, intervals, and regimes, but 4w MAE is slightly above ensemble×1.05 (not enough long-horizon lift).
- Not production safe: fails persistence, interval, regime, or multi-horizon checks (legacy v1.6-style behavior).
- Research value: selective correction beats ensemble on enough origins at h2 with conservative gates (separate from production).
- h4 abstention (research): when only h4 improvement fails but gates are conservative, that is expected abstention, not a broken model.
Training runs
Each region has its own model name (neural_ode_IL, neural_ode_17031). v1.7.5-shrinkage-conservative is the frozen canonical research reference (candidate only). Production dashboard forecasts remain ensemble-first.
No Neural ODE runs yet
Train a candidate for Illinois or Cook County with npm run train:neural-ode, then promote after the gate passes. Inference fills dashboard forecasts and derivative curves.
Holdout vs baselines
No Neural ODE training runs in the database yet. Train with train_neural_ode.py to see holdout metrics here.