Next Article in Journal
Turning Crises into Business Opportunities: An Exploratory Investigation of Customers’ Pain Points in the Automobile Maintenance Industry Based on a Computer Database
Previous Article in Journal
Empirical Research on Regional Revitalization: A Case of Old Urban Railways
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

A Water Futures Approach on Water Demand Forecasting with Online Ensemble Learning †

by
Dennis Zanutto
1,2,*,
Christos Michalopoulos
1,3,
Georgios-Alexandros Chatzistefanou
1,4,
Lydia Vamvakeridou-Lyroudia
1,4,
Lydia Tsiami
1,3,
Konstantinos Glynis
1,5,
Panagiotis Samartzis
6,
Luca Hermes
7,
Fabian Hinder
7,
Jonas Vaquet
7,
Valerie Vaquet
7,8,
Demetrios Eliades
8,
Marios Polycarpou
8,
Phoebe Koundouri
9,10,11,12,13,
Barbara Hammer
7 and
Dragan Savić
1,4
1
KWR Water Research Institute, 3433 PE Nieuwegein, The Netherlands
2
Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, 20133 Milano, Italy
3
Department of Water Resources and Environmental Engineering, National Technical University of Athens, 15773 Athens, Greece
4
Centre for Water Systems, University of Exeter, Exeter EX4 4QD, UK
5
Department of Water Management, TU Delft, 2628 CN Delft, The Netherlands
6
Department of Economics, University of Macedonia, 54636 Thessaloniki, Greece
7
Machine Learning Group, CITEC, Bielefeld University, 33619 Bielefeld, Germany
8
KIOS Research and Innovation Center of Excellence, University of Cyprus, Nicosia 2109, Cyprus
9
Department of International & European Economic Studies, Athens University of Economics and Business, 10434 Athens, Greece
10
Department of Technology, Management and Economics, Technical University of Denmark, 2800 Kongens Lyngby, Denmark
11
ATHENA Research Center, 26504 Patras, Greece
12
UN SDSN Global Climate Hub, 10434 Athens, Greece
13
UN SDSN Europe, 75009 Paris, France
*
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), 60; https://doi.org/10.3390/engproc2024069060
Published: 4 September 2024

Abstract

:
This study presents a collaborative framework developed by the Water Futures team of researchers for the “Battle of the Water Demand Forecasting” challenge at the 3rd International WDSA-CCWI Joint Conference. The framework integrates an ensemble of machine learning forecasting models into a deterministic outcome consistent with the competition formulation. The water demand trajectory over a week exhibits complex overlapping patterns and non-linear dependencies to multiple features and time-dependent events that a single model cannot accurately predict. As such, the reconciled forecast from an ensemble of models exceeds the performance of the individual ones and exhibits higher stability across the weeks of the year and district metered areas considered.

1. Introduction

Accurately forecasting short-term water demand enables water utilities to make informed operational decisions and ensure an efficient and continuous water supply. A wide array of methods and techniques exist in the literature to model urban water demand [1]. The water consumption patterns are influenced by multiple factors, such as the area characteristics (e.g., city center vs. rural), seasonality, weather and time-dependent events (e.g., water leaks), and societal habits (e.g., holidays), and no single framework has yet emerged as universally superior. Moreover, water utilities’ specific needs (e.g., resolution, lead time) can only be satisfactorily addressed by tailored models.
Aware of the limitations of any single forecasting methodology, the Water Futures (https://waterfutures.eu/ (accessed on 30 March 2024)) approach is distinguished by its integration of multiple models developed by experts from diverse research fields (civil engineering, economics, machine learning, and control). This collaborative effort is tailored to address the practical challenges of the Battle of the Water Demand Forecasting (BWDF), hosted during the 3rd International WDSA-CCWI Joint Conference.

2. Context and Data

The goal of the Battle of the Water Demand Forecasting (BWDF) is to produce the best water demand forecast for 10 district metered areas (DMAs) of an undisclosed city in Northern Italy, with an hourly resolution over a one-week horizon. The forecasts’ quality is evaluated independently for each DMA on three Performance Indicators (PIs): (i) Mean Absolute Error in the first 24 h, (ii) Maximum Absolute Error in the first 24 h, (iii) and MAE for the remainder of the week. The evaluation is conducted across four distinct weeks; at every assessment, T weeks of raw measurements on the net DMA water consumption and T + 1 of weather observations (rain, temperature, humidity, and windspeed) with an hourly resolution are disclosed, and the water demand of week T + 1 has to be forecasted (the additional weather week can be trusted as perfect information).

3. Methods

The Water Futures framework produces a deterministic water demand forecast combining an ensemble of models of different natures. The core concept revolves around the idea that for each DMA and part of the week (first day vs. rest of the week), there is a model, or a combination of, that best performs on forecasting that signal. The strategy to select and combine the models can be static or dynamic (online). To ensure impartiality, a batch of testing data is extracted upfront. The models’ performance on it guides the final model selection for the upcoming week’s forecast. To accommodate the substantial differences between the models, the input pre-processing is integrated as a component of the model itself. This section highlights the key attributes of the more sophisticated models; for the full list, see [2].

3.1. Gradient Boosting Models

LightGBM [3] and XGBoost [4] are two algorithms that implement gradient boosting, usually employing regression trees as weak learners. They sequentially introduce new learners to correct prior errors, systematically minimizing a loss function to enhance prediction accuracy over iterations.
LightGBM excels in processing large datasets and grows the decision trees leaf wise, i.e., it focuses on the nodes that lead to the most significant reduction in loss, enhancing both computational efficiency and model accuracy. In contrast, XGBoost employs a level-wise growth strategy, exploring all possible splits at each level, which might reveal different data patterns. Both models share similar input features for training, including rolling statistics, lagged values, seasonality indicators, weather data, and outputs from simpler forecasting models.
These two algorithms are particularly effective for complex time series forecasting, like water demand, offering advantages such as interpretability, inherent handling of missing values and categorical variables, and built-in overfitting prevention.

3.2. Wavenet

WaveNet [5] is a deep convolutional neural network consisting of two main components: (i) a stack of one-dimensional convolutions and (ii) a multilayer perceptron (MLP). The convolutional part employs causal convolutions with a receptive field of 32 h. This single-step prediction is extended to a multi-step forecast of one week in an autoregressive fashion.
To counteract overfitting and enhance the model’s robustness towards missing data, we employ dropout regularization [6]. This regularization technique is applied uniformly throughout the model; instead of masking individual input features, as commonly performed, it masks random temporal segments of different lengths of the input time series.

3.3. Ensemble Reconciliation Strategies

Ensemble reconciliation strategies (ERSs) aim to refine multiple model forecasts into an optimal deterministic forecast by evaluating models based on past performance and ground truth data. These strategies select a subset of top-performing models, re-train them on the full dataset, and combine their forecasts for the upcoming week. ERSs can be categorized into two types: selecting the best model from the past w weeks or combining forecasts from the top models. While more dynamic strategies could be considered, such as choosing models based on similarity to the upcoming week, they require more comprehensive datasets.

4. Experimental Settings

Most of the decisions and settings have been tailored to maximize the performance at the BWDF. However, the Water Futures framework could be adapted to other contexts and problem formulations. The testing dataset comprises the four weeks before the one to be forecasted, assuming that the preceding month is a reliable indicator, on average, of a model’s prospective performance in the coming week. A suitable evaluation scheme must (i) be suited to the time series properties of the data, (ii) avoid data leakage for an appropriate comparison between models, and (iii) be feasible with the limited dataset available.
Thus, we leveraged the test-then-train scheme, which is frequently used in online or stream learning by the machine learning community [7,8]. Splitting data into independent train and test sets is not feasible when the data distribution changes over time. Thus, we employ data up to time t for training and testing on the next observed sample (t + 1). In the following step, the model is updated with the newly acquired sample (t + 1) and tested on t + 2, and this cycle continues. This yields an unbiased estimate of the model’s performance throughout the considered stream. We consider a test batch one week at a time, according to the formulation of the challenge. During model development, the process is carried out for 52 weeks of the training dataset to avoid bias towards any season.
Multiple trainings with different initialization seeds are run for the non-deterministic models. Moreover, different versions of LGBM varying in the input dataset are trained.
Several strategies have been tested, but the chosen ERS averages the forecasts of the five best models.

5. Results

The gradient boosting family of models is the best performing, with WaveNet following, but it still shows more skills than the benchmark (Table 1). The ERS combines these five models in a single deterministic forecast that outperforms the individuals, proving that the ensemble methodology adopted here is beneficial.

6. Conclusions

In this work, we introduced a collaborative framework that combines multiple machine learning forecasting models and applied it to the “Battle of the Water Demand Forecasting (BWDF)”, an urban water demand forecasting challenge hosted during the 3rd International WDSA-CCWI Joint Conference. Our findings indicate that the gradient boosting family (e.g., LGBM) is particularly effective for predicting water demand across most DMAs and throughout the week. Despite their effectiveness, no single model can fully capture these complex patterns. The ensemble reconciliation strategy (ERS) enhanced performances (the ensemble consistently beats the individual models) and stability across the evaluated weeks and the DMAs.

Author Contributions

Formal analysis, software, and writing—original draft preparation, D.Z., C.M., P.S., L.H., J.V., V.V. and D.E.; methodology and writing—review and editing D.Z., C.M., L.T., K.G., G.-A.C., L.V.-L., P.S., L.H., F.H., J.V., V.V. and D.E.; supervision and funding acquisition, M.P., P.K., B.H. and D.S. All authors have read and agreed to the published version of the manuscript.

Funding

This project has received funding from the European Research Council (ERC) under the ERC Synergy Grant Water-Futures (grant agreement No. 951424).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The code is available on Github (https://github.com/WaterFutures/BoN2024/tree/v1.0.0 accessed on 30 March 2024) [2]. The results are open access on Zenodo [9].

Acknowledgments

We extend our heartfelt gratitude to all KWR colleagues who engaged in many insightful discussions and to the academic supervisor of the KWR Ph.D. students.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. House-Peters, L.A.; Chang, H. Urban Water Demand Modeling: Review of Concepts, Methods, and Organizing Principles. Water Resour. Res. 2011, 47. [Google Scholar] [CrossRef]
  2. Zanutto, D.; Michalopoulos, C.; Samartzis, P.; Hermes, L.; Vaquet, J.; Vaquet, V.; Eliades, D. WaterFutures/BoN2024: BWDF Code, Models and Dashboard, Version v5.0.0; Zenodo: Geneva, Switzerland, 2024. [Google Scholar] [CrossRef]
  3. Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.-Y. LightGBM: A Highly Efficient Gradient Boosting Decision Tree. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Curran Associates, Inc.: New York, NY, USA, 2017; Volume 30. [Google Scholar]
  4. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  5. van den Oord, A.; Dieleman, S.; Zen, H.; Simonyan, K.; Vinyals, O.; Graves, A.; Kalchbrenner, N.; Senior, A.; Kavukcuoglu, K. WaveNet: A Generative Model for Raw Audio 2016. arXiv 2016, arXiv:1609.03499. [Google Scholar]
  6. Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
  7. Ditzler, G.; Roveri, M.; Alippi, C.; Polikar, R. Learning in Nonstationary Environments: A Survey. IEEE Comput. Intell. Mag. 2015, 10, 12–25. [Google Scholar] [CrossRef]
  8. Bifet, A.; Holmes, G.; Pfahringer, B.; Gavaldà, R. Improving Adaptive Bagging Methods for Evolving Data Streams. In Advances in Machine Learning; Zhou, Z.-H., Washio, T., Eds.; Springer: Berlin/Heidelberg, Germany, 2009; pp. 23–37. [Google Scholar]
  9. Zanutto, D.; Michalopoulos, C.; Samartzis, P.; Hermes, L.; Vaquet, J.; Vaquet, V.; Eliades, D. WaterFutures/BoN2024: BWDF Input Data and Results, Version v4.0.0; Zenodo: Geneva, Switzerland, 2024. [Google Scholar] [CrossRef]
Table 1. Average performances (L/s) of the five best models, the benchmark (rolling average), and the chosen ensemble reconciliation strategy (average of the five best models) during training.
Table 1. Average performances (L/s) of the five best models, the benchmark (rolling average), and the chosen ensemble reconciliation strategy (average of the five best models) during training.
PIRolling
Average
LGBM
Robust
LGBM
Simple
LGBM
SimpleV2
XGBOOSTWAVENETERS
Mean AE-24h1.2861.0801.0781.0991.1021.2261.044
Max AE-24h24.0403.5503.5303.5963.6393.9123.460
Mean AE1.1631.0691.0671.0731.0831.1971.016
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

Zanutto, D.; Michalopoulos, C.; Chatzistefanou, G.-A.; Vamvakeridou-Lyroudia, L.; Tsiami, L.; Glynis, K.; Samartzis, P.; Hermes, L.; Hinder, F.; Vaquet, J.; et al. A Water Futures Approach on Water Demand Forecasting with Online Ensemble Learning. Eng. Proc. 2024, 69, 60. https://doi.org/10.3390/engproc2024069060

AMA Style

Zanutto D, Michalopoulos C, Chatzistefanou G-A, Vamvakeridou-Lyroudia L, Tsiami L, Glynis K, Samartzis P, Hermes L, Hinder F, Vaquet J, et al. A Water Futures Approach on Water Demand Forecasting with Online Ensemble Learning. Engineering Proceedings. 2024; 69(1):60. https://doi.org/10.3390/engproc2024069060

Chicago/Turabian Style

Zanutto, Dennis, Christos Michalopoulos, Georgios-Alexandros Chatzistefanou, Lydia Vamvakeridou-Lyroudia, Lydia Tsiami, Konstantinos Glynis, Panagiotis Samartzis, Luca Hermes, Fabian Hinder, Jonas Vaquet, and et al. 2024. "A Water Futures Approach on Water Demand Forecasting with Online Ensemble Learning" Engineering Proceedings 69, no. 1: 60. https://doi.org/10.3390/engproc2024069060

Article Metrics

Back to TopTop