scieee AI-readable full text Open interactive document viewer

Modelling uncertainty for leak localization in Water Networks

Blesa Izquierdo, Joaquim,Pérez Magrané, Ramon

Abstract

The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam).

Full text

IFAC PapersOnLine 51-24 (2018) 730–735 ScienceDirect Available online at www.sciencedirect.com 2405-8963 © 2018, IFAC (International Federation of Automatic Control) Hosting by Elsevier Ltd. All rights reserved. Peer review under responsibility of International Federation of Automatic Control. 10.1016/j.ifacol.2018.09.656 © 2018, IFAC (International Federation of Automatic Control) Hosting by Elsevier Ltd. All rights reserved. 10.1016/j.ifacol.2018.09.656 2405-8963 Modelling uncertainty for leak localization in Water Networks  Joaquim Blesa ∗,∗∗ Ramon P´erez ∗∗ ∗Institut de Rob`otica i Inform`atica Industrial (IRI), CSIC-UPC, C/. Llorens i Artigas 4-6, 08028 Barcelona, Spain. (e-mail: [email protected]) ∗∗ Research Center for Supervision, Safety and Automatic Control (CS2AC), Universitat Polit`ecnica de Catalunya (UPC), Terrassa Campus, Gaia Building, Rambla Sant Nebridi 22, 08222 Terrassa, Barcelona. (e-mail: [email protected]) Abstract: The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam). Keywords: water distribution networks, fault detection and izolation, leak localzation, correlation analysis 1. INTRODUCTION One of the main issues that motivates the use of water distribution models and on-line measurements is the leakage detection and localization. There are methods based on data analysis (van Thienen et al. (2013)) but most of the methods that use on-line measurements rely on models, either transient (Colombo et al. (2009)) or static (Wu and Sage (2006),Goulet et al. (2013),Sanz and P´erez (2015)). The Centre for Supervision, Safety and automatic Control (cs2ac) at the UPC in Terrassa has developed a methodology for leak localization using pressure measurements and hydraulic models. It is based on the fault detection and isolation theory (Gertler (1998)) and it evolved from a first version where binary residuals where generated (P´erez et al. (2011)) to a correlation based method (Quevedo et al. (2011)) . It was successfully applied in real networks (Perez et al. (2014)). The improvement of leak localization includes contributions from other disciplines such as sensor placement demand calibration and the accuracy assessment. The accuracy in the leak localization is determined by the uncertainties present both in measurements and models. These uncertainties have to be modelled This work has been partially funded by the Spanish State Research Agency (AEI) and the European Regional Development Fund (ERFD) through the projects DEOCS (ref. MINECO DPI2016- 76493), SCAV (ref. MINECO DPI2017-88403-R) and through the grant IJCI-2014-20801. This work has also been partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). (P´erez et al. (2015)) so that the accuracy can be assessed. In (Cuguer´o-Escofet et al. (2015)) the methodology was adapted to provide the results in the leak localization taking into account the uncertainty. It was demonstrated for a three-node network. The application to a bigger network is not possible without an approximation. Uncertainty in non-leaky scenarios can be computed as the difference between actual pressure measurements and estimations provided by hydraulic water distribution models when no leak is present in the system. When a leak is present in the system, leak detection methods provide an estimation of the range of the leak magnitude by the study of the change of the night flow. Then, the most challenging problem is to determine where the leak is. Model-based methods compare the behaviour of the observed residuals with the ones generated by the model considering all the possible leak locations. The most similar behaviour between the actual residuals and the theoretical ones determines the most probable leak location. As uncertainties are present in the system, they have to be taken into account to perform the leak localization. In this paper, it is proposed that the uncertainty observed in a non-leaky scenario can be extrapolated to leaky scenarios. In particular, the effect of the uncertainty in leaky scenarios can be approximated by the sum of the effect of nominal leak magnitude (provided by the leak detection) in residuals and the uncertainty computed in non-leaky scenarios. The rest of the paper is organized as follows. Section 2 reviews the leak localization methodology for water distri- 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes Warsaw, Poland, August 29-31, 2018 Copyright © 2018 IFAC 730 Modelling uncertainty for leak localization in Water Networks  Joaquim Blesa ∗,∗∗ Ramon P´erez ∗∗ ∗Institut de Rob`otica i Inform`atica Industrial (IRI), CSIC-UPC, C/. Llorens i Artigas 4-6, 08028 Barcelona, Spain. (e-mail: [email protected]) ∗∗ Research Center for Supervision, Safety and Automatic Control (CS2AC), Universitat Polit`ecnica de Catalunya (UPC), Terrassa Campus, Gaia Building, Rambla Sant Nebridi 22, 08222 Terrassa, Barcelona. (e-mail: [email protected]) Abstract: The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam). Keywords: water distribution networks, fault detection and izolation, leak localzation, correlation analysis 1. INTRODUCTION One of the main issues that motivates the use of water distribution models and on-line measurements is the leakage detection and localization. There are methods based on data analysis (van Thienen et al. (2013)) but most of the methods that use on-line measurements rely on models, either transient (Colombo et al. (2009)) or static (Wu and Sage (2006),Goulet et al. (2013),Sanz and P´erez (2015)). The Centre for Supervision, Safety and automatic Control (cs2ac) at the UPC in Terrassa has developed a methodology for leak localization using pressure measurements and hydraulic models. It is based on the fault detection and isolation theory (Gertler (1998)) and it evolved from a first version where binary residuals where generated (P´erez et al. (2011)) to a correlation based method (Quevedo et al. (2011)) . It was successfully applied in real networks (Perez et al. (2014)). The improvement of leak localization includes contributions from other disciplines such as sensor placement demand calibration and the accuracy assessment. The accuracy in the leak localization is determined by the uncertainties present both in measurements and models. These uncertainties have to be modelled This work has been partially funded by the Spanish State Research Agency (AEI) and the European Regional Development Fund (ERFD) through the projects DEOCS (ref. MINECO DPI2016- 76493), SCAV (ref. MINECO DPI2017-88403-R) and through the grant IJCI-2014-20801. This work has also been partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). (P´erez et al. (2015)) so that the accuracy can be assessed. In (Cuguer´o-Escofet et al. (2015)) the methodology was adapted to provide the results in the leak localization taking into account the uncertainty. It was demonstrated for a three-node network. The application to a bigger network is not possible without an approximation. Uncertainty in non-leaky scenarios can be computed as the difference between actual pressure measurements and estimations provided by hydraulic water distribution models when no leak is present in the system. When a leak is present in the system, leak detection methods provide an estimation of the range of the leak magnitude by the study of the change of the night flow. Then, the most challenging problem is to determine where the leak is. Model-based methods compare the behaviour of the observed residuals with the ones generated by the model considering all the possible leak locations. The most similar behaviour between the actual residuals and the theoretical ones determines the most probable leak location. As uncertainties are present in the system, they have to be taken into account to perform the leak localization. In this paper, it is proposed that the uncertainty observed in a non-leaky scenario can be extrapolated to leaky scenarios. In particular, the effect of the uncertainty in leaky scenarios can be approximated by the sum of the effect of nominal leak magnitude (provided by the leak detection) in residuals and the uncertainty computed in non-leaky scenarios. The rest of the paper is organized as follows. Section 2 reviews the leak localization methodology for water distri- 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes Warsaw, Poland, August 29-31, 2018 Copyright © 2018 IFAC 730 Modelling uncertainty for leak localization in Water Networks  Joaquim Blesa ∗,∗∗ Ramon P´erez ∗∗ ∗Institut de Rob`otica i Inform`atica Industrial (IRI), CSIC-UPC, C/. Llorens i Artigas 4-6, 08028 Barcelona, Spain. (e-mail: [email protected]) ∗∗ Research Center for Supervision, Safety and Automatic Control (CS2AC), Universitat Polit`ecnica de Catalunya (UPC), Terrassa Campus, Gaia Building, Rambla Sant Nebridi 22, 08222 Terrassa, Barcelona. (e-mail: [email protected]) Abstract: The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam). Keywords: water distribution networks, fault detection and izolation, leak localzation, correlation analysis 1. INTRODUCTION One of the main issues that motivates the use of water distribution models and on-line measurements is the leakage detection and localization. There are methods based on data analysis (van Thienen et al. (2013)) but most of the methods that use on-line measurements rely on models, either transient (Colombo et al. (2009)) or static (Wu and Sage (2006),Goulet et al. (2013),Sanz and P´erez (2015)). The Centre for Supervision, Safety and automatic Control (cs2ac) at the UPC in Terrassa has developed a methodology for leak localization using pressure measurements and hydraulic models. It is based on the fault detection and isolation theory (Gertler (1998)) and it evolved from a first version where binary residuals where generated (P´erez et al. (2011)) to a correlation based method (Quevedo et al. (2011)) . It was successfully applied in real networks (Perez et al. (2014)). The improvement of leak localization includes contributions from other disciplines such as sensor placement demand calibration and the accuracy assessment. The accuracy in the leak localization is determined by the uncertainties present both in measurements and models. These uncertainties have to be modelled This work has been partially funded by the Spanish State Research Agency (AEI) and the European Regional Development Fund (ERFD) through the projects DEOCS (ref. MINECO DPI2016- 76493), SCAV (ref. MINECO DPI2017-88403-R) and through the grant IJCI-2014-20801. This work has also been partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). (P´erez et al. (2015)) so that the accuracy can be assessed. In (Cuguer´o-Escofet et al. (2015)) the methodology was adapted to provide the results in the leak localization taking into account the uncertainty. It was demonstrated for a three-node network. The application to a bigger network is not possible without an approximation. Uncertainty in non-leaky scenarios can be computed as the difference between actual pressure measurements and estimations provided by hydraulic water distribution models when no leak is present in the system. When a leak is present in the system, leak detection methods provide an estimation of the range of the leak magnitude by the study of the change of the night flow. Then, the most challenging problem is to determine where the leak is. Model-based methods compare the behaviour of the observed residuals with the ones generated by the model considering all the possible leak locations. The most similar behaviour between the actual residuals and the theoretical ones determines the most probable leak location. As uncertainties are present in the system, they have to be taken into account to perform the leak localization. In this paper, it is proposed that the uncertainty observed in a non-leaky scenario can be extrapolated to leaky scenarios. In particular, the effect of the uncertainty in leaky scenarios can be approximated by the sum of the effect of nominal leak magnitude (provided by the leak detection) in residuals and the uncertainty computed in non-leaky scenarios. The rest of the paper is organized as follows. Section 2 reviews the leak localization methodology for water distri- 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes Warsaw, Poland, August 29-31, 2018 Copyright © 2018 IFAC 730 Modelling uncertainty for leak localization in Water Networks  Joaquim Blesa ∗,∗∗ Ramon P´erez ∗∗ ∗Institut de Rob`otica i Inform`atica Industrial (IRI), CSIC-UPC, C/. Llorens i Artigas 4-6, 08028 Barcelona, Spain. (e-mail: [email protected]) ∗∗ Research Center for Supervision, Safety and Automatic Control (CS2AC), Universitat Polit`ecnica de Catalunya (UPC), Terrassa Campus, Gaia Building, Rambla Sant Nebridi 22, 08222 Terrassa, Barcelona. (e-mail: [email protected]) Abstract: The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam). Keywords: water distribution networks, fault detection and izolation, leak localzation, correlation analysis 1. INTRODUCTION One of the main issues that motivates the use of water distribution models and on-line measurements is the leakage detection and localization. There are methods based on data analysis (van Thienen et al. (2013)) but most of the methods that use on-line measurements rely on models, either transient (Colombo et al. (2009)) or static (Wu and Sage (2006),Goulet et al. (2013),Sanz and P´erez (2015)). The Centre for Supervision, Safety and automatic Control (cs2ac) at the UPC in Terrassa has developed a methodology for leak localization using pressure measurements and hydraulic models. It is based on the fault detection and isolation theory (Gertler (1998)) and it evolved from a first version where binary residuals where generated (P´erez et al. (2011)) to a correlation based method (Quevedo et al. (2011)) . It was successfully applied in real networks (Perez et al. (2014)). The improvement of leak localization includes contributions from other disciplines such as sensor placement demand calibration and the accuracy assessment. The accuracy in the leak localization is determined by the uncertainties present both in measurements and models. These uncertainties have to be modelled This work has been partially funded by the Spanish State Research Agency (AEI) and the European Regional Development Fund (ERFD) through the projects DEOCS (ref. MINECO DPI2016- 76493), SCAV (ref. MINECO DPI2017-88403-R) and through the grant IJCI-2014-20801. This work has also been partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). (P´erez et al. (2015)) so that the accuracy can be assessed. In (Cuguer´o-Escofet et al. (2015)) the methodology was adapted to provide the results in the leak localization taking into account the uncertainty. It was demonstrated for a three-node network. The application to a bigger network is not possible without an approximation. Uncertainty in non-leaky scenarios can be computed as the difference between actual pressure measurements and estimations provided by hydraulic water distribution models when no leak is present in the system. When a leak is present in the system, leak detection methods provide an estimation of the range of the leak magnitude by the study of the change of the night flow. Then, the most challenging problem is to determine where the leak is. Model-based methods compare the behaviour of the observed residuals with the ones generated by the model considering all the possible leak locations. The most similar behaviour between the actual residuals and the theoretical ones determines the most probable leak location. As uncertainties are present in the system, they have to be taken into account to perform the leak localization. In this paper, it is proposed that the uncertainty observed in a non-leaky scenario can be extrapolated to leaky scenarios. In particular, the effect of the uncertainty in leaky scenarios can be approximated by the sum of the effect of nominal leak magnitude (provided by the leak detection) in residuals and the uncertainty computed in non-leaky scenarios. The rest of the paper is organized as follows. Section 2 reviews the leak localization methodology for water distri- 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes Warsaw, Poland, August 29-31, 2018 Copyright © 2018 IFAC 730 Modelling uncertainty for leak localization in Water Networks  Joaquim Blesa ∗ , ∗∗ Ramon P´erez ∗∗ ∗Institut de Rob`otica i Inform`atica Industrial (IRI), CSIC-UPC, C/. Llorens i Artigas 4-6, 08028 Barcelona, Spain. (e-mail: [email protected]) ∗∗ Research Center for Supervision, Safety and Automatic Control (CS2AC), Universitat Polit`ecnica de Catalunya (UPC), Terrassa Campus, Gaia Building, Rambla Sant Nebridi 22, 08222 Terrassa, Barcelona. (e-mail: [email protected]) Abstract: The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam). Keywords: water distribution networks, fault detection and izolation, leak localzation, correlation analysis 1. INTRODUCTION One of the main issues that motivates the use of water distribution models and on-line measurements is the leakage detection and localization. There are methods based on data analysis (van Thienen et al. (2013)) but most of the methods that use on-line measurements rely on models, either transient (Colombo et al. (2009)) or static (Wu and Sage (2006),Goulet et al. (2013),Sanz and P´erez (2015)). The Centre for Supervision, Safety and automatic Control (cs2ac) at the UPC in Terrassa has developed a methodology for leak localization using pressure measurements and hydraulic models. It is based on the fault detection and isolation theory (Gertler (1998)) and it evolved from a first version where binary residuals where generated (P´erez et al. (2011)) to a correlation based method (Quevedo et al. (2011)) . It was successfully applied in real networks (Perez et al. (2014)). The improvement of leak localization includes contributions from other disciplines such as sensor placement demand calibration and the accuracy assessment. The accuracy in the leak localization is determined by the uncertainties present both in measurements and models. These uncertainties have to be modelled This work has been partially funded by the Spanish State Research Agency (AEI) and the European Regional Development Fund (ERFD) through the projects DEOCS (ref. MINECO DPI2016- 76493), SCAV (ref. MINECO DPI2017-88403-R) and through the grant IJCI-2014-20801. This work has also been partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). (P´erez et al. (2015)) so that the accuracy can be assessed. In (Cuguer´o-Escofet et al. (2015)) the methodology was adapted to provide the results in the leak localization taking into account the uncertainty. It was demonstrated for a three-node network. The application to a bigger network is not possible without an approximation. Uncertainty in non-leaky scenarios can be computed as the difference between actual pressure measurements and estimations provided by hydraulic water distribution models when no leak is present in the system. When a leak is present in the system, leak detection methods provide an estimation of the range of the leak magnitude by the study of the change of the night flow. Then, the most challenging problem is to determine where the leak is. Model-based methods compare the behaviour of the observed residuals with the ones generated by the model considering all the possible leak locations. The most similar behaviour between the actual residuals and the theoretical ones determines the most probable leak location. As uncertainties are present in the system, they have to be taken into account to perform the leak localization. In this paper, it is proposed that the uncertainty observed in a non-leaky scenario can be extrapolated to leaky scenarios. In particular, the effect of the uncertainty in leaky scenarios can be approximated by the sum of the effect of nominal leak magnitude (provided by the leak detection) in residuals and the uncertainty computed in non-leaky scenarios. The rest of the paper is organized as follows. Section 2 reviews the leak localization methodology for water distri- 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes Warsaw, Poland, August 29-31, 2018 Copyright © 2018 IFAC 730 Modelling uncertainty for leak localization in Water Networks  Joaquim Blesa ∗,∗∗ Ramon P´erez ∗∗ ∗Institut de Rob`otica i Inform`atica Industrial (IRI), CSIC-UPC, C/. Llorens i Artigas 4-6, 08028 Barcelona, Spain. (e-mail: [email protected]) ∗∗ Research Center for Supervision, Safety and Automatic Control (CS2AC), Universitat Polit`ecnica de Catalunya (UPC), Terrassa Campus, Gaia Building, Rambla Sant Nebridi 22, 08222 Terrassa, Barcelona. (e-mail: [email protected]) Abstract: The performance and success of model-based leak localization methods applied to water distribution networks (WDN) highly depends on the uncertainty of the system considered. This work proposes an original method of modeling the effect of uncertainties in these networks. The proposed method is based on the collection of real data in the water network in the absence of leaks. The discrepancy (residual) between the measured data and the one provided by a simulator of the network in normal operation is used to extrapolate the possible residuals in the different leak scenarios. In addition, indicators for assessing the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis are provided. The error in terms of correlation intervals and leak localzation assessment between the proposed approximation and the real one is studied by means a simplified model of the WDN of Hanoi (Vietnam). Keywords: water distribution networks, fault detection and izolation, leak localzation, correlation analysis 1. INTRODUCTION One of the main issues that motivates the use of water distribution models and on-line measurements is the leakage detection and localization. There are methods based on data analysis (van Thienen et al. (2013)) but most of the methods that use on-line measurements rely on models, either transient (Colombo et al. (2009)) or static (Wu and Sage (2006),Goulet et al. (2013),Sanz and P´erez (2015)). The Centre for Supervision, Safety and automatic Control (cs2ac) at the UPC in Terrassa has developed a methodology for leak localization using pressure measurements and hydraulic models. It is based on the fault detection and isolation theory (Gertler (1998)) and it evolved from a first version where binary residuals where generated (P´erez et al. (2011)) to a correlation based method (Quevedo et al. (2011)) . It was successfully applied in real networks (Perez et al. (2014)). The improvement of leak localization includes contributions from other disciplines such as sensor placement demand calibration and the accuracy assessment. The accuracy in the leak localization is determined by the uncertainties present both in measurements and models. These uncertainties have to be modelled This work has been partially funded by the Spanish State Research Agency (AEI) and the European Regional Development Fund (ERFD) through the projects DEOCS (ref. MINECO DPI2016- 76493), SCAV (ref. MINECO DPI2017-88403-R) and through the grant IJCI-2014-20801. This work has also been partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). (P´erez et al. (2015)) so that the accuracy can be assessed. In (Cuguer´o-Escofet et al. (2015)) the methodology was adapted to provide the results in the leak localization taking into account the uncertainty. It was demonstrated for a three-node network. The application to a bigger network is not possible without an approximation. Uncertainty in non-leaky scenarios can be computed as the difference between actual pressure measurements and estimations provided by hydraulic water distribution models when no leak is present in the system. When a leak is present in the system, leak detection methods provide an estimation of the range of the leak magnitude by the study of the change of the night flow. Then, the most challenging problem is to determine where the leak is. Model-based methods compare the behaviour of the observed residuals with the ones generated by the model considering all the possible leak locations. The most similar behaviour between the actual residuals and the theoretical ones determines the most probable leak location. As uncertainties are present in the system, they have to be taken into account to perform the leak localization. In this paper, it is proposed that the uncertainty observed in a non-leaky scenario can be extrapolated to leaky scenarios. In particular, the effect of the uncertainty in leaky scenarios can be approximated by the sum of the effect of nominal leak magnitude (provided by the leak detection) in residuals and the uncertainty computed in non-leaky scenarios. The rest of the paper is organized as follows. Section 2 reviews the leak localization methodology for water distri- 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes Warsaw, Poland, August 29-31, 2018 Copyright © 2018 IFAC 730 bution networks that is going to be assessed. In Section 3 it is presented the methodology to approximate leaky residual sets considering uncertainty and a correlation error is proposed to measure the effect of residual approximated. Confusion coefficients and an isolability indicator are proposed to assess leak localization methods in Section 3. The proposed methodology is applied to the simplified water distribution network of Hanoi that has been studied in several previous works of the group (Ferrandez-Gamot et al. (2015),Soldevila et al. (2016),Soldevila et al. (2017)) and the error of the approximation is assessed. 2. BACKGROUND Given the network boundary conditions hS∈ nSin the form of heads in nSnodes and the demands d∈ nn in the nnnodes of the network. Pressure in demand nodes ˆy ∈ ny, where nyis the number measured node pressures, can be computed as ˆy =gh(hS,d) (1) where gh:nS× nd→ nyis a non-linear hydraulic function. We consider in this work that leaks can appear in demand nodes and the effect of a leak in a node can be modeled as a change of the demand pattern. In a non-faulty scenario (i.e. non-leakage scenario) pressure in demand nodes ˆy nf ∈ nycan be computed using (1) considering normal pattern demand d=αqin (2) where α∈ nnis a vector that contains the weights of demand nodes α1,...α nnwith nn i=1 αi= 1 and qin ∈ is the total inflow. The difference between actual pressure measurements y and the predicted ones ˆy nf r=y−ˆy nf (3) that quantifies the consistency of the measurement with the model prediction is called a residual. We will also call it observed residual to distinguish it from predicted residual as it will bee seen later. If there is no uncertainty in model (1), the absence of leakage implies r= 0. In presence of leak in node ithe residual is: rfi=yfi−ˆy nf (4) In a leakage scenario, only the possibility of one leak of nominal value f0in an unknown node of the network is considered. The nnpredictions ˆy fi∈ ny, where subscript fiindicates a faulty scenario corresponding to a leak of nominal value f0in node i, can be computed using (1) considering a leak pattern demand d=α(qin −f0)+fi(5) with fi∈ nna vector whose components are zero except component iwhich is f0. The differences ˆr fi=ˆy fi−ˆy nf (6) are the predicted residuals for the nominal leak f0in node i. If there is no uncertainty in model (1) and the value of the unknown leak to be located is small enough, then the dependency of the observed residual rcan be supposed to be approximately linear in f rfi=ˆr fi·f f0 i=1...n n(7) Because of linearity of rfiin f, if vectors ˆr fiare linearly independent, then each ˆr ficharacterizes a different leak. Therefore a correlation measure to test linear dependency between rand ˆr fican be used to select the most consistent leak with r. Thus the selected leak is the one maximizing the correlation measure ρ(r,ˆr fi)= rT·ˆr fi rˆr fi(8) where .denotes the norm associated to the vector dot product. In this work the 2 norm is used. Note that if (7) has additive uncertainty, then the selection of ˆr fi by maximizing the correlation measure ρgives the least squares solution of (7). In Cuguer´o-Escofet et al. (2015) uncertainty in pattern demand components αii=1, ..., nnwas considered as αimin ≤αi≤αimax for 1 ≤i≤nn(9) subject to nn  i=1 αi= 1 (10) considering nominal demand d0=α0qin (11) where α0is a vector that contains nominal weights of demand nodes α0 1,...α 0 nn. The predicted residual calculated in (6) for the nominal weigths α0is ˆr 0 fi=ˆy 0 fi−ˆy 0 nf (12) Furthermore observed residual (4) considering uncertainty (9) can be bounded by a set rfi∈R fii=1...n n(13) where Rfi⊂ nyand ˆr 0 fi∈R fi. The evaluation of the correlation measures in (8) for all the observed residuals rfiin a set Rfiand nominal hypothesis ˆr 0 fj∀i, j =1,...,n ngives a matrix of intervals [ρ](Rfi,ˆr 0 fj). Rows and columns correspond to the bounding leaky residual sets and to the nominal theoretical leaky residual vectors, respectively. [ρ](Rfi,ˆr 0 fj)=   rT·ˆr 0 fj r  ˆr 0 fj   :r∈R fi    (14) A leak localization method based on a falsification process that considers uncertainty bounds in residuals was proposed in P´erez et al. (2016). This method is summarized in Algorithm 1. This algorithm provides the possible leak locations consistent with the considered residual uncertainty given the actual residual r, the nnnominal leak hypothesis ˆr 0 fiand correlation boundaries ρi,i, ρi,i between the uncertain set Rfiand nominal hypothesis ˆr 0 ficomputed as IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 731 Joaquim Blesa et al. / IFAC PapersOnLine 51-24 (2018) 730–735 731 bution networks that is going to be assessed. In Section 3 it is presented the methodology to approximate leaky residual sets considering uncertainty and a correlation error is proposed to measure the effect of residual approximated. Confusion coefficients and an isolability indicator are proposed to assess leak localization methods in Section 3. The proposed methodology is applied to the simplified water distribution network of Hanoi that has been studied in several previous works of the group (Ferrandez-Gamot et al. (2015),Soldevila et al. (2016),Soldevila et al. (2017)) and the error of the approximation is assessed. 2. BACKGROUND Given the network boundary conditions hS∈ nSin the form of heads in nSnodes and the demands d∈ nn in the nnnodes of the network. Pressure in demand nodes ˆy ∈ ny, where nyis the number measured node pressures, can be computed as ˆy =gh(hS,d) (1) where gh:nS× nd→ nyis a non-linear hydraulic function. We consider in this work that leaks can appear in demand nodes and the effect of a leak in a node can be modeled as a change of the demand pattern. In a non-faulty scenario (i.e. non-leakage scenario) pressure in demand nodes ˆy nf ∈ nycan be computed using (1) considering normal pattern demand d=αqin (2) where α∈ nnis a vector that contains the weights of demand nodes α1,...α nnwith nn i=1 αi= 1 and qin ∈ is the total inflow. The difference between actual pressure measurements y and the predicted ones ˆy nf r=y−ˆy nf (3) that quantifies the consistency of the measurement with the model prediction is called a residual. We will also call it observed residual to distinguish it from predicted residual as it will bee seen later. If there is no uncertainty in model (1), the absence of leakage implies r= 0. In presence of leak in node ithe residual is: rfi=yfi−ˆy nf (4) In a leakage scenario, only the possibility of one leak of nominal value f0in an unknown node of the network is considered. The nnpredictions ˆy fi∈ ny, where subscript fiindicates a faulty scenario corresponding to a leak of nominal value f0in node i, can be computed using (1) considering a leak pattern demand d=α(qin −f0)+fi(5) with fi∈ nna vector whose components are zero except component iwhich is f0. The differences ˆr fi=ˆy fi−ˆy nf (6) are the predicted residuals for the nominal leak f0in node i. If there is no uncertainty in model (1) and the value of the unknown leak to be located is small enough, then the dependency of the observed residual rcan be supposed to be approximately linear in f rfi=ˆr fi·f f0 i=1...n n(7) Because of linearity of rfiin f, if vectors ˆr fiare linearly independent, then each ˆr ficharacterizes a different leak. Therefore a correlation measure to test linear dependency between rand ˆr fican be used to select the most consistent leak with r. Thus the selected leak is the one maximizing the correlation measure ρ(r,ˆr fi)= rT·ˆr fi rˆr fi(8) where .denotes the norm associated to the vector dot product. In this work the 2 norm is used. Note that if (7) has additive uncertainty, then the selection of ˆr fi by maximizing the correlation measure ρgives the least squares solution of (7). In Cuguer´o-Escofet et al. (2015) uncertainty in pattern demand components αii=1, ..., nnwas considered as αimin ≤αi≤αimax for 1 ≤i≤nn(9) subject to nn  i=1 αi= 1 (10) considering nominal demand d0=α0qin (11) where α0is a vector that contains nominal weights of demand nodes α0 1,...α 0 nn. The predicted residual calculated in (6) for the nominal weigths α0is ˆr 0 fi=ˆy 0 fi−ˆy 0 nf (12) Furthermore observed residual (4) considering uncertainty (9) can be bounded by a set rfi∈R fii=1...n n(13) where Rfi⊂ nyand ˆr 0 fi∈R fi. The evaluation of the correlation measures in (8) for all the observed residuals rfiin a set Rfiand nominal hypothesis ˆr 0 fj∀i, j =1,...,n ngives a matrix of intervals [ρ](Rfi,ˆr 0 fj). Rows and columns correspond to the bounding leaky residual sets and to the nominal theoretical leaky residual vectors, respectively. [ρ](Rfi,ˆr 0 fj)=   rT·ˆr 0 fj r  ˆr 0 fj   :r∈R fi    (14) A leak localization method based on a falsification process that considers uncertainty bounds in residuals was proposed in P´erez et al. (2016). This method is summarized in Algorithm 1. This algorithm provides the possible leak locations consistent with the considered residual uncertainty given the actual residual r, the nnnominal leak hypothesis ˆr 0 fiand correlation boundaries ρi,i, ρi,i between the uncertain set Rfiand nominal hypothesis ˆr 0 ficomputed as IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 731 732 Joaquim Blesa et al. / IFAC PapersOnLine 51-24 (2018) 730–735 [ρ](Rfi,ˆr 0 fi)=[ρi,i, ρi,i] (15) that considering ˆr 0 fi∈R fiimplies ρi,i =1∀i=1, ..., nn. Algorithm 1 Leak localization algorithm Require: r,ˆr 0 fi,ρi,i i=1, ..., nn leak=ones for i=1...nn compute ρ(r,ˆr fi) if ρ(r,ˆr fi)<ρ i,i leak(i)=0 end end return leak As a result of Algorithm 1, Vector leak contains 1 for those leak hypothesis assigned with leak. As was proposed in Cuguer´o-Escofet et al. (2015) a straightforward way to transmit the uncertainty from demands to the residuals through the pressures is to generate a set of possible demand realizations d(l)l=1...N by means of Nrealizations of α(l) considering (9) and (10) and applying (5) for every different leak i=1...n n. Once the set of possible demand realizations have been generated, Nrealizations of pressure residuals ˆr fi(l)l=1...N can be computed following residual equation (6) as ˆr fi(l)=ˆy fi(l)−ˆy 0 nf l=1...N (16) where ˆy fi(l) is computed by means (1) considering demand d(l) with leak in node i(Eq. (5)). Then, residual set Rfican be approximated by the sampled set ˆ Rfi={ˆr fi(1),...,ˆr fi(N)}(17) As the cardinal Nof this set increases, the coverage of the set Rfiimproves. Once sampled sets ˆ Rfii=1, ..., nn are computed, compact zonotopic approximations of Rfi Blesa et al. (2012) can be computed as was proposed in Cuguer´o-Escofet et al. (2015). Once the sampled sets of possible residuals for each leak are generated, the correlation interval bounds ˆρi,i defined in (15) can be approximated using (14) and ˆ Rfias ˆρi,i = min rˆρ(r,ˆr 0 fi) subject to r∈ˆ Rfi (18) If we assume that the actual leak is fithe correlation of the residual rwith ˆr 0 fimust be inside this interval. 3. RESIDUAL UNCERTAINTY GENERATION In this Section a way to compute a sample set ˜ Rfi⊂ ny that approximates the set of residuals Rfifor every leak i=1, ..., nnis presented. This set considers only uncertainty in user demand weights and additive noise for simplicity and understanding, but it could be extended also to uncertainty in boundary conditions and leak magnitude. Given a set of measured data in a fault free scenario: ynf (l)l=1, ..., Nnf (19) that can be computed as ynf (l)=gh(hS,d(l)) + e(l)l=1, ..., Nnf (20) where e(l) is additive noise and d(l) are actual demand nodes computed as d(l)=α(l)qin (21) with α(l) actual user demand weights around α0. Then, the following fault free residuals can be computed as: rnf (l)=ynf (l)−ˆy 0 nf (22) The set that contains all computed residuals ˜ Rnf ={rnf (l)}l=1, ..., Nnf (23) belong to a set Rnf that bounds the actual residual uncertainty in fault free scenario. Another way to compute an approximation of ˜ Rnf would be by means of first order Taylor approximation: ynf (l)≈gh(hS,d0)+∂gh ∂d ∂d ∂α|hS,d=d0(α(l)−α0)+e(l) (24) Then, considering (22) and gh(hS,d0)=ˆy 0 nf rnf (l)≈∂gh ∂d ∂d ∂α|hS,d=d0(α(l)−α0)+e(l)(25) and with Nfrealizations of α(l) and e(l) in (25) approximation (23) can be computed. On the other hand, in a faulty scenario d=dfi 0=α0(qin −f0)+fi(26) yfi(l)≈gh(hS,dfi 0)+∂gh ∂d ∂d ∂α|hS,d=dfi 0(α(l)−α0)+ +e(l) (27) considering (4) with ˆy nf =ˆy 0 nf and gh(hS,dfi 0)=ˆy 0 fi rfi(l)≈ˆr 0 fi+∂gh ∂d ∂d ∂α|hS,d=d0 fi (α(l)−α0)+e(l)(28) as ∂gh ∂d ∂d ∂α|hS,d=dfi 0=∂gh ∂d|hS,d=dfi 0(qin −f0) and ∂gh ∂d ∂d ∂α|hS,d=d0=∂gh ∂d|hS,d=d0qin (29) considering small leak magnitudes f0<< qin that implies qin −f0≈qin and d0 fi≈d0. Therefore ∂gh ∂d|hS,d=dfi 0(qin −f0)≈∂gh ∂d|hS,d=d0qin (30) Then, rfi(l) can be approximated ∀l=1, ..., Nnf by rfi(l)≈ˆr 0 fi+rnf (l) (31) Finally, for every leak i=1, ..., nna sample set ˜ Rfithat approximates the set of residuals Rfican be computed by ˜ Rfi≈ˆr 0 fi+˜ Rnf (32) The main advantage of obtaining the approximation of leaky residual sets Rfiby means of Eq. (32) is that only IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 732 data in non leak scenario is necessary to determine the uncertainty of the model. The error of this approximation in a complex WDN is rather difficult to evaluate analytically. In this paper a case study for the the analysis of the effect of the approximation error in the leak localization performance will be used. 3.1 Correlation approximation error In order to measure the effects of the error of approximating residual sets Rfiby ˜ Rfifor i=1, ..., nn, an error ei,j that measures the difference between correlations obtained by real sets [ρ](Rfi,ˆr 0 fj)=[ρi,j, ρi,j][ρi,j] and by approximated sets [ρ]( ˜ Rfi,ˆr 0 fj) = [˜ρi,j,˜ρi,j ][˜ρi,j ] is defined ∀i, j =1, ..., nnas ei,j =ρi,j −ρi,j + ˜ρi,j −˜ρi,j −2lgth([ρi,j]∩[˜ρi,j]) ρi,j −ρi,j (33) where where lgth([a, b]) = b−a. This error term satisfies ei,j ≥0. If ei,j = 0 the possible errors between approximation set ˜ Rfiand real set Rfidoes not affect to the correlation interval between set of leak iand hypothesis j. From the different n2 nerror terms ei,j an average error e is defined as e=1 (nn)2 nn  i=1 nn  j=1 ei,j (34) 4. LEAK LOCALIZATION ASSESSMENT From leak localization Algorithm 1, it can be deduced that if residual sets Rfi∀iare calibrated properly, i.e. condition (13) is guaranteed for all possible leak residuals, the actual leak will never be rejected as hypothesis. However, the main problem of Algorithm 1 is that it can provide more than one leak location candidate i.e. residuals produced by a leak ican also be classified as another leak. Given [ρ](Rfi,ˆr 0 fj)∀i, j =1, ..., nn, for any pair of leaks i,ja confusion coefficient ci,j can be defined as ci,j =lgth([ρi,j]∩[ρj,j]) lgth([ρi,j]) (35) Confusion coefficient satisfies 0 ≥ci,j ≤1. If ci,j = 0 leak iis never classified as leak jand if ci,j = 1 leak iis always classified as leak j(for example ci,i =1∀i). Finally, if 0<c i,j <1 the value gives an idea about the probability of leak ibe classified by algorithm 1 as leak jin one time step. Therefore, condition [ρi,j]∩[ρj,j]=∅∀j=i(36) must be satisfied in order to guarantee that Algorithm 1 perfectly locates (without confusion) a leak iin one time step (ci,j =0 ∀j=i). In order to have a general idea about the degree of isolability an indicator δcan be defined as δ=nn i=1 nn j=i+1(1 −ci,j )+nn j=1 nn i=j+1(1 −ci,j ) (nn−1)2 (37) Indicator δsatisfies 0 ≤δ≤1. The two terms of the numerator in (37) appear because elements ci,j and cj,i can be different. X coordinate [m] -5000 0 5000 10000 Y coordinate [m] 0 2000 4000 6000 8000 10000 1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Reservoir Node Pipe Fig. 1. Hanoi topological network. 4.1 Assessment error Considering approximation sets ˜ Rfian approximation of confusion coefficient (35) can be computed as ˜ci,j =lgth([˜ρi,j ]∩[˜ρj,j ]) lgth([˜ρi,j ]) (38) On the other hand, an approximation ˜ δof isolability index δcan be obtained considering ˜ci,j instead of ci,j in (37). In order to measure the effect of the error in the leak localization assessment an error of the isolability indicator δcan be defined as eδ=nn i=1 nn j=i+1 |ci,j −˜ci,j|+nn j=1 nn i=j+1 |ci,j −˜ci,j| (nn−1)2 (39) 5. CASE STUDY In this section the proposed methodology is applied to the simplified model of the Hanoi DMA network. This simplified model, depicted in Fig. 1, consists of one reservoir, 34 pipes and 31 nodes. Two inner pressure sensors placed in nodes 14 and 30 have been considered enough for leak localization as it is detailed in Casillas et al. (2013), i.e. the dimension of the pressure measurement, estimation and residual vectors is ny= 2. The demand pattern in all demand nodes has been considered known but with an uncertainty of 1% (i.e, αimax −α0 i/α0 i=α0 i−αimin/α0 i=0.01), with a total water consumption qin = 5764l/s and a bounded sensor pressure additive noise |e(l)|≤1cm has been considered in both pressure sensors. Single-leak scenarios in the 31 nodes of the network have been considered in the leak localization performance. First, measure residual set ˜ Rnf ={rnf (l)}l=1, ..., Nnf is computed by means of (22) with ynf (l) generated by (20) considering Nnf = 1000 different realization of user demand weights α(l) and additive errors e(l) and ˆy 0 nf obtained considering nominal demand weights α0(l). The obtained measure residual set ˜ Rnf is depicted in Fig. 2. Once ˜ Rnf has been computed, approximated residuals ˜ Rfi≈˜ Rnf +ˆr 0 fii=1, ..., 31 have been computed for leak IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 733 Joaquim Blesa et al. / IFAC PapersOnLine 51-24 (2018) 730–735 733 data in non leak scenario is necessary to determine the uncertainty of the model. The error of this approximation in a complex WDN is rather difficult to evaluate analytically. In this paper a case study for the the analysis of the effect of the approximation error in the leak localization performance will be used. 3.1 Correlation approximation error In order to measure the effects of the error of approximating residual sets Rfiby ˜ Rfifor i=1, ..., nn, an error ei,j that measures the difference between correlations obtained by real sets [ρ](Rfi,ˆr 0 fj)=[ρi,j, ρi,j][ρi,j] and by approximated sets [ρ]( ˜ Rfi,ˆr 0 fj) = [˜ρi,j,˜ρi,j ][˜ρi,j ] is defined ∀i, j =1, ..., nnas ei,j =ρi,j −ρi,j + ˜ρi,j −˜ρi,j −2lgth([ρi,j]∩[˜ρi,j]) ρi,j −ρi,j (33) where where lgth([a, b]) = b−a. This error term satisfies ei,j ≥0. If ei,j = 0 the possible errors between approximation set ˜ Rfiand real set Rfidoes not affect to the correlation interval between set of leak iand hypothesis j. From the different n2 nerror terms ei,j an average error e is defined as e=1 (nn)2 nn  i=1 nn  j=1 ei,j (34) 4. LEAK LOCALIZATION ASSESSMENT From leak localization Algorithm 1, it can be deduced that if residual sets Rfi∀iare calibrated properly, i.e. condition (13) is guaranteed for all possible leak residuals, the actual leak will never be rejected as hypothesis. However, the main problem of Algorithm 1 is that it can provide more than one leak location candidate i.e. residuals produced by a leak ican also be classified as another leak. Given [ρ](Rfi,ˆr 0 fj)∀i, j =1, ..., nn, for any pair of leaks i,ja confusion coefficient ci,j can be defined as ci,j =lgth([ρi,j]∩[ρj,j]) lgth([ρi,j]) (35) Confusion coefficient satisfies 0 ≥ci,j ≤1. If ci,j = 0 leak iis never classified as leak jand if ci,j = 1 leak iis always classified as leak j(for example ci,i =1∀i). Finally, if 0<c i,j <1 the value gives an idea about the probability of leak ibe classified by algorithm 1 as leak jin one time step. Therefore, condition [ρi,j]∩[ρj,j]=∅∀j=i(36) must be satisfied in order to guarantee that Algorithm 1 perfectly locates (without confusion) a leak iin one time step (ci,j =0 ∀j=i). In order to have a general idea about the degree of isolability an indicator δcan be defined as δ=nn i=1 nn j=i+1(1 −ci,j )+nn j=1 nn i=j+1(1 −ci,j ) (nn−1)2 (37) Indicator δsatisfies 0 ≤δ≤1. The two terms of the numerator in (37) appear because elements ci,j and cj,i can be different. X coordinate [m] -5000 0 5000 10000 Y coordinate [m] 0 2000 4000 6000 8000 10000 1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Reservoir Node Pipe Fig. 1. Hanoi topological network. 4.1 Assessment error Considering approximation sets ˜ Rfian approximation of confusion coefficient (35) can be computed as ˜ci,j =lgth([˜ρi,j ]∩[˜ρj,j ]) lgth([˜ρi,j ]) (38) On the other hand, an approximation ˜ δof isolability index δcan be obtained considering ˜ci,j instead of ci,j in (37). In order to measure the effect of the error in the leak localization assessment an error of the isolability indicator δcan be defined as eδ=nn i=1 nn j=i+1 |ci,j −˜ci,j|+nn j=1 nn i=j+1 |ci,j −˜ci,j| (nn−1)2 (39) 5. CASE STUDY In this section the proposed methodology is applied to the simplified model of the Hanoi DMA network. This simplified model, depicted in Fig. 1, consists of one reservoir, 34 pipes and 31 nodes. Two inner pressure sensors placed in nodes 14 and 30 have been considered enough for leak localization as it is detailed in Casillas et al. (2013), i.e. the dimension of the pressure measurement, estimation and residual vectors is ny= 2. The demand pattern in all demand nodes has been considered known but with an uncertainty of 1% (i.e, αimax −α0 i/α0 i=α0 i−αimin/α0 i=0.01), with a total water consumption qin = 5764l/s and a bounded sensor pressure additive noise |e(l)|≤1cm has been considered in both pressure sensors. Single-leak scenarios in the 31 nodes of the network have been considered in the leak localization performance. First, measure residual set ˜ Rnf ={rnf (l)}l=1, ..., Nnf is computed by means of (22) with ynf (l) generated by (20) considering Nnf = 1000 different realization of user demand weights α(l) and additive errors e(l) and ˆy 0 nf obtained considering nominal demand weights α0(l). The obtained measure residual set ˜ Rnf is depicted in Fig. 2. Once ˜ Rnf has been computed, approximated residuals ˜ Rfi≈˜ Rnf +ˆr 0 fii=1, ..., 31 have been computed for leak IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 733 734 Joaquim Blesa et al. / IFAC PapersOnLine 51-24 (2018) 730–735 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 Pressure residual in node 14 [m] -0.1 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 0.1 Pressure residual in node 30 [m] Fig. 2. Approximate non-faulty residual set ˜ Rnf = {rnf (l)}l=1, ..., Nnf . -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 Pressure residual in node 14 [m] -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 Pressure residual in node 30 [m] Leak 1 Leak 2 Leak 3 Leak 4 Leak 5 Leak 6 Leak 7 Leak 8 Leak 9 Leak 10 Leak 11 Leak 12 Leak 13 Leak 14 Leak 15 Leak 16 Leak 17 Leak 18 Leak 19 Leak 20 Leak 21 Leak 22 Leak 23 Leak 24 Leak 25 Leak 26 Leak 27 Leak 28 Leak 29 Leak 30 Leak 31 Fig. 3. Residuals considering leak magnitude 10[l/s]. -2 -1.5 -1 -0.5 0 0.5 1 Pressure residual in node 14 [m] -2 -1.5 -1 -0.5 0 0.5 1 Pressure residual in node 30 [m] Leak 1 Leak 2 Leak 3 Leak 4 Leak 5 Leak 6 Leak 7 Leak 8 Leak 9 Leak 10 Leak 11 Leak 12 Leak 13 Leak 14 Leak 15 Leak 16 Leak 17 Leak 18 Leak 19 Leak 20 Leak 21 Leak 22 Leak 23 Leak 24 Leak 25 Leak 26 Leak 27 Leak 28 Leak 29 Leak 30 Leak 31 Fig. 4. Residuals considering leak magnitude 50[l/s]. magnitudes f0from 10l/s to 50l/s. Approximated residual leak sets ˜ Rfii=1, ..., 31 are depicted for f0= 10l/s (Fig. 3) and for f0= 50l/s (Fig. 4). In order to assess the approximation error, residual sets Rfihave been computed by a set of residuals {rfi(1),...,rfi(N)}generated by means of (4) considering N=1000 realizations of user demands (5) and additive noise e(l) as proposed in Cuguer´o-Escofet et al. (2015). Then, the average correlation error edefined in (34) and the isolability indicator error eδdefined in (39) have been computed for the different leak magnitudes. The evolution of these two errors is depicted in Fig. 5. As it can be 10 15 20 25 30 35 40 45 50 leak Magnitude [l/s] 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 Error Average error e Average error e Fig. 5. Error approximations. 10 15 20 25 30 35 40 45 50 leak Magnitude [l/s] 0.4 0.5 0.6 0.7 0.8 0.9 1 Isolability Fig. 6. Isolability Index and approximation seen the average correlation error eincreases with the leak magnitude. However the effect of this error in the isolability indicator error eδdecreases with the leak magnitude. This fact is due to despite the approximation error increases with the leak magnitude, the residual sets are more separated and the effect of errors in correlation is smaller. The evolution of the isolability index δdefined in (37) and its approximated value ˜ δis depicted in Fig. 6, as it can be seen the index and its approximation increase with the leak magnitude and their difference is almost imperceptible. 6. CONCLUSIONS This work proposes one method of modeling the effect of uncertainties in water distribution networks for modelbased leak localization purposes. Model-based leak localization are based in the evaluation of residual between actual measurements and values provided by a model. The main problem of these methods is that residuals can be different from zero even in the absence of leaks due to differences between the operation of the WDN and the mathematical model. In this work we consider that the causes of these differences are the unknown distribution of demand and sensor noises. The proposed method is based on the computation of a set of residuals when the WDN is operating in the absence of leaks. Then, by means a IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 734 linear Taylor approximation the possible sets of residuals considering the different leak scenarios are computed by adding the nominal residual generated with nominal demand distribution to the set of residuals of the nonleak scenario. Therefore, the extrapolation of uncertainty measurements in non-leak scenario to the different leaky scenarios spares a great amount of simulation scenarios. On the other hand, confusion coefficients and isolability index are defined to assess the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis. Confusion coefficients ci,j give an idea about the probability of classifying leak ias leak jand isolability index δgives an idea about the probability of providing an exact leak localization in one time step. The proposed approximation is applied to a simplified model of the WDN of Hanoi (Vietnam). By means of simulation, the results obtained with the proposed approximated sets are compared with the ones obtained with the real sets obtained by means of simulation. Different leak sizes are considered and despite the error in terms of correlation increases with the leak size the effect of this error in the isolability indicator error decreases with the leak magnitude and it is always small enough to consider the approximation a suitable approximation. Finally, as a future work we plan to apply the proposed methodology to a real WDN considering other causes of uncertainty in boundary conditions and in leak magnitude. REFERENCES Blesa, J., Puig, V., and Saludes, J. (2012). Robust identification and fault diagnosis based on uncertain multiple input-multiple output linear parameter varying parity equations and zonotopes. Journal of Process Control, 22(10), 1890–1912. Casillas, M.V., Puig, V., Garza-Casta˜n´on, L.E., and Rosich, A. (2013). Optimal sensor placement for leak location in water distribution networks using genetic algorithms. Sensors, 13(11), 14984–15005. Colombo, A.F., Lee, P., and Karney, B.W. (2009). A selective literature review of transient-based leak detection methods. Journal of Hydro-environment Research, 2(4), 212–227. doi:10.1016/j.jher.2009.02.003. Cuguer´o-Escofet, P., Blesa, J., P´erez, R., Cuguer´o-Escofet, M.` A., and Sanz, G. (2015). Assessment of a leak localization algorithm in water networks under demand uncertainty. IFAC-PapersOnLine, 48(21), 226 – 231. Ferrandez-Gamot, L., Busson, P., Blesa, J., Tornil-Sin, S., Puig, V., Duviella, E., and Soldevila, A. (2015). Leak localization in water distribution networks using pressure residuals and classifiers. IFAC-PapersOnLine, 48(21), 220 – 225. Gertler, J. (1998). Fault Detection and Diagnosis in Engineering Systems. CRC Press. Goulet, J.A., Coutu, S., and Smith, I.F. (2013). Model falsification diagnosis and sensor placement for leak detection in pressurized pipe networks. Advanced Engineering Informatics, 27(2), 261–269. P´erez, R., Cuguer´o-Escofet, J., Blesa, J., Cuguer´o-Escofet, M.A., and Sanz, G. (2016). Uncertainty effect on leak localisation in a dma. In 2016 3rd Conference on Control and Fault-Tolerant Systems (SysTol), 319–324. P´erez, R., Puig, V., Pascual, J., Quevedo, J., Landeros, E., and Peralta, A. (2011). Methodology for leakage isolation using pressure sensitivity analysis in water distribution networks. Control Engineering Practice, 19(10), 1157–1167. P´erez, R., Sanz, G., Cuguer´o, M.` A., Blesa, J., and Cuguer´o, J. (2015). Parameter Uncertainty Modelling in Water Distribution Network Models. Procedia Engineering, 119, 583–592. Perez, R., Sanz, G., Quevedo, J., Nejjari, F., Meseguer, J., Cembrano, G., Tur, J.M.M., and Sarrate, R. (2014). Leak Localization in Water Networks. IEEE CONTROL SYSTEMS MAGAZINE, (august), 24–36. Quevedo, J., Cuguer´o, M., P´erez, R., Nejjari, F., Puig, V., and Mirats, J. (2011). Leakage Location in Water Distribution Networks based on Correlation Measurement of Pressure Sensors. In 8th IWA Symposium on Systems Analysis and Integrated Assessment, 290–297. IWA, San Sebasti´an. Sanz, G. and P´erez, R. (2015). Sensitivity Analysis for Sampling Design and Demand Calibration in Water Distribution Networks Using the Singular Value Decomposition. Journal of Water Resources Planning and Management, 04015020. Soldevila, A., Blesa, J., Tornil-Sin, S., Duviella, E., Fernandez-Canti, R.M., and Puig, V. (2016). Leak localization in water distribution networks using a mixed model-based/data-driven approach. Control Engineering Practice, 55, 162 – 173. Soldevila, A., Fernandez-Canti, R.M., Blesa, J., Tornil- Sin, S., and Puig, V. (2017). Leak localization in water distribution networks using Bayesian classifiers. Journal of Process Control, 55, 1–9. van Thienen, P., Pieterse-Quirijns, I., Vreeburg, J., Vangeel, K., and Kapelan, Z. (2013). Applications of discriminative flow pattern analysis using the cfpd method. Water Science and Technology: Water Supply, 13(4), 906–913. Wu, Z. and Sage, P. (2006). Water Loss Detection Via Genetic Algorithm Optimization-Based Model Calibration. In ASCE 8th International Symposium on Water Distribution System Analysis. Cincinnati. IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 735 Joaquim Blesa et al. / IFAC PapersOnLine 51-24 (2018) 730–735 735 linear Taylor approximation the possible sets of residuals considering the different leak scenarios are computed by adding the nominal residual generated with nominal demand distribution to the set of residuals of the nonleak scenario. Therefore, the extrapolation of uncertainty measurements in non-leak scenario to the different leaky scenarios spares a great amount of simulation scenarios. On the other hand, confusion coefficients and isolability index are defined to assess the effect of uncertainty in the performance of leak localization methods based on residual correlation analysis. Confusion coefficients ci,j give an idea about the probability of classifying leak ias leak jand isolability index δgives an idea about the probability of providing an exact leak localization in one time step. The proposed approximation is applied to a simplified model of the WDN of Hanoi (Vietnam). By means of simulation, the results obtained with the proposed approximated sets are compared with the ones obtained with the real sets obtained by means of simulation. Different leak sizes are considered and despite the error in terms of correlation increases with the leak size the effect of this error in the isolability indicator error decreases with the leak magnitude and it is always small enough to consider the approximation a suitable approximation. Finally, as a future work we plan to apply the proposed methodology to a real WDN considering other causes of uncertainty in boundary conditions and in leak magnitude. REFERENCES Blesa, J., Puig, V., and Saludes, J. (2012). Robust identification and fault diagnosis based on uncertain multiple input-multiple output linear parameter varying parity equations and zonotopes. Journal of Process Control, 22(10), 1890–1912. Casillas, M.V., Puig, V., Garza-Casta˜n´on, L.E., and Rosich, A. (2013). Optimal sensor placement for leak location in water distribution networks using genetic algorithms. Sensors, 13(11), 14984–15005. Colombo, A.F., Lee, P., and Karney, B.W. (2009). A selective literature review of transient-based leak detection methods. Journal of Hydro-environment Research, 2(4), 212–227. doi:10.1016/j.jher.2009.02.003. Cuguer´o-Escofet, P., Blesa, J., P´erez, R., Cuguer´o-Escofet, M.` A., and Sanz, G. (2015). Assessment of a leak localization algorithm in water networks under demand uncertainty. IFAC-PapersOnLine, 48(21), 226 – 231. Ferrandez-Gamot, L., Busson, P., Blesa, J., Tornil-Sin, S., Puig, V., Duviella, E., and Soldevila, A. (2015). Leak localization in water distribution networks using pressure residuals and classifiers. IFAC-PapersOnLine, 48(21), 220 – 225. Gertler, J. (1998). Fault Detection and Diagnosis in Engineering Systems. CRC Press. Goulet, J.A., Coutu, S., and Smith, I.F. (2013). Model falsification diagnosis and sensor placement for leak detection in pressurized pipe networks. Advanced Engineering Informatics, 27(2), 261–269. P´erez, R., Cuguer´o-Escofet, J., Blesa, J., Cuguer´o-Escofet, M.A., and Sanz, G. (2016). Uncertainty effect on leak localisation in a dma. In 2016 3rd Conference on Control and Fault-Tolerant Systems (SysTol), 319–324. P´erez, R., Puig, V., Pascual, J., Quevedo, J., Landeros, E., and Peralta, A. (2011). Methodology for leakage isolation using pressure sensitivity analysis in water distribution networks. Control Engineering Practice, 19(10), 1157–1167. P´erez, R., Sanz, G., Cuguer´o, M.` A., Blesa, J., and Cuguer´o, J. (2015). Parameter Uncertainty Modelling in Water Distribution Network Models. Procedia Engineering, 119, 583–592. Perez, R., Sanz, G., Quevedo, J., Nejjari, F., Meseguer, J., Cembrano, G., Tur, J.M.M., and Sarrate, R. (2014). Leak Localization in Water Networks. IEEE CONTROL SYSTEMS MAGAZINE, (august), 24–36. Quevedo, J., Cuguer´o, M., P´erez, R., Nejjari, F., Puig, V., and Mirats, J. (2011). Leakage Location in Water Distribution Networks based on Correlation Measurement of Pressure Sensors. In 8th IWA Symposium on Systems Analysis and Integrated Assessment, 290–297. IWA, San Sebasti´an. Sanz, G. and P´erez, R. (2015). Sensitivity Analysis for Sampling Design and Demand Calibration in Water Distribution Networks Using the Singular Value Decomposition. Journal of Water Resources Planning and Management, 04015020. Soldevila, A., Blesa, J., Tornil-Sin, S., Duviella, E., Fernandez-Canti, R.M., and Puig, V. (2016). Leak localization in water distribution networks using a mixed model-based/data-driven approach. Control Engineering Practice, 55, 162 – 173. Soldevila, A., Fernandez-Canti, R.M., Blesa, J., Tornil- Sin, S., and Puig, V. (2017). Leak localization in water distribution networks using Bayesian classifiers. Journal of Process Control, 55, 1–9. van Thienen, P., Pieterse-Quirijns, I., Vreeburg, J., Vangeel, K., and Kapelan, Z. (2013). Applications of discriminative flow pattern analysis using the cfpd method. Water Science and Technology: Water Supply, 13(4), 906–913. Wu, Z. and Sage, P. (2006). Water Loss Detection Via Genetic Algorithm Optimization-Based Model Calibration. In ASCE 8th International Symposium on Water Distribution System Analysis. Cincinnati. IFAC SAFEPROCESS 2018 Warsaw, Poland, August 29-31, 2018 735