Improved Defect Detection Using Adaptive Leaky NLMS Filter in Guided-Wave Testing of Pipelines

Ultrasonic guided wave (UGW) testing of pipelines allows long range assessments of pipe integrity from a single point of inspection. This technology uses a number of arrays of transducers, linearly placed apart from each other to generate a single axisymmetric wave mode. The general propagation routine of the device results in a single time domain signal, which is then used by the inspectors to detect the axisymmetric wave for any defect location. Nonetheless, due to inherited characteristics of the UGW and non-ideal testing conditions, non-axisymmetric (flexural) waves will be transmitted and received in the tests. This adds to the complexity of results’ interpretation. In this paper, we implement an adaptive leaky normalized least mean square (NLMS) filter for reducing the effect of non-axisymmetric waves and enhancement of axisymmetric waves. In this approach, no modification in the device hardware is required. This method is validated using the synthesized signal generated by a finite element model (FEM) and real test data gathered from laboratory trials. In laboratory trials, six different sizes of defects with cross-sectional area (CSA) material loss of 8% to 3% (steps of 1%) were tested. To find the optimum frequency, several excitation frequencies in the region of 30–50 kHz (steps of 2 kHz) were used. Furthermore, two sets of parameters were used for the adaptive filter wherein the first set of tests the optimum parameters were set to the FEM test case and, in the second set of tests, the data from the pipe with 4% CSA defect was used. The results demonstrated the capability of this algorithm for enhancing a defect’s signal-to-noise ratio (SNR).


Introduction
Ultrasonic guided wave (UGW) allows long-range non-destructive testing (NDT) of pipes from a single point of inspection.The device utilizes a test-tool consisting of a number of transducer arrays that are installed on the pipe.One of the main problems of UGWs is that they are inherently multimodal and dispersive.In general inspection of pipelines, pure axisymmetric modes (torsional and longitudinal), in their non-dispersive regions, are used to decrease the complexity in the interpretation of the results.The general propagation routine of the device generates a single time-domain signal by summing a phase-delayed arrangement of the waveforms received from each transducer [1,2].The defects are then detected by the inspectors, based on signal-to-noise ratio (SNR), where an anomaly is reported if the signal envelope is higher than the regional noise level [3].
The main advantage of using a transducer array is the excitation of axisymmetric wave and cancellation of the flexural waves, which are mainly considered as coherent noise in the inspection.Nonetheless, due to the imperfect testing condition, perfect cancellation of flexural waves is not achievable.Various approaches have been established in the literature for improving the SNR in the presence of coherent noise.One of the methods is pulse-compression [4][5][6][7].In this technique, a modulated waveform (as opposed to a sine wave) is excited, wherein the reception side results are correlated with the known sequence.The locations with the highest correlation illustrate the same possible location of the defects.However, the performance and the design of an optimum excitation sequence can be dependent on the testing conditions, such as the transfer functions of the transducer [6].On the other hand, filtering approaches such as split-spectrum processing have also been implemented.In 2018, Pedram et al. [8] utilized split-spectrum processing to enhance the SNR of tests.While significant improvements can be achieved using SSP, the algorithm depends on many different parameters which can be changed on a case by case basis.Furthermore, wavelet de-noising has been investigated by Mallet [9].In this approach, after a defining a mother wavelet, the signal is decomposed into multiple levels of discrete wavelet transforms where a thresholding technique is applied to remove low-amplitude signals.The undesirable effect of decreasing the noise with this method is the possibility of removing the signal of interest, as the non-random noise components (flexural waves) can have similar amplitudes to those received from axisymmetric waves.
All of the aforementioned techniques can be considered as passive noise cancellation, where a function must be defined beforehand by the user and results are processed based on that function.Furthermore, most of the methods in the literature consider the signals achieved after the device's propagation routine as the main input signals of their implemented techniques while the device inherently produces a multidimensional signal.Therefore, in this paper, we propose to use adaptive filtering which is an active noise cancellation technique.As opposed to passive techniques, active noise cancellation allows the function to update itself to the noise characteristic of each iteration [10].
In the field of signal processing, filtering is one of the most common processes [11].When the characteristics of noise are known, static filters can be designed that remove the non-coherent unwanted noise of tests (passive noise cancellation).As an example, when the expected bandwidth of the received signal is between 30 and 60 kHz, all other frequencies can be filtered.However, in most real-life scenarios, designing an optimum static filter is not possible since: (1) the characteristic of the noise is not known beforehand and (2) the noise can be iteratively changing.On the other hand, by providing the right multidimensional signal to adaptive filters, it is possible to remove such noise from the tests.
Adaptive filters have been applied in a variety of industries such as communications radar, ultrasonic and medical.The basic concept of adaptive noise cancellers was introduced by Widrow et al. in 1975 [12].Their work developed the already existing Wiener filter model in order to utilize the residual signal for adaptive update of the filter weights.Many of the derived algorithms, as well as applications, were explained in his work, including canceling periodic interference in electrocardiography and speech signals.Using the same principles, Rajesh et al. [13] proposed an adaptive noise-canceling method for the removal of background noise where the closest sensor to the abdomen of a pregnant patient is used as the reference signal, with the maternal signal captured by a sensor in a different position.By using this configuration, they were able to extract the wanted Fetal signal which was obscured by the signal received from the maternal heart rate.In 2003 [14], Hernandez implemented the adaptive linear enhancer (ALE) algorithm to increase the SNR by using the delayed version of the same signal as the input to the adaptive filter.Ramli et al. [15] reviewed different adaption algorithms, such as the least mean square (LMS), normalized-LMS (NLMS), leaky-LMS and recursive least square (RLS), where it was reported all of these approaches are capable of enhancing the SNR.In communications and speech analysis, one of the common uses of an adaptive noise canceller (ANC) is for echo cancellation [16,17], which can be generated by hybrid transformers while transmitting data, or from the multipath mitigation of the signals to the microphone.In radar technology [18,19], adaptive filters are widely used for multipath cancellation, clutter rejection, and spatial noise reduction by using adaptive beamforming.In ultrasonic testing, Zhu et al. [20] used adaptive filters in order to increase the SNR in ultrasonic non-destructive testing (NDT) of highly scattered materials.In 2010, Monroe et al. [21], tested this configuration for clutter rejection and detection of small targets in ultrasonic backscattered signals.Both researchers reported that adaptive filtering is a robust method of filtering the random ultrasonic grain noise created by the structure.It was reported that if the ultrasonic beam is moved less than a beam width away from the position, the echo from a structural feature is closely related while the grain noise varies.The results were evaluated experimentally using NLMS where an improvement of 5-10 dB was observed with fixed parameters.
In guided-wave testing, the noise is time varying.While the excited wave mode is non-dispersive and axisymmetric, the flexural waves change in time.Therefore, when observing the signal from different points of the pipe the axisymmetric waves will have similar characteristics, while the flexural waves will be variable.In this paper, instead of removing the noise from the single time-domain signal received from the propagation routine, a novel method is proposed to utilize adaptive filtering using the signals received from separate rings to remove the flexural wave modes in the tests.The leaky NLMS method is used for updating the filter weights in each iteration.The NLMS method reduces the amplification of gradient noise and also provides a faster rate of convergence than the LMS algorithm [10,22]; therefore, it is more suited for guided-wave applications with time-varying noise.Furthermore, the introduction of a leakage factor in the update function for the filter weights limits the divergence of the filter weights.Leakage methods were initially introduced to decrease performance degradation caused by limited-precision hardware [23].The process is equivalent to the introduction of a white noise sequence to the input signal [22].In the context of this paper, the main reason for applying a leakage factor was to allow faster adaption of the filter weights to the existing noise of each iteration.The performance analysis of leaky NLMS algorithms have been previously done by Sayed et al. [24] and the stability of the algorithm was investigated by Bismor et al. [25].In mathematical formulation, introducing the leakage factor would only reduce the effect of past filter weights.Therefore, if the same principles of the NLMS algorithm are used, the algorithm will remain stable and bounded.This methodology was initially developed using synthesized data generated by finite element modelling (FEM) of the test system.It was then verified through experimental trials on real pipe data with a defect of 3-8% cross-sectional area (CSA) size, and enhancement of the SNR in comparison to the device's general routine is demonstrated.
In Section 2, the background of guided waves in pipelines and the nature of noise is explained.Section 3 includes the description of the device's general propagation routine and the proposed adaptive filtering strategy.In the results section, for better illustration of the adaptive filtering process, each stage of the process applied to the FEM signal is shown, followed by the results achieved from the experimental tests.It is demonstrated that although the algorithm cannot increase the SNR for small defects, but it will also not decrease it in compared to general propagation routine.

Background Information
Guided waves are multimodal [26].Depending on the excitation frequency, multiple wave modes can be generated at the point of excitation.These modes are categorized based on their displacement patterns (mode shapes) within the structure.The main categories of guided waves in pipes are axisymmetric torsional and longitudinal waves and non-axisymmetric flexural waves.The popular nomenclature used for them is in the format of X(n,m), where X can be replaced by letters L for longitudinal, T for torsional, and F for flexural waves; n shows the harmonic variations of displacement and stress around the circumference; and m represents the order of existence of the wave mode [27].In an ideal scenario, a single pure family of axisymmetric waves in their non-dispersive region should be excited for general inspection.Nonetheless, this is not possible due to the variations of excitation and the reception transfer function of transducers in real-life scenarios.Furthermore, the interaction of wave modes with the pipe also leads to the generation of different wave modes, which is commonly known as a wave mode conversion phenomenon [26,28,29].
Figure 1 shows the spatial arrival of the signals from different segments of the pipe.These signals are created using the developed model in [30], where a three ring excitation system is used.Each ring contains 32 source points with variable transfer functions.In the figures, blue and red lines show the received amplitude from the transducers of two separate rings while the black dotted line serves as the reference.Any point outside the circle illustrates positive amplitude and the points inside show the negative amplitude of the corresponding source point.The following points can be concluded by comparing the illustrated polar plots:

•
The energy of waves received from axisymmetric features (e.g., pipe end) are overwhelmed by the T(0,1) with little variance caused by the existing coherent noise of flexural waves.

•
Defect signals have a mixture of both flexural and torsional wave modes; nonetheless, if the cross-sectional area (CSA) of the defect is wide, the T(0,1) will have a greater effect than the flexurals.This is the main reason why adding all the transducers tends to increase the overall energy of T(0,1) while reducing the effect of flexurals.

•
Noise regions are mostly consistent with flexurals with almost no axisymmetric wave being detected.
Appl.Sci.2019, 9, x FOR PEER REVIEW 4 of 23 the reference.Any point outside the circle illustrates positive amplitude and the points inside show the negative amplitude of the corresponding source point.The following points can be concluded by comparing the illustrated polar plots:

•
The energy of waves received from axisymmetric features (e.g., pipe end) are overwhelmed by the T(0,1) with little variance caused by the existing coherent noise of flexural waves.

•
Defect signals have a mixture of both flexural and torsional wave modes; nonetheless, if the cross-sectional area (CSA) of the defect is wide, the T(0,1) will have a greater effect than the flexurals.This is the main reason why adding all the transducers tends to increase the overall energy of T(0,1) while reducing the effect of flexurals.

•
Noise regions are mostly consistent with flexurals with almost no axisymmetric wave being detected.
(a) Pipe End (b) Defect (c) Flexurals caused by defect Furthermore, guided waves exhibit dispersive propagation.Dispersion causes the energy of a signal to spread out in space and time as it propagates [32].Figure 2a shows an example of a dispersion curve calculated from an 8-inch schedule 40 steel pipe using RAPID software [33].Wilcox et al. introduced a method to use dispersion curves in order to both simulate [34] and remove [32] the effect of dispersion.By applying the developed equation by Wilcox et al. and the shown dispersion curves in Figure 2a, a simulated propagation of F(4,2) wave mode is created and shown in Figure 2b where the black and red lines show the same wave mode after 1 m and 2 m of propagation, respectively.As can be seen, for a dispersive waveform the temporal resolution and the energy of wave packet is decreased.Therefore, in general inspection, non-dispersive regions of wave modes are excited to allow ease of inspection.In this research, T(0,1) is used as the excitation wave mode since it is nondispersive across its whole frequency range [35].The effect of dispersion on a simulated flexural wave, two propagation distances [31].Furthermore, guided waves exhibit dispersive propagation.Dispersion causes the energy of a signal to spread out in space and time as it propagates [32].Figure 2a shows an example of a dispersion curve calculated from an 8-inch schedule 40 steel pipe using RAPID software [33].Wilcox et al. introduced a method to use dispersion curves in order to both simulate [34] and remove [32] the effect of dispersion.By applying the developed equation by Wilcox et al. and the shown dispersion curves in Figure 2a, a simulated propagation of F(4,2) wave mode is created and shown in Figure 2b where the black and red lines show the same wave mode after 1 m and 2 m of propagation, respectively.As can be seen, for a dispersive waveform the temporal resolution and the energy of wave packet is decreased.Therefore, in general inspection, non-dispersive regions of wave modes are excited to allow ease of inspection.In this research, T(0,1) is used as the excitation wave mode since it is non-dispersive across its whole frequency range [35].
Appl.Sci.2019, 9, x FOR PEER REVIEW 4 of 23 the reference.Any point outside the circle illustrates positive amplitude and the points inside show the negative amplitude of the corresponding source point.The following points can be concluded by comparing the illustrated polar plots: • The energy of waves received from axisymmetric features (e.g., pipe end) are overwhelmed by the T(0,1) with little variance caused by the existing coherent noise of flexural waves.

•
Defect signals have a mixture of both flexural and torsional wave modes; nonetheless, if the cross-sectional area (CSA) of the defect is wide, the T(0,1) will have a greater effect than the flexurals.This is the main reason why adding all the transducers tends to increase the overall energy of T(0,1) while reducing the effect of flexurals.

•
Noise regions are mostly consistent with flexurals with almost no axisymmetric wave being detected.
(a) Pipe End (b) Defect (c) Flexurals caused by defect Furthermore, guided waves exhibit dispersive propagation.Dispersion causes the energy of a signal to spread out in space and time as it propagates [32].Figure 2a shows an example of a dispersion curve calculated from an 8-inch schedule 40 steel pipe using RAPID software [33].Wilcox et al. introduced a method to use dispersion curves in order to both simulate [34] and remove [32] the effect of dispersion.By applying the developed equation by Wilcox et al. and the shown dispersion curves in Figure 2a, a simulated propagation of F(4,2) wave mode is created and shown in Figure 2b where the black and red lines show the same wave mode after 1 m and 2 m of propagation, respectively.As can be seen, for a dispersive waveform the temporal resolution and the energy of wave packet is decreased.Therefore, in general inspection, non-dispersive regions of wave modes are excited to allow ease of inspection.In this research, T(0,1) is used as the excitation wave mode since it is nondispersive across its whole frequency range [35].The effect of dispersion on a simulated flexural wave, two propagation distances [31].The effect of dispersion on a simulated flexural wave, two propagation distances [31].
Three main signals are expected to be received in guided-wave tests which are shown in Figure 3.The first signal is the superposition of T(0,1) and flexurals where it is the true defect location.The second is the flexurals created due to wave mode conversion [36]; as these signals exhibit the same characteristics of excitation waveform, they can lead to the detection of false alarms.The third category is the non-coherent white noise, which is not correlated to the excitation sequence.This category is the main one which can be removed using generalized filtering techniques, as their characteristic is completely different to the excitation sequence.
Appl.Sci.2019, 9, x FOR PEER REVIEW 5 of 23 Three main signals are expected to be received in guided-wave tests which are shown in Figure 3.The first signal is the superposition of T(0,1) and flexurals where it is the true defect location.The second is the flexurals created due to wave mode conversion [36]; as these signals exhibit the same characteristics of excitation waveform, they can lead to the detection of false alarms.The third category is the non-coherent white noise, which is not correlated to the excitation sequence.This category is the main one which can be removed using generalized filtering techniques, as their characteristic is completely different to the excitation sequence.

Methodology
As explained previously, guided waves are multimodal.To allow inspection of pipelines using guided waves, a single wave mode must be excited in only one direction to allow detection of the anomaly's location.Excitation and detection of flexural waves are difficult and require complex processing algorithms due to their circumferential variation.Therefore, the practice in the general inspection is to excite an axisymmetric wave.For doing so, the toolset of guided-wave testing devices consists of arrays of linearly placed transducers (rings) across the circumference of the pipe.This leads to excitation of a quasi-axisymmetric wave where, in ideal scenarios, the corresponding flexurals of the excitation wave mode will cancel each other out [1,37,38].If only one array is used, a bidirectional wave mode is generated since there is no directional control in the normal piezo-electric transducer.The most common method of achieving a unidirectional transmission is to use multiple arrays of transducers.By considering the dispersion curves of the generated wave mode and the placement spacing between the rings, waves can be manipulated in such a way to enforce the forward going propagation and suppress the backward leakage.Hence, the forward propagations of each ring are overlapped while the signals received from backward propagation direction are inversely overlapped [1,2,6,39].
On the reception side, signals from the backward direction will still be received due to (1) the impure/non-ideal excitation and (2) the forward propagation signals travel paths after the toolset.Once the device is in monitoring mode, no excitation takes place, meaning if an echo is received from the device, it will continue to travel past the test tool; if any anomalies exist in that direction, a new echo will be generated which will travel in the same way as the forward testing direction.At this point two scenarios will occur: 1.In the first scenario, the signal from a feature in the backward test direction is detected by the rings.The energy of this signal can be reduced by using the same phase-delaying algorithm in the excitation sequence.

Methodology
As explained previously, guided waves are multimodal.To allow inspection of pipelines using guided waves, a single wave mode must be excited in only one direction to allow detection of the anomaly's location.Excitation and detection of flexural waves are difficult and require complex processing algorithms due to their circumferential variation.Therefore, the practice in the general inspection is to excite an axisymmetric wave.For doing so, the toolset of guided-wave testing devices consists of arrays of linearly placed transducers (rings) across the circumference of the pipe.This leads to excitation of a quasi-axisymmetric wave where, in ideal scenarios, the corresponding flexurals of the excitation wave mode will cancel each other out [1,37,38].If only one array is used, a bidirectional wave mode is generated since there is no directional control in the normal piezo-electric transducer.The most common method of achieving a unidirectional transmission is to use multiple arrays of transducers.By considering the dispersion curves of the generated wave mode and the placement spacing between the rings, waves can be manipulated in such a way to enforce the forward going propagation and suppress the backward leakage.Hence, the forward propagations of each ring are overlapped while the signals received from backward propagation direction are inversely overlapped [1,2,6,39].
On the reception side, signals from the backward direction will still be received due to (1) the impure/non-ideal excitation and (2) the forward propagation signals travel paths after the toolset.Once the device is in monitoring mode, no excitation takes place, meaning if an echo is received from the device, it will continue to travel past the test tool; if any anomalies exist in that direction, a new echo will be generated which will travel in the same way as the forward testing direction.At this point two scenarios will occur: 1.
In the first scenario, the signal from a feature in the backward test direction is detected by the rings.The energy of this signal can be reduced by using the same phase-delaying algorithm in the excitation sequence.

2.
The second scenario is when the same echo is past the tool.This signal will have the same characteristics as forward propagation and thus cannot be canceled.These are typically known as mirror signals.
The phase-delaying algorithm is once again applied in the general routine of reception to reduce the effect of signals generated from the first scenario.Afterward, the average of all transducer signals is generated, which will reduce the energy of flexural waves.The signal of the rings can also be strongly different which either suggests the existence of no defect or a small defect which is not generating a strong-enough signal to be detected.In the normal approach, as simple summation is used, this will lead to the generation of a residual signal which might be mistaken as a defect in the inspection.The flowchart for this general reception routine, which is the common practice of industry, is shown in Figure 4.
2. The second scenario is when the same echo is past the tool.This signal will have the same characteristics as forward propagation and thus cannot be canceled.These are typically known as mirror signals.
The phase-delaying algorithm is once again applied in the general routine of reception to reduce the effect of signals generated from the first scenario.Afterward, the average of all transducer signals is generated, which will reduce the energy of flexural waves.The signal of the rings can also be strongly different which either suggests the existence of no defect or a small defect which is not generating a strong-enough signal to be detected.In the normal approach, as simple summation is used, this will lead to the generation of a residual signal which might be mistaken as a defect in the inspection.The flowchart for this general reception routine, which is the common practice of industry, is shown in Figure 4.

Adaptive Filtering
The main challenge in the inspection of guided waves is to decrease the energy of coherent noise in the test since non-coherent noise is generally removed by bandpass filtering and averaging.Dispersion characteristics of guided wave modes vary with regards to the structural features, frequency, and wave mode.However, the non-dispersive torsional mode is typically constant with an approximate speed of 3260 m/s.By shifting the rings to overlay the T(0,1) signals together, the wave modes which travel at different speeds will be less correlated with those that travel at constant speed.Furthermore, as shown in Figure 1, the flexural waves are highly variable in the space while the torsional mode has a higher correlation.
In this case, the existing torsional mode is highly correlated while the noise and flexural modes will be less correlated in time.Therefore, instead of the summation of the signals, adaptive filters can be utilized to enhance the signal resolution.The output signal of an finite impulse response (FIR) filter in time-domain can be achieved by the convolution operation using [10,[40][41][42]: where p is the filter length, n is the iteration number, w k (n) is the filter coefficients with the index of k, and x(n) is the input signal.In the following equations, both () and () are vectors of size p (represented by bold characters).The resultant error signal would be: where d(n) represents the required reference (desired) signal; hence, in order to use this method, at least two signals are required.In adaptive filtering, the goal is to minimize the error signal by setting the filter weight.Therefore, in each iteration the filter weights should be updated: where △w(n) is the correction step applied to previous filter coefficients to update them for the next iteration; the key component of the adaptive filter is to define △w(n) in a way that it decreases the

Adaptive Filtering
The main challenge in the inspection of guided waves is to decrease the energy of coherent noise in the test since non-coherent noise is generally removed by bandpass filtering and averaging.Dispersion characteristics of guided wave modes vary with regards to the structural features, frequency, and wave mode.However, the non-dispersive torsional mode is typically constant with an approximate speed of 3260 m/s.By shifting the rings to overlay the T(0,1) signals together, the wave modes which travel at different speeds will be less correlated with those that travel at constant speed.Furthermore, as shown in Figure 1, the flexural waves are highly variable in the space while the torsional mode has a higher correlation.
In this case, the existing torsional mode is highly correlated while the noise and flexural modes will be less correlated in time.Therefore, instead of the summation of the signals, adaptive filters can be utilized to enhance the signal resolution.The output signal of an finite impulse response (FIR) filter in time-domain can be achieved by the convolution operation using [10,[40][41][42]: where p is the filter length, n is the iteration number, w k (n) is the filter coefficients with the index of k, and x(n) is the input signal.In the following equations, both x(n) and w(n) are vectors of size p (represented by bold characters).The resultant error signal would be: where d(n) represents the required reference (desired) signal; hence, in order to use this method, at least two signals are required.In adaptive filtering, the goal is to minimize the error signal by setting the filter weight.Therefore, in each iteration the filter weights should be updated: where ∆w(n) is the correction step applied to previous filter coefficients to update them for the next iteration; the key component of the adaptive filter is to define ∆w(n) in a way that it decreases the mean square error over time.One of the robust methods is the normalized least mean square [20,41], which tries to minimize the least mean square error by setting the coefficients according to a variable step size.The formula is as follows: where β is a normalized step size with 0 < β < 2, is some small positive number to bypass the problem when x(n) 2 becomes too small.The noise in guided waves is highly variable due to the existence of time-varying multiple modes.To make sure the filter is not over-fitted to the characteristics of previous iterations, a leakage factor, α, is added to reduce the effect of previous iterations [42]: The flow chart of this algorithm is shown in Figure 5.In this setup, instead of adding the signals received from the rings of transducers, they are selected as the desired response d(n) and the input signal x(n).Every other signal is updated based on the characteristics of each iteration and y(n) is the output of the filter.The selected reference and input signals are the two sets generated in the general propagation routine, as marked in mean square error over time.One of the robust methods is the normalized least mean square [20,41], which tries to minimize the least mean square error by setting the coefficients according to a variable step size.The formula is as follows: where β is a normalized step size with 0 < β < 2, ϵ is some small positive number to bypass the problem when |x(n)| 2 becomes too small.The noise in guided waves is highly variable due to the existence of time-varying multiple modes.To make sure the filter is not over-fitted to the characteristics of previous iterations, a leakage factor, α, is added to reduce the effect of previous iterations [42]: The flow chart of this algorithm is shown in Figure 5.In this setup, instead of adding the signals received from the rings of transducers, they are selected as the desired response d(n) and the input signal x(n).Every other signal is updated based on the characteristics of each iteration and y(n) is the output of the filter.The selected reference and input signals are the two sets generated in the general propagation routine, as marked in Figure 4. Applying this phase delay and summation of arrays within each ring, two sets of signals are created where both have the following components: This satisfies the need for a reference signal in using adaptive filtering.To cancel the backward leakage, this algorithm is done with the switching of the input and reference signals, where the final result is the summation of the two generated outputs of the adaptive filters.

Test Setup
The algorithm was initially developed on a synthesized data generated by FEM using ABAQUS software [30,43].It was then validated in laboratory trials on real pipes using a Teletest Device [44].

Finite Element Model
The simulated pipe is based on the characteristics of an 8-inch schedule 40 steel pipe with a length of 6 m, outer diameter of 219.1 mm, thickness of 8.18 mm, Young's Modulus of 210 GPa, This satisfies the need for a reference signal in using adaptive filtering.To cancel the backward leakage, this algorithm is done with the switching of the input and reference signals, where the final result is the summation of the two generated outputs of the adaptive filters.

Test Setup
The algorithm was initially developed on a synthesized data generated by FEM using ABAQUS software [30,43].It was then validated in laboratory trials on real pipes using a Teletest Device [44].

Finite Element Model
The simulated pipe is based on the characteristics of an 8-inch schedule 40 steel pipe with a length of 6 m, outer diameter of 219.1 mm, thickness of 8.18 mm, Young's Modulus of 210 GPa, density of 7850 kg/m 3 and Poisson's Ratio of 0.3.The excitation frequency in the test was 30 kHz.In order to capture the smallest wavelength in the operating frequency, at least 8 elements are required in the axial direction [45,46].Therefore, the global seed size was set as 2.5 mm and the time increment was set as 3.11 × 10 −7 s to provide a satisfactory accuracy in generation and reception of all the wave modes within the frequency band.The modeled test tool included 3 rings of 32 linearly spaced source points, located 1 m away from the back end of the pipe.Each source point of the rings is numbered clockwise starting from 90 • .The schematic of this setup is illustrated in Figure 6.In order to capture the smallest wavelength in the operating frequency, at least 8 elements are required in the axial direction [45,46].Therefore, the global seed size was set as 2.5 mm and the time increment was set as 3.11 × 10 −7 s to provide a satisfactory accuracy in generation and reception of all the wave modes within the frequency band.The modeled test tool included 3 rings of 32 linearly spaced source points, located 1 m away from the back end of the pipe.Each source point of the rings is numbered clockwise starting from 90°.The schematic of this setup is illustrated in Figure 6.This type of FEM synthesis of guided wave signals in pipes was developed in previous studies [37,[46][47][48][49][50].The generated models have also been validated by confirming the accuracy of the received signals from both the device [50], and 3D laser vibrometer [46,47].Nonetheless, this type of FEM generally produces a limited amount of noise due to the perfect condition of the model.The main aim of this paper and the developed model is to investigate the performance of the algorithm in the presence of coherent noise.Therefore, in order to generate flexural noise in the test, different transfer functions were applied to the excitation sequence of each source point.Since the minimum satisfactory number of elements is used, the transfer functions will not affect the integrity of the model and all the existing wave modes in the test will be captured.Apart from these transfer functions, all other limits and parameters were in line with the verified models in the previous studies.
In 2013, Engineer [51] extracted the broadband frequency response of transducers with regards to various coupling forces using Teletest piezo-electric transducers.The reported frequency response was used as a reference and variability in terms of amplitude and phase was introduced to generate a variable transfer function for each transducer.An example is shown in Figure 7.
Test Tool located at 1m Defect of 3% cross-sectional area size at 4m Back End (BE) This type of FEM synthesis of guided wave signals in pipes was developed in previous studies [37,[46][47][48][49][50].The generated models have also been validated by confirming the accuracy of the received signals from both the device [50], and 3D laser vibrometer [46,47].Nonetheless, this type of FEM generally produces a limited amount of noise due to the perfect condition of the model.The main aim of this paper and the developed model is to investigate the performance of the algorithm in the presence of coherent noise.Therefore, in order to generate flexural noise in the test, different transfer functions were applied to the excitation sequence of each source point.Since the minimum satisfactory number of elements is used, the transfer functions will not affect the integrity of the model and all the existing wave modes in the test will be captured.Apart from these transfer functions, all other limits and parameters were in line with the verified models in the previous studies.
In 2013, Engineer [51] extracted the broadband frequency response of transducers with regards to various coupling forces using Teletest piezo-electric transducers.The reported frequency response was used as a reference and variability in terms of amplitude and phase was introduced to generate a variable transfer function for each transducer.An example is shown in Figure 7.The transfer functions are multiplied by the ideal excitation's frequency response, which is a 10 cycle 30 kHz Hann-windowed sine wave, and then inverted back into the time domain.The generated time-domain signals are used as input files for each of the source points.Additionally, the signals of the second array are phase delayed and inverted with regards to the 30 mm ring spacing cancellation algorithm [1,6].The overall system works in the pulse-echo mode and the signals were received from the same ideal point sources.The signal generation, as well as the post-processing, were done using MATLAB-R2016a [52].In order to increase the coherent noise of testing conditions, instead of receiving the signals from all source points, only source point numbers 1, 7, 14 and 26 of each ring have been used for reception (marked in red in Figure 8).The signal routes of the FEM test are shown in Figure 9.As can be seen, the first directly received signal from the forward test direction is the defect signal which is received at 3 m, followed by the front-end signal at 5 m.However, as the transfer function and reception points are not ideal, a backward leakage signal will exist, propagating in the forward direction.This leakage would be received at 1 m but due to the backward cancellation algorithm, it will not be observable.However, the reflection of this signal with the defect signal would be received from the forward direction, leading to a false alarm at 4 m.In these tests, since both signals at 3 and 4 m have the same The transfer functions are multiplied by the ideal excitation's frequency response, which is a 10 cycle 30 kHz Hann-windowed sine wave, and then inverted back into the time domain.The generated time-domain signals are used as input files for each of the source points.Additionally, the signals of the second array are phase delayed and inverted with regards to the 30 mm ring spacing cancellation algorithm [1,6].The overall system works in the pulse-echo mode and the signals were received from the same ideal point sources.The signal generation, as well as the post-processing, were done using MATLAB-R2016a [52].In order to increase the coherent noise of testing conditions, instead of receiving the signals from all source points, only source point numbers 1, 7, 14 and 26 of each ring have been used for reception (marked in red in Figure 8).The transfer functions are multiplied by the ideal excitation's frequency response, which is a 10 cycle 30 kHz Hann-windowed sine wave, and then inverted back into the time domain.The generated time-domain signals are used as input files for each of the source points.Additionally, the signals of the second array are phase delayed and inverted with regards to the 30 mm ring spacing cancellation algorithm [1,6].The overall system works in the pulse-echo mode and the signals were received from the same ideal point sources.The signal generation, as well as the post-processing, were done using MATLAB-R2016a [52].In order to increase the coherent noise of testing conditions, instead of receiving the signals from all source points, only source point numbers 1, 7, 14 and 26 of each ring have been used for reception (marked in red in Figure 8).The signal routes of the FEM test are shown in Figure 9.As can be seen, the first directly received signal from the forward test direction is the defect signal which is received at 3 m, followed by the front-end signal at 5 m.However, as the transfer function and reception points are not ideal, a backward leakage signal will exist, propagating in the forward direction.This leakage would be received at 1 m but due to the backward cancellation algorithm, it will not be observable.However, the reflection of this signal with the defect signal would be received from the forward direction, leading to a false alarm at 4 m.In these tests, since both signals at 3 and 4 m have the same  The signal routes of the FEM test are shown in Figure 9.As can be seen, the first directly received signal from the forward test direction is the defect signal which is received at 3 m, followed by the front-end signal at 5 m.However, as the transfer function and reception points are not ideal, a backward leakage signal will exist, propagating in the forward direction.This leakage would be received at 1 m but due to the backward cancellation algorithm, it will not be observable.However, the reflection of this signal with the defect signal would be received from the forward direction, leading to a false alarm at 4 m.In these tests, since both signals at 3 and 4 m have the same characteristics, they are both considered defect signals even though the second signal is a false detection.

Experimental Trials
In the laboratory trials, a Teletest MK4 device [44] was used in order to inspect an 8-inch schedule 40 steel pipe with a length of 6 m.The test tool included a collar of 3 ring transducers with 30 mm ring spacing, located 1.5 m away from the back end of the pipe.Each ring included 24 linearly spaced thickness-shear (d15) piezoelectric transducers.The system provided both excitation and reception of signals in pulse-echo mode with the operating frequency of 20 to 100 kHz.The device can capture the transducers' signals with a sampling frequency of 1 MHz.On the reception side, an internal bandpass filter was applied to filter any frequencies outside the main bandwidth of the excitation bandwidth.The device outputs the time-domain signal received from each ring, as well as the processed signal with the general propagation routine.In this paper, the signals from the rings are extracted in order to apply the algorithm.
The defects in these trials are located 4.5 m from back end of the pipe (3 m away from the test tool).The defects were introduced by removing the pipe's surface material with a saw.The defect sizes were varying from 3% to 8% CSA with steps of 1% CSA (total of 6 defect sizes).The signal routes of the laboratory trials are shown in Figure 10.As opposed to the FEM test setup, the Defect-2 signal, which was generated by reflection of backward leakage signal from the defect, is now overlapped with the front-end signal and is no longer detectable.

Experimental Trials
In the laboratory trials, a Teletest MK4 device [44] was used in order to inspect an 8-inch schedule 40 steel pipe with a length of 6 m.The test tool included a collar of 3 ring transducers with 30 mm ring spacing, located 1.5 m away from the back end of the pipe.Each ring included 24 linearly spaced thickness-shear (d15) piezoelectric transducers.The system provided both excitation and reception of signals in pulse-echo mode with the operating frequency of 20 to 100 kHz.The device can capture the transducers' signals with a sampling frequency of 1 MHz.On the reception side, an internal bandpass filter was applied to filter any frequencies outside the main bandwidth of the excitation bandwidth.The device outputs the time-domain signal received from each ring, as well as the processed signal with the general propagation routine.In this paper, the signals from the rings are extracted in order to apply the algorithm.
The defects in these trials are located 4.5 m from back end of the pipe (3 m away from the test tool).The defects were introduced by removing the pipe's surface material with a saw.The defect sizes were varying from 3% to 8% CSA with steps of 1% CSA (total of 6 defect sizes).The signal routes of the laboratory trials are shown in Figure 10.As opposed to the FEM test setup, the Defect-2 signal, which was generated by reflection of backward leakage signal from the defect, is now overlapped with the front-end signal and is no longer detectable.characteristics, they are both considered defect signals even though the second signal is a false detection.

Experimental Trials
In the laboratory trials, a Teletest MK4 device [44] was used in order to inspect an 8-inch schedule 40 steel pipe with a length of 6 m.The test tool included a collar of 3 ring transducers with 30 mm ring spacing, located 1.5 m away from the back end of the pipe.Each ring included 24 linearly spaced thickness-shear (d15) piezoelectric transducers.The system provided both excitation and reception of signals in pulse-echo mode with the operating frequency of 20 to 100 kHz.The device can capture the transducers' signals with a sampling frequency of 1 MHz.On the reception side, an internal bandpass filter was applied to filter any frequencies outside the main bandwidth of the excitation bandwidth.The device outputs the time-domain signal received from each ring, as well as the processed signal with the general propagation routine.In this paper, the signals from the rings are extracted in order to apply the algorithm.
The defects in these trials are located 4.5 m from back end of the pipe (3 m away from the test tool).The defects were introduced by removing the pipe's surface material with a saw.The defect sizes were varying from 3% to 8% CSA with steps of 1% CSA (total of 6 defect sizes).The signal routes of the laboratory trials are shown in Figure 10.As opposed to the FEM test setup, the Defect-2 signal, which was generated by reflection of backward leakage signal from the defect, is now overlapped with the front-end signal and is no longer detectable.

Results
In order to better understand this process, an example test case is initially shown where each stage of the algorithm is explained thoroughly.Then the experimental results are demonstrated in the second part of this section where the SNRs are calculated with regards to defects with different CSA sizes and excitation frequencies.In both cases the SNRs are calculated based on the following formula: where Signal is considered the window where the energy of the signal is received (between 3.0 m and 3.5 m depending on the frequency) and everything else is considered noise.In both tests, excitation sequences are 10-cycle Hann-windowed sine waves.

Example Test Case
This technique is initially developed and validated on synthesized data generated by FEM.The used excitation sequence for generating this data set is 30 kHz and variable transfer functions were used for each of the source points.Figure 11

Results
In order to better understand this process, an example test case is initially shown where each stage of the algorithm is explained thoroughly.Then the experimental results are demonstrated in the second part of this section where the SNRs are calculated with regards to defects with different CSA sizes and excitation frequencies.In both cases the SNRs are calculated based on the following formula: where Signal is considered the window where the energy of the signal is received (between 3.0 m and 3.5 m depending on the frequency) and everything else is considered noise.In both tests, excitation sequences are 10-cycle Hann-windowed sine waves.

Example Test Case
This technique is initially developed and validated on synthesized data generated by FEM.The used excitation sequence for generating this data set is 30 kHz and variable transfer functions were used for each of the source points.Figure 11

Cancellation of Backward Leakage
Figure 11a shows the two sets of signals received from the backward testing direction.As can be seen, these signals are inversely overlapped with little differences in amplitude.This is due to the

Cancellation of Backward Leakage
Figure 11a shows the two sets of signals received from the backward testing direction.As can be seen, these signals are inversely overlapped with little differences in amplitude.This is due to the general propagation routine where the received signals from rings are delayed and inverted depending on the ring spacing.
After applying the filtering, the phase of the outcome does not change, therefore by switching the inputs to the adaptive filter, two sets of results will be generated in which the signals from the forward direction are overlapped and the ones from the backward direction are inversely overlapped.This is illustrated in Figure 12, where blue and red signals show the two sets of results achieved from adaptive filtering by switching the inputs.This operation not only enhances the defect signals received from the forward direction (Figure 12c) but it also decreases both the backward cancellation (Figure 12a) and flexural noise regions (Figure 12b) significantly.After applying the filtering, the phase of the outcome does not change, therefore by switching the inputs to the adaptive filter, two sets of results will be generated in which the signals from the forward direction are overlapped and the ones from the backward direction are inversely overlapped.This is illustrated in Figure 12, where blue and red signals show the two sets of results achieved from adaptive filtering by switching the inputs.This operation not only enhances the defect signals received from the forward direction (Figure 12c) but it also decreases both the backward cancellation (Figure 12a) and flexural noise regions (Figure 12b) significantly.

Adaption of Filter Weights
The used filter order in the tests is five, which means only five past samples are required to process the results (Appendix A).Since the number of available samples is limited, observation of the filter's frequency response is not possible.Therefore, in Figure 13b-f, the changes of the first filter value are shown while Figure 13a shows their corresponding results in the time-domain.The red signals illustrate the results of the leaky-NLMS while the black dotted lines represent the normal NLMS algorithms.While normal NLMS depends more on past values and is not fast to adapt to the current iteration, leaky NLMS makes this adaption faster by reducing the filter weights' dependence on their past values.After each adaption to a big sequence such as backward leakage or defect, the magnitude of the filter weight tends to move toward zero; in other words, the weights forget the characteristics of past iterations significantly faster, which allows them a quicker adaption to the characteristic of the current iteration.Furthermore, as illustrated by blue dotted signals, in the region of defects, a high peak is generated in the magnitude of each filter order set by the leaky-NLMS method.Although other techniques and updated algorithms exist, this fast adaption algorithm, where the filter can forget the characteristics of the previous wave, is the main reason why leaky-NLMS is more effective in the guided-wave inspection of pipelines.

Adaption of Filter Weights
The used filter order in the tests is five, which means only five past samples are required to process the results (Appendix A).Since the number of available samples is limited, observation of the filter's frequency response is not possible.Therefore, in Figure 13b-f, the changes of the first filter value are shown while Figure 13a shows their corresponding results in the time-domain.The red signals illustrate the results of the leaky-NLMS while the black dotted lines represent the normal NLMS algorithms.While normal NLMS depends more on past values and is not fast to adapt to the current iteration, leaky NLMS makes this adaption faster by reducing the filter weights' dependence on their past values.After each adaption to a big sequence such as backward leakage or defect, the magnitude of the filter weight tends to move toward zero; in other words, the weights forget the characteristics of past iterations significantly faster, which allows them a quicker adaption to the characteristic of the current iteration.Furthermore, as illustrated by blue dotted signals, in the region of defects, a high peak is generated in the magnitude of each filter order set by the leaky-NLMS method.Although other techniques and updated algorithms exist, this fast adaption algorithm, where the filter can forget the characteristics of the previous wave, is the main reason why leaky-NLMS is more effective in the guided-wave inspection of pipelines.

Results Comparison
The performance of the algorithm was assessed in experimental trials by detecting defects of CSA sizes between (and including) 3% and 8%.It is expected that the algorithm would be more effective at lower frequencies since they are more dispersive; furthermore, the excitation power of lower frequencies is higher than those of higher frequencies, both due to the duration of the signals as well as the systems transfer function.Therefore, frequencies between 30 to 50 kHz with a step of 2 kHz were tested.The SNR achieved from the general propagation routine is demonstrated in Appendix B. The peak SNR is always achieved using 40 kHz excitation frequency where the SNR decreases by moving toward either side of that frequency.Furthermore, the SNRs achieved from each frequency are reduced almost linearly when the defect size is decreased; thus, the noise energy is almost constant while the defect energy is decreasing.

Results Comparison
The performance of the algorithm was assessed in experimental trials by detecting defects of CSA sizes between (and including) 3% and 8%.It is expected that the algorithm would be more effective at lower frequencies since they are more dispersive; furthermore, the excitation power of lower frequencies is higher than those of higher frequencies, both due to the duration of the signals as well as the systems transfer function.Therefore, frequencies between 30 to 50 kHz with a step of 2 kHz were tested.The SNR achieved from the general propagation routine is demonstrated in Appendix B. The peak SNR is always achieved using 40 kHz excitation frequency where the SNR decreases by moving toward either side of that frequency.Furthermore, the SNRs achieved from each frequency are reduced almost linearly when the defect size is decreased; thus, the noise energy is almost constant while the defect energy is decreasing.

Parameter Selection
The results were generated from two sets of parameters (given in Appendix C Table A3):

•
Model Parameters: The optimum parameters are achieved by using a brute force search algorithm to find the parameters which give the maximum SNR in the FEM test.The main goal of this test was to assess the response of the algorithm by fixing the parameters to an optimum solution created by the FEM.

•
Experimental Parameters: The brute force search algorithm was performed on the 4% CSA sample to find parameters that result in most enhancements of SNR for each frequency.The goal was to find the best testing frequency where the least variations in the enhancements are observed and assess whether fixed parameters can enhance the SNR of defects with lower CSA size (3% test case).

Model-Parameters
The results achieved from model parameters are shown in Figure 14 where (a) shows the achieved SNR values and (b) shows the amount of enhancement.The following conclusions can be extracted from these tests:

•
In defects above 5% CSA, the algorithm enhances the results using all frequencies.For defects with CSA size of lower than 4%, the algorithm can enhance the SNR of most frequencies except for 30, 32, 34, and 38 kHz.

•
Except from the case of 3% CSA error, both maximum SNR and maximum enhancements are achieved using 34 and 38 kHz in the tests.In the 3% CSA test, the maximum enhancement is for 30 kHz; nonetheless, the final SNRs of 34 and 38 kHz are greater.

•
The variations in the case of 30 kHz are less in comparison to all other cases, as shown in Figure 14b.

Parameter Selection
The results were generated from two sets of parameters (given in Appendix C Table A3): • Model Parameters: The optimum parameters are achieved by using a brute force search algorithm to find the parameters which give the maximum SNR in the FEM test.The main goal of this test was to assess the response of the algorithm by fixing the parameters to an optimum solution created by the FEM.

•
Experimental Parameters: The brute force search algorithm was performed on the 4% CSA sample to find parameters that result in most enhancements of SNR for each frequency.The goal was to find the best testing frequency where the least variations in the enhancements are observed and assess whether fixed parameters can enhance the SNR of defects with lower CSA size (3% test case).

Model-Parameters
The results achieved from model parameters are shown in Figure 14 where (a) shows the achieved SNR values and (b) shows the amount of enhancement.The following conclusions can be extracted from these tests:

•
In defects above 5% CSA, the algorithm enhances the results using all frequencies.For defects with CSA size of lower than 4%, the algorithm can enhance the SNR of most frequencies except for 30, 32, 34, and 38 kHz.

•
Except from the case of 3% CSA error, both maximum SNR and maximum enhancements are achieved using 34 and 38 kHz in the tests.In the 3% CSA test, the maximum enhancement is for 30 kHz; nonetheless, the final SNRs of 34 and 38 kHz are greater.

•
The variations in the case of 30 kHz are less in comparison to all other cases, as shown in Figure 14b.

Experimental Parameters
The results of experimental parameters are illustrated in Figure 15.The following conclusions can be drawn from these tests:

•
For defects with higher CSA error size (above 5%), lower frequencies tend to achieve higher SNR after processing where the defect signal was enhanced by at least a factor of 2. The greatest

Experimental Parameters
The results of experimental parameters are illustrated in Figure 15.The following conclusions can be drawn from these tests:

•
For defects with higher CSA error size (above 5%), lower frequencies tend to achieve higher SNR after processing where the defect signal was enhanced by at least a factor of 2. The greatest enhancement is achieved from 34 kHz and the maximum SNR is achieved from 36 kHz for these signals.

•
Although higher frequencies will result in lower SNR, their enhancements are approximately the same for different sizes of the defect.Nonetheless, their final SNR is almost always lower than all other frequencies, especially in the cases of frequencies above 46 kHz.

•
For 3% and 4% CSA defects, the greatest enhancement and gain are achieved using the 38 kHz frequency.Furthermore, as can be seen in Figure 15b, this frequency is affected less with regards to the CSA loss of the defect.
Appl.Sci.2019, 9, x FOR PEER REVIEW 15 of 23 enhancement is achieved from 34 kHz and the maximum SNR is achieved from 36 kHz for these signals.

•
Although higher frequencies will result in lower SNR, their enhancements are approximately the same for different sizes of the defect.Nonetheless, their final SNR is almost always lower than all other frequencies, especially in the cases of frequencies above 46 kHz.

•
For 3% and 4% CSA defects, the greatest enhancement and gain are achieved using the 38 kHz frequency.Furthermore, as can be seen in Figure 15b, this frequency is affected less with regards to the CSA loss of the defect.

Discussion
Figure 16 shows the difference of enhancements between the results of model parameters and experimental parameters.These results show that although temporal SNR of the signals is important, the spatial characteristic of the noise also plays an important role in the amount of enhancement.As an example, while 40 kHz has the highest SNR from the general routine, it does not perform as well as 38 kHz for the algorithm.In most cases of lower CSA defects, the SNR improvements are achieved not by enhancing the axisymmetric signal strength, but by removing the flexural noise.Except for excitation frequencies of 30, 34, and 40 kHz in the 3% CSA defect, all other cases were enhanced when the experimental parameters were used.
Since signals with SNRs higher than 30 dB are more easily detected, it is better to use a frequency which provides a stable enhancement for both low and higher CSA sizes rather than setting parameters which can greatly increase the higher CSA defects while decreasing the SNR of smaller defects.An excitation frequency of 38 kHz provides approximately the same enhancement using both model parameters and experimental parameters, which shows that this frequency is less affected by the parameters in comparison to the others.Furthermore, it can also be seen from the results of model parameters that 38 kHz always achieves the maximum gain even though the parameters are optimized for 30 kHz excitation frequency in the model.

Discussion
Figure 16 shows the difference of enhancements between the results of model parameters and experimental parameters.These results show that although temporal SNR of the signals is important, the spatial characteristic of the noise also plays an important role in the amount of enhancement.As an example, while 40 kHz has the highest SNR from the general routine, it does not perform as well as 38 kHz for the algorithm.In most cases of lower CSA defects, the SNR improvements are achieved not by enhancing the axisymmetric signal strength, but by removing the flexural noise.Except for excitation frequencies of 30, 34, and 40 kHz in the 3% CSA defect, all other cases were enhanced when the experimental parameters were used.
Since signals with SNRs higher than 30 dB are more easily detected, it is better to use a frequency which provides a stable enhancement for both low and higher CSA sizes rather than setting parameters which can greatly increase the higher CSA defects while decreasing the SNR of smaller defects.An excitation frequency of 38 kHz provides approximately the same enhancement using both model parameters and experimental parameters, which shows that this frequency is less affected by the parameters in comparison to the others.Furthermore, it can also be seen from the results of model parameters that 38 kHz always achieves the maximum gain even though the parameters are optimized for 30 kHz excitation frequency in the model.All frequencies above 40 kHz fail to provide any improvements for defects with CSA sizes smaller than 4% using model parameters.Nonetheless, even the enhancements achieved with experimental parameters in those frequencies are much less than all other frequencies, which suggests that this algorithm tends to perform better at lower frequencies.This is expected since flexurals with lower frequencies are highly dispersive, which adds to the spatial noise of the tests.
It should be born in mind that, even though in some frequencies the mathematically calculated SNR might be less than the one achieved from the general propagation routine, the high-order flexurals are always canceled, which leads to easier interpretation of results by the inspectors.Figure 17 shows the results of the 30 kHz excitation sequence for defects with different CSAs.As can be seen, highly variable noises in the region between 2.5 and 3 m are canceled but those caused by low order flexurals at 2 to 2.5 m are enhanced.While in defects with higher CSA sizes most improvement is achieved due to the amplification of the defect signal, in lower CSA defects (especially in the case of 3% CSA), the noise cancellation is the main reason for enhancement.The enhancement of these low order flexurals is the main reason why the algorithm fails to improve the SNR in some of the testing frequencies.With regards to the dispersion curves (Figure 2a), low order flexurals become nondispersive on frequencies above 30 kHz with their speed moving toward that of T(0,1), 3260 m/s.Since the phase delays are applied with respect to T(0,1) wave speed, if the flexural waves have the same speed they will be overlapped in the input and desired responses.This is the main reason why such signals might not be canceled and, in fact, in some scenarios, they might even be amplified.Furthermore, considering the 34 kHz filtered signal shown in Figure 18b, the noise envelope is clearly dispersed (2-2.5 m). Figure 19 also shows the results achieved from 38 kHz excitation frequency.In these figures, the input and reference signals for the noise and defect regions are shown as blue and red.The following conclusions can be extracted by observing the difference between a defect and noise signals: 1.If any low order flexurals or noise are overlapping in the input and reference signals, they will not be removed and might be amplified.2. The amplification of the signals is also dependent on the amplitude of the input signals to the algorithm, e.g., the defect signal in case Figure 18 does not observe the same enhancement of that in case Figure 19 since the blue signal in case Figure 19 is much stronger.3.Although some flexural signals will remain in the resultant signal, there is an option of further post-processing to enhance the SNR.Such is the case of the noise region located at 2-2.5 m in case Figure 18, where it is clearly dispersed at the end of its window, and the case of 1.5-2 m in All frequencies above 40 kHz fail to provide any improvements for defects with CSA sizes smaller than 4% using model parameters.Nonetheless, even the enhancements achieved with experimental parameters in those frequencies are much less than all other frequencies, which suggests that this algorithm tends to perform better at lower frequencies.This is expected since flexurals with lower frequencies are highly dispersive, which adds to the spatial noise of the tests.
It should be born in mind that, even though in some frequencies the mathematically calculated SNR might be less than the one achieved from the general propagation routine, the high-order flexurals are always canceled, which leads to easier interpretation of results by the inspectors.Figure 17 shows the results of the 30 kHz excitation sequence for defects with different CSAs.As can be seen, highly variable noises in the region between 2.5 and 3 m are canceled but those caused by low order flexurals at 2 to 2.5 m are enhanced.While in defects with higher CSA sizes most improvement is achieved due to the amplification of the defect signal, in lower CSA defects (especially in the case of 3% CSA), the noise cancellation is the main reason for enhancement.The enhancement of these low order flexurals is the main reason why the algorithm fails to improve the SNR in some of the testing frequencies.With regards to the dispersion curves (Figure 2a), low order flexurals become non-dispersive on frequencies above 30 kHz with their speed moving toward that of T(0,1), 3260 m/s.Since the phase delays are applied with respect to T(0,1) wave speed, if the flexural waves have the same speed they will be overlapped in the input and desired responses.This is the main reason why such signals might not be canceled and, in fact, in some scenarios, they might even be amplified.Furthermore, considering the 34 kHz filtered signal shown in Figure 18b, the noise envelope is clearly dispersed (2-2.5 m). Figure 19 also shows the results achieved from 38 kHz excitation frequency.In these figures, the input and reference signals for the noise and defect regions are shown as blue and red.The following conclusions can be extracted by observing the difference between a defect and noise signals: 1.
If any low order flexurals or noise are overlapping in the input and reference signals, they will not be removed and might be amplified.

2.
The amplification of the signals is also dependent on the amplitude of the input signals to the algorithm, e.g., the defect signal in case Figure 18 does not observe the same enhancement of that in case Figure 19 since the blue signal in case Figure 19 is much stronger.

3.
Although some flexural signals will remain in the resultant signal, there is an option of further post-processing to enhance the SNR.Such is the case of the noise region located at 2-2.5 m in case Figure 18, where it is clearly dispersed at the end of its window, and the case of 1.5-2 m in Figure 19, which results from backward leakage.Therefore, by considering other characteristics in the signal, the results can be post-processed to distinguish different modes and further increase the SNR of the test.these results, 8 can be the considered as the safest number for filter order where no change will be applied to the signal and 2 can be considered as the best filter order for maximizing the SNR.
On the other hand, the best filter order can be dependent on other factors, such as frequency and the existing flexurals of the iteration.Since the main aim of this paper is to test the workability of the adaption algorithm to the guided-wave scenario, the filter order is fixed to 5.This number is a compromise between the safest choice, 8, and the best achieved results, 2, based on FEM with 30 kHz excitation sequence.Furthermore, a filter order of 5 can be considered as a good compromise, as a drop of only 1 dB is observed from the maximum achieved SNR, which is 8.31 dB.

Appendix B
The SNR of the defect signal achieved from the general propagation routine of the device is demonstrated in Table A2 and Figure A1.where no change will be applied to the signal and 2 can be considered as the best filter order for maximizing the SNR.
On the other hand, the best filter order can be dependent on other factors, such as frequency and the existing flexurals of the iteration.Since the main aim of this paper is to test the workability of the adaption algorithm to the guided-wave scenario, the filter order is fixed to 5.This number is a compromise between the safest choice, 8, and the best achieved results, 2, based on FEM with 30 kHz excitation sequence.Furthermore, a filter order of 5 can be considered as a good compromise, as a drop of only 1 dB is observed from the maximum achieved SNR, which is 8.31 dB.

Appendix B
The SNR of the defect signal achieved from the general propagation routine of the device is demonstrated in Table A2 and Figure A1.

Figure 1 .
Figure 1.Example of received FEM signals from the array from different sections of a pipe [31].

Figure 2 .
Figure 2. (a) Example dispersion curve of T(0,1) wave mode in an 8-inch schedule 40 steel pipe.(b)The effect of dispersion on a simulated flexural wave, two propagation distances[31].

Figure 1 .
Figure 1.Example of received FEM signals from the array from different sections of a pipe [31].

Figure 1 .
Figure 1.Example of received FEM signals from the array from different sections of a pipe [31].

Figure 2 .
Figure 2. (a) Example dispersion curve of T(0,1) wave mode in an 8-inch schedule 40 steel pipe.(b)The effect of dispersion on a simulated flexural wave, two propagation distances[31].

Figure 2 .
Figure 2. (a) Example dispersion curve of T(0,1) wave mode in an 8-inch schedule 40 steel pipe.(b)The effect of dispersion on a simulated flexural wave, two propagation distances[31].

Figure 3 .
Figure 3. Categories of the signals in the guided-wave inspection [31].

Figure 3 .
Figure 3. Categories of the signals in the guided-wave inspection [31].

Figure 4 .
Figure 4. Flowchart of general propagation routine currently used in guided-wave devices.

Figure 4 .
Figure 4. Flowchart of general propagation routine currently used in guided-wave devices.

Figure 4 .
Applying this phase delay and summation of arrays within each ring, two sets of signals are created where both have the following components: • S(t) Signals of interest/anomalies: Highly correlated and in phase • N(t) Flexural and other noise: That are not correlated to S(t).Furthermore, noise sources of two signals are correlated to each other.Appl.Sci.2019, 9, x FOR PEER REVIEW 7 of 23

•
S(t) Signals of interest/anomalies: Highly correlated and in phase • N(t) Flexural and other noise: That are not correlated to S(t).Furthermore, noise sources of two signals are correlated to each other.

Figure 5 .
Figure 5. Adaptive linear prediction algorithm for noise cancellation where the red marked parameters are fixed by the user.

Figure 5 .
Figure 5. Adaptive linear prediction algorithm for noise cancellation where the red marked parameters are fixed by the user.
Appl.Sci.2019, 9, x FOR PEER REVIEW 8 of 23 density of 7850 kg m 3 ⁄ and Poisson's Ratio of 0.3.The excitation frequency in the test was 30 kHz.

Figure 6 .
Figure 6.Schematic of the FEM with test tool and defect located at 1 m and 4 m, respectively, from the back end [31].

Figure 6 .
Figure 6.Schematic of the FEM with test tool and defect located at 1 m and 4 m, respectively, from the back end [30].

23 Figure 7 .
Figure 7. Example of designed transfer functions wherein (a) three different source points are compared and (b) the maximum, average, and minimum amplitudes across all of the applied transfer functions used in an individual test are shown.

Figure 8 .
Figure 8.The used reception points of each ring in the FEM.

Figure 7 .
Figure 7. Example of designed transfer functions wherein (a) three different source points are compared and (b) the maximum, average, and minimum amplitudes across all of the applied transfer functions used in an individual test are shown.

23 Figure 7 .
Figure 7. Example of designed transfer functions wherein (a) three different source points are compared and (b) the maximum, average, and minimum amplitudes across all of the applied transfer functions used in an individual test are shown.

Figure 8 .
Figure 8.The used reception points of each ring in the FEM.

Figure 8 .
Figure 8.The used reception points of each ring in the FEM.
Appl.Sci.2019, 9, x FOR PEER REVIEW 10 of 23 characteristics, they are both considered defect signals even though the second signal is a false detection.

Figure 9 .
Figure 9. Torsional mode reception route in the FEM test cases.

Figure 10 .
Figure 10.Torsional mode reception route for laboratory trials.

Figure 9 .
Figure 9. Torsional mode reception route in the FEM test cases.

Figure 9 .
Figure 9. Torsional mode reception route in the FEM test cases.

Figure 10 .
Figure 10.Torsional mode reception route for laboratory trials.

Figure 10 .
Figure 10.Torsional mode reception route for laboratory trials.
shows the two sets of signals achieved after applying the phase delays of general propagation routine (blue and red).Four regions are of main interest in this figure, which are (a) backward leakage, (b) flexural noise, (c) Defect-1 and (d) Defect-2.Since both Defect-1 and Defect-2 signals are received from the forward testing direction, they have similar characteristics and thus both should be enhanced by this algorithm.As can be seen, noise region (b) is significantly less correlated than the defect signals (c and d).Furthermore, although the amplitudes of two sets of signals received in the defect regions are not the same, their phases and polarity are in perfect correlation.Therefore, while in the propagation routine their characteristic might be similar but, in this space, the defect and flexural signals are distinguishable.
shows the two sets of signals achieved after applying the phase delays of general propagation routine (blue and red).Four regions are of main interest in this figure, which are (a) backward leakage, (b) flexural noise, (c) Defect-1 and (d) Defect-2.Since both Defect-1 and Defect-2 signals are received from the forward testing direction, they have similar characteristics and thus both should be enhanced by this algorithm.As can be seen, noise region (b) is significantly less correlated than the defect signals (c and d).Furthermore, although the amplitudes of two sets of signals received in the defect regions are not the same, their phases and polarity are in perfect correlation.Therefore, while in the propagation routine their characteristic might be similar but, in this space, the defect and flexural signals are distinguishable.

Figure 11 .
Figure 11.FEM signals (30 kHz) where two defect regions and the flexural noises are marked where blue and red lines show the first and second sets of the signals respectively.

Figure 11 .
Figure 11.FEM (30 kHz) where two defect regions and the flexural noises are marked where blue and red lines show the first and second sets of the signals respectively.
Appl.Sci.2019, 9, x FOR PEER REVIEW 12 of 23 general propagation routine where the received signals from rings are delayed and inverted depending on the ring spacing.

Figure 12 .
Figure 12.Two sets of results after the inputs to adaptive filter where (a) shows the signals received from the backward direction, (b) shows the flexural noise, and (c) shows the defect signal.

Figure 12 .
Figure 12.Two sets of results after swapping the inputs to adaptive filter where (a) shows the signals received from the backward direction, (b) shows the flexural noise, and (c) shows the defect signal.

Figure 13 .
Figure 13.Comparison of the result achieved from NLMS (black) vs leaky LMS (orange) where (a) shows the time-domain results and (b-f) show the normalized magnitudes of filter order 1 to 5, respectively.

Figure 13 .
Figure 13.Comparison of the result achieved from NLMS (black) vs leaky LMS (orange) where (a) shows the time-domain results and (b-f) show the normalized magnitudes of filter order 1 to 5, respectively.

Figure 14 .
Figure 14.Results achieved using fixed model parameters for all frequencies where (a) shows the achieved SNR and (b) shows the amount of improvement in comparison to the general propagation routine.

Figure 14 .
Figure 14.Results achieved using fixed model parameters for all frequencies where (a) shows the achieved SNR and (b) shows the amount of improvement in comparison to the general propagation routine.

Figure 15 .
Figure 15.Results achieved using experimental parameters, which are variable for each frequency, where (a) shows the achieved SNR and (b) shows the amount of improvement compared to the general propagation routine.

Figure 15 .
Figure 15.Results achieved using experimental parameters, which are variable for each frequency, where (a) shows the achieved SNR and (b) shows the amount of improvement compared to the general propagation routine.

Figure 16 .
Figure 16.Amount of improvement achieved by experimental parameters as opposed to model parameters.

Figure 16 .
Figure 16.Amount of improvement achieved by experimental parameters as opposed to model parameters.

Figure 19 ,Figure 17 .
Figure 19, which results from backward leakage.Therefore, by considering other characteristics in the signal, the results can be post-processed to distinguish different modes and further increase the SNR of the test.

Figure 17 .
Figure 17.Example of filtered signals using 30 kHz excitation and model parameters where defect size is varying.

Figure 18 .
Figure 18.The result of (a) general propagation routine vs (b) filtered signal with their corresponding inputs (blue and red lines) of noise (left side) and defect (right side) with the excitation frequency of 34 kHz gathered from an experimental pipe with defect size of 3% CSA.

Figure 19 .Figure 18 .
Figure 19.The result of (a) general propagation routine vs (b) filtered signal with their corresponding inputs (blue and red lines) of noise (left side) and defect (right side) with the excitation frequency of 38 kHz gathered from an experimental pipe with defect size of 3% CSA.

Figure 18 .
Figure 18.The result of (a) general propagation routine vs (b) filtered signal with their corresponding inputs (blue and red lines) of noise (left side) and defect (right side) with the excitation frequency of 34 kHz gathered from an experimental pipe with defect size of 3% CSA.

Figure 19 .Figure 19 .
Figure 19.The result of (a) general propagation routine vs (b) filtered signal with their corresponding inputs (blue and red lines) of noise (left side) and defect (right side) with the excitation frequency of 38 kHz gathered from an experimental pipe with defect size of 3% CSA.

Figure A1 .
Figure A1.SNR of tests using general propagation routine.

Figure A1 .
Figure A1.SNR of tests using general propagation routine.

Table A1 .
Maximum SNR achieved for each filter order on FEM test signal with 30 kHz signal.

Table A2 .
SNR achieved from the general propagation routine (in dB).