Project SENTRY: Empirical Benchmarks & Econometric Audit Trail
1. Executive Benchmark Summary (Phase 10/11 Final Locked State)
Evaluated via expanding-window walk-forward out-of-sample validation across all 18 administrative regions over 2022–2025 ( region-year test observations):
| Model Architecture | Specification / Screening | MAE (pp) | RMSE (pp) | Directional Accuracy | 95% PI Coverage | Diebold-Mariano (vs DFM) | Statistical Significance |
|---|---|---|---|---|---|---|---|
| Quad Stacking Meta-Ensemble | 3-Tier Simplex Meta-Learner (LGBM + EN + SDFM + MIDAS) | 0.0215 | 0.0284 | 100.00% | 100.00% | +5.78 | (Statistically Superior) |
| Gated LightGBM | Depth 3, , Domain-Partitioned Feature Gating | 0.0207 | 0.0296 | 100.00% | 96.05% | +8.80 | (Statistically Superior) |
| Gated ElasticNet | , CV-Folds 4, Domain-Partitioned Feature Gating | 0.0220 | 0.0273 | 100.00% | 92.11% | +2.62 | (Statistically Superior) |
| Conformal Spatial DFM (SDFM) | State-Space, Conformal | 0.0251 | 0.0291 | 100.00% | 95.83% | +2.24 | (Statistically Superior) |
| DFM Baseline (Aspatial) | 3 Latent Factors, VAR(1), 18 Indicators | 0.0307 | 0.0382 | 98.68% | 100.00% | 0.00 | Baseline Benchmark |
| Ridge U-MIDAS | 12 Monthly Lags, Ridge Regularization | 0.0320 | 0.0391 | 98.68% | 100.00% | -0.80 | Statistically Equivalent () |
| Non-Linear MIDAS (Almon) | 12 Monthly Lags, 3-Degree Polynomial Distributed Lag | 0.0657 | 0.0883 | 71.05% | 38.16% | -3.85 | Statistically Inferior |
| Non-Linear MIDAS (Beta) | 12 Monthly Lags, Two-Parameter Beta Weighting | 0.0822 | 0.1194 | 92.11% | 10.53% | -4.42 | Statistically Inferior |
2. Phase-by-Phase Development Audit Trail
flowchart TD
P6["Phase 6: Hardened LightGBM & ElasticNet (MAE 0.0229 pp)"] --> P7["Phase 7: Pure NumPy Spatial W & 90-Day Ragged Edge"]
P7 --> P8["Phase 8: Live GEE Satellite Ingestion (VIIRS & Sentinel-2)"]
P8 --> P9["Phase 9: CFS Gravity Matrix W(alpha) & Spatial DFM (MAE 0.0251 pp)"]
P9 --> P10["Phase 10: Domain Feature Gating & Quad Meta-Ensemble (MAE 0.0215 pp)"]
P10 --> P11["Phase 11: Repository Hardening, Zero-Leakage & Static Web Assets"]
P11 --> P11_5["Phase 11.5: Serverless CI/CD Poller & Structured Telemetry"]
P11_5 --> P12["Phase 12: Astro Jamstack Workstation, Interactive Islands & Zero Trust"]
P12 --> P12_5["Phase 12.5: Multi-Horizon Operationalization (2022–2026) & Live Nowcast Integration"]
Phase 6: Diagnostic Deficit Remediation & 2-Stage Feature Screening
- Diagnostic Finding: Unscreened 88-variable feature store caused overfitting in linear models and directional flips in gradient boosted trees.
- Intervention: Introduced 2-stage screening (mutual information + split-gain filtering, ) and 3-component orthogonal PLS dimensionality reduction. Applied asymmetric directional loss () to LightGBM.
- Impact: LightGBM MAE dropped to , ElasticNet MAE to , and directional accuracy reached .
Phase 7: Spatial Topology & Ragged-Edge Kalman Convergence
- Diagnostic Finding: Lack of spatial contiguity caused isolated island errors; official publication lags created an unmodeled 4-to-16 month information vacuum.
- Intervention: Formulated pure NumPy Queen contiguity with Haversine 3-NN maritime corridor links; implemented a 90-day countdown simulation ().
- Impact: Proved that as missing data drops from to , nowcast MAE converges smoothly from to .
Phase 8: Live Remote Sensing Ingestion & Physical Proxy Calibration
- Diagnostic Finding: Sub-national administrative statistics lack real-time physical indicators of electrification and agricultural output.
- Intervention: Ingested multi-threaded Google Earth Engine NOAA-VIIRS Nighttime Lights (
VCMCFG) and Sentinel-2 Surface Reflectance NDVI (COPERNICUS/S2_SR_HARMONIZED, cloud-masked via QA60) across 1,824 entity-months. - Impact: Retained directional accuracy while locking in empirical gains ( for LightGBM).
Phase 9: Economic Gravity Spatial Matrix & Unified Spatial DFM
- Diagnostic Finding: Spatial contiguity based strictly on geography failed to reflect commercial dominance (e.g. Cebu port maritime trade to Manila). Post-hoc spatial lag adjustment decoupled factor estimation from spatial feedbacks.
- Intervention: Ingested PSA Commodity Flow Survey (CFS) trade matrix; optimized convex hybrid . Inverted spatial multiplier directly inside the Kalman state-space observation operator.
- Impact: SDFM outperformed baseline DFM by ( vs. , Diebold-Mariano ).
Phase 10: Domain-Partitioned Feature Gating & Quad Meta-Ensemble
- Diagnostic Finding: CHIRPS precipitation and cyclone track indices diluted feature importance for industrial hubs. Inverting led to Kalman observation covariance underestimation ( PI coverage).
- Intervention: Enforced domain-partitioned feature gating (metro-industrial vs. island-agricultural); calibrated finite-sample conformal prediction intervals (); constructed 3-tier simplex quad meta-ensemble.
- Impact: Recovered LightGBM MAE to and ElasticNet to ; restored SDFM 95% coverage to ; achieved consensus ensemble MAE of with PI coverage.
Phase 11: Repository Hardening, Zero-Leakage & Ephemeral Storage
- Diagnostic Finding: Temporary data files and internal environment paths risked leaking into public version control.
- Intervention: Sanitized
.gitignore, established Kaggle Feature Store v9 (46 Parquet tables) as remote source of truth, implemented automated cleanup scripts, and deployed the authoritative 7-chapter documentation suite. - Impact: Achieved 176/176 passing tests, clean git working tree, and standardized research documentation.
Phase 11.5: Serverless CI/CD Automation, Release Poller & Telemetry
- Diagnostic Finding: Manual execution failed to capitalize on high-frequency statistical publications (CPI on 5th, LFS on 10th, Remittances on 15th, Trade/GRDP on 25th).
- Intervention: Developed autonomous release poller (
check_new_releases.py), structured telemetry monitor (telemetry_logger.py), and dual-schedule GitHub Actions workflow (pipeline_refresh.yml). - Impact: Expanded test suite to 221/221 passing tests; enabled automated retraining upon new agency data releases with zero server hosting costs ($0/month).
Phase 12: Production Jamstack Workstation, Interactive Islands & Zero Trust
- Diagnostic Finding: Public presentation required an accessible yet mathematically uncompromising research portal that isolates private modeling code while allowing interactive exploration.
- Intervention: Scaffolded production Astro Jamstack platform (
web/) on dedicated branchfeature/web, featuring dual operating modes (LITE executive summary with embedded 135-jurisdiction table and POWER USER terminal), 7 interactive client islands, multi-horizon nowcasting (2022–2026), KaTeX equation rendering with "Copy LaTeX" clipboard button, Cloudflare Zero Trust documentation gating for operational chapters (03,04,06), dynamic theme branding, and centered desktop hardware gating. - Impact: Fully decoupled, zero-cloud-cost public workstation delivering sub-second interactive linear algebra and 100% exact hierarchical accounting conservation ().
Phase 12.5: Multi-Horizon Operationalization & Live Nowcast Web Integration
- Diagnostic Finding: Web platform required unified navigation across both historical benchmark evaluations (2022–2025) and the forward active 2026 nowcast without degrading established econometric performance baselines. Table column tooltips suffered from Chromium table-cell stacking context bleed-through and clipping under horizontal scrolling.
- Intervention:
- Expanded pipeline CLI (
run_nowcast.py --target-year all) generating vintage catalogs underweb/public/data/{2022,2023,2024,2025,2026}/*.jsonwith backward-compatible root mirroring. - Preserved stage-2 econometric intercept in spatial lag estimation, eliminating negative post-lockdown growth rates and restoring canonical economic expansion (+3.56% in 2022, +4.31% in 2023).
- Dynamically linked the Ragged-Edge Stepper calendar to reflect unobserved 2026 frontier status (
PENDING (APR 2027)) vs. closed historical accounts (None (Terminal Horizon Closed)). - Deployed React Portal-based column tooltips with boundary clamping, eliminating CSS table stacking context clipping and preventing event propagation to table sort handlers.
- Re-ran empirical validation suite: confirmed exact retention of locked benchmark baselines (Quad Ensemble: MAE , RMSE , DA , Coverage , Diebold-Mariano vs U-MIDAS ; Spatial DFM: MAE , RMSE , DA , Coverage ; unit and regression tests green).
- Expanded pipeline CLI (
- Impact: Complete multi-horizon Jamstack research workstation with verified empirical parity, zero model regressions, and flawless UX across all viewports.
3. Sub-National Regional Attribution Matrix
Empirical error breakdown across distinct Philippine economic archetypes:
| Economic Archetype | Regions Included | Best Model Architecture | MAE (pp) | RMSE (pp) | Directional Accuracy | 95% Interval Coverage |
|---|---|---|---|---|---|---|
| Urban Commercial Core | National Capital Region (NCR) | Spatial DFM + LightGBM | 0.0167 | 0.0214 | 100.0% | 100.0% |
| Industrial / Manufacturing Corridors | Region IV-A (CALABARZON), Region III (Central Luzon), Region VII (Central Visayas) | Gated LightGBM | 0.0205 | 0.0278 | 100.0% | 96.4% |
| Agricultural & Island Economies | Region I, II, V, VI, VIII, IX, X, XI, XII, XIII, MIMAROPA, CAR, BARMM, NIR | Quad Stacking Ensemble | 0.0216 | 0.0289 | 100.0% | 100.0% |
4. Diebold-Mariano Statistical Superiority Tests
Pairwise Diebold-Mariano test statistics evaluated under quadratic loss against the baseline Dynamic Factor Model:
| Evaluated Model | Baseline | Mean Loss Differential | DM Statistic | -value | Empirical Conclusion |
|---|---|---|---|---|---|
| Quad Stacking Ensemble | Aspatial DFM | +5.78 | Statistically Superior | ||
| Gated LightGBM | Aspatial DFM | +8.80 | Statistically Superior | ||
| Gated ElasticNet | Aspatial DFM | +2.62 | Statistically Superior | ||
| Conformal Spatial DFM | Aspatial DFM | +2.24 | Statistically Superior | ||
| Ridge U-MIDAS | Aspatial DFM | -0.80 | Statistically Equivalent | ||
| Non-Linear MIDAS (Beta) | Aspatial DFM | -4.42 | Baseline DFM Superior |