Weld defect identification method and storage medium
Through nonlinear dynamic feature extraction and principal component analysis method dimensionality reduction, combined with the deep learning model, the problem of insufficient linear feature extraction in weld defect detection is solved, the accuracy and recognition rate of weld defect identification are improved, and a better Efficient weld defect identification.
Patent Information
- Application Number
- CN202410879663.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-20
AI Technical Summary
In existing welding technology, it is difficult to effectively identify nonlinear information in weld defect detection, and traditional linear feature extraction methods cannot fully reflect the nonlinear characteristics of ultrasonic phased array signals, resulting in low recognition rates.
The nonlinear dynamic feature extraction method is used, combined with the principal component analysis method to reduce the dimensionality of the features, input the deep learning model to identify weld defects, and integrate linear and nonlinear features as feature vectors for identification.
It improves the accuracy and recognition rate of weld defect identification, effectively reflects the irregularity and complexity of the signal, reduces information redundancy, and improves the performance of the machine learning model.
Smart Images

Figure CN118673385A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of welding technology, and in particular to a weld defect identification method and a storage medium. Background Art
[0002] Welding technology has been widely used in various production processes. With the rapid development of welding technology, welding quality has also received attention. Due to the influence of welding structure, processing technology and environmental factors, quality defects such as cracks, lack of fusion, lack of penetration, pores, slag inclusions, etc. often appear in welds. These defects have an important impact on the safety of equipment structure. Therefore, it is very important to detect and identify weld defects. Ultrasonic phased array detection is a mature weld defect detection and identification technology.
[0003] Defect feature extraction of ultrasonic phased array signals is the core content of ultrasonic phased array defect recognition. The main purpose of feature extraction is to extract effective and excellent features from the data, and the data and the features it contains determine the upper limit of the machine learning effect. The more comprehensive and accurate the feature information can reflect the data characteristics, the better the subsequent machine learning effect will be.
[0004] The main methods for defect feature extraction of ultrasonic phased array signals are currently linear analysis methods such as time domain features, frequency domain features, and time-frequency fusion features. However, the collected defect A-scan signals often have non-Gaussian, non-stationary, and nonlinear characteristics. Traditional feature extraction methods are difficult to effectively reflect the nonlinear information of ultrasonic phased array A-scan signals.
[0005] Therefore, the industry is in urgent need of a new technology for weld defect identification. Summary of the invention
[0006] In order to solve the technical problems existing in the above-mentioned prior art, the present invention provides a weld defect recognition method and storage medium. By introducing a method for extracting nonlinear dynamic features, the present invention enriches information that is conducive to defect signal classification, and inputs the extracted linear and nonlinear indicators into four types of algorithms: support vector machine, random forest, kernel extreme learning machine, and gradient boosting decision tree for recognition. The recognition rate obtained by inputting the original eigenvalue into the model is low. The original features are combined and reduced in dimension using the principal component analysis method, and the eigenvalues after dimensionality reduction are input into the model. The recognition rate obtained by inputting the eigenvalues after combined dimensionality reduction into the model as feature vectors is higher.
[0007] To achieve the above object, the present invention provides a method for identifying weld defects, comprising the following steps:
[0008] Scanning a preset carbon steel weld by an ultrasonic phased array to obtain defect scanning signal data of the carbon steel weld;
[0009] A linear analysis method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain linear method features;
[0010] Using a nonlinear dynamics method to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features;
[0011] The linear method characteristics and the nonlinear dynamic characteristics are subjected to dimensionality reduction processing by using principal component analysis to obtain a combined feature vector;
[0012] The combined feature vector is input into a preset deep learning model for defect identification to obtain a defect identification result of the carbon steel weld.
[0013] Furthermore, a linear analysis method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain linear method features, including:
[0014] Eight time domain features including mean, peak, root mean square, standard deviation, skewness, kurtosis, waveform factor and margin factor; two frequency domain features including median frequency and average frequency; and three types of eigenvalues including wavelet total energy, wavelet singular spectral entropy and wavelet singular spectral entropy based on time-frequency fusion.
[0015] Furthermore, a nonlinear dynamic method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features; this also includes: making a chaotic judgment on the defect scanning signal data of the carbon steel weld to determine that the defect scanning signal data of the carbon steel weld has chaotic characteristics.
[0016] Further, performing a chaotic determination on the defect scanning signal data of the carbon steel weld to determine that the defect scanning signal data of the carbon steel weld has chaotic characteristics includes: determining by observing whether a power spectrum of the defect scanning signal data of the carbon steel weld has an obvious peak, or a continuous and widely distributed frequency;
[0017] If the power spectrum shows a single peak or several peaks, it is judged as having no chaotic characteristics;
[0018] If the power spectrum has no obvious peak, it is judged to have chaotic characteristics.
[0019] Further, the defect scanning signal data of the carbon steel weld is subjected to chaos determination, and it is determined that the defect scanning signal data of the carbon steel weld has chaotic characteristics, including: using a correlation dimension method to quantitatively determine the chaotic characteristics of the defect scanning signal data of the carbon steel weld,
[0020] When the correlation dimensions of the defect scanning signal data of the carbon steel weld are all non-integers, it is determined that the defect scanning signal data of the carbon steel weld has chaotic characteristics.
[0021] Furthermore, a nonlinear dynamic method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features, including three eigenvalues based on entropy theory: permutation entropy, approximate entropy, and sample entropy, as well as the complexity of the defect signal.
[0022] Furthermore, the principal component analysis method is used to perform dimension reduction processing on the linear method characteristics and the nonlinear dynamic characteristics to obtain a combined feature vector; including:
[0023] By principal component analysis, the principal components of the linear method characteristics and the nonlinear dynamic characteristics are determined to be the first principal component, the second principal component, the third principal component, and the fourth principal component;
[0024] The four principal components, namely the first principal component, the second principal component, the third principal component and the fourth principal component, form a combined feature vector.
[0025] Furthermore, the pre-set deep learning models include: support vector machine model, random forest model, extreme learning machine model and gradient boosting decision tree model.
[0026] The present invention also provides a computer storage medium storing executable program codes, wherein the executable program codes are used to execute the above-mentioned weld defect identification method.
[0027] The present invention has the following beneficial effects:
[0028] 1. At present, the main feature extraction methods for ultrasonic testing are linear extraction methods such as time domain feature extraction, frequency domain feature extraction, and time-frequency feature extraction. The linear analysis method obtains limited information during feature extraction and cannot reflect the nonlinear information of the signal. The weld defect recognition method provided by the present invention introduces nonlinear dynamic feature extraction. When using nonlinear methods such as permutation entropy, approximate entropy, and sample entropy for feature extraction, it has a better grasp of the irregularity of the data and can reflect the uncertainty of the data and the amount of information. The complexity algorithm can measure the prediction performance and complexity of the signal. Compared with the features extracted linearly and the features extracted nonlinearly alone, the present invention fuses the features extracted linearly and nonlinearly as feature vectors for recognition, and the obtained effect is better and the recognition rate is higher. The present invention introduces a method for extracting nonlinear dynamic features to enrich the information that is conducive to the classification of defect signals.
[0029] 2. A weld defect identification method provided by the present invention introduces nonlinear dynamics to extract features from defect signals, which enriches the information that is beneficial to the classification of defect signals, but also causes information redundancy, resulting in a reduction in classification effect. Therefore, the present invention introduces a feature dimension reduction method to optimize feature vectors to achieve the purpose of removing redundancy. For machine learning, the use of feature dimension reduction methods can effectively reduce the complexity of data, reduce computing costs, and improve model performance. The present invention uses principal component analysis to combine and reduce the original features, inputs the reduced eigenvalues into the model, and uses the combined reduced eigenvalues as feature vectors to input the model to obtain a higher recognition rate.
[0030] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0032] Figure 1 It is a flow chart of a weld defect identification method of the present invention;
[0033] Figure 2 is the power spectrum diagram of five types of defect signals of carbon steel welds of the present invention; wherein, Figure 2 (a) is the power spectrum of crack defect, (b) is the power spectrum of lack of fusion defect, (c) is the power spectrum of incomplete penetration defect, (d) is the power spectrum of porosity defect, and (e) is the power spectrum of slag inclusion defect.
[0034] Figure 3 is the correlation dimension ln(C)-ln(r) curve of the present invention;
[0035] Figure 4 This is a comparison chart of the average recognition rates of five types of defect signal recognition using linear analysis method features, nonlinear dynamic features, and the combined features of the two;
[0036] Figure 5 It is a comparison chart of the average defect recognition rate using the linear method features and the nonlinear dynamic feature vectors H1 and H2 as input values after dimensionality reduction. DETAILED DESCRIPTION
[0037] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.
[0038] like Figure 1As shown, the present invention provides a method for identifying weld defects, and the specific steps are as follows:
[0039] Step 101: Scan a preset carbon steel weld by an ultrasonic phased array to obtain defect scanning signal data of the carbon steel weld.
[0040] Step 102: Use a linear analysis method to extract features from the defect scanning signal data of the carbon steel weld to obtain linear method features.
[0041] Specifically, the linear method feature extraction based on ultrasonic phased array A-scan signals is mainly focused on three aspects: time domain features, frequency domain features, and time-frequency fusion features.
[0042] Use time domain methods to extract features from time series signals. Common time domain feature extraction methods include:
[0043] average value
[0044]
[0045] Peak
[0046]
[0047] RMS
[0048]
[0049] Standard Deviation
[0050]
[0051] Skewness: reflects the degree of skewness of data distribution in the signal;
[0052]
[0053] Kurtosis: reflects the sharpness of the data distribution in the signal;
[0054]
[0055] Form factor: reflects the peak nature of the signal;
[0056]
[0057] Margin factor: reflects the degree of deviation of the signal;
[0058]
[0059] Among them, s iis the echo amplitude of the i-th signal sampling data point, and N is the number of sampling points. According to the time domain feature calculation formula, the time domain features of five types of defect signals, namely crack, lack of fusion, lack of penetration, pores, and slag inclusions, are extracted, and the average value and standard deviation of the calculation results of each type of defect signal are calculated. Different types of defect signals have different distributions on the eight types of time domain features. It is determined that the extracted eight types of feature values are used as the time domain features of the defect signal.
[0060] Select the median frequency and average frequency to reflect the frequency domain characteristics:
[0061] Median frequency
[0062]
[0063] In the formula, f m is the median frequency, which refers to the frequency value corresponding to the 50% cumulative probability of the power spectrum, and p(i) is the corresponding point in the power spectrum density function.
[0064] Average frequency
[0065]
[0066] Wavelet transform is used to extract time-frequency fusion features. Different types of defects cause corresponding changes in a certain frequency band of ultrasonic energy. Therefore, the energy contained in different frequency bands must carry characteristic information of different defect types. The db4 wavelet function is used to perform 3-layer wavelet packet decomposition to analyze the ultrasonic echo signal:
[0067] In wavelet analysis, the energy of a signal can be determined by calculating the sum of the squares of its time-frequency representation after performing a wavelet transform on the signal. The total wavelet energy is defined as the sum of the squares of the absolute values of the wavelet coefficients, expressed as:
[0068] E=∑ j |W j | 2
[0069] Where W i,j is the wavelet transform coefficient, and j is the parameter that determines the position in the wavelet transform.
[0070] Wavelet Energy Entropy (WEE) is an indicator used to measure the unevenness and complexity of the energy distribution of a signal at various scales after wavelet transformation. It is calculated based on the wavelet transform coefficients and reflects the energy distribution of the signal at different frequency scales. Wavelet Energy Entropy can be calculated by the following steps:
[0071] 1) Calculate the wavelet energy at each scale.
[0072] 2) Calculate the ratio p of each scale energy to the total energy j :
[0073]
[0074] 3) Using these energy ratios, calculate the entropy value, the formula is as follows:
[0075]
[0076] Among them, j is the position parameter determined in wavelet transform, p j is the energy ratio at the jth scale, N is the total number of scales, and here three layers of wavelet packet decomposition are performed, so N=8.
[0077] Wavelet Singular Spectrum Entropy (WSSE) combines the concepts of wavelet transform and singular spectrum analysis to analyze the nonlinearity and non-stationarity of signals. It is calculated by applying singular value decomposition (SVD) in the wavelet domain, reflecting the complexity of the singular spectrum distribution of the signal.
[0078] The calculation steps are as follows:
[0079] 1) Perform wavelet packet decomposition on the signal to obtain the wavelet coefficient matrix.
[0080] 2) Apply singular value decomposition to the wavelet coefficient matrix to obtain a set of singular values.
[0081] 3) According to the singular value, calculate the entropy value of the singular spectrum distribution:
[0082]
[0083] Among them, q j It is the probability distribution obtained based on the normalization of singular values, and S is the number of singular values.
[0084] Step 103: Using a nonlinear dynamics method to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features.
[0085] Because the collected defect A-scan signals often have non-Gaussian, non-stationary and nonlinear characteristics, nonlinear dynamic characteristics can effectively reflect the dynamic characteristics of the signal. Judging whether the defect A-scan signal has chaotic characteristics is the premise of nonlinear dynamic analysis. If the defect A-scan signal has chaotic characteristics, its entropy, complexity and other chaotic quantitative indicators can be extracted as defect characteristic indicators. Therefore, the power spectrum method is selected for qualitative judgment of chaotic characteristics, and the correlation dimension method is selected for quantitative judgment of chaotic characteristics.
[0086] The power spectrum can reflect the frequency domain characteristics of the signal. The present invention uses the autocorrelation method to calculate the power spectrum. First, the autocorrelation function R(τ) of the signal x(t) is calculated:
[0087]
[0088] Perform Fourier transform on R(τ) to obtain the power spectrum density S(f):
[0089]
[0090] By observing whether the power spectrum has obvious peaks, or continuous and widely distributed frequencies, the judgment is made. If the power spectrum has a single peak or several peaks, it shows no chaotic characteristics; if the power spectrum has no obvious peaks, it is judged to have chaotic characteristics. Here are the power spectra of each group of five defect type signals, such as Figure 2 As shown; among them, Figure 2 (a) is the power spectrum of crack defect, (b) is the power spectrum of lack of fusion defect, (c) is the power spectrum of incomplete penetration defect, (d) is the power spectrum of porosity defect, and (e) is the power spectrum of slag inclusion defect.
[0091] Depend on Figure 2 From the power spectrum diagram, it can be seen that there is no obvious peak, so it is preliminarily judged that the phased array defect A-scan signal has chaotic characteristics.
[0092] Correlation dimension analysis aims to reveal the complexity and characteristics of a system by observing the structures and interactions at different scales in the system, and then to discern the chaotic characteristics of the system. The correlation dimension focuses on describing the correlation between the internal elements of the system. Its calculation method is as follows:
[0093] Based on the m-dimensional phase space, take any point Si in the space and calculate the distance between this point and other points. When the distance satisfies the condition that it is less than r, this vector is classified as an associated vector. Assuming that there are N points in the reconstructed phase space, the associated integral is defined as:
[0094]
[0095] In the formula, r satisfies: min||S i -S j ||≤r≤max||S i -S j ||, H is a function, and its expression is:
[0096]
[0097] At this time, we get the correlation dimension:
[0098]
[0099] The delay time τ and embedding dimension m of phase space reconstruction can be calculated by the formula. At the same time, the delay time τ and embedding dimension m of the above five defect signals are solved. According to the calculation results, the signal is reconstructed in phase space and the ln(C)-ln(r) curve is plotted, as shown in Figure 3 shown.
[0100] choose Figure 3 Linear fitting is performed in the interval with good linearity, and the slope of the fitted line is the correlation dimension. It can be calculated that the correlation dimensions of the five types of defect signals are all non-integer. Therefore, it is determined that the five types of defect A-scan signals based on the phased array have chaotic characteristics. Based on this, nonlinear dynamic analysis of the defect signal is performed.
[0101] Entropy can be used to reflect the amount of information in a system. It was originally a basic concept in the field of thermodynamics. The definition of entropy can be expressed as:
[0102] S=-∑p i ×lnp i
[0103] In the formula, S represents the entropy of a system, and pi is the probability that the system is in the i-th microscopic state. The larger the entropy value, the more disordered the system information is, and the higher the complexity of the system. In addition, the application of entropy has expanded to more and more extensive fields. This study starts from the perspective of entropy and studies the feature extraction of ultrasonic phased array defect signals.
[0104] The permutation entropy algorithm is suitable for the analysis of nonlinear signals, can detect time series and analyze dynamic mutation characteristics, and has strong anti-interference ability. Its algorithm flow can be expressed as:
[0105] 1) Based on the one-dimensional time series x={x1,x2,x3...,x i ,i=1,2,3,...,n}, firstly reconstruct the phase space and get the formula:
[0106]
[0107] Where τ is the delay time and m is the embedding dimension.
[0108] 2) Sort the vectors to get a new signal sequence: Sg = [j1, j2, ..., jm], g = 1, 2, ..., k, k ≤ m! , Sg is one of m! signal sequences, and the probability of occurrence of each signal sequence is: p1, p2, ..., p k ,
[0109] 3) Define the permutation entropy as:
[0110]
[0111] Perform normalization processing:
[0112]
[0113] For the permutation entropy value after normalization processing, the larger the value, the stronger the randomness of the sample data, and the less stable and regular it is.
[0114] Approximate entropy can be used to measure the irregularity of data. A low entropy value of the data indicates better regularity, repeatability, and predictability. A high entropy value reflects stronger irregularity, less predictability, and fewer repetitions. For the sequence x = {x1, x2, x3..., x i , i = 1, 2, 3,..., n}, the calculation process of approximate entropy can be expressed as:
[0115] First, perform standardization processing, where mean represents taking the average value and std represents the standard deviation:
[0116]
[0117] The permutation x'(i) is a vector group of m dimensions: Xi = [x'(i), x'(i + 1), …, x'(i + m - 1)], and define the distance d[Xi, Xj]:
[0118]
[0119] Let the number of d[Xi, Xj] < r be Ci, where the value range of r is 0.1 to 0.25 times the standard deviation of the sequence, and calculate its ratio to n - m + 1, denoted as Then perform a logarithmic operation and take the average value. Then let m = m + 1 to obtain At this time, there is approximate entropy:
[0120] ApEn(m, r, N) = C m (r) - C m+1 (r)
[0121] Sample entropy is an improved algorithm based on approximate entropy, which has the advantages of reducing the error of approximate entropy and being insensitive to data loss. It can reflect the uncertainty and information volume of data. Generally speaking, the larger the sample entropy value, the stronger the uncertainty of the sample data.
[0122] For a sequence x = {x1, x2, x3..., x i , i = 1, 2, 3,..., n} of length n, the permutation x'(i) is a vector group of m dimensions: Xi = [x'(i), x'(i + 1), …, x'(i + m - 1)], and define the distance d[Xi, Xj]:
[0123]
[0124] Count the number of d[Xi,Xj]<r as Bi, where the value range of r is 0.1 to 0.25 times the standard deviation of the sequence, and calculate its ratio to N - m + 1, denoted as Then perform a logarithmic operation and take the average. Then let m = m + 1 to obtain At this time, the sample entropy is:[[]]
[0125]
[0126] When n is a determined value, the estimated sample entropy is:[[]]
[0127]
[0128] In the field of signal processing, complexity can be used to measure the prediction performance and complexity of signals. Specifically:[[]]
[0129] (1) For a sequence x = {x1, x2, x3..., x n} of length n, calculate the average value of the sequence as the threshold For the elements in the sequence, convert them into a new sequence S through binary mapping. The conversion formula is as follows:[[]]
[0130]
[0131] Obtain the new sequence S = {s1, s2, s3…, s n}. Q is a substring of S, and SQ is the concatenated combination.[[]]
[0132] (2) Initialize the parameters
[0133] Initialize by setting r = 0, S v,0 = {}, Q0 = {}, and complexity LZ(0) = 0. When r = 1, Q1 = {Q0s1}, concatenate SQ1, and remove the last element of SQ1 to obtain S v,0 , and determine whether Q1 is a substring of S v,0 . If it is not a substring, then LZ(1) = LZ(0) + 1, Q1 = {}, and r = r + 1.[[]]
[0134] (3) Repeat the calculation
[0135] Let Q r = {Q r-1 s r},S v,r-1 = {S v,r-2 , S v,r-1}, and determine whether Q r is a substring of S v,r-1If it is a substring, then LZ(r) = LZ(r-1), Q1 = {}, r = r+1; if it is not a substring, then LZ(r) = LZ(r-1)+1, Q r ={}, r = r + 1. Repeat the above procedure until the calculation of the last character is completed.
[0136] (4) Complexity results
[0137]
[0138] Step 104: Use principal component analysis to perform dimensionality reduction processing on the linear method characteristics and nonlinear dynamic characteristics to obtain a combined feature vector.
[0139] Specifically, by principal component analysis, the principal components of the linear method characteristics and the nonlinear dynamic characteristics are determined to be the first principal component, the second principal component, the third principal component, and the fourth principal component;
[0140] The four principal components, namely the first principal component, the second principal component, the third principal component and the fourth principal component, form a combined feature vector.
[0141] Introducing nonlinear dynamics to extract features from defect signals enriches information that is beneficial to defect signal classification, but it also causes information redundancy, which reduces the classification effect. Therefore, the invention introduces a feature dimensionality reduction method to optimize the feature vector to achieve the purpose of removing redundancy.
[0142] Step 105: input the combined feature vector into a preset deep learning model for defect identification to obtain a defect identification result of the carbon steel weld.
[0143] The pre-set deep learning models include: Support Vector Machine Model (SVM), Random Forest Model (RF), Kernel Based Extreme Learning Machine Model (KELM) and Gradient Boosting Decision Tree Model (GBDT).
[0144] The present invention is described in detail below with reference to specific embodiments.
[0145] The linear analysis method characteristics, nonlinear dynamic characteristics, and the combined characteristics of the two obtained above are respectively input into the pre-set deep learning model SVM, KELM, RF, and GBDT models for defect recognition comparative analysis; at the same time, the eigenvalues of the linear analysis method characteristics after principal component analysis, the eigenvalues of the nonlinear dynamic characteristics after principal component analysis, and the combined feature vectors of the linear method characteristic indicators and non-dynamic characteristic indicators after principal component analysis are input into the pre-set deep learning model SVM, KELM, RF, and GBDT models for defect recognition comparative analysis.
[0146] Based on the linear analysis method and the nonlinear dynamic feature extraction method, this application extracted a total of 17 types of feature values. The linear analysis method feature A1, the nonlinear dynamic feature A2 and the combined feature A of the two were input into the SVM, KELM, RF and GBDT models for recognition. The recognition rate results can be seen in Table 1.
[0147] Table 1 Original feature recognition rate
[0148]
[0149] In order to analyze more intuitively, the average recognition rate of five types of defect signals is taken in combination with the results in Table 1, and the following is obtained: Figure 4 Comparison chart of average defect recognition rates shown.
[0150] Combined with Table 1 and Figure 4 Analysis shows that: when the eigenvalues extracted based on the linear method are used as feature vectors to input the model, good results are achieved, but when the nonlinear dynamic features are used alone as input, the recognition results are the worst. According to this analysis, the features extracted by the linear method contain effective feature information for defect signal classification, and the features extracted by nonlinear dynamic analysis also contain information that is beneficial to defect signal classification, but the performance is worse than that of the linear method features. When the 17 extracted features are used as input feature vectors together, the recognition effect based on the joint features of the KELM and GBDT models is worse than the feature recognition results extracted by a single method, and the best effect is achieved. However, in the SVM and RF models, the performance is not as good as the features extracted by the linear method. Based on this, it can be judged that the introduction of nonlinear dynamics to extract features of defect signals enriches the information that is beneficial to the classification of defect signals, but it will also cause information redundancy and reduce the classification effect. Therefore, it is necessary to introduce a feature dimensionality reduction method to optimize the feature vector in order to achieve the purpose of removing redundancy.
[0151] According to the basic principle of principal component algorithm, principal component analysis is performed on the 13 types of features extracted based on the linear analysis method. The eigenvalues based on ultrasonic phased array A-scan defect data are used as input data, and the principal component contribution rate results are shown in Table 2.
[0152] Table 2 Principal component contribution rates of linear method characteristic indicators
[0153]
[0154] As shown in Table 2, the contribution rate of the first principal component is 54.608%, the contribution rate of the second principal component is 27.960%, and the contribution rate of the third principal component is 9.705%. The cumulative contribution rate of the three reaches 92.272%, which exceeds the set threshold target of 85%. That is, the cumulative contribution rate reaches the threshold target of 85%, which reflects that the extracted principal component can represent all indicators of the original input data. Therefore, through principal component analysis, it is determined that the extracted principal components are the first principal component, the second principal component, and the third principal component. The three principal components are combined into a feature vector and input into the SVM, KELM, RF, and GBDT models for recognition. The recognition results can be seen in Table 3.
[0155] Table 3. Feature recognition results extracted by linear method after dimensionality reduction
[0156]
[0157] From the results of Table 3, it can be seen that after the principal component analysis method is used, the features extracted based on the linear method after dimensionality reduction are used as input features, and the classification recognition rate obtained is generally better than the feature input without dimensionality reduction. Based on this analysis, it can be seen that the principal component analysis method has a certain effect on processing the redundant information of the defect A-scan signal.
[0158] According to the basic principle of the principal component algorithm, the principal component analysis is performed on the extracted nonlinear dynamic characteristic indicators. The four types of eigenvalues based on the ultrasonic phased array A-scan defect data are used as input data, and the principal component contribution rate results are shown in Table 4.
[0159] Table 4. Principal component contribution rates of nonlinear dynamic characteristic indicators
[0160]
[0161] As shown in Table 4, the contribution rate of the first principal component is 55.446%, and the contribution rate of the second principal component is 31.085%. The cumulative contribution rate of the two reaches 86.531%, which exceeds the set threshold target of 85%. That is, the cumulative contribution rate reaches the threshold target of 85%, which reflects that the extracted principal component can represent all indicators of the original input data. Therefore, through principal component analysis, it is determined that the extracted principal components are the first principal component and the second principal component. The three principal components are combined into a feature vector and input into the SVM, KELM, RF, and GBDT models for recognition. The recognition rate results can be seen in Table 5.
[0162] Table 5. Nonlinear dynamic feature recognition results after dimensionality reduction
[0163]
[0164] From the results of Table 5, it can be seen that after the principal component analysis method is used, the recognition effect is reduced when the features extracted based on nonlinear dynamics analysis after dimensionality reduction are used as input features. This may be caused by the fact that effective information is excluded as redundant information during the principal component analysis.
[0165] According to the basic principle of principal component algorithm, principal component analysis was performed on the 17 types of features extracted in this study. The eigenvalues based on ultrasonic phased array A-scan defect data were used as input data, and the principal component contribution rate results were obtained as shown in Table 6.
[0166] Table 6. Principal component contribution rates of linear method characteristic indices and nonlinear dynamic characteristic indices
[0167]
[0168]
[0169] As shown in Table 6, the contribution rate of the first principal component is 42.172%, the contribution rate of the second principal component is 24.742%, the contribution rate of the third principal component is 17.688%, and the contribution rate of the fourth principal component is 7.182%. The cumulative contribution rate of the four reaches 91.784%, exceeding the set threshold target of 85%. Therefore, through principal component analysis, the extracted principal components are determined to be the first principal component, the second principal component, the third principal component, and the fourth principal component.
[0170] The four principal components are combined into the feature vector H1, which is input into the SVM, KELM, RF, and GBDT models for recognition. The results can be seen in Table 7.
[0171] Table 7 Recognition rate of joint dimension reduction features
[0172]
[0173] At the same time, based on the principal component analysis results of the linear method characteristic indicators and non-dynamic characteristic indicators in the previous article, the two are input into the model as the characteristic vector H2 for identification. The results can be seen in Table 8.
[0174] Table 8 Recognition rate of linear method features and nonlinear dynamic features after dimensionality reduction
[0175]
[0176] Combining the results in Table 7 and Table 8, we can get the average recognition rate of defect signals. Figure 5 shown.
[0177] Analysis Table 7, Table 8 and Figure 5It can be seen that the feature input after dimensionality reduction by principal component analysis shows a better recognition rate. In addition, compared with the results of joint dimensionality reduction, the combination of linear method features after dimensionality reduction and nonlinear dynamic features after dimensionality reduction as feature vectors shows a better effect, indicating that based on nonlinear dynamic analysis, the features extracted by linear methods can be supplemented with effective information.
[0178] In summary, the weld defect recognition method provided by the present invention introduces nonlinear dynamic feature extraction. When using nonlinear methods such as permutation entropy, approximate entropy, and sample entropy for feature extraction, the irregularity of the data can be better grasped, and the uncertainty and amount of information of the data can be reflected. The complexity algorithm can measure the prediction performance and complexity of the signal. Compared with the features extracted linearly and the features extracted nonlinearly alone, the present invention fuses the features extracted linearly and nonlinearly as feature vectors for recognition, and the obtained effect is better and the recognition rate is higher. The present invention introduces the method of extracting nonlinear dynamic features, which enriches the information that is conducive to the classification of defect signals.
[0179] In addition, a weld defect identification method provided by the present invention introduces nonlinear dynamics to extract features from defect signals, which enriches information that is beneficial to the classification of defect signals, but also causes information redundancy, resulting in a situation where the classification effect is reduced. Therefore, the present invention introduces a feature dimension reduction method to optimize feature vectors to achieve the purpose of removing redundancy. For machine learning, the use of feature dimension reduction methods can effectively reduce the complexity of data, reduce computing costs, and improve model performance. The present invention uses principal component analysis to combine and reduce the original features, inputs the reduced eigenvalues into the model, and uses the combined reduced eigenvalues as feature vectors to input the model to obtain a higher recognition rate.
[0180] On the other hand, the present invention also provides a computer storage medium storing an executable program code; the executable program code is used to execute any one of the above-mentioned weld defect identification methods.
[0181] Exemplarily, the program code may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.
[0182] The memory may be an internal storage unit of the terminal device, such as a hard disk or a memory. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store the program code and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.
[0183] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A weld defect identification method, characterized in that: The following steps are involved: Scanning a preset carbon steel weld by an ultrasonic phased array to obtain defect scanning signal data of the carbon steel weld; A linear analysis method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain linear method features; Using a nonlinear dynamics method to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features; The principal component analysis method is used to reduce the dimension of the linear method characteristics and the nonlinear dynamic characteristics to obtain a combined feature vector; The combined feature vector is input into a preset deep learning model for defect identification to obtain a defect identification result of the carbon steel weld.
2. A weld defect identification method according to claim 1, characterized in that: The linear analysis method is used to extract the features of the defect scanning signal data of the carbon steel weld to obtain the linear method features, including: Eight time domain features including mean, peak, root mean square, standard deviation, skewness, kurtosis, waveform factor and margin factor; two frequency domain features including median frequency and average frequency; and three types of eigenvalues including wavelet total energy, wavelet singular spectral entropy and wavelet singular spectral entropy based on time-frequency fusion.
3. A weld defect identification method according to claim 1, characterized in that: A nonlinear dynamics method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features; the method also includes: performing chaos judgment on the defect scanning signal data of the carbon steel weld to determine that the defect scanning signal data of the carbon steel weld has chaotic characteristics.
4. A weld defect identification method according to claim 3, characterized in that: Performing a chaotic determination on the defect scanning signal data of the carbon steel weld to determine that the defect scanning signal data of the carbon steel weld has chaotic characteristics, including: determining by observing whether a power spectrum of the defect scanning signal data of the carbon steel weld has an obvious peak, or a continuous and widely distributed frequency; If the power spectrum has a single peak or several peaks, it is judged to have no chaotic characteristics; If the power spectrum has no obvious peak, it is judged to have chaotic characteristics.
5. A weld defect identification method according to claim 3, characterized in that: The defect scanning signal data of the carbon steel weld is subjected to chaotic determination, and it is determined that the defect scanning signal data of the carbon steel weld has chaotic characteristics, including: using a correlation dimension method to quantitatively determine the chaotic characteristics of the defect scanning signal data of the carbon steel weld, When the correlation dimensions of the defect scanning signal data of the carbon steel weld are all non-integers, it is determined that the defect scanning signal data of the carbon steel weld has chaotic characteristics.
6. A weld defect identification method according to claim 1, characterized in that: A nonlinear dynamics method is used to extract features from the defect scanning signal data of the carbon steel weld to obtain nonlinear dynamic features, including three eigenvalues based on entropy theory, namely, permutation entropy, approximate entropy and sample entropy, as well as the complexity of the defect signal.
7. A weld defect identification method according to claim 1, characterized in that: The principal component analysis method is used to reduce the dimension of the linear method characteristics and the nonlinear dynamic characteristics to obtain a combined feature vector; including: By principal component analysis, the principal components of the linear method characteristics and the nonlinear dynamic characteristics are determined to be the first principal component, the second principal component, the third principal component, and the fourth principal component; The first principal component, the second principal component, the third principal component and the fourth principal component are combined into a combined feature vector.
8. A weld defect identification method according to claim 1, characterized in that: The pre-set deep learning models include: support vector machine model, random forest model, extreme learning machine model and gradient boosting decision tree model.
9. A computer storage medium storing executable program code, characterized in that: The executable program code is used to execute a weld defect identification method as described in any one of claims 1-8.
