Professional Documents
Culture Documents
1. Introduction & Besançon, 2017; Puig & Ocampo-Martínez, 2015; Santos-Ruiz et al.,
2018; Soldevila, Fernandez-Canti, Blesa, Tornil-Sin, & Puig, 2017;
Pipeline systems have become important because they are the Verde, Torres, & González, 2016). In Billman and Isermann (1987),
cheapest way to transport fluids as drinkable water, oil derivatives, nonlinear adaptive observers are proposed for fault detection through
waste water and others. However, leaks can cause economical losses, a correlation technique for a single leak, but the leak localization
people death and environmental pollution. Recently, in Mexico, the results are very sensitivity to uncertainties. In Begovich et al. (2012), a
illegal fuel extraction problem has worsened and severe consequences real-time implementation of such a method is presented with accurate
have been experienced. results. The authors highlight some practical issues especially those
On the other hand, there is also a great interest in safeguarding the related to the friction coefficient in plastic pipelines. In Navarro et al.
available water resources that are increasingly scarce. According to the (2017), a two-step-based leak diagnosis scheme has been proposed.
National Water Commission (CONAGUA, for its Spanish acronym), the In the first step, a fitting loss coefficient calibration is performed. In
loss of drinking water due to leaks reaches up to 40% in the distribution the second one, the leak parameters identification is carried out by
systems. This loss is counteracted with the overuse of natural water using an EKF. Such a method highlights the fact that a constant friction
sources. coefficient introduces deviation in the leak parameters estimation espe-
In the literature, there is a large amount of leakage diagnosis strate- cially for smooth pipelines (plastic pipelines). Extensions to branching
gies, (Allidina & Benkherouf, 1988; Begovich, Pizano, & Besançon, pipeline configurations are also considered in Verde et al. (2016),
2012; Billman & Isermann, 1987; Delgado-Aguiñaga & Begovich, 2017; based on a set of observers together with a logic detection function
Delgado-Aguiñaga, Begovich, & Besançon, 2016; Delgado-Aguiñaga & for detect and locate a leak in a pipeline with an outflow at a branch
Besançon, 2018; Delgado-Aguiñaga, Besançon, Begovich, & Carvajal, junction considered to be known. Similarly in Delgado-Aguiñaga and
2016; Fernandes, da Silva, & Fileti, 2018; Navarro, Begovich, Sánchez, Besançon (2018), the case of leaks in a branched pipeline system is
∗ Corresponding author.
E-mail address: jorge.delgado@uvmnet.edu (J.A. Delgado-Aguiñaga).
https://doi.org/10.1016/j.conengprac.2021.104888
Received 18 March 2021; Received in revised form 9 June 2021; Accepted 6 July 2021
Available online 19 July 2021
0967-0661/© 2021 Elsevier Ltd. All rights reserved.
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
considered. First, a leak region is identified on the basis of a residual (c) because the design is based on the LMI approach, additional
analysis between the nominal system and the leaky one and, relying convergence constraints based on the Lyapunov theory can be
on this, two EKFs are designed. The first one estimates the pressure added as proposed in Pletschen and Diepold (2017). Those aspects
head at the inner nodes, and the second one is fed with the estimates are the main differences with respect to the EKF widely used in
of the first one and it can finally estimate the leak coefficients. This leak diagnosis: (Navarro et al., 2017; Santos-Ruiz et al., 2018;
method can be extended to a general case of a branched pipeline Torres, Besançon, Georges, Navarro, & Begovich, 2011) for single
configuration. On the other hand, successful implementations have leak cases and Delgado-Aguiñaga, Besançon, Begovich, and Car-
been reported (Delgado-Aguiñaga & Begovich, 2017), where a leak was vajal (2016) and Rojas and Verde (2020) for multi-leak problems,
identified in a water pipeline located in Guadalajara, México. In the but also for real life applications (Delgado-Aguiñaga & Begovich,
case of water distribution networks, one can quote (Cugueró-Escofet, 2017), for instance, and finally,
Puig, & Quevedo, 2017; Puig & Ocampo-Martínez, 2015; Soldevila (d) a quantitative analysis evidences that the LPV Kalman filter out-
et al., 2017) for instance. Other methods also exist and are based performs the classical EKF. This fact, according to the authors’
on different approaches as acoustic methods (Fernandes et al., 2018), experience, is decisive to reduce the cost of repairing procedures
sliding mode observers (Delgado-Aguiñaga, Begovich, & Besançon, as it is discussed in Delgado-Aguiñaga and Begovich (2017),
2016), pressure waves (Liu, Li, Fang, Han, & Xu, 2017) and among where it is presented a real life leak identification in an aqueduct
others. that is located in Guadalajara city in Mexico, on the basis of
The problem of multiple leaks has also been studied. In Verde an EKF. In that experience, the accurate estimation of the leak
(2005), the case of two leaks is considered presenting results in sim- position was the main problem what in turn motivated the present
ulation. The proposed approach can only be successfully applied if work.
a new leak appears at the down side of the previous one, once the
first one has been found. In Delgado-Aguiñaga, Besançon, Begovich, The structure of the paper is the following: Section 2 presents the
and Carvajal (2016), the multi-leak problem is addressed by using an classical flow transient model. Section 3 introduces the LPV repre-
EKF as state observer. The method consists in developing a multi-leak sentation of the flow transient model. Then, Section 4 presents the
diagnosis scheme by expanding the pipeline model description at each LPV Kalman filter design. Some experimental results are presented
new leak occurrence and by considering the leak parameters of the in Section 5 by using some database coming from a pilot plant built
previous identifications as constant variables. at Cinvestav-Guadalajara that show the effectiveness of the proposed
In the preceding overview, many of the leak diagnosis approaches, method. Finally, Section 6 presents some conclusions and perspectives
that use real data, depend on a pre-tuning process either involving for future research.
signal processing regarding to noise or on parameter tuning in order to
guarantee some convergence rate. However, in practical applications 2. Pipeline transient flow model
those pre-processes often cannot be done in a desired manner, com-
promising the final diagnostic. According to the authors’ experience, The transient response of a liquid circulating through a pipeline
the Kalman filter is a powerful tool to face the leak diagnosis problem is described by a couple of quasilinear hyperbolic Partial Differential
in real situations (see Delgado-Aguiñaga & Begovich, 2017), but it Equations (PDEs), known as the Water Hammer Equations (WHEs), that
depends on the tuning of covariance matrices of measure and process are obtained by mass and energy balances (Chaudhry, 2014; Roberson,
noises. Cassidy, & Chaudhry, 1998):
This paper introduces a Kalman filter for Linear Parameter Varying
• Momentum Equation
(LPV ) systems to be used in leak diagnosis in pipelines. Through the
polytopic representation of the LPV system, the Kalman filter design 𝜕𝑄(𝑧, 𝑡) 𝜕𝐻(𝑧, 𝑡)
+ 𝑔𝐴𝑟 + 𝜇𝑄(𝑧, 𝑡) |𝑄(𝑧, 𝑡)| = 0 (1)
can be done offline via solving a set of Linear Matrix Inequalities LMIs 𝜕𝑡 𝜕𝑧
in the vertices models. This procedure also allows the conditions that • Continuity Equation
establish the convergence rate to be provided on the basis of Lyapunov
techniques improving the classical EKF approach where such a guar-
𝜕𝐻(𝑧, 𝑡) 𝑏2 𝜕𝑄(𝑧, 𝑡)
+ = 0. (2)
𝜕𝑡 𝑔𝐴𝑟 𝜕𝑧
antee is not provided by design, as discussed in Pletschen and Diepold
(2017). The LPV framework has become a well-accepted approach to where 𝑄 is the flow rate [m3 ∕s], 𝐻 is the pressure head [m], 𝑧 ∈ (0, 𝐿)
extend LTI schemes for control and estimation to non-linear systems is the length coordinate [m], 𝐿 is the equivalent straight length of the
via the non-linear embedding of the non-linearities in the varying pipeline (Mataix, 1986), 𝑡 ∈ (0, ∞) is the time coordinate [s], 𝑔 is the
parameters (avoiding linearization) and LMIs (as e.g. see Kazemi & gravity acceleration [m∕s2 ], 𝐴𝑟 is the cross-section area [m2 ], 𝑏 is the
Jabali, 2018; Marx, Ichalal, Ragot, Maquin, & Mammar, 2019; Morato, pressure wave speed in the fluid [m∕s], 𝜇 = ϝ(𝑄)∕2𝜙𝐴𝑟 , where 𝜙 is
Sename, Dugard, & Nguyen, 2019). Note that, in the last decades, the inner diameter [m] and ϝ(𝑄) is the friction coefficient calculated
several control and estimation strategies have been designed on the as in Swamee and Jain (1976) that depends, among other things, on
basis of LMIs, because it is not difficult to formulate those problems the flow:
by using an LMI framework. In addition, many solvers can be used 0.25
for solving efficiently those LMIs in Matlab environment (Rotondo, ϝ(𝑄𝑖 ) = [ ( )]2 (3)
𝜀 5.74
Sánchez, Nejjari, & Puig, 2019). log10 +
3.7𝜙 𝑅𝑒(𝑄𝑖 )0.9
Thus, the main contribution of this work is the introduction of a
Kalman filter for LPV systems for leak diagnosis in pipelines. The main where 𝜀 is the roughness of the pipe in [m], Re is the Reynolds number
advantages of the proposed approach, compared with the standard [dimensionless], given by 𝑅𝑒(𝑄𝑖 ) = 𝑄𝑖 𝜙∕𝜈𝐴𝑟 , where 𝜈 is the kine-
solution in pipeline leak diagnosis based on EKF, are as follows: matic viscosity of water in [m2 ∕s], which can be computed following
the procedure reported in Delgado-Aguiñaga, Begovich, and Besançon
(a) the nonlinearities are embedded in the obtained LPV representa- (2016).
tion avoiding to use on-line linearization, PDEs (1)–(2) are obtained considering the following assumptions:
(b) the proposed LPV Kalman filter not only avoids the need of
the successive linearization, but the calculation of the Kalman • the pipe is straight and without slope,
filter gains that is done in an off-line procedure while only the • the fluid is slightly compressible,
polytopic interpolation of the vertices gains are required on-line, • the wall of the pipe is slightly deformable,
saving time; • the convective changes in the velocity are negligible and
2
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
• the cross section area of the pipe, the diameter and density of the that can be also written in compact form as:
fluid are constant.
𝑥̇ = 𝑓 (𝑥) + 𝑔(𝑥)𝑢
(9)
On the other hand, the fluid dynamics are subject to initial condi- 𝑦 = ℎ(𝑥)
tions 𝐻(𝑧, 0), 𝑄(𝑧, 0) that correspond to the initial steady-state flows The state estimator uses the following measured variables
and related boundary conditions on 𝐻 or 𝑄. More precisely, boundary 𝑦 = [𝑄1 𝑄2 ]𝑇 =∶ [𝑦1 𝑦2 ]𝑇 and 𝑢 = [𝐻1 𝐻3 ]𝑇 =∶ [𝑢1 𝑢2 ]𝑇 , that correspond
conditions for (1) and (2) are here considered to be:
to the flows and pressure head at the upstream/downstream extremes
𝐻(0, 𝑡) = 𝐻𝑖𝑛 (𝑡) and 𝐻(𝐿, 𝑡) = 𝐻𝑜𝑢𝑡 (𝑡). (4) of the pipeline. Here 𝑓 , 𝑔, ℎ are given by:
𝑔𝐴
A closed-form solution of these governing Eqs. (1) and (2) is not ⎡ − 𝑥 𝑟 𝑥2 − 𝜇1 𝑥21 ⎤ ⎡ 𝑔𝐴𝑟
0 ⎤
available. However, several approximate solutions have been devel- ⎢ 𝑏2
4
√ ⎥ ⎢ 𝑥4 ⎥
⎢ − 𝑔𝐴 𝑥 (𝑥3 − 𝑥1 + 𝑥5 𝑥2 ) ⎥ ⎢ 0 0 ⎥
𝑓 (𝑥) = ⎢ ⎥ ; 𝑔 (𝑥) = ⎢ ⎥
oped as: method of characteristics, finite-difference methods (explicit 𝑟 4 𝑔𝐴
𝑔𝐴𝑟 0 − 𝐿−𝑥𝑟
⎢ 𝐿−𝑥4 2
𝑥 − 𝜇2 𝑥23 ⎥ ⎢ ⎥
or implicit), finite-element method, and so on. A detailed description 4
⎢ 0 ⎥ ⎢ 0 0 ⎥
of such solution methods can be found in Chaudhry (2014). ⎢ ⎥ ⎢ ⎥
In particular, in order to obtain a pair of nonlinear Ordinary Dif- ⎣ 0 ⎦ ⎣ 0 0 ⎦
ferential Equations (ODEs) keeping time as continuous variable, the ℎ (𝑥) = 𝐶𝑥
finite-difference method is applied, as shown in Delgado-Aguiñaga,
Besançon, Begovich, and Carvajal (2016). By using such an ODE-model- and 𝐶 ∈ R2 is the output matrix defined as follows taking into account
based of the flow dynamics, the single leak case can be represented by that 𝑦 = [𝑄1 𝑄2 ]𝑇
[ ]
using only one interior node in which the leak effect can be introduced 1 0 0 0 0
by means of the following expression: 𝐶= (10)
0 0 1 0 0
√
𝑄𝑙 = 𝑡𝑙 𝜆 𝐻𝑙 (5) Since the extended system (9) satisfies the rank observability condi-
tion (Besançon, 2007; Torres et al., 2011), the leak diagnosis problem
where 𝑄𝑙 is the leak flow rate in [m3 ∕s], 𝐻𝑙 is the pressure head at leak
can be solved via a state estimation scheme. In particular, the variables
point in [m], 𝜆 is the leak coefficient in [m5∕2 ∕s] associated, among
𝑥̂ 4 and 𝑥̂ 5 provide estimations of the leak position and leak magnitude,
other things, to a discharge coefficient 𝐶𝑑 and to the leak cross section
respectively.
area 𝐴𝑙 , respectively. 𝑡𝑙 is the 𝐻𝑒𝑎𝑣𝑖𝑠𝑖𝑑𝑒 unit step function associated
to the leak occurrence at time 𝑡𝑙 . Finally, the resulting finite-difference This nonlinear model can be represented in an LPV form. LPV
description for the single leak case is given by: systems are a particular class of Linear Time-Varying systems (LTV ),
whose time-varying elements 𝜑(𝑘) ∈ 𝛺 can be measured (or estimated).
−𝑔𝐴𝑟 ( )
𝑄̇ 1 = 𝐻2 − 𝐻𝑖𝑛 − 𝜇1 𝑄1 |𝑄1 | LPV systems have already been applied successfully to many control
𝛥𝑧1 and estimation problems as discussed in Rotondo et al. (2019). In
( √ )
−𝑏2 this work, the single leak diagnosis case is addressed by transform-
𝐻̇ 2 = 𝑄2 − 𝑄1 + 𝜆1 𝐻2 (6)
𝑔𝐴𝑟 𝛥𝑧1 ing the nonlinear model (9) into one in the LPV form by means of
−𝑔𝐴𝑟 ( ) the nonlinear embedding method that avoids the linearization proce-
𝑄̇ 2 = 𝐻𝑜𝑢𝑡 − 𝐻2 − 𝜇2 𝑄2 |𝑄2 |
𝛥𝑧2 dure (Kwiatkowski, Boll, & Werner, 2006). By using this method, the
where 𝐻1 = 𝐻𝑖𝑛 (𝑡) and 𝐻3 = 𝐻𝑜𝑢𝑡 (𝑡) denote the boundary conditions, system described by (9) can be rewritten in the LPV form as follows:
𝛥𝑧1 = 𝑧𝑙 − 𝑧0 is the distance between upstream boundary and the
𝑥(𝑡)
̇ = 𝐴(𝜑(𝑡))𝑥(𝑡) + 𝐵𝑑 (𝜑(𝑡))𝑢(𝑡)
position of the leak, and 𝛥𝑧2 = 𝐿 − 𝑧𝑙 is the distance between the leak (11)
𝑦(𝑡) = 𝐶𝑥(𝑡)
position up to downstream boundary. This representation (6) can be
written in compact form as follows: where matrices 𝐴(𝜑(𝑡)) and 𝐵(𝜑(𝑡)) depend on the varying parameters
𝜑(𝑡) as follows
𝜁̇ = 𝜉(𝜁) + 𝜌(𝜁)𝛾
(7)
𝛹 = 𝜗(𝜁) ⎡𝜑1 (𝑡) 𝜑2 (𝑡) 0 𝜑3 (𝑡) 0 ⎤
⎢𝜑 (𝑡) 0 𝜑5 (𝑡) 0 𝜑6 (𝑡)⎥
where 𝜁 = [𝜁1 𝜁2 𝜁3 ]𝑇 = [𝑄1 𝐻2 𝑄2 ]𝑇 ∈ R3 is the state vector, ⎢ 4 ⎥
𝐴(𝜑(𝑡)) = ⎢ 0 𝜑7 (𝑡) 𝜑8 (𝑡) 0 0 ⎥;
𝛾 = [𝐻𝑖𝑛 𝐻𝑜𝑢𝑡 ]𝑇 ∈ R2 is the input vector and 𝛹 = [𝑄𝑖𝑛 𝑄𝑜𝑢𝑡 ]𝑇 ∈ R2 ⎢ 0 0 0 0 0 ⎥
is the output vector for some functions 𝜉, 𝜌 and 𝜗. ⎢ ⎥
⎣ 0 0 0 0 0 ⎦
3
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
leading to a polytope of 2𝓁 vertices, where 𝓁 represents the number of Proposition 1. Given the polytopic LPV system (15), the polytopic LPV
varying parameters and 𝜑 and 𝜑𝑖 are the lower and upper bounds of
𝑖
Kalman filter (18) can be designed if matrices 𝑌 = 𝑌 𝑇 and 𝑊𝑖 (𝑖 =
𝑖th parameter 𝜑, respectively. 1, … , 2𝓁 ) and scalar 𝜔 can be obtained by solving the following optimization
Note that the LPV representation (11) of the extended system (9) is problem
not unique. Here, the selection of structure of 𝐴(𝜑(𝑡)) has been carried
out so that any pair (𝐴(𝜑(𝑡)), 𝐶) obtained by instantiating 𝜑(𝑡) ∈ 𝛺 is min
observable, i.e.: 𝜔,𝑌 =𝑌 𝑇 ,𝑊𝑖
4
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
1
When some scheduling variables are estimated (non-measurable), the sta- Each test is executed in the following way: the pipeline prototype
bility proof and convergence analysis is much more complex. In the literature, is started in a leak-free condition and at time 𝑡𝑙 > 𝑡0 a small leak is
the problem of non-measurable varying parameters is discussed and some induced, i.e., a leak with flow between 2% and 5% of the nominal flow
results already exist (see as e.g. Ichalal, 2010). This issue can be addressed that corresponds with the size range of interest in real applications. The
in formal way in a future research adapting the results for TS Kalman filter leak is detected by a simple mass balance as follows:
presented in Pletschen and Diepold (2017), benefiting from the analogies
between the LPV and TS approaches (Rotondo, Puig, & Nejjari, 2016). |𝑄𝑖𝑛 (𝑡) − 𝑄𝑜𝑢𝑡 (𝑡)| > 𝛿 (31)
5
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
where 𝛿 = 1.55 × 10−4 [m3 ∕s] is the detection threshold, which and an LPV Kalman filters are designed and evaluated. To determine
considers the noise variance of the measurements to avoid false alarms. the vector of initial state 𝑥̂ 0 ∈ R5 , 𝑄̂ 01 (resp. 𝑄̂ 02 ) is obtained as an
Immediately the leak is detected, the identification of its parameters average in free-leak condition in a small time-window. Likewise, a
starts with observer given by (18). Hereinafter, the estimation of leak position 𝑧̂ 0𝑙 ∈ (0 + 𝜚, 𝐿 − 𝜚) is selected arbitrarily, for a reasonably
parameters are presented and compared with those estimated by using
small 𝜚 [m] since for an initial position very close to any end of the
a classical EKF designed as in Delgado-Aguiñaga, Besançon, Begovich,
pipeline (when 𝜚 tends to zero), a numerical problem may occur. Then,
and Carvajal (2016) for the single leak case.
by using the well-known Darcy–Weisbach equation one can compute
5.3.1. Case of a leak at valve 1 the pressure head 𝐻̂ 20 . Finally, 𝜆01 = 0 since the observer (18) starts
Here, a leak is induced by opening the valve 1 at time 𝑡𝑙 ≈ 50 [s], and once the leak is detected by (31). For this first leak case, the initial
a database is obtained from this experimentation. Then, both, an EKF state for both filters is shown in Table 3.
6
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
Table 3
Initial state for both Kalman filters, leak at valve 1.
𝑆𝑡𝑎𝑡𝑒 Value Units
𝑄̂ 01 8.995 × 10−3 [m3 /s]
𝐻̂ 20 14.536 [m]
𝑄̂ 02 8.995 × 10−3 [m3 /s]
𝑧̂ 0𝑙 41.12 [m]
𝜆̂ 0
1
0 [m5∕2 /s]
Table 4
Initial state for both Kalman filters, leak at valve 2.
𝑆𝑡𝑎𝑡𝑒 Value Units
𝑄̂ 01 8.781 × 10−3 [m3 /s]
Fig. 5. Estimation error of the leak position.
𝐻̂ 20 14.423 [m]
𝑄̂ 02
8.781 × 10−3 [m3 /s]
𝑧̂ 0𝑙 41.1 [m]
𝜆̂ 01 0 [m5∕2 /s]
7
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
computed as follows:
√
√
√𝜅−1
√∑
‖𝑒𝑧𝑙 ‖ = √ (𝑒𝑧𝑙 (𝑖))2 𝑗 = 1, … , 𝜅 − 1 (33)
𝑗=1
8
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
Table 6
Error norm for each Filter with noisy and filtered signals.
Leak case ‖𝑒𝑧𝑙 ‖ LPV [m] ‖𝑒𝑧𝑙 ‖ EKF [m] ‖𝑒𝑧𝑙 ‖ F-LPV [m] ‖𝑒𝑧𝑙 ‖ F-EKF [m]
At valve 1 1.29 × 102 2.98 × 102 1.08 × 102 1.37 × 102
At valve 2 1.53 × 102 4.46 × 102 1.25 × 102 4.38 × 102
At valve 3 1.08 × 102 1.37 × 102 0.95 × 102 1.26 × 102
Table 7
Comparison of the performance in computational–execution terms.
Filter leak 1 leak 2 leak 3
LPV 𝑥̄ = 1.86, 𝜎 = 0.09 𝑥̄ = 3.26, 𝜎 = 0.09 𝑥̄ = 2.73, 𝜎 = 0.14
EKF 𝑥̄ = 2.41, 𝜎 = 0.11 𝑥̄ = 3.52, 𝜎 = 0.37 𝑥̄ = 2.94, 𝜎 = 0.08
TRP 22.8% 7.3% 7.1%
DD 180 [s] 250 [s] 200 [s]
9
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
1-. Load a database containing the pressure head and flow rate mea-
surements: 𝐻𝑖𝑛 (𝑘), 𝐻𝑜𝑢𝑡 (𝑘), 𝑄𝑖𝑛 (𝑘) and 𝑄𝑜𝑢𝑡 (𝑘).
alternative to the EKF in real-time pipeline monitoring. In addition, 2-. Define all physical parameters of the pipeline.
the LPV Kalman method does not require the modeling linearization 3-. Compute the initial conditions 𝑥(0). ̂
as the EKF method requires it. The estimation of the leak position 4-. Declare the optimization variables 𝑌 , 𝑃 , 𝜔 and 𝑊𝑖 for 𝑖 = 1, … , 2𝑙 .
provided by the LPV Kalman filter outperforms the one provided by 5-. Compute the matrices 𝐴𝑖 and 𝐵𝑖 for 𝑖 = 1, … , 2𝑙 (at each vertex of
the classical EKF in two of the three cases. This is very important the polytope considering the limits of the scheduling variables). The 𝐴𝑖
since in real life applications, the inaccuracies in the leak position es- and 𝐵𝑖 matrices can be obtained by replacing the following variables
timation can cause additional repairing costs according to the authors’ in the nominal model (11) as follows: (See Table A.8.)
experience, especially for underground pipes for instance. As future 𝑥1𝑚𝑖𝑛 is the smallest value of the vector 𝑄𝑖𝑛 and 𝑥1𝑚𝑎𝑥 is the largest
work, this approach will be tested with data from a real system as it one (for variable 𝑥3 the computation is similar by using 𝑄𝑜𝑢𝑡 . The
could be the SIAPA aqueduct to improve the already successful EKF limits of 𝑥2 are computed as follows: 𝑥2𝑚𝑖𝑛 is equals to the smallest
application (Delgado-Aguiñaga & Begovich, 2017). The case of multiple value of vector 𝐻𝑜𝑢𝑡 + 𝛥𝐻 and 𝑥2𝑚𝑎𝑥 is equal to the largest value of
non-concurrent leaks will also be considered as well as the theoretical vector 𝐻𝑖𝑛 − 𝛥𝐻, 𝛥𝐻 is small and defined by the designer such that
proof of convergence of the LPV Kalman filter considering that some 𝑥2 (𝑡) ∈ (𝐻𝑖𝑛 (𝑡), 𝐻𝑜𝑢𝑡 (𝑡)). Finally The limits of 𝑥4 are computed as follows:
scheduling variables are no measured and extending the results already
existing for TS Kalman filters (Pletschen & Diepold, 2017), benefiting
from the analogies between the LPV and TS approaches (Rotondo et al., Table A.8
2016). Models 𝐴𝑖 in function of the scheduling variables in the different vertices.
Vertex 𝑥1 𝑥2 𝑥3 𝑥4
Declaration of competing interest 1 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑖𝑛
2 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑖𝑛
The authors declare that they have no known competing finan- 3 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑖𝑛
4 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑖𝑛
cial interests or personal relationships that could have appeared to
5 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑎𝑥
influence the work reported in this paper. 6 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑎𝑥
7 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑎𝑥
Acknowledgments 8 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑎𝑥
9 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑎𝑥
10 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑖𝑛
This work was partly supported by CIIDETEC-UVM , and achieved
11 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑖𝑛
during a research stay of the first author at Institut de Robòtica i 12 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑖𝑛
Informàtica Industrial of the Universitat Politècnica de Catalunya, IRI-UPC, 13 𝑥1𝑚𝑎𝑥 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑎𝑥
Barcelona, Spain. 14 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑖𝑛 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑎𝑥
The first author would like to thank deeply Prof. Vicenç Puig for 15 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑖𝑛 𝑥4𝑚𝑎𝑥
16 𝑥1𝑚𝑖𝑛 𝑥2𝑚𝑎𝑥 𝑥3𝑚𝑎𝑥 𝑥4𝑚𝑖𝑛
give him the opportunity to develop this research stay agreed in a
10
J.A. Delgado-Aguiñaga, V. Puig and F.I. Becerra-López Control Engineering Practice 115 (2021) 104888
𝑥4𝑚𝑖𝑛 is equal to 𝛥𝐿 and 𝑥4𝑚𝑎𝑥 is equal to 𝐿−𝛥𝐿, 𝛥𝐿 is small and defined Fernandes, L. B., da Silva, Flávio V., & Fileti, A. M. F. (2018). Diagnosis of gas leaks
by the designer such that 𝑥4 (𝑘) ∈ (0, 𝐿). by acoustic method and signal processing. In M. R. Eden, M. G. Ierapetritou, &
G. P. Towler (Eds.), Computer aided chemical engineering: Vol. 44, 13th international
6-. Define the covariance matrices of measure and process noises: =
symposium on process systems engineering (pp. 667–672). Elsevier, http://dx.doi.org/
𝑇 > 0 and = 𝑇 > 0, = 1∕2 . 10.1016/B978-0-444-64241-7.50106-3.
7-. Define the LMIs as shown in (22). Ichalal, D. (2010). State estimation of Takagi–Sugeno systems with unmeasurable
8-. Solve those LMIs by using the solver lmilab. premise variables. IET Control Theory & Applications, 4(11), 897–908. http://dx.
9-. Compute the values of 𝑊𝑖 . doi.org/10.1049/iet-cta.2009.0054.
Kazemi, M. H., & Jabali, M. B. A. (2018). State-feedback control of robot manipulators
10-. Compute the observer gain’s 𝛤𝑖𝑇 = 𝑌 −1 𝑊𝑖 . using polytopic LPV modelling with fuzzy-clustering. Ain Shams Engineering Journal,
9(4), 2841–2848. http://dx.doi.org/10.1016/j.asej.2018.03.001.
A.2. On-line procedure Kwiatkowski, A., Boll, M., & Werner, H. (2006). Automated generation and assessment
of affine LPV models. In Proceedings of the 45th IEEE conference on decision and
control (pp. 6690–6695), https://doi.org/10.1109/CDC.2006.377768.
11-. If a leak is detected then: for 𝑡 = 𝑡𝑙𝑒𝑎𝑘 compute 𝜓𝑖′ 𝑠 variables by
Liu, C., Li, Y., Fang, L., Han, J., & Xu, M. (2017). Leakage monitoring research and
using (17) and apply the observer (18). design for natural gas pipelines based on dynamic pressure waves. Journal of Process
12-. Save and plot the state variables. End. Control, 50, 66–76. http://dx.doi.org/10.1016/j.jprocont.2016.12.003.
Marx, B., Ichalal, D., Ragot, J., Maquin, D., & Mammar, S. (2019). Unknown input
Remark 4. The observer gains’ (one of each vertex) can be computed observer for LPV systems. Automatica, 100(4), 67–74. http://dx.doi.org/10.1016/j.
automatica.2018.10.054.
and saved in the first training. The observer will work well for other Mataix, C. (1986). Mecánica de fluidos y máquinas hidráulicas. Ed. Del Castillo.
different single leak cases by using the observer gains’ previously saved. Morato, M. M., Sename, O., Dugard, L., & Nguyen, M. Q. (2019). Fault estimation
This is one of the main advantages of this LPV formulation versus the for automotive electro-rheological dampers: LPV-based observer approach. Control
EKF which becomes it into a feasible leak diagnosis strategy for online Engineering Practice, 85(4), 11–22. http://dx.doi.org/10.1016/j.conengprac.2019.01.
005.
implementations.
Navarro, A., Begovich, O., Sánchez, J., & Besançon, G. (2017). Real-time leak isolation
based on state estimation with fitting loss coefficient calibration in a plastic
References pipeline. Asian Journal of Control, 19(1), 255–265. http://dx.doi.org/10.1002/asjc.
1362, asjc.1362.
Alcala, E., Puig, V., Quevedo, J., & Escobet, T. (2018). Gain-scheduling LPV control Ostertag, E. (2011). Mono- and multivariable control and estimation: Linear, quadratic and
for autonomous vehicles including friction force estimation and compensation LMI methods. Springer, http://dx.doi.org/10.1007/978-3-642-13734-1.
mechanism. IET Control Theory Applications, 12(12), 1683–1693. http://dx.doi.org/ Pletschen, N., & Diepold, K. J. (2017). Nonlinear state estimation for suspension con-
10.1049/iet-cta.2017.1154. trol applications: A Takagi-Sugeno Kalman filtering approach. Control Engineering
Allidina, A. Y., & Benkherouf, A. (1988). Leak detection and location in gas pipelines. Practice, 61, 292–306. http://dx.doi.org/10.1016/j.conengprac.2016.05.013.
IEE Proceedings D (Control Theory and Applications), 135(2), 142–148. Puig, V., & Ocampo-Martínez, C. (2015). Decentralised fault diagnosis of large-scale
Begovich, O., Pizano, A., & Besançon, G. (2012). Online implementation of a systems: Application to water transport networks. In 26th international workshop on
leak isolation algorithm in a plastic pipeline prototype. Latin American Applied principles of diagnosis (pp. 99–104).
Research, 57(6), 131–140, http://bibliotecadigital.uns.edu.ar/scielo.php?script=sci_ Roberson, J. A., Cassidy, J. J., & Chaudhry, M. H. (1998). Hydraulic engineering. Wayne
arttext&pid=S0327-07932012002200005&nrm=iso. Anderson.
Besançon, G. (2007). Nonlinear observers and applications, Vol. 363. Springer, http: Rojas, J., & Verde, C. (2020). Adaptive estimation of the hydraulic gradient for the
//dx.doi.org/10.1007/978-3-540-73503-8. location of multiple leaks in pipelines. Control Engineering Practice, 95, Article
Billman, L., & Isermann, R. (1987). Leak detection methods for pipelines. Automatica, 104226. http://dx.doi.org/10.1016/j.conengprac.2019.104226.
23, 381–385. http://dx.doi.org/10.1016/0005-1098(87)90011-2. Rotondo, D., Puig, V., & Nejjari, F. (2016). On the analogies in control design of
Chaudhry, M. H. (2014). Applied hydraulic transients. Springer-Verlag New York, http: non-linear systems using LPV and Takagi-Sugeno models. In 2016 5th International
//dx.doi.org/10.1007/978-1-4614-8538-4. Conference on Systems and Control (ICSC) (pp. 225–230). http://dx.doi.org/10.1109/
Cugueró-Escofet, M. À., Puig, V., & Quevedo, J. (2017). Optimal pressure sensor ICoSC.2016.7507072.
placement and assessment for leak location using a relaxed isolation index: Rotondo, D., Sánchez, H., Nejjari, F., & Puig, V. (2019). Análisis y diseño de
Application to the Barcelona water network. Control Engineering Practice, 63, 1–12. sistemas lineales con parámetros variantes utilizando LMIs. Revista Iberoamericana
http://dx.doi.org/10.1016/j.conengprac.2017.03.003. de Automática e Informática industrial, 16(1), 1–14. http://dx.doi.org/10.4995/riai.
Delgado-Aguiñaga, J. A., & Begovich, O. (2017). Modeling and monitoring of pipelines 2018.10436.
and networks. In Cristina Verde, & Lizeth Torres (Eds.), Water leak diagnosis Santos-Ruiz, I., Bermúdez, J. R., López-Estrada, F. R., Puig, V., Torres, L., & Delgado-
in pressurized pipelines: A real case study (pp. 235–262). Springer International Aguiñaga, J. A. (2018). Online leak diagnosis in pipelines using an EKF-based
Publishing, http://dx.doi.org/10.1007/978-3-319-55944-5_12, Ch.. and steady-state mixed approach. Control Engineering Practice, 81, 55–64. http:
Delgado-Aguiñaga, J. A., Begovich, O., & Besançon, G. (2016). Exact-differentiation- //dx.doi.org/10.1016/j.conengprac.2018.09.006.
based leak detection and isolation in a plastic pipeline under temperature Soldevila, A., Fernandez-Canti, R. M., Blesa, J., Tornil-Sin, S., & Puig, V. (2017). Leak
variations. Journal of Process Control, 42, 114–124. http://dx.doi.org/10.1016/j. localization in water distribution networks using Bayesian classifiers. Journal of
jprocont.2016.04.005. Process Control, 55, 1–9. http://dx.doi.org/10.1016/j.jprocont.2017.03.015.
Delgado-Aguiñaga, J. A., & Besançon, G. (2018). EKF-based leak diagnosis schemes Swamee, P. K., & Jain, A. K. (1976). Explicit equations for pipe-flow problems. Journal
for pipeline networks. IFAC-PapersOnLine, 51(24), 723–729. http://dx.doi.org/10. of the Hydraulics Division, 102(5), 657–664. http://dx.doi.org/10.1061/JYCEAJ.
1016/j.ifacol.2018.09.655. 0004542.
Delgado-Aguiñaga, J. A., Besançon, G., Begovich, O., & Carvajal, J. E. (2016). Multi-leak Torres, L., Besançon, G., Georges, D., Navarro, A., & Begovich, O. (2011). Examples
diagnosis in pipelines based on Extended Kalman Filter. Control Engineering Practice, of pipeline monitoring with nonlinear observers and real-data validation. In 8th
49, 139–148. http://dx.doi.org/10.1016/j.conengprac.2015.10.008. international multi-conference on systems, signals and devices.
Duan, G.-R., & Yu, H.-H. (2013). LMIs in control systems: Analysis, design and applications. Verde, C. (2005). Accommodation of multi-leak location in a pipeline. Control Engi-
Taylor & Francis, http://dx.doi.org/10.1201/b15060. neering Practice, 13, 1071–1078. http://dx.doi.org/10.1016/j.conengprac.2004.09.
Duník, J., Straka, O., Kost, O., & Havlík, J. (2017). Noise covariance matrices in 010.
state-space models: A survey and comparison of estimation methods—Part I. Verde, C., Torres, L., & González, O. (2016). Decentralized scheme for leaks’ location in
International Journal of Adaptive Control and Signal Processing, 31(11), 1505–1543. a branched pipeline. Journal of Loss Prevention in the Process Industries, 43, 18–28.
http://dx.doi.org/10.1002/acs.2783. http://dx.doi.org/10.1016/j.jlp.2016.03.023.
11