Uncertainty-aware water-demand forecasting and leakage early warning with temporal fusion transformers and Bayesian model fusion

Purpose Water distribution systems face persistent challenges from leakage, with approximately 20% of distributed water lost in the UK. This study presents a unified framework for 24h water-demand forecasting and early-leakage warning, integrating classification, regression and uncertainty quantification within a temporal fusion transformer (TFT) architecture. Design/methodology/approach The framework evaluates three TFT variants: a recent-TFT (R-TFT) using one week of preceding flow, a lagged-TFT (L-TFT) using flow from two weeks prior and a combined-TFT (C-TFT) fusing both through Bayesian Markov chain Monte Carlo (MCMC) sensor fusion. It is trained and validated on approximately 18,600 flow groupings from ∼2,000 district metred areas in the UK, benchmarked against a vanilla long short-term memory (LSTM), the Informer transformer and the minimum night flow (MNF) industry standard, under both balanced and imbalanced class distributions. An operational decision framework translates the outputs into structured early warning protocols. Findings The C-TFT achieves the strongest overall performance, with the highest central-prediction accuracy (median index of agreement 0.901) and tightest uncertainty bounds (median prediction interval normalised average width 0.696). The classification head achieves an area under the receiver operating characteristic curve (ROC-AUC) of 0.906, with recall stable above 80% under imbalanced conditions, substantially outperforming the minimum night flow baseline (AUC 0.738). TFT interpretability through variable selection and attention mechanisms aligns with physical consumption dynamics. Originality/value No existing framework unifies flow forecasting, leakage classification, uncertainty quantification and interpretability within a single architecture. This work addresses that gap and demonstrates consistent performance across balanced and imbalanced evaluations, supporting deployment in operational environments where leakage events are rare.

Authors

Institutions

Publication Details

Journal
Smart and Sustainable Built Environment
Published
2026-07-30
DOI
https://doi.org/10.1108/sasbe-03-2026-0270
Primary Topic
Water Systems and Optimization
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Uncertainty-aware water-demand forecasting and leakage early warning with temporal fusion transformers and Bayesian model fusion

Jawad Fayaz, Martin Rapp
Smart and Sustainable Built Environment
Water Systems and Optimization
article

Uncertainty-aware water-demand forecasting and leakage early warning with temporal fusion transformers and Bayesian model fusion

Jawad Fayaz, Martin Rapp
article en

Abstract

Purpose Water distribution systems face persistent challenges from leakage, with approximately 20% of distributed water lost in the UK. This study presents a unified framework for 24h water-demand forecasting and early-leakage warning, integrating classification, regression and uncertainty quantification within a temporal fusion transformer (TFT) architecture. Design/methodology/approach The framework evaluates three TFT variants: a recent-TFT (R-TFT) using one week of preceding flow, a lagged-TFT (L-TFT) using flow from two weeks prior and a combined-TFT (C-TFT) fusing both through Bayesian Markov chain Monte Carlo (MCMC) sensor fusion. It is trained and validated on approximately 18,600 flow groupings from ∼2,000 district metred areas in the UK, benchmarked against a vanilla long short-term memory (LSTM), the Informer transformer and the minimum night flow (MNF) industry standard, under both balanced and imbalanced class distributions. An operational decision framework translates the outputs into structured early warning protocols. Findings The C-TFT achieves the strongest overall performance, with the highest central-prediction accuracy (median index of agreement 0.901) and tightest uncertainty bounds (median prediction interval normalised average width 0.696). The classification head achieves an area under the receiver operating characteristic curve (ROC-AUC) of 0.906, with recall stable above 80% under imbalanced conditions, substantially outperforming the minimum night flow baseline (AUC 0.738). TFT interpretability through variable selection and attention mechanisms aligns with physical consumption dynamics. Originality/value No existing framework unifies flow forecasting, leakage classification, uncertainty quantification and interpretability within a single architecture. This work addresses that gap and demonstrates consistent performance across balanced and imbalanced evaluations, supporting deployment in operational environments where leakage events are rare.

Smart and Sustainable Built Environment
University of Exeter (GB)
Clean water and sanitation
Openalex Percentile: Top 14%
Water Systems 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.