Next Article in Journal
Numerical Simulation on Hydraulic Characteristics of Nozzle in Waterjet Propulsion System
Next Article in Special Issue
Fault Diagnosis of the Blocking Diesel Particulate Filter Based on Spectral Analysis
Previous Article in Journal
Experimental Study on Spray Breakup in Turbulent Atomization Using a Spiral Nozzle
Previous Article in Special Issue
Generalized Proportional Model of Relay Protection Based on Adaptive Homotopy Algorithm Transient Stability
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evolutionary Observer Ensemble for Leak Diagnosis in Water Pipelines

by
A. Navarro
1,*,†,
J. A. Delgado-Aguiñaga
2,†,
J. D. Sánchez-Torres
3,†,
O. Begovich
4,† and
G. Besançon
5,†
1
Escuela de Ingeniería y Ciencias, Tecnológico de Monterrey, Av. General Ramón Corona 2514, Zapopan C.P. 45138, Jalisco, 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, Jalisco, Mexico
3
OPTIMA Lab, Departamento de Matemáticas y Física, ITESO, Periférico Sur Manuel Gómez Morín 8585, Tlaquepaque C.P. 45604, Jalisco, Mexico
4
CINVESTAV Guadalajara, Av. del Bosque 1145, Col. El Bajío, Zapopan C.P. 45019, Jalisco, Mexico
5
Université Grenoble Alpes, CNRS, Grenoble INP, Institute of Engineering Université Grenoble Alpes, GIPSA-lab, 38000 Grenoble, France
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Processes 2019, 7(12), 913; https://doi.org/10.3390/pr7120913
Submission received: 30 September 2019 / Revised: 20 November 2019 / Accepted: 22 November 2019 / Published: 3 December 2019
(This article belongs to the Special Issue Optimization for Control, Observation and Safety)

Abstract

:
This work deals with the Leak Detection and Isolation (LDI) problem in water pipelines based on some heuristic method and assuming only flow rate and pressure head measurements at both ends of the duct. By considering the single leak case at an interior node of the pipeline, it has been shown that observability is indeed satisfied in this case, which allows designing an observer for the unmeasurable state variables, i.e., the pressure head at leak position. Relying on the fact that the origin of the observation error is exponentially stable if all parameters (including the leak coefficients) are known and uniformly ultimately bounded otherwise, the authors propose a bank of observers as follows: taking into account that the physical pipeline parameters are well-known, and there is only uncertainty about leak coefficients (position and magnitude), a pair of such coefficients is taken from a search space and is assigned to an observer. Then, a Genetic Algorithm (GA) is exploited to minimize the integration of the square observation error. The minimum integral observation error will be reached in the observer where the estimated leak parameters match the real ones. Finally, some results are presented by using real-noisy databases coming from a test bed plant built at Cinvestav-Guadalajara, aiming to show the potentiality of this method.

1. Introduction

Fluid transport is a significant issue in the world today. Currently, cities are continually demanding utilities, including drinking water, the distribution of oil products, the treatment of wastewater, etc., and pipelines are predominantly used to do this. The pipeline networks have increased the growth and comfort of society. Nevertheless, there is also a constant risk (in particular, for fuel pipelines) that accidents, environmental pollution or economic losses may occur if the fluid spreads through leaks. In this context, several critical incidents have recently occurred within Mexico, such as San Martín Texmelucan, Puebla in 2010, and more recently in the Tuxpan-Tula poly-duct in the municipality of Tlahuelilpan, Hidalgo in 2019, where many people died as a result of an explosion caused by illegal fuel extraction. On the other hand, according to the National Water Committee (CONAGUA) [1], about 40% of drinking water is lost due to leakage. Although there are entirely different explanations for each problem, both can be solved by using similar techniques.
The scientific community has paid attention to that problem and has proposed several methodologies for monitoring and supervision purposes in order to avoid losses and accidents (see, e.g., [2,3,4,5,6,7,8,9,10,11]). In particular, in Begovich et al. [2], a LDI algorithm based on Billman and Isermann [3] has been implemented and tested with accurate results and based on steady-state conditions, which increase the convergence time in the leak parameter estimation process. The proposal in Verde et al. [5] deals with the location of multiple leaks in a pipeline. The key to the leak detector, which should operate in quasi-real-time, is a family of parameterized transient models for all scenarios in the pipeline. In this case, the equivalence in the steady-state of a leak at a position with two leaks allows obtaining the family of dynamic models. Then, to estimate the specific parameter of the leak, an off-line identification process is performed.
Likewise, a multi-leak diagnostic scheme has been suggested in Delgado-Aguiñaga et al. [4] based on Kalman observers. In general, it considers a model-based approach for detecting and isolating several non-concurrent leaks. The method modifies the nonlinear model for each new leakage event. Thus, it is an extension of the single-leak isolation problem. Although this scheme shows acceptable results, the complexity of computation increases as an additional leak occurs. In Rubio Scola et al. [12], the authors presented the development of a nonlinear state observer to locate a blockage in a pipeline. The technique uses a mathematical model derived from the equations of the water hammer together with the method of finite differences for its solution, providing a suitable location for the blockage. Besides, concerning the implementation problem, a recent algorithm based on the extended Kalman filter Delgado-Aguiñaga and Begovich [10] has successfully identified a leak in an aqueduct in Guadalajara, Mexico. A posterior study estimated that approximately 130 million liters of drinking water had been lost in this incident.
There are also other methods with successful application. For example, the approach presented in Ostapkowicz [6] uses a pressure wave method, and Liu et al. [11] presented a system based on acoustic waves. A hybrid approach based on a real-time transient simulation system, and a negative pressure wave method is proposed in Zhang et al. [7]. In the last reference, the authors argued that the most likely future development in pipeline leak detection and location tends to be the use of two or more different methods. Finally, Tian et al. [8] proposed an algorithm to locate leaks based on the pressure difference profile along the pipeline. It considers the effect of the static pressure increases at the leakage point.
On the other hand, analytical redundancy methods (the technique of several model-based methods) have demonstrated to be useful to improve the precision, reliability, and performance of a system. Notably, in the field of fault detection and isolation, the attention on this class of methods has increased lately in several topics, such as robotics Lyu et al. [13], control theory Chouchane et al. [14], diagnosis system Lunze [15], and the application of evolutionary algorithms and neural networks to fault diagnosis Witczak [16]. In particular, several works dealing the leak diagnosis problem in Water Distribution Networks (WDN) have also been proposed on the basis of genetic algorithms. In Vitkovsky et al. [17], a technique in conjunction with the inverse transient method is used to detect leaks and friction factors. Additionally, in [18], a model calibration process is formulated as an nonlinear optimization problem that is solved by using a genetic algorithm. Case studies are presented to demonstrate how the integrated approach is applied to water leak detection.
The framework previously stated encourages researchers to propose new model-based approaches that can be used in combination with other methods and thus contribute to the development of a robust leak diagnostic tool for single pipelines on the basis of analytical redundancy model.
By relying on an observability property, fulfilled for the single leak case, our approach considers building an observer ensemble together with a genetic algorithm to minimize the observation error and, in this way, estimate the leak parameters, i.e., position and magnitude. The extended Luenberger observer has been chosen to estimate the internal state variable (the pressure at the leak point). Such an observer is exponentially stable only if the parameters of the model are known. Otherwise, the observation error is, at last, uniformly ultimately bounded. Then, if only leak position and magnitude are the unknown parameters (the rest of the pipeline mathematical model parameters are well-known), it is possible to design a bunch of observers, each with different values of leak position and magnitude (the search space). Thus, the best estimation of the leak parameters provided by the observer ensemble is the one that gives the minimum residual. Now, the potential of the genetic algorithm could be exploited to find the best estimation of such parameters.
The paper is organized as follows. Section 2 provides the mathematical model. Section 3 describes the Leak Detection and Isolation scheme. Section 4 presents some successful experimental results. Finally, in Section 5, some conclusions and future work are discussed.

2. Pipeline Mathematical Model

The pipeline model is classically derived under the following assumptions: the pipeline is considered to be straight without any fitting and without slope; the fluid is slightly compressible; the duct wall is slightly deformable; and the convective velocity changes are negligible. Likewise, the pipeline cross-section area and fluid density are constant. Then, the Partial Differential Equations (PDE) governing the fluid transient response, can be written as Roberson et al. [19]:
Momentum Equation
Q ( z , t ) t + g A r H ( z , t ) z + μ Q ( z , t ) Q ( z , t ) = 0
Continuity Equation
H ( z , t ) t + b 2 g A r Q ( z , t ) z = 0
where Q is 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 r is the cross-section area [ m 2 ] ; b is the pressure wave speed in the fluid [ m / s ] ; μ = f ( Q ) / 2 ϕ A r , where ϕ is the inner diameter [ m ] and f is the friction factor; and the rest of physical parameters are computed as in Delgado-Aguiñaga et al. [20] considering a constant water temperature of 20 C . The dynamics in Equations (1) and (2) is fully defined by related pairs of initial and boundary conditions.
Leak model: Furthermore, one leak arbitrarily located at point z ( 0 , L ) (where L is the total length of the pipeline), can be modeled as follows Roberson et al. [19] (see Figure 1):
Q l = λ H l
where the constant λ is function of the orifice area and the discharge coefficient (for simplicity, the λ coefficient is referred as “leak magnitude” from now on); Q l is the flow through the leak; and H l is the head pressure at the leak point Navarro et al. [21].
This leak produces a discontinuity in the system. Furthermore, due to the law of mass conservation, Q l must satisfy the next relation:
Q 2 = Q 1 + Q l
where Q 1 and Q 2 are the flows before and after of the leak point, respectively.
Friction model: In modern pipes (pipes with a relative roughness usually less than 1 × 10 3 ), it is difficult to reach a complete turbulence zone (i.e., the zone where friction factor is almost constant, see Figure 2).
Therefore, a friction factor deemed as a constant value could yield a poor mathematical model. For this reason, in the present work, the friction factor is calculated by using the well-known Swamee–Jain equation Brkić [22], Swamee and Jain [23]:
f ( Q ) = 0.25 log 10 ϵ 3.7 D + 5.4 R e 0.9 2
which is suitable for flow regime in the transition zone (as occurs in plastic pipelines) and where ϵ 0.000001 , 0.05 [m] is the roughness height, R e 5000 , 10 8 is the Reynolds number given by
R e = Q D v A
and v is the kinematic viscosity [m 2 /s].

Spatial Discretization of the Modeling Equations

In order to obtain a finite dimensional model from (1) and (2), such PDE’s are discretized with respect to the spatial variable z, as in Verde [24], Besançon et al. [25], by using the following relationships:
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 H i , Q i stand for H ( z i , t ) , Q ( z i , t ) , and n the number of pipeline sections. Assuming only one partition in the pipeline, as shown in Figure 1, z i ( i = 1 , 2 ) becomes the distance from upstream to the point of the leak and from the point of the leak to downstream, respectively. Notice that Δ z = z 1 and z 2 = L Δ z . The leak position is assumed to be Δ z ( 0 , L ) in this description. Applying the approximations in (6) and (7) to equations (1) and (2) together with (3), we get:
x ˙ 1 x ˙ 2 x ˙ 3 = A r g Δ z ( x 2 u 1 ) μ 1 x 1 x 1 b 2 A r g Δ z ( x 3 x 1 + λ x 2 ) A r g L Δ z ( u 2 x 2 ) μ 2 x 3 x 3
Here, the state vector is defined as x = [ x 1 x 2 x 3 ] T = [ Q 1 H 2 Q 2 ] T , the input vector is u = [ u 1 u 2 ] T = [ H 1 H 3 ] T , and the pressure output vector is y = [ x 1 x 3 ] T = [ Q 1 Q 2 ] T , μ i = f ( Q i ) / 2 ϕ A r with i = 1 , 2 . It is worth noting that H 2 represents the pressure head at the leak point. This value is impossible to measure since the leak position is not known “a priori”, but this value could be observed because, for the system (8), the observability property is fulfilled, as seen in the next section.
Notice that the mathematical model in (8) assumes a straight pipe without loss of generality, as, even if the pipe is not straight, it is possible to obtain an Equivalent Straight Length (ESL) of the pipe. This is done by considering losses due to each “non-straight element” (i.e., fitting). The equivalent straight pipe L e can be calculated as Mott [26]:
L e = L r + D j = i n K j f
where L r stands for the pipeline physical length [m] measured between the sensors placed at the ends of the pipeline, K j is the fitting loss coefficient for the jth fitting, and n the total number of the pipeline fittings.

3. LDI Scheme Approach

The leak diagnosis process (the task of determining the magnitude λ and location Δ z of the leak) proposed in this work is carried out by the design of a bank of observers together with a genetic algorithm method whose selection rule is to minimize the integration error of each observer.
Since the observability property of the system (8) is fulfilled, it is possible to design an extended Luenberger observer to estimate H 2 . Such an observer is exponentially stable only if the parameters of the model ( A r , g, b, L, μ 1 , μ 2 , λ , and Δ z , in (8)) are known; otherwise, the observation error will be uniformly ultimately bounded. Then, if only leak position ( Δ z ) and magnitude ( λ ) are the unknown parameters (the rest of the pipeline mathematical model parameters are known), it is possible to design a bunch of observer, s each with different values of λ and Δ z , i.e., search space. Thus, the best leak position and leak magnitude estimation of the ensemble is the one that gives the minimum residual. Now, the potential of the genetic algorithm could be exploited to find the best estimation of such parameters.
The minimum integral observation error will be reached when the leak position and magnitude match the real ones.

3.1. Extended Luenberger Observer for MIMO Systems

First, let us consider that the space-state representation given by (8) can be rewritten in compact form:
x ˙ = f ( x , u ) y = h ( x )
with the state x R 3 , the input u ( t ) R 2 , and the output h ( x ) R 2 (with two components, h 1 and h 2 ). Then, the observability is guaranteed by invertibility of the following map (where L f denotes the Lie derivative):
Y = y 1 y ˙ 1 y 2 = h 1 L f h 1 h 2 = x 1 A r g Δ z ( x 2 u 1 ) μ 1 x 1 x 1 x 3
which is in fact uniform in u. If one considers x 1 | x 1 | = x 1 2 (for unidirectional flow), such a map induces the following rank observability condition:
r a n k ( Y ( x ) x ) = 1 0 0 2 μ 1 x 1 A r g Δ z 0 0 0 1 = 3
such that the system in (10) is locally observable and satisfies the condition for the extended Luenberger observer design for MIMO systems Birk and Zeitz [27]. Then, the system (10) can be rewritten to obtain its additive output nonlinearity form:
x ˙ = A x + φ ( x ) + ϕ ( u ) + ξ ( y ) y = C x
where matrices A, φ ( x ) , ϕ ( u ) , ξ ( y ) , and C are given by:
A = 0 a 1 Δ z 0 a 2 Δ z 0 a 2 Δ z 0 a 1 L Δ z 0 φ ( x ) = 0 a 2 λ Δ z x 2 0
ϕ ( u ) = a 1 Δ z u 1 0 a 1 L Δ z u 2 ξ ( y ) = μ y 1 y 1 0 μ y 2 y 2
C = 1 0 0 0 0 1
where a 1 = ˙ A r g and a 2 = ˙ b 2 A r g . Here, the additive output nonlinearity can be built from direct measurements and thus compensated in the observer design (as it was originally proposed by the authors in Krener and Isidori [28], J. Krener and Respondek [29], for instance). The representation (13) admits an observer of the form:
x ^ ˙ = A x ^ + φ ( x ^ ) + ϕ ( u ) + ξ ( y ) + K ( y C x ^ ) y ^ = C x ^
By defining the estimation error as e = x x ^ , the dynamic error model is:
e ˙ = ( A K C ) e + φ ( x , x ^ )
where φ ( x , x ^ ) = 0 a 2 λ Δ z ( x 2 x 2 ^ ) 0 T .
In this equation, e = 0 is clearly an equilibrium. In addition, K can be chosen so that ( A K C ) is Hurwitz (since ( A , C ) is observable), that is for any Q = Q T > 0 , there exists P = P T satisfying the Lyapunov equation P ( A K C ) + ( A K C ) T P = Q .
Notice then that φ ( x , x ^ ) satisfies a linear growth bound φ ( x , x ^ ) γ e on the region of operation, and thus if γ < ζ m i n ( Q ) / 2 ζ m a x ( P ) , where ζ m i n ( · ) and ζ m a x ( · ) denote the minimum and maximum eigenvalue of a matrix, one can conclude that the origin of the error system in (13) is exponentially stable (see Khalil [30] for more details).

3.2. Genetic Algorithm

In computer science, the genetic algorithm is an algorithm inspired in the biological evolution that offers a suitable solution to optimization and search problems. The GA is a recursive algorithm where the aptest individuals of a population are discovered, emphasized, and recombined (reproduction) in order to produce descendants of the next generation. Six phases are considered in a genetic algorithm:
  • Initial population. The first step of the process is to obtain a set of individuals randomly generated (initial population) in which each such individual is a candidate solution to a problem.
    As in the natural selection process, an individual is characterized by a set of parameters called genes. The solutions, known as chromosomes, are genes joined into a string.
    In a genetic algorithm, the chromosome is represented using a string in terms of an alphabet. Binary encoding (a string of ones and zeros) is the most common procedure to encode the genes in a chromosome.
  • Fitness function. The fitness function defines how close an individual fits a solution and, in this way, determines which will reproduce and survive into the next generation. The fitness function provides a “fitness score” to each individual. Such “fitness score” settles the probability that an individual will be selected for reproduction.
  • Selection. In this phase, the chromosomes in the population that more closely match the fitness function are selected. The solution (chromosome) that fits better during iteration is more likely to be selected to reproduce.
  • Crossover. After the selection process, a recombination of the chromosomes is carried out in order to generate a new population for the next iteration. Crossover is applied to randomly pair strings and exchanges the sub-sequences before and after to create two offspring.
  • Mutation. To preserve diversity within the population and prevent premature convergence, a mutation process is done. The mutation operation is applied after the crossover process is achieved. For each bit in a subset of the new offspring, some of their genes can be mutated with a low probability. This is done by flipping some bits in the chromosome bit string.
  • Termination. If the algorithm does not produce new populations that are sufficiently different from the previous generation, the algorithm has converged. Then, the genetic algorithm has found a set of solutions to the problem, and it is terminated. Such a criteria is predefined by the designer according to specific constraints. In particular, for the proposed scheme, the algorithm is kept in operation during the entire experiment since a permanent pipeline monitoring is assumed no matter if a leak is occurring or not.
Some final remarks. The GA discussed thus far uses a binary string to encode the genes in a chromosome. Nevertheless, for many engineering problems, it is nearly impossible to represent the solution with a binary encoding (as in the case of the leak diagnosis). Thus, it is necessary to make a mapping between binary and real numbers before the process (crossover and mutation) is started. Such a mapping is built in two stages: First, a function m = ψ ( r ) , which assigns a real number r of a given search interval r 0 , R m a x to a closed set of integer number, m 0 , 2 n , is defined:
ψ ( r ) = r o u n d ( 2 n 1 ) r R m a x
where r o u n d function rounds each element to the nearest integer, R m a x stands for the maximum real number of the interval, and n is a natural number. Naturally, the longer n is, the more accurate the mapping will be. Then, once m is obtained, the process to convert m into a binary number follows immediately.
To return from binary to a real number and, in this way, apply the fitness function and selection processes, the inverse mapping ψ 1 is applied.
Figure 3 depicts the flowchart of GA (for more information, see Schmitt [31], Mitchell [32], Whitley [33]).

3.3. Evolutionary Ensemble of Observers

At this point, let us analyze an observer with the structure of (14), in the presence of parameter errors. First, one can consider that the leak parameters ( λ and Δ z ) match with real values. Then, if a parametric error appears (i.e., there is a deviation between the current λ or Δ z and the real ones), the observer structure given by (14) changes in the following form:
x ^ ˙ = ( A + δ ( A ) ) x ^ a 2 0 λ Δ z + δ λ Δ z 0 x ^ 2 + a 1 Δ z + δ a 1 Δ z 0 0 0 0 a 1 L Δ z + δ a 1 L Δ z u + ξ ( y ) + K ( y y ^ ) y ^ = C x ^
where the symbol δ ( ) denotes a parametric deviation from the real value. This means that δ λ is the difference of λ as a sum error (i.e., the wrong value λ w could be separated as follows: λ w = λ + δ ( λ ) , where λ is the real value). Then, (17) yields an error model in the following form:
e ˙ = ( A K C ) e + φ ( x , x ^ ) + δ ( A ) x ^ + 0 a 2 δ ( λ Δ z ) 0 x ^ 2
From (18), we have that
δ ( A ) x ^ + 0 a 2 δ ( λ Δ z ) 0 x 2 ^
changes the equilibrium point of (15) away from 0. Thus, a residual r ( t ) is induced in the output error y C x ^ when an error presented in λ or Δ z and this residual r ( t ) is zero only when the λ and Δ z match the real values. The present work exploits this system property (as long as the rest of the parameters are properly tuned). It is interesting to see that the residuals do not depend on the input signal u ( t ) .
Hence, it is possible to design an ensemble of observers, each with different values of λ and Δ z , such that the residuals of individual observers (namely, r 1 , r 2 ,..., r n ) go away from zero as long as these values do not match with the real ones. Figure 4 depicts this idea.
If the residual is minimized somehow, then it is possible to estimate the correct values of the leak parameters. The present work proposes a GA that searches the correct values of λ and Δ z by minimizing the integral squared residual of the ensemble of observers. In this GA, the population is built with the combination (cartesian product) of the possibles values of λ and Δ z . The following optimization problem is considered. Find Δ z , λ such that:
m i n i m i z e t 0 t 0 + T r ( t ) 2 d t
where the residual vector is defined as:
r ( t ) = r 1 r 2 r n
Here, r i ( t ) = y ( t ) y ^ i ( t ) is the residual of the ith observer and n is the cross product between the number of the position and magnitude that we are looking for, i.e., n = l × m . Here, l and m are the number of position and magnitude, respectively, arbitrarily proposed by the designer. This work suggests to set l = m such that each value of the variables Δ z i and λ i belongs to a set of equally separated values, i.e., Δ z i { Δ z m i n , 2 Δ z m i n , , m Δ z m i n = Δ z m a x } and λ i { λ m i n , 2 λ m i n , , l λ m i n = λ m a x } . Initial time t 0 can be deleted, as well as window length T.

4. Experimental Results

In this section, the proposed LDI methodology performance is evaluated. To ensure the method’s effectiveness, three experiments were carried out by using some database coming from the pilot plant built at Cinvestav-Guadalajara. Three different leaks were emulated by opening three electro-valves located at diverse positions along the pilot pipe.
The section continues as follows: First, a brief description of the pilot pipe is given, and then the experimental setup is stated. Finally, each experiment is described in detail.

4.1. Experimental Setup

The pilot plant referred above was manufactured with PP-R (Polypropylene Copolymer Random), and it is equipped with: two flow rate transducers (FT) and two pressure-head transducers (PT) installed at both ends of the pipe. In addition, a 5 HP centrifugal pump was connected to a variable-frequency driver fixed at 50 Hz (to experiment on flow-rate variation effects over the LDI scheme); and three valves were used to emulate the leak effect. Figure 5 depicts a schematic diagram of the pipeline prototype. More information can be found in Begovich et al. [2]. The main parameters of the pipeline system are shown in Table 1. The sampling rate was 300 Hz satisfying the Courant’s condition for system (8).
As mentioned above, the mathematical model used to derive the LDI algorithm given by (8) assumes a straight pipeline, and the prototype is not straight. Therefore, it is necessary to find an Equivalent Straight Length (ESL) for this prototype. Expression (9) is useful for this purpose (for more information, see Navarro et al. [34]). Table 2 establishes the ESL between sensors (see Figure 5) and also from upstream to each valve.
By substituting those pipeline parameters shown in Table 1 into the matrices A, φ ( x ) , and ϕ ( u ) , ξ ( y ) in (13), one can see that the observability matrix in (12) has full rank if z f ( 0 , L r ) , Torres et al. [35]. The experiments started in a free-leak condition, and at time t l 40 [ s ] , a leak was induced by opening Valves 1–3, respectively. Each leak was detected once the following threshold was triggered:
| Q i n ( t ) Q o u t ( t ) | > δ
where δ = 1.55 × 10 4 [ m 3 / s ] was chosen considering the noise variance of the flow rate measurements in order to avoid false alarms. The ensemble of observers was turned on with the parameters shown in Table 1. The integration error of each residual was computed in a time-window of T = 22 [ s ] in (19), where T = t i t i 1 , with i N and t 0 the time of leak occurrence. This procedure means that, once the leak was detected, executions of the GA were performed with period T = 22 [ s ] (selection, crossover, and mutation). In Figures 7, 8, 10, 11, 13 and 14, this scheduled-process is indicated by: t 1 , t 2 , t 3 , t 4 , t 5 and t 6 . Therefore, the integral in (19) becomes:
m i n i m i z e t i 1 t i r ( t ) 2 d t
Notice that the selected values of the leak parameters, Δ z and λ , were held at time t i 1 and reflected up to the next GA-process at time t i .
In other words, the time-integration-window t i served for the election of Δ z and λ used in next iteration t i + 1 and so on. In the period t 1 , random values of Δ z and λ were used.
The initial conditions of the observers were fixed as follows: x ^ 1 0 = Q ^ i n 0 and x ^ 3 0 = Q ^ o u t 0 were equal to the mean values of the input and output flows in steady state in free-leak condition. x ^ 2 0 = H ^ 2 0 , the pressure head at the pipeline middle point, was calculated at distance Δ z ^ = L / 2 . Finally, λ ^ i (i.e., the leak magnitude of each observer) were fixed as zero, since the pipeline was not leaking. Table 3 summarizes those values.
To minimize the integration error in (22), the following considerations were made: the initial population vector of the algorithm was fixed by the cross product of two sets, both formed by uniformly spaced pipe sections Δ z i { Δ z m i n , 2 Δ z m i n , , m Δ z m i n = L } and λ i { λ m i n , 2 λ m i n , , l λ m i n = λ m a x } , where Δ z m i n = 3.507 [ m ] and λ m i n = 6.697 × 10 6 [ m 5 / 2 / s ] .
Remark 1.
It is worth noting that λ m a x was chosen such that the hole induces a flow through a leak 10 % the size of the pipeline nominal flow at most. A leak higher than this percent is considered as a failure (a catastrophic breakdown of the system’s ability to perform a required function under specified operating condition Isermann [36], and this topic goes beyond the scope of this paper).
The S N R (signal-to-noise ratio) of each input and output signal is shown in Table 4. The S N R was calculated as the ratio of the signal power to the background noise Papoulis and Pillai [37]:
S N R = E s 2 σ 2
where E refers to the expected value and σ stands for the standard deviation of the noisy signal.

4.2. Leak Isolation Scheme Results

The proposed scheme was tested by three off-line experiments using some database. First, to ensure the validity of the mathematical model (8) in a free-leak and leak conditions, synthetic data were generated using the ESL parameters (shown in Table 2) and then were compared with their corresponding real data. Some discussions and results are described to demonstrate the Leak Isolation Scheme’s effectiveness.

4.2.1. Leak Case in Valve 1

Initially, results in a leak induced in Valve 1 are shown. Figure 6a depicts the measured pressure head at inlet ( u 1 = H i n ) and outlet ( u 2 = H o u t ) of the pipeline (i.e., the observation input). Figure 6b shows the measured flow upstream ( x 1 = Q i n ) and downstream ( u 1 = H i n ) of the pipe together with their respective synthetic data ( Q ¯ i n and Q ¯ o u t ), generated by (8). As it can be seen, the mathematical model follows the real data in a proper way despite the measurement noise.
Figure 7a,b shows the evolution of the state observer: upstream and downstream flow rate, respectively. Notice that the inlet and outlet flow rate are well estimated after the first integration time, t 1 . This fact shows that the GA chooses the appropriate values of Δ z and λ .
The results of the LDI scheme are depicted in Figure 8a,b, where the leak size and its position estimation are shown. As it can be seen, the leak position in all three cases is well estimated despite signal noise.

4.2.2. Leak Case in Valve 2

Now, results in a leak induced in Valve 2 are shown. As before, Figure 9a depicts the measured pressure head at inlet ( u 1 = H i n ) and outlet ( u 2 = H o u t ) of the pipeline. Figure 9b shows the measured flow upstream ( x 1 = Q i n ) and downstream ( u 1 = H i n ) of the pipe together with their respective synthetic data ( Q ¯ i n and Q ¯ o u t ). In this second case, the mathematical model follows the real data in a proper way, as well. Figure 10a,b depicts the evolution of the state observer: upstream and downstream flow rate, respectively. Figure 11a,b depicts the leak size and its position estimation.

4.2.3. Leak Case in Valve 3

Finally, the results in a leak induced in Valve 3 are shown. Figure 12a depicts the measured pressure head at inlet ( u 1 = H i n ) and outlet ( u 2 = H o u t ) of the pipeline. Figure 12b shows the measured flow upstream ( x 1 = Q i n ) and downstream ( u 1 = H i n ) of the pipe together with their respective synthetic data ( Q ¯ i n and Q ¯ o u t ). In the same way as before, the mathematical model follows the real data in a proper way. Figure 13a,b depicts the evolution of the state observer: upstream and downstream flow rate, respectively. Figure 14a,b depicts the leak size and its position estimation.

5. Conclusions and Future Work

The present work deals with the leak isolation problem (to estimate the position and magnitude of a leak in a water pipeline) using a heuristic method. The proposed scheme assumes only flow and pressure sensors at the upstream and downstream of the pipeline. Exploiting the fact that the pipeline mathematical model is observable, it is possible to design an observer where the observation dynamic error system is exponentially stable only if the leak size and location parameters are known and, at last, uniform ultimate boundedness in other cases. In this way, the authors propose to design a bank of observers together with a Genetic Algorithm. This scheme allows for minimizing the integral observation error. Then, the minimum integral observation error will be reached when the leak position and magnitude match the real ones.
The approach presented in the paper estimated the leak position and its intensity in a very acceptable way. This is corroborated since both downstream and upstream flow rates were well estimated in the presence of noise. It means that the genetic algorithm chooses the real values of the λ (size of the leak) and Δ z (leak location). The use of the integration error as a fitness function helped obtain a good estimation despite the presence of noise.
As future work, this algorithm will be refined to achieve better performance. Moreover, the authors will explore the possibility of extending the present approach to two or more leaks. Finally, the algorithm will be tested to locate leaks in a hydraulic network.

Author Contributions

A.N. proposed the initial idea. A.N., J.A.D.-A. and J.D.S.-T. developed the research, analyzed the results, and wrote the article together. O.B. and G.B. provided critical review.

Funding

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

Acknowledgments

The author would like to thank Tecnologico de Monterrey for the financial support and the facilities granted for fulfillment of this research article. All databases were obtained during the PhD studies of the first author at Cinvestav-Guadalajara.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. CONAGUA. Sectorización en Redes de Agua Potable; Technical report; Semarnat: Mexico City, Mexico, 2007.
  2. Begovich, O.; Pizano, A.; Besançon, G. Online implementation of a leak isolation algorithm in a plastic pipeline prototype. Lat. Am. Appl. Res. 2012, 57, 131–140. [Google Scholar]
  3. Billman, L.; Isermann, R. Leak Detection Methods for Pipelines. Automatica 1987, 23, 381–385. [Google Scholar] [CrossRef]
  4. 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]
  5. Verde, C.; Molina, L.; Torres, L. Parameterized transient model of a pipeline for multiple leaks location. J. Loss Prev. Process. Ind. 2014, 29, 177–185. [Google Scholar] [CrossRef]
  6. Ostapkowicz, P. Leakage detection from liquid transmission pipelines using improved pressure wave technique. Eksploatacja i Niezawodność Maintenance Reliability 2014, 16, 9–16. [Google Scholar]
  7. Zhang, T.; Tan, Y.; Zhang, X.; Zhao, J. A novel hybrid technique for leak detection and location in straight pipelines. J. Loss Prev. Process. Ind. 2015, 35, 157–168. [Google Scholar] [CrossRef]
  8. Tian, S.; Du, J.; Shao, S.; Xu, H.; Tian, C. A study on a real-time leak detection method for pressurized liquid refrigerant pipeline based on pressure and flow rate. Appl. Therm. Eng. 2016, 95, 462–470. [Google Scholar] [CrossRef]
  9. Santos-Ruiz, 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]
  10. Delgado-Aguiñaga, J.A.; Begovich, O. Water Leak Diagnosis in Pressurized Pipelines: A Real Case Study. In Modeling and Monitoring of Pipelines and Networks; Verde, C., Torres, L., Eds.; Springer International Publishing: Cham, Switzerland, 2017; Volume 7, pp. 235–262. [Google Scholar] [CrossRef]
  11. Liu, C.; Li, Y.; Fang, L.; Xu, M. New leak-localization approaches for gas pipelines using acoustic waves. Measurement 2019, 134, 54–65. [Google Scholar] [CrossRef]
  12. Rubio Scola, I.; Besancon, G.; Georges, D.; Guillén, M.; Dulhoste, J.F.; Santos, R. On the design of a nonlinear state observer for the location of a blockage in a pipeline. In Proceedings of the XII International Congress on Numerical Methods in Engineering and Applied Sciences, Pampatar, Magarita Island, Venezuela, 24–26 March 2014. [Google Scholar]
  13. Lyu, P.; Liu, S.; Lai, J.; Liu, J. An analytical fault diagnosis method for yaw estimation of quadrotors. Control Eng. Pract. 2019, 86, 118–128. [Google Scholar] [CrossRef]
  14. Chouchane, A.; Khedher, A.; Nasri, O.; Kamoun, A. Diagnosis of Partially Observed Petri Net Based on Analytical Redundancy Relationships. Asian J. Control 2019. [Google Scholar] [CrossRef]
  15. Lunze, J. A method to get analytical redundancy relations for fault diagnosis. IFAC-PapersOnLine 2017, 50, 1006–1012. [Google Scholar] [CrossRef]
  16. Witczak, M. Advances in model-based fault diagnosis with evolutionary algorithms and neural networks. Int. J. Appl. Math. Comput. Sci. 2006, 16, 85–99. [Google Scholar]
  17. Vitkovsky, J.P.; Simpson, A.R.; Lambert, M.F. Leak Detection and Calibration Using Transients and Genetic Algorithms. J. Water Resour. Plan. Manag. 2000, 126, 262–265. [Google Scholar] [CrossRef] [Green Version]
  18. Wu, Z.Y.; Sage, P. Water Loss Detection via Genetic Algorithm Optimization-based Model Calibration. In Proceedings of the Water Distribution Systems Analysis Symposium 2006, Cincinnati, OH, USA, 27–30 August 2006; pp. 1–11. [Google Scholar] [CrossRef] [Green Version]
  19. Roberson, J.A.; Cassidy, J.J.; Chaudhry, M.H. Hydraulic Engineering; Wiley: Hoboken, NJ, USA, 1998. [Google Scholar]
  20. Delgado-Aguiñaga, J.; Begovich, O.; Besançon, G. Exact-differentiation-based leak detection and isolation in a plastic pipeline under temperature variations. J. Process. Control 2016, 42, 114–124. [Google Scholar] [CrossRef]
  21. Navarro, A.; Begovich, O.; Sánchez Torres, J.D.; Besancon, G. Real-Time Leak Isolation Based on State Estimation with Fitting Loss Coefficient Calibration in a Plastic Pipeline: Real-Time Leak Isolation based on State Estimation. Asian J. Control 2016. [Google Scholar] [CrossRef]
  22. Brkić, D. Review of explicit approximations to the Colebrook relation for flow friction. J. Pet. Sci. Eng. 2011, 77, 34–48. [Google Scholar] [CrossRef] [Green Version]
  23. Swamee, P.K.; Jain, A.K. Explicit equations for pipe-flow problems. J. Hydraul. Div. 1976, 102, 657–664. [Google Scholar]
  24. Verde, C. Accommodation of multi-leak location in a pipeline. Control Eng. Pract. 2005, 13, 1071–1078. [Google Scholar] [CrossRef]
  25. 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 European Control Conference, ECC’07, Kos, Greece, 2–5 July 2007; pp. 5666–5670. [Google Scholar]
  26. Mott, R.L. Applied Fluid Mechanics, 6th ed.; Prentice-Hall: Upper Saddle River, NJ, USA, 2006. [Google Scholar]
  27. Birk, J.; Zeitz, M. Extended Luenberger observer for non-linear multivariable systems. Int. J. Control 1988, 47, 1823–1836. [Google Scholar] [CrossRef]
  28. Krener, A.J.; Isidori, A. Linearization by output injection and nonlinear observers. Syst. Control Lett. 1983, 3, 47–52. [Google Scholar] [CrossRef]
  29. J. Krener, A.; Respondek, W. Nonlinear Observer with Linearizable Error Dynamics. SIAM J. Control Optim. 1985, 23. [Google Scholar] [CrossRef]
  30. Khalil, H.K. Nonlinear Systems, 2nd ed.; Prentice-Hall: Upper Saddle River, NJ, USA, 1996. [Google Scholar]
  31. Schmitt, L.M. Theory of Genetic Algorithms. Theor. Comput. Sci. 2001, 259, 1–61. [Google Scholar] [CrossRef] [Green Version]
  32. Mitchell, M. An Introduction to Genetic Algorithms; MIT Press: Cambridge, MA, USA, 1998. [Google Scholar]
  33. Whitley, D. A genetic algorithm tutorial. Stat. Comput. 1994, 4, 65–85. [Google Scholar] [CrossRef]
  34. Navarro, A.; Begovich, O.; Besançon, G.; Dulhoste, J. Real-time leak isolation based on state estimation in a plastic pipeline. In Proceedings of the IEEE International Conference on Control Applications (CCA), Denver, CO, USA, 28–30 September 2011; pp. 953–957. [Google Scholar] [CrossRef]
  35. 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]
  36. Isermann, R. Fault Diagnosis Systems an Introduction from Fault Detection to Fault Tolerance; Springer: Heidelberg/Berlin, Germany, 2006. [Google Scholar]
  37. Papoulis, A.; Pillai, S.U. Probability, Random Variables, and Stochastic Processes, 4th ed.; McGraw Hill: Boston, MA, USA, 2002. [Google Scholar]
Figure 1. Discretization of the pipeline with a leak Q l .
Figure 1. Discretization of the pipeline with a leak Q l .
Processes 07 00913 g001
Figure 2. Moody chart.
Figure 2. Moody chart.
Processes 07 00913 g002
Figure 3. Genetic algorithm block diagram.
Figure 3. Genetic algorithm block diagram.
Processes 07 00913 g003
Figure 4. Evolutionary ensemble of observer block diagram.
Figure 4. Evolutionary ensemble of observer block diagram.
Processes 07 00913 g004
Figure 5. Schematic diagram of the pipeline prototype.
Figure 5. Schematic diagram of the pipeline prototype.
Processes 07 00913 g005
Figure 6. Model validation for a leak induced in Valve 1: (a) pressure head at inlet an outlet of the pipeline u = [ u 1 u 2 ] T = [ H i n H o u t ] T (input signals); and (b) synthetic and real flow rates at inlet ( Q ¯ i n and Q i n ) and outlet ( Q ¯ o u t and Q o u t ) of the pipe.
Figure 6. Model validation for a leak induced in Valve 1: (a) pressure head at inlet an outlet of the pipeline u = [ u 1 u 2 ] T = [ H i n H o u t ] T (input signals); and (b) synthetic and real flow rates at inlet ( Q ¯ i n and Q i n ) and outlet ( Q ¯ o u t and Q o u t ) of the pipe.
Processes 07 00913 g006
Figure 7. Flow rate estimations at the ends of the pipeline: (a) flow rate at inlet of the pipe ( Q i n ) and its estimation ( Q ^ i n ); and (b) flow rate at outlet of the pipe ( Q o u t ) and its estimation ( Q ^ o u t ).
Figure 7. Flow rate estimations at the ends of the pipeline: (a) flow rate at inlet of the pipe ( Q i n ) and its estimation ( Q ^ i n ); and (b) flow rate at outlet of the pipe ( Q o u t ) and its estimation ( Q ^ o u t ).
Processes 07 00913 g007
Figure 8. Leak parameters: (a) lambda parameter estimation λ ^ concerning Valve 1 (leak magnitude); and (b) leak position estimation Δ z concerning Valve 1.
Figure 8. Leak parameters: (a) lambda parameter estimation λ ^ concerning Valve 1 (leak magnitude); and (b) leak position estimation Δ z concerning Valve 1.
Processes 07 00913 g008
Figure 9. Model validation for a leak induced in Valve 2: (a) pressure head at inlet an outlet of the pipeline u = [ u 1 u 2 ] T = [ H i n H o u t ] T (input signals); and (b) synthetic and real flow rates at inlet ( Q ¯ i n and Q i n ) and outlet ( Q ¯ o u t and Q o u t ) of the pipe.
Figure 9. Model validation for a leak induced in Valve 2: (a) pressure head at inlet an outlet of the pipeline u = [ u 1 u 2 ] T = [ H i n H o u t ] T (input signals); and (b) synthetic and real flow rates at inlet ( Q ¯ i n and Q i n ) and outlet ( Q ¯ o u t and Q o u t ) of the pipe.
Processes 07 00913 g009
Figure 10. Flow rate estimations at the ends of the pipeline: (a) flow rate at inlet of the pipe ( Q i n ) and its estimation ( Q ^ i n ); and (b) flow rate at outlet of the pipe ( Q o u t ) and its estimation ( Q ^ o u t ).
Figure 10. Flow rate estimations at the ends of the pipeline: (a) flow rate at inlet of the pipe ( Q i n ) and its estimation ( Q ^ i n ); and (b) flow rate at outlet of the pipe ( Q o u t ) and its estimation ( Q ^ o u t ).
Processes 07 00913 g010
Figure 11. Leak parameters: (a) lambda parameter estimation λ ^ concerning Valve 2 (leak magnitude); and (b) leak position estimation Δ z concerning Valve 2.
Figure 11. Leak parameters: (a) lambda parameter estimation λ ^ concerning Valve 2 (leak magnitude); and (b) leak position estimation Δ z concerning Valve 2.
Processes 07 00913 g011
Figure 12. Model validation for a leak induced in Valve 3: (a) pressure head at inlet an outlet of the pipeline u = [ u 1 u 2 ] T = [ H i n H o u t ] T (input signals); and (b) synthetic and real flow rates at inlet ( Q ¯ i n and Q i n ) and outlet ( Q ¯ o u t and Q o u t ) of the pipe.
Figure 12. Model validation for a leak induced in Valve 3: (a) pressure head at inlet an outlet of the pipeline u = [ u 1 u 2 ] T = [ H i n H o u t ] T (input signals); and (b) synthetic and real flow rates at inlet ( Q ¯ i n and Q i n ) and outlet ( Q ¯ o u t and Q o u t ) of the pipe.
Processes 07 00913 g012
Figure 13. Flow rate estimations at the ends of the pipeline: (a) flow rate at inlet of the pipe ( Q i n ) and its estimation ( Q ^ i n ); and (b) flow rate at outlet of the pipe ( Q o u t ) and its estimation ( Q ^ o u t ).
Figure 13. Flow rate estimations at the ends of the pipeline: (a) flow rate at inlet of the pipe ( Q i n ) and its estimation ( Q ^ i n ); and (b) flow rate at outlet of the pipe ( Q o u t ) and its estimation ( Q ^ o u t ).
Processes 07 00913 g013
Figure 14. Leak parameters: (a) lambda parameter estimation λ ^ concerning Valve 3 (leak magnitude); and (b) leak position estimation Δ z concerning Valve 3.
Figure 14. Leak parameters: (a) lambda parameter estimation λ ^ concerning Valve 3 (leak magnitude); and (b) leak position estimation Δ z concerning Valve 3.
Processes 07 00913 g014
Table 1. Pipeline prototype parameters.
Table 1. Pipeline prototype parameters.
ParameterSymbolValue
Length between PT sensors L r 68.84 m
Internal diameter ϕ 6.54 × 10 2 m
Friction factorf 1.635 × 10 2
Gravity accelerationg9.81 m/s 2
Pressure wave speedb341 m/s
Fitting loss coefficient sum j = i n K j 9.09 [-]
Table 2. Distances in ESL.
Table 2. Distances in ESL.
Estimated in ESL TermsSymbolValue
Between PT sensorsL105.1 m
Upstream to Valve 1 z f 1 30.92 m
Upstream to Valve 2 z f 2 43.64 m
Upstream to Valve 3 z f 3 62.99 m
Table 3. Initial conditions for the observer.
Table 3. Initial conditions for the observer.
EstimatedSymbolValue
Q ^ i n 0 x ^ 1 0 8 × 10 3 [m 3 /s]
H ^ 2 0 x ^ 2 0 12 [m]
Q ^ o u t 0 x ^ 3 0 8 × 10 3 [m 3 /s]
Table 4. Signal-to-noise ratio of the input and output signals.
Table 4. Signal-to-noise ratio of the input and output signals.
VariableSNR
H i n 2.008 × 10 1
H o u t 6.689 × 10 1
Q i n 1.338 × 10 2
H o u t 1.432 × 10 2

Share and Cite

MDPI and ACS Style

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. https://doi.org/10.3390/pr7120913

AMA Style

Navarro A, Delgado-Aguiñaga JA, Sánchez-Torres JD, Begovich O, Besançon G. Evolutionary Observer Ensemble for Leak Diagnosis in Water Pipelines. Processes. 2019; 7(12):913. https://doi.org/10.3390/pr7120913

Chicago/Turabian Style

Navarro, A., J. A. Delgado-Aguiñaga, J. D. Sánchez-Torres, O. Begovich, and G. Besançon. 2019. "Evolutionary Observer Ensemble for Leak Diagnosis in Water Pipelines" Processes 7, no. 12: 913. https://doi.org/10.3390/pr7120913

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