Next Article in Journal
Detection and Pattern Recognition of Chemical Warfare Agents by MOS-Based MEMS Gas Sensor Array
Previous Article in Journal
Dual-Branch Cross-Fusion Normalizing Flow for RGB-D Track Anomaly Detection
Previous Article in Special Issue
Distributed Consensus Control for Discrete-Time T–S Fuzzy Multiple-Agent Systems Based on an Unknown Input Observer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Online Nodal Demand Estimation in Branched Water Distribution Systems Using an Array of Extended Kalman Filters

by
Francisco-Ronay López-Estrada
1,
Leonardo Gómez-Coronel
1,
Lizeth Torres
2,
Guillermo Valencia-Palomo
3,*,
Ildeberto Santos-Ruiz
1,* and
Arlette Cano
1
1
Tecnológico Nacional de México, IT Tuxtla Gutiérrez, Turix-Dynamics Diagnosis and Control Group, Carr. Panam. S/N, Tuxtla Gutiérrez 29050, Mexico
2
Instituto de Ingeniería, Universidad Nacional Autónoma de México, Ciudad de México 04510, Mexico
3
Tecnológico Nacional de México, IT Hermosillo, Av. Tec. 115, Hermosillo 83170, Mexico
*
Authors to whom correspondence should be addressed.
Sensors 2025, 25(8), 2632; https://doi.org/10.3390/s25082632
Submission received: 14 February 2025 / Revised: 18 April 2025 / Accepted: 20 April 2025 / Published: 21 April 2025

Abstract

:
This paper proposes a model-based methodology to estimate multiple nodal demands by using only pressure and flow rate measurements, which should be recorded at the inlet of the distribution system. The algorithm is based on an array of multiple extended Kalman filters (EKFs) in a cascade configuration. Each EKF functions as an unknown input observer and focuses on a section of the pipeline. The pipeline model used to design the filters is an adaptation of the well-known rigid water column model. Simulation and experimental tests on standardized pipeline systems are presented to demonstrate the proposed method’s effectiveness. Finally, for the case of the experimental validation, both steady-state and variable input conditions were considered.

1. Introduction

The supply of water faces different problems, ranging from the overexploitation of aquifers, problems in water distribution networks, and pollution, to the lack of control over concessions. These problems affect different sectors of the population and economic activities such as construction or agriculture. In recent years, intensive research has been carried out to improve the monitoring and management of water distribution systems (WDSs) by estimating various parameters that help in the calibration of models with high spatial and temporal resolution [1,2]. Accurate knowledge of nodal demands that vary at different times is a prerequisite for predicting a distribution system’s pressure and quality. Consequently, determining these demands helps to improve a distribution system’s performance for the network operators [3]. Pressures and flows in distribution networks vary according to the nodal demands, which are generally not measurable. Therefore, their estimation is a problem of vital importance in managing WDSs.
Estimation of these demands is carried out from measured states, and it can be seen as an inverse problem whose solution depends on how many state variables are measurable. In this context, in the work performed by [4], a digital-twin-based solution was proposed to estimate the unsteady flow states in a pumping station. In this approach, the digital twin utilizes a combination of frequency domain analysis and predictive control theory to accurately estimate real-time hydraulic parameters at locations within the pumping station where sensors are not available, even in noisy and uncertain conditions.
Ideally and technologically, it is possible to place sensors in an entire hydraulic network; however, system costs make implementing complete hydraulic instrumentation prohibitive. This problem has been addressed in the literature using optimal sensor placement [5,6] or more recently, in work performed in [7], where a hybrid approach to sensor placement and state estimation applied to water distribution networks was developed, obtaining a mean absolute percentage error of less than 5% in the estimation of the pressure head available in the nodes of the WDS. However, even though this technique significantly reduces instrumentation costs, it does not provide information about the demand at non-instrumented nodes. Therefore, the online estimation of nodal demands is an open problem.
One way to tackle this problem is through vibration signals [8,9], acoustic signals [10], and virtual sensors, such as unknown input observers or extended Kalman filters (EKFs), among others. In particular, the Kalman filter is a commonly used mathematical tool for real-time state estimation [11]. In this work, a virtual sensor approach is considered. These algorithms allow estimating unknown states, i.e., the demands, based on the measurement of certain available inputs and outputs [12]. Some reported results can be found in the literature; for instance, in [3], the authors estimated node demands using particle swarm optimization. The authors in [13] proposed the Davidon–Fletcher–Powell algorithm, which considers a one-dimensional optimization and scale matrix calculation. Other authors have proposed methodologies based on an extended Kalman filter.
In [14], an extended Kalman filter approach for adaptative calibration of the nodal demands in water distribution systems was introduced. Twenty-four-hour demand patterns were introduced as prior information for the prediction module and then measurement data were used in the correction module to determine the final estimation of the nodal demand, demonstrating an improved calibration accuracy and robustness against measurement noise. In [15], a two-objective sampling design method was used for the improvement of the observability of the system and to mitigate the effect of noise in sensor measurements. This was used in the context of nodal demand estimation, since proper sensor sampling is essential for the estimation of nodal demands in a water distribution network, as well as for improving the model accuracy. The work performed in [16] focused on the estimation of short-term demands in a water distribution network by means of AI techniques, to support sustainable water management. The study reported a comparison between nine machine learning and deep learning methods, demonstrating that Long-Short Term Memory (LSTM) neural networks provided an increased accuracy, even in real-time predictive applications.
In [17], as in [18], the authors suggested the design of EKFs based on a hydraulic model to estimate a leak’s magnitude and location. In [19], a comparison of different short-term water demand forecasting models based on patterns, probability, and moving window techniques was proposed. The EKF stood out from other observers due to its functionality in predicting unknown states under measurement noise and model mismatches, as can be consulted in the survey [20] and references therein. The authors in [21] proposed a method based on a dual model that automatically converts slight pressure deviations caused by leaks into signals in the form of virtual leaks. A more in-depth revision of the method for leak localization can be consulted in the recent survey in [22] and references therein. However, although leakage estimation involves flow estimation, few works have focused on nodal demand estimation.
For instance, in [23], a calibration method for demands based on an optimization methodology was proposed. In [24], a probabilistic method for node demand evaluation was analyzed; as a result, the transient response and wave propagation in a pipeline were determined. Based on previous works, the authors in [25] proposed a transient-based method to skeletonize pipes in series with internal demands. A methodology for node pressure estimations based on artificial neuronal networks was proposed in [26]. Based on EPANET models and historical data, an optimization-based approach for water consumption was developed in [27]. Recently, a stochastic approach for analyzing demand in water distribution systems was proposed in [28]. It is important to note that, despite the different approaches reported in the literature, most works have been based on offline estimations or EPANET models, reducing their applicability.
This work proposes an estimation technique for the demands of a WDS based on extended Kalman filters. The proposed method considers a nonlinear model and the dynamic behavior of the WDS. The method was proved experimentally on a pilot hydraulic network at the Hydroinformatics Laboratory at the Institute of Technology of Tuxtla Gutiérrez. The system’s instrumentation allowed us to validate the algorithms experimentally. Additionally, it was demonstrated that the proposed algorithm presented robustness to measurement noise, which enhances its applicability.
In the literature, approaches such as particle swarm optimization (PSO) and probabilistic estimation have been successfully applied to similar problems. Nonetheless, they often include high computational complexity and become difficult to adapt to real-time scenarios with rapidly changing dynamics. On the other hand, EKFs are a computationally efficient framework for recursively estimating the states of nonlinear systems with complex dynamics and Gaussian noise, which is suitable for online applications where fast convergence and low-latency estimation are needed. Furthermore, EKFs can incorporate system models and online sensor measurements, enabling robust performance estimation, even under uncertain or partially observable conditions. These advantages make EKFs a robust and computationally efficient alternative for online estimation compared to other model-based approaches.
The remainder of this document is organized as follows: Section 2 presents some key facts about the nonlinear model. Section 3 presents the node demand algorithm based on the extended Kalman filter. Section 4 validates the method experimentally in the pilot plant. Finally, conclusions are given in Section 5.

2. Water Distribution Networks

A WDS aims to deliver water from reservoirs to the usage point with adequate quantity and pressure. It comprises interconnected pipes and can be classified as a grid, ring, radial, or dead-end (also called branched) system. While the first three types can be seen as a closed configuration, more suitable for cities and small districts, a branched system is commonly used for main distribution and irrigation systems [29,30]. This work is dedicated to branched water distribution systems (BWDSs). A branched system is composed of a main pipeline, with branches connected to the mainline (see Figure 1). The amount of liquid that flows in the sections is determined by knowing the water demand at each node. However, at best, these computations are done a priori, before constructing the WDS [28]. Determining the water consumption of nodes is challenging and usually requires a significant economic and time investment. Node demands are usually considered inputs to the WDS and are of great importance for the correct distribution of water throughout the network. However, due to the aforementioned problems, they are usually assumed to be unknown, due to a limited number of sensors. This work aims to estimate these demands online using only the information provided by two sensors at the pipeline’s inlet and outlet.

2.1. Modeling

In order to design a node-demand estimator, a mathematical model based on the rigid water column (RWC) theory is considered; i.e., it is assumed that the entire fluid column moves as a rigid body, as illustrated in Figure 2.
The following assumptions are taken into account [31,32]: (i) the flow is assumed to be one-dimensional, (ii) the cross-sectional area is constant along the pipe, (iii) the pipe walls are rigid, (iv) the liquid fluid is incompressible, and (v) the convective changes in velocity are negligible. Then, under such assumptions, the RWC model that describes the flow dynamics in a pipeline section with size Δ z i is given by
Q ˙ i = g A r Δ H i Δ z i α | Q i | Q i γ ,
where Q i (m3/s) is the flow rate through the i-th pipe section, Δ H i = H i H i + 1 (m) is the head loss along section i with size Δ z i (m), g (m/s2) is the gravitational acceleration, and A r (m2) is the cross-sectional area. α and γ 1 are dimensionless parameters related to the friction losses, which are associated with the physical parameters of the pipe and the fluid.
By considering γ = 1 and Δ H = H i H i + 1 , where H i and H i + 1 are the section inlet and outlet hydraulic heads, respectively, and assuming that the flow rate is one-directional, Equation (1) can be rewritten as [12]:
Q ˙ i = α Q i 2 + g A r Δ z i ( H i H i + 1 ) .
If a nodal demand is at the end of the i-th section, then the previous equation can be rewritten as
Q ˙ i = α Q i 2 + g A r Δ z i ( H i H d ) ,
where H d is the hydraulic head at the demand node and is given by
H d = Q d r ( σ ) A d 2 1 2 g ,
where Q d is the node demand, A d is the node cross-sectional area, r ( σ ) [ 0 , 1 ] R is a coefficient that is capable of adjusting the consumption Q d , much like one regulates the water flow by opening or closing the water taps associated with the node [33].
Equation (4) can be rewritten as
H d = λ ( σ ) Q i 2 ,
where λ ( σ ) = κ 2 / ( 2 g r ( σ ) A d ) and κ ( 0 , 1 ) is a multiplier that proportionally relates Q d with Q i .
By substituting (5) into (3), the following model, which represents a pipeline with one demand, is obtained:
Q ˙ i = α Q i 2 + g A r Δ z i H i g A r Δ z i λ ( σ ) Q i 2 ,
where λ ( σ ) can be seen as an unknown input of system (6) that needs to be estimated to calculate Q d . By defining the state vector x = [ x 1 , x 2 ] = [ Q i , λ ( σ ) ] , the following dynamic model is obtained:
x ˙ 1 = α x 1 2 + g A r Δ z 1 H i g A r Δ z 1 x 2 x 1 2 , x ˙ 2 = 0 , y = x 1 .

2.2. Demand Estimation

To estimate the demand at each node of the branched pipe, it is necessary to take into account the following points:
  • The sum of the flow rates between demand nodes is equal to the total demand measured at the inlet of the pipeline, i.e.,
    Q i n = j = 1 N Q d κ j Q i .
  • The demand at node j is proportionally related to the previous demand (i.e., to the demand at node j 1 ) in the following way:
    Q d j = κ j Q i = κ j ( Q i 1 Q d j 1 ) .
  • λ ( σ ) is a function of two key parameters: κ and r ( σ ) . This last parameter can take any real value between 0 and 1; if the node is fully open, it becomes 1, and if it is fully closed, it becomes 0. Therefore, these two values must be considered to design an algorithm for estimating the demands. As for κ , it is an unknown parameter that depends on the characteristics of the hydraulic installation after the node.
To estimate the unknown state x 2 an extended Kalman filter (EKF) is considered, because it can minimize the estimation error by considering the measured inputs and outputs. The proposed methodology is illustrated in Figure 3.
To implement the EKF, we consider a discrete-time process model of the pipeline network:
x k + 1 = Φ ( x k , u k ) + w k ,
where x k is the state vector, u k is the input vector, and w k is the process noise vector with zero mean and covariance Q, and with the measurement model:
y k = C x k + v k ,
where y k is the measurement vector and v k is the measurement noise vector with zero mean and covariance R. Although the measurement model is a linear function, the process model Φ is a non-linear function of states and inputs. The covariance matrix Q is assigned empirically from the certainty or confidence in the process model Φ , i.e., the noise w k models uncertain inputs and/or unknown dynamics. The covariance matrix R is assigned based on the noise v k captured by the sensors, which is commonly associated with low resolution and data errors caused by various types of interference. To obtain R, the covariance of repeated steady-state sensor measurements is computed.
Based on a tradeoff between how much to trust the prediction (matrix Q) versus how much to trust the measurement (matrix R), the EKF aims to minimize the estimation error covariance; that is, it seeks to obtain the best possible estimate of the state of a dynamic system by minimizing the mean squared error (MSE). Mathematically, what the EKF minimizes is the trace of the error covariance matrix, tr ( P ) , which is the sum of the variances of the errors across all state variables [34].
The EKF is implemented in two major steps for each time step: first, a prior estimate denoted by x k + 1 is obtained from the dynamic model; then, a posterior estimate x k + 1 is obtained by correcting the prior estimate using the measurements [35]. In the literature, the estimation of the forecast state x k + 1 is referred to as prediction step, and the update to obtain x k + 1 is referred to as the data-assimilation step, where measurement data are injected to improve the estimates. To begin the state estimation process, an initial estimate x ^ 0 and an error covariance matrix P 0 associated with the uncertainty of the initial estimate are provided. Over time, the state estimation error tends to reach a minimum covariance (i.e., a minimum uncertainty in the estimated state).
To apply the EKF iterative process, it is necessary to consider a discrete version of the system. In previous work, it has been demonstrated that the best discretization method, which provides the best trade-off between sampling and accuracy for a pipeline system, is Heun’s method [36]. Then, the discrete-time version of (7) is described by
x k + 1 = x k + T s 2 ϕ ( x k , u k ) + ϕ ( x k + T s ϕ ( x k , u k ) , u k ) Φ ( x k , u k ) ,
where T s is the sample time, k is the discrete-time index, and ϕ is the continuous-time state-transition function given by
ϕ ( x , u ) = α x 1 2 g A r Δ z x 1 2 x 2 + g A r Δ z u , 0 .
Additionally, considering that the noisy measurement of the first state variable ( Q i n ) is available at each time step, the matrix C in the observation model (11) is given by
C = 1 0
From the discrete-time version given by the dynamic model in (12) and (13), and the observation model in (11) and (14), the unknown demand can be estimated as illustrated in Figure 3, which is also summarized in Algorithm 1 (Appendix A).
Algorithm 1: EKF algorithm for demand estimation
Sensors 25 02632 i001

3. Extension to the Estimation of n Node-Demands

Now consider a system with n node demands, as illustrated in Figure 4. In this case, the problem is more complicated, assuming that it is only possible to have sensors in the inlet flow as in many real systems, which means that only Q i and H i are known.
Taking into account the same strategy as discussed above, if the node demands are estimated, then it is possible to estimate the flow after the demand as
Q n = Q n 1 Q d n 1 , n = i , 2 , , n .
Then, by sectioning the all-branched pipeline, where each section represents a node demand, it is possible to estimate all unknown node demands, as shown in Figure 5. This algorithm must be applied to each section of the pipe sequentially. Thus, after estimating the pressure of the demand node ( H d ), this becomes the new input for the following section.
The reader should note that an EKF estimator must be computed for each section, as given in Algorithm 1. This design of sequential estimators can be used for monitoring WDSs, because it allows the online estimation of all the node demands. Moreover, the method uses the same mathematical model for all pipeline sections, which minimizes the computational cost. Furthermore, by considering the EKF, it is possible to achieve some robustness against model uncertainties and the inherent measurement noise.

4. Experimental Results

This section considers a WDS with two branches located at the Hydraulic Laboratory at the Technological Institute of Tuxtla Gutierrez, as displayed in Figure 6.
The system consists of a reservoir with 2500 L capacity; 256 m of 2-inch PVC pipes; a hydraulic centrifugal pump with 5 hp power; a Siemens Micromaster 420 frequency converter for pump control; 2 ROTAMASS Total Insight Coriolis mass flow meters, placed at the inlet and outlet of the first level pipe, with 0.5% accuracy in data collection; 2 YOKOGAWA ADMAG AXR magnetic flow meters, located on the top floor of the network, with a resolution of 0.5%; 8 Yokogawa EJA530 industrial pressure transmitter sensors, strategically placed on both levels, with an accuracy of 0.55%; and a Yokogawa GM10 Dataloger connected to MATLAB. It is important to note that for the sake of this study, only a pressure sensor was considered for the experiments, and the rest were used for validation purposes only. The sampling rate of all measurement devices is 10 Hz, corresponding to 10 samples per second. The physical parameters of the system are summarized in Table 1.
The piping and instrumentation diagram of the system is displayed in Figure 7. As it can be seen, the water flow was fed by a hydraulic pump working at a frequency of 40 Hz , such as measured by the flow sensor (FT01) and pressure sensor (PT01). By activating manual valves, the system can operate with one branch only or with two branches, as displayed in the piping and instrumentation diagram. Due to this configuration, it was possible to test three water demand scenarios, as discussed next.

4.1. Case 1: First Branch Open and Second Branch Closed

In the first case, the valve that allows the flow through the second branch was closed, so the demand to estimate was Q d 1 . Then, by applying Algorithm 1, the results of the calculated pressures and flow rates are summarized in Table 2 and Table 3.
As can be seen, just by considering the pressure and flow measurement at the input, it was possible to estimate the real flow and pressure at the branch by comparing it with the readings of the pressure head meters. This scenario was the simplest and internally computed the Jacobian matrix given in (12) and the Algorithm 1.

4.2. Case 2: Second Branch Open and First Branch Closed

For this case, the demand to estimate was Q d 2 , and the procedure was the same, with the difference that now it was Q 1 for branches one to two and Q 2 comprised the third branch. The results of the pressures and flow rates for this case are shown in Table 4 and Table 5.

4.3. Case 3: Both Branches Open

Finally, the valves were opened in both branches, so the flow was distributed over the entire branched network, as shown in Figure 7. The results obtained for the flows and pressures calculated in this case are given in the Table 6 and Table 7. As computed from the error rates, it is clear that the algorithm could estimate the real demand, even in the case of both branches.
However, the tables do not illustrate the convergence time of the EKF estimators, which is shown in Figure 8 for the two-branched pipeline configuration under steady-state conditions. Water was fed to the input of the pipeline ( Q in 1 ) as can be shown in plot (a) and a percentage of the total input flow deviated from the mainstream ( Q d 1 ) at the first branching, given the pressure head at the first demand node ( H d 1 ), as is visualized in plots (b,c). The remainder was considered as the input flow rate for the second demand node ( Q in 2 ), which can be seen in plot (d), where a fraction of the flow was redirected to the second branching ( Q d 2 ) given its pressure head ( H d 2 ), as is represented in plots (e) and (f), respectively.
The root of the mean squared error from the EKF-driven estimation is reported in Table 8.
An additional validation test was performed using data measured at different input conditions by regulating the main pump operating point using a variable frequency drive. The EKF-driven estimation for this validation test can be seen in Figure 9.
Similarly to the first scenario, the root of the mean squared error from the EKF-driven estimation is reported in Table 9.

5. Conclusions

This paper presented an innovative methodology to estimate nodal demands in branched water distribution systems using an array of extended Kalman filters (EKFs). By collecting only pressure and flow measurements at the inlet point, the method accurately predicts water demands at various nodes, providing real-time data to improve system calibration and operation. Furthermore, experimental tests demonstrated that this technique was robust to noise in measurements, ensuring its reliable application under different operating conditions.
The proposed strategy is scalable due to its modular configuration, which allows estimation to be extended to multiple demand nodes. Comparing the EKF with other methods applied to similar estimation problems such as the PSO or probabilistic estimation, the EKF is computationally simpler and best suited for real-time scenarios with quick dynamics, providing a robust performance and quick convergence, relying only on pressure and flow measurements at both ends of the pipeline, which reduces the necessary instrumentation and involved costs. Future work is expected to expand the methodology to large-scale distribution networks where there is unknown demand in some nodes or sectors. This solution addresses an important gap in the existing literature, offering a practical method for online estimation, in contrast to traditional approaches that typically rely on offline simulations or models and have less applicability in real scenarios.

Author Contributions

Conceptualization, F.-R.L.-E. and G.V.-P.; methodology, L.T. and I.S.-R.; software, L.G.-C. and A.C.; validation, L.G.-C. and A.C.; formal analysis, L.T. and I.S.-R.; investigation, F.-R.L.-E. and G.V.-P.; resources, F.-R.L.-E.; data curation, L.G.-C. and A.C.; writing—original draft preparation, F.-R.L.-E. and A.C.; writing—review and editing, L.G.-C., L.T., G.V.-P. and I.S.-R.; visualization, G.V.-P.; supervision, L.T. and I.S.-R.; project administration, I.S.-R.; funding acquisition, F.-R.L.-E., G.V.-P. and I.S.-R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Tecnológico Nacional de México under the program Proyectos de Investigación Científica, Desarrollo Tecnológico e Innovación and the international network Red Internacional de Control y Cómputo Aplicado. The work of Leonardo Gómez-Coronel and Arlette Cano was supported by SECIHTI through graduate scholarships.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. State Transition Function and Jacobian Matrix

From (13), defining the state vector x = [ Q in , λ ( σ ) ] and the input u = H in , the continuous-time dynamic model for each sector of the branched pipeline can be expressed as
x ˙ = ϕ ( x , u ) = β u α x 1 2 β x 1 2 x 2 0 ,
where β is a shortcut defined as
β : = g A r / Δ z .
The discrete-time dynamics are obtained from the continuous-time model (A1) using Heun’s method (12). The discrete-time state transition function Φ : x [ k ] , u [ k ] x [ k + 1 ] is given by
Φ ( x , u ) = Φ 1 ( x , u ) x 2 ,
where
Φ 1 ( x , u ) = x 1 β x 2 α x 1 2 + β u 2 β x 2 + α T s 3 / 2 x 1 β x 2 α x 1 2 + β u β x 2 + α T s 2 + 2 β x 2 2 α x 1 2 + 2 β u T s / 2
Taking the partial derivatives in (A3), the following discrete-time Jacobian matrix is obtained:
A = Φ ( x , u ) x = a 11 ( x , u ) a 12 ( x , u ) 0 1 ,
where
a 11 ( x , u ) = 1 + 2 x 1 β x 2 α x 1 2 + β u β x 2 + α 2 T s 3 3 β x 2 3 α x 1 2 + β u β x 2 + α T s 2 2 x 1 β x 2 + α T s
a 12 ( x , u ) = β T s β x 2 α x 1 2 + β u 3 β x 2 3 α x 1 2 + β u T s 2 / 2 + x 1 2 β x 2 2 α x 1 2 + β u T s + x 1 2
Both the state transition function (A3) and the Jacobian matrix (A5) are evaluated in the prediction subroutine at each time step of the EKF to predict the state and the error covariance, respectively.

References

  1. El-Ghandour, H.A.; Elbeltagi, E. Comparison of five evolutionary algorithms for optimization of water distribution networks. J. Comput. Civ. Eng. 2018, 32, 04017066. [Google Scholar] [CrossRef]
  2. Santos-Ruiz, I.; López-Estrada, F.R.; Puig, V.; Valencia-Palomo, G. Simultaneous Optimal Estimation of Roughness and Minor Loss Coefficients in a Pipeline. Math. Comput. Appl. 2020, 25, 56. [Google Scholar] [CrossRef]
  3. Letting, L.; Hamam, Y.; Abu-Mahfouz, A. Estimation of water demand in water distribution systems using particle swarm optimization. Water 2017, 9, 593. [Google Scholar] [CrossRef]
  4. He, L.; Wen, K.; Gong, J.; Wu, C. A multi-model ensemble digital twin solution for real-time unsteady flow state estimation of a pumping station. ISA Trans. 2022, 126, 242–253. [Google Scholar] [CrossRef]
  5. Ares-Milián, M.J.; Quiñones-Grueiro, M.; Verde, C.; Llanes-Santiago, O. Pressure Sensor Placement for Leak Location in Zones of a Water Distribution Network. In Computational Intelligence Methodologies Applied to Sustainable Development Goals; Springer: Berlin/Heidelberg, Germany, 2022; pp. 143–158. [Google Scholar]
  6. Rajabi, M.; Tabesh, M. Pressure Sensor Placement for Leakage Detection and Calibration of Water Distribution Networks Based on Multiview Clustering and Global Sensitivity Analysis. J. Water Resour. Plan. Manag. 2024, 150, 04024010. [Google Scholar] [CrossRef]
  7. Mankad, J.; Natarajan, B.; Srinivasan, B. Integrated approach for optimal sensor placement and state estimation: A case study on water distribution networks. ISA Trans. 2022, 123, 272–285. [Google Scholar] [CrossRef] [PubMed]
  8. Fabbiano, L.; Vacca, G.; Dinardo, G. Smart water grid: A smart methodology to detect leaks in water distribution networks. Measurement 2020, 151, 107260. [Google Scholar] [CrossRef]
  9. Yang, J.; Mostaghimi, H.; Hugo, R.; Park, S.S. Pipeline leak and volume rate detections through Artificial intelligence and vibration analysis. Measurement 2022, 187, 110368. [Google Scholar] [CrossRef]
  10. Li, S.; Gong, C.; Liu, Z. Field testing on a gas pipeline in service for leak localization using acoustic techniques. Measurement 2021, 182, 109791. [Google Scholar] [CrossRef]
  11. Wang, J.; Ma, X.; Zhang, Y.; Huang, D. Constrained two-stage Kalman filter for real-time state estimation of systems with time-varying measurement noise covariance. ISA Trans. 2022, 129, 336–344. [Google Scholar] [CrossRef]
  12. Torres, L.; Verde, C.; Rojas, J. Minimal-order observers for locating leaks in a pipeline with a branch. IFAC-PapersOnLine 2019, 52, 67–72. [Google Scholar] [CrossRef]
  13. Zhang, H.; Wang, K.; Zhou, X.; Wang, W. Using DFP Algorithm for Nodal Demand Estimation of Water Distribution Networks. KSCE J. Civ. Eng. 2018, 22, 2747–2754. [Google Scholar] [CrossRef]
  14. Hou, B.; Li, Y.; Wu, Y.; Wu, S. Adaptive Calibration of Nodal Demands of Water Distribution System by Extended Kalman Filter and Prior Information of Demand Pattern. Water Resour. Manag. 2025, 1–9. [Google Scholar] [CrossRef]
  15. Shao, Y.; Li, K.; Zhang, T.; Ao, W.; Chu, S. Pressure Sampling Design for Estimating Nodal Water Demand in Water Distribution Systems. Water Resour. Manag. 2024, 38, 1511–1527. [Google Scholar] [CrossRef]
  16. Kavya, M.; Mathew, A.; Shekar, P.R.; P, S. Short term water demand forecast modelling using artificial intelligence for smart water management. Sustain. Cities Soc. 2023, 95, 104610. [Google Scholar] [CrossRef]
  17. Majidi Khalilabad, N.; Mollazadeh, M.; Akbarpour, A.; Khorashadizadeh, S. Leak detection in water distribution system using non-linear Kalman filter. Iran Univ. Sci. Technol. 2018, 8, 169–180. [Google Scholar]
  18. Santos-Ruiz, I.; Bermúdez, J.R.; López-Estrada, F.R.; Puig, V.; Torres, L.; Delgado-Aguiñaga, J. Online leak diagnosis in pipelines using an EKF-based and steady-state mixed approach. Control Eng. Pract. 2018, 81, 55–64. [Google Scholar] [CrossRef]
  19. 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]
  20. Torres, L.; Jiménez-Cabas, J.; González, O.; López-Estrada, L.M. Kalman filters for leak diagnosis in pipelines: Brief history and future research. J. Mar. Sci. Eng. 2020, 8, 173. [Google Scholar] [CrossRef]
  21. Steffelbauer, D.B.; Deuerlein, J.; Gilbert, D.; Abraham, E.; Piller, O. Pressure-leak duality for leak detection and localization in water distribution systems. J. Water Resour. Plan. Manag. 2022, 148, 04021106. [Google Scholar] [CrossRef]
  22. Nimri, W.; Wang, Y.; Zhang, Z.; Deng, C.; Sellstrom, K. Data-driven approaches and model-based methods for detecting and locating leaks in water distribution systems: A literature review. Neural Comput. Appl. 2023, 35, 11611–11623. [Google Scholar] [CrossRef]
  23. Cheng, W.; He, Z. Calibration of Nodal Demand in Water Distribution Systems. J. Water Resour. Plan. Manag. 2011, 137, 31–40. [Google Scholar] [CrossRef]
  24. Huang, Y.; Duan, H.F.; Zhao, M.; Zhang, Q.; Zhao, H.; Zhang, K. Probabilistic analysis and evaluation of nodal demand effect on transient analysis in urban water distribution systems. J. Water Resour. Plan. Manag. 2017, 143, 04017041. [Google Scholar] [CrossRef]
  25. Huang, Y.; Zheng, F.; Duan, H.F.; Zhang, Q.; Shen, Y. Impacts of Nodal Demand Allocations on Transient-Based Skeletonization of Water Distribution Systems. J. Hydraul. Eng. 2020, 146, 04020058. [Google Scholar] [CrossRef]
  26. Lima, G.M.; Brentan, B.M.; Manzi, D.; Luvizotto, E., Jr. Metamodel for nodal pressure estimation at near real-time in water distribution systems using artificial neural networks. J. Hydroinform. 2018, 20, 486–496. [Google Scholar] [CrossRef]
  27. Zhang, Q.; Zheng, F.; Jia, Y.; Savic, D.; Kapelan, Z. Real-time foul sewer hydraulic modelling driven by water consumption data from water distribution systems. Water Res. 2021, 188, 116544. [Google Scholar] [CrossRef] [PubMed]
  28. Marsili, V.; Meniconi, S.; Alvisi, S.; Brunone, B.; Franchini, M. Stochastic Approach for the Analysis of Demand Induced Transients in Real Water Distribution Systems. J. Water Resour. Plan. Manag. 2022, 148, 04021093. [Google Scholar] [CrossRef]
  29. Lejano, R.P. Optimizing the layout and design of branched pipeline water distribution systems. Irrig. Drain. Syst. 2006, 20, 125–137. [Google Scholar] [CrossRef]
  30. Hoagland, S.; Schal, S.; Ormsbee, L.; Bryson, S. Classification of water distribution systems for research applications. In Proceedings of the World Environmental and Water Resources Congress 2015, Austin, TX, USA, 17–21 May 2015; pp. 696–702. [Google Scholar]
  31. Nault, J.; Karney, B. Improved rigid water column formulation for simulating slow transients and controlled operations. J. Hydraul. Eng. 2016, 142, 04016025. [Google Scholar] [CrossRef]
  32. Jung, B.S.; Karney, B. A practical overview of unsteady pipe flow modeling: From physics to numerical solutions. Urban Water J. 2017, 14, 502–508. [Google Scholar] [CrossRef]
  33. Kaltenbacher, S.; Steffelbauer, D.B.; Cattani, M.; Horn, M.; Fuchs-Hanusch, D.; Römer, K. A dynamic model for smart water distribution networks. In Proceedings of the Computing and Control for the Water Industry, Sheffield, UK, 5–7 September 2017; pp. 2–134. [Google Scholar]
  34. Daum, F.E. Extended Kalman Filters. In Encyclopedia of Systems and Control; Baillieul, J., Samad, T., Eds.; Springer International Publishing: Cham, Switzerland, 2021; pp. 751–753. [Google Scholar] [CrossRef]
  35. Fang, H.; Tian, N.; Wang, Y.; Zhou, M.; Haile, M.A. Nonlinear Bayesian estimation: From Kalman filtering to a broader horizon. IEEE/CAA J. Autom. Sin. 2018, 5, 401–417. [Google Scholar] [CrossRef]
  36. Delgado-Aguiñaga, J.; Besancon, G.; Begovich, O.; Carvajal, J. Multi-leak diagnosis in pipelines based on Extended Kalman Filter. Control Eng. Pract. 2016, 49, 139–148. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of a unique demand in a branched pipeline.
Figure 1. Schematic diagram of a unique demand in a branched pipeline.
Sensors 25 02632 g001
Figure 2. A simple pipeline scheme.
Figure 2. A simple pipeline scheme.
Sensors 25 02632 g002
Figure 3. Extended Kalman filter strategy for estimation of an unknown demand.
Figure 3. Extended Kalman filter strategy for estimation of an unknown demand.
Sensors 25 02632 g003
Figure 4. Branched distribution system with n demand nodes.
Figure 4. Branched distribution system with n demand nodes.
Sensors 25 02632 g004
Figure 5. Cascade EKF strategy for the estimation of n node-demands.
Figure 5. Cascade EKF strategy for the estimation of n node-demands.
Sensors 25 02632 g005
Figure 6. Experimental water distribution system.
Figure 6. Experimental water distribution system.
Sensors 25 02632 g006
Figure 7. Piping and instrumentation diagram of the experimental WDS.
Figure 7. Piping and instrumentation diagram of the experimental WDS.
Sensors 25 02632 g007
Figure 8. Experimental results for the EKF-driven nodal demand estimation (steady state).
Figure 8. Experimental results for the EKF-driven nodal demand estimation (steady state).
Sensors 25 02632 g008
Figure 9. Experimental results for the EKF-driven nodal demand estimation (variable input conditions).
Figure 9. Experimental results for the EKF-driven nodal demand estimation (variable input conditions).
Sensors 25 02632 g009
Table 1. Physical parameter of the pilot WDS.
Table 1. Physical parameter of the pilot WDS.
ParameterValueUnits
Total length (L)145.78 m
Cross-sectional area ( A r )0.0019m2
Gravity acceleration (g)9.81m/s2
α 100
Δ z 1 28.68 m
Δ z 2 27.22 m
Δ z 3 28.68 m
Table 2. Pressure comparison case 1.
Table 2. Pressure comparison case 1.
Measured Pressure HeadEstimated Pressure HeadEstimation Error
H d 2 28.8984 m H ^ d 2 29.3978 m1.7663%
H d 3 20.1272 m H ^ d 3 20.6066 m2.4247%
Table 3. Flow comparison case 1.
Table 3. Flow comparison case 1.
Measured Flow RateEstimated Flow RateEstimation Error
Q 1 0.002834 m 3 / s Q ^ 1 0.002884 m 3 / s 1.7725%
Q 2 0.001350 m 3 / s Q ^ 2 0.001375 m 3 / s 1.8989%
Table 4. Pressure comparison case 2.
Table 4. Pressure comparison case 2.
Measured Pressure HeadEstimated Pressure HeadEstimation Error
H d 2 37.1227 m H ^ d 2 37.6023 m 1.2988%
H d 3 20.0040 m H ^ d 3 20.4594 m 2.3347%
Table 5. Flow comparison case 2.
Table 5. Flow comparison case 2.
Measured Flow RateEstimated Flow RateEstimation Error
Q 1 0.002532 m 3 / s Q ^ 1 0.002557 m 3 / s 0.9941%
Q 2 0.001331 m 3 / s Q ^ 2 0.001348 m 3 / s 1.3642%
Table 6. Pressure comparison case 3.
Table 6. Pressure comparison case 3.
Measured Pressure HeadEstimated Pressure HeadEstimation Error
H d 2 23.6616 m H ^ d 2 24.1174 m 1.9263%
H d 3 15.6766 m H ^ d 3 16.00203 m 2.0758%
Table 7. Flow comparison case 3.
Table 7. Flow comparison case 3.
Measured Flow RateEstimated Flow RateEstimation Error
Q 1 0.002936 m 3 / s Q ^ 1 0.002966 m 3 / s 1.0203%
Q 2 0.001866 m 3 / s Q ^ 2 0.001881 m 3 / s 0.8027%
Q 3 0.000796 m 3 / s Q ^ 3 0.000806 m 3 / s 1.2593%
Table 8. Error in node-demand estimation under steady-state conditions.
Table 8. Error in node-demand estimation under steady-state conditions.
BranchingRMSE
First branching ( Q d 1 )8.6066 × 10−5 m 3/ s
Second branching ( Q d 2 )1.3681 × 10−4 m 3/ s
Table 9. Error in nodal demand estimation under variable input conditions.
Table 9. Error in nodal demand estimation under variable input conditions.
BranchingRMSE
First branching ( Q d 1 )9.5335 × 10−5 m 3/ s
Second branching ( Q d 2 )7.4080 × 10−5 m 3/ s
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

López-Estrada, F.-R.; Gómez-Coronel, L.; Torres, L.; Valencia-Palomo, G.; Santos-Ruiz, I.; Cano, A. Online Nodal Demand Estimation in Branched Water Distribution Systems Using an Array of Extended Kalman Filters. Sensors 2025, 25, 2632. https://doi.org/10.3390/s25082632

AMA Style

López-Estrada F-R, Gómez-Coronel L, Torres L, Valencia-Palomo G, Santos-Ruiz I, Cano A. Online Nodal Demand Estimation in Branched Water Distribution Systems Using an Array of Extended Kalman Filters. Sensors. 2025; 25(8):2632. https://doi.org/10.3390/s25082632

Chicago/Turabian Style

López-Estrada, Francisco-Ronay, Leonardo Gómez-Coronel, Lizeth Torres, Guillermo Valencia-Palomo, Ildeberto Santos-Ruiz, and Arlette Cano. 2025. "Online Nodal Demand Estimation in Branched Water Distribution Systems Using an Array of Extended Kalman Filters" Sensors 25, no. 8: 2632. https://doi.org/10.3390/s25082632

APA Style

López-Estrada, F.-R., Gómez-Coronel, L., Torres, L., Valencia-Palomo, G., Santos-Ruiz, I., & Cano, A. (2025). Online Nodal Demand Estimation in Branched Water Distribution Systems Using an Array of Extended Kalman Filters. Sensors, 25(8), 2632. https://doi.org/10.3390/s25082632

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop