Transformer Networks and Loss with Punishment for Optimized Management of Urban Water Supply System

Accurate water demand forecasting is critical for the efficient operation and management of water supply systems, traditional forecasting models often show limited performance, with errors equally 50%/50% split between underestimation and overestimation. Here we show a model based on transformer (TF) to predict water demand quantity, comparing its performance with statistical models, recurrent neural network (RNN), long short-term memory (LSTM). To tackle the critical issue of underestimating water demand, we design a penalized loss function that constrains the model’s output distribution when predicting anomalies, drawing inspiration from the Chinese saying “killing the chicken to scare the monkey.” The rationale for this penalized loss function is explained through the principles of the transformer network and loss function with punishment (TFP) model and interpretability analysis. If actually deployed, the TFP model would reduce water supply by 8.97%, achieving a mean absolute percentage error of 2.93% and an underestimation probability of just 30.63%. Additionally, we outline a process for applying the penalized loss function to tackle a broader range of environmental challenges, with the goal of addressing more diverse environmental issues in the future.

Authors

Institutions

Publication Details

Journal
ACS ES&T Water
Published
2025-01-27
DOI
https://doi.org/10.1021/acsestwater.4c00881
Primary Topic
Water Systems and Optimization
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Transformer Networks and Loss with Punishment for Optimized Management of Urban Water Supply System

Hewen Li, Jiuling Li, Zhiyu Zhang, Wan-Xin Yin et al.
ACS ES&T Water
Water Systems and Optimization
article

Transformer Networks and Loss with Punishment for Optimized Management of Urban Water Supply System

Hewen Li, Jiuling Li, Zhiyu Zhang, Wan-Xin Yin, Yuqi Wang, Meifang Wang, Hong‐Cheng Wang, Ai-Jie Wang, Jia-Ji Chen
article en

Abstract

Accurate water demand forecasting is critical for the efficient operation and management of water supply systems, traditional forecasting models often show limited performance, with errors equally 50%/50% split between underestimation and overestimation. Here we show a model based on transformer (TF) to predict water demand quantity, comparing its performance with statistical models, recurrent neural network (RNN), long short-term memory (LSTM). To tackle the critical issue of underestimating water demand, we design a penalized loss function that constrains the model’s output distribution when predicting anomalies, drawing inspiration from the Chinese saying “killing the chicken to scare the monkey.” The rationale for this penalized loss function is explained through the principles of the transformer network and loss function with punishment (TFP) model and interpretability analysis. If actually deployed, the TFP model would reduce water supply by 8.97%, achieving a mean absolute percentage error of 2.93% and an underestimation probability of just 30.63%. Additionally, we outline a process for applying the penalized loss function to tackle a broader range of environmental challenges, with the goal of addressing more diverse environmental issues in the future.

ACS ES&T WaterVol. 5(2)
Tongji University (CN), The University of Queensland (AU), City University of Hong Kong (HK), Chinese Academy of Sciences (CN), Harbin Institute of Technology (CN), Biotechnology Research Center (IR), Water Technology (Australia) (AU), Research Center for Eco-Environmental Sciences (CN), Shenzhen Technology University (CN)
National Natural Science Foundation of China, National Key Research and Development Program of China, Shenzhen Science and Technology Innovation Program
Clean water and sanitation
Openalex Percentile: Top 98%
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.