Next Article in Journal
Large-Scale Multipurpose Benchmark Datasets for Assessing Data-Driven Deep Learning Approaches for Water Distribution Networks
Previous Article in Journal
Efficient Identification Strategy of Isolation Valves to Maintain through Modularity-Based WDN Clustering
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Optimizing Short-Term Water Demand Forecasting: A Comparative Approach to the Battle of Water Demand Forecasting †

1
RESILIENCE—Center for Regional Resilience and Sustainability, Escola Superior de Tecnologia do Barreiro, Instituto Politécnico de Setúbal, 2910-761 Setúbal, Portugal
2
Centro de Matemática, Aplicações Fundamentais e Investigação Operacional (CMAFcIO), Universidade de Lisboa, 1649-004 Lisboa, Portugal
3
Dipartimento di Matematica e Fisica, Università del Salento, 73100 Lecce, Italy
*
Author to whom correspondence should be addressed.
Presented at the 3rd International Joint Conference on Water Distribution Systems Analysis & Computing and Control for the Water Industry (WDSA/CCWI 2024), Ferrara, Italy, 1–4 July 2024.
Eng. Proc. 2024, 69(1), 48; https://doi.org/10.3390/engproc2024069048
Published: 4 September 2024

Abstract

:
The current paper presents a forecasting methodology for short-term water demand forecasting in the context of the Battle of Water Demand Forecasting. The methodology considers five distinct forecasting techniques, which are compared in terms of their forecasting ability for a preceding period, typically spanning a day or a week. The best-performing model is identified through error assessment between model predictions and actual measurements. This model is finally used to estimate the values for the forecasting horizon. This methodology directly considers the importance of tailoring the model to the specific case study and objectives. However, it is computationally intensive and relies on the fact that there will be not much variance between the preceding period and forecasting horizon results.

1. Introduction

The sustainable management of urban water supply systems (UWSS) often relies on water demand forecasts for a range of purposes, namely, system design, maintenance, and operation. Water demand forecasting models can be distinguished according to the forecast horizon (i.e., the length of time for which forecasts are generated) and frequency (i.e., the time step at which water demand predicted is generated within the forecasting horizon) [1]. In broad terms, long-term models generally provide demand forecasts on a yearly or monthly basis with a forecasting horizon ranging from years to decades and are mainly used for planning and infrastructure design. Short-term models, by contrast, forecast water demand over more limited time horizons, ranging from days to months, with a time step ranging from daily to sub-hourly, and are mainly used for operation and management purposes [1,2]. As noted by Ghalehkhondabi et al. [3], neural networks and pattern-based methods are more commonly used for short-term forecasting, while econometric models are usually used for long-term forecasting.
In recent years, a plethora of research has been published related to forecasting methods for urban water demand. Niknam et al. [4] reviewed over 100 short-term water demand forecasting methods published between 2010 and 2022 and concluded that there is no universal response to the question of what method one should use. In other words, the most adequate method should be selected among those showing better performance with respect to both the available data (e.g., the existence of climatic data) and the objectives of the forecast (e.g., average or peak water demand). It was also found that a reasonable number of papers based their analysis on traditional time-series analysis (e.g., ARIMA models) and regression models (including multivariate regression, decision trees, and random forests). These models have sufficient predictive ability for a range of operations in UWSS, whilst remaining interpretable and explainable to water utilities, specifically when compared with complex but less interpretable forecasting models such as the ones based on artificial neural network architectures or metaheuristics algorithms.
The current paper presents a forecasting methodology in the context of the Battle of Water Demand Forecasting (BWDF). The proposed methodology includes both pattern-based and regression techniques to improve the accuracy of the estimated values. Prior to forecasting, a pre-processing of the data and a model selection process is undertaken, wherein the best-performing model is identified through error assessment between model predictions and actual measurements from a preceding period, typically spanning a day or a week. This ensures that the optimal model, along with its parameter configuration, is chosen for forecasting considering the diverse variables such as area characteristics (e.g., proximity to maritime ports or city centers) and the importance (or not) of including weather data. The remainder of the paper is organized as follows. Section 2 presents the proposed methodology with a brief explanation of the distinct techniques and their respective parameters. Section 3 presents the main results for the four successive deliveries of the BWDF. Finally, Section 4 presents a discussion of the main benefits and drawbacks of the proposed methodology.

2. Materials and Methods

2.1. General Framework

The proposed methodology is mainly driven by one of the major problems faced by water experts, namely, which forecasting model should be used for a given specific case study, and which model parameters should be used. To face this problem, the assumption that no specific model will be the best in all possible situations is taken. This is carried out by considering five distinct forecasting techniques and by comparing their prediction ability for a preceding period, typically spanning a day or a week. The model presenting the best prediction ability for the preceding period is selected for forecasting. It is assumed that a forecasting model that presents good results for the preceding period will also present good results for the forecasting horizon.
Given the objective of the BWDF of forecasting a week of hourly water demand values for a specific case study, whilst using a given number of historical days of hourly water demand (e.g., one or two months), a general framework can be outlined in the following five steps:
  • Pre-processing: The data provided present missing values that limit the range of techniques that may be directly applied. The first step consists of pre-processing of seasonally decomposed missing value imputation using the R package imputeTS [5].
  • Model generation: The second step comprises the generation of distinct models for forecasting. This study uses five distinct forecasting techniques (as presented in 2.2). Each of these techniques contains specific parameters. Thus, a range of parameter combinations is devised for each technique. These parameter variations result in a set of candidate models for each forecasting technique.
  • Predicting of preceding period (hindcasting): Each of the candidate models generated in Step 2 is used to forecast a preceding period (e.g., a day or a week) leading up to the desired forecasting horizon. This step involves training the models on historical data preceding the target period, thereby assessing their predictive performance in a near-term context. Notably, this process may demand considerable computational resources, particularly when dealing with numerous parameter combinations or computationally intensive forecasting techniques.
  • Model evaluation and selection: The predicted values in Step 3 are compared with the real values using the mean absolute error, thus enabling ranking of each model in terms of predictability performance in a near-term context. The model with the smallest error is selected for forecasting.
  • Forecasting: The model selected in Step 4 is finally used to estimate the values for the forecasting horizon. This step involves training the model on historical data preceding the forecasting horizon.

2.2. Forecasting Techniques

Five distinct forecasting techniques are used in this study. Each technique (and its possible parameters) is briefly presented in the remainder of this section.
  • The Naïve technique considers patterns either on a day-by-day basis or differentiating weekdays from weekends. For each timestamp in the forecast period, it identifies relevant historical data blocks based on the chosen pattern. Then, it calculates the predicted value using either the average, median, or exponentially weighted moving average of the historical data block. The configurable parameters are the duration of historical data (e.g., one or two months), the pattern type (day-by-day basis or differentiating weekdays from weekends), and the type specified forecast type (average, median, or exponentially weighted moving average).
  • The support vector regression (SVR) technique uses multiple regression models to perform the forecast. Initially, it prepares the historical data by creating lagged values and by categorizing the data into weekdays, Saturdays, and Sundays/holidays. For each timestamp in the forecast period, a SVR model is trained using the relevant blocks in the prepared historical data. The trained SVR model is then used to forecast that specific timestamp. The configurable parameters are the duration of historical data, and the number of lagged values (e.g., previous 5 or 10 measurements at the same time of the day for the same type of weekday).
  • The Quevedo technique firstly estimates the total daily volume for the day for which measurements are to be estimated. This is conducted using an ARIMA model. Then, this total daily volume is distributed to hourly values based on the average pattern for this weekday. The configurable parameters are the duration of historical data and the pattern type (day-by-day basis or differentiating weekdays from weekends/holidays).
  • Distinct from previous techniques, the XGBoost technique considers meteorological data (precipitation, air temperature, air relative humidity, wind speed). It firstly prepares the historical data with the necessary features (e.g., hour of the day, day of the week, weather variables, or holiday indicators). Then, a regression model is trained using 80% of the historical data, with the remaining 20% being used to monitor training progress and prevent overfitting. The trained regression model is then used to forecast each specific timestamp (note that expected weather data are required in this phase). The configurable parameters are the duration of historical data and multiple XGBoost-specific parameters (e.g., learning rate, number of estimators, max depth, and number of early stopping rounds).
  • The long short-term memory technique (LSTM) is a recurrent neural network that memorizes long-term dependencies of time series [6]. The configurable parameters are the duration of the historical data, some parameters related to the general neural network algorithm (e.g., dropout, batch size, number of units), and LSTM-specific parameters (e.g., window length). The LSTM with weather data works by using two LSTM modules: the first module deals with the historical water demand data, using past observations with a time horizon equal to the length of the window; the second module considers meteorological data (precipitation, temperature, relative humidity, wind speed) with a shorter window length horizon [7]. The configurable parameters are the same as for the LSTM, but in this case both for the water and the meteorological data.

3. Results

Table 1 presents the selected forecasting model for each of the DMAs and each of the delivering week (i.e., W1 to W4). It is possible to conclude that no unique technique presents the best solution for every situation. For instance, in W1, no technique was used in more than three DMAs. SVR is used in 6 out of 10 DMAs in W2 and 5 out of 10 DMAs in W3. On the other hand, it is used only once in W4, whilst the Naïve method is used in 5 out of 10 DMAs. Furthermore, the parameters for the same DMA vary considerably (note that these data are not included in the paper due to space limitations). For instance, DMA F uses either 120 historical data days in W1 and 30 in W4. On the other hand, DMA I always resort to 30 historical data days throughout W1-W4.

4. Discussion and Conclusions

The current paper presented a methodology for water demand forecasting combining multiple techniques to capture different aspects of the time series data. By hindcasting, it is possible to assess the predictive performance of distinct forecasting models in a near-term context. Finally, the model with the best predictive performance (i.e., smaller error between estimated and real values) is selected to perform the forecast. As drawbacks, it is highlighted that (1) the computational cost can be relevant depending on the complexity of the forecasting techniques and (2) there is no guarantee that a forecasting model that presents good results for the preceding period will also present good results for the forecasting horizon.

Author Contributions

All authors contributed equally to this study. All authors have read and agreed to the published version of the manuscript.

Funding

The authors thank the Instituto Politécnico de Setúbal for the funding granted. Maria Grazia Quarta was supported by a scholarship financed by Ministerial Decree no. 351 of 9 April 2022, based on the NRRP—funded by the European Union—NextGenerationEU—Mission 4.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data available in the context of the BWDF.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Pacchin, E.; Gagliardi, F.; Alvisi, S.; Franchini, M. A Comparison of Short-Term Water Demand Forecasting Models. Water Resour. Manag. 2019, 33, 1481–1497. [Google Scholar] [CrossRef]
  2. Mu, L.; Zheng, F.; Tao, R.; Zhang, Q.; Kapelan, Z. Hourly and Daily Urban Water Demand Predictions Using a Long Short-Term Memory Based Model. J. Water Resour. Plan. Manag. 2020, 146, 05020017. [Google Scholar] [CrossRef]
  3. Ghalehkhondabi, I.; Ardjmand, E.; Young, W.A.; Weckman, G.R. Water Demand Forecasting: Review of Soft Computing Methods. Env. Environ. Monit. Assess. 2017, 189, 313. [Google Scholar] [CrossRef] [PubMed]
  4. Niknam, A.; Zare, H.K.; Hosseininasab, H.; Mostafaeipour, A.; Herrera, M. A Critical Review of Short-Term Water Demand Forecasting Tools—What Method Should I Use? Sustainability 2022, 14, 5412. [Google Scholar] [CrossRef]
  5. Moritz, S.; Bartz-Beielstein, T. ImputeTS: Time Series Missing Value Imputation in R. R J. 2017, 9, 207. [Google Scholar] [CrossRef]
  6. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
  7. Zanfei, A.; Brentan, B.M.; Menapace, A.; Righetti, M. A Short-Term Water Demand Forecasting Model Using Multivariate Long Short-Term Memory with Meteorological Data. J. Hydroinformatics 2022, 24, 1053–1065. [Google Scholar] [CrossRef]
Table 1. Selected forecasting model for each of the DMAs and each of the delivering weeks.
Table 1. Selected forecasting model for each of the DMAs and each of the delivering weeks.
WeekDMA ADMA BDMA CDMA DDMA EDMA FDMA GDMA HDMA IDMA J
W1Naïve QuevedoNaïve SVRXGBoostNaïve QuevedoSVRQuevedoXGBoost
W2SVRSVRSVRXGBoostQuevedoXGBoostSVRXGBoostSVRSVR
W3XGBoostSVRQuevedoNaïve SVRXGBoostSVRSVRSVRNaïve
W4Naïve Naïve Naïve LSTM-W Naïve LSTM-WNaïve SVRLSTM-WXGBoost
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ferreira, B.; Barreira, R.; Caetano, J.; Quarta, M.G.; Carriço, N. Optimizing Short-Term Water Demand Forecasting: A Comparative Approach to the Battle of Water Demand Forecasting. Eng. Proc. 2024, 69, 48. https://doi.org/10.3390/engproc2024069048

AMA Style

Ferreira B, Barreira R, Caetano J, Quarta MG, Carriço N. Optimizing Short-Term Water Demand Forecasting: A Comparative Approach to the Battle of Water Demand Forecasting. Engineering Proceedings. 2024; 69(1):48. https://doi.org/10.3390/engproc2024069048

Chicago/Turabian Style

Ferreira, Bruno, Raquel Barreira, João Caetano, Maria Grazia Quarta, and Nelson Carriço. 2024. "Optimizing Short-Term Water Demand Forecasting: A Comparative Approach to the Battle of Water Demand Forecasting" Engineering Proceedings 69, no. 1: 48. https://doi.org/10.3390/engproc2024069048

Article Metrics

Back to TopTop