1. Introduction
A significant part of the water produced for urban consumption is lost across supply systems between sources and final consumers. These losses range from less than 20% in developed countries up to 50% in developing nations [
1]. Non-revenue water losses naturally increase through the normal operation of systems because of their gradual deterioration, which gives rise to physical losses. In this paper we are interested in breaks occurring in water networks that lead those systems to operate under conditions sometimes far away from the design conditions. Specifically, we are concerned about fast restoration of system efficiency, in other words, to make the time elapsed between the report of a new break and its effective location and repair—defined as run time—be as short as possible.
Due to the importance of this problem, many studies have sought for solutions to reduce water loses derived from leakage and pipe bursts; see, for example, [
2,
3,
4,
5,
6,
7]. Moreover, during the last decades, the improvements in the information and communication technologies applied to water distribution systems (WDSs) have enabled the production of substantial amounts of data, most of it related to the hydraulic state of the network. A number of smart solutions have been developed in the wake. In urban hydraulics, for example, pressure and flow data have been used to identify and locate leakage and bursts, as observed in many works in the literature [
4,
5,
6,
7]. Special attention has been given to transient pressure signals [
8,
9]. Machine learning techniques and statistical inference of the inflows into a system have also been applied, especially in real-time control and monitoring [
10,
11,
12,
13].
A transient flow model to detect and locate pipe bursts is proposed by [
14]. The method is integrated by two modules. By filtering demand fluctuations, the first module is responsible for monitoring and evaluating the inflows into the network. The second module locates the water loss. Flows identified as losses are added to the consumption demands, and an objective function, defined as the square of the difference between measured and observed pressures, is evaluated. The lowest value of this function points to the node in which the burst occurred. All the nodes are considered potential loss points, although more than one burst occurring simultaneously is not studied.
Calibration processes of water networks have also been used to detect and locate pipe bursts and leaks. Calibration is a fundamental process for many applications of water distribution system analysis. With calibration methods, open parameters, such as roughness, leakage, and pressure wave speed propagation are adjusted. Online calibration of nodal demand [
5,
15] typically uses least squares and geographically allocated demand. The increase of the final nodal demand results in impaired identification.
The inverse transient method was used in [
5] for roughness and leakage calibration and used a genetic algorithm (GA) in the optimization process. The authors proposed a hybrid optimization model based on a GA and Levenberg–Marquardt theory, resulting in a more accurate solution, when compared with a single optimization algorithm.
During the last decade, the use of machine learning approaches for leakage detection and location has witnessed a notable increase. For example, [
16] used simulated data of steady state flow to train a multi-class support vector machine aiming to identify leakage areas. The authors highlighted the efficiency of their approach using nonlinear pattern recognition tools to locate water losses.
Flow and pressure data were processed by both static and dynamic artificial neural networks (ANNs) to detect pipe bursts in water systems in [
17]. Bursts were simulated by hydrant maneuvers, with data generated for every minute. The accuracy to detect pipe bursts was closely related to the capacity of the ANNs to process the non-linearities associated to the hydraulic parameters.
Frequency analyses of transient pressure signals can also be used for leakage location, as shown in [
18]. However, the authors highlighted that these analyses heavily rely on an extremely precise transient model for a good evaluation of the integrity of the system—something which is challenging due to the existence of leaks in several locations, and to the nature of various magnitudes, thus limiting the method’s application to real systems.
The standing wave difference method was applied in [
19] to locate leaks in pipelines. The authors used pressure signal and spectral analysis of maximum pressure amplitude to identify the leakage locations.
A wavelet-based analysis was performed in [
20] to process transient pressure data to detect and locate pipe bursts in WDSs. The location of a burst was accomplished by a graph-based algorithm, which used the arrival time of the pressure wave to locate the various measurement points.
A study of bursts in WDSs with various loading conditions was presented in [
12]. The transient pressure signals were evaluated at various points, and the results revealed, for the same burst, different behaviors of the observed pressures at those points. This technique enabled a correlation to be identified between the amplitude of the pressure signal and its proximity to the lossy point.
Considering the intrinsic behavior of a transient pressure signal, the present work proposes water loss location based on the pressure signal information resulting from arbitrary pipe bursts. The representation of the pressure signals is considered under three arrangements: (i) the entire pressure series, including data of the initial and final steady-state conditions; (ii) a symbolic representation of this time series using the SAX technique, with a discrete series based on 20 pressure levels; and (iii) the peak information of the pressure signal at the sensors, represented by just the maximum pressure drop, and the time interval between the initial steady-state condition and that peak. Using simulated data for a range of bursts in all nodes of the network, an ANN is trained using as input the representation of the pressure signal of a limited number of sensors placed in the network. The output is the node where the burst occurred together with the leaked volume. To improve the location accuracy, a clustering process is performed using a hybridization of a self-organizing map (SOM) and a k-means methodology, whereby similar pressure signals are grouped. Finally, specific ANNs are trained for each pressure cluster, which improves the computational efficiency and the location accuracy. This tool, as a real-time control mechanism using pressure signals from the distributed sensors, will improve management in water distribution by rapidly identifying location and magnitude of bursts.
The paper is organized as follows.
Section 2 provides a succinct description of materials and methods. Then the two real-world networks used for testing are described in
Section 3, and the obtained results are also reported and discussed. Finally, conclusions are given in
Section 4, before closing the paper with the Section of references.
2. Materials and Methods
2.1. Pipe Bursts and Transient Flow Modeling
The literature presents several methods for modeling leaks in a water network, using both steady and unsteady state modeling, and a suitable orifice area approximation for leakage flows [
21,
22,
23]. In this paper, to create a relevant and reliable database of transient pressure signals, simulated results from pipe bursts were used. Also, a realistic leakage modeling, which considers pressure-dependent flow through the break, following the model proposed by [
23], was used (Equation 1). To accommodate leaked flow within an expected range of 5–10% of the total inflow, the break area,
, was adjusted for each simulation.
In Equation (1), is the leaked flow, is the discharge coefficient, is the gravity acceleration, is the area of the break, is the available head, and the pressure–area coefficient.
A pipe burst causes an instantaneous pressure drop at the break point, which is transmitted to the entire network. The event creates a pressure signal in each node with a unique amplitude and time delay according to its distance from the burst location, the size of the break and the various pipes characteristics (diameter, material and thickness). The signal propagation is modeled from the Eulerian viewpoint by means of the system of partial differential equations obtained when the momentum and mass conservation laws are applied to a pipe flow. The method of characteristics (MOC) [
24] is used to solve that system of equations. The MOC transforms the system into an ordinary differential problem, and integration can be performed using some discretization in the space-time plane. This discretization should meet the Courant stability criterion [
14], namely
, where
and
are the discretization step sizes for space and time, respectively, and
is the wave speed.
Differently from single pipelines, in water distribution networks the upstream and downstream sections of a pipe can be connected to various other pipes and control elements, such as pumps and valves. Pipe internal calculation points were defined by the pipe discretization, and pressure and flow values at those points were calculated using information propagated by the positive and negative characteristic lines (Equations (2)–(4)) [
25].
In these equations, and are the hydraulic head at an internal point and the flow through an internal point, respectively, at time ; and are the hydraulic head of the upstream and downstream internal points, respectively, at time ; and are the flow of the upstream and downstream internal points, respectively, at time ; B is a pipe constant; R is the pipe resistance coefficient, linked to the hydraulic head loss equation; and are the coefficients of the positive characteristic line; and and are the coefficients of the negative characteristic line.
For the end points, the procedure presented in [
18] was used, where the continuity law is applied for a generic node, as presented in
Figure 1. The flow of a convergent pipe has a positive signal and can be calculated using a positive characteristic line, while a divergent pipe has a negative signal and the negative characteristic line is used. Accordingly, Equation (5) is obtained, which is applied to any node.
Here,
and
are the numbers of converging and diverging pipes, respectively, connected to the node;
and
indicate that coefficients correspond to pipes
and
, respectively;
is the hydraulic head on the node;
is the flow through a non-pipe element;
and
are the expressions in brackets in Equation (5); and
is the nodal demand at time
.
2.2. Database Creation and Proposed Models
To create the database to train the various ANNs, each node of the studied networks was considered as a potential bursting point. Ten values for the leaked flow were simulated, considering that their intensity may range from 5% to 10% of the total inflow of the network. The signal includes information of the initial and final steady-state conditions. A discretization time step of 0.01 s was used. For all the presented methods, the time series used as input corresponded to 60 s and contained information about the entire relevant transient.
For the first model, named LOCP (standing for location method using pressures), the original series of the pressure signals was used as input, resulting in 6000 to 60,000 data points. This method contains very detailed information about the signal and can result in redundancies for the ANN.
The second method, named LOCSAX (standing for location method using SAX), which represents time series though strings, tries to fix this drawback by using symbolic aggregate approximation (SAX) [
26] to reduce the amount of information by using a small number of symbols. The representation of time series using symbols has attracted interest in several areas of knowledge, such as computer science, astronomy and medicine, to deal with problems of clustering, classification, indexing and detection of anomalies. Several techniques of symbolic representation of time series for data mining have been proposed in the last decades. Some of them exhibit difficulties derived from the dimensionality of the problems, as they maintain the same dimension of the original data, thus also maintaining the same scale of the problem [
26]. SAX is applied in [
27] to forecast water demand in WDSs. This technique transforms a time series into a string with reduced data dimensionality, while still providing great ability to compare similarities between time series and to discriminate between them. The pressure time series is divided into a number of
segments, and the average value of each segment is classified into one of the
letters of an alphabet, as exemplified in
Figure 2.
In this work, the number of characters representing the time series varied from 5 to 20, with and being the best combination. Thus, the input for the ANN is a vector containing just characters.
Finally, the third method, named LOCPEAKS (standing for location method using peak pressure information), uses only the most salient information of the transient pressure signal, namely the maximum pressure drop observed (
) and the time delay for the pressure sensor to record this value (
), as illustrated in
Figure 3. Although this method contains the essential information about the pressure transient, its limited information can make it difficult for the ANN to distinguish bursts occurring in nodes with similar conditions of flow, elevation and distance to the monitoring points.
In the three methods, the output response of the ANN is the index of the node where the burst occurred and its leaked flow.
2.3. ANN Training for Burst Location
ANNs have been successfully applied in non-linear multivariable function approximations, and as classifiers. The ANN’s ability to predict patterns has found success in practical applications such as WDS calibration and demand forecasting [
28,
29]. The ANN training process followed the flowchart presented in
Figure 4. The database containing the pressure signal together with the location and intensity of the lost flows was loaded and then the representation method was selected. After the preprocessing of the pressure signal according to the selected method, 50% of the database was used for training, 35% for validation, and the remaining 15% was used for testing. The ANN was built with three hidden layers, and with a (20, 40, 20) layer-architecture of neurons. The Levenberg–Marquardt technique was used to obtain the synaptic weights of the neurons, and the stop criteria was set to 500 epochs or a relative change of less than 10
−8.
2.4. Clustering Pressure Signal to Improve ANN Efficiency
Each pipe burst creates a unique pressure signal input in each sensor placed in the WDS. Yet, when a pipe burst occurs with different intensity, the shape of the pressure signal is very similar, with just a slight difference in the peaks. In addition, when bursts in two pipes have the same intensity, the respective pressure signals are very similar as well, with some transmission lag. As a result, it is possible to cluster the observed signals, and train specific ANNs for each group, thus reducing the error in the burst location.
To define the clusters, the hybrid methodology proposed by the authors in [
30], using SOMs coupled with the
k-means algorithm, was used. The neurons obtained using SOMs cluster the input data by their similarity. Calculating the distance between each neuron and the input data, a dissimilarity matrix can be created:
This matrix can be used as input for the
k-means algorithm, where various numbers of clusters are considered. Here
is the neuron
-vector of synaptic weights; and
is the input
-vector. For this study, the architecture of the SOM was defined following the discussions presented in [
30], based on a tradeoff between the quantization error and the training time. The topology followed a hexagonal distribution. The SOM with the best tradeoff had 16 neurons.
Finally, the
index [
31], shown in Equation (7), was calculated to determine the optimal number of clusters.
In Equation (7), is the number of elements of cluster ; is an element in cluster ; is the centroid of all input data; is the number of clusters; and is the number of input data.
4. Conclusions
The resilience of a WDS strongly depends on good conditions of design, installation and maintenance. However, in operational terms, the reduction of run times of potential bursts allows the reduction of volumes lost in break events which also helps maintain good resilience standards. The pressure signals caused by bursts have an important correlation with their location and magnitude, thus stamping a "hydraulic signature" of these events. For this signature to provide reliable information, the network must be suitably calibrated. Otherwise, the associated uncertainty in pipe characteristics, such as material, age and effective diameter, with well-known great influence on the propagation speed of transient signals, would blur the obtained results, thus turning them useless. In our study we have performed simulations on two networks with perfectly defined characteristics.
In this paper, the use of ANNs as pattern recognizers has succeeded in the identification of hydraulic patterns of various tested bursts. The proposed methods allow the detection and location of bursts in WDSs, after analyzing the characteristics of the transient signals using data acquisition rates compatible with commercial equipment (of the order of 1 kHz), and without the need to measure the inlet flow to the system, which is more difficult to acquire at higher frequencies. The results showed that the LOCP method is the most accurate method to locate bursts. Although the data used to train the ANN are significantly larger for this method, the complete signal appears to contain relevant information that is not well described by the other two methods. Both LOCSAX and LOCPEAKS are able to estimate the burst location with less effort, however these methods are less accurate than LOCP. Even though the use of the complete transient data increases the effort to train the ANNs, this procedure has to be done only once, with the network re-trained sporadically upon the arrival of new data or after modifications in the network topology. Furthermore, the use of clusters to improve the accuracy for burst location estimation reduces the number of data to train the ANNs since thanks to data similarities, the training process is easier. Finally, the clustering of transient signals increased the performance of all three methods and showed that, even in a reduced monitoring scenario, burst location was satisfactory.
In practical terms, this situation contributes to technical and economic feasibility of networks for fast location of breaks, by means of commercially available pressure measurement equipment with very affordable costs compared to flowmeters with the same accuracy. The methods have been tested on two small and medium size networks, which could be seen as district metered areas of larger networks. As a result, we recognize that the application of the proposed methods may be limited by the network size. However, when using transient pressure signals, the effect of a water loss probably will not be detected by a sensor far from the DMA where the burst occurs. This is because of the attenuation process of the pressure wave due to the friction effects. In addition, a larger network is likely to have more pressure sensors available, thus there is more information to process in the ANN training, allowing a broader coverage of the network. As future works, it is recommended to evaluate the methods considering entire large networks using different sampling frequencies for sensors, which will enrich the methodology presented with analyses of the uncertainty derived from pressure sensors in high frequency data acquisition.