Next Article in Journal
Automated Pump Placement Algorithms for Optimal Sewer Network Design in Areas with Complex Terrain
Previous Article in Journal
A Novel Multi-Step Forecasting-Based Approach for Enhanced Burst Detection in Water Distribution Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Parameter Estimation in Water Distribution Networks Using an Error-in-Variables Approach †

by
Ebadu Rahman
1,
Sumanth Srinivas Parthasarathy
2,
Akshaya Venkataramanan
1,
Sri Hari Prasath Ramprasad
2,
Rajasundaram Mathiazhagan
1 and
Sridharakumar Narasimhan
1,3,*
1
Department of Chemical Engineering, Indian Institute of Technology Madras, Chennai 600036, Tamil Nadu, India
2
IITM Pravartak Technologies Foundation, Chennai 600113, Tamil Nadu, India
3
Robert Bosch Center for Data Science and Artificial Intelligence, Indian Institute of Technology Madras, Chennai 600036, Tamil Nadu, India
*
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), 145; https://doi.org/10.3390/engproc2024069145
Published: 18 September 2024

Abstract

:
A well-calibrated model of a water distribution network is necessary for monitoring, control, and operation. In this work, we address the problem of parameter estimation in water distribution networks (WDNs). Typical parameters to be estimated include the coefficients used to model major (pipes) and minor (joints, etc.) losses due to friction. The problem of parameter estimation is a nonlinear regression problem and is solved using the error-in-variables approach. The method is illustrated using data from an experimental facility.

1. Introduction

A well-calibrated model of a water distribution network is necessary for monitoring, control, and operation. In this work, we address the problem of parameter estimation in water distribution networks (WDNs). Typical parameters to be estimated include the coefficients used to model major (pipes) and minor (joints, etc.) losses due to friction. The head loss in pipes is nonlinearly related to the flow through them (according to the Hazen–Williams equation). The minor losses and the head loss in valves are also related to the flow nonlinearly. The problem of parameter estimation can be posed as a nonlinear regression problem. Since all measured variables are prone to error, the problem is solved using the error-in-variables [1] approach. This is solved iteratively in two steps: in the outer step, the parameters are updated and in the inner step, the measured values are updated. This process is iterated until convergence. The method was validated using data generated from an experimental test facility. A Python-based software package was also made to automate the procedure.

2. Problem Formulation

The WDN system under consideration here is a branched network and does not contain any loops. Nodes could be sources, junction points, or demand nodes. The variables and parameters are related by linear (material balance) and nonlinear equations (pressure drop equations). We assume that all demand flows are measured and hence all flows in the branched network can be estimated from the demand flows. For each demand node, we can formulate a pressure drop equation starting from the reservoir to the tank via all the pipes.
f z 1 , , z n , b 1 , , b n = 0
Here, z = z 1 , , z n T represents the variable and b = b 1 , , b n T represents the parameters. We consistently regard measurements as the sum of true values and a certain error. Here, the error is assumed to have a zero mean and a known positive definite covariance matrix V i . In practical terms, all the values in the error are considered uncorrelated and so we consider V i as the identity matrix. If z ~ i j is the measured value, z i j is the true value and ϵ i j is error in that measurement in the jth variable in the ith experiment:
z ~ i j = z i j + ϵ i j , i = 1 , 2 , , m , j = 1 , 2 , , n
Hence, we have ϵ i j = z ~ i j z i j and we can estimate the parameter b by minimizing the error norm function
Q b , z 1 , , z m = i = 0 m z i ~ z i T V i 1 z i ~ z i , s . t . 1
subjected to constraints, i.e., pressure drop equations
f z i , b = 0 , i = 1 , 2 , , m

3. Estimation Algorithm

The parameters to be estimated are the major and minor loss coefficients, which are denoted by c m j and c m n , respectively. We assume that all demand flows are measured and hence all flows in the branched network can be estimated. In the interest of clarity, we assume that the major and minor loss coefficients are the same for all the pipes and demand nodes. This is not a serious limitation and can be relaxed. The constraints in (1) arise from the nonlinear pressure drop equation, which are of the form:
H s c m n d i 2 k P i 10.67 L k D k 4.85 Q k 1.85 c m j = 0
where Hs is the source head, di is the measured outflow from the ith demand node, P i are the set of edges (pipes) occurring in the unique path from the source to the ith demand node, D k , L k , and Q k are the diameter, length, and flows in the kth edge, respectively. The algorithm operates through an iterative two-stage procedure. Initially, it commences with an initial assumption for the parameters which are updated by solving a simplified least squares problem.
b = arg min i = 1 m f i + J i z i ~ z i T J i V i J i T 1 f i + J i z i ~ z i
where fi = f(zi,b) f i = f ( z i , b ) and J i is the Jacobian with respect to variables z i . Subsequently, the estimates of the measured variables are updated as follows:
z i n e w = z i ~ V i J i T J i V i J i T 1 f i + J i z i ~ z i
The procedure is repeated until convergence. The values obtained at convergence are then regarded as the final estimates for both flow rates and parameters. This iterative process can be facilitated through three distinct functions: one for managing the flow matrix, another for handling parameters, and a third for error calculation, which serves as the termination criterion. A web application developed in Python is under development.

4. Results

The method is demonstrated using data generated from an experimental facility [2]. The network topology is as shown in Figure 1. An overhead tank serves as the source and water is delivered to the demand nodes using a network of pipes by gravity. Continuous control valves, direct-acting solenoid valves and reverse-acting solenoid valves are employed to control the flow of water in the setup. The outflow from each of the demand nodes drains into tanks which are fitted with ultrasonic-level sensors. The outflow is estimated from the change in level of the water in the tanks. The inputs to the algorithm include the network topology and the estimated flow rates. The experiment is repeated for different valve configurations, i.e., some valves to the demand nodes are turned off. The results of the parameter estimation algorithm are presented in Table 1. The measured and predicted flow rates (for one valve configuration with all valves open) are shown in Table 2.

5. Conclusions

This paper describes a computationally efficient method for estimating the parameters concerned with the water distribution system. The proposed approach addresses the challenges associated with errors in variables by implementing a systematic, iterative procedure. The algorithm is seamlessly automated through a Python-based software package. This work can be extended to loop networks, intermediate pressure measurements, and the partial opening of valves. Also, the parameters of pipes like the age, diameter, etc., of the pipe can be considered in the parameter estimation procedure.

Author Contributions

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

Funding

This research was partially supported by the Department of Science and Technology (DST), Government of India, for funding this research activity through WATER-IC for SUTRAM of EASY WATER at Indian Institute of Technology Madras, grant number DST/TM/WTI/WIC/2K17/82(G) and IITM Pravartak Technologies Foundation, grant number PRA/21-22/005/SRID.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data may be made available on request.

Acknowledgments

The authors would like to thank the Department of Chemical Engineering, Indian Institute of technology Madras, for all the support provided during the work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Valkó, P.; Vajda, S. An Extended Marquardt-Type Procedure for Fitting Error-in-Variables Models. Comput. Chem. Eng. 1987, 11, 37–43. [Google Scholar] [CrossRef]
  2. Mohandoss, P. Monitoring, Scheduling and Leak Detection in Water Distribution Networks. Master’s Thesis, Indian Institute of Technology Madras, Chennai, India, 2020. [Google Scholar]
Figure 1. This is an example of a network in the form of a tree. The red-colored nodes are the demand nodes and the black-colored nodes are the intermediate junctions. The black lines are the intermediate pipes and the dotted lines are the pipes containing valves.
Figure 1. This is an example of a network in the form of a tree. The red-colored nodes are the demand nodes and the black-colored nodes are the intermediate junctions. The black lines are the intermediate pipes and the dotted lines are the pipes containing valves.
Engproc 69 00145 g001
Table 1. Comparison of the initial guess of the parameters and the estimated parameter.
Table 1. Comparison of the initial guess of the parameters and the estimated parameter.
ParametersInitial GuessEstimated Parameter
Major Loss Coefficient 6.46 × 10 9 4.80 × 10 9
Minor Loss Coefficient 8.24 × 10 5 1.35 × 10 4
Table 2. Comparison of flow rates.
Table 2. Comparison of flow rates.
T1T2T3T4T5T6T7T8
Measured12.5817.2515.3423.129.836.110.240.02
Computed11.6120.9517.9924.547.403.1430.230.27
All values are in 10−5 lpm.
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

Rahman, E.; Parthasarathy, S.S.; Venkataramanan, A.; Ramprasad, S.H.P.; Mathiazhagan, R.; Narasimhan, S. Parameter Estimation in Water Distribution Networks Using an Error-in-Variables Approach. Eng. Proc. 2024, 69, 145. https://doi.org/10.3390/engproc2024069145

AMA Style

Rahman E, Parthasarathy SS, Venkataramanan A, Ramprasad SHP, Mathiazhagan R, Narasimhan S. Parameter Estimation in Water Distribution Networks Using an Error-in-Variables Approach. Engineering Proceedings. 2024; 69(1):145. https://doi.org/10.3390/engproc2024069145

Chicago/Turabian Style

Rahman, Ebadu, Sumanth Srinivas Parthasarathy, Akshaya Venkataramanan, Sri Hari Prasath Ramprasad, Rajasundaram Mathiazhagan, and Sridharakumar Narasimhan. 2024. "Parameter Estimation in Water Distribution Networks Using an Error-in-Variables Approach" Engineering Proceedings 69, no. 1: 145. https://doi.org/10.3390/engproc2024069145

Article Metrics

Back to TopTop