{'fraction_non_alphanumeric': 0.030594679186228484, 'fraction_numerical': 0.012871674491392801, 'mean_word_length': 4.480488850771869, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Determination of Pipeline Leaks Based on the Analysis the Hurst Exponent of Acoustic Signals

: Currently, acoustic methods are widely used as a way to detect pipeline leaks. This is due to the fact that the acoustic signal has sufﬁciently capacious information about the state of the pipeline. The effectiveness of acoustic monitoring depends on the correct extraction of this information from the diagnostic signal. Currently, there is a search for new, more effective methods for analyzing acoustic signals. The article proposes to apply the theory of fractals to determine pipeline leaks. One of the most accurate methods for determining the fractal dimension of time series is R/S analysis using the Hurst exponent. An experimental stand has been developed and created, which includes a steel pipeline with water circulating in it. Water leakage from the pipeline was simulated by installing discs with holes of different diameters. The discs were placed in a special ﬁtting on the surface of the pipeline. Acoustic signals recorded from the pipeline surface at different leakages and water pressure were analyzed. A relationship has been established between the size of the leak and the Hurst exponent of acoustic signals. The proposed method is compared with spectral analysis. Empirical experience has proven that R/S analysis can be used to determine pipeline leaks, as well as their classiﬁcation by size.


Introduction
Pipeline systems are necessary to provide human populations, industry and agriculture with vital products: natural gas, oil products, heat carriers (hot water and steam), air, drinking and process water, etc. In the Russian Federation alone, the length of pipeline networks exceeds 5 million km.
The long length of pipeline networks and their high degree of deterioration lead to leaks. For example, in Hong Kong, water losses due to leaks are approximately 15%, in Europe approximately 20% of the total transported water [1], and in cities such as Dublin (Ireland), Lusaka (Zambia) and Kolkata (India) can reach up to 40-60% [2].
Hidden leaks pose a big problem for networks. Latent leaks are losses of water (or other liquid product), which do not manifest in bursting out to the surface or the flooding of various underground utilities. This determines the difficulty of finding them and leads to significant losses of energy carrier capacity.
Accidents in pipeline systems, as well as illegal tie-ins with the aim of stealing the transported product, lead not only to significant economic damage, but can also create the risk of landslides, fires, explosions or environmental pollution.
In this regard, the need to improve the quality and reliability of pipeline systems is an urgent problem. Today, there are many methods for locating the depressurization of pipelines, including the visual-optical method, electromagnetic control, acoustic control, ultrasonic control, radiographic examination, thermographic testing, hydro-or pneumatic testing with pressure measurement before and after the leak, etc. [3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18]. However, despite the variety of control methods, it is impossible to single out one that is effective in all conditions [4]. study [36], the fractal dimension of fluctuations in brain oxygen demand revealed brain abnormalities in autism spectrum disorder. The authors of [37] used the fractal analysis of vibroacoustic signals for express diagnostics of the traction drives of electric trains. In [38], the authors show that the Hurst exponent of a time series can be used as an indicator of the predictability of precipitation. The work in [39] proposes a prediction methodology based on the analysis of the Hurst exponent for the process of rolling bearing degradation.
We see the possibility of successful application of the theory of fractals to control the technical condition of pipelines. Inside pipeline systems, there is a movement of liquid or gas, and there are always complex disordered vibrations, which are denoted by the term "noise". From the point of view of classical methods of signal analysis, such oscillatory processes do not carry useful information. However, such signals have signs of self-similarity which can be estimated by the fractal dimension. The use of fractal analysis will not only detect the leak, but also classify it by size.
The purpose of this work is to consider the possibility of using R/S analysis to determine pipeline leaks, as well as their classification by size. For this purpose, studies were carried out on an experimental stand where steel pipeline leaks were simulated at various water flow parameters. Acoustic signals were recorded using a sensor that allows measuring longitudinal and radial vibrations of the pipe wall. The Hurst exponent was calculated for each signal, and the pipeline defect was estimated along the boundary of the confidence interval.

Materials and Methods
R/S analysis was developed by hydrologist H.E. Hurst [40]. Hurst's statistical model was created on the basis of Einstein's work on Brownian motion, which is a model of the chaotic motions of particles. The essence of the theory is that the distance R that a particle travels increases in proportion to the square root of the time T: Hurst completed the Einstein calculation and brought it to the main form: where R is the normalized range of variation, S is the standard deviation, c is a constant, n is the number of sample elements, and H is the Hurst exponent. If the process is random, then the Hurst exponent H = 0.5. In the process of studying the dynamics of the ebb and flow of the Nile River, Hurst found that 0.5 < H <1. This means that the normalized range changes faster than the square root of time, i.e., the system travels a greater distance than the probabilistic process. This process is called persistent and is characterized by long-term memory; subsequent indicators are highly dependent on the past. Close to this is the sensitivity to initial conditions characteristic of chaos. The Hurst exponent 0 < H <0.5 means antipersistent process. Under such conditions, the system is qualified by abundant but minor changes. The antipersistent process changes more intensively than the involuntary one and is typical for turbulence effects.
B. Mandelbrot, who discovered fractal geometry, found in the Hurst formula laws that are associated with the fractality of a time series. The Hurst exponent is connected with the Hausdorff-Besicovitch dimension (fractal dimension) as follows:

R/S Analysis Algorithm
Let there be a sample of n elements, which is a time series. The algorithm for performing R/S analysis is as follows [41].

1.
The smallest own divisor m of the sample n is determined. Sample n is divided into k = n/m groups. 5.
The R/S index for each group is defined as R k /S k . Then, the average range of the variation is found The index j in this instance means that the average range change obtained at j-th step, which conform to the j-th proper divisor.

6.
The procedure described above is repeated for all possible proper divisors as m. At the last step, m = n/2. Thus, a selection is obtained R/S j The number of elements in the sample match the number of proper divisors. 7.
A graph of dependences of log R/S on log m is being built and using the method of least squares a regression equation of the form where H is the Hurst exponent.
To calculate the Hurst exponent in the LabView programming environment, the FractLab-1 program was developed.

Experimental Stand
To study the possibility of using the considered algorithm for solving the problem of determining pipeline leaks, an experimental stand was developed and created.
The scheme of the experimental device is shown in Figure 1. The experimental stand is a closed loop with circulating water. By closing valve-1, the pump discharge pressure was regulated in the range of 1.5-3.5 bar in 0.5 bar increments. The pressure was controlled using a pressure gauge-5.
According to the hydraulic characteristics of the pump and the readings of the pressure gauge, its performance was established (Table 1). Acoustic vibrations of pipeline 2 were recorded by piezoelectric sensor 3 (AP2038R-manufacturer GlobalTest), which was installed after the defect in the direction of fluid flow ( Figure 1). The vibration sensor has the following characteristics: axial sensitivity 100 mV/g; amplitude range ± 50 g; maximum shock ± 500 g; and natural frequency 35 kHz. The excellence of such a sensor is the simultaneous meterage of the signal at one vibration point along different coordinate axes.
Acoustic vibrations were investigated in the longitudinal and transverse directions relative to the pipeline axis (in Figure 1, directions X and Y, respectively). For the registration and analysis of signals, an original software packet written in the LabView environment was used [4]. The sampling frequency of the analog-to-digital converter-9 is taken to be 44.1 kHz.
As models of pipeline defects, we used disks with holes of different diameters (from 1 to 8 mm), shown in Figure 2. The disks were installed and clamped on a fitting welded to the pipe ( Figure 3). The experimental stand is a closed loop with circulating water. By closing valve-1, the pump discharge pressure was regulated in the range of 1.5-3.5 bar in 0.5 bar increments. The pressure was controlled using a pressure gauge-5.
According to the hydraulic characteristics of the pump and the readings of the pressure gauge, its performance was established (Table 1). Acoustic vibrations of pipeline 2 were recorded by piezoelectric sensor 3 (AP2038Rmanufacturer GlobalTest), which was installed after the defect in the direction of fluid flow ( Figure 1). The vibration sensor has the following characteristics: axial sensitivity 100 mV/g; amplitude range ± 50 g; maximum shock ± 500 g; and natural frequency 35 kHz. The excellence of such a sensor is the simultaneous meterage of the signal at one vibration point along different coordinate axes.
Acoustic vibrations were investigated in the longitudinal and transverse directions relative to the pipeline axis (in Figure 1, directions X and Y, respectively). For the registration and analysis of signals, an original software packet written in the LabView environment was used [4]. The sampling frequency of the analog-to-digital converter-9 is taken to be 44.1 kHz.
As models of pipeline defects, we used disks with holes of different diameters (from 1 to 8 mm), shown in Figure 2. The disks were installed and clamped on a fitting welded to the pipe ( Figure 3).

Results and Discussion
The experiment was carried out according to the following algorithm. A disk with a hole of a certain diameter was installed on the pipe, which simulated a leak. By turning on the pump and opening the valve in the pipe, the required pressure was created (from 1.5 to 3.5 bar in 0.5 bar increments). At each pump discharge pressure, acoustic signals were recorded into the computer memory. Then, the disk with the hole was changed to the next one and the algorithm was repeated.
With large diameters of the defect, it was not possible to create a high pump discharge pressure due to a decrease in the hydraulic resistance of the pipe caused by a large fluid leak. Table 2 shows the maximum pump discharge pressures for different bore diameters. A pipe with a disc without a hole installed in the fitting is accepted as defect-free.

Results and Discussion
The experiment was carried out according to the following algorithm. A disk with a hole of a certain diameter was installed on the pipe, which simulated a leak. By turning on the pump and opening the valve in the pipe, the required pressure was created (from 1.5 to 3.5 bar in 0.5 bar increments). At each pump discharge pressure, acoustic signals were recorded into the computer memory. Then, the disk with the hole was changed to the next one and the algorithm was repeated.
With large diameters of the defect, it was not possible to create a high pump discharge pressure due to a decrease in the hydraulic resistance of the pipe caused by a large fluid leak. Table 2 shows the maximum pump discharge pressures for different bore diameters. A pipe with a disc without a hole installed in the fitting is accepted as defect-free.

Results and Discussion
The experiment was carried out according to the following algorithm. A disk with a hole of a certain diameter was installed on the pipe, which simulated a leak. By turning on the pump and opening the valve in the pipe, the required pressure was created (from 1.5 to 3.5 bar in 0.5 bar increments). At each pump discharge pressure, acoustic signals were recorded into the computer memory. Then, the disk with the hole was changed to the next one and the algorithm was repeated.
With large diameters of the defect, it was not possible to create a high pump discharge pressure due to a decrease in the hydraulic resistance of the pipe caused by a large fluid leak. Table 2 shows the maximum pump discharge pressures for different bore diameters. A pipe with a disc without a hole installed in the fitting is accepted as defect-free. Signals with a length of 20,000 counts were analyzed, while the Hurst exponent was calculated in the interval log m = 3.32 ÷ 10. A typical acoustic signal of a pipe with water movement and a Hurst dependence plot for it are shown in Figure 4. Signals with a length of 20,000 counts were analyzed, while the Hurst exponent was calculated in the interval log m = 3.32 ÷ 10. A typical acoustic signal of a pipe with water movement and a Hurst dependence plot for it are shown in Figure 4.  To analyze the results of experimental studies, an approach typical for anomaly rejection procedures was used. For the set of calculated values of the Hurst exponent, the following algorithm was used.
1. The position estimate is calculated . 2. The spread estimate S is calculated as a standard deviation. 3. For a given significance level α confidence interval is constructed: where t (α, m) is the α-quantile of the Student's distribution with m degrees of freedom.
Based on the acoustic signals of a defect-free pipe, obtained at different hydraulic loading, a confidence interval was formed with a significance level of 0.01 ( Figure 5). The border of the confidence interval is shown with a red line. For signals recorded along different axes, their own confidence interval was formed (Figure 5a-along the X axis, Figure 5b-along the Y axis), due to the fact that the values of the Hurst exponent for different axes differ significantly. As can be seen from the graphs, the Hurst exponent at different pressures in the absence of a leak in the pipe is approximately at the same level. Acoustic signals are antipersistent, which indicates the presence of a turbulent flow. This assumption is confirmed by calculations of the Reynolds number (Table 3) according to the well-known formula: To analyze the results of experimental studies, an approach typical for anomaly rejection procedures was used. For the set of calculated values of the Hurst exponent, the following algorithm was used.

1.
The position estimate is calculated H.

2.
The spread estimate S is calculated as a standard deviation.

3.
For a given significance level α confidence interval is constructed: where t (α, m) is the α-quantile of the Student's distribution with m degrees of freedom.
Based on the acoustic signals of a defect-free pipe, obtained at different hydraulic loading, a confidence interval was formed with a significance level of 0.01 ( Figure 5). Signals with a length of 20,000 counts were analyzed, while the Hurst exponent was calculated in the interval log m = 3.32 ÷ 10. A typical acoustic signal of a pipe with water movement and a Hurst dependence plot for it are shown in Figure 4.  To analyze the results of experimental studies, an approach typical for anomaly rejection procedures was used. For the set of calculated values of the Hurst exponent, the following algorithm was used.
1. The position estimate is calculated . 2. The spread estimate S is calculated as a standard deviation. 3. For a given significance level α confidence interval is constructed: where t (α, m) is the α-quantile of the Student's distribution with m degrees of freedom.
Based on the acoustic signals of a defect-free pipe, obtained at different hydraulic loading, a confidence interval was formed with a significance level of 0.01 ( Figure 5). The border of the confidence interval is shown with a red line. For signals recorded along different axes, their own confidence interval was formed (Figure 5a-along the X axis, Figure 5b-along the Y axis), due to the fact that the values of the Hurst exponent for different axes differ significantly. As can be seen from the graphs, the Hurst exponent at different pressures in the absence of a leak in the pipe is approximately at the same level. Acoustic signals are antipersistent, which indicates the presence of a turbulent flow. This assumption is confirmed by calculations of the Reynolds number (Table 3) according to the well-known formula: The border of the confidence interval is shown with a red line. For signals recorded along different axes, their own confidence interval was formed (Figure 5a-along the X axis, Figure 5b-along the Y axis), due to the fact that the values of the Hurst exponent for different axes differ significantly. As can be seen from the graphs, the Hurst exponent at different pressures in the absence of a leak in the pipe is approximately at the same level. Acoustic signals are antipersistent, which indicates the presence of a turbulent flow. This assumption is confirmed by calculations of the Reynolds number (Table 3) according to the well-known formula: Re = w × D ν where w is the water flow rate, m/s, D is the pipe diameter, m, ν is the kinematic viscosity of water, m 2 /s.

= ×
where w is the water flow rate, m/s, D is the pipe diameter, m, ν is the kinematic viscosity of water, m 2 /s.    where w is the water flow rate, m/s, D is the pipe diameter, m, ν is the kinematic viscosity of water, m 2 /s.   Figure 6 shows that at a water pressure in the pipe of 1.5 bar, defects less than 3 mm are not detected because the Hurst exponent H for them lies within the confidence interval. With an increase in the size of the defect, the degree of turbulence of the flow decreases, therefore, the Hurst exponent increases and with large leaks tends to the level of the deterministic signal (to the level H = 1).
(a) (b) Figure 7. Values of the Hurst exponent at a pump discharge pressure of 2 bar: (a) for X-axis signals, (b) for Y-axis signals. Figure 7. Values of the Hurst exponent at a pump discharge pressure of 2 bar: (a) for X-axis signals, (b) for Y-axis signals.
At a pressure of 2 bar (Figure 7), the sensitivity of the control decreased; defects of 3 mm or less are not detected. According to our assumption, this is due to an increase in the vortex formation of the flow.
With a further increase in pressure, a similar picture is observed. At a pressure of 2.5 bar, only a 5 mm defect is detected (Figure 8). It should be noted that, at such a pressure, defects of a larger diameter could not be considered (see Table 2).  mm or less are not detected. According to our assumption, this is due to an increase in the vortex formation of the flow. With a further increase in pressure, a similar picture is observed. At a pressure of 2.5 bar, only a 5 mm defect is detected (Figure 8). It should be noted that, at such a pressure, defects of a larger diameter could not be considered (see Table 2). The results presented in Figures 9 and 10 confirm the impossibility of detecting defects with a size of 3 mm or less at pressures of 3 and 3.5 bar.  bar, only a 5 mm defect is detected (Figure 8). It should be noted that, at such a pressure, defects of a larger diameter could not be considered (see Table 2).   Figure 6 shows that at a water pressure in the pipe of 1.5 bar, defects less than 3 mm are not detected because the Hurst exponent H for them lies within the confidence interval. With an increase in the size of the defect, the degree of turbulence of the flow decreases, therefore, the Hurst exponent increases and with large leaks tends to the level of the deterministic signal (to the level H = 1).
At a pressure of 2 bar (Figure 7), the sensitivity of the control decreased; defects of 3 mm or less are not detected. According to our assumption, this is due to an increase in the vortex formation of the flow.
With a further increase in pressure, a similar picture is observed. At a pressure of 2.5 bar, only a 5 mm defect is detected (Figure 8). It should be noted that, at such a pressure, defects of a larger diameter could not be considered (see Table 2).
The results presented in Figures 9 and 10 confirm the impossibility of detecting defects with a size of 3 mm or less at pressures of 3 and 3.5 bar.
We will compare the proposed method with standard spectral analysis. In Figure 11, the spectra of defect-free and defective pipelines at a pressure of 2 bar are superimposed on each other. The normalization procedure was applied to the spectra. Normalization refers to the separation of each spectral component by the maximum amplitude of the spectrum. Figure 11 shows that with small leaks in the pipeline (with defects from 1 to 5 mm), the amplitude of high-frequency oscillations increases (over 15 kHz). The mechanism of generating high frequencies is explained by the high leakage rate at small defect sizes. High speed leads to the appearance of the cavitation effect (the formation of minute shock waves) [42]. With large sizes of defects, fluctuations at low frequencies (up to 6 kHz) are characteristic. In this regard, the choice of the optimal frequency range for spectral analysis of leakage signals is difficult.
We compared the spectra of defective pipelines in different frequency ranges using the correlation coefficient. For this purpose, a reference spectrum was formed by averaging the spectra of a defect-free pipeline. Figure 12 shows the results of comparing the spectra with the reference. The median value of the correlation coefficient was obtained by comparing 20 spectra. Figure 12 shows that the analysis of the statistical relationship between the spectra allows us to determine only the presence of a leak, but not its size. Figure 13 shows the results of measuring spectra in the dB scale without normalization. To estimate the energy change in the frequency bands 0.02-6 kHz and 15-20 kHz, the spectral areas were calculated (by integrating the spectral curve). The calculation results are shown in Figure 14. Figure 14 shows that as the defect size increases, the spectrum area first increases and then decreases. This is more noticeable in the high-frequency region. The decrease in acoustic energy with an increase in the size of the defect is consistent with the conclusions of the article [42].
It is difficult to estimate the size of the defect by the amplitude level, since this level is not known a priori in real conditions [43]. R/S analysis is not sensitive to changes in signal strength and is a promising method for classifying the size of leaks.  Figure 12 shows that the analysis of the statistical relationship between the spectra allows us to determine only the presence of a leak, but not its size. Figure 13 shows the results of measuring spectra in the dB scale without normalization. To estimate the energy change in the frequency bands 0.02-6 kHz and 15-20 kHz, the spectral areas were calculated (by integrating the spectral curve). The calculation results are shown in Figure 14.  Figure 14 shows that as the defect size increases, the spectrum area first increases and then decreases. This is more noticeable in the high-frequency region. The decrease in acoustic energy with an increase in the size of the defect is consistent with the conclusions of the article [42].
It is difficult to estimate the size of the defect by the amplitude level, since this level

Conclusions
A new approach to detecting leaks in pipeline systems is proposed. R/S analysis allows us to determine the degree of stochasticity of pipeline vibrations, which is directly related to the nature of the fluid flow in the pipe.
During the process of liquid flowing turbulently through a hole in the pipe wall, pulsations of liquid density occur. The appearance of such pulsations is manifested in the form of elastic waves in the liquid itself and in the walls of the pipe. The determining parameters of these pulsations are the flow rate of the liquid and the size of the hole. In addition, the presence of leaks leads to a change in the flow rate in the pipe itself.
With an increase in the size of the leak, the flow rates in the hole and in the pipeline decrease, which leads to a decrease in turbulence. In this case, the elastic vibrations of the pipeline wall acquire a deterministic character. The Hurst exponent allows for the identification of these changes in signals.
As the pressure inside the pipe increases, the sensitivity of the method to small leaks decreases. This is due to an increase in vortex formation, since the flow rate depends on the pressure drop at the inlet and outlet of the leak.
Undoubtedly, the method requires further research using CFD modeling to establish the scope of its effective application. However, based on the conducted research, an argument can be made for the high potential of using the proposed method for classifying leaks by size.