Three-dimensional irregular defect contour reconstruction method based on improved trust region projection algorithm
By improving the trust region projection algorithm and the unit magnetic dipole strip superposition model, combined with the cuckoo search algorithm, the problem of large computational complexity and low accuracy in the reconstruction of three-dimensional irregular defects in the existing technology has been solved, and efficient and accurate irregular defect reconstruction has been achieved. Defect reconstruction.
Patent Information
- Application Number
- CN202111254085.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing magnetic flux leakage detection technology requires a large amount of calculation and low accuracy in the reconstruction of three-dimensional irregular defects. It cannot effectively handle irregular defects, has poor robustness to noise, and cannot meet actual needs.
A three-dimensional irregular defect contour reconstruction method based on an improved trust region projection algorithm is adopted. The magnetic charge density is calculated through the unit magnetic dipole strip superposition model and the cuckoo search algorithm, and the trust region projection operator is combined for iterative updates to reduce the number of reconstruction iterations. , improve accuracy.
It improves the signal estimation accuracy, reduces the calculation time, achieves accurate reconstruction of irregular defects, reduces the calculation cost, and improves the reconstruction speed and accuracy.
Smart Images

Figure CN114049428B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of nondestructive testing, and in particular to a three-dimensional irregular defect contour reconstruction method based on an improved trust region projection algorithm. Background Art
[0002] Magnetic flux leakage detection technology is a commonly used nondestructive detection technology for damage defects in ferromagnetic materials. It has been widely used in power equipment, high-speed rail transportation, petrochemical and other fields, showing unique advantages and broad development prospects. Generally, in order to maintain the normal operation of power equipment, it is necessary to conduct nondestructive testing of the equipment regularly to assess its health status. Due to the complex nonlinear relationship between defects and magnetic flux leakage signals, existing magnetic flux leakage detection and defect reconstruction algorithms generally have problems such as large computational complexity and low reconstruction accuracy.
[0003] Among the existing related solutions, the forward models of magnetic flux leakage detection signals mainly include finite element models, analytical models and heuristic models. Among them, although the finite element forward model can provide accurate calculation results, it requires expensive calculation costs. The analytical model takes a shorter calculation time, but the calculation results obtained may be poor. The heuristic model generally targets regular shape defects and needs to rely on a large amount of training data. The three-dimensional defect contour reconstruction problem is usually solved by mapping method, iteration method and image processing method. For example, the finite element model and genetic taboo search algorithm are used to update the three-dimensional defect contour. Although the defect contour can be accurately reconstructed to a certain extent and it has certain robustness to noise, the calculation amount is too large. In addition, there is also the use of multivariate least squares support vector machine algorithm to predict the three-dimensional defect contour. Although this method can accurately reconstruct the contour of a class of three-dimensional defects, it only reconstructs the regular defect contour and cannot meet the requirements of irregular defect reconstruction. Using the radial component of the magnetic flux leakage signal for high-precision defect recognition is also a common method, but this method cannot guarantee that the complete defect opening contour can be obtained every time during imaging. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a three-dimensional irregular defect contour reconstruction method based on an improved trust region projection algorithm. This method does not require a large amount of leakage magnetic detection data, has high efficiency, and is conducive to improving the reconstruction speed and accuracy of irregular defects.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A three-dimensional irregular defect contour reconstruction method based on an improved trust region projection algorithm comprises the following steps:
[0007] S1: Obtain a ferromagnetic material specimen to be tested, use a cuckoo search algorithm to calculate the magnetic charge density of the detection area, and then obtain the magnetic charge density distribution; specifically:
[0008] A known three-dimensional defect and its magnetic flux leakage detection signal are used to determine the depth matrix and signal matrix of the detection area of the ferromagnetic material specimen to be tested. The target area to be solved is defined using the depth matrix, and then it is divided into N rectangular slot unit magnetic dipole bands. The signals of the N unit magnetic dipole bands at the sampling points are superimposed to obtain the magnetic flux leakage detection signal of the target area; the ferromagnetic material specimen to be tested is saturated magnetized, and the superposition model is used to obtain the magnetic flux density at any point on the sampling plane; the real signal of the three-dimensional defect and the magnetic flux density at any point on the sampling plane are used to obtain the magnetic charge distribution.
[0009] S2: Based on the magnetic dipole principle of magnetic flux leakage detection, a unit magnetic dipole band superposition model is constructed using the magnetic charge density distribution as a forward model for magnetic flux leakage detection, and the magnetic flux leakage detection estimation signal of three-dimensional irregular defects is obtained, thereby obtaining the estimated value of the leakage magnetic field; the specific steps include:
[0010] 201) Determine the sampling point position and lift-off value height of the defect leakage magnetic flux detection, and thereby determine the unit magnetic dipole band model of the sampling point leakage magnetic flux detection signal, that is, the forward model is:
[0011]
[0012] In the formula, B z (c i ) is any point c on the sampling plane i The magnetic flux density at the point; N is the total number of unit magnetic dipole bands; V j is the volume of the j-th unit magnetic dipole strip; z i ,z j are sampling points c i and magnetic dipole bands j The radial coordinate of |c i -s j | for s j to c i The distance between j is the charge density distribution of the jth magnetic dipole band; μ0 is the magnetic permeability of air;
[0013] 202) First, assume that the magnetic charge density of all magnetic dipole bands is the same constant, select sampling points to directly calculate this constant, and use this constant as the initial value of the iterative solution of the magnetic charge density; set the relevant parameters of the cuckoo search algorithm and pre-set the correlation coefficient threshold;
[0014] 203) Substituting the initial magnetic charge matrix into the unit magnetic dipole band superposition model, obtaining the leakage magnetic estimation signal, and calculating the correlation coefficient with the real signal, taking the correlation coefficient as the iteration target;
[0015] 204) if the calculated correlation coefficient is greater than a preset threshold, the current solution is updated using a cuckoo search algorithm, and the correlation coefficient between the leakage magnetic field estimation signal and the leakage magnetic field real signal is calculated again using the unit magnetic dipole band superposition model;
[0016] 205) If the correlation coefficient between the calculated leakage magnetic field estimate and the true value of the leakage magnetic field is less than or equal to a preset threshold, the current result is used as the magnetic charge density matrix of the specimen, and a unit magnetic dipole band superposition model is constructed as a forward model.
[0017] S3: Compare the estimated signal of the defect with the real signal to obtain the sampling area of defect reconstruction; the specific steps include:
[0018] 301) Initialize the estimated contour of the three-dimensional defect, calculate the estimated signal using the forward model, and determine the current solution x through the real signal k Is it a stable solution?
[0019] 302) If x k If it is a stable solution, the algorithm stops; otherwise, the LM step size improved by the simple projection operator is calculated.
[0020]
[0021]
[0022] In the formula, Δ k is an integer given at each iteration; P Ω is a simple projection operator; J k F k The Jacobian matrix, J k = J(x k ),F k =F(x k );
[0023] 303) Use the negative gradient direction of the affine transformation matrix D to improve the step length and obtain the step length coefficient:
[0024]
[0025] Get the corrected step size:
[0026]
[0027] 304) Based on the idea of the trust region algorithm, the ratio of the actual decrease in the error objective function to the estimated decrease is calculated:
[0028]
[0029] If r k >ρ0, then update x k+1 =x k +d k , otherwise x k+1 =x k ;
[0030] 305) According to the ratio r k The trust region radius is updated using the trust region method, the number of iterations is increased by 1, and the process returns to step 302).
[0031] S4: The unit magnetic dipole band superposition model is used as the forward model for defect leakage detection, and the defect contour of three-dimensional irregular defects is reconstructed in combination with the improved trust region projection algorithm.
[0032] S5: Output a three-dimensional defect contour that is close to the actual defect.
[0033] Furthermore, S4 also includes an optimization processing step:
[0034] If a stable solution is finally obtained or the maximum number of iterations is reached, the three-dimensional defect contour is output, and its depth matrix is smoothly interpolated to obtain the final three-dimensional defect contour.
[0035] The three-dimensional irregular defect contour reconstruction method based on the improved trust region projection algorithm provided by the present invention has at least the following beneficial effects compared with the prior art:
[0036] 1. The present invention uses a unit magnetic dipole band superposition model to perform forward calculation of magnetic flux leakage signals, removes the influence of magnetic field edge effects, improves signal estimation accuracy, and saves forward calculation time;
[0037] 2. The present invention utilizes a projection operator to handle the boundary constraint problem of defect reconstruction and performs projection correction on the iterative update step size, thereby reducing the number of reconstruction iterations and improving reconstruction accuracy. Compared with conventional heuristic algorithms and mapping methods of regular defects, the reconstruction result accuracy of the present invention is significantly improved, and accurate reconstruction of irregular defects can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a method for reconstructing a three-dimensional irregular defect contour based on an improved trust region projection algorithm in an embodiment;
[0039] Figure 2This is a flow chart of solving the magnetic charge density matrix when constructing a unit magnetic dipole band superposition model according to the present invention in an embodiment;
[0040] Figure 3 Schematic diagram of actual outlines of three different groove-shaped three-dimensional irregular defects in the embodiment;
[0041] Figure 4 The method of the present invention is used in the embodiment to obtain Figure 3 Estimated contour reconstruction results of three different groove-shaped 3D irregular defects;
[0042] Figure 5 Schematic diagrams of actual contours of different crack defects in the embodiments, wherein sub-image (a) is a crack defect with a depth of 2 mm, and sub-image (b) is a crack defect with a depth of 6 mm;
[0043] Figure 6 The comparison result of the estimated signal of the crack defect obtained by using the unit magnetic dipole band superposition model and the real signal in the data set in the embodiment;
[0044] Figure 7 The method of the present invention is used in the embodiment to obtain Figure 5 The defect reconstruction result diagram in the figure, where sub-image (a) is the estimated contour result of the crack defect with a depth of 2 mm, and sub-image (b) is the estimated contour result of the crack defect with a depth of 6 mm. DETAILED DESCRIPTION
[0045] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention.
[0046] Example
[0047] The present invention relates to a method for reconstructing the contour of a three-dimensional irregular defect based on an improved trust region projection algorithm. The method mainly includes three parts: firstly, a cuckoo search algorithm is used to solve the magnetic charge density of a ferromagnetic material specimen, thereby constructing a unit magnetic dipole band superposition model as a forward model for magnetic flux leakage detection, secondly, a signal acquisition area is selected according to the error of the estimated signal, and finally, the three-dimensional defect contour is reconstructed by combining the unit magnetic dipole band superposition model and the improved projection trust region algorithm. The defect reconstruction method of an embodiment of the present invention is described below in conjunction with the accompanying drawings.
[0048] Figure 1 1 is a flowchart of a method for reconstructing a three-dimensional irregular defect contour based on an improved trust region projection algorithm provided by an embodiment of the present invention. Figure 1, the method specifically comprises the following steps:
[0049] Step 1: Provide a ferromagnetic test piece to be tested, the thickness of the test piece is 10 mm, and the maximum depth of the three-dimensional defect does not exceed 80% of the wall thickness.
[0050] Step 2: Saturate the specimen and use a known three-dimensional defect and its magnetic flux leakage detection signal to solve the magnetic charge distribution of the specimen.
[0051] In order to achieve the reconstruction of three-dimensional irregular defects, the present invention proposes a unit magnetic dipole band superposition model. The model uses a depth matrix to define the target region (Region of interest, ROI) to be solved, and then divides it into N rectangular slot unit magnetic dipole bands, and superimposes the signals of the N unit magnetic dipole bands at the sampling points to obtain the leakage magnetic detection signal of the ROI. However, considering the nonlinear characteristics of ferromagnetic materials, it is necessary to solve the magnetic charge distribution of each unit magnetic dipole band in order to obtain an accurate irregular defect leakage magnetic signal.
[0052] The permanent magnet magnetizes the ferromagnetic specimen along the axial direction with the magnetization intensity. The depth matrix of the ROI is d, and the lift-off value of the magnetic leakage signal sampling plane is h. Using the superposition model, any point c on the sampling plane is i The magnetic flux density at .
[0053]
[0054] Among them, B z (c i ) is any point c on the sampling plane i The magnetic flux density at the point; N is the total number of unit magnetic dipole strips; V j is the volume of the jth unit magnetic dipole strip; z i ,z j They are sampling points c i and magnetic dipole bands j The radial coordinate of |c i -s j | for s j to c i The distance between j is the charge density distribution of the jth magnetic dipole band; μ0 is the magnetic permeability of air.
[0055] The irregular three-dimensional defect leakage signal is obtained by using the finite element model and is taken as the real signal. The above formula can be used to calculate the magnetic charge distribution. However, the number of magnetic dipole bands N is generally not equal to the total number of sampled signals, so the above formula cannot be solved directly. The present invention uses the cuckoo search algorithm to calculate the magnetic charge distribution matrix δ of the unit magnetic dipole band superposition model. s Optimize and solve. The specific steps are as follows:
[0056] 1) Initialize the magnetic charge density of the material;
[0057] 2) Calculate B using the unit magnetic dipole band superposition model and calculate the fitness function value;
[0058] 3) If the maximum number of iterations is reached, the iteration is stopped and the estimated charge distribution δ is output s , terminate the iterative algorithm; otherwise go to step 4);
[0059] 4) Use the cuckoo search algorithm to estimate the magnetic charge density δ s Update and return to step 2).
[0060] Figure 2 It is a flow chart of solving the magnetic charge distribution of a unit magnetic dipole band superposition model according to an embodiment of the present invention.
[0061] Furthermore, step 2 specifically includes:
[0062] 2.1) Determine the sampling point position and lift-off value height of defect leakage magnetic flux detection. In this embodiment, the sampling interval is 1 mm, and the lift-off value is 2.5 mm. Based on this, the unit magnetic dipole band model of the sampling point leakage magnetic flux detection signal, i.e., the forward model, is determined as follows:
[0063]
[0064] Among them, B z (c i ) is any point c on the sampling plane i The magnetic flux density at the point; N is the total number of unit magnetic dipole strips; V j is the volume of the jth unit magnetic dipole strip; z i ,z j They are sampling points c i and magnetic dipole bands j The radial coordinate of |c i -s j | for s j to c i The distance between j is the charge density distribution of the jth magnetic dipole band; μ0 is the magnetic permeability of air.
[0065] 2.2) First, assume that the magnetic charge density of all magnetic dipole bands is the same constant, select sampling points to directly calculate this constant, and use this constant as the initial value of the iterative solution of the magnetic charge density. Set the relevant parameters of the cuckoo search algorithm such as the number of bird nests, the probability Pa of the host finding the cuckoo egg and throwing it out, the step control amount a, etc., and pre-set the correlation coefficient threshold.
[0066] 2.3) Substitute the initial magnetic charge matrix into the unit magnetic dipole band superposition model to obtain the leakage magnetic detection estimation signal, and calculate the correlation coefficient with the leakage magnetic real signal, and use the correlation coefficient as the iteration target.
[0067] 2.4) If the calculated correlation coefficient is greater than a preset threshold, the current solution is updated using the cuckoo search algorithm, the unit magnetic dipole band superposition model is re-used to calculate the estimated signal, and its correlation coefficient with the true signal of the leakage magnetic field is calculated.
[0068] 2.5) If the correlation coefficient is less than or equal to a preset threshold, the current result is used as the magnetic charge density matrix of the specimen, and a unit magnetic dipole band superposition model is constructed as a forward model.
[0069] Step 3: Use the constructed unit magnetic dipole band superposition model to calculate the estimated error of the signal on the defect sampling plane, remove the sampling points with large errors caused by the edge effect of the magnetic field, and select a suitable signal acquisition area (select the area with smaller error as the sampling area for defect reconstruction) as the signal sampling point of the defect reconstruction process.
[0070] Furthermore, the estimation error in the middle area of the sampling plane is small, mostly within 20%, so the defect leakage signal of the signal region (Region of signal, ROS) in the figure with an error less than 20% is selected as the sampling area for 3D defect reconstruction.
[0071] Step 4: Use the unit magnetic dipole band superposition model as the forward model for defect magnetic leakage detection, and use the improved trust region projection algorithm. Figure 3 The three-dimensional irregular defects were reconstructed.
[0072] In general, if F is a given continuously differentiable map, Ω is an n-dimensional space: Ω = {x∈R n}, solving the numerical solution of the nonlinear equation system F(x) = 0, x∈Ω can be regarded as a least squares problem. Since the three-dimensional defect contour reconstruction problem is usually ill-posed, the Gauss-Newton algorithm is not suitable for solving such problems, and LM regularization correction is required. The basic idea of the trust region algorithm is to set the trial step size d k Restricted to the trust region radius, that is, an integer Δ is given at each iteration k , and requires a trial step length of d k Satisfy ||d k ||≤Δ k . Solve an approximation problem of the original objective function in the trust region, and the solution obtained is used as a trial step, which is called a subproblem. In general, the trust region subproblem of the least squares unconstrained optimization problem can be defined as the function m k (d):
[0073]
[0074] Among them, J k F k The Jacobian matrix of the subproblem, d is the step size of the trust region subproblem, J k = J(x k ),F k =F(x k ), and Δ k >0 is the trust region radius of the current iteration. k is the solution to the above subproblem, then the ratio of the actual decrease in the error objective function to the estimated decrease is:
[0075]
[0076] r k x k+1 The selection and Δ k+1 The production of plays a key role. k The larger the value, the more the objective function decreases. The new iteration point x k +d k The better, so x k+1 Update to x k +d k , and Δ k+1 You can also consider expanding. Otherwise k The smaller the r k <0, then x k+1 Should still be x k , trust region radius Δ k+1 It should also be appropriately reduced.
[0077] When using the above unconstrained trust region method for 3D defect reconstruction, it is also necessary to consider the boundary constraints in the actual problem. Among them, the boundary constraints that the depth parameters need to satisfy during defect reconstruction, that is, x∈[0,a), should be processed. After calculation, if only the traditional simple projection operator P is used Ω Dealing with such boundary constraints will cause larger errors in the reconstruction results.
[0078]
[0079] To solve the above boundary constraint problem, the Coleman-Li affine transformation matrix D is used to improve the projection step size, and each iteration point is located in the constraint area, and the unconstrained LM step size is reduced to Corrected to projected Levenberg-Marquart (LM) step size In summary, the algorithm combines the trust region technique with the projected LM step size to ensure the effectiveness of the algorithm and improve the speed and efficiency of the algorithm. Further, step 4 includes:
[0080] 4.1) Initialize the estimated contour of the 3D defect, calculate the estimated signal using the forward model, and determine the current solution x using the real signal k Is it a stable solution?
[0081] 4.2) If it is a stable solution, stop the algorithm; otherwise, calculate the LM step size improved by using a simple projection operator
[0082]
[0083]
[0084] In the formula, Δ k is an integer given at each iteration.
[0085] 4.3) To ensure that the algorithm converges and speed up the convergence of the algorithm, the gradient direction g of the affine transformation matrix D is used k Calculate the Cauchy step length Then calculate the step size coefficient t k :
[0086]
[0087] Using the Cauchy step size and step size coefficient t k Get the corrected step length d k :
[0088]
[0089] 4.4) Based on the idea of the trust region algorithm, the ratio of the actual decrease in the error objective function to the estimated decrease is calculated:
[0090]
[0091] If r k >ρ0,ρ0∈(0,1), then update x k+1 =x k +d k , otherwise x k+1 =x k .
[0092] 4.5) According to the ratio r k The value of is updated, the trust region radius is updated using the trust region method, the number of iterations is increased by 1, and the process returns to step 4.5).
[0093] Step 5: If a stable solution is finally obtained or the maximum number of iterations is reached, the three-dimensional defect contour is output, and a three-dimensional defect contour close to the real defect can be obtained by performing a certain smoothing interpolation process on the obtained depth matrix result.
[0094] Finally, to quantify the reconstructed estimated defect contour d i p With real outline The relative error between them defines the reconstruction error E r and the maximum depth error of three-dimensional defects ε MDE for:
[0095]
[0096]
[0097] Where, d i p To estimate the contour, is the actual profile, and a is the thickness of the ferromagnetic material.
[0098] like Figure 3 The three irregular groove defects shown in FIG. 1 are respectively subjected to defect reconstruction calculation using the method proposed in the present invention, as shown in FIG. Figure 4 The reconstructed contour is shown, and the reconstruction error can be controlled within 10%.
[0099] In addition, if Figure 5 The actual profile of the crack defect shown (including crack defects with depths of 2 mm and 6 mm, respectively) is obtained using the leakage magnetic detection measured data for the crack defect with different velocity effects, and the measured data is obtained using a leakage magnetic detection device. The magnetic leakage detection device used in the experiment consists of three two-wheel magnetizers, a digital encoder and a measurement module. Each magnetizer consists of two neodymium magnets to magnetize the steel plate. The digital encoder provides displacement information of the leakage magnetic device, and thus also provides its speed information. The measurement module consists of ten units, each of which contains a linear Hall effect sensor A1324 for measuring the leakage magnetic signal. After preliminary leakage magnetic signal processing, the forward modeling method proposed in the present invention is first used to calculate the forward model of the crack defect to verify the effectiveness of the forward modeling model. The signal comparison between the two is as follows. Figure 6 shown. Figure 6 The results in the figure verify that the forward model is also applicable to the measured signal of magnetic flux leakage with velocity effect. Then the defect reconstruction is performed using the method proposed in the present invention for the measured signal. The reconstruction result is shown in Figure 7 As shown. Figure 7It can be seen that for the measured data, the method proposed in the present invention can also well approximate the real contour of the crack defect. As shown in Table 1, the experimental data show that the error of the three-dimensional irregular defect contour reconstruction method based on the improved trust region projection algorithm in the embodiment of the present invention can be effectively controlled, and the calculation cost is significantly reduced compared with the heuristic algorithm. Based on the above results, the method of the embodiment of the present invention can effectively realize the contour reconstruction of various irregular shape defects, and has good stability, high reconstruction accuracy, and fast calculation speed, which can meet the actual requirements.
[0100] Table 1 Reconstruction error of defect contour
[0101]
[0102] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A three-dimensional irregular defect contour reconstruction method based on an improved trust region projection algorithm, characterized in that: The following steps are involved: 1) Obtain a ferromagnetic material specimen to be tested, use a cuckoo search algorithm to calculate the magnetic charge density of the detection area, and then obtain the magnetic charge density distribution; 2) Based on the magnetic dipole principle of magnetic flux leakage detection, a unit magnetic dipole band superposition model is constructed using the magnetic charge density distribution as a forward model for magnetic flux leakage detection to obtain the magnetic flux leakage detection estimation signal of three-dimensional irregular defects, and then obtain the leakage magnetic field estimation value; 3) Compare the estimated signal of the defect with the real signal to obtain the sampling area of the defect reconstruction; 4) The unit magnetic dipole band superposition model is used as the forward model for defect leakage detection, and the defect contour of three-dimensional irregular defects is reconstructed in combination with the improved trust region projection algorithm; 5) Output 3D defect contour close to the real defect; The specific contents of step 1) include: Using a known three-dimensional defect and its magnetic flux leakage detection signal, the depth matrix and signal matrix of the detection area of the ferromagnetic material specimen to be tested are determined, the target area to be solved is defined by using the depth matrix, and then it is divided into N rectangular slot unit magnetic dipole bands, and the signals of the N unit magnetic dipole bands at the sampling points are superimposed to obtain the magnetic flux leakage detection signal of the target area; the ferromagnetic material specimen to be tested is saturated magnetized, and the magnetic flux density at any point on the sampling plane is obtained by using the superposition model; the magnetic charge distribution is obtained by using the real signal of the three-dimensional defect and the magnetic flux density at any point on the sampling plane; The specific steps of step 2) include: 201) Determine the sampling point position and lift-off value height of the defect leakage magnetic flux detection, and thereby determine the unit magnetic dipole band model of the sampling point leakage magnetic flux detection signal. The forward model is: In the formula, B z (c i ) is any point c on the sampling plane i The magnetic flux density at the point; N is the total number of unit magnetic dipole bands; V j is the volume of the j-th unit magnetic dipole strip; z i ,z j are sampling points c i and magnetic dipole bands j The radial coordinate of |c i -s j | for s j to c i The distance between j is the charge density distribution of the jth magnetic dipole band; μ0 is the magnetic permeability of air; 202) First, assume that the magnetic charge density of all magnetic dipole bands is the same constant, select sampling points to directly calculate this constant, and use this constant as the initial value of the iterative solution of the magnetic charge density; set the relevant parameters of the cuckoo search algorithm and pre-set the correlation coefficient threshold; 203) Substituting the initial magnetic charge matrix into the unit magnetic dipole band superposition model, obtaining the leakage magnetic estimation signal, and calculating the correlation coefficient with the real signal, taking the correlation coefficient as the iteration target; 204) if the calculated correlation coefficient is greater than a preset threshold, the current solution is updated using a cuckoo search algorithm, and the correlation coefficient between the leakage magnetic field estimation signal and the leakage magnetic field real signal is calculated again using the unit magnetic dipole band superposition model; 205) If the correlation coefficient between the calculated leakage magnetic field estimate and the true value of the leakage magnetic field is less than or equal to a preset threshold, the current result is used as the magnetic charge density matrix of the specimen, and a unit magnetic dipole band superposition model is constructed as a forward model; The specific steps of step 4) include: 401) Initialize the estimated contour of the three-dimensional defect, calculate the estimated signal using the forward model, and determine the current solution x through the real signal k Is it a stable solution? 402) If x k If it is a stable solution, the algorithm stops; otherwise, the LM step size improved by the simple projection operator is calculated. In the formula, Δ k is an integer given at each iteration; P Ω is a simple projection operator; J k F k The Jacobian matrix, J k = J(x k ),F k =F(x k ), is the unconstrained LM step size; 403) Use the negative gradient direction g of the affine transformation matrix D k Improve the step size to obtain the Cauchy step size and step size coefficient t k : Get the corrected step size: 404) Based on the idea of the trust region algorithm, the ratio of the actual decrease in the error objective function to the estimated decrease is calculated: If r k >ρ0, then update x k+1 =x k +d k , otherwise x k+1 =x k ; 405) According to the ratio r k The trust region radius is updated using the trust region method, the number of iterations is increased by 1, and the process returns to step 402).
2. The three-dimensional irregular defect contour reconstruction method based on the improved trust region projection algorithm according to claim 1 is characterized in that: Step 4) also includes an optimization process step: If a stable solution is finally obtained or the maximum number of iterations is reached, the three-dimensional defect contour is output, and its depth matrix is smoothly interpolated to obtain the final three-dimensional defect contour.
