Keywords

1 Introduction

Reconstruction of defects in the pipeline caused by corrosion or by mechanical action is an important technical problem, the successful solution of which can prevent breakage of the pipes. Such identification may be carried out with instruments, which move along a pipeline and perform their monitoring. A more attractive way of detection is the use of acoustic sensors and receivers (piezoelectric transducer). They are mounted on a pipe and detect damage based on the reflected signals. Such a system should be equipped with software that allows us to identify the damage and its extent based on the analysis of the reflected or transmitted signal. Such software can be developed through the use of ANN [1]. Application of ANN in the problems of reconstruction of the damaged state of structural elements was described in works [2,3,4,5,6,7,8]. The use of different ANN architectures and algorithms was described in works [2,3,4,5,6,7]. Identification of defects in anisotropic plates by using ANN was present in work [8]. In work [4], the authors pointed out the advantages of identification methods that do not require the prior constructing of a mathematical model of the studied object.

In this paper, we developed a method of reconstruction of surface defects in pipes. Mathematically, the problem is reduced to the inverse geometrical problem of elasticity theory [9]. It is assumed that the defects locate on the outer or inner surfaces of the pipe and have axisymmetric configuration. Nonstationary acoustic signal is processed by actuator, located at some distance from the defect. The receiver locates there as well. The problem is solved in axisymmetric case using FEM. Finite element model of the pipeline track is built in the ANSYS . The signal (in the form of amplitude time response (ATR) of the radial and axial displacements) reflected from the defect is measured over time. The waves, reflected from the ends of the pipe segment, do not have time to come back to the receiver. In this way, the real conditions of an extended pipeline are modeled.

Analysis of the measured ATRs shows the possibility of their use in the inverse problems of identification of defects. The identification of defects may be carried out in two stages. At the first stage, the registration of a defect and the determination of the distance from the sensor to the defect are carried out. The problem of the first stage is solved on the base of the difference between the measured values of ATR for construction without defect and with the defect. Calculations show that the distance to the defect can be found using the signal arrival time, which is reflected by the defect. Thus, task of the first stage may be achieved by using hardware. The second stage provides the identification of the defect parameters (type, size, shape, volume, etc.). This task is much more difficult than the previous. Depending on the input information, it may have more than one solution. Artificial neural networks are used as a tool for solving the inverse problem of the reconstruction of defects parameters. Artificial neural networks were originally designed for solving the problem of finding nonlinear dependencies. Unlike other algorithmic structures, there are not programmable, but trained on the data set, based on the different defect parameters. Training sets are constructed by solving direct problems in ANSYS . The trained network is able to correctly identify defect parameters. Input data for training ANN can be transformed by the FFT [10], which improves the identification process. The ANN architecture, ways of representing information, and the influence of defects sizes on the accuracy of the identification were studied in this chapter.

2 Formulation of Direct and Inverse Problems

2.1 Direct Problem

Formulation of direct problems is reduced to the initial boundary value problem of elasticity theory taking into account the energy dissipation adopted in finite element packages such as ANSYS , ACELAN, etc. The formulation consists of the following equations [11]:

$$\sigma_{ij,j} = \rho \ddot{u}_{i} + \rho \alpha \dot{u}_{i} ,\quad i = 1,2,3$$
(2.1)
$$\sigma_{ij} = c_{ijkl} \left( {\varepsilon_{kl} + \beta \dot{\varepsilon }_{kl} } \right).$$
(2.2)
$$\varepsilon_{kl} = \frac{1}{2}\left( {u_{k,l} + u_{l,k} } \right)$$
(2.3)

boundary conditions:

$$u_{i} |_{{S_{1} }} = u_{i}^{0}$$
(2.4)
$$t_{i} = \sigma_{ij} n_{j} |_{{S_{k} }} = p_{i}$$
(2.5)

and initial conditions:

$$u_{i} |_{t = 0} = g_{i} (x)\,\dot{u}_{i} |_{t = 0} = v_{i} (x)\,x \in V_{s} .$$
(2.6)

Here \(\rho\) is the material density; \(u_{i}\) are the unknown components of the displacement vector; \(u_{i}^{0} ,p_{i}\) are the known components of the displacement vector and surface loads; \(\sigma_{ij} ,c_{ijkl}\) are the components of the stress tensor and elastic constants; \(s_{k}\) is the internal surface of the crack and the hole; and \(\varepsilon_{kl}\) are the components of the strain tensor. The factors \(\alpha ,\beta\) describe dissipative properties of the solid and are used in modern finite element analysis packages such as ANSYS , ABAQUS, ACELAN, and so on. These factors are coupled with property of Q-linear oscillator through the following relationships [12]:

$$\alpha = \frac{{2\pi f_{{{\text{r}}1}} f_{{{\text{r}}2}} }}{{Q(f_{{{\text{r}}1}} + f_{{{\text{r}}2}} )}},\quad \beta = \zeta_{d} = \frac{1}{{2\pi Q(f_{{{\text{r}}1}} + f_{{{\text{r}}2}} )}},$$
(2.7)

where \(f_{{{\text{r}}1}}\) and \(f_{{{\text{r}}2}}\) are the first and second resonance frequencies, and \(Q\) is the quality factor.

The wave excitation and reception of the signal by using actuators and sensors, based on piezoelectric elements, are carried out. In this case, the linear theory of electrodynamics, taking into account the energy dissipation, is used. It is also taken into account in the ANSYS and ACELAN packages that

$$\rho \ddot{u}_{i} + \alpha \rho \dot{u}_{i} - \sigma_{ij,j} = f_{i} ;\quad D_{i,i} = 0$$
(2.8)
$$\sigma_{ij} = c_{ijkl} (\varepsilon_{kl} + \beta \dot{\varepsilon }_{kl} ) - e_{ijk} E_{k} ;\quad D_{i} + \varsigma_{d} \dot{D}_{i} = e_{ikl} (\varepsilon_{kl} + \varsigma_{d} \dot{\varepsilon }_{kl} ) + \mathrel\backepsilon_{ik} E_{k} ,$$
(2.9)
$$\varepsilon_{kl} = (u_{k,l} + u_{l,k} )/2;\quad E_{k} = - \phi_{k} ,$$
(2.10)

where \(f_{i}\) are the components of the vector of the density of mass forces; \(D_{i}\) are the components of the electric induction vector; \(e_{ijk}\) are the third-rank tensor components of piezomoduli; \(E_{i}\) are the components of the electric field vector; \(\phi\) is the electric potential function; \(\mathrel\backepsilon_{ij}\) are the second-rank components of the tensor of dielectric permittivity; and \(\alpha ,\beta ,\varsigma_{d}\) are negative damping coefficients [12].

Among the electrical boundary conditions, we note the conditions on the electrodes of actuator \(S_{\text{a}}\) and on the sensor electrode \(S_{\text{e}}\), which is connected to an external electric circuit, or free:

$$\varphi |_{{S_{\text{a}} }} = \varphi_{0} f(t)$$
(2.11)
$$\int\limits_{{S_{\text{e}} }} {\dot{D}_{n} {\text{d}}s = I} ,$$
(2.12)

where I is the current in the circuit (in the considered cases of free electrode it is equal to zero); \(\varphi_{0}\) is the maximum value of the electric potential; and \(f(t)\) is the function, describing the shape of the pulse (single step, used in the numerical results).

2.2 Inverse Problems

The inverse geometric problem of identification of cracks on the external or internal surface of the pipe is considered. The excitation of waves is carried out by the piezoelectric actuator. As additional information, it used the ATR of electrical potential, measured by the piezoelectric sensors, disposed on the external surface of the pipe.

The solution of direct nonstationary problems for pipe fragment (Fig. 1, right) with a circular crack of depth \(dr\) (Fig. 1, left) on the outer or inner surface of the pipe is searched. Let \(h\) is the pipe length, \(r\) is the inner radius, \(tr\) is the thickness, \(s_{1}\) is the distance between the first piezosensor and the defect, \(l_{1}\) is the distance between the defect and edge of the pipe, \(s_{2}\) is the distance from the piezoactuator to the second piezosensor, and \(l_{2}\) is the distance from the second piezosensor to the edge of the pipe.

Fig. 1
figure 1

a Pipe model with crack -like defect and shown dimensions; b pipe model without liquid; c pipe model with liquid (1, 3 metal, 2 liquid)

A fragment of pipe is considered, which in cylindrical coordinate system \((r_{*} ,\theta ,z_{*} )\) occupies an area \(\Omega :r - \frac{{t_{r} }}{2} \le r_{*} \le r + \frac{{t_{r} }}{2},\;0 \le \theta \le 2\pi ,\;0 \le z_{*} \le l.\)

A system of differential equations, describing wave processes in the pipe Eqs. (2.1)–(2.3), is used. The lower edge plane \(z_{*} = 0\) is fixed; the upper edge plane and the inner cylindrical surface are free of stresses; the outer surface of the pipe also is free of stresses, too. Crack faces do not interact with each other; so they are free from mechanical stresses, too. The initial conditions correspond to the nondeformed tube at rest. Dynamic processes in the electroelastic environment (piezoactuators and piezosensors) are described by Eqs. (2.8)–(2.10). On the electrodes of piezoactuator, a potential difference (2.11) is given. One electrode of the piezosensor , which gives information on ATR of electric potential (2.10), is free. Wave processes that occur in the fluid filling the pipe are considered as acoustic ones. The impedance boundary conditions at the edges of the pipe simulate infinite acoustic environment.

Additional information for the solution of the inverse problem of identification of the crack is ATRs of electric potentials at the free electrode sensors (Fig. 1b, c):

$$\begin{array}{*{20}l} {\left. \varphi \right|_{{s_{1} }} = g_{1} (t)} \\ {\left. \varphi \right|_{{s_{2} }} = g_{2} (t)} \hfill \\ \end{array} \quad t \in [0,t_{2} ]$$
(2.39)

where \(s_{1}, s_{2}\) are the free electrodes of sensors 1 and 2, respectively (Fig. 1).

The values of \(s_{1} ,dr,\gamma\) are required to identify; they characterize the crack (Fig. 1a). The distance from the first sensor to crack \(s_{1}\) is determined at the first step; the crack penetration depth \(\,dr\) perpendicular to the surface is determined at the second step. Identification of defects is carried out by using ANN. The direct nonstationary problem for the pipe segment is solved for ANN training (Fig. 1, right). Let \(dr\) is the penetration depth and \(\gamma\) is the angle of the semicircular crack on the external or internal surface of the pipe (Fig. 1, left). The geometric parameters of the pipe are length \(h = 2\) m, inner radius \(r = 0.19\) m, thickness \(tr = 0.02\) m, the distance from the first piezosensor to the defect \(s_{1} = 0.5\) m, the distance from the defect to the edge of the pipe \(l_{1} = 0.5\) m, the distance from the piezoactuator to the second piezosensor \(s_{2} = 0.7\) m, and the distance from the second piezosensor to the edge of the pipe \(l_{2} = 0.3\) m. Axisymmetric finite element model is built in ANSYS for Young’s modulus \(E = 2.0 \times 10^{11}\) Pa, density \(\rho = 7800\) kg/m3, and Poisson’s ratio \(\nu = 0.3\).

Excitation of the waves is performed by setting potential difference on the electrodes of the piezoactuator with step-like time dependence (the duration of action is \(1 \times 10^{ - 6} \, {\text{s}}\)). The measured data are the ATRs of the electric potential at the free piezosensor electrode, located on the external surface of the pipe . There are two cases of its location: (i) near to the piezoactuator, and (ii) at a distance from it. We assume that a defect locates between actuator and sensor (Fig. 1). Measurement of the signal, reflected from defect, is produced in the time interval \([t_{1} ,t_{2} ]\). We assumed, that \(t_{1}\) is the time, when a reflected signal reaches sensor, \(t_{2}\) is the time, when the signal, reflected from the pipe edges, reaches sensor: \(t_{1} = 2s_{1} /v,\;t_{2} = 2(s_{1} + l_{1} )/v,\;\Delta t = t_{2} - t_{1}\) (where v is the speed of the signal). For the second piezoelectric sensor, this interval is \(t_{1} = s_{2} /v,\;t_{2} = (s_{2} + 2l_{2} )/v,\;\Delta t = t_{2} - t_{1}\).

3 Identification of Defects with the Use of Artificial Neural Networks

3.1 ANN Architecture

Multilayer network with back propagation is applied (Fig. 2). This architecture is perfectly suited for the task and combines the ease of implementation and performance.

Fig. 2
figure 2

Explanation of the back propagation

Two hundred data vectors were formed, 90% of which were used for training and 10% for testing. Then the computer experiments were performed using ANN.

The square error, \({\text{er}}\), for a particular network configuration is determined by providing a network of all existing observations (\(n\)) and comparing the actual output values with the desired (target) values:

$${\text{er}} = \frac{1}{2}\sum\limits_{i = 1}^{n} {(d_{i} - y_{i} )^{2} } ,$$
(3.1)

where \(d\) is the desired network output; y is the real network output.

After training, the network can be used to predict output values. The accuracy of prediction is calculated according to the formula:

$${\text{ex}} = \frac{100}{N*M}\sum\limits_{i = 1}^{n} {\sum\limits_{j = 1}^{m} {\left( {1 - |\frac{{dt_{i,j} - yt_{i,j} }}{{dt_{i,j} }}|} \right)} } ,$$
(3.2)

where \(n\) is the number of samples for testing; \(m\) is the number of output data; \(dt\) is the desired network output at testing; and \(yt\) is the actual network output at testing.

3.2 The Processing of Input Data for ANN

Figure 3a presents ATR of electric potential \(\varphi\), measured by piezoelectric sensor (curve 1 represents the data that correspond to the case of the pipe without defect; curve 2 represents the data that correspond to the case of the pipe with defect \(dr = 5\,{\text{mm}}\); curve 3 is the difference between 1 and 2). Moreover, the time interval used for ANN training is specified.

Fig. 3
figure 3

a ATRs of electric potential \(\varphi\) for the pipe without the defect, with defect and their differences (input data for ANN correspond to case 1); b example of the ANN input data in case 2

Case 1. The input data for the neural network is the ATR of \(\varphi\) per the period of time \([t_{1} ,t_{2} ]\), marked by a dotted line in Fig. 3a.

Case 2. FFT algorithm is applied. Inputs to the neural network are values of the real parts of FFT (RFFT) (shown in Fig. 3b). In this case, the size of the input data decreases, so the training time will be less than in the first case.

4 Numerical Experiments

4.1 Determination of Distance to the Defect by Using Hardware

Figure 4 shows the difference between ATR of electric potential \(\varphi\) measured by the second piezosensor . Curve 1 represents the difference between \(\varphi\) for the empty pipe without defect and with it. Curve 2 represents the difference between \(\varphi\) of the pipe without defect filled with fluid and with the defect. The amplitudes and informative signal for empty pipe and filled with fluid are comparable, so further the ANN technology in the problem of identification of the defect is applied to an empty tube.

Fig. 4
figure 4

Comparison of the difference between ATRs of the electric potential \(\varphi\) for the empty tube and the tube with the fluid

Figure 5 shows the difference between ATRs of electric potential \(\varphi\) measured by the first piezosensor. This case corresponds to an empty pipe with the different distances \(s\) between the sensor and the defect. Curve 1 represents the difference between \(\varphi\) for the pipe without defect and with it on the external surface of the pipe . In the case of curve 1, \(s_{1} = 400\,\) mm. In the case of curve 2, \(s_{2} = 600\,\) mm. Using the time of arrival of the reflected signal \(t_{*}\) or \(t_{**}\), we can estimate the distance to the defect. It is the first step in the identification of its parameters.

Fig. 5
figure 5

Comparison of \(\varphi\) for the different defect positions

4.2 Determination of Distance to the Defect Using ANN

It was noted that the distance to the defect can be determined by using hardware according to the arrival time of the reflected signal. There is a possibility of the determination by using a trained neural network. It does not analyze the defect parameters, but identifies its location.

Table 1 shows the results of the identification of distance \(s\) to the defect by using ANN. The ANN structure is “200-20-1”. It uses 2000 training iterations and 200 input vectors (180—training, 20—testing); we assume that \(s \in [1300,1700]\) mm. The defects locate on the outer surface of the pipe. The line number indicates the type of the defect in Table 2.

Table 1 Results of the identification of the distance to defect
Table 2 Defect classes

The data, presented in Table 1, show that the error of determining the distance value equals 5% for “small” defects and reduces to 1.5% for “large” defects.

4.3 Determination of Defect Parameters Using ANN

The second step is to determine the crack depth, which is defined from range \(dr \in [0, \, 9]\,{\text{mm}}\) in a numerical experiment. The discussed defects are roughly divided into three classes (see Table 2). This separation can be associated with classification of defects according to the degree of damage and the danger of the destruction of the pipe. For each class within the training and testing, we analyzed 200 defects.

The reconstruction of defect parameters was performed for two cases: (i) defects, located on the outer surface of the pipe; and (ii) defects, located on the inner surface of the pipe.

4.3.1 Reconstruction of Perpendicular Cracks

Let us first consider the crack perpendicular to the pipe surface. In this case, the depth of the defect , \(dr\), shall be identified. Two hundred data vectors were formed, 90% of which were used for training and 10% for testing. Thereafter, the computer experiments are performed using the ANN. Error,\({\text{er}}\) (Fig. 6), and prediction accuracy were defined by the formulae (3.1) and (3.2).

Fig. 6
figure 6

Training error

The results of the training and testing in the case of the second sensor are shown in Tables 3, 4, 5 and 6.

Table 3 Results of training and testing ANN, using 2000 epochs and 200 input vectors (RFFT); different hidden layers are used and defects locate on the outer surface of the pipe
Table 4 Results of training and testing of ANN, using 200 input vectors (RFFT); different numbers of epochs are used and defects locate on the outer surface of the pipe
Table 5 Results of training and testing ANN using 2000 epochs; different values of the defect depth are used and defects locate on the outer surface of the pipe
Table 6 Results of training and testing ANN using 2000 epochs; different values of the defect depth are used and defects locate on the inner surface of the pipe

Table 3 shows the ANN structures, which give the best identification results, namely 51 input neurons, 10 hidden neurons, and one output neuron.

Table 4 shows that the best result is obtained with 2000 training iterations.

The results of training and testing in the Case 2, using the first sensor, are shown in Tables 7 and 8.

Table 7 Results of training and testing ANN using 2000 epochs; different values of the defect depth are used and defects locate on the outer surface of the pipe
Table 8 Results of training and testing ANN using 2000 epochs; different values of the defect depth are used and defects locate on the inner surface of the pipe

The results of Tables 5, 6, 7 and 8 listed in rows 1–3 correspond to Table 2.

Figure 7 shows the test results of ANN (depth identification ), displaying 20 examples with “10-01-51” architecture. The plots, shown in Fig. 7a, b, are built on the data, obtained by using the second row of Tables 5 and 6, respectively.

Fig. 7
figure 7

Test results of identification of the defect depth

Figure 8 shows the results of identification in the case of using “noisy data” from formula (4.1). It is modeled the measurement error as

$$\overset{\lower0.5em\hbox{$\smash{\scriptscriptstyle\smile}$}}{X} (t) = X(t) + \delta P(t){\text{MAX}}(\left| {X(t)} \right|),$$
(4.1)

where \(\delta\) ranges from 1 to 10%, and \(P(t)\) is the random variable uniformly distributed in the range [−1, 1].

Fig. 8
figure 8

Results of identification by using “noisy data”

4.3.2 Reconstruction of Inclined Cracks

In this section, we consider the identification of inclined cracks . Also as previously, defects are roughly divided into three classes (Table 2). We consider inclined cracks on the outer surface of the pipe. The inclination angle of the crack varies in the range [−45°; 45°]. Two hundred defects are used for each of the considered classes. The results of identification are shown in Tables 9, 10 and 11.

Table 9 Results of training and testing ANN using 2000 epochs; different values of the defect depth and angle are used
Table 10 Results of training and testing ANN using 2000 epochs; different values of the defect depth and angle are used
Table 11 Results of training and testing ANN using 2000 epochs and 200 input vectors (RFFT); different values of the defect depth and angle are used

The numerical results showed that the identification error of inclined cracks does not exceed 10%. The architecture of trained ANN is 200-20-2 and 101-10-2. Thus, using the data, based on RFFT, accelerates more than two times speed of the learning process. For a more accurate reconstruction of defect parameters, the piezoelectric actuators and sensors, if it is possible in practice, should be located in the vicinity of the defect.

5 Conclusion

In the result of this study, the method of the parameter identification of cracks on the outer or inner surface of the pipe, based on a combination of the finite element method and ANN, is developed. Additional information for the solution of the inverse problem of identification of the crack is ATRs of a radial and axial displacements and electric potential of piezosensor . This allows one to use the developed method in practice without complicated measurements. The study found that the preparation of the input data is the cornerstone in solving the problem. The most successful is the identification of the defect, based on the ATR, obtained by FFT. It is shown that the problem of identifying defects may be performed in two stages: (i) by determining the distance to the defect, and (ii) by determining its parameters.

Accuracy of determining the defect depth for the outer surface defect became 99.41 and 99.71% for the inner surface defect. Note that as additional information for the solution of inverse problems was used ATR of electrical potential of piezosensors , these sensors were located before the defect (for reflected signal) and after the defect (for passed signal). The results of numerical experiments showed that accuracy of the identification of defect parameters with trained ANN exceeded 95% at both locations of piezosensors . In the result of numerical experiments, we revealed ANN architectures that gave the best identification results, namely, 51 input neurons, 10 hidden neurons, and 1 output neuron.

In this architecture, we used the data, processed by the FFT. The size of input data was reduced, so the learning process became faster than in the case of using ATR data. Analysis of the input data showed that the ATR data could be used for identification defects in pipes, filled with fluid. The proposed identification algorithm was resistant to the error of input information.

Based on the foregoing, we conclude that the artificial neural network approach can be successfully used to identify defects on the surface of pipes by using the acoustic sensing of far field.