Short summary of notebooks 01_eda, 02_models and 03_anomalies_and_savings. Details, plots and code are in the notebooks;
every number below comes from them.
zone files (4) ──► 01 EDA: what drives use? ──► 02 expected use per circuit ──► 03 residual = actual − expected
(load_zones(), 2020-23+2025)(calendar, temperature, (baselines → Ridge → ├─ signal 1: events (model)
memory, trend) LightGBM, time split) ├─ signal 2: chronic off-hours waste (rule)
└─ € (OMIE / all-in) and CO₂ → dashboard CSVs
| | | |—|—| | Target | energy per hour (Wh = mean W) per circuit, one day ahead; 9 “focus” circuits (plugs, lighting, NW/SE HVAC) | | Split | train Jun 2020–Aug 2022 · validation Sep–Dec 2022 · test Jan–Feb 2023 (once) · 2025 = out-of-time check · lockdown removed | | Features | hour, weekday, working day / holiday / break / August, season (sin/cos), outdoor temperature + heating/cooling degrees, sun, humidity; forecast set: lags 24 h/48 h/1 w/2 w + 7-day mean; normal set: 28-day working-hours level | | Models | B1 last week, B2 4-week median, B3 day-type profile, Ridge (Pipeline), LightGBM (L1 loss, 8-setting search on validation) | | Metric | MAE in kWh (main), RMSE, CV(RMSE) (ASHRAE 14), NMBE |
Result: LightGBM_forecast is best or within 0.003 kWh of the best on 7 of 9 circuits. NW Plugs: MAE 0.70 (val) / 0.98 (test)
vs 0.85 / 1.05 for the best baseline. Ridge is close. The “normal” set without recent lags is only baseline-level.
Full table: reports/model_comparison.csv. Final model (notebook 04_model_search): the same LightGBM, but with one shared
set of settings for all circuits (reports/final_model_settings.json); notebook 03 uses it.
Data: the cleaned zone files of the data-cleaning group (data/zone_*_hourly.parquet), joined by load_zones() in src/zones.py.
reports/anomaly_events.csv, reports/offhours_waste_daily.csv, reports/savings_summary.csv; parameters in params.yaml.| Question | Answer |
|—|—|
| A. What exactly is the target? | Wh used in each hour per circuit, predicted a day ahead; residual vs this expectation = possible waste. |
| B. How was leakage prevented? | Target information ≥ 24 h old only; lags never cross the 2023-25 gap; no same-hour W/I/Pa/Ea or indoor sensors; scaler/encoder inside a Pipeline fitted on train; time-ordered split, test used once; tests/test_features.py. |
| C. Which metric matches the decision? | MAE in kWh (client thinks in kWh/€). For alarms: an alarm budget of ~1/week per circuit (alarm fatigue), with recall measured on synthetic loads. |
| D. Why is this complexity justified? | LightGBM beats all naive baselines on validation and test for the main circuits, Ridge shows most signal is simple, tuning is not fragile. No deep learning: tabular data, ~20k hours per circuit. |
No labelled waste (synthetic validation only) · hourly CV(RMSE) above the ASHRAE 30 % target for most circuits (occupant behaviour) · calendar assumptions (Christmas break, whole of August) look wrong in places · CO₂ factor and all-in price to be confirmed · use in 2025 differs from 2020-23 (retrain before going live) · “potential” savings may include some legitimate off-hours use.