HB-MSTE for Spatial-Temporal Water Deficit Prediction in Regional Distribution Networks

Accurate prediction of municipal water deficits across high-cardinality distribution zones is critical for maintaining supply security in hyper-arid regions. However, spatial-temporal machine learning models encounter two major methodological obstacles: (1) spatial aggregation bias, where regional macro�features mask localized micro-zone consumption dynamics, while naive micro-zone indicators overfit due to small sample sizes; and (2) target leakage, where unstratified encoding and standard cross-validation inadvertently contaminate training representations with validation statistics. In this study, we develop Hierarchical Bayesian Multi-Scale Target Encoding (HB-MSTE), an end-to-end probabilistically grounded tabular representation framework. HB-MSTE establishes three-tier partial pooling (Global → Macro-Emirate → Micro-Zone) where shrinkage intensity is determined adaptively through closed�form Restricted Maximum Likelihood (REML). We provide an analytical proof of admissibility demonstrating that HB-MSTE strictly dominates flat target encoding in mean squared error when zone sample sizes are constrained. Furthermore, we develop a strict Leakage-Free Nested Spatial-Temporal Cross-Fitting Protocol evaluated across four distinct operational generalization scenarios (Temporal, Spatial, Regional, and Spatio-Temporal). We demonstrate that standard Diebold-Mariano tests fail on cross-validation outputs due to cross-fold covariance, and we rectify forecast evaluation using Harvey- Leybourne-Newbold (HLN) adjustments and Space-Time Block Bootstrapping. In empirical benchmarks across 100 distribution zones and 7 Emirates, HB-MSTE combined with gradient tree boosting achieves superior global predictive accuracy (RMSE = 2.3748) and eliminates spatial residual clustering (Moran's I = −0.0036, p = 0.207). Crucially, under the most stringent operational test (unobserved future zones), HB-MSTE reduces Worst-Group RMSE from 4.6761 (flat encoding) to 2.8716—a 38.6% error reduction that enhances regional predictive equity. All data generators, estimators, and test suites are released in an open-source, Scikit-learn-compliant Python pipeline.

Authors

Publication Details

Journal
Research Square
Published
2026-12-01
DOI
https://doi.org/10.21203/rs.3.rs-11945150/v1
Primary Topic
Water resources management and optimization
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

HB-MSTE for Spatial-Temporal Water Deficit Prediction in Regional Distribution Networks

Zulman Arif
Research Square
Water resources management and optimization
preprint

HB-MSTE for Spatial-Temporal Water Deficit Prediction in Regional Distribution Networks

Zulman Arif
preprint en

Abstract

Accurate prediction of municipal water deficits across high-cardinality distribution zones is critical for maintaining supply security in hyper-arid regions. However, spatial-temporal machine learning models encounter two major methodological obstacles: (1) spatial aggregation bias, where regional macro�features mask localized micro-zone consumption dynamics, while naive micro-zone indicators overfit due to small sample sizes; and (2) target leakage, where unstratified encoding and standard cross-validation inadvertently contaminate training representations with validation statistics. In this study, we develop Hierarchical Bayesian Multi-Scale Target Encoding (HB-MSTE), an end-to-end probabilistically grounded tabular representation framework. HB-MSTE establishes three-tier partial pooling (Global → Macro-Emirate → Micro-Zone) where shrinkage intensity is determined adaptively through closed�form Restricted Maximum Likelihood (REML). We provide an analytical proof of admissibility demonstrating that HB-MSTE strictly dominates flat target encoding in mean squared error when zone sample sizes are constrained. Furthermore, we develop a strict Leakage-Free Nested Spatial-Temporal Cross-Fitting Protocol evaluated across four distinct operational generalization scenarios (Temporal, Spatial, Regional, and Spatio-Temporal). We demonstrate that standard Diebold-Mariano tests fail on cross-validation outputs due to cross-fold covariance, and we rectify forecast evaluation using Harvey- Leybourne-Newbold (HLN) adjustments and Space-Time Block Bootstrapping. In empirical benchmarks across 100 distribution zones and 7 Emirates, HB-MSTE combined with gradient tree boosting achieves superior global predictive accuracy (RMSE = 2.3748) and eliminates spatial residual clustering (Moran's I = −0.0036, p = 0.207). Crucially, under the most stringent operational test (unobserved future zones), HB-MSTE reduces Worst-Group RMSE from 4.6761 (flat encoding) to 2.8716—a 38.6% error reduction that enhances regional predictive equity. All data generators, estimators, and test suites are released in an open-source, Scikit-learn-compliant Python pipeline.

Research Square
Water resources management and optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon