Next Article in Journal
A Full and Simplified Water Distribution Network Model Comparison of Skeletonization Results
Previous Article in Journal
Impact of Automated Writing Evaluation System and Revision Processes on College Students’ Writing Skills in English as a Foreign Language Course
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Real-Time Demand Forecasting and Multi-Resolution Model Predictive Control for Water Distribution Networks †

Department of Electrical Engineering, Eindhoven University of Technology, 5600 MB Eindhoven, The Netherlands
*
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), 70; https://doi.org/10.3390/engproc2024069070
Published: 3 September 2024

Abstract

:
In this work, we develop a water demand prediction model for MPC that reliably handles unexpected changes from the daily pattern by incorporating a dynamical model over the current measured demand, fitted using machine learning methods. Secondly, in alignment with the new demand estimator, we also propose a multi-resolution MPC prediction horizon. This improves the responsiveness to unforeseeable disturbances with minimal impact on computational efficiency.

1. Introduction

Water distribution networks (WDNs) are large-scale systems that supply drinking water to consumers over a large area. However, WDNs are subject to increasing uncertainties because of climate change, a growing economy/population, and the rapid transition to renewable energy sources. Addressing these uncertainties in future water networks necessitates an adaptive (pump) scheduling method. One of the most suitable scheduling methods is model predictive control (MPC) [1,2], which can take the physical limits of the WDN into account and can provide optimal scheduling strategies. Nonetheless, MPC requires an accurate prediction model, and, as such, it relies on accurate water demand forecasting. Water demand is often modeled as a time series with a daily or weekly pattern, based on the demographics at the demand node location [3] and/or historical demand data, if available. While providing a robust mean demand, these prediction models cannot predict real-time changes [4].
In this work, we develop a water demand prediction model for MPC that reliably handles unexpected changes from the daily pattern by incorporating a dynamical model over the current measured demand, fitted using machine learning methods, including the Auto-Regressive (AR) model, Recurrent Neural Networks (RNNs), and Multi-Layer Perceptron (MLP). This is initiated by analyzing data generated by SIMDEUM [3]. From autocorrelation test results, we show that the developed dynamical models do not improve the prediction accuracy beyond 2 h. Therefore, we introduce a novel MPC design for WDNs that uses a multi-resolution horizon. In the standard formulation of MPC for WDNs, a 24 h prediction horizon is used with a sampling period of 1 h. The multi-resolution formulation we propose uses a sampling period of 10 min for the first 2 h, and then, the usual 1 h sampling interval is used for the remaining 22 h. The resulting control law allows the closed loop to be evaluated every 10 min while keeping the corresponding control problem size minimal.

2. Control Architecture with Demand Prediction

Water distribution networks can be described by four basic elements: pipes, nodes, storage tanks, and actuators such as pumps or controllable valves. The resulting model and the derivation of this model that we will use in this brief paper are illustrated in [5]. The demand nodes represent the locations in the network where water leaves the network.
Figure 1 shows the simple water network we consider. It has two demand nodes in a gravity line between tank h 6 and h 5 . The control law is the result of the following MPC problem:
min X k i = 0 N 1 λ 1 l 1 k + i + λ 2 l 2 k + i + λ 3 l 3 k + i s . t .               x 0 | k = x k   g x i | k 0 ,                   h x i | k ,   d i | k = 0                               i 0 , , N 1
where cost terms l 1 , l 2 , and l 3 represent the safety head cost, pump switching cost, and pump electricity cost, respectively [5]. The optimization vector X k concatenates x i | k over prediction horizon N, where each x i | k contains the network flows, nodal and tank heads, and control inputs. The resulting control flow (i.e., the pump flow) will be set as a setpoint for underlying pump controllers.
The demand flow d i | k is predicted as d i | k = d base k + i + d NN k + i ,   the sum of baseline demand data and an offset, which is obtained by a neural network that anticipates future demand changes based on past-window demand data. The baseline demand d base k can be obtained by averaging over a long window of historical data. The baseline can also be unique per day and change seasonally, improving accuracy for the expected occasion but, in turn, requiring much more data for a reliable fit. Figure 2a shows the residual correlation between the current demand and the (actual) future demand, both with the baseline subtracted.
The strong correlation for small lags (less than 25) indicates that there is a residing dynamical component that, through the correlation with the current measurements, can be estimated as well. This is where d NN k + i will play a role.

Demand Estimation Using Artificial Intelligence

While demand is mostly periodic, small offsets reduce the optimality of the selected pump settings. We seek to reduce the impact of these demand mismatches by predicting a short window of demand offset using a short window of past data (with the idea that measured mismatches can be expected to continue in the near future). For this, we considered different types of AI models, shown in Table 1. The exact dimensions of the selected methods and their complete explanation can be found in [6].
The data used to train the models are generated by SIMDEUM, considering a time window of 500 days at a 10 min sampling interval. These data are normalized by
x t r a i n k = d k d b a s e k σ k ,
where σ k is the standard deviation at time-of-day instance k . Given that the autocorrelation in Figure 2a only details a noticeable correlation in the first lags, these models will only predict the next 14 demand offsets. The autocorrelations of the three AI methods are shown in Figure 2b–d, where a clear reduction in the initial correlation is visible.
In earlier work, [5] showed that the MPC law for WDNs is more efficient for sampling periods shorter than 1 h (the “standard” sampling period [1]). However, the resulting increase in prediction horizon reduces computational efficiency. Now, since the demand prediction can only be improved for the next 140 min, we propose a multi-resolution sampling-period prediction horizon. The first 2 h are predicted at a 10 m interval and the remaining 22 h at 1 h intervals. This increases the total prediction horizon by only 10 (from 24 to 34) and changes the online sampling interval to 10 m, thus yielding a faster response time to unforeseeable events. In the end, we develop the following MPC control law:
min X k i = 0 N s 1 λ 1 l 1 k + i + λ 2 l 2 k + i + λ 3 l 3 k + i         + i = 0 ( N N s ) / T m λ 1 l 1 k + N s + i T m         + λ 2 l 2 k + N s + i T m + λ 3 l 3 k + N s + i T m                             s . t .               x 0 | k = x k                           g x i | k 0 ,                                                                                     i 0 , , N s 1                           h x i + 1 | k , x i | k ,   d i | k = 0 ,                                                               i 0 , , N s 1                           g x i | k 0 ,                                                                                             i N s , N s + T m , , N T m                         h m x i + T m | k , x i | k ,   d b a s e ( k + i ) = 0 ,                     i N s , N s + T m , , N T m
where T m   is the step of the larger resolution in the MPC horizon (here 6, as the sampling period is now 10 min), and N s is the short horizon’s length (12).

3. Results

To present an illustrative example, we refer to the system presented in Figure 1. In this system, we implement the multi-stepsize MPC control law with the demand generator as explained in Section 2.1. For the demand pattern, we generated demand data using SIMDEUM [3], spanning 500 days and considering 2500 demo households. Both demand nodes d 1 and d 2 in the network share this pattern, with   d 2 = 0.5 d 1 .
The results shown in Table 2 indicate that, indeed, using artificial intelligence methods to improve demand forecasting reduces controller costs, especially pumping cost l 3 , compared to using averaged demand patterns (i.e., the baseline). Furthermore, the multi-resolution MPC horizon almost exactly retains controller performance but is almost five times as computationally efficient. Nonetheless, the current conclusions are based on simulated data. Real demand data are necessary to validate the algorithm in a practical scenario.

Author Contributions

Conceptualization, W.P.d.G., P.C.N.V. and M.L.; methodology, W.P.d.G., P.C.N.V. and M.L.; software, W.P.d.G.; validation, W.P.d.G.; visualization, W.P.d.G.; writing—original draft preparation, P.C.N.V.; writing—review and editing, P.C.N.V., M.L. and D.G.; supervision, M.L. and D.G.; project administration, M.L. and D.G.; funding acquisition, M.L. and D.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was performed within the framework of the research program AquaConnect, funded by the Dutch Research Council (NWO, grant-ID P19-45) and public and private partners of the AquaConnect consortium, and coordinated by Wageningen University and Research.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author due to SIMDEUM restrictions.

Acknowledgments

We would like to acknowledge the support of the KWR Water Research Institute for providing the SIMDEUM Pattern Generator for the purposes of this research.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Wang, Y.; Puig, V.; Cembrano, G. Non-linear economic model predictive control of water distribution networks. J. Process Control. 2017, 56, 23–34. [Google Scholar] [CrossRef]
  2. Castelletti, A.; Ficchì, A.; Cominola, A.; Segovia, P.; Giuliani, M.; Wu, W.; Lucia, S.; Ocampo-Martinez, C.; Schutter, B.D.; Maestre, J.M. Model predictive control of water resources systems: A review and research agenda. ARC 2023, 55, 442–465. [Google Scholar] [CrossRef]
  3. Blokker, E.J.M.; Pieterse-Quirijns, E.J.; Vreeburg, J.H.G.; Van Dijk, J.C. Simulating Nonresidential Water Demand with a Stochastic End-Use Model. J. WRPM 2011, 137, 511–520. [Google Scholar] [CrossRef]
  4. Bakker, M.; Vreeburg, J.H.G.; van Schagen, K.M.; Rietveld, L.C. A fully adaptive forecasting model for short-term drinking water demand. Environ. Model. Softw. 2013, 48, 141–151. [Google Scholar] [CrossRef]
  5. Verheijen, P.C.N.; Lazar, M.; Goswami, D. Efficient Implementation and Sampling Period Analysis of MPC for Water Distribution Networks. IFAC papersOnline 2022, 55, 42–47. [Google Scholar] [CrossRef]
  6. de Groot, W.P. Nonlinear Demand Prediction for Model Predictive Control of Water Distribution Networks. Master Thesis, Eindhoven University of Technology, Eindhoven, The Netherlands, 17 July 2023. [Google Scholar]
Figure 1. Sample water network with two demand nodes.
Figure 1. Sample water network with two demand nodes.
Engproc 69 00070 g001
Figure 2. The 1-step-ahead autocorrelation of the baseline demand (a) and the baseline demand combined with either an MLP (b), an AR model (c), or an RNN (d) [6].
Figure 2. The 1-step-ahead autocorrelation of the baseline demand (a) and the baseline demand combined with either an MLP (b), an AR model (c), or an RNN (d) [6].
Engproc 69 00070 g002
Table 1. AI methods tested for real-time demand prediction.
Table 1. AI methods tested for real-time demand prediction.
Auto-Regressive
(AR)
Recurrent Neural Network (RNN)Multi-Layer Perceptron (MLP)
x out = W x i n z t = σ g W z x i n + U z h t 1 + b z
r t = σ g W r x i n + U r h t 1 + b r
h ^ t = ϕ h ( W h x i n + U h r t h t 1 + b h
h t = z t h t 1 + 1 z t h ^ 1
x 1 = f R E L U W 1 h t + b 1
x o u t = W o u t x 1 + b o u t
x 1 = f R E L U W 1 x i n + b 1
x 2 = f R E L U W 2 x 1 + b 2
x 3 = f R E L U W 3 x 2 + b 3
x o u t = W o u t x 3 + b o u t
Table 2. Six-day simulation results with different demand predictors [6].
Table 2. Six-day simulation results with different demand predictors [6].
10 min Sampling PeriodMulti-Resolution Sampling Period
ExactBase OnlyBase + ARExactBase OnlyBase + AR
l 1 cost70,65870,76570,77770,66370,77070,782
l 2 cost157.3164.8176.5158.5165.5176.9
l 3 cost461690027447482194137790
Solver time1.58s1.56s1.57s0.34s0.34s0.34s
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

Verheijen, P.C.N.; de Groot, W.P.; Goswami, D.; Lazar, M. Real-Time Demand Forecasting and Multi-Resolution Model Predictive Control for Water Distribution Networks. Eng. Proc. 2024, 69, 70. https://doi.org/10.3390/engproc2024069070

AMA Style

Verheijen PCN, de Groot WP, Goswami D, Lazar M. Real-Time Demand Forecasting and Multi-Resolution Model Predictive Control for Water Distribution Networks. Engineering Proceedings. 2024; 69(1):70. https://doi.org/10.3390/engproc2024069070

Chicago/Turabian Style

Verheijen, Peter C. N., Ward P. de Groot, Dip Goswami, and Mircea Lazar. 2024. "Real-Time Demand Forecasting and Multi-Resolution Model Predictive Control for Water Distribution Networks" Engineering Proceedings 69, no. 1: 70. https://doi.org/10.3390/engproc2024069070

APA Style

Verheijen, P. C. N., de Groot, W. P., Goswami, D., & Lazar, M. (2024). Real-Time Demand Forecasting and Multi-Resolution Model Predictive Control for Water Distribution Networks. Engineering Proceedings, 69(1), 70. https://doi.org/10.3390/engproc2024069070

Article Metrics

Back to TopTop