1 Introduction

The concept of Smart Water Network (SWN) is relatively new, but it has been recognised as a tremendous opportunity for water authorities to achieve significant financial savings and address global issues such as water safety and quality (Walsby 2013). Research and development related to SWN has intensified in the past decade, covering diverse topics such as leak detection and management (Stoianov et al. 2007; Gupta and Kulat 2018), pipe break detection (Allen et al. 2012), smart metering (Savić et al. 2014), sewer overflow monitoring and prevention (Boulos 2017) and wireless sensor networks (Obeid et al. 2016).

With regard to leak detection in water distribution systems (WDSs), acoustic techniques using portable acoustic correlators and listening devices (e.g. ground microphones and listening sticks) are the most commonly used (Gupta and Kulat 2018). Because the implementation is labour intensive, they are typically used only when leaks are suspected in a specific pipe or in a small area. Recent development of wireless acoustic and pressure sensors have enabled long-term/permanent installation and regular/continuous monitoring for leak and pipe break detection in water pipelines (Obeid et al. 2016). The sudden failure of a pipe will introduce short-lived transient pressure waves with specific characteristics that propagate along the pipe, which can be measured by multiple transient pressure sensors for event detection and triangulation of the source (Srirangarajan et al. 2013). However, small pipe breaks (<5 L/s discharge) are difficult to detect because the critical information embedded in the break-induced transient wave can be significantly compromised by wave dissipation and dispersion (Gong et al. 2018). In addition, pipe break detection is still a reactive practice, since it only reports the incident after its occurrence.

Regular/continuous monitoring by distributed acoustic sensors, such as accelerometers or hydrophones, is considered to be more suitable for the detection of smaller leaks for SWNs. Stoianov et al. (2007) developed one of the earliest prototype wireless acoustic sensor networks for pipeline leak detection. The principle is that a new leak manifests itself as additional energy in certain frequency bands in the spectrum of the acoustic measurement (Hunaidi and Chu 1999). In recent years, a number of acoustic-based leak detection techniques have been proposed using more advanced cross-correlation analysis (Gao et al. 2018) and feature extraction and pattern recognition algorithms (Jin et al. 2014). However, large scale applications to WDSs in noisy city environments are limited.

The research reported in the current paper focuses on the detection of newly emerged through-wall pipe cracks in the Adelaide city water network. The objective of this application is to prevent pipe breaks (and associated consequences) in busy city areas, which is different from conventional leak management in WDSs that is typically aimed at non-revenue water reduction. The authors have observed, for the Adelaide central-business-district (CBD) water network, that more than 50% of pipe breaks in ageing cast iron (CI) water pipes are preceded by steadily developing cracks and leaks (Stephens et al. 2018). This is also supported by other recent numerical and laboratory research, which adapted the leak-before-break (LBB) concept originated in the nuclear power industry (Bourga et al. 2015) to ageing CI water pipes (Rathnayaka et al. 2017). The current research is one of the pioneering studies on using the LBB for proactive pipe break control in WDSs.

The research develops an easy-to-implement technique for just-in-time pipe crack detection using permanently installed accelerometers. The research is field oriented and validated using the daily acoustic wave files collected by the Adelaide CBD SWN. Descriptive features of the historical wave files are investigated for five sites where newly developed through-wall pipe cracks have been confirmed nearby. It is found that the median frequency (MF) and the root mean square (RMS) are useful indicators for detecting new or developing cracks and leaks. The developed technique is tolerant to interference from customer water use and transient environmental noise.

2 The Acoustic Monitoring System in Adelaide CBD

The South Australian Water Corporation (SA Water) invested more than AUD $4 m on smart water technologies and established Australia’s first comprehensive SWN in the Adelaide CBD in 2017 (Edmonds et al. 2018). Part of the SWN is an acoustic pipe crack monitoring system with 305 accelerometer sensors (Von Roll, Switzerland). The accelerometers are powered by two standard AA batteries, and installed in existing fire hydrant chambers, with the sensor head magnetically attached to the pipe fitting. The sensors are configured to measure a non-dimensional noise level every 10 min from 4 am to 2 am the next day, and every 5 min between 2 am and 4 am. At about 2:05 am each morning, a wave file is recorded with a sampling rate of 4681 Hz and a duration of 9.995 s. The sensors have an in-built high-pass filter with a cut-off frequency set at 10 Hz in this study and an in-built anti-aliasing filter. All the data is normally transferred to a cloud based storage once a day between 6 am to 7 am through the 3G mobile network. More details of the sensor network can be found in Stephens et al. (2018).

3 The Proposed Leak-Before-Break Detection Technique

The research focuses on the use of descriptive features derived from the measured wave files for the detection of new leaks induced by emerging through-wall pipe cracks. Descriptive features, such as the mean, the peak, the variance, the root-mean-square (RMS) and the median frequency (MF) values, etc., are easy to extract and analysis; therefore the analysis has the potential to be implemented cost-effectively.

The proposed detection algorithm is summarised in the flow chart shown in Fig. 1. The original acoustic wave files have been normalised to have a possible minimum value of −1 and a possible maximum value of 1. L90 means the threshold exceeded by 90% of the values in a data set. Detailed explanations are given in the following sections.

Fig. 1
figure 1

Flowchart illustrating the steps of the proposed detection algorithm

3.1 Key Indicators

The RMS and the normalised MF values are selected as key indicators for the detection of new through-wall pipe cracks and leaks. The RMS value of a vector {xn} (n = 1 … N) is defined as

$$ {x}_{RMS}=\sqrt{\frac{1}{N}\sum \limits_{n=1}^N{\left|{x}_n\right|}^2} $$
(1)

where xRMS is the RMS value, N is the total number of data in the vector. For the normalised acoustic wave files measured at the same location and on consecutive days, the feature of the RMS values over time also represents the trend of the standard derivation, the variance, and the energy. The appearance or the further development of a through-wall crack theoretically adds additional energy to the measured acoustic signal and therefore increasing the amplitude of the acoustic vibration in the time domain and being reflected as an increased RMS value. Early studies have shown that, in general, a higher discharge flow tends to induce a higher RMS value (Jin et al. 2014; Butterfield et al. 2017). For the normalised acoustic wave files, the RMS value is always in the range of 0 to 1.

The MF value targets the feature of the leak-induced signals in the frequency domain. The MF value is the frequency at which the power spectrum is divided into two regions with equal energy. Background acoustic signals in WDSs are typically low in frequency, while the appearance of a new leak adds one or multiple high-frequency bands into the spectrum (Hunaidi and Chu 1999; Stoianov et al. 2007), which shifts the MF value to a higher frequency. In this research, the MF values are normalised by the Nyquist frequency (half of the sampling frequency) such that the value is always in the range of 0 to 1.

3.2 Practical Challenges and Counter-Measures

A key challenge in field application is the acoustic/vibration interference from non-leak sources. Common sources of interference in WDSs are traffic noise and noise from customer water use. The research has found that (as further illustrated in the section Discussion): the traffic noise is typically high in amplitude and can increase RMS values significantly, but the noise is a transient signal and generally in a frequency range lower than that of leak signals; the customer water use has a signature very similar to leaks in the frequency domain, but the water use signal is typically accompanied by regular water meter ticking noise that is low in frequency.

This research has developed a technique to mitigate the challenges and reduce the false-alarm rates. Each measured acoustic wave file (~10 s in duration, 46,786 samples) is rearranged into a number of frames with a data length of 256 (duration of each frame ~55 ms). This is achieved by using a sliding rectangular window of 256 in length and with 80% overlap between windows. The frames that have a peak value close to the upper limit of unity are most likely to have been heavily contaminated by environmental noise and are removed before any further analysis (the threshold selected was 0.95 in this study). The RMS values for all the remaining frames are calculated. Due to the transient nature of the environmental noise, some frames are less contaminated than others and have lower RMS values, which better reflect the persistent acoustic energy on site.

The normalised MF values for all the remaining frames are determined. A new through-wall crack will introduce a leak and elevate the MF values consistently. For measurements that are predominately water use signals, a large number of frames will include the low-frequency water meter ticking noise, which can counteract the high-frequency leak sound, and therefore maintain relatively low MF values.

The RMS value(s) and the normalised MF value(s) at the lower bound are of interest based on the analysis above. To allow for variations, for each measured wave file, the RMS values and the normalised MF values are ranked from low to high, and the L90 values of the RMS and ML are selected as the indicators. They are noted as the L90 RMS value and the L90 MF value following the convention in acoustic monitoring and it means 90% of the values are higher than the indicator in each category.

The L90 RMS and L90 MF values are then calculated for all the wave files collected over time at specific measurement sites. The results are then plotted and updated when new data is available. A persistent increase in the L90 RMS and L90 MF values indicates the occurrence of a new through-wall crack in a pipe within the acoustic range of an accelerometer. Validation using field data (details in the following section) shows that the L90 MF is more robust than the L90 RMS value. It is suggested that the L90 MF value be used as the main indicator for leak detection.

4 Field Validation

The proposed detection technique is validated using the historical wave files collected at five sites where newly-formed longitudinal and circumferential pipe cracks have been confirmed nearby. The acoustic sensors involved are labelled POS14, POS111, POS192, POS244 and POS268. The results are given in Figs. 2, 3, 4, 5 and 6 and summarised in Table 1.

Fig. 2
figure 2

L90 RMS and L90 MF values calculated for acoustic sensor POS14

Fig. 3
figure 3

L90 RMS and L90 MF values calculated for acoustic sensor POS111

Fig. 4
figure 4

L90 RMS and L90 MF values calculated for acoustic sensor POS192

Fig. 5
figure 5

L90 RMS and L90 MF values calculated for acoustic sensor POS244

Fig. 6
figure 6

L90 RMS and L90 MF values calculated for acoustic sensor POS268

Table 1 Summary of results for the case studies

4.1 Sensor POS14

Figure 2 shows that, at POS14, the new leak from a circumferential crack on a CI water main can be successfully detected by the change in L90 MF values. This was the first cracked pipe detected by the Adelaide SWN and more information, including a photo of the crack, is reported in Stephens et al. (2018). The L90 MF rose from a normalised value of about 0.05 on and before 22 July 2017 to more than 0.7 on 23 July 2017. The high L90 MF values persisted until the cracked pipe was fixed. On the no-leak days prior to and after the leak event, the L90 MF values remained low.

The L90 RMS value at POS14, however, was still low on the first day of the leak (23 July 2017), which is a false negative if considered in isolation. It increased on the following days as the crack further developed, reinforcing the alarm raised by the L90 MF values. On the other hand, the L90 RMS values were relatively high on some no-leak days (6 June 2017, 18 July 2017 and 28 July 2017), which can contribute to possible false positives if considered in isolation. Further investigation into the wave files confirm that the false positives from the L90 RMS values on 6 June 2017 and 28 June 2017 were induced by traffic noise, and the one on 18 July 2017 was induced by noise from rainfall.

4.2 Sensor POS111

At sensor POS111, both the L90 MF values and the L90 RMS values responded to the leak from a circumferential crack on a CI water main which started on 12 December 2017. Higher values persisted until 11 January 2018, after which the cracked pipe was fixed. An interesting finding is that, before the event, both the L90 MF values and L90 RMS values were relatively low and stable; however, after the repair work, while the L90 RMS values went back to the original low level, the L90 MF values shifted between low and high on different days, generating irregular false positives. Examination of the post-repair wave files and maintenance history revealed that the unstable L90 MF values were induced by poor physical contact between the accelerometer sensor head and the fire hydrant fitting in the chamber. It is believed that the sensor was removed and reattached during the repair work. As a result, an unstable L90 MF trace can be used as an indicator for, among other things, sensor malfunctions.

4.3 Sensor POS192

At sensor POS192, the L90 MF was low (normalised value <0.1) and stable before and after the leak event, and was high (normalised value >0.4) during the event (a circumferential crack on a CI water main). The L90 RMS values were relatively higher during the event but unstable. On some days (e.g., 9 March 2018 and 21 March 2018), the L90 RMS values were high and could result in false positives if considered in isolation. Further examination of the wave files confirmed that the L90 RMS false positives were induced by transient noise, including traffic noise.

4.4 Sensor POS244

Sensor POS244 was moved into place on 8 February 2018 to monitor a known leak nearby (a short longitudinal crack on a CI water main). It was installed after the scheduled wave recording time of 2:05 am such that the leak signal was not captured on the day, but high L90 MF values and L90 RMS values were observed from 9 February 2018. The leak and cracked pipe were fixed by 14 February 2018 and the L90 MF values and the L90 RMS values dropped thereafter as expected. A new leak (a circumferential crack, at a different location from the first longitudinal crack) occurred later and was reported by elevated L90 MF and L90 RMS values from 8 March 2018. The L90 MF values dropped to a lower level on 10 May 2018 after the leak was fixed.

4.5 Sensor POS268

Both the L90 RMS and the L90 MF values elevated following a new leak event (a circumferential crack on a CI water main) on 19 June 2018. The L90 RMS values remained high until 25 June 2018 when the cracked pipe was fixed. The L90 MF values dropped to a relatively lower level on 20 and 21 June 2018, which could contribute to false negatives if considered in isolation. Further examination of the wave files confirmed that the lower L90 MF value on 20 June 2018 was caused by low-frequency traffic noise. The lower L90 MF value on 21 June 2018 was caused by low-frequency water meter noise. The L90 RMS value was relatively high on 22 May 2018 and it could contribute to a false positive if considered in isolation. This higher L90 RMS value was caused by water use and meter noise that persisted over the duration of the wave file.

4.6 Summary of Results

The average RMS and MF values before the leak event (background) and during the leak event for the five cases have been summarised in Table 1, together with the distance from the sensor to leak, the street where the cracked pipe is located, pipe age and pipe nominal diameter. All the five pipes involved are cast iron cement lined (CICL) pipes.

It can be seen from Table 1 that the background RMS and MF are generally smaller than 0.05 and 0.11, respectively, while the leak induced RMS and MF are generally greater than 0.08 and 0.41, respectively. The difference serves as the foundation for differentiating leak-induced signals from background noise. However, both the background and leak-induced RMS and MF values vary in relative wide ranges across the five cases, and there is no simple correlation to the location of the leak or to the pipe age and diameter. For example, for POS111 on Flinders Street, the leak was only 7 m to the sensor, but the average leak-induced RMS and MF values are almost the same (after rounding) to the case at POS192 on St Johns Street, where the leak was 42 m away. Note that both pipes have a nominal diameter of 150 mm and at a similar age. One complexity is that the recorded wave signal is also dependent on the contact condition between the sensor head and the pipe fitting. More research is needed to investigate whether general relationships can be established to link specific RMS and MF values to the leak and pipe properties.

5 Discussion

5.1 Impact of Traffic Noise

Traffic noise has been identified as the most common source of interference in the wave files for the Adelaide CBD. Figure 7 provides an example based on the wave file recorded by sensor POS14 on 6 June 2017. The spectrogram was calculated using the short-term Fourier transform (window length = 256, 80% overlapping). The running RMS and MF values were calculated using the same sliding window. It can be seen that the amplitude of the wave file gradually increased to the upper and lower limits and then gradually decreased. The spectrogram shows the energy of the low-frequency components increased and then decreased accordingly. This is associated with a vehicle moving towards and then away from the sensor station. The RMS values significantly increased during the time of 6 to 7.5 s, but were also affected at other times. In contrast, the MF values were generally stable and not significantly influenced by the traffic noise.

Fig. 7
figure 7

Example of a wave file under the no-leak condition but contaminated by traffic noise: a the wave file, b its spectrogram, and c the running RMS and MF values; based on the recording by sensor POS14 on 6 June 2017

The pre-processing based on the peak value (Fig. 1) will remove frames with a peak value greater than 0.95 and therefore it can remove some of the data heavily contaminated by the traffic noise. In most cases, this pre-processing and the use of L90 RMS values have prevented false positives in the RMS indicator for data contaminated by traffic noise. However, because each wave file is short (a total duration of ~10 s), strong and extended traffic noise can still affect a significant portion of the data even after the pre-processing. This is the case for POS14 on 6 June 2017, which resulted in the relatively high L90 RMS values as seen in Fig. 2.

Most energy from the traffic noise is in the low-frequency range such that it is unlikely to induce false positives in the MF indicator [as confirmed in Fig. 7c]. However, it may introduce false negatives when strong traffic noise contaminates a leak-induced wave. Figure 8 provides an example, in which the wave file recorded by sensor POS268 on 20 June 2018 is shown, together with its spectrogram and the running RMS and MF values. The L90 MF value was relatively low for this day (Fig. 6) because more than 10% of the remaining frames were still contaminated by the noise even after the pre-processing. Increasing the wave file measurement duration and measurement frequency will mitigate the impact of transient environmental noise.

Fig. 8
figure 8

Example of a wave file under the leaky condition but contaminated by traffic noise: a the wave file, b its spectrogram, and c the running RMS and MF values; based on the recording by sensor POS268 on 20 June 2018

5.2 Impact of Water Usage and Water Meter

Water consumption from a branch or an off-take on the water main is similar to a through-wall discharge and generates similar acoustic waves, adding new and typically high-frequency bands to the spectrum. Different from real leaks on the water main, water consumption is typically accompanied by water meter ticking noise, which is regular and mainly low in frequency.

The measurements at POS268 were frequently contaminated by water use and water meter noise. Figure 9 illustrates an example, in which the wave file recorded by sensor POS268 on 13 May 2018 is shown, together with its spectrogram and the running RMS and MF values. The water meter sound had a regular interval as shown in Fig. 9a. A high-frequency band and a low-frequency band were observed in the spectrogram in Fig. 9b, which were from the water use and the meter ticking signals, respectively. The water meter ticking sound increased the RMS value while decreasing the MF value as shown in Fig. 9c.

Fig. 9
figure 9

Example of a wave file under the no-leak condition but contaminated by water consumption and water meter noise: a the wave file, b its spectrogram, and c the running RMS and MF values; based on the recording by sensor POS268 on 13 May 2018

Note that no false positive or false negative was generated on 13 May 2018 at POS268 as in Fig. 6. The low-frequency meter ticking sound balanced the high-frequency water use sound, which resulted in a low L90 MF value. The meter ticking sound was regular but not persistent (see Fig. 9) and therefore the L90 RMS value reflects the energy of the water use sound (which was not strong in this case). However, on 22 May 2018 at POS268, the L90 RMS value was relatively high due to stronger water use sound.

The water use and meter ticking signal, when mixed with the leak signal, can introduce false negatives for the MF indicator. This is because the low-frequency meter ticking sound can balance the high-frequency water use sound as well as the high-frequency leak sound, and results in a low L90 MF value. The result on 22 June 2018 at POS268 as shown in Fig. 6 is an example. More frequent data recording will reduce the likelihood of getting false negatives.

6 Conclusions

An easy-to-implement technique for the detection of emerging pipe leaks and cracks using permanently installed accelerometers has been developed. Short-duration wave files from the accelerometer are rearranged into a number of frames using a sliding window (~55 ms, 256 samples) with overlapping (80% in this study). A peak-value-based pre-processing technique has been proposed, which removes frames heavily contaminated by transient environmental noise. The detection is conducted by analysing the L90 MF and the L90 RMS values for all the remaining frames. A persistent increase in the L90 RMS and L90 MF values indicates the occurrence of a new leak in any pipe(s) monitored by an acoustic sensor. The technique has been validated using the daily acoustic wave files collected from five sites in the Adelaide CBD SWN. All developing cracks in the pipes would have been detected using the proposed technique.

A persistently elevated L90 MF value has been found to be a robust indicator for detecting new leaks and cracks. The L90 MF indicator is tolerant to traffic noise, which typically does not last long and is skewed to the low-frequency range (compared to leak noise). Water meter noise associated with customer water use can reduce the L90 MF value even when real leaks are present. A persistently elevated L90 RMS value can be used to reinforce leak and through-wall crack detection. The L90 RMS value is not as robust an indicator as the L90 MF value when traffic noise, water use and water meter ticking noise are present.

The interference from traffic, water use and water meter ticking is unlikely to appear consecutively in multiple wave recordings, while a leak should generate persistent signals and therefore induce persistently elevated L90 MF and L90 RMS values. More frequent and longer wave file sound recordings will enhance the robustness of the detection.