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

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.


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].

•
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].

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. 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  (1) and (2) are fully defined by related pairs of initial and boundary conditions.

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: 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: Sensors 2021, 1, 0 5 of 16 Sec tio n 1 Sec tio n 2 Sec tio n 3 Figure 2. Discretization of the pipeline with two arbitrarily located leaks.
Here Q l 1,2 represent the leaking flows that can be modeled as: 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: Here, Q l 1,2 represent the leaking flows that can be modeled as: 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: Notice that, due to mass conservation, Q l 1,2 must satisfy the next relation: where Q b 1,2 and Q a 1,2 are the flows in an infinitesimal length before and after the leak, respectively.

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]: 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: 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.

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: 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: 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.

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: R 2 is the input vector, and Ψ = [Q in Q out ] 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: . Then, considering an unidirectional flow given by Q i |Q i | = Q 2 i , the extended state representation of (11) can take a form as follows:ẋ where u .
T , and f , g are differentiable vector fields with the following structure: 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.

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: and Clearly, from (13), the output time derivatives depend on the state and input time derivatives, so that we can get: 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: 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.

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: where . This implies that γ(t) can be approximated by the polynomial p m (t) = ∑ m i=0 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), • Transforming Equation (19) into Laplace domain yields: • 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: • Then, to annihilate every a x (x < i), the following operator is subsequently applied to Equation (20): • Finally, the resulting equation (after applying Equations (20)-(22)) is: • Now, multiplying both sides of the above equation by s −(m+1) yields a polynomial taking the following form: • Using the Cauchy rule for iterated integrals, the time domain expression for a i in Equation (24) yields: 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.

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 inputoutput 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 (26) 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 : 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 : 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 : 1 , u 2 , y 1 , . . . , y 1 , y 2 ,ẏ 2 , ) (31) 1 , u 2 ,u 2 , y 1 , . . . , y 1 , y 2 , . . . , y 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: 1 , u 2 ,u 2 , y 1 , . . . , y (4) 1 , y 2 , . . . , y 2 ) (33) 1 , u 2 , .., u 2 , y 1 , . . . , y 1 , y 2 . . . , y 2 ) 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) .

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.

Pilot Pipeline Description
The layout of the pilot pressurized water pipe of Cinvestav Guadalajara, which is 68.  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.

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: 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 in − Q out | > δ, 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 in = u 1 and H out = u 2 ). As it can be seen, the LDI algorithm begins close to 65 [s].

H in 6
H out ? Following with the same idea, Figure 5 shows the inlet and outlet flows (system output Q in = y 1 and Q out = y 2 ). It is clear that, due to the physical nature of the leak phenomena, the inlet flow is separated from the outlet flow:  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.  Notice that for the LDI problem, the estimation of the leak parameters of both leaks 350 is enough, but as mentioned before, it is also possible to recover the remaining states of  To better illustrate the effectiveness of the method, a second experiment is exposed.

354
The experiment setup was exactly the same as in section 4.2.1 except that two leaks are 355 now induced in valve n • 1 and valve n • 2 (see Fig. 3). Figure 8 shows the time evolution  To better illustrate the effectiveness of the method, a second experiment is exposed.

354
The experiment setup was exactly the same as in section 4.2.1 except that two leaks are 355 now induced in valve n • 1 and valve n • 2 (see Fig. 3). Figure 8 shows the time evolution 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).

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, δ, H out ? Figure 8. Pressure heads H in and H out (2nd experiment). Figure 9 shows the corresponding flow rate evolution at upstream and downstream.  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.  Figure 9 shows the corresponding flow rate evolution at upstream and downstream.

360
As stated above, due to the physical nature of the leak phenomena, the inlet flow is 361 separated from the outlet flow.

362
Q in -Q out - Figure 9. Flow rate Q in and Q out (2nd experiment).
As performed above, once the algorithm starts, the input and output time deriva-  Figure 9. Flow rate Q in and Q out (2nd experiment).
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 in = 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 370 (29a) and (29b). These results are shown in Figure 11.

372
The simultaneous-leak detection and isolation problem is currently an open and 373 challenging problem. Even though extensive research in the field is currently in progress, 374 to the best of our knowledge, only simulation results have been reported until now. One 375 of the reasons is that the distinguishability of two (or more) simultaneous leaks depends 376 on the input.

377
In this work, an LDI methodology for two-simultaneous leak detection and isolation 378 has been proposed based on an algebraic observer that uses the injection the inputs Continuing with the algorithm, the leak magnitudes are computed with Equations (31) and (32). These results are shown in Figure 11. Continuing with the algorithm, the leak magnitudes are computed with equations 370 (29a) and (29b). These results are shown in Figure 11.

372
The simultaneous-leak detection and isolation problem is currently an open and 373 challenging problem. Even though extensive research in the field is currently in progress, 374 to the best of our knowledge, only simulation results have been reported until now. One 375 of the reasons is that the distinguishability of two (or more) simultaneous leaks depends 376 on the input.

377
In this work, an LDI methodology for two-simultaneous leak detection and isolation 378 has been proposed based on an algebraic observer that uses the injection the inputs

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.