A crack characterization method and device based on ultrasonic phased array
By constructing and optimizing the crack parameter regression prediction model in ultrasonic phased array technology, and using the scattering matrix and SSIM distance measurement, the problem that existing technology cannot accurately characterize deeply buried cracks with less than two wavelengths is solved, and cracks above 0.4λ are realized. accurate characterization and high-precision detection.
Patent Information
- Application Number
- CN202210445410.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-04-26
AI Technical Summary
Existing non-destructive monitoring methods based on ultrasonic phased array cannot accurately characterize deeply buried cracks in metal structures with crack sizes smaller than two wavelengths.
Using a crack characterization method based on ultrasonic phased array, by inputting the scattering matrix of the crack to be detected into the initial and final crack parameter regression prediction model, combined with finite element simulation and SSIM distance measurement, a crack parameter regression prediction model is constructed and optimized to accurately characterize small Dimensional cracks.
It achieves accurate characterization of cracks with a size above 0.4λ, and improves the detection rate and characterization accuracy of small-size crack defects.
Smart Images

Figure CN114755302B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of nondestructive testing, and more specifically, relates to a crack characterization method and device based on an ultrasonic phased array. Background Art
[0002] During the use of metal parts, their structures may be affected by some extreme conditions, such as fatigue loads, large-scale temperature and humidity fluctuations, and chemical and environmental attacks. These effects can lead to defects such as cracks. If not handled and maintained in time, cracks will continue to grow and expand under the action of stress, eventually leading to structural degradation and failure. Detecting and quantifying crack-like defects in metal structures can predict the remaining life of the structure, and timely maintenance can be performed to increase the remaining life or arrange for retirement to prevent accidents.
[0003] Cracks in metal structures are divided into surface cracks, deep-buried cracks and through-going cracks. Surface cracks and through-going cracks can be detected by more conventional methods, such as magnetic particle testing and eddy current testing. However, for deep-buried cracks, more advanced means are needed for detection and characterization. Ultrasonic phased array is a new industrial nondestructive testing technology developed in recent years. Through the orderly excitation of each array element, a flexible deflection and focused sound beam can be obtained. Combined with unique working methods such as linear scanning, sector scanning and dynamic focusing, combined with software, real-time high-resolution imaging of the interior of metal structures can be performed, and it is widely used in the monitoring of deep-buried cracks.
[0004] At present, the nondestructive monitoring method based on ultrasonic phased array imaging can effectively characterize deep-buried cracks with a size of more than two wavelengths, which can meet the detection needs in most cases. However, when the size of the crack in the structure is less than two wavelengths, the ultrasonic phased array imaging method cannot accurately characterize the crack parameters. Therefore, this field urgently needs to develop methods for accurately characterizing small-sized crack defects to improve the detection rate and characterization accuracy of small-sized crack defects. Summary of the invention
[0005] In view of the defects of the prior art, the purpose of the present invention is to provide a crack characterization method and device based on ultrasonic phased array, aiming to solve the problem that the current non-destructive monitoring method based on ultrasonic phased array imaging cannot accurately characterize deep buried cracks with a crack size less than two wavelengths.
[0006] To achieve the above object, on the one hand, the present invention provides a crack characterization method based on ultrasonic phased array, comprising the following steps:
[0007] Input the scattering matrix of the crack to be detected into the initial crack parameter regression prediction model to obtain the azimuth of the crack;
[0008] Based on the azimuth angle, it is determined whether the crack parameters are in the area to be optimized. If they are in the area to be optimized, the scattering matrix of the crack to be detected is input into the final crack parameter regression prediction model to output the size of the crack. Otherwise, the size of the crack is directly output.
[0009] The method for determining the final crack parameter regression prediction model includes the following steps:
[0010] According to the acoustic performance parameters of the material under test and the ultrasonic phased array measurement configuration parameters, the finite element simulation method is used to simulate the scattering matrix of cracks with different parameters, and a scattering matrix database is constructed with the scattering matrix of the crack sample as the feature vector and the parameters of the crack sample as the label value;
[0011] Using the scattering matrix database as the training set, an initial crack parameter regression prediction model is constructed with SSIM (Structural Similarity) distance as the scattering matrix metric; the parameters of the SSIM distance for regulating brightness, contrast and structure are all 1;
[0012] The training set is cross-validated by the leave-one-out method. After the label values of all crack samples as the validation set are predicted using the crack parameter regression prediction model, the prediction error of the crack sample label value is calculated, and a prediction error distribution diagram is constructed.
[0013] Based on the prediction error distribution diagram, the crack parameter space is constructed with the azimuth as the horizontal coordinate and the size as the vertical coordinate, and the crack parameter space is divided into regions based on the root mean square error degree of the crack sample size parameter;
[0014] The grid search method is used to perform metric optimization on the optimization area, and the crack parameter regression prediction model corresponding to different SSIM distance parameters in different areas is obtained to determine the final crack parameter regression prediction model.
[0015] Further preferably, the acoustic performance parameters of the material under test include density, sound velocity, Young's modulus and Poisson's ratio of the material under test; and the ultrasonic phased array measurement configuration parameters include: phased array probe size, number of array elements, center frequency and array element spacing.
[0016] Further preferably, the method for constructing the initial crack parameter regression prediction model comprises the following steps:
[0017] Select a crack sample (such as experimental data) outside the training set as a test sample;
[0018] The SSIM distance is used to calculate the distance between the scattering matrix of the test sample and the characteristic vectors of all crack samples in the training set;
[0019] According to the distance between the test sample and the feature vectors of all crack samples in the training set, the Gaussian kernel function is used to calculate the weight coefficient of the label value of the crack sample in the training set;
[0020] The label value of the test sample is calculated based on the weighted coefficient of the label value of the crack sample in the training set and the label value of the crack sample in the training set.
[0021] Further preferably, the method for constructing the prediction error distribution map is specifically:
[0022] Each crack sample in the training set is used as a validation set in turn;
[0023] The initial crack parameter regression prediction model is used to predict the label values of crack samples in the validation set;
[0024] The difference between the predicted value and the actual value of the crack sample label value in the validation set is used as the prediction error of the validation set, and the prediction error when all crack samples in the training set are used as the validation set is calculated;
[0025] Based on the prediction error when all crack samples in the training set are used as the validation set, the root mean square error (RMSE) is used to calculate the root mean square error of the azimuth and size.
[0026] With the azimuth angle as the horizontal coordinate and the root mean square error of the size as the vertical coordinate, the prediction error distribution diagram is obtained.
[0027] Further preferably, the method for performing metric optimization on the area to be optimized comprises the following steps:
[0028] The root mean square error of the initial crack parameter regression prediction model when all crack samples in the region are used as the validation set is used as the optimization target;
[0029] Determine the search range and search step size for the SSIM distance control brightness, contrast and structure parameters;
[0030] The root mean square error of the control brightness, contrast and structural parameter combinations of all SSIM distances in the search space is calculated. When the root mean square error takes the minimum value, the control brightness, contrast and structural parameter combination corresponding to the SSIM distance is the optimal SSIM distance in the region.
[0031] On the other hand, the present invention provides a crack characterization device based on ultrasonic phased array, comprising:
[0032] Ultrasonic phased array, used to combine the crack to be detected with the calibration sample, collect full matrix data and output the scattering matrix of the crack;
[0033] An amplitude calibration system is used to calibrate the amplitude of the scattering matrix corresponding to the crack to be detected by comparing the scattering matrix corresponding to the crack to be detected with the scattering matrix corresponding to the calibration sample;
[0034] A crack parameter prediction system, which is internally provided with a crack parameter regression prediction model, is used to input the calibrated scattering matrix into the initial crack parameter regression prediction model, obtain the azimuth of the crack, and output the size of the crack when the crack parameter is not in the area to be optimized; and is used to select the optimal SSIM distance parameter corresponding to the area to be optimized in the final crack parameter regression prediction model when the crack parameter is in the area to be optimized, and output the size of the crack; wherein the crack parameters include the azimuth and size of the crack; the crack parameter regression prediction model includes the initial crack parameter regression prediction model and the final crack parameter regression prediction model;
[0035] A judgment system, used to judge whether the crack parameters are in the area to be optimized based on the azimuth;
[0036] Predictive model building system, including:
[0037] The scattering matrix database establishment module is used to simulate the scattering matrix of cracks with different parameters using the finite element simulation method according to the acoustic performance parameters of the material under test and the ultrasonic phased array measurement configuration parameters, and to construct a scattering matrix database with the scattering matrix of the crack sample as the feature vector and the parameters of the crack sample as the label value;
[0038] A construction module of an initial crack parameter regression prediction model is used to construct an initial crack parameter regression prediction model using a scattering matrix database as a training set and using SSIM distance as a scattering matrix metric; wherein the SSIM distance parameter includes parameters for adjusting brightness, contrast and structure; and the SSIM distance parameters of the initial crack parameter regression prediction model are all set to 1;
[0039] A prediction error distribution map construction module is used to perform leave-one-out cross-validation on the training set, use the crack parameter regression prediction model to predict the label values of all crack samples as the validation set, calculate the prediction error of the crack sample label value, and construct a prediction error distribution map;
[0040] A parameter space region division module is used to construct a crack parameter space based on the prediction error distribution diagram, with the azimuth as the horizontal coordinate and the size as the vertical coordinate, and to divide the crack parameter space into regions based on the root mean square error degree of the crack sample size;
[0041] The optimization module of the crack parameter regression prediction model is used to perform metric optimization on the optimization area using a grid search method to obtain the final crack parameter regression prediction model corresponding to different SSIM distance parameters in different areas.
[0042] Further preferably, the acoustic performance parameters of the material under test include density, sound velocity, Young's modulus and Poisson's ratio of the material under test; and the ultrasonic phased array measurement configuration parameters include: phased array probe size, number of array elements, center frequency and array element spacing.
[0043] Further preferably, the construction module of the initial crack parameter regression prediction model includes an SSIM distance calculation unit, a weighted coefficient calculation unit and a label value calculation unit;
[0044] The SSIM distance calculation unit is used to calculate the distance between the scattering matrix of the test sample and the characteristic vectors of all crack samples in the training set using the SSIM distance;
[0045] The weight coefficient calculation unit is used to calculate the weight coefficient of the label value of the crack sample in the training set by using the Gaussian kernel function according to the distance between the test sample and the feature vectors of all crack samples in the training set;
[0046] The label value calculation unit is used to calculate the label value of the test sample based on the weighted coefficient of the label value of the crack sample in the training set and the label value of the crack sample in the training set;
[0047] Among them, the test sample is a crack sample outside the training set.
[0048] Further preferably, the prediction error distribution map construction module includes:
[0049] A screening unit is used to take each crack sample in the training set as a validation set in turn;
[0050] A prediction error calculation unit is used to calculate the prediction error when all crack samples in the training set are used as the verification set, based on the difference between the predicted value and the actual value of the crack sample label value in the verification set as the prediction error of the verification set; based on the prediction error when all crack samples in the training set are used as the verification set in sequence, calculate the root mean square error of the azimuth and the size;
[0051] The distribution diagram construction unit is used to obtain a prediction error distribution diagram with the azimuth as the horizontal coordinate and the root mean square error of the size as the vertical coordinate.
[0052] Among them, the initial crack parameter regression prediction model is used to predict the label values of crack samples in the verification set.
[0053] Further preferably, the method for performing metric optimization on the area to be optimized comprises the following steps:
[0054] The root mean square error of the initial crack parameter regression prediction model when all crack samples in the region are used as validation sets in turn is used as the optimization target;
[0055] Determine the search range and search step size for the SSIM distance control brightness, contrast and structure parameters;
[0056] The root mean square error of the control brightness, contrast and structural parameter combinations of all SSIM distances in the search space is calculated. When the root mean square error takes the minimum value, the control brightness, contrast and structural parameter combination corresponding to the SSIM distance is the optimal SSIM distance in the region.
[0057] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:
[0058] The present invention adopts ultrasonic phased array and related software to extract the scattering matrix of crack defects as feature vectors from full matrix data. Compared with other ultrasonic nondestructive testing methods, more useful information related to crack parameters can be obtained. When constructing the final crack regression prediction model, the present invention uses the scattering matrix of the crack sample as the feature vector, and the parameters of the crack sample as the label value to construct a scattering matrix database, and trains the initial crack parameter regression prediction model. It can accurately characterize cracks with a size greater than 0.4λ (λ is the wavelength of ultrasonic waves in the material being tested), which is superior to other ultrasonic nondestructive testing technologies.
[0059] Based on the construction of the initial crack parameter regression prediction model, the present invention adopts the training set leave-one-out cross-validation error method to construct a prediction error distribution map, and then divides the parameter space of the crack into regions according to the prediction distribution map, uses the SSIM distance as the scattering matrix metric, and performs local metric optimization on different regions in the parameter space to improve the characterization accuracy of the model for large azimuth cracks. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a flow chart of a crack defect characterization method based on an ultrasonic scattering matrix provided in an embodiment of the present invention;
[0061] Figure 2 is a schematic diagram of ultrasonic phased array measurement provided by an embodiment of the present invention;
[0062] FIG3( a ) is a two-dimensional diagram of the scattering matrix corresponding to the crack (1,0) provided in an embodiment of the present invention;
[0063] FIG3( b ) is a two-dimensional diagram of the scattering matrix corresponding to the crack ( 1 , 30 ) provided in an embodiment of the present invention;
[0064] FIG3( c ) is a two-dimensional diagram of the scattering matrix corresponding to the crack (1,60) provided in an embodiment of the present invention;
[0065] FIG3( d ) is a two-dimensional diagram of the scattering matrix corresponding to the crack (0.5, 30) provided in an embodiment of the present invention;
[0066] FIG3( e ) is a two-dimensional diagram of the scattering matrix corresponding to the crack ( 1 , 30 ) provided in an embodiment of the present invention;
[0067] FIG3( f ) is a two-dimensional diagram of the scattering matrix corresponding to the crack (1.5, 30) provided in an embodiment of the present invention;
[0068] FIG4( a ) is a distribution diagram of crack size prediction errors when all crack samples in the training set provided by an embodiment of the present invention are used as a validation set;
[0069] FIG4( b ) is a distribution diagram of the prediction error of the crack azimuth when all crack samples in the training set provided by an embodiment of the present invention are used as the validation set;
[0070] Figure 5 is a distribution diagram of the model size prediction error in the azimuth range provided by an embodiment of the present invention;
[0071] Figure 6 is an optimized region division diagram provided by an embodiment of the present invention;
[0072] Figure 7 It is a design diagram of an experimental sample provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0074] like Figure 1 As shown, the present invention provides a crack characterization method based on ultrasonic phased array, and the overall technical solution is:
[0075] According to the acoustic performance parameters of the sample under test and the ultrasonic phased array measurement configuration, the theoretical scattering matrix of cracks with different parameters is simulated and a scattering matrix database is formed;
[0076] The scattering matrix database is used as the training set, and the SSIM distance is used as the scattering matrix metric to build a crack parameter kernel regression prediction model.
[0077] According to the training set leave-one-out cross-validation error, the SSIM distance parameters are optimized independently for different regions in the parameter space;
[0078] Taking crack size and azimuth as the basic crack parameters, design cracks with different parameter combinations and process actual samples;
[0079] The scattering matrix of the crack in the test sample is extracted and input into the optimized crack parameter prediction model for crack parameter characterization.
[0080] Example 1
[0081] like Figure 1As shown, this embodiment provides a crack characterization method based on ultrasonic phased array, comprising the following steps:
[0082] Step 1: Experimentally measure the acoustic performance parameters of the material under test, including the density, sound velocity, Young's modulus and Poisson's ratio of the material under test; determine the ultrasonic phased array measurement configuration parameters, which include: phased array probe size, number of array elements, center frequency and array element spacing;
[0083] The material selected in this embodiment is aluminum, whose density is 2.7*10 3 kg / m 3 , the speed of sound is 6300m / s, and the Young's modulus is 6.9*10 10 Pa, Poisson's ratio is 0.334; the number of ultrasonic phased array elements used is 64, the element width is 0.35mm, the element length is 15mm, the element spacing is 0.5mm, and the probe center frequency is 2.5MHz; Figure 2 This is the principle diagram of ultrasonic phased array measurement;
[0084] Step 2: According to the acoustic performance parameters of the material under test and the ultrasonic phased array measurement configuration parameters, the finite element simulation method is used to simulate the theoretical scattering matrix of cracks with different parameters; the scattering matrix is used to describe the scattering characteristics of ultrasonic waves at the target defect, including the scattering information of the crack in the acoustic field;
[0085] The simulated crack size range is 0.1λ to 2λ (interval 0.1λ), and the azimuth range is -85° to 90° (interval 5°). Figures 3(a) to (c) are the theoretical scattering matrices of (1,0), (1,30) and (1,60) cracks, respectively. The crack parameters of Figures 3(d) to (f) are the theoretical scattering matrices of (0.5,30), (1,30) and (1.5,30) cracks, respectively. The first number in the brackets is the crack size in mm, and the second number is the azimuth of the crack relative to the phased array detection plane. The simulated crack scattering matrix S i and the crack parameter p i Combined crack sample X i =(S i , p i ), a total of 720 crack samples were simulated, forming a scattering matrix database and stored in the crack_db.mat file;
[0086] Step 3: Use the scattering matrix database to build a crack parameter regression prediction model, and use the scattering matrix database as the training set of the model, where the scattering matrix of the crack sample is used as the feature vector and the parameters of the crack sample are used as the label value; for the test crack sample X outside the training set 0 , its eigenvector S is known 0 , then the process of obtaining its label value is as follows:
[0087] (3.1) Using SSIM distance to calculate S 0 The distance between the feature vectors of all samples in the training set, where the SSIM distance is modified from the structural similarity index and is an effective distance metric used to calculate the distance between scattering matrices. It contains three adjustable parameters; the calculation formula of the SSIM distance is:
[0088]
[0089] Among them, α, β, γ are the parameters of SSIM distance to control the importance of brightness, contrast and structure. Under the standard state, α=β=γ=1; l(S 0 , S i ) is the brightness contrast function; c(S 0 , S i ) is the contrast function; s(S 0 , S i ) is the structure contrast function, and its calculation formula is as follows:
[0090]
[0091]
[0092]
[0093] in, Represents S 0 The mean of Represents S 0 The standard deviation of Represents S 0 With S i The covariance between 1 , C 2 and C 3 is a constant, which is introduced to avoid the denominator being zero during the calculation process. It is usually taken as C 1 =(K 1 L) 2 , C 2 =(K 2 L) 2 , C 3 =C 2 / 2, K 1 =0.01, K 2 =0.03, L is the dynamic range of the scattering matrix amplitude; Represents S i The mean of Represents S i The standard deviation of
[0094] (3.2) According to the test crack sample feature vector S 0 The distance between the feature vectors of all crack samples in the training set is calculated by using the Gaussian kernel function to calculate the weighted coefficient of the sample label value in the training set. The weighted coefficient calculation formula is as follows:
[0095]
[0096] Among them, ω i Indicates the calculated test crack sample X 0 The label value is the training set crack sample X i The weight of the label value; σ is the adjustable parameter of the Gaussian kernel function; the larger σ is, the smoother the Gaussian distribution is, that is, the smaller the influence of the distance between the feature vectors on the weighting coefficient is; in this embodiment, the value of σ is 0.2, and X 0 The tag values are as follows:
[0097]
[0098] Among them, p 0 For the test crack sample X 0 Tag value; p i is the crack sample X in the training set i The label value of; N is the number of crack samples in the training set, and in this embodiment, N=720;
[0099] Step 4: For each crack sample X in the training set i Take turns as the validation set, and the remaining samples as the training set. Predict the label value of the crack sample in the validation set and calculate the prediction error. The calculation formula for the label value of the crack sample in the validation set is:
[0100]
[0101] in, is the crack sample X i When used as a validation set, the label value predicted by the crack parameter regression prediction model; X j =(S j , p j ) is divided by X j For cracked samples other than i The prediction error when used as a validation set is The prediction error when all crack samples in the training set are used as the validation set is calculated. The results are shown in Figures 4(a) and (b). Figure 4(a) is the prediction error of the crack size, and Figure 4(b) is the prediction error of the azimuth. The calculation formula for the root mean square error RMSE of Figures 4(a) and 4(b) is as follows:
[0102]
[0103]
[0104] Among them, p i,1 The actual first parameter representing the label value is the crack size, p i,2 The actual second parameter representing the label value is the crack azimuth; the distribution of the size prediction error over the angle range is shown in Figure 5 As shown;
[0105] Step 5: According to the prediction error distribution diagram of the crack parameter regression prediction model validation set obtained in step 4, the parameter space of the crack is divided into regions; in this embodiment, since the azimuth parameter prediction error of the model is small, the basis for dividing the parameter space according to the azimuth is: the root mean square error RMSE1 of the size parameter is less than 0.1, RMSE1 is greater than 0.1 and less than 0.2, and RMSE1 is greater than 0.2; among which, the region with RMSE1 less than 0.1 does not need to be metrically optimized; the division result is as follows Figure 6 As shown in Figure A 0 The prediction error of the regional model validation set is small, and no metric optimization is required; A 1 , A 2 , A 3 With A 4 The prediction errors of the model validation set in the region are large and need to be optimized. These four regions are called the regions to be optimized;
[0106] Step 6: Use the grid search method to perform metric optimization on the area to be optimized divided in step 5. The implementation process of metric optimization is as follows:
[0107] (6.1) The root mean square error of the model when all crack samples in the region are used as the validation set is taken as the optimization target, and A 1 Taking the region as an example, the calculation formula of its optimization target is:
[0108]
[0109] Among them, N 1 is the number of crack samples in the area to be optimized; L 1 is the optimization target of the SSIM distance parameter;
[0110] (6.2) Determine the search range and search step of the three parameters of SSIM distance; in this embodiment, the search range of the three parameters α, β, and γ is set to [0, 2], and the search step is 0.1;
[0111] (6.3) Calculate the root mean square error of all parameter combinations in the search space. When the root mean square error takes the minimum value, the corresponding parameter combination is the optimal SSIM distance in the region;
[0112] Step 7: Design and process cracks and calibration holes with different parameters, collect full matrix data and extract the scattering matrix of the crack, and perform amplitude calibration; wherein, the full matrix data is: during the data acquisition process, each module of the phased array (hereinafter referred to as array element) is used as a transmitting unit and a receiving unit, and the obtained data contains the time domain sampling signals of all array element combinations.
[0113] In this embodiment, aluminum 6061 is selected to make the experimental sample, and the crack and the calibration hole are processed by electric spark wire cutting. The design drawings of the experimental sample are as follows: Figure 7 As shown in the figure, the diameters of the three calibration holes are 1 mm, 3 mm and 5 mm respectively, and the parameters of the eight cracks are (1,0), (1,15), (1,30), (1,45), (2.5,30), (2.5,4.5), (1.5,30) and (1.5,60). The first number in the bracket is the size of the crack in mm; the second number is the azimuth of the crack in degrees.
[0114] In this embodiment, an ultrasonic phased array probe with 64 array elements arranged linearly is used, the array element spacing is 0.3 mm, the frequency is 2.5 MHz, and the array element length is 5 mm; an Explorer open ultrasonic phased array platform is selected, which can control 64 independent transmitting-receiving channels corresponding to the number of probe array elements in parallel; a matrix pulse is used to stimulate each array element in turn, and all array elements are used as receiving units in each transmission, thereby obtaining full matrix data of the time domain signal of each transmitting-receiving array element group, and the above equipment and method are used to collect the full matrix data of the tested material, and extract the scattering matrix of the crack from the full matrix data;
[0115] In this embodiment, the amplitude calibration process is as follows: Experimentally extract the crack scattering matrix S c and the scattering matrix S of the calibrated circular hole h , the theoretical scattering matrix S of the simulated calibration circular hole p , calculate the coefficient matrix C:
[0116]
[0117] Perform amplitude calibration on the crack scattering matrix:
[0118] S c ′=C×S c
[0119] Among them, the coefficient matrix C and the experimentally extracted crack scattering matrix S c The point multiplication operation is performed, S c ′ is the crack scattering matrix after amplitude calibration;
[0120] Step 8: Input the crack scattering matrix calibrated by amplitude in step 7 as a feature vector into the crack parameter regression prediction model for characterization.
[0121] In this embodiment, the crack scattering matrix S is firstly c ′ was input into the unoptimized crack parameter regression prediction model for preliminary characterization. The preliminary characterization results are as follows:
[0122]
[0123] in, Represents the characterization function of the model without optimization, at this time α 0 =β 0 =γ 0 =1; According to the azimuth of the preliminary characterization result, the region where the crack is located in the parameter space is judged. If it is in an area that does not need to be optimized, the preliminary characterization result is output as the characterization parameter of the crack. If it is in an area that needs to be optimized, S c ′ is input into the optimized model for characterization, and the characterization results are as follows:
[0124]
[0125] in, Represents the optimal model in the region where the crack falls; α 1 , β 1 and γ 1 is the optimal SSIM distance parameter combination in the region, obtained by step six.
[0126] In this embodiment, the characterization results of eight crack defects are as follows:
[0127]
[0128] According to the sound velocity of the material in step 1 and the center frequency of the ultrasonic phased array probe, the wavelength λ of the ultrasonic wave in the aluminum 6061 material is 2.52 mm. Combined with the above table, it can be seen that the present invention can accurately characterize sub-wavelength cracks with a size of about 0.4λ, and the characterization error of inclined cracks with azimuth angles of 45° and 60° is also within 0.1λ.
[0129] Example 2
[0130] The present invention provides a crack characterization device based on an ultrasonic phased array, comprising:
[0131] Ultrasonic phased array, used to combine the crack to be detected with the calibration sample, collect full matrix data and output the scattering matrix of the crack;
[0132] An amplitude calibration system is used to calibrate the amplitude of the scattering matrix corresponding to the crack to be detected by comparing the scattering matrix corresponding to the crack to be detected with the scattering matrix corresponding to the calibration sample;
[0133] A crack parameter prediction system, which is internally provided with a crack parameter regression prediction model, is used to input the calibrated scattering matrix into the initial crack parameter regression prediction model, obtain the azimuth of the crack, and output the size of the crack when the crack parameter is not in the area to be optimized; and is used to select the optimal SSIM distance parameter corresponding to the area to be optimized in the final crack parameter regression prediction model when the crack parameter is in the area to be optimized, and output the size of the crack; wherein the crack parameters include the azimuth and size of the crack; the crack parameter regression prediction model includes the initial crack parameter regression prediction model and the final crack parameter regression prediction model;
[0134] A judgment system, used to judge whether the crack parameters are in the area to be optimized based on the azimuth;
[0135] Predictive model building system, including:
[0136] The scattering matrix database establishment module is used to simulate the scattering matrix of cracks with different parameters using the finite element simulation method according to the acoustic performance parameters of the material under test and the ultrasonic phased array measurement configuration parameters, and to construct a scattering matrix database with the scattering matrix of the crack sample as the feature vector and the parameters of the crack sample as the label value;
[0137] A construction module of an initial crack parameter regression prediction model is used to construct an initial crack parameter regression prediction model using a scattering matrix database as a training set and using SSIM distance as a scattering matrix metric; wherein the SSIM distance parameter includes parameters for adjusting brightness, contrast and structure; and the SSIM distance parameters of the initial crack parameter regression prediction model are all set to 1;
[0138] The prediction error distribution map construction module is used to perform leave-one-out cross-validation on the training set, use the crack parameter regression prediction model to predict the label values of all crack samples when they are used as the validation set in turn, calculate the prediction error of the crack sample label value, and construct the prediction error distribution map; the parameter space region division module is used to construct the crack parameter space based on the prediction error distribution map, with the azimuth as the horizontal coordinate and the size as the vertical coordinate, and divide the crack parameter space into regions based on the root mean square error degree of the crack sample size;
[0139] The optimization module of the crack parameter regression prediction model is used to perform metric optimization on the optimization area using a grid search method to obtain the final crack parameter regression prediction model corresponding to different SSIM distance parameters in different areas.
[0140] Further preferably, the acoustic performance parameters of the material under test include density, sound velocity, Young's modulus and Poisson's ratio of the material under test; and the ultrasonic phased array measurement configuration parameters include: phased array probe size, number of array elements, center frequency and array element spacing.
[0141] Further preferably, the construction module of the initial crack parameter regression prediction model includes an SSIM distance calculation unit, a weighted coefficient calculation unit and a label value calculation unit;
[0142] The SSIM distance calculation unit is used to calculate the distance between the scattering matrix of the test sample and the feature vectors of all remaining crack samples in the training set (i.e., the scattering matrix) using the SSIM distance;
[0143] The weight coefficient calculation unit is used to calculate the weight coefficient of the label value of the remaining crack samples in the training set using a Gaussian kernel function according to the distance between the test sample and the feature vectors of all crack samples in the training set;
[0144] The label value calculation unit is used to calculate the label value of the test sample based on the weighted coefficient of the label value of the remaining crack samples in the training set and the label value of the remaining crack samples in the training set;
[0145] Among them, the test sample is a crack sample outside the training set.
[0146] Further preferably, the prediction error distribution map construction module includes:
[0147] A screening unit is used to take each crack sample in the training set as a validation set in turn;
[0148] A prediction error calculation unit is used to calculate the prediction error when all crack samples in the training set are used as the verification set, based on the difference between the predicted value and the actual value of the crack sample label value in the verification set as the prediction error of the verification set; based on the prediction error when all crack samples in the training set are used as the verification set in sequence, calculate the root mean square error of the azimuth and the size;
[0149] The distribution diagram construction unit is used to obtain a prediction error distribution diagram with the azimuth as the horizontal coordinate and the root mean square error of the size as the vertical coordinate.
[0150] Among them, the initial crack parameter regression prediction model is used to predict the label values of crack samples in the verification set.
[0151] Further preferably, the method for performing metric optimization on the area to be optimized comprises the following steps:
[0152] The root mean square error of the initial crack parameter regression prediction model when all crack samples in the region are used as validation sets in turn is used as the optimization target;
[0153] Determine the search range and search step size for the SSIM distance control brightness, contrast and structure parameters;
[0154] The root mean square error of the control brightness, contrast and structural parameter combinations of all SSIM distances in the search space is calculated. When the root mean square error takes the minimum value, the control brightness, contrast and structural parameter combination corresponding to the SSIM distance is the optimal SSIM distance in the region.
[0155] The present invention adopts ultrasonic phased array and related software to extract the scattering matrix of crack defects as feature vectors from full matrix data. Compared with other ultrasonic nondestructive testing methods, more useful information related to crack parameters can be obtained. When constructing the final crack regression prediction model, the present invention uses the scattering matrix of the crack sample as the feature vector, and the parameters of the crack sample as the label value to construct a scattering matrix database, and trains the initial crack parameter regression prediction model. It can accurately characterize cracks with a size greater than 0.4λ, which is superior to other ultrasonic nondestructive testing technologies.
[0156] Based on the construction of the initial crack parameter regression prediction model, the present invention constructs a prediction error distribution map by performing a leave-one-out cross-validation method on the training set, and then divides the parameter space of the crack into regions according to the prediction distribution map, uses the SSIM distance as the scattering matrix metric, and performs local metric optimization on different regions in the parameter space to improve the characterization accuracy of the model for large azimuth cracks.
[0157] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A crack characterization method based on ultrasonic phased array, characterized in that: The following steps are involved: Combine the crack to be detected with the calibration sample, collect the full matrix data and extract the scattering matrix of the crack for amplitude calibration; Inputting the calibrated scattering matrix into the initial crack parameter regression prediction model to obtain the azimuth of the crack; wherein the crack parameters include the azimuth and size of the crack; Based on the azimuth angle, it is determined whether the crack parameter is in the area to be optimized. If it is in the area to be optimized, the optimal SSIM distance parameter corresponding to the area to be optimized is selected in the final crack parameter regression prediction model, and the crack size is output. Otherwise, the crack size is directly output. The method for determining the final crack parameter regression prediction model includes the following steps: According to the acoustic performance parameters of the material under test and the ultrasonic phased array measurement configuration parameters, the finite element simulation method is used to simulate the scattering matrix of cracks with different parameters, and a scattering matrix database is constructed with the scattering matrix of the crack sample as the feature vector and the parameters of the crack sample as the label value; Using the scattering matrix database as a training set, an initial crack parameter regression prediction model is constructed using SSIM distance as a scattering matrix metric; wherein the SSIM distance parameter includes parameters for adjusting brightness, contrast and structure; the SSIM distance parameters of the initial crack parameter regression prediction model are all set to 1; The training set is cross-validated using the leave-one-out method, and the crack parameter regression prediction model is used to predict the label values of all crack samples when they are used as the validation set in turn. The prediction error of the crack sample label value is calculated, and a prediction error distribution diagram is constructed. Based on the prediction error distribution diagram, the crack parameter space is constructed with the azimuth as the horizontal coordinate and the size as the vertical coordinate, and the crack parameter space is divided into regions based on the root mean square error degree of the crack sample size; The grid search method is used to perform metric optimization on the optimized area to obtain the final crack parameter regression prediction model corresponding to different SSIM distance parameters in different areas.
2. The crack characterization method according to claim 1, characterized in that: The acoustic performance parameters of the material under test include the density, sound velocity, Young's modulus and Poisson's ratio of the material under test; the ultrasonic phased array measurement configuration parameters include: phased array probe size, number of array elements, center frequency and array element spacing.
3. The crack characterization method according to claim 1 or 2, characterized in that: The method for constructing the initial crack parameter regression prediction model comprises the following steps: Select a crack sample outside the training set as a test sample; The SSIM distance is used to calculate the distance between the scattering matrix of the test sample and the characteristic vectors of all crack samples in the training set; According to the distance between the test sample and the feature vectors of all crack samples in the training set, the Gaussian kernel function is used to calculate the weight coefficient of the label value of the crack sample in the training set; The label value of the test sample is calculated based on the weighted coefficient of the label value of the crack sample in the training set and the label value of the crack sample in the training set.
4. The crack characterization method according to claim 3, characterized in that: The method for constructing a prediction error distribution map comprises the following steps: Each crack sample in the training set is used as a validation set in turn; Using the initial crack parameter regression prediction model, predicting the label value of the crack sample in the validation set; The difference between the predicted value and the actual value of the crack sample label value in the validation set is used as the prediction error of the validation set, and the prediction error when all crack samples in the training set are used as the validation set in turn is calculated; Based on the prediction errors of all crack samples in the training set when they are used as validation sets in turn, the root mean square errors of the azimuth and size are calculated; With the azimuth angle as the horizontal coordinate and the root mean square error of the size as the vertical coordinate, the prediction error distribution diagram is obtained.
5. The crack characterization method according to claim 4, characterized in that: The method for metric optimization of the area to be optimized comprises the following steps: The root mean square error of the initial crack parameter regression prediction model when all crack samples in the region are used as validation sets in turn is used as the optimization target; Determine the search range and search step size for the SSIM distance control brightness, contrast and structure parameters; The root mean square error of the control brightness, contrast and structural parameter combinations of all SSIM distances in the search space is calculated. When the root mean square error takes the minimum value, the control brightness, contrast and structural parameter combination corresponding to the SSIM distance is the optimal SSIM distance in the region.
6. A crack characterization device based on ultrasonic phased array, characterized in that: include: Ultrasonic phased array imaging system, used to combine the crack to be detected with the calibration sample, collect full matrix data and output the scattering matrix of the crack; An amplitude calibration system is used to calibrate the amplitude of the scattering matrix corresponding to the crack to be detected by comparing the scattering matrix corresponding to the crack to be detected with the scattering matrix corresponding to the calibration sample; A crack parameter prediction system, which is internally provided with a crack parameter regression prediction model, is used to input the calibrated scattering matrix into the initial crack parameter regression prediction model, obtain the azimuth of the crack, and output the size of the crack when the crack parameter is not in the area to be optimized; and is used to select the optimal SSIM distance parameter corresponding to the area to be optimized in the final crack parameter regression prediction model when the crack parameter is in the area to be optimized, and output the size of the crack; wherein the crack parameters include the azimuth and size of the crack; the crack parameter regression prediction model includes the initial crack parameter regression prediction model and the final crack parameter regression prediction model; A judgment system, used to judge whether the crack parameters are in the area to be optimized based on the azimuth; Predictive model building system, including: The scattering matrix database establishment module is used to simulate the scattering matrix of cracks with different parameters using the finite element simulation method according to the acoustic performance parameters of the material under test and the ultrasonic phased array measurement configuration parameters, and to construct a scattering matrix database with the scattering matrix of the crack sample as the feature vector and the parameters of the crack sample as the label value; A construction module of an initial crack parameter regression prediction model is used to construct an initial crack parameter regression prediction model using a scattering matrix database as a training set and using SSIM distance as a scattering matrix metric; wherein the SSIM distance parameter includes parameters for adjusting brightness, contrast and structure; and the SSIM distance parameters of the initial crack parameter regression prediction model are all set to 1; The prediction error distribution map construction module is used to perform leave-one-out cross-validation on the training set, use the crack parameter regression prediction model to predict the label values of all crack samples when they are taken as the validation set in turn, calculate the prediction error of the crack sample label value, and construct the prediction error distribution map; the parameter space region division module is used to construct the crack parameter space based on the prediction error distribution map, with the azimuth as the horizontal coordinate and the size as the vertical coordinate, and divide the crack parameter space into regions based on the root mean square error degree of the crack sample size; The optimization module of the crack parameter regression prediction model is used to perform metric optimization on the optimization area using a grid search method to obtain the final crack parameter regression prediction model corresponding to different SSIM distance parameters in different areas.
7. The crack characterization device according to claim 6, characterized in that: The acoustic performance parameters of the material under test include the density, sound velocity, Young's modulus and Poisson's ratio of the material under test; the ultrasonic phased array measurement configuration parameters include: phased array probe size, number of array elements, center frequency and array element spacing.
8. The crack characterization device according to claim 6 or 7, characterized in that: The construction module of the initial crack parameter regression prediction model includes an SSIM distance calculation unit, a weighted coefficient calculation unit and a label value calculation unit; The SSIM distance calculation unit is used to calculate the distance between the scattering matrix of the test sample and the feature vectors of all remaining crack samples in the training set using the SSIM distance; The weight coefficient calculation unit is used to calculate the weight coefficient of the label value of the crack sample in the training set using a Gaussian kernel function according to the distance between the test sample and the feature vectors of all crack samples in the training set; The label value calculation unit is used to calculate the label value of the test sample based on the weighted coefficient of the label value of the crack sample in the training set and the label value of the crack sample in the training set; Among them, the test sample is a crack sample outside the training set.
9. The crack characterization device according to claim 8, characterized in that: The forecast error distribution map building block includes: A screening unit is used to take each crack sample in the training set as a validation set in turn; A prediction error calculation unit is used to calculate the prediction error when all crack samples in the training set are used as the verification set, based on the difference between the predicted value and the actual value of the crack sample label value in the verification set as the prediction error of the verification set; based on the prediction error when all crack samples in the training set are used as the verification set in sequence, calculate the root mean square error of the azimuth and the size; A distribution map construction unit, used to obtain a prediction error distribution map with the azimuth as the horizontal coordinate and the root mean square error of the size as the vertical coordinate; Among them, the initial crack parameter regression prediction model is used to predict the label values of crack samples in the verification set.
10. The crack characterization device according to claim 9, characterized in that: The method for metric optimization of the area to be optimized comprises the following steps: The root mean square error of the initial crack parameter regression prediction model when all crack samples in the region are used as validation sets in turn is used as the optimization target; Determine the search range and search step size for the SSIM distance control brightness, contrast and structure parameters; The root mean square error of the control brightness, contrast and structural parameter combinations of all SSIM distances in the search space is calculated. When the root mean square error takes the minimum value, the control brightness, contrast and structural parameter combination corresponding to the SSIM distance is the optimal SSIM distance in the region.
Citation Information
Patent Citations
Ultrasonic scattering coefficient optimal computation method for crack direction recognition
CN104280455A
Support vector machine based automatic focusing method of ultrasonic phased arrays of ring welds
CN106841390A
Hybrid fatigue crack growth prediction method
KR102296871B1
