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) [,], 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 [] and/or historical demand data, if available. While providing a robust mean demand, these prediction models cannot predict real-time changes [].
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 []. 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 []. 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 and . The control law is the result of the following MPC problem:
where cost terms , , and represent the safety head cost, pump switching cost, and pump electricity cost, respectively []. The optimization vector concatenates over prediction horizon N, where each 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.
Figure 1.
Sample water network with two demand nodes.
The demand flow is predicted as 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 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.
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) [].
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 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 [].
Table 1.
AI methods tested for real-time demand prediction.
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
where is the standard deviation at time-of-day instance . 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, [] showed that the MPC law for WDNs is more efficient for sampling periods shorter than 1 h (the “standard” sampling period []). 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:
where is the step of the larger resolution in the MPC horizon (here 6, as the sampling period is now 10 min), and 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 [], spanning 500 days and considering 2500 demo households. Both demand nodes and in the network share this pattern, with
The results shown in Table 2 indicate that, indeed, using artificial intelligence methods to improve demand forecasting reduces controller costs, especially pumping cost , 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.
Table 2.
Six-day simulation results with different demand predictors [].
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
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).