Research results

Every number from the model experiments, with the file it comes from. How each experiment was run is in METHODS.md; the code is in research/models/. The write-up that uses these results is research/writeup/paper.md, and the explanations are in research/analysis/causes.md.

The test. Every model takes the same test as the submitted EpiLag-PH model (src/backtest.py): each test year is forecast by a model trained only on earlier years, at 2, 4, 6 and 8 weeks ahead. Test years: Regions + QC 2019, 2023, 2024 and 2025; provinces 2019 and 2020. That makes 24 checks. LightGBM run through the research harness reproduces reports/backtest_*.csv and reports/alerts_*.csv exactly.

Files.

File What
model_comparison.csv Four methods and two averages against the two baselines, both panels
feature_groups.csv Each variable group removed from the full set, and added to cases + season
shap_groups.csv, shap_lags.csv SHAP attention by group and by lag (feature_set: current = submitted features, plus = research table)
rain_lags.csv, rain_lag_shap.csv Rain totals 12–23 weeks back
proposed_features.csv The variables proposed by the literature review: neighbours' cases, heatwave days, rain anomaly
candidates.csv Candidate final sets, scored on every measure
margin_check.csv, margin_check_calibration_year.csv The 2023 calibration check
extracts/ Per-week backtest forecasts, calibration coverage, weekly series and rain by year, used by research/analysis/. Also game_forecasts.json: all four models' 4-week forecasts in Dengue Drill's format

Four methods on the same test

24 checks: 6 test years × 4 lead times.

LightGBM (EpiLag-PH) Negative binomial Random forest SARIMAX
Smallest miss of the four 12 7 0 5
Beat "same as this week" 19 23 19 18
Beat "same week last year" 24 24 24 24
Median miss vs LightGBM, 2 / 4 / 6 / 8 weeks 0 +2% / +5% / +10% / +12% +1% / +3% / +4% / +3% +5% / +6% / +2% / 0%
Range held after calibration (target 80%) 70–96% 67–92% 67–93% 69–96%
Range held before calibration 46–73% 59–89% 67–87% 58–89%
Outbreak starts caught by Watch, pooled 83% 84% 82% 88%
Caught by Outbreak warning, pooled 36% 37% 38% 17%

Where each method won:

How to read it:

Average of the four (blend_all4). An equal average, in log space, of the four methods' calibrated 10/50/90% forecasts. No refitting, no tuned weights (METHODS.md).

Average of the four LightGBM alone
Smallest miss, against the four methods 11 of 24 7 (negative binomial 4, SARIMAX 2)
Beat "same as this week" 24 of 24 19
Miss vs LightGBM, median at 2 / 4 / 6 / 8 weeks −4% / −4% / −2% / −2% (range −18% to +4%; better in 17 of 24) 0
Range held (target 80%) 73–97%, mean 81% 70–96%, mean 80%
Watch: caught, pooled / false alarms, average 87% / 58% 83% / 58%
Outbreak warning: caught / false alarms 30% / 27% 36% / 30%

What each data group adds

Effect = change in average miss from having the group in the model. Negative means the group helped.

Counts are checks where the group helped: 16 for Regions + QC (4 years × 4 lead times), 8 for provinces (2 × 4).

Group Regions + QC, add Regions + QC, median effect at 2 / 4 / 6 / 8 weeks Provinces, add Provinces, remove
Rain 12 of 16 0% / −1% / −3% / −4% 2 of 8 helped in 2 of 8
Heat 14 of 16 −2% / −4% / −4% / −7% 3 of 8 3 of 8
Humidity 15 of 16 −3% / −3% / −5% / −6% 4 of 8 4 of 8
ENSO 8 of 16 +1% / −2% / −3% / −4% 2 of 8 0 of 8 (hurt every time)
Elevation not tested 7 of 8; −1.9% median, −4.7% at 8 weeks 3 of 8
Population 15 of 16 (but fixed per area: acts as an area label) −2% / −3% / −6% / −9% 4 of 8 3 of 8
Recent cases in base in base removing it makes the miss 21–303% bigger

Research table compared with the live model (all research variables against today's features, LightGBM):

SHAP (final model, research table).

Longer rain lags (rain_lags.py). Three 4-week rain totals, 12–15, 16–19 and 20–23 weeks back, added to the research set. LightGBM, same test.

Variables proposed by the literature review

proposed_features.py, built as in METHODS.md. Each group was added to cases + time of year (add_to_base) and to the full research set (add_to_plus). Counts are checks where the group cut the miss. Watch is outbreak starts caught, pooled (cases + time of year alone: 270 of 324 for Regions + QC, 807 of 936 for provinces; full research set: 265 and 801).

Group Regions + QC, add to base Regions + QC, add to research set Provinces, add to base Provinces, add to research set
Neighbours' cases 11 of 16, median −1.8%; Watch 272 9 of 16, −0.1%; Watch 258 6 of 8, −1.4%; Watch 815 8 of 8, −2.8% (−4.5% to −1.1%); Watch 804
Heatwave days 9 of 16, −0.8%; Watch 284 9 of 16, −0.1%; Watch 258 3 of 8, +1.2%; Watch 801 5 of 8, −0.2%; Watch 794
Rain anomaly (drought) 10 of 16, −1.3%; Watch 279 7 of 16, +0.6%; Watch 271 1 of 8, +2.2% (2020: +2% to +12%); Watch 809 3 of 8, +0.6%; Watch 797

Candidate final sets

candidates.py, LightGBM, same test. Change is the average miss against the live set; negative is better. Watch and Outbreak warning are outbreak starts caught, pooled over test years and lead times. The average of the four comes from model_comparison.csv.

Regions + QC (16 checks; 324 outbreak starts)

Set Better than live Median change (worst) Beat "same as this week" Range held, mean (min–max) Watch caught Outbreak warning caught
Live – 0 11 of 16 81% (70–96%) 270 101
+ heat, humidity, ENSO (research set) 11 of 16 −2.4% (+2.5%) 15 79% (68–94%) 265 89
+ heat, humidity (no ENSO) 13 of 16 −0.9% (+2.1%) 13 81% (73–95%) 264 99
Average of the four methods 13 of 16 −3.4% (+4.4%) 16 83% (75–97%) 277 80

Provinces (8 checks; 936 outbreak starts)

Set Better than live Median change (worst) Beat "same as this week" Range held, mean (min–max) Watch caught Outbreak warning caught
Live – 0 8 of 8 78% (76–80%) 779 357
+ neighbours' cases 8 of 8 −2.4% (−0.5%) 8 79% (76–80%) 786 374
+ elevation, density 3 of 8 +0.1% (+0.6%) 8 78% (76–80%) 783 340
Research set 0 of 8 +1.2% (+9.5%) 8 79% (75–82%) 801 337
Research set, no ENSO 4 of 8 0.0% (+1.6%) 8 78% (74–79%) 782 343
Research set, no ENSO, + neighbours 8 of 8 −2.0% (−0.6%) 8 79% (75–80%) 789 355
Average of the four methods 4 of 8 +0.4% (+4.2%) 8 79% (73–85%) 820 303

How to read it:

Final variables

The sets chosen:

Together, against the live model over the 24 checks:

Why these. They cut the miss without losing outbreak starts on either rule. ENSO was left out: its extra gain is mostly Regions + QC 2023, it costs 10 Outbreak-warning catches (89 against 99), and it may be acting as a label for the year (hypothesis 1). The average of the four methods was not chosen because it catches the fewest starts on Outbreak warning.

Not applied to the live model. src/ and reports/ still hold the submitted model. Applying the choice would mean:

In the write-up, the submitted model is the main result, and the chosen sets are what the research found.

Caveat. Both choices were made after seeing the test years, and no year outside the tests is left to score them on: province data ends in January 2021, Regions + QC data in December 2025. Treat the gain as optimistic until a new season is scored.

Not tested

Hypotheses

Explanations the results suggest, not findings. Each is weighed against the literature in research/analysis/causes.md, part 2.

  1. ENSO hurts provinces because 5 years of province data (2016–2020) hold about one El Niño cycle. The model can use ENSO as a label for the year, and that pattern does not carry over to a new year. For Regions + QC it helped in 2023 and 2024 from 4 weeks ahead, not in 2019, and was mixed in 2025. QC alone has 16 years of data.
  2. Weather groups help Regions + QC more than provinces. Region weather is one population-weighted point per region, while province weather is one point per province. Region counts are larger and smoother, too. Or the province test years (2019 record epidemic, 2020 COVID) are unusual.
  3. Elevation helps provinces on its own but not inside the full set. It may stand in for something the other variables already carry (rain, temperature or urbanisation).
  4. Rain's attention peaks 12–15 weeks before week t (14–23 weeks before the target week), but adding those weeks does not cut the miss. Compare with expected_lag_weeks in the literature: is a 3–5 month rain-to-dengue lag reported, or is this the rainy season's timing?

2023 calibration check

Question. Is the wide 2023 range for Regions + QC (it held 92% of weeks, against an 80% target) caused by y_lastyear missing in 2022, the calibration year? The regions have no 2020–2021 data, so "same week last year" is missing for 17 of 18 areas in 2022.

Test (margin_check.py, margin_check.csv). The Regions + QC backtest three ways, every test year:

Result: not the cause.

Margin, 4 weeks ahead 2019 2023 2024 2025
live 0.176 0.227 0.094 0.097
gap filled 0.188 0.216 0.092 0.091
dropped 0.185 0.228 0.095 0.082

What the margin does follow (margin_check_calibration_year.csv): how the calibration step's model, fit without the last training year, forecast that year.

Calibration year (test year) Median log error, 4 / 8 weeks Weeks above the 90% forecast, 4 weeks Weeks below the 10% forecast, 4 weeks Margin, 4 weeks
2018 (2019) −0.16 / −0.27 36% 8% 0.176
2022 (2023) −0.20 / −0.41 38% 9% 0.227
2023 (2024) −0.07 / −0.11 20% 12% 0.094
2024 (2025) −0.07 / −0.07 22% 8% 0.097

Hypothesis, not tested: the 2018 and 2022 calibration models were fit on regional data that were short (2016–2017) or ended two years before the calibration year (2016–2019, then the 2020–2021 gap). The 2023 and 2024 calibration models had the 2022 season in their fit data and missed less.

Next step, untested: calibrate on more than one year, or set the lower and upper margins separately. Romano et al. (2019) give a version of conformalized quantile regression with separate margins.