scieee AI-readable full text Open interactive document viewer

Optimal sensor placement for leak location in water distribution networks using genetic algorithms

Casillas, Myrna V.,Puig Cayuela, Vicenç,Garza Castañón, Luís Eduardo,Rosich, Albert

Abstract

This paper proposes a new sensor placement approach for leak location in water distribution networks (WDNs). The sensor placement problem is formulated as an integer optimization problem. The optimization criterion consists in minimizing the number of non-isolable leaks according to the isolability criteria introduced. Because of the large size and non-linear integer nature of the resulting optimization problem, genetic algorithms (GAs) are used as the solution approach. The obtained results are compared with a semi-exhaustive search method with higher computational effort, proving that GA allows one to find near-optimal solutions with less computational load. Moreover, three ways of increasing the robustness of the GA-based sensor placement method have been proposed using a time horizon analysis, a distance-based scoring and considering different leaks sizes. A great advantage of the proposed methodology is that it does not depend on the isolation method chosen by the user, as long as it is based on leak sensitivity analysis. Experiments in two networks allow us to evaluate the performance of the proposed approach.

Full text

Sensors 2013,13, 14984-15005; doi:10.3390/s131114984 OPEN ACCESS sensors ISSN 1424-8220 www.mdpi.com/journal/sensors Article Optimal Sensor Placement for Leak Location in Water Distribution Networks Using Genetic Algorithms Myrna V. Casillas 1, Vicenc¸ Puig 2,*, Luis E. Garza-Casta˜ n´ on 1and Albert Rosich 3 1Supervision and Advanced Control Chair, Tecnol´ ogico de Monterrey, Campus Monterrey, Av. Eugenio Garza Sada 2501, Monterrey 64849, Mexico; E-Mails: mv[email protected] (M.V.C.); le[email protected] (L.E.G.-C.) 2SAC Research Group, Institut de Rob` otica i Inform` atica Industrial (IRI-CSIC), Universitat Polit` ecnica de Catalunya (UPC), Llorens i Artigues, 4-6, Barcelona 08028, Spain 3Interdisciplinary Centre for Security, Reliability and Trust, University of Luxembourg, 4, rue Alphonse Weicker L-2721, Luxembourg; E-Mail: [email protected] *Author to whom correspondence should be addressed; E-Mail: [email protected]; Tel.: +34-937-398-290; Fax: +34-937-398-628. Received: 5 August 2013; in revised form: 19 October 2013 / Accepted: 23 October 2013 / Published: 4 November 2013 Abstract: This paper proposes a new sensor placement approach for leak location in water distribution networks (WDNs). The sensor placement problem is formulated as an integer optimization problem. The optimization criterion consists in minimizing the number of non-isolable leaks according to the isolability criteria introduced. Because of the large size and non-linear integer nature of the resulting optimization problem, genetic algorithms (GAs) are used as the solution approach. The obtained results are compared with a semi-exhaustive search method with higher computational effort, proving that GA allows one to find near-optimal solutions with less computational load. Moreover, three ways of increasing the robustness of the GA-based sensor placement method have been proposed using a time horizon analysis, a distance-based scoring and considering different leaks sizes. A great advantage of the proposed methodology is that it does not depend on the isolation method chosen by the user, as long as it is based on leak sensitivity analysis. Experiments in two networks allow us to evaluate the performance of the proposed approach. Keywords: water distribution networks; leak isolation; sensor placement; sensitivity analysis Sensors 2013,13 14985 1. Introduction Leaks in water distribution networks are an issue of great concern for water utilities, strongly linked with operational costs and water resources savings. Continuous improvements in water loss management are being applied, and new technologies are developed to achieve higher levels of efficiency [1]. The traditional approach to leakage control is a passive one, whereby the leak is repaired only when it becomes visible. Recently, developed acoustic instruments [2] allow one to also locate invisible leaks, but unfortunately, their application over a large-scale water network is very expensive and time-consuming. A viable solution is to divide the network into a district metered area (DMA), where the flow and the pressure are measured, and to maintain a permanent leakage control system [3]. Then, leak detection in the DMA consists of monitoring flows at night, when customers demand is low and the leakage component is at its largest percentage over the flow. Therefore, practitioners monitor the DMA or groups of DMAs for detecting (and then repairing) leakages by analyzing the minimum night flow and, also, employ techniques to estimate the leakage level [1]. Regarding leak location methods for DMAs, several works have been proposed in the literature. For example, a review of transient-based leak detection methods is offered in [4] as a summary of current and past work. Model-based leak detection and isolation techniques have also been studied, starting with the seminal paper of Pudar and Liggett [5], which formulates the leak detection and isolation problem as a least-squares estimation problem. However, in such non-linear models, the parameter estimation of the water networks is not an easy task. Alternatively, in [6], a method based on pressure measurements and leak sensitivity analysis is proposed. This methodology consists in analyzing the residuals on-line, i.e., the difference between the measurements and their estimation using the network hydraulic models, regarding a given threshold that takes into account the model uncertainty and the noise. When some of the residuals violate their threshold, they are correlated against the leak sensitivity matrix in order to discover which possible leak is present. Although this approach presents satisfactory results under ideal conditions, its performance decreases in the presence of nodal demand uncertainty and noise in the measurements. An improved technique has recently been developed [7,8], where an extended time horizon analysis of pressure measurements is considered and a comparison between the performances depending on the metric used is performed. Thus, the development of a sensor placement strategy has become an important research issue in recent years. Ideally, a sensor network should be configured to facilitate fault detection and maximize leak location performance. However, it is obvious that only a limited number of sensors can be installed inside a DMA, due to budget constraints. The main objectives of sensor placement are leak detectability, isolability and localization. Leak detectability is the ability of monitoring a variation in pressure due to a loss of water occurring in the network. Leak isolability concerns the capacity of distinguishing between two possible leak occurrences, whereas leak localization refers to finding the node where the leak is occurring. There are some works devoted to sensor placement for fault detection and isolation (FDI). Some approaches propose to locate sensors based on isolability criteria according to the study of structural matrices [9]. In [10], an optimization method based on binary integer linear programming searches for an optimal set of sensors for model-based FDI. Sensors 2013,13 14986 Each of the previously mentioned works is used in the general framework of FDI of dynamic systems. However, there are several contributions dedicated to sensor placement in water distribution networks. Most of the works have addressed the sensor placement problem regarding contamination monitoring. See, for example [11,12]; the problem of deploying sensors in a large water distribution network is considered in order to detect the malicious introduction of contaminants. On the other hand, less work has been done regarding sensor placement for leak location. In [13], a strategy based on isolability maximization allows one to optimally locate sensors for leak location based on the structural model of water network. Closer to our research, in [6], an optimal sensor placement for leak location is formulated as an integer programming problem. Recently, in [14], an entropy-based approach for the purposes of efficient and economically viable water loss incident detection was presented. This paper proposes a new approach for sensor placement for leak location in DMAs that can be used with the projection-based location scheme proposed in [7,8]. The proposed approach is different from the algorithm presented in [6], since no binarization of the leak sensitivity matrix is used, being able to work directly using the numerical expression of this matrix. As shown in [7,8], leak isolation methods that use the leak sensitivity matrix without binarization lead to better performance. In particular, the method that computes the projection (angle) between the observed residuals and the columns of the leak sensitivity matrix is the one that performs the best. For this reason, the sensor placement approach developed in this paper uses the non-binarized leak sensitivity matrix and the projection-based leak isolation approach. The use of the non-binarized leak sensitivity matrix leads to completely reformulating the optimization problem solved by the algorithm presented in [6], since the isolability conditions will be completely different. In a binary context, two leaks are isolable if the corresponding columns of the binarized leak sensitivity matrix are different. However, in a non-binarized context, such criteria should be reformulated, as will be shown in this paper. As in [6], the sensor placement problem is finally formulated as an integer optimization problem. However, now, the optimization criterion consists in minimizing the number of non-isolable leaks according to the isolability criteria introduced. Because of the large size and non-linear integer nature of the resulting optimization problem, genetic algorithms (GAs) are used as the solution approach. The obtained results are compared with a semi-exhaustive search method with a higher computational cost, proving that GA allows one to find near-optimal solutions with less computational load. Another advantage is that the proposed sensor placement methodology does not depend on the isolation method chosen by the user, as long as it is based on leak sensitivity analysis. Moreover, since the numerical expression of the leak sensitivity matrix is used and this sensitivity depends on the leak size, among other factors, a robust sensor placement approach is also proposed. Experiments in two networks allow for evaluating the performance of the proposed approach. The rest of the document is organized as follows: Section 2presents the leak localization methodology in which our work is based. Section 3describes the problem formulation. Sections 4and 5present the sensor placement algorithms proposed in this work, while in Section 6, we show the improvements performed to increase the robustness of the approach. Section 7shows the application and the results obtained in a real water distribution network. Finally, Section 8concludes this work. Sensors 2013,13 14987 2. Leak Location Methodology The leak location methodology used in this paper has been introduced in [7,8], as an extension of the methodology proposed in [6]. This approach is summarized here, since it is the basis on top of which the sensor placement algorithm proposed in this paper will be formulated. The leak location methodology aims to detect and isolate leaks in a DMA using pressure measurements and their estimation using the hydraulic network model. Let us consider a DMA with mdemand nodes and npressure sensors. The leak detection methodology is based on the computation of the residual vector r= [r1. . . rn]T, where the residual, ri∈r, is the difference between the pressure measurements, pi, and its corresponding estimation, ˆpi, obtained from the simulation of the hydraulic model with no leak, i.e.,: ri=pi−ˆpi(1) for i= 1, . . . , n. Note that there is one residual for each pressure measurement available in DMA. The leak isolation method relies on analyzing the residual vector (1) using sensitivity analysis, which is determined from the different effects on every pressure measurement caused by each possible leak at a time. To perform such sensitivity analysis, the following sensitivity vectors are derived from simulated leak scenarios [6]: sj=     ˆpfj 1−ˆp1 fj . . . ˆpfj n−ˆpn fj      (2) for j= 1,··· , m, where ˆpfj iand ˆpiare the pressure estimation obtained from the hydraulic DMA model simulation under the leak fjscenario and the leak-free scenario, respectively. More precisely, each simulated fault scenario is performed by injecting a leak of a magnitude of fjin the jth DMA network node in order to compute the sensitivity vector (2). For the sake of simplicity and without loss of generality, mpossible leaks (one for each node) have been assumed. Then, the leak isolation is based on the analysis of the residual vector, together with the sensitivity vectors, in order to determine which node has the highest risk of presenting a leakage. A variety of metrics can be used to perform this isolability analysis [15]. In this work, one of the methods presented in [7] based on projections between residual and sensitivity vectors is used. According to the mentioned study, this method presents the best performance for the location task. However, it is important to note that the sensor placement approach proposed in this paper could also be applied using any other leak location method based on sensitivity analysis (e.g., methods based on the other metrics in [7]). Let rbe the residual vector (1) obtained from the pressure sensors installed in the network. Its normalized projections, ψj, onto each sensitivity vector are computed as: ψj=rTsj |r||sj|(3) for j= 1, . . . , m. Then, the largest projection will determine the candidate node that presents a leak, i.e., a leak in node kis located if: ψk= max(ψ1,··· , ψm)(4) Sensors 2013,13 14988 3. Problem Formulation The objective of this work is to develop an approach to place a given number of sensors, n, in a DMA of a water distribution networks (WDN) in order to obtain a sensor configuration with a maximized leak isolability performance for a given leak detection and isolated scheme. In this work, we use the method based on projections that has been presented in the previous section. It should be noted that the length of the sensitivity and residual vectors that appear in Equations (1) and (2) corresponds to the number of sensors, n, installed in the network. In order to find a sensor configuration that presents maximum isolability performance regarding all the possible leak scenarios, the following residual vectors derived from simulated leak scenarios are computed: rk=   ˆpfk 1−ˆp1 . . . ˆpfk n−ˆpn   (5) for k= 1,··· , m, where ˆpfk iand ˆpiare the pressure estimation obtained from the hydraulic model simulation under the leak fkscenario and the leak-free scenario, respectively. Note that the magnitude of the leaks used to compute the sensitivity vectors in Equation (2) and the one used to compute the residual vectors in Equation (5) are chosen differently (i.e.,fj6=fk) in order to increase the robustness of the method. Taking into account the mentioned residual and sensitivity vectors, the sensitivity matrix, S, and the residual matrix, R, are constructed by concatenating all sensitivities and residuals as follows: S=hs1··· smi(6) R=hr1··· rmi(7) Note that the matrices, Sand R, are computed assuming that all the nodes are measured. To select a configuration with nsensors, the following binary vector is defined: q=hq1··· qmi(8) where qi= 1 if the pressure in the node, i, is measured, and qi= 0, otherwise (i.e., the vector qdenotes which sensors are installed). In turn, a diagonal matrix, Q(q), is constructed from the vector, q, as: Q(q) = diag(q1,··· , qm)(9) Then, the corresponding sensitivity and residual vectors can be determined as: sj(q) = Q(q)sj,rk(q) = Q(q)rk(10) for j= 1,··· , m, where sjand rkare the sensitivity and residual vectors obtained with all nodes measured (i.e.,m=n, and both vectors, sj, and the vectors, rk, contain melements each). Finally, the projections in Equation (3) can be computed depending on the sensors with respect to qas: ψkj(q) = rT kQ(q)sj |Q(q)rk||Q(q)sj|(11) Sensors 2013,13 14989 for j= 1, . . . , m. Note that the property Q(qT)Q(q) = Q(q)has been used in Equation (11). Now, we are able to compute the projection matrix, Ψ, as: Ψ(q) =    ψ11(q)··· ψ1m(q) . . ..... . . ψm1(q)··· ψmm(q)   (12) In order to evaluate the quality of a sensor configuration regarding its capacity to locate a leak at node i∈ {1,··· , m}, and assuming the case of a single leak, the next error index is introduced: εi(q) = (0if ψii(q) = max(ψi1(q), . . . , ψim(q)) 1otherwise. (13) This means that the error index εi= 0, as long as the leak in node iis perfectly located, and εi= 1, otherwise. As the objective is to maximize the isolability regarding leaks in all network nodes, the error index that takes into account all the nodes leaks is computed as: ¯ε(q) = m X i=1 εi(q) m(14) We remark that ¯ε(q)=0, as long as a sensor configuration is chosen, such that all possible leaks can be perfectly located, and 100 ·¯ε(q)is the percentage of incorrectly located leaks. Based on the vector, q, and the extended error index, ¯ε(q), the sensor placement problem is cast as an optimization problem formulated as: min q¯ε(q) s.t. m P i=1 qi=n (15) where qis defined in Equation (8) and n∈ {1, . . . , m}is the number of sensors we want to place. Remark. It is important to note that the solution of the previous optimization algorithm provides the best sensor location when the size of the leak that we want to locate is close to the value used for evaluating residuals Equation (5). If the leak size is smaller or larger than this value, the optimal sensor location could vary. Moreover, the obtained leak isolation error could be larger than the minimum value obtained as the solution of the optimization problem Equation (15). In a later section, we will see how we propose to introduce some robustness (i.e., against leak magnitude changes), improving the overall sensor placement method. Sensors 2013,13 14990 4. Semi-Exhaustive Search Approach 4.1. Semi-Exhaustive Search As stated in Section 3, the problem of sensor placement involves finding an n-sensor configuration among a set of mcandidate nodes. One trivial approach to solve the problem would be to check all the m nsensor configurations. However, this would result in a very high computational cost. Here, we propose the first algorithm as an alternative to this trivial methodology in order to ensure the optimal location in a benchmark network. This method involves the search for the best configuration based on every possible combination, but using lazy evaluation mechanisms to reduce the computation cost by discarding configurations as soon as we see that they cannot be candidates for the optimum. Algorithm 1 Sensor placement based on semi-exhaustive search. Require: A sensitivity matrix, S, and a residual matrix, R. The number of sensors, n, the number of nodes, m, and a (d×n) matrix, L, where d=m n,i.e., each row is a possible combination of sensors position. Ensure: The optimal sensors configuration of index kmin with error ¯εmin. 1: minNL ←m 2: for k= 1,··· , d do 3: qk←eval Q(Lk)// cf. Equation (8) 4: ˆ Sk←eval S(qk, S); ˆ Rk←eval R(qk, R)// cf. Equation (10) 5: nbk NL ←0 6: for α= 1,··· , m do 7: Ψk αα ←eval Ψ( ˆ Sk,ˆ Rk, α)// cf. Equations (11) and (12) 8: for β= 1,··· , m;β6=αdo 9: Ψk α,β ←eval Ψ( ˆ Sk,ˆ Rk, α, β) 10: if Ψk αβ >Ψk αα then 11: nbk NL ←nbk NL + 1 12: break 13: end if 14: end for 15: if nbk NL ≥minNL then 16: break 17: end if 18: end for 19: if nbk NL < minNL then 20: minNL ←nbk NL 21: kmin =k 22: end if 23: end for 24: ¯εmin =minNL m Sensors 2013,13 14991 The method is described in Algorithm 1. The goal of this algorithm is to find the optimal sensor configuration, taking into account all the possible combinations of sensors and considering the method that will be used to perform the leak location. First, the algorithm initiates the minimum number of non-localizable (NL) leaks, minNL, found so far to m(line 1). Then, a loop is performed over each possible combination, k, of sensor configuration (line 2). The binary vector, qk, is evaluated, which allows one to compute the updated sensitivity and residual matrices, i.e.,ˆ Skand ˆ Rk, respectively (lines 3 and 4), and the current number of NL leaks is initiated to be zero (line 5). Then, the algorithm checks for each potential leak, α, if it can be located with the current sensor configuration. It evaluates the element (α, α)of the matrix, Ψ, and for each other column, β, of row, α, it tests if the projection gives a higher score (line 10). If that is the case, then the number of NL leaks is augmented (line 11), and the other columns of the Ψmatrix do not need to be tested (line 12). When the number of NL leaks is higher than the minimum number of NL leaks found so far, i.e.,nbk NL ≥minNL, then the current configuration cannot be optimal, and the algorithm aborts the evaluation and continues with the next configuration (line 16), improving, in this way, the computational efficiency of the algorithm. Otherwise, the minimum number of NL leaks is updated by the current number of NL leaks (line 20) and the index of the configuration is taken as the best index found so far (line 21). This algorithm performs a semi-exhaustive search in the sense that all the configurations are considered, but useless computations are avoided as much as possible. 4.2. Hanoi Network Application Example The semi-exhaustive approach was tested in the water network of Hanoi, Vietnam [16]. This benchmark has been used in several works [17,18], where the goal was to design or optimize the operation of a water network. The network consists of 31 demand nodes, one reservoir node and 34 pipes. The first test uses Algorithm 1to compute the optimal location in the case of two sensors with ¯εmin =minNL/m. The network model is simulated using EPANET [19]. To study the effect of the leak magnitude on the sensor placement algorithm, the leak magnitude is varied by changing the node emitter coefficient (EC) in EPANET from two to eight (i.e., corresponding to leaks between 20 and 80 liters per second (lps)) and computing the resulting sensitivity and residual matrices, Sand R(the EC of each node to be specified for individual leaks is given by EC =w/ppexp where wis the water flow, pis the fluid pressure and pexp is a fixed pressure exponent). Note that for this test network, these values are chosen in proportion to the demands of the network, in order to cause a perceptible effect in the pressure. Table 1presents the leak isolation error index (see Equation (14)) obtained when Sand R are computed using different EC values. It can be noticed that even in the worst case, the error index is lower than 0.2, meaning that less than 20% of the leaks (i.e., six leaks) are not located in the right node. We can conclude that for a small network, the leak isolation errors, due to the unknown leak size, are small, even when installing just a few sensors. The diagonal elements of Table 1are not computed, since they correspond to the ideal case where no uncertainties are considered and the minimum error is obviously zero. Sensors 2013,13 14992 Table 1. Minimum error indices in the Hanoi network after placing two sensors. EC, emitter coefficient. EC Used in Residuals 2345678 EC Used in Sensitivities 2 0.032 0.032 0.129 0.129 0.129 0.193 3 0.032 0.032 0.096 0.129 0.129 0.161 4 0.064 0.032 0 0.064 0.096 0.129 5 0.161 0.064 0.032 0.032 0.064 0.096 6 0.161 0.129 0.064 0 0.032 0.096 7 0.193 0.161 0.129 0.064 0.032 0 8 0.193 0.193 0.161 0.129 0.064 0 As the second test, we perform the same experiment, but with three sensors. The results are shown in Table 2. First, we note that the error index, due to the unknown leak magnitude, is reduced when more sensors are installed. In both cases (with two and three sensors), the best configuration of sensors used to compute the error index is dependent on the combination of ECs used to compute the matrices, Sand R. Thus, it is not possible to take a direct decision about the optimal sensor placement with these results. To mitigate this problem, we propose a post-treatment analysis to choose such placement. Since the network is small, when we change the sensitivities and the leak magnitudes, there are some configurations that are repeated many times. We will take advantage of such behavior and select the node configurations with the highest occurrence in the results of the semi-exhaustive search. Table 2. Minimum error indices in Hanoi network with three sensors. EC Used in Residuals 2345678 EC Used in Sensitivities 2 0 0 0.032 0 0.032 0.032 3 0 0 0 0.032 0 0.032 4 0 0 0 0 0.032 0.032 5 0.032 0 0 0 0.032 0.032 6 0 0 0 0 0 0.032 7 0.032 0.032 0.032 0 0 0 8 0.032 0.032 0.032 0 0 0 In order to choose an adequate combination of sensors, we count the occurrences of the configurations leading to the error indices in Tables 1and 2and look for those that are found the most. The idea is to find those configurations with the minimal error index that cover as many different leak magnitudes as possible. In the example of the Hanoi network, the three configurations with the highest occurrence in the case of the placement of two sensors are: Sensors 2013,13 14999 the sensitivities and EC = 0.20 (leak of approximately 1.3lps) for the residuals. The best configuration obtained leads to placing sensors in nodes {82, 133, 157}, which gives an error index ¯εmin = 0.258. Figure 1. Minimum error index according to the number of sensors in the Hanoi network. 1 2 3 4 5 6 7 8 9 10 −0.01 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 Number of sensors Error index Figure 2. Water network in Limassol, Cyprus. Sensors 2013,13 15000 7.1. Application of the Sensor Placement Based on Genetic Algorithms We apply Algorithm 2for different types of residual and sensitivity matrices that are computed by varying the leak magnitudes within a given range. Here, the robustness improvements presented in Section 6.1 are not applied (they will be applied in the next subsection). The parameters for the genetic algorithm were selected after several trial and error tests. The initialization matrix was set with a size of 50 rows, and five iterations were allowed in order to increase the efficiency of the method with a maximum of five generations in each of them. The computation time was about 60 min. Compared to the time spent in the semi-exhaustive search, we can conclude that GA significantly reduces the time required to find a solution. Table 4shows the nodes for each combination of EC value, whereas Table 5 shows the corresponding minimum error indices. From these tables, we can see that the algorithm finds different configurations depending on the leak magnitude (through EC) selected for the sensitivities and for the residuals. Such behavior was also occurring with the Hanoi network (cf.4.2). Table 4. Sensor configurations in Limassol network with three sensors. Residuals EC 0.15 0.2 0.25 0.3 0.35 Sensitivities EC 0.15 {40, 77 172} {25, 77, 133} {76, 133, 185} {76, 133, 152} 0.2 {76, 133, 152} {76, 86, 152} {77, 124, 152} {76, 110, 173} 0.25 {85, 156, 196} {8, 76, 150} {75, 116, 157} {72, 115, 150} 0.3 {72, 118, 163} {76, 133, 141} {77, 111, 150} {75, 23, 152} 0.35 {76, 128, 140} {75, 120, 150} {77, 115, 137} {29, 112, 152} Table 5. Minimum error indices in the Limassol network for the configurations of Table 4. Residuals EC 0.15 0.2 0.25 0.3 0.35 Sensitivities EC 0.15 0.324 0.294 0.299 0.314 0.2 0.299 0.284 0.279 0.294 0.25 0.279 0.274 0.243 0.243 0.3 0.309 0.279 0.263 0.258 0.35 0.324 0.279 0.263 0.258 Thus, we perform a post-treatment analysis to decide what is the best sensor configuration for the network. This is based on the following tests: •Variation in the tested leak magnitude: We compute the projection matrices for all the configurations found, taking into account the various combination of sensitivity and residual matrices corresponding to leak magnitudes changes. •Consideration of the sensors precision: To take into account the limitation of the sensor precision, we truncate the two last decimals of the pressure measurements to compute the residual matrices. Sensors 2013,13 15001 •Application of random noise in the measurements: We include Gaussian white noise in the measurements with a mean amplitude corresponding to approximately 0.5% of the expected measurement, considering the technology of the pressure sensors used by the water company managing the network. In order to select the adequate configuration of sensors, we propose performing the experiments described above and look for the combination with the smallest average error index along all the possible leak magnitudes and sensitivities to test. This criterion is analytically established by taking the minimum of the average error indices: min( 1 L2 L X j=1 L X i=1 εij)(20) where Lis the number of leak magnitudes used and εij is the error index (cf. Equations (13) and (14)) obtained with the residual and sensitivity of the respective indices, iand j. In this way, the search for the best sensor placement is built as a min-max optimization problem. Table 6. Averaged error indices for configurations of Table 4. Test Configuration Magnitude Change Sensor Precision Noise Addition Total Average 1{75, 116, 157}0.336 0.412 0.576 0.442 2{85, 156, 196}0.362 0.455 0.597 0.471 3{72, 115, 150}0.345 0.429 0.583 0.452 4{76, 110, 173}0.340 0.409 0.556 0.435 5{77, 124, 152}0.348 0.444 0.581 0.457 6{76, 133, 152}0.318 0.403 0.558 0.426 7{76, 86, 152}0.335 0.421 0.572 0.443 8{25, 77, 133}0.336 0.420 0.569 0.441 9{76, 133, 185}0.334 0.420 0.564 0.439 10 {40, 77, 172}0.368 0.448 0.613 0.477 11 {76, 133, 152}0.318 0.403 0.546 0.422 12 {8, 76, 150}0.356 0.462 0.613 0.477 13 {72, 118, 163}0.373 0.443 0.576 0.464 14 {76, 133, 141}0.341 0.416 0.570 0.442 15 {76, 128, 140}0.355 0.425 0.573 0.451 16 {75, 120, 150}0.328 0.431 0.582 0.447 17 {77, 111, 150}0.342 0.422 0.566 0.443 18 {77, 115, 137}0.330 0.417 0.561 0.436 19 {75, 123, 152}0.339 0.421 0.575 0.445 20 {29, 112, 152}0.394 0.455 0.590 0.480 Table 6shows the errors induced by the three tests previously mentioned, as well as the total average error. From this table, we choose as the best sensor placement configuration the one with the lowest total average error. Sensors 2013,13 15002 Such a method gives the sensor placement at nodes {76,133,152}, which provides the lowest average error among the sets of sensor placements computed from the different combinations of residual and sensitivities. However, there is no guarantee that other sets would not lead to better results. Furthermore, this configuration was found based on a single time instant; thus, it is not robust to changes in the demand that would occur when considering a period of time. For these reasons and to get a more reliable solution, we prefer the method that includes the robustness improvements that we proposed in Section 6.1. 7.2. Application of the Robust Sensor Placement Method We applied Algorithm 3to the same Limassol, Cyprus network. We took L= 5 different leak magnitudes (one, 1.33,1.66, two and 2.33 lps) that lead to 10 couples of sensitivity and residual matrices. The network data were analyzed taking into account a T= 24 h time horizon with pressure measurements every hour. Furthermore, the sensor noise (approximately 0.5% of the expected measurement as indicated above) was added to the computation of the residuals in order to increase the robustness of the method. Since the network has 197 nodes, Equation (18) returns a cut-off distance of seven nodes to compute the scoring error in Equation (17). The algorithm performs five main iterations with two generations in each of them, while the seed size is made of 50 vectors in the initial population. After the iterations, the best result obtained corresponds to a sensor configuration of nodes {2,75,158}, with an error index of 0.302, which means an average distance of two nodes between the located node and that with the real leak. This placement is shown in Figure 3a. Figure 3. Near-optimal placement of three sensors in the Limassol network. (a) Sensor placement with noise of 0.5%; (b) sensor placement with noise of 2%. (a) (b) Sensors 2013,13 15003 A second test increasing the noise level up to 2% gives the best configuration at nodes {2,75,100} (Figure 3b) with an error index of 0.712. This means that leaks are located with an average of five nodes of topological distance to the real leak. Note that two of the nodes are repeated regarding the previous location. Consequently, despite the increased level of noise, the placement of the sensors has not been severally affected. Thus, it reassures the fact that the near-optimal solution will have a satisfactory behavior, even in different conditions. It is important to note that these results comes from the integration within the GA of all the improvements of sensor placement robustness that we described in Section 6.1. Thus, contrary to what was done in the previous section when using Algorithm 2, there is no need to perform any post-treatment analysis to extract a robust solution. Integrating a time horizon, a more informative distance-based scoring and the possible variations of leak magnitude, our method provides a solution configuration for sensor placement with a higher level of confidence. 7.3. Practical Considerations When moving the proposed sensor placement approach to the real network, the following practical considerations should be taken into account considering the previous experience in [6]: - the DMA EPANET model should be recalibrated with real data obtained from the available sensors already installed in the network (typically at the flow entrance points) in order to minimize the errors due to model mismatch between the real and simulated network. - the configuration of the internal valves should also be verified in order to assure that their positions in the real and simulated network are the same. - the nodal demand should be estimated as well as possible using information from water consumption and tele-measurement devices, if available. - leak size range that is considered, as well as sensor noise and precision should be characterized so that the robust sensor placement approach presented in Section 6could be used in such a way that the installed sensors guarantee the minimal isolation error that is possible. 8. Conclusions In this paper, we proposed a new approach to sensor placement for water distribution networks that maximizes leak isolability. The sensor placement problem has been formulated as a non-linear integer optimization problem. The optimization criterion is based on minimizing the number of non-isolable leaks according to the isolability criteria introduced. This approach is combined with a projection-based leak location scheme, but it could be easily adapted to any other sensitivity-based isolation scheme. The first semi-exhaustive search method has been proposed that searches for the best configuration and relies on lazy evaluation mechanisms to reduce the computation cost. However, the computational effort remains too demanding for most realistic scenarios. Thus, we proposed to solve the optimization problem with GAs, which are known to work well in large-sized problems of a non-linear integer nature. We have seen that such approach allows us to find near-optimal solutions in an efficient way. We also highlighted that leak magnitude changes were impacting the resulting best sensor placement found by the GA algorithm, requiring a post-treatment analysis to tackle such a problem. Finally, we proposed Sensors 2013,13 15004 three improvements that avoid any post-treatment and increase the robustness of the GA-based sensor placement. Experiments on two types of networks were performed to compare the different methods proposed in this paper. They demonstrate the relevance of the robust GA-based approach. For future work, we would like to combine our robust GA-based approach with other methods to perform the leak isolation task. Furthermore, other types of optimization methods that provide some guarantee regarding the solution optimality could be investigated in the future. Enhancing the robustness of the sensor placement algorithm against additional sources of uncertainty, as in the model parameters or in nodal demand, will also be considered in future research. Acknowledgments This work is supported by the Research Chair in Supervision and Advanced Control of Tecnol´ ogico de Monterrey, Campus Monterrey and by a CONACYTstudentship. This work has been partially grant-funded by CICYTSHERECSDPI-2011-26243 and CICYT WATMANDPI-2009-13744 of the Spanish Ministry of Education, by iSense grant FP7-ICT-2009-6-270428 and by EFFINETgrant FP7-ICT-2012-318556 of the European Commission. This work is also partially founded by the Fond National de la Recherche, Luxembourg (CO11/IS/1206050). Conflicts of Interest The authors declare no conflict of interest. References 1. Puust, R.; Kapelan, Z.; Savic, D.A.; Koppel, T. A review of methods for leakage management in pipe networks. Urban Water J. 2010,7, 25–45. 2. Khulief, Y.; Khalifa, A.; Mansour, R.; Habib, M. Acoustic detection of leaks in water pipelines using measurements inside pipe. J. Pipeline Syst. Eng. Pract. 2012,3, 47–54. 3. Lambert, M.; Simpson, A.; Vtkovsk, J.; Wang, X.J.; Lee, P. A Review of Leading-Edge Leak Detection Techniques for Water Distribution Systems. In Proceedings of the 20th AWA Convention, Perth, Australia, 6–10 April, 2003. 4. Andrew, F.; Colombo, P.L.; Karney, B.W. A selective literature review of transient-based leak detection methods. J. Hydro-Environ. Res. 2009,2, 212–227. 5. Pudar, R.S.; Liggett, J.A. Leaks in pipe networks. J. Hydraul. Eng. 1992,118, 1031–1046. 6. P´ erez, R.; Puig, V.; Pascual, J.; Quevedo, J.; Landeros, E.; Peralta, A. Methodology for leakage isolation using pressure sensitivity analysis in water distribution networks. Control Eng. Pract. 2011,19, 1157–1167. 7. Casillas, M.V.; Garza-Casta˜ n´ on, L.; Puig, V. Extended-Horizon Analysis of Pressure Sensitivities for Leak Detection in Water Distribution Networks. In Proceedings of the 8th IFAC Symposium on Fault Detection, Supervision and Safety of Technical Processes, Mexico city, Mexico, 29–31 August 2012; pp. 570–575. Sensors 2013,13 15005 8. Casillas, M.V.; Garza-Casta˜ n´ on, L.; Puig, V. Model-based leak detection and location in water distribution networks considering an extended-horizon analysis of pressure sensitivities. J. Hydroinf. 2013, (in press). 9. Yassine, A.; Ploix, S.; Flaus, J.M. A method for sensor placement taking into account diagnosability criteria. Int. J. Appl. Math. Comput. Sci. 2008,18, 497–512. 10. Rosich, A.; Sarrate, R.; Nejjari, F. Optimal Sensor Placement for FDI Using Binary Integer Linear Programming. In Proceedings of the 20th International Workshop on Principles of Diagnosis, DX09, Stockholm, Sweden, 14–17 June 2009; pp. 235–242. 11. Krause, A.; Leskovec, J.; Guestrin, C.; Vanbriesen, J.; Faloutsos, C. Efficient sensor placement optimization for securing large water distribution networks. J. Water Resourc. Plan. Manag. 2008,134, 516–526. 12. Aral, M.; Guan, J.; Maslia, M. Optimal design of sensor placement in water distribution networks. J. Water Resour. Plan. Manag. 2010,136, 5–18. 13. Sarrate, R.; Nejjari, F.; Rosich, A. Sensor Placement for Fault Diagnosis Performance Maximization in Distribution Networks. In Proceedings of the 18th Mediterranean Conference on Control and Automation (MED), Barcelona, Spain, 3–6 July 2012; pp. 1–6. 14. Christodoulou, S.; Gagatsis, A.; Xanthos, A.; Kranioti, S.; Agathokleous, A.; Fragiadakis, M. Entropy-based sensor placement optimization for waterloss detection in water distribution networks. Water Resourc. Manag. 2013,27, 4443–4468. 15. Rokach, L.; Maimon, O. Clustering Methods. In Data Mining and Knowledge Discovery Handbook; Springer: New York, USA, 2005; pp. 321–352. 16. Fujiwara, O.; Khang, D.B. A two-phase decomposition method for optimal design of looped water distribution networks. Water Resourc. Res. 1990,26, 539–549. 17. Zheng, F.; Zecchin, A.C.; Simpson, A. Self-adaptive differential evolution algorithm applied to water distribution system optimization. J. Comput. Civil Eng. 2013,27, 148–158. 18. Bolognesi, A.; Bragalli, C.; Marchi, A.; Artina, S. Genetic heritage evolution by stochastic transmission in the optimal design of water distribution networks. Adv. Eng. Softw. 2010,41, 792–801. 19. Rossman, L. EPANET 2 User’s Manual; United States Envionmental Protection Agency: Washington, DC, USA, 2000. 20. Koza, J.R. Survey of Genetic Algorithms and Genetic Programming. In Proceedings of the Wescon 95–Conference Record: Microelectronics, Communications Technology, Producing Quality Products, Mobile and Portable Power, Emerging Technologies, San Francisco, CA, USA 7–9 November 1995; pp. 589–594. 21. Goldberg, D. Genetic Algorithms in Search, Optimization, and Machine Learning; Addison-Wesley: Reading, MA, USA, 1989. c 2013 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/).