Next Article in Journal
FRET Measurement of Polymer Response under Shear
Next Article in Special Issue
Water Quality Indicator Interval Prediction in Wastewater Treatment Process Based on the Improved BES-LSSVM Algorithm
Previous Article in Journal
A Pilot Study Quantifying Center of Mass Trajectory during Dynamic Balance Tasks Using an HTC Vive Tracker Fixed to the Pelvis
Previous Article in Special Issue
Robust Data-Driven Leak Localization in Water Distribution Networks Using Pressure Measurements and Topological Information
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Two Simultaneous Leak Diagnosis in Pipelines Based on Input–Output Numerical Differentiation

by
Adrián Navarro-Díaz
1,
Jorge-Alejandro Delgado-Aguiñaga
2,*,
Ofelia Begovich
3 and
Gildas Besançon
4
1
Tecnologico de Monterrey, School of Engineering and Sciences, Av. General Ramón Corona 2514, Zapopan C.P. 45138, Mexico
2
Centro de Investigación, Innovación y Desarrollo Tecnológico CIIDETEC-UVM, Universidad del Valle de México, Periférico Sur Manuel Gómez Morín 8077, Tlaquepaque C.P. 45601, Mexico
3
CINVESTAV Guadalajara, Av. del Bosque 1145, Col. El Bajío, Zapopan C.P. 45019, Mexico
4
GIPSA-Lab, Institute of Engineering, Université Grenoble Alpes, CNRS, Grenoble IPN, 38000 Grenoble, France
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(23), 8035; https://doi.org/10.3390/s21238035
Submission received: 3 November 2021 / Revised: 26 November 2021 / Accepted: 26 November 2021 / Published: 1 December 2021

Abstract

:
This paper addresses the two simultaneous leak diagnosis problem in pipelines based on a state vector reconstruction as a strategy to improve water shortages in large cities by only considering the availability of the flow rate and pressure head measurements at both ends of the pipeline. The proposed algorithm considers the parameters of both leaks as new state variables with constant dynamics, which results in an extended state representation. By applying a suitable persistent input, an invertible mapping in x can be obtained as a function of the input and output, including their time derivatives of the third-order. The state vector can then be reconstructed by means of an algebraic-like observer through the computation of time derivatives using a Numerical Differentiation with Annihilatorsconsidering its inherent noise rejection properties. Experimental results showed that leak parameters were reconstructed with accuracy using a test bed plant built at Cinvestav Guadalajara.

1. Introduction

In recent decades, climate change and the overuse of natural water resources have caused water scarcity in big cities. Furthermore, water distribution systems operators (WDSOs) are facing major water losses as high as 65% due to pipeline leaks caused by lack of maintenance, illegal intrusion, or accidents.
According to a study performed by the Organisation for Economic Co-operation (OECD), entitled Water Governance in Cities [1], aging water networks have a negative impact in terms of efficiency. One of the consequences is water loss from pipeline leaks. On average, water loss in the surveyed cities (in the referred report) was 21% in 2016. However, for Mexican cities, water loss was more than 40% (Chihuahua, Mexico City, San Luis Potosi) or even up to 65% (Tuxtla), see Figure 1.
On the other hand, to satisfy the current demand, government policies are focused on bringing more water from far away places instead of solving water losses due to leaks. This means that the amount of water lost is currently considered in the water budget. Interestingly, the amount of water needed to meet the demand in deficit is very similar to what is lost through leaks. In other words, it could be possible to satisfy the current water demand by minimizing the water losses due to leaks without the need for bringing more water from far away places.
The implementation of leak detection and isolation (LDI) systems has demonstrated a reduction in water losses in pipelines. LDI systems are algorithms that perform the following tasks: detection and localization of one or several leaks in a pipeline system. Thus, once a leak is identified, the repair technicians can fix the leak and avoid the water loss. Many works that address the LDI problem for one leak have been reported [2,3,4,5,6]. For instance, in [2], a leak isolation methodology using a fitting loss coefficient calibration is presented on the basis of two stages: in the first stage, the equivalent straight length (ESL) is fixed by a model-based observer designed as an extended Kalman filter (EKF); in the second stage, an algebraic observer is started with the ESL value fixed by the previous observer. Finally, the estimated leak position is recovered in original coordinates since the observer deals with ESL coordinates. Authors in [3] presented a methodology for leak detection and isolation in pipelines based on data fusion using two approaches: a steady-state estimation and an EKF. Authors concluded that the solution of the LDI problem improves significantly when a steady-state estimation is incorporated to the estimation provided by the EKF. In other words, the solution provided by the EKF is less accurate by itself. In [4], authors propose a bank of observers together with a Genetic Algorithm (GA), which is exploited to minimize the integration of the square observation error. The minimum integral observation error is reached in the observer where the estimated leak parameters match the real values. Experimental results evidence an accurate leak position estimation in a test bed pilot plant. In [5], a combined artificial neural network (ANN) for leak diagnosis in pipelines is presented. The ANN scheme estimates the location and friction factor based on measurement data. An average error of 0.629% was obtained for leak location in the experiments. More recently, in [6], a new approach for solving the LDI problem in pipelines is introduced on the basis of a Kalman filter for linear parameter varying (LPV) systems. The off-line computation of the filter gain allows the computational effort to be reduced and the authors claim that the LPV design outperforms the classical EKF design in terms of parameter-estimation accuracy.
On the other hand, the multi-leak case study has also been considered from two different perspectives: (i) for sequential leaks (non-concurrent case) [7,8,9] and (ii) for the simultaneous leak problem (concurrent case) [10].
In [7], a model adaptation strategy is proposed to isolate non-concurrent multiple leaks based on extended Kalman filters. Experimental results show the potential of this approach by allowing to monitor each new leak, no matter where it appears. Following this direction, a scheme is proposed in [8] for detecting and locating multiple sequential leaks based on a combination of an adaptive observer to identify the hydraulic gradient in real time and a leak location observer to estimate the leak position and its outflow. Experimental results of a pilot pipeline showed a satisfactory estimation in spite of operational changes and leaks. More recently, in [9], a pressure distribution analysis is proposed to diagnose the location of leaks via an experimental study and computational fluid dynamics (CFD) simulation. Multiple flow rate testing is conducted to detect the locations of two leaks.
In the same way, a more complex case of the multi-leak problem is when two or more leaks occur at the same time, also known as the concurrent case. In [10], the orthogonal collocation method (OCM) is used to obtain an approximate solution of the water hammer equations (WHE). An estimator is then designed based on the spatially-discretized model to detect multiple leaks by identifying their positions and leak coefficients by applying a persistent input [11]. The results are presented via simulation.
Regarding the one leak problem, state observer-based techniques have been proposed and successfully evaluated since the observer convergence is guaranteed, even by applying constant inputs. This is because the structure of underlying state-space representation fulfills a uniform observability condition (which is independent of the input) [12]. Conversely, when two or more leaks occur simultaneously, such an observability condition is no longer satisfied and the observability depends on the input. Particularly in steady state, the output obtained by two or more leaks is equivalent to the one obtained by a single virtual leak, which is known as indistinguishability [11].

1.1. Problem Statement

  • In a real pipeline system, several leaks can occur and usually they are not fixed as they appear; this means that the leak problem becomes a challenging multi-leak problem known as the simultaneous leak case. In addition, this situation worsens when water management companies frequently lack flow rate and pressure head records of the leak events.
  • Therefore, a methodology to address the simultaneous leak case is proposed on the basis of an input–output numerical differentiation-based strategy by applying a persistent input in the sense of [11].

1.2. Methods

  • By considering a state-space representation of a pipeline with two leaks in which the leak parameters are considered as new state variables with constant dynamics, the extended state can be reconstructed via its expression in terms of input, output, and the corresponding time derivatives.
  • A persistent input is experimentally generated via a frequency variation of the pump driver that produces a sine-like pressure signal. This persistent input allows the parameters of each leak to be reconstructed. This approach could be extended to a more general case of simultaneous leaks if the applied input is regularly persistent, such that the observability condition is guaranteed [11]. However, this approach could also be limited to physical constraints since a persistent input might cause additional leaks due to the flow transient effect that it produces.
Hereinafter, the paper is organized as follows: In Section 2, a mathematical model is derived from the well-known water hammer equations and the two simultaneous leak problem is stated. State vector reconstruction based on injection of input–output time derivatives is presented in Section 3. Experimental results are presented in Section 4 by using databases from a pilot plant built at Cinvestav Guadalajara. Finally, several conclusions and future perspectives are given in Section 5.

2. Preliminaries

2.1. Pipeline Mathematical Model

2.1.1. Governing Equations

The transient fluid through a pipeline can be described by conservation mass and momentum equations known as water hammer equations, which are a couple of quasi-linear hyperbolic partial differential equations (PDE). Generally, PDE are derived considering the following assumptions: the fluid is slightly compressible, the duct wall is slightly deformable, and the convective velocity changes are negligible. The cross section and the fluid density are assumed to be constant [13]:
Momentum Equation
Q ( z , t ) t + g A H ( z , t ) z + μ Q ( z , t ) Q ( z , t ) = 0
Continuity Equation
H ( z , t ) t + b 2 g A Q ( z , t ) z = 0
Here, Q stands for the flow rate [m 3 /s]; H is the pressure head [m]; z is the length coordinate [m]; t is the time coordinate [s]; g is the gravity acceleration [m/s 2 ]; A is the cross-section area [m 2 ]; b is the pressure wave speed in the fluid [m/s]; μ = τ / 2 ϕ A , where ϕ is the inner diameter [m] and τ is the friction factor. The dynamics in Equations (1) and (2) are fully defined by related pairs of initial and boundary conditions.

2.1.2. Finite Difference Approximation

For the purpose of obtaining a finite dimensional model from (1) and (2), the partial differential equations are discretized with respect to the spatial variable z, as in [14,15], by using the following approximations:
Section i : H ( z i , t ) z H i + 1 H i Δ z i i = 1 , , n Q ( z i 1 , t ) z Q i Q i 1 Δ z i 1 i = 2 , , n
where index i stands for the variable discretized in (1) and (2) at section i. To solve the LDI problem for two simultaneous leaks, Equations (1) and (2) admit a simple spatial discretization as shown in Figure 2, where sections are defined according to the two leakage positions:
Here, Q l 1 , 2 represent the leaking flows that can be modeled as:
Q l 1 , 2 = λ 1 , 2 H 2 , 3
where, λ 1 , 2 is a constant that depends on the orifice size and the discharge coefficient, and H 2 , 3 is the head pressure at the leak point.
Thus, assuming a lumped-parameter model for the flow equations and considering that the pressure head and flow rate measurements are available at both ends of the pipeline via sensors, a low order dynamical representation of the system with two leaks can be written using approximation (3) in Equations (1) and (2), as follows:
Q ˙ 1 H ˙ 2 Q ˙ 2 H ˙ 3 Q ˙ 3 = g A Δ z 1 H 2 H 1 τ 2 ϕ A Q 1 | Q 1 | b 2 2 g A Δ z 1 Q 2 Q 1 + λ 1 H 2 g A Δ z 2 H 3 H 2 τ 2 ϕ A Q 2 | Q 2 | b 2 2 g A Δ z 2 Q 3 Q 2 + λ 2 H 3 g A Δ z 3 H 4 H 3 τ 2 ϕ A Q 3 | Q 3 |
Notice that, due to mass conservation, Q l 1 , 2 must satisfy the next relation:
Q l 1 , 2 = Q b 1 , 2 Q a 1 , 2
where Q b 1 , 2 and Q a 1 , 2 are the flows in an infinitesimal length before and after the leak, respectively.

2.1.3. Pipeline Equivalent Straight Length

It is worth pointing out that the mathematical model (5) assumes a straight pipe. This is not a loss of generality because even if the pipe is not straight, it is possible to obtain an equivalent straight length (ESL) of the pipe. The ESL is the straight length of a virtual pipe (with the same parameters as the original duct) that would give rise to the same pressure drop as the real pipeline. Such an equivalence is calculated by considering losses due to each “non-straight element” (i.e., fitting) in accordance with the Darcy–Weisbach formula [2,16,17]:
l e = ϕ τ K
where, l e means the equivalent straight length of a specific fitting, K is the so-called loss coefficient parameter, which is normally provided by the pipe manufacturer, and τ is the friction coefficient. Thus, the total ESL of the pipe, L e , can be calculated as follows:
L e = L r + ϕ τ i = 0 n f K i
where L r stands for the sum of all pipeline straight length elements, K i is the fitting loss coefficient for the i-th fitting, and n f the number of the pipeline fittings.

2.1.4. Friction Model

The friction factor ( τ in Equation (1)) represents the loss of pressure of a fluid due to the interactions between the fluid and the internal surface roughness of the pipe. Thus, such a friction factor is a function of the Reynolds number, Re, and the pipe’s roughness, ϵ [18,19].
In many practical cases, τ is deemed to be a constant value, which is commonly taken from the Moody chart; nevertheless, in pipes with a relative roughness usually less than 1 × 10 3 m, the zone where the friction factor is almost constant (i.e., the complete turbulence zone), is difficult to reach. Consequently, when the LDI scheme is applied to a plastic pipe, it is preferable to obtain a more accurate friction value by using a formula or an algorithm to estimate such value. In this work, the authors propose the use of the well know Swamee–Jain equation to directly calculate the coefficient of friction:
τ i ( Q i ) = 0.25 log 10 ϵ 3.7 ϕ + 5.74 Re i 0.9 2
where subscript i denotes the section number of the pipeline (see Figure 2). The Reynolds number is, in turn, function of the flow rate, Q i , as follows:
Re i = Q i ϕ ν A
where, ν is the kinematic viscosity of the water. Notice that, due to leak occurrence, the flow rate is different in each pipeline section (see Figure 2), causing a significant deviation of the friction factor value (since the working plastic pipe area is commonly in the transition zone). Therefore, it is important to introduce Equations (9) and (10) in the mathematical model to calculate, at any sampling time, the friction coefficient due to the flow variations in each i-th section.

2.2. Two Simultaneous Leak Problem Statement

In this work, the two simultaneous leak case is considered, i.e., a couple of leaks can appear in a pipeline at locations: z 1 ( 0 , L ) and z 2 ( 0 , L ) , with z 2 > z 1 . Thus, the problem is reduced to the size estimation of the pipe sections: Δ z 1 ( Δ z 1 = z 1 ) and Δ z 2 ( Δ z 2 = z 2 z 1 ), see Figure 2.
Now, Equation (5) can be written in compact form as follows:
ζ ˙ = ξ ( ζ ) + ρ ( ζ ) γ Ψ = ϑ ( ζ )
where ζ = [ ζ 1 ζ 2 ζ 3 ζ 4 ζ 5 ] T = [ Q 1 H 2 Q 2 H 3 Q 3 ] T R 5 is the state vector, γ = [ H i n H o u t ] T R 2 is the input vector, and Ψ = [ Q i n Q o u t ] T R 2 is the output vector for some functions ξ , ρ , and ϑ .
The leak diagnosis problem for two simultaneous leaks appearing in a pipeline can then amount to the estimation of parameters Δ z 1 , Δ z 2 , λ 1 , and λ 2 in (5). Let us consider those parameters as new state variables with constant dynamics [11], that is: if θ = [ z 1 z 2 λ 1 λ 2 ] T then θ ˙ = 0 . This results in an extended state: x = [ ζ θ ] T = [ Q 1 H 2 Q 2 H 3 Q 3 Δ z 1 Δ z 2 λ 1 λ 2 ] T = : [ x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 ] T R 9 . Then, considering an unidirectional flow given by Q i | Q i | = Q i 2 , the extended state representation of (11) can take a form as follows:
x ˙ = f ( x , u ) y = h ( x )
where u [ H 1 H 4 ] T [ u 1 u 2 ] T , and f, g are differentiable vector fields with the following structure:
f ( x , u ) = g A x 6 ( x 2 u 1 ) μ 1 ( x 1 ) x 1 2 b 2 A g x 6 x 3 x 1 + x 7 x 2 g A x 8 ( x 4 x 2 ) μ 2 ( x 3 ) x 3 2 b 2 A g x 8 x 5 x 3 + x 9 x 4 g A L x 6 x 8 ( u 2 x 4 ) μ 3 ( x 5 ) x 5 2 O 4 × 1 h ( x ) = y 1 ( x ) y 2 ( x ) = Q 1 Q 3 = x 1 x 5
where O 4 × 1 is the 4 × 1 zero matrix, μ i = τ i 2 ϕ A is computed as in Equation (9), and τ 1 , 2 , 3 are functions of x 1 , x 3 , and x 5 , respectively.

3. State Vector Reconstruction Based on Input–Output Numerical Differentiation

3.1. Observability Discussion

For the one leak case, the so-called observability rank condition is satisfied, and such a property does not depend on the inputs [12]. However, in the case of two simultaneous leaks (or even more), this is no longer true, since the states are not distinguishable by applying constant inputs, and thus a persistent input is required [11].
In fact, to reconstruct the actual state vector x of (12), one can compute time derivatives of the output as functions of state variables as well as input and its time derivatives (using Equation (13)), such that an invertible map with respect to the full state vector x is obtained by applying an appropriate input. More precisely, by considering the two simultaneous leak case described by (12), we have two input variables and two output variables, from which input–output time derivative vectors can be generally defined up to orders p, p for the input and q, q for the output, as:
U ( p , p ) ( t ) : = u 1 u ˙ 1 u 1 ( p ) u 2 u ˙ 2 u 2 ( p ) T
and
Y ( q , q ) ( t ) : = y 1 y ˙ 1 y 1 ( q ) y 2 y ˙ 2 y 2 ( q ) T
Clearly, from (13), the output time derivatives depend on the state and input time derivatives, so that we can get:
Y ( q , q ) ( t ) = Γ x , U ( p , p )
for some p, p , given q, q .
On this basis, observability somehow means that this relationship is invertible and that it is possible to find elements among the components of Γ defining an invertible map with respect to x [20,21]. Specifically, if such an inverted map exists, and the input–output and the corresponding time derivatives are known, then, it is possible to compute each independent state in (16) as follows:
x = Γ 1 U ( p , p ) , Y ( q , q )
Notice that, in general, it can be of interest to avoid or limit time derivatives of the input, but assuming that they are available or can be estimated in the same way as time derivatives of y is enough for our present application.
It should be noted that for this LDI problem, it is even enough to obtain an expression by only relating the input, output, and their time derivatives with leak parameters. We will propose this in Section 3.3, with a similar procedure as elimination (which, conversely to realization, consists of deriving an externally equivalent representation not containing the state [22]). We will even see how to recover the full state vector. However, let us first discuss the way to obtain input–output time derivatives.

3.2. Numerical Differentiation with Annihilators

The LDI scheme proposed in this work is based on Equation (17), that is, the injection of the inputs, outputs, and their time derivatives. Although there are multiple algorithms to numerically compute a time derivative, here we use a numerical differentiation with annihilators [23] due to its inherent noise rejection properties. Hereinafter, a brief explanation of such an algorithm is given, which is proposed for the first time in this paper, and it is described by Equation (25).
Let γ m ( t ) denote the m-th order derivative of a smooth signal γ ( t ) defined on an interval I R + . The signal γ ( t ) could represent a measurement variable corrupted by some noise, whose derivatives are not directly available.
Ignoring the noise for a moment, let γ ( t ) be an analytical function on I . So, without any loss of generality, it is possible to consider the truncated Taylor expansion at t = 0 :
γ ( t ) = i = 0 m a i t i i ! + O ( t m )
where a i = d i γ ( t ) d t i t = 0 . This implies that γ ( t ) can be approximated by the polynomial p m ( t ) = i = 0 m a i t i i ! .
In this way, the i-th order time derivative estimation of γ ( t ) can be tackled as a parameter estimation problem for p m ( t ) . Using the method described in [23], it is possible to calculate each a i ( i = 0 , , m ) independently, reducing in this manner the sensitivity to noise and numerical computation errors which often appear in simultaneous estimation methods. Moreover, the independent calculation allows the use of higher order polynomials without the calculation of all their coefficients. The algorithm is described as follows (a complete explanation is given in [23]):
  • Let p m ( t ) be the m-th order polynomial approximation of γ ( t ) ,
    p m = a 0 0 ! + a 1 1 ! t + a 2 2 ! t 2 + + a m m ! t m
  • Transforming Equation (19) into Laplace domain yields:
    P m = a 0 s + a 1 s 2 + a 2 s 3 t 2 + + a m s m + 1
  • In order to calculate the i-th time derivative approximation, a i , it is necessary to first annihilate every a x ( x > i ) in (20), using the next operator:
    l = 0 m i d d s · s m + 1
  • Then, to annihilate every a x ( x < i ), the following operator is subsequently applied to Equation (20):
    h = 0 i d d s · s 1
  • Finally, the resulting equation (after applying Equations (20)–(22)) is:
    l ( 1 ) i ( m i ) ! i ! a i s ( i + 1 ) = h = 0 i l = 0 m 1 + h ( 1 ) i h i h m i + h l ( i h ) ! ( m + 1 ) ! ( i + 1 h + l ) ! s l d l P m ( s ) d s l
  • Now, multiplying both sides of the above equation by s ( m + 1 ) yields a polynomial taking the following form:
    c m s i + m + 2 a i = 1 s d m P m ( s ) d s m + c m 1 s 2 d m 1 P m ( s ) d s m 1 + + c 0 s m + 1 P m ( s )
  • Using the Cauchy rule for iterated integrals, the time domain expression for a i in Equation (24) yields:
    a i = ( m + i + 1 ) ! c m T m + i + 1 0 T t m + c m 1 1 ! ( T t ) t m 1 + + c 0 m ! ( T t ) m p ( t ) · d t
It should be noted that each constant c j , j = { 0 , 1 , , m } , is obtained from Equation (23), and T represents a moving window of length T for the integrals. A short time window is sufficient to obtain accurate estimations. In addition, the iterated integrals work as low pass filters that provide a smoother form of highly fluctuating noises. Therefore, no previous knowledge on the statistical properties of the noise is required to filter it out.

3.3. Extended State Vector Reconstruction

The purpose of this section is to provide a synthesis of the proposed LDI scheme. In this sense, the method is based on the study of the structure of the input–output differential equation; thus, the problem is solved by exploiting the observability property of the system (13). First, a set of equations describing each state just as a function of the inputs, outputs, and the corresponding time derivatives is derived. Then, taking advantage of the filtering characteristic of the numerical differentiation exposed in Section 3.2, the input–output time derivatives are computed. Thus, the leak positions and magnitudes can be calculated by a pair of algebraic equations. In the next step, the algorithm used to derive this set of equations is described.
It is easy to check that the observability rank condition for the system (12) is satisfied (for the finite number of input–output time derivatives), only by applying a persistent input. More precisely, it is also easy to see that for an input of the form A p sin ( ω t ) . This wave form is easy to achieve by a variable frequency drive, a commonly installed device in a pumping station.
The rank condition of (12) is fulfilled with p = 3 , p = 2 , q = 4 , and q = 3 for Equations (14) and (15). Thus, the output derivatives as well as the inverse mapping can be computed as follows (perhaps the major difficulty of the algorithm is to obtain the inverse mapping due to the complexity of the resulting equation):
First, by construction of Equation (13), the state variables x 1 and x 5 are taken directly from the measurements:
x 1 = y 1
x 5 = y 2
Now, the following step is to take the time derivatives of Equations (26) and (27), by using (13) and replacing x 1 , x 5 by outputs according to (26) and (27) solving the resulting equation for x 2 and x 4 , respectively, yields expressions without x 1 and x 5 :
x 2 = Φ 1 ( x 6 , u 1 , y 1 , y ˙ 1 )
x 4 = Φ 2 ( x 6 , x 8 , u 2 , y 2 , y ˙ 2 )
In the same way, the third step is to compute the derivative of Equation (28), substitute x 1 , x 5 , x 2 , and x 4 according to (26), (27), (28), and (29), respectively. Solving this equation for x 3 , yields an expression without x 1 , x 5 , x 2 , x 4 :
x 3 = Φ 3 ( x 6 , x 7 , u 1 , u ˙ 1 , y 1 , , y 1 ( 2 ) )
Following the same steps, now for (29) and (30), it is possible to find an expression for x 7 and x 9 free of x 1 , x 2 , x 3 , x 4 , and x 5 :
x 7 = Φ 4 ( x 6 , x 8 , u 1 , , u 1 ( 2 ) , u 2 , y 1 , , y 1 ( 3 ) , y 2 , y ˙ 2 , )
x 9 = Φ 5 ( x 6 , x 8 , u 1 , , u 1 ( 2 ) , u 2 , u ˙ 2 , y 1 , , y 1 ( 3 ) , y 2 , , y 2 ( 2 ) )
The final step is to apply the same methodology for Equations (31) and (32), but now for solving for the states x 6 and x 8 . In this way, it is feasible to obtain an expression of x 6 and x 8 just as a function depending on the input and output, and their time derivatives:
x 6 = Φ 6 ( u 1 , , u 1 ( 3 ) , u 2 , u ˙ 2 , y 1 , , y 1 ( 4 ) , y 2 , , y 2 ( 3 ) )
x 8 = Φ 7 ( u 1 , , u 1 ( 3 ) , u 2 , . . , u 2 ( 2 ) , y 1 , , y 1 ( 4 ) , y 2 , y 2 ( 3 ) )
At this point, we are able to recover the whole state with the acknowledgement of the input and output time derivatives calculated through Equation (25); this is achieved by first obtaining x 6 and x 8 (leak positions) from Equations (33) and (34). Once x 6 and x 8 are obtained, leak magnitudes, x 7 and x 9 , can be computed by using (31) and (32). The rest of the state can then be recovered going backwards through Equations (30)–(28).

4. Experimental Results

In this section, experimental results are presented to evaluate the proposed LDI methodology. The experiments are performed using several databases from the pilot plant located at Cinvestav Guadalajara. A couple of different two simultaneous leak scenarios were emulated by opening different electrovalves located along the pilot plant. A general description of the pipeline prototype is presented below with a detailed description of each experiment.

4.1. Pilot Pipeline Description

The layout of the pilot pressurized water pipe of Cinvestav Guadalajara, which is 68.2 [m] long (between sensors) with an internal diameter of 6.271 × 10 2 [m], thickness 1.27 × 10 2 [m], friction coefficient 1.66 × 10 2 , pressure wave speed 358 [m/s], and gravity acceleration 9.81 [m/s 2 ], is shown in Figure 3. The line is instrumented with two water-flow (FT) and pressure-head (PT) sensors at the inlet and outlet of the pipe. To emulate the leak, three control valves at position 16.8 , 33.3 , and 49.8 [m] are installed together with a electronic-based actuator to practically set any opening of the valve.
The prototype is manufactured with a plastic material known as polypropylene copolymer random, for which technical characteristics can be found in [24]. It is integrated with a store tank of 7.5 × 10 1 [m 3 ], a hydraulic pump of 5 HP, and a variable-frequency driver (VFD) which controls the pressure in the system through the rotational speed of the pump motor (more details about the pipeline prototype can be found in [25]).
To ensure the application of a persistent input, experiments with operation point variations are carried out by the pump variation via the VFD (specifically, a change in the form of A p sin ( ω t ) , where ω stands for the angular frequency induced via the VFD). Table 1 summarizes the pipeline’s main parameters.

4.2. LDI Results

Hereinafter, two off-line examples of the LDI scheme are displayed. Both results were carried out by taking data from the pipeline prototype previously described. The experiment was performed as follows: Pump 1 is started in a steady state operation during the first 65 [s] approximately. After that, it begins to operate in some unsteady state, namely a sine-like pressure signal is introduced, just exactly like a persistent input in the sense of [11]. This sine signal was experimentally obtained by setting up the pump controller as follows:
V F D ( t ) = 60 [ H z ] , t 65 [ s ] V F D ( t ) = 50 + 5 s i n ( 2.7313 t ) [ H z ] , t > 65 [ s ]
At t 60 [s], two leaks were induced simultaneously at the opening of the control valves in the pilot plant.
The leak position estimations were undertaken by the injection of the inputs and outputs for which a low pass filter was previously applied ( u 1 , u 2 , y 1 , and y 2 in (13)), and the corresponding derivatives together with Equations (33) and (34), respectively.
Then, the leak magnitudes were also estimated by using Equations (31) and (32). It is possible to recover the whole state going backwards using Equations (30)–(28). As stated earlier, the time derivatives were computed using the methodology discussed in Section 3.2.

4.2.1. Experiment 1: Leaks Induced in Valves n 1 and n 3

The first experiment consists of simultaneously inducing two leaks in valve n 1 and valve n 3 (see Figure 3). The algorithm starts once the leak is detected. This initial detection is obtained when a deviation between the upstream and downstream flow is detected | Q i n Q o u t | > δ , where δ is a constant threshold defined by the designer (normally related to the signal-noise ratio): here δ = 1 × 10 4 [m 3 /s]. Immediately afterwards, a sinusoidal wave form as (35) is applied to ensure enough observability of the model (13) via persistent inputs (see Section 3.1). Once the sinusoidal steady state has been reached, the LDI scheme starts. Figure 4 shows the time evolution of the pressure head at the inlet and outlet of the pipe (system input, H i n = u 1 and H o u t = u 2 ). As it can be seen, the LDI algorithm begins close to 65 [s].
Following with the same idea, Figure 5 shows the inlet and outlet flows (system output Q i n = y 1 and Q o u t = y 2 ). It is clear that, due to the physical nature of the leak phenomena, the inlet flow is separated from the outlet flow:
Now, once the input and output time derivatives have been computed with Equations (25), (33), and (34), then they are used to reconstruct the leak positions. For clarity, just one signal cycle ( T i n = 20 s), as seen in Figure 6, is enough to correctly locate the two leaks, despite signal noise. To quantify the accuracy of the leak position estimation, a Mean Absolute Error index is applied. For the first leak, the estimation accuracy is 96.62 % (with respect to the whole pipeline length), whereas the second leak localization accuracy is 96.33 % . As Figure 6 shows, one cycle has demonstrated to be enough to isolate the leak well despite signal noise.
Similarly, once the leak positions are obtained, it is possible to reconstruct the leak magnitudes using Equations (31) and (32). The corresponding results are shown in Figure 7, where estimated magnitudes are set around 1.3 × 10 4 [m 5 / 2 /s] and 0.95 × 10 4 [m 5 / 2 /s], respectively. The outflow computed by using Equation (4) for each leak is consistent with the total outflow.
Notice that for the LDI problem, the estimation of the leak parameters of both leaks is enough, but, as mentioned before, it is also possible to recover the remaining states of (13), going backwards from Equations (30) and (28).

4.2.2. Experiment 2: Leaks Induced in Valve n 1 and n 2

To better illustrate the effectiveness of the method, a second experiment is exposed. The experiment setup was exactly the same as in Section 4.2.1 except that two leaks are now induced in valve n 1 and valve n 2 (see Figure 3). Figure 8 shows the time evolution of the pressure head at upstream and downstream, respectively. In the same way as before, the LDI algorithm starts when a flow deviation exceeds a predefined threshold, δ , ( | Q i n Q o u t | > δ ).
Figure 9 shows the corresponding flow rate evolution at upstream and downstream. As stated above, due to the physical nature of the leak phenomena, the inlet flow is separated from the outlet flow.
As performed above, once the algorithm starts, the input and output time derivatives are computed following the algorithm explained in Section 3.2. Subsequently, Equations (33) and (34) are used to obtain the leak positions. The results are presented in Figure 10. As before, the leak positions are well estimated despite signal noise in just one signal cycle ( T i n = 20 s). Here, the MAE yields an estimation accuracy for the first leak of 95.01 % , while the second leak position presents an estimation accuracy of 97.94 % .
Continuing with the algorithm, the leak magnitudes are computed with Equations (31) and (32). These results are shown in Figure 11.

5. Conclusions

The simultaneous leak detection and isolation problem is currently an open and challenging problem. Even though extensive research in the field is currently in progress, to the best of our knowledge, only simulation results have been reported until now. One of the reasons is that the distinguishability of two (or more) simultaneous leaks depends on the input.
In this work, an LDI methodology for the two simultaneous leak detection and isolation has been proposed based on an algebraic observer that uses the injection, the inputs and outputs of the system, and the corresponding time derivatives, by applying an appropriate input. The time derivatives are computed using Numerical Differentiation with Annihilators and the approach has been successfully applied to real data. This methodology could be extended to more general cases of simultaneous leaks in real operational conditions, such as the case of the SIAPA aqueduct in Guadalajara, Mexico.

Author Contributions

A.N.-D.: software, validation, data curation, writing—original draft preparation, methodology, formal analysis, and investigation; J.-A.D.-A.: conceptualization, methodology, formal analysis, writing—review and editing, and investigation; O.B.: writing—review; G.B.: writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Tecnológico de Monterrey through the School of Engineering and Science.

Acknowledgments

Authors would like to thank Tecnológico de Monterrey for the financial support and the facilities granted for fulfillment of this research article. All databases were obtained by the second author during his PhD studies at Cinvestav Guadalajara.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. OECD. Water Governance in Cities; OECD: Paris, France, 2016; p. 140. [Google Scholar] [CrossRef]
  2. Navarro, A.; Begovich, O.; Sánchez, J.; Besancon, G. Real-Time Leak Isolation Based on State Estimation with Fitting Loss Coefficient Calibration in a Plastic Pipeline. Asian J. Control 2017, 19, 255–265. [Google Scholar] [CrossRef]
  3. Santos-Ruíz, I.; Bermúdez, J.; López-Estrada, F.; 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]
  4. Navarro, A.; Delgado-Aguiñaga, J.A.; Sánchez-Torres, J.D.; Begovich, O.; Besançon, G. Evolutionary Observer Ensemble for Leak Diagnosis in Water Pipelines. Processes 2019, 7, 913. [Google Scholar] [CrossRef] [Green Version]
  5. Pérez-Pérez, E.; López-Estrada, F.; Valencia-Palomo, G.; Torres, L.; Puig, V.; Mina-Antonio, J. Leak diagnosis in pipelines using a combined artificial neural network approach. Control Eng. Pract. 2021, 107, 104677. [Google Scholar] [CrossRef]
  6. Delgado-Aguiñaga, J.; Puig, V.; Becerra-López, F. Leak diagnosis in pipelines based on a Kalman filter for Linear Parameter Varying systems. Control Eng. Pract. 2021, 115, 104888. [Google Scholar] [CrossRef]
  7. Delgado-Aguiñaga, J.; Besançon, 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]
  8. Rojas, J.; Verde, C. Adaptive estimation of the hydraulic gradient for the location of multiple leaks in pipelines. Control Eng. Pract. 2020, 95, 104226. [Google Scholar] [CrossRef]
  9. Fu, H.; Wang, S.; Ling, K. Detection of two-point leakages in a pipeline based on lab investigation and numerical simulation. J. Pet. Sci. Eng. 2021, 204, 108747. [Google Scholar] [CrossRef]
  10. Torres, L.; Besançon, G.; Georges, D. Multi-leak estimator for pipelines based on an orthogonal collocation model. In Proceedings of the 48h IEEE Conference on Decision and Control (CDC) held jointly with 2009 28th Chinese Control Conference, Shanghai, China, 15–18 December 2009; pp. 410–415. [Google Scholar] [CrossRef]
  11. Besançon, G. Nonlinear Observers and Applications; Springer: Berlin/Heidelberg, Germany, 2007; Volume 363. [Google Scholar]
  12. Torres, L.; Besançon, G.; Georges, D.; Navarro, A.; Begovich, O. Examples of pipeline monitoring with nonlinear observers and real-data validation. In Proceedings of the 8th International Multi-Conference on Systems, Signals and Devices, Sousse, Tunisia, 22–25 March 2011. [Google Scholar]
  13. Roberson, J.A.; Cassidy, J.J.; Chaudhry, M.H. Hydraulic Engineering; John Wiley & Sons: Hoboken, NJ, USA, 1998. [Google Scholar]
  14. Verde, C. Accommodation of multi-leak location in a pipeline. Control Eng. Pract. 2005, 13, 1071–1078. [Google Scholar] [CrossRef]
  15. Besançon, G.; Georges, D.; Begovich, O.; Verde, C.; Aldana, C. Direct observer design for leak detection and estimation in pipelines. In Proceedings of the 2007 European Control Conference (ECC), Kos, Greece, 2–5 July 2007; pp. 5666–5670. [Google Scholar]
  16. Mott, R.L.; Noor, F.M.; Aziz, A.A. Applied Fluid Mechanics; Pearson Prentice Hall: Singapore, 2006. [Google Scholar]
  17. Navarro, A.; Begovich, O.; Besancon, G. Calibration of fitting loss coefficients for modelling purpose of a plastic pipeline. In Proceedings of the ETFA2011, Toulouse, France, 5–9 September 2011; pp. 1–6. [Google Scholar]
  18. Takacs, G. Sucker-Rod Pumping Handbook: Production Engineering Fundamentals and Long-Stroke Rod Pumping; Gulf Professional Publishing: Houston, TX, USA, 2015. [Google Scholar]
  19. E Shashi Menon, P. Piping Calculations Manual; McGraw-Hill Education: New York, NY, USA, 2005. [Google Scholar]
  20. Diop, S.; Fliess, M. Nonlinear observability, identifiability, and persistent trajectories. In Proceedings of the 30th IEEE Conference on Decision and Control, Brighton, UK, 11–13 December 1991; pp. 714–719. [Google Scholar]
  21. Isidori, A. Nonlinear Control Systems; Springer: Berlin/Heidelberg, Germany, 1995. [Google Scholar]
  22. Diop, S. Elimination in control theory. Math. Control. Signals Syst. 1991, 4, 17–32. [Google Scholar] [CrossRef]
  23. Mboup, M.; Join, C.; Fliess, M. Numerical differentiation with annihilators in noisy environment. Numer. Algorithms 2009, 50, 439–467. [Google Scholar] [CrossRef] [Green Version]
  24. Rotoplas. Tuboplus: Mejor Tubería, Mejor Agua; Rotoplas: Mexico City, Mexico, 2018. [Google Scholar]
  25. Begovich, O.; Pizano-Moreno, A.; Besançon, G. Online implementation of a leak isolation algorithm in a plastic pipeline prototype. Lat. Am. Appl. Res. 2012, 42, 131–140. [Google Scholar]
Figure 1. Proportion of water loss in surveyed cities (leakage rate).
Figure 1. Proportion of water loss in surveyed cities (leakage rate).
Sensors 21 08035 g001
Figure 2. Discretization of the pipeline with two arbitrarily located leaks.
Figure 2. Discretization of the pipeline with two arbitrarily located leaks.
Sensors 21 08035 g002
Figure 3. Schematic diagram of the pipeline’s prototype.
Figure 3. Schematic diagram of the pipeline’s prototype.
Sensors 21 08035 g003
Figure 4. Pressure heads H i n and H o u t .
Figure 4. Pressure heads H i n and H o u t .
Sensors 21 08035 g004
Figure 5. Flow rates Q i n and Q o u t .
Figure 5. Flow rates Q i n and Q o u t .
Sensors 21 08035 g005
Figure 6. Estimation of leak positions.
Figure 6. Estimation of leak positions.
Sensors 21 08035 g006
Figure 7. Estimation of leak magnitudes.
Figure 7. Estimation of leak magnitudes.
Sensors 21 08035 g007
Figure 8. Pressure heads H i n and H o u t (2nd experiment).
Figure 8. Pressure heads H i n and H o u t (2nd experiment).
Sensors 21 08035 g008
Figure 9. Flow rate Q i n and Q o u t (2nd experiment).
Figure 9. Flow rate Q i n and Q o u t (2nd experiment).
Sensors 21 08035 g009
Figure 10. Estimation of leak positions (2nd experiment).
Figure 10. Estimation of leak positions (2nd experiment).
Sensors 21 08035 g010
Figure 11. Estimation of leak magnitudes (2nd experiment).
Figure 11. Estimation of leak magnitudes (2nd experiment).
Sensors 21 08035 g011
Table 1. Pipeline’s main parameters.
Table 1. Pipeline’s main parameters.
ParameterSymbolValueUnits
Pipeline length L r 68.2[m]
Upstream to valve n 1 z 1 16.8[m]
Upstream to valve n 2 z 2 33.3[m]
Upstream to valve n 3 z 3 49.8[m]
Internal diameter ϕ 6.271 × 10 2 [m]
Pipe roughness ϵ 7 × 10 6 [m]
Friction factor τ 1.66 × 10 2 [dimensionless]
Pressure wave speedb358[m/s]
Gravity accelerationg 9.8 [m/s 2 ]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Navarro-Díaz, A.; Delgado-Aguiñaga, J.-A.; Begovich, O.; Besançon, G. Two Simultaneous Leak Diagnosis in Pipelines Based on Input–Output Numerical Differentiation. Sensors 2021, 21, 8035. https://doi.org/10.3390/s21238035

AMA Style

Navarro-Díaz A, Delgado-Aguiñaga J-A, Begovich O, Besançon G. Two Simultaneous Leak Diagnosis in Pipelines Based on Input–Output Numerical Differentiation. Sensors. 2021; 21(23):8035. https://doi.org/10.3390/s21238035

Chicago/Turabian Style

Navarro-Díaz, Adrián, Jorge-Alejandro Delgado-Aguiñaga, Ofelia Begovich, and Gildas Besançon. 2021. "Two Simultaneous Leak Diagnosis in Pipelines Based on Input–Output Numerical Differentiation" Sensors 21, no. 23: 8035. https://doi.org/10.3390/s21238035

APA Style

Navarro-Díaz, A., Delgado-Aguiñaga, J. -A., Begovich, O., & Besançon, G. (2021). Two Simultaneous Leak Diagnosis in Pipelines Based on Input–Output Numerical Differentiation. Sensors, 21(23), 8035. https://doi.org/10.3390/s21238035

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