Ultrasonic gate adaptive tracking method based on LSTM network

Through the ultrasonic gate adaptive tracking method based on LSTM network, combined with high-pass filtering and Fourier synchronous compression transform, the problem of low gate position adjustment efficiency in ultrasonic measurement is solved, and efficient and accurate positioning and high accuracy of ultrasonic echo are achieved.

CN118643318AInactive Publication Date: 2024-09-13DALIAN UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410600780.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In existing ultrasonic measurement methods, the gate position needs to be automatically adjusted according to the echo interval to cope with changes in workpiece thickness and coupling gap. However, these methods usually require manual input of parameters or pre-scanning in advance, resulting in low measurement efficiency.

Method used

An adaptive tracking method for ultrasonic gates based on the LSTM network is adopted. By constructing an LSTM network model, using measured ultrasonic time series signal data for training, and combining high-pass filtering, Fourier synchronous compression transformation and short-term energy analysis, automatic adjustment of the gate position is achieved.

Benefits of technology

It improves the classification accuracy and measurement efficiency of ultrasonic time series signals, reduces the impact of interference waveforms, and achieves efficient and accurate positioning of ultrasonic echoes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643318A
    Figure CN118643318A
Patent Text Reader

Abstract

The invention discloses an ultrasonic gate adaptive tracking method based on an LSTM network, and relates to the field of ultrasonic detection. Firstly, a network model is constructed; secondly, preprocessing the data set; then, an LSTM-based ultrasonic gate adaptive tracking network model is adopted for training; and finally, optimizing the network model by adopting a time-frequency domain processing method of high-pass filtering, FSST conversion and signal short-time energy calculation. According to the method, the problems of low ultrasonic echo automatic positioning efficiency and poor precision are solved, efficient and accurate positioning of ultrasonic signals is realized, and the method is superior to a traditional RNN model. The method of high-pass filtering, FSST transformation and signal short-time energy calculation is adopted to realize network model optimization, the influence of interference waveforms is reduced, and the classification accuracy of ultrasonic signals is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ultrasonic detection, and in particular to an ultrasonic gate adaptive tracking method based on LSTM network. Background Art

[0002] Obtaining the ultrasonic echo interval based on the gate to calculate the flight time is a necessary step in ultrasonic measurement. However, during the measurement process, the workpiece thickness and coupling gap of the measured point are constantly changing, and the residual stress causes the sound velocity to change, which can lead to uncertain ultrasonic echo positions. In order to complete the ultrasonic measurement task of wall thickness or stress distribution, the gate position needs to be automatically adjusted according to the echo interval. To address this problem, researchers have proposed a series of dynamic gate real-time tracking methods, but these methods either require manual input of some initial parameters in advance, or require a pre-scan to obtain some acoustic time information, or require other algorithms to know the echo position in advance. These pre-operations and data preprocessing greatly reduce the measurement efficiency.

[0003] LSTM is a special RNN that is improved to solve the long-term dependency problem of RNN. Compared with ordinary recurrent neural networks, it performs better in long sequence data. LSTM networks are very suitable for classification, processing and prediction based on time series data. LSTM networks use an internal mechanism of "gates" to regulate the flow of information to solve the short-term memory problem of RNN. These gates can control which data in the sequence is important and should be retained or discarded, so that information can be passed along the sequence to make predictions. LSTM has unique advantages in processing longer sequence data, and ultrasonic time series signals belong to long time series data. At the same time, there is a certain correlation information between the front and back echoes of ultrasound. These characteristics of ultrasonic time series signals indicate that LSTM is suitable for processing ultrasonic time series signals.

[0004] In 2020, Yue Jianping et al. invented the "Method and scanning method for real-time tracking of dynamic gates for ultrasonic scanning of workpieces with continuously variable thickness" in invention patent CN202011349826.0, respectively setting the starting time and gate width of the interface echo, bottom echo tracking gate and data acquisition gate of the ultrasonic scanning device, and judging the thickness change of the measuring point of the workpiece according to the scanning trajectory of the workpiece. However, this invention requires the construction of a CAD model of the workpiece to be measured in advance, and the scanning trajectory is formulated by the model. In 2016, Cui Ximing et al. invented the "Method for real-time echo tracking of an ultrasonic thickness measuring gate" in invention patent CN106289124B, allowing the thickness measuring gate to adjust the gate starting point in real time according to the acoustic path of the interface wave returned by the tracking gate and give the acoustic path of the echo in the gate, so as to realize the thickness measuring gate following the echo. However, this invention requires manual setting of the gate so that the echo is exactly inside the gate, and the gate width cannot be changed during the measurement process.

[0005] However, none of the above methods mentions an adaptive tracking method for ultrasonic gates based on LSTM networks. Summary of the invention

[0006] The main technical problem solved by the present invention is to overcome the shortcomings of the existing methods. Based on the long short-term memory neural network, an ultrasonic gate adaptive tracking method is invented. The present invention constructs an ultrasonic gate adaptive tracking network model based on LSTM for automatic positioning of ultrasonic echoes; uses measured ultrasonic time series signal data to train and test the model; uses high-pass filtering to reduce the influence of the excitation waveform; introduces Fourier synchronous compression transform to extract the signal frequency domain features and feeds them to the network input, so that the network learns the time-frequency features at the same time; calculates the short-time energy of the signal to distinguish ultrasonic echoes from small-amplitude interference echoes of no interest. The present invention effectively improves the classification accuracy of ultrasonic time series signals.

[0007] The technical solution adopted by the present invention is:

[0008] An ultrasonic gate adaptive tracking method based on LSTM network is firstly constructed. The network model of ultrasonic gate adaptive tracking based on LSTM is firstly constructed. Then the data set is preprocessed. Then the network model is trained. Finally, the network model is optimized by high-pass filtering, FSST transformation and time-frequency domain processing method of calculating the short-time energy of the signal. The specific steps are as follows:

[0009] The first step is to build a network model

[0010] An LSTM-based ultrasonic gate adaptive tracking network model is constructed. The network consists of a sequence input layer, an LSTM layer, a fully connected layer, a Softmax layer and an output layer. The network input is an ultrasonic time series signal, and the output is an equal-length label sequence. Different label annotations are used to distinguish the area of ​​interest from the area of ​​non-interest.

[0011] In order to obtain a label sequence for training, it is necessary to add labels to the ultrasonic echo interval of each ultrasonic time series signal. The region label only contains the sequence coordinates of the first and last points of the region of interest, and the LSTM network will use the label name of the region to which the ultrasonic time series signal sampling point belongs to mark each signal sampling point. Therefore, it is necessary to convert the region label into a sequence containing individual labels for each ultrasonic time series signal sampling point. A converted label sequence is divided into two categories by the network model, one of which is the echo interval of interest, with the label "Echoes"; the other is the non-interesting region, with the label set to "n / a".

[0012] The second step is data preprocessing

[0013] The ultrasonic time series signal and its corresponding label sequence are split into several sampling signal segments. Since the amplitude of the ultrasonic time series signal is positive and negative, in order to retain the sign information, the ultrasonic time series signal is standardized to improve the learning speed and estimation accuracy of the network model. The formula for standardization is:

[0014]

[0015] Among them, x' is the normalized ultrasonic amplitude, x i is the amplitude at time i, μ is the average value of the data, and σ is the standard deviation of the data. The ultrasonic time series signal and label sequence after splitting and standardization are used as the input set and output set of the LSTM network respectively.

[0016] Step 3: Model training

[0017] The measured ultrasonic time series signals of multiple groups of different parts are used as data sets. The data sets are randomly divided into training group and test group. The model is trained using the back propagation algorithm using the training set samples. During the training process, the weights of each layer of the network are continuously updated through the optimization solver so that the label sequence predicted by the network is close enough to the real label sequence. The designed network model uses the Adam algorithm as the optimization solver, and the loss function is the cross entropy function. The initial learning rate, number of iterations, iterative learning rate, and minimum batch size are set respectively to achieve a balance between training speed and network performance.

[0018] Step 4: Apply high-pass filtering to optimize the network model

[0019] Perform fast Fourier transform analysis on the ultrasonic time series signal and design a high-pass filter with the corresponding cutoff frequency to reduce the influence of the excitation signal.

[0020] Step 5: Optimize the network model based on FSST transformation

[0021] The spectrum of each ultrasound time series signal sample is calculated using Fourier synchronous compression transform and input into the network, so that the network can learn the time domain and frequency domain features simultaneously.

[0022] First, the short-time Fourier transform of the ultrasonic time series signal is calculated. The ultrasonic time series signal received by the transducer can be expressed as:

[0023]

[0024] Where n is the number of echoes, a i is the amplitude coefficient of the i-th echo, is the phase modulation of the i echoes, which is related to the flight time of the echoes, and η(t) is the additive noise.

[0025] Perform short-time Fourier transform on the ultrasonic time series signal s(t), and its time spectrum is:

[0026] S(t,ω)=∫s(u)g(ut)e -jωu du (3)

[0027] Among them, s(u) is the ultrasonic echo signal received by the transducer, g(u) is the window function, t is the center time of the window function, and ω is the angular frequency.

[0028] Then, the instantaneous frequency of the echo signal at time t is estimated, and its value is the derivative of S(t,ω) with respect to the phase:

[0029]

[0030] Finally, according to the instantaneous frequency, synchronous compression is performed along the frequency direction to the frequency center:

[0031]

[0032] The real and imaginary parts of the Fourier synchronous compression transform result are regarded as two separate features. The two components are standardized and input into the LSTM network at the same time. The long short-term memory network architecture is modified to make it acceptable to each sampled FSST spectrum. The input size of the sequence input layer is modified to be the same as the number of frequencies, and the other parameters remain unchanged.

[0033] Step 6: Optimize the network model based on time domain analysis

[0034] Calculate the short-time energy of the signal and distinguish the real echo from the interference echo by the significant difference in the energy of the signal segment.

[0035]

[0036] Among them, ω(nm) is the window function, and N is the window length. When the window function is a rectangular window, the short-time energy of the signal is:

[0037]

[0038] Modify the network to accept short-time energy and add it to the input set to train the network. Select a rectangular window, set the window length, calculate the short-time energy value of each signal segment and feed it to the network input. Use an ultrasound time series signal data set containing multiple echoes to test the modified network.

[0039] The beneficial effects of the present invention are as follows: the present invention provides an LSTM-based ultrasonic gate adaptive tracking network model, which solves the problems of low efficiency and poor accuracy of ultrasonic echo automatic positioning, realizes efficient and accurate positioning of ultrasonic time series signals, and is superior to the traditional RNN model. The network model is optimized by using high-pass filtering, FSST transformation, and the method of calculating the short-time energy of the signal, which reduces the influence of interference waveforms and improves the accuracy of ultrasonic time series signal classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is the ultrasonic gate adaptive tracking network model architecture.

[0041] Figure 2 It is the ultrasonic waveform after marking in the embodiment.

[0042] Figure 3 FSST is the time-frequency spectrum of the ultrasonic timing signal in the embodiment.

[0043] Figure 4 is the confusion matrix in the embodiment. DETAILED DESCRIPTION

[0044] Combined with the accompanying drawings and technical solutions, the specific implementation of the present invention is further described. The specific steps of the ultrasonic gate adaptive tracking method based on the LSTM network are as follows:

[0045] The first step is to build a network model

[0046] The LSTM-based ultrasonic gate adaptive tracking network model constructed by the present invention is shown in Figure 1 . The network consists of a sequence input layer, an LSTM layer, a fully connected layer, a Softmax layer and an output layer. The network input is an ultrasonic time series signal, and the output is a label sequence of equal length. Different label annotations are used to distinguish the regions of interest from the regions of no interest. Specify the input layer size as 1. Set the LSTM layer to contain 200 hidden layers to improve learning efficiency; set the output mode to "sequence", classify each sample in the signal into two categories: "interesting" and "not interested", set the fully connected layer output size to 2, specify a layer for each waveform class, and the Softmax layer and classification layer output the label sequence estimated by the network.

[0047] The data used for LSTM network training and testing comes from the measured ultrasonic time series signals of 5 different parts. The ultrasonic time series signals of each part have different sampling lengths and echo numbers. The signal lengths range from 30,000 to 130,000, and the echo numbers range from 5 to 12. There are 5 categories in total. Each group of signals contains 200 samples. The sampling frequency of the signal is 1.25 GHz, the sampling accuracy is 8 bits, and the total number of samples is 1,000. The ultrasonic excitation frequency is 10 MHz.

[0048] Labels are added to the ultrasonic echo interval of each signal, and the regional labels are converted into a sequence containing individual labels for each signal sampling point. A converted label sequence is similar to the ultrasonic echo sequence. Figure 2 , where the dark area is the echo range of interest and is labeled "Echoes"; the light area is the area of ​​no interest and is labeled "n / a".

[0049] The second step is data preprocessing

[0050] The signal and its corresponding label sequence are split into 5000 sampling signal segments, and the ultrasonic time series signal is standardized. The standardization formula is formula (1). After the splitting and standardization, the 1000 groups of ultrasonic time series signals and label sequences will be used as the input set and output set of the LSTM network respectively.

[0051] Step 3: Model training

[0052] 1000 data samples were randomly divided into training group and test group in a ratio of 7:3. The model was trained using the back propagation algorithm using the training set samples, and the weights of each layer of the network were continuously updated through the optimization solver. The designed network model uses the Adam algorithm as the optimization solver, and the loss function is the cross entropy function. The initial learning rate is set to 0.01, the number of iterations is 10, and the learning rate is reduced to 10% of the previous one every 3 iterations. The minimum batch size is set to 50.

[0053] Step 4: Apply high-pass filtering to optimize the network model

[0054] Fast Fourier transform analysis is performed on the excitation signal, and the signal frequency is concentrated below 2Mhz, while the ultrasonic echo signal frequency is about 10Mhz. A high-pass filter with a cutoff frequency of 2Mhz is designed.

[0055] Step 5: Optimize the network model based on FSST transformation

[0056] The spectrum of each signal sample is calculated using Fourier synchronous compression transform and input into the network, so that the network can learn time domain and frequency domain features simultaneously.

[0057] First, calculate the short-time Fourier transform of the signal. The ultrasonic echo received by the transducer is expressed as follows:

[0058] The short-time Fourier transform of the ultrasonic time series signal s(t) is performed, and its time-frequency spectrum can be expressed as formula (3).

[0059] Then, the instantaneous frequency of the echo signal at time t is estimated according to formula (4), and its value is the derivative of S(t,ω) with respect to the phase.

[0060] Finally, according to the instantaneous frequency, it is synchronously compressed to the frequency center along the frequency direction according to formula (5).

[0061] The Fourier synchronous compression transform time-frequency spectrum of a certain ultrasonic time series signal in the training set is shown in Figure 3 A Kaiser window with a length of 256 is used in the FSST transform to provide sufficient frequency resolution. The time domain interval of the ultrasonic echo signal with a frequency of 10 MHz can be clearly distinguished from the FSST time-frequency diagram.

[0062] The real and imaginary parts of the Fourier synchronous compression transform result are regarded as two separate features. The two components are standardized and input into the LSTM network at the same time. The long short-term memory network architecture is modified to make it acceptable to each sampled FSST spectrum. The input size of the sequence input layer is modified to be the same as the number of frequencies, and the other parameters remain unchanged.

[0063] Step 6: Optimize the network model based on time domain analysis

[0064] The short-time energy of the signal is calculated according to formula (6), and the real echo and the interference echo are distinguished by the significant difference in the energy of the signal segment. ω(nm) is regarded as a window function, and N is the window length. When the window function is a rectangular window, the short-time energy of the signal can be expressed as formula (7).

[0065] Modify the network to accept short-time energy input and train the network. Select a rectangular window and set the window length to 512. Calculate the short-time energy value of each signal segment and feed it to the network input. The confusion matrix of the final model is shown in Figure 4 , the precision of the “n / a” class increased to 97.4%, and the overall accuracy was 95.34%.

[0066] The present invention realizes automatic positioning of ultrasonic echoes with high accuracy; it adopts time-frequency domain signal processing method to optimize the network model, adopts high-pass filtering to reduce the influence of excitation waveform, introduces FSST transformation to extract signal frequency domain features and feeds them to network input, so that the network can learn time-frequency features at the same time, calculates the short-time energy of the signal to distinguish ultrasonic echoes from small-amplitude interference echoes of no interest, and the optimized network model effectively improves the classification accuracy.

Claims

1. An adaptive tracking method for ultrasonic gates based on LSTM network. It is characterized in that First, the LSTM-based ultrasonic gate adaptive tracking network model is constructed; secondly, the data set is preprocessed; then the network model is trained; finally, the network model is optimized by using high-pass filtering, FSST transformation, and time-frequency domain processing methods to calculate the short-time energy of the signal; the specific steps are as follows: The first step is to build a network model An LSTM-based ultrasonic gate adaptive tracking network model was constructed. The network consists of a sequence input layer, an LSTM layer, a fully connected layer, a Softmax layer and an output layer. The network input is an ultrasonic time series signal, and the output is a label sequence of equal length. Different label annotations are used to distinguish the areas of interest from the areas of non-interest. In order to obtain the label sequence for training, it is necessary to add labels to the ultrasonic echo interval of each ultrasonic time series signal; the regional label only contains the sequence coordinates of the first and last points of the region of interest, and the LSTM network will use the label name of the region to which the ultrasonic time series signal sampling point belongs to mark each signal sampling point; therefore, the regional label is converted into a sequence containing each label for each ultrasonic time series signal sampling point; a converted label sequence is divided into two categories by the network model, one of which is the echo interval of interest, with the label "Echoes"; the other is the non-interest region, with the label set to "n / a"; The second step is data preprocessing The ultrasonic time series signal and its corresponding label sequence are split into several sampling signal segments. Since the amplitude of the ultrasonic time series signal is positive or negative, the ultrasonic time series signal is standardized to retain the sign information. The formula for the standardized processing is: Among them, x' is the normalized ultrasonic amplitude, x i is the amplitude at time i, μ is the average value of the data, and σ is the standard deviation of the data; the ultrasonic time series signal and label sequence after splitting and standardization are used as the input set and output set of the LSTM network respectively; Step 3: Model training The measured ultrasonic time series signals of multiple groups of different parts are used as data sets; the data sets are randomly divided into training groups and test groups, and the model is trained using the back propagation algorithm using the training set samples. During the training process, the weights of each layer of the network are continuously updated through the optimization solver to make the label sequence predicted by the network close enough to the real label sequence; the designed network model uses the Adam algorithm as the optimization solver, and the loss function is the cross entropy function; the initial learning rate, number of iterations, iterative learning rate, and minimum batch size are set respectively; Step 4: Apply high-pass filtering to optimize the network model Perform fast Fourier transform analysis on the ultrasonic time series signal and design a high-pass filter with the corresponding cutoff frequency to reduce the influence of the excitation signal; Step 5: Optimize the network model based on FSST transformation The spectrum of each ultrasound time series signal sample is calculated using Fourier synchronous compression transform and input into the network, so that the network can learn time domain and frequency domain features simultaneously; First, the short-time Fourier transform of the ultrasonic time series signal is calculated; the ultrasonic time series signal received by the transducer is expressed as: Where n is the number of echoes, a i is the amplitude coefficient of the i-th echo, is the phase modulation of the i echoes, which is related to the flight time of the echoes, and η(t) is the additive noise; Perform short-time Fourier transform on the ultrasonic time series signal s(t), and its time spectrum is: S(t,ω)=∫s(u)g(ut)e -jωu of (3) Where, s(u) is the ultrasonic echo signal received by the transducer, g(u) is the window function, t is the center time of the window function, and ω is the angular frequency; Then, the instantaneous frequency of the echo signal at time t is estimated, and its value is the derivative of S(t,ω) with respect to the phase: Finally, according to the instantaneous frequency, synchronous compression is performed along the frequency direction to the frequency center: The real and imaginary parts of the Fourier synchronous compression transform result are regarded as two separate features, and the two components are input into the LSTM network at the same time after being standardized; the long short-term memory network architecture is modified to make it acceptable to each sampled FSST spectrum; the input size of the sequence input layer is modified to be the same as the number of frequencies, and the other parameters remain unchanged; Step 6: Optimize the network model based on time domain analysis Calculate the short-time energy of the signal and distinguish the real echo from the interference echo through the significant difference in the energy of the signal segment; short-time energy of the signal: Among them, ω (nm) is the window function, N is the window length; when the window function is a rectangular window, the short-time energy of the signal is: The network is modified to accept short-time energy and add it to the input set to train the network; a rectangular window is selected, the window length is set, the short-time energy value of each signal segment is calculated and fed to the network input; the modified network is tested using an ultrasonic time series signal data set containing multiple echoes.

Citation Information

Patent Citations

  • A Real-time Echo Follow-up Method for Ultrasonic Thickness Measurement Gate

    CN106289124B

  • Ultrasonic scanning dynamic gate real-time tracking method for continuous variable-thickness workpiece and scanning method

    CN112684002A