X-ray based nondestructive detection method and system for internal defects of power supply equipment

Through X-ray-based multi-angle scanning and deep learning technology, combined with three-dimensional reconstruction and thermal imaging, the automatic identification and positioning of internal defects in power supply equipment is realized, solving the problems of low traditional detection efficiency and high miss detection rate, and improving the accuracy of detection. accuracy and device safety.

CN118566266BActive Publication Date: 2024-10-01CREC RAILWAY ELECTRIFICATION RAILWAY OPERATIONS MANAGEMENT +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411048069.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-01
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Traditional power supply equipment internal defect detection relies on manual periodic power outage maintenance, which has problems such as low detection efficiency, high missed detection rate, and large damage to equipment, making it difficult to ensure the safe and stable operation of equipment.

Method used

The X-ray-based non-destructive testing method is used to obtain the three-dimensional model of the power supply equipment, build a finite element simulation model, determine the optimal detection angle and path parameters, perform multi-angle X-ray scanning imaging, and combine deep learning algorithms and three-dimensional reconstruction technology. Automatically identify and locate defective areas, and further detect potential defect risks through thermal imaging technology.

Benefits of technology

It improves the reliability and accuracy of detection, reduces the error rate of manual interpretation, realizes multi-modal and all-round defect detection and risk warning, provides detailed defect location and quantitative assessment, and supports intelligent operation and maintenance of equipment. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118566266B_ABST
    Figure CN118566266B_ABST
Patent Text Reader

Abstract

The present invention provides a nondestructive detection method and system for internal defects of power supply equipment based on X-rays, which relates to the field of detection technology and is used to solve the problems of low detection efficiency, high missed detection rate and great damage to equipment in the prior art. The present invention includes: determining the optimal detection angle and detection path parameters of the power supply equipment during X-ray imaging, controlling the X-ray imaging equipment to perform multi-angle scanning imaging on the power supply equipment according to the optimal detection angle and detection path parameters, and obtaining a multi-angle X-ray image set of the power supply equipment; performing image enhancement processing on the multi-angle X-ray image set, extracting the features of the ray image, inputting the features of the ray image into a pre-constructed defect recognition model, and judging whether there is a defective area in the multi-angle X-ray image set through the defect recognition model; if there is a defective area, based on the three-dimensional model and the multi-angle X-ray image set, the three-dimensional spatial position and actual size of the defective area in the power supply equipment are determined through three-dimensional reconstruction technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to detection technology, and in particular to a nondestructive detection method and system for internal defects of power supply equipment based on X-rays. Background Art

[0002] Power supply equipment is an indispensable and important part of the power system, and its safe and stable operation is directly related to the reliability of the power grid and the quality of power supply. However, due to the influence of factors such as long-term operation, environmental erosion, and mechanical vibration, cracks, pores, inclusions and other defects are prone to occur inside the power supply equipment, which may cause equipment damage or even safety accidents in serious cases, causing huge losses and hidden dangers to the power system. Therefore, regular non-destructive testing and status assessment of power supply equipment, timely detection and diagnosis of internal defects are of great significance to ensure the safe operation of equipment and extend its service life.

[0003] Traditional internal defect detection of power supply equipment mainly relies on manual periodic power outages and visual inspections, which have problems such as low detection efficiency, high missed detection rate, and serious damage to equipment. Summary of the invention

[0004] The embodiments of the present invention provide a method and system for nondestructive detection of internal defects of power supply equipment based on X-rays, which can solve the problems in the prior art.

[0005] A first aspect of an embodiment of the present invention provides a nondestructive detection method for internal defects of a power supply device based on X-rays, comprising:

[0006] Acquire a three-dimensional model of the power supply device to be detected, construct a finite element simulation model of the power supply device according to the three-dimensional model, determine the optimal detection angle and detection path parameters of the power supply device during X-ray imaging, control the X-ray imaging device to perform multi-angle scanning and imaging on the power supply device according to the optimal detection angle and the detection path parameters, and obtain a multi-angle X-ray image set of the power supply device;

[0007] Performing image enhancement processing on the multi-angle X-ray image set, extracting radiation image features, inputting the radiation image features into a pre-built defect recognition model, and judging whether there is a defective area in the multi-angle X-ray image set by the defect recognition model, wherein the defect recognition model is built based on a deep learning algorithm; if there is a defective area, determining the three-dimensional spatial position and actual size of the defective area in the power supply device by three-dimensional reconstruction technology based on the three-dimensional model and the multi-angle X-ray image set;

[0008] If there is no defective area, further obtain a thermal imaging image of the power supply equipment, extract the temperature field distribution characteristics of the thermal imaging image, and determine whether there is an abnormal temperature area; if there is an abnormal temperature area, determine whether there is a potential defect risk inside the power supply equipment based on the position and temperature value of the abnormal temperature area, and output the potential defect risk to the defect detection report.

[0009] In an optional implementation, obtaining a three-dimensional model of a power supply device to be detected, constructing a finite element simulation model of the power supply device according to the three-dimensional model, and determining the optimal detection angle and detection path parameters of the power supply device during X-ray imaging include:

[0010] According to the three-dimensional model of the power supply device to be detected, a finite element simulation model of the power supply device is constructed, and the Monte Carlo method is used to simulate the interaction process of scattering, diffraction and absorption of X-ray photons with different energies, incident angles and polarization directions with the power supply device, so as to obtain a multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction;

[0011] Taking the imaging image signal-to-noise ratio, contrast and spatial resolution as the optimization objectives, the obtained multivariate mapping relationship is transformed into the constraint conditions of the multi-objective optimization problem, and the penalty terms of X-ray dose and scanning time are introduced to construct a multi-objective optimization model;

[0012] A multi-objective evolutionary algorithm based on Pareto frontier is used to search for the optimal combination of X-ray energy, incident angle and polarization direction in the decision variable space, obtain a set of Pareto optimal solutions, and determine the best detection angle;

[0013] Comprehensively considering the coverage and overlap rate of the detection blind area, as well as the attenuation distribution characteristics of the internal structure of the power supply equipment to be detected to the X-ray, the spatial motion path of the X-ray source and the detector is optimized to obtain adaptive detection path parameters, wherein the detection path parameters include at least one of a scanning trajectory, a scanning step length, and a scanning speed.

[0014] In an optional implementation, the imaging image signal-to-noise ratio, contrast and spatial resolution are taken as optimization targets, the obtained multivariate mapping relationship is converted into constraint conditions of a multi-objective optimization problem, and penalty terms of X-ray dose and scanning time are introduced. The construction of a multi-objective optimization model includes:

[0015] The multi-objective optimization function is as follows:

[0016] ;

[0017] ;

[0018] ;

[0019] ;

[0020] Penalties include:

[0021] ;

[0022] ;

[0023] in, SNR , CT , SR They represent signal-to-noise ratio, contrast and spatial resolution respectively, a0, b0 and c0 represent the linear coefficients corresponding to signal-to-noise ratio, contrast and spatial resolution respectively, n represents the number of imaging parameters, x i , x j denote the i-th imaging parameter and the j-th imaging parameter respectively, a ij , b ij 、c ij They represent the quadratic coefficients corresponding to the signal-to-noise ratio, contrast, and spatial resolution respectively;

[0024] P 1 (x) , P 2 (x) They represent the constraint items corresponding to the X-ray dose and the scanning time, respectively. λ1 and λ2 represent the penalty item weight coefficients corresponding to the X-ray dose and the scanning time, respectively. d 0 , t 0 represent the initial X-ray dose and initial scanning time respectively, d i , t i They represent the X-ray dose and scanning time corresponding to the i-th imaging parameter respectively.

[0025] In an optional embodiment, before inputting the radiographic image features into a pre-built defect recognition model and determining whether the multi-angle X-ray image set has a defect area by using the defect recognition model, the method further includes training the defect recognition model:

[0026] Construct training and testing datasets for defect identification;

[0027] Designing a network structure of a restricted Boltzmann machine model, including a visible layer and a plurality of stacked hidden layers, wherein the hidden layer is used to learn a hierarchical feature representation of an image, wherein the number of nodes in each hidden layer is adaptively determined according to an input image, and performing unsupervised pre-training on the restricted Boltzmann machine model by a contrastive divergence algorithm with an L1 regularization term;

[0028] A layer-by-layer greedy training strategy is adopted to sequentially feed the images in the training dataset into the pre-trained restricted Boltzmann machine model. After multiple layers of nonlinear transformation and feature extraction, high-dimensional feature representations of the images in the training dataset at different abstract levels are obtained.

[0029] With the extracted high-level features as input and the corresponding defect category labels as output, a training data set for a multi-class extreme learning machine classifier is constructed, and weight decay regularization terms and Dropout technology are introduced to prevent overfitting;

[0030] In an optional embodiment, the method further includes:

[0031] Within the value range of the number of hidden layer nodes and the activation function type of the extreme learning machine classifier, multiple groups of hidden layer parameter combinations are randomly generated, the output weights corresponding to each group of parameters are calculated at one time using the Moore-Penrose generalized inverse matrix, and then the parameter combination with the best generalization performance is selected based on the cross-validation result, so as to realize rapid optimization and training of the extreme learning machine classifier;

[0032] The X-ray image to be inspected is segmented at multiple scales by using a sliding window, and is sent to the pre-trained restricted Boltzmann machine model to extract high-level features at different abstract levels, and then input into the trained extreme learning machine classifier for defect category prediction. By integrating the prediction results of different scales and different models, the defect area of ​​the image block is pixel-level marked and segmented using a voting mechanism;

[0033] The performance of the constructed restricted Boltzmann machine-extreme learning machine defect recognition model was evaluated on the test set. The precision, recall and F1 score of each defect category, as well as the overall average accuracy and Kappa coefficient indicators were calculated. At the same time, cross-validation and McNemar test methods were used to conduct statistical performance comparison and pros and cons analysis with other classic defect recognition models.

[0034] In an optional implementation, based on the three-dimensional model and the multi-angle X-ray image set, determining the three-dimensional spatial position and actual size of the defective area in the power supply device by three-dimensional reconstruction technology includes:

[0035] Perform X-ray imaging of the target device from different angles and orientations to obtain a set of two-dimensional projection images covering all parts of the device with a certain degree of overlap between adjacent viewing angles, and record the imaging parameters of the ray source position, detector position and rotation angle corresponding to each image;

[0036] By selecting corresponding feature points in the three-dimensional model and the X-ray image set, the transformation matrix from the image to the model is calculated by using a rigid body transformation method, the two are aligned to the same coordinate system, and an optimization algorithm is used to iteratively refine the registration accuracy;

[0037] voxelize the three-dimensional model according to the imaging resolution and the model size, and discretize it into a three-dimensional voxel grid with a certain physical scale;

[0038] For each X-ray projection image, the three-dimensional coordinates of the ray source and the detector pixel points in the voxel grid are calculated according to its imaging parameters, and the voxels through which the ray passes are integrated using the principle of ray projection to obtain a simulated projection image at that viewing angle, and the degree of agreement between the current voxel model and the real structure is reflected by comparing the difference between the simulated projection and the actual image;

[0039] The defect area detected in the X-ray image is mapped to the voxel grid, the corresponding ray equation is calculated according to the coordinates of the defective pixels in the image and the imaging parameters, the rays of all viewing angles are intersected in the voxel grid to obtain the three-dimensional distribution of the defective voxels, and the independent defect area is segmented by clustering and morphological processing of the defective voxels;

[0040] According to the spatial distribution of defective voxels and the scale information of the voxel grid, the three-dimensional center coordinates of each defective area are calculated by taking weighted average of the voxel coordinates, the actual size of the defective area is estimated by calculating the bounding box or maximum inscribed ellipsoid of the voxel, and the position and size information of the defective area are visualized on the three-dimensional model.

[0041] According to a second aspect of the embodiment of the present application, a nondestructive detection system for internal defects of a power supply device based on X-rays is provided, comprising:

[0042] The first unit is used to obtain a three-dimensional model of the power supply device to be detected, construct a finite element simulation model of the power supply device according to the three-dimensional model, determine the optimal detection angle and detection path parameters of the power supply device during X-ray imaging, and control the X-ray imaging device to perform multi-angle scanning and imaging on the power supply device according to the optimal detection angle and the detection path parameters to obtain a multi-angle X-ray image set of the power supply device;

[0043] The second unit is used to perform image enhancement processing on the multi-angle X-ray image set, extract radiation image features, input the radiation image features into a pre-built defect recognition model, and determine whether there is a defective area in the multi-angle X-ray image set through the defect recognition model, wherein the defect recognition model is built based on a deep learning algorithm; if there is a defective area, the three-dimensional spatial position and actual size of the defective area in the power supply device are determined based on the three-dimensional model and the multi-angle X-ray image set through a three-dimensional reconstruction technology;

[0044] The third unit is used to further obtain a thermal imaging image of the power supply device if there is no defective area, extract the temperature field distribution characteristics of the thermal imaging image, and determine whether there is an abnormal temperature area; if there is an abnormal temperature area, determine whether there is a potential defect risk inside the power supply device based on the position and temperature value of the abnormal temperature area, and output the potential defect risk to the defect detection report.

[0045] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0046] processor;

[0047] a memory for storing processor-executable instructions;

[0048] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0049] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described above is implemented.

[0050] Beneficial effects of the present invention:

[0051] (1) By acquiring a three-dimensional model of the power supply equipment and constructing a finite element simulation model, the present invention can accurately determine the optimal detection angle and detection path parameters during X-ray imaging, avoid missed detection or false detection problems caused by unreasonable detection angles and paths, and improve the reliability and accuracy of detection. By adopting a multi-angle X-ray scanning imaging method, the image information of the internal structure of the power supply equipment can be fully obtained, overcoming the limitations of single-angle imaging, and providing sufficient data support for subsequent defect identification and positioning.

[0052] (2) The present invention introduces a defect recognition model based on deep learning. By intelligently analyzing and judging a multi-angle X-ray image set, the defect area in the image can be automatically, quickly and accurately identified, greatly improving the efficiency of defect detection and reducing the error rate of manual interpretation. Combining the three-dimensional model of the power supply equipment and the multi-angle X-ray image set, the three-dimensional reconstruction technology is used to determine the spatial position and actual size of the defect area, realize the accurate positioning and quantitative evaluation of the defect, and provide a reliable basis for subsequent defect analysis, risk assessment and maintenance decision-making.

[0053] (3) Based on X-ray imaging detection, the present invention further introduces thermal imaging technology. By analyzing the surface temperature field distribution of power supply equipment, potential defect risks that are difficult to detect with X-ray imaging, such as early defect signs such as insulation aging and poor contact, can be discovered, thus achieving multi-modal, all-round defect detection and risk warning. Outputting defect detection results and potential risk assessment results to the test report can intuitively and comprehensively display the internal defect status and health level of the power supply equipment, provide decision-making support for equipment management and maintenance departments, help formulate targeted maintenance plans and preventive measures, and improve the intelligent level of equipment operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 The figure is a flow chart of a nondestructive detection method for internal defects of a power supply device based on X-rays according to an embodiment of the present invention;

[0055] Figure 2 The present invention is a schematic diagram of the structure of an X-ray-based nondestructive detection system for internal defects of power supply equipment according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0058] Figure 1 FIG. 1 is a flow chart of a nondestructive detection method for internal defects of a power supply device based on X-rays according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0059] S101. Obtain a three-dimensional model of the power supply device to be detected, construct a finite element simulation model of the power supply device according to the three-dimensional model, determine the optimal detection angle and detection path parameters of the power supply device during X-ray imaging, control the X-ray imaging device to perform multi-angle scanning and imaging on the power supply device according to the optimal detection angle and the detection path parameters, and obtain a multi-angle X-ray image set of the power supply device;

[0060] S102. Perform image enhancement processing on the multi-angle X-ray image set, extract the features of the X-ray image, input the features of the X-ray image into a pre-built defect recognition model, and determine whether there is a defective area in the multi-angle X-ray image set through the defect recognition model, wherein the defect recognition model is built based on a deep learning algorithm; if there is a defective area, determine the three-dimensional spatial position and actual size of the defective area in the power supply device through three-dimensional reconstruction technology based on the three-dimensional model and the multi-angle X-ray image set;

[0061] S103. If there is no defective area, further obtain a thermal imaging image of the power supply device, extract the temperature field distribution characteristics of the thermal imaging image, and determine whether there is an abnormal temperature area; if there is an abnormal temperature area, determine whether there is a potential defect risk inside the power supply device based on the position and temperature value of the abnormal temperature area, and output the potential defect risk to the defect detection report.

[0062] By obtaining the three-dimensional model of the power supply equipment and constructing a finite element simulation model, the optimal detection angle and detection path parameters during X-ray imaging can be accurately determined to avoid missed detection or false detection problems caused by unreasonable detection angles and paths, and improve the reliability and accuracy of detection. The use of multi-angle X-ray scanning imaging can fully obtain image information of the internal structure of the power supply equipment, overcome the limitations of single-angle imaging, and provide sufficient data support for subsequent defect identification and positioning.

[0063] By introducing a defect recognition model based on deep learning and intelligently analyzing and judging multi-angle X-ray image sets, the defect areas in the image can be automatically, quickly and accurately identified, greatly improving the efficiency of defect detection and reducing the error rate of manual interpretation. Combining the three-dimensional model of the power supply equipment and the multi-angle X-ray image set, the three-dimensional reconstruction technology is used to determine the spatial position and actual size of the defect area, realize the precise positioning and quantitative evaluation of the defects, and provide a reliable basis for subsequent defect analysis, risk assessment and maintenance decisions.

[0064] On the basis of X-ray imaging detection, thermal imaging technology is further introduced. By analyzing the surface temperature field distribution of power supply equipment, potential defect risks that are difficult to detect with X-ray imaging, such as insulation aging, poor contact and other early defect signs, can be found, realizing multi-modal, all-round defect detection and risk warning. Outputting defect detection results and potential risk assessment results to the test report can intuitively and comprehensively display the internal defect status and health level of the power supply equipment, provide decision-making support for equipment management and maintenance departments, help formulate targeted maintenance plans and preventive measures, and improve the intelligent level of equipment operation and maintenance.

[0065] In an optional implementation, obtaining a three-dimensional model of a power supply device to be detected, constructing a finite element simulation model of the power supply device according to the three-dimensional model, and determining the optimal detection angle and detection path parameters of the power supply device during X-ray imaging include:

[0066] According to the three-dimensional model of the power supply device to be detected, a finite element simulation model of the power supply device is constructed, and the Monte Carlo method is used to simulate the interaction process of scattering, diffraction and absorption of X-ray photons with different energies, incident angles and polarization directions with the power supply device, so as to obtain a multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction;

[0067] Taking the imaging image signal-to-noise ratio, contrast and spatial resolution as the optimization objectives, the obtained multivariate mapping relationship is transformed into the constraint conditions of the multi-objective optimization problem, and the penalty terms of X-ray dose and scanning time are introduced to construct a multi-objective optimization model;

[0068] A multi-objective evolutionary algorithm based on Pareto frontier is used to search for the optimal combination of X-ray energy, incident angle and polarization direction in the decision variable space, obtain a set of Pareto optimal solutions, and determine the best detection angle;

[0069] Comprehensively considering the coverage and overlap rate of the detection blind area, as well as the attenuation distribution characteristics of the internal structure of the power supply equipment to be detected to the X-ray, the spatial motion path of the X-ray source and the detector is optimized to obtain adaptive detection path parameters, wherein the detection path parameters include at least one of a scanning trajectory, a scanning step length, and a scanning speed.

[0070] Exemplarily, the present application proposes a method for adaptively selecting X-ray imaging parameters based on multi-objective optimization. By constructing a finite element simulation model of the power supply equipment, the interaction process between X-rays and equipment materials is simulated, and the multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction is obtained. Taking imaging quality and detection efficiency as optimization goals, a multi-objective optimization model is constructed, and an evolutionary algorithm is used to search for the optimal imaging parameter combination. At the same time, the spatial motion path of the X-ray source and the detector is optimized to minimize the detection blind area and maximize the scanning efficiency.

[0071] First, based on the 3D CAD model of the power supply equipment to be tested, the finite element method is used to mesh and discretize it to build a finite element simulation model of the power supply equipment. In the simulation model, the geometric structure, material properties, boundary conditions and other factors of the equipment are considered and divided into multiple sub-areas. Each sub-area consists of several finite element units, and the units are connected by nodes.

[0072] Based on the finite element simulation model, the Monte Carlo method is used to simulate the interaction process between X-rays and power supply equipment materials. The Monte Carlo method is a numerical simulation method based on probability statistics. It simulates the random behavior and uncertainty of complex systems through random sampling and repeated experiments. In the X-ray imaging simulation, the Monte Carlo method is used to simulate the scattering, diffraction and absorption process of a large number of X-ray photons and equipment materials, and the energy loss and spatial distribution of X-ray photons are counted to obtain the multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction.

[0073] Specifically, in the Monte Carlo simulation process, a certain number of X-ray photons are first randomly generated according to the energy distribution and angle distribution of the X-ray source, and each photon is determined by its energy, direction and polarization state. Then, the random number generator and the material's interaction cross-section data are used to simulate the scattering, diffraction and absorption process of each photon with the device material, and the physical quantities such as the photon's free path, scattering angle, and energy loss in the material are calculated until the photon is completely absorbed or passes through the material. By statistically analyzing the simulation results of a large number of photons, the multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction is obtained, providing data support for the subsequent optimization of imaging parameters.

[0074] After obtaining the multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction, a multi-objective optimization model is constructed with imaging image quality and detection efficiency as optimization goals to achieve adaptive selection of X-ray imaging parameters.

[0075] First, the quality of X-ray imaging is quantified into three indicators: image signal-to-noise ratio, contrast, and spatial resolution. The image signal-to-noise ratio reflects the degree of difference between the region of interest and the background noise in the image, the contrast reflects the degree of difference between different grayscale regions in the image, and the spatial resolution reflects the ability of the imaging system to distinguish the details of two adjacent objects. These three indicators are closely related to the X-ray energy, incident angle, and polarization direction, and can be calculated and predicted through multivariate mapping relationships.

[0076] Then, with the image signal-to-noise ratio, contrast and spatial resolution as optimization targets, the multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction is transformed into the constraints of the multi-objective optimization problem. At the same time, in order to balance the imaging quality and detection efficiency, the penalty terms of X-ray dose and scanning time are introduced to construct a multi-objective optimization model. Among them, the X-ray dose reflects the radiation dose received by the power supply equipment during the imaging process. The larger the dose, the higher the risk of radiation damage to the equipment material; the scanning time reflects the time efficiency of the imaging process. The longer the scanning time, the lower the detection efficiency. Therefore, introducing the penalty terms of dose and time in the optimization target can minimize the radiation risk and improve the detection efficiency while ensuring the imaging quality.

[0077] The decision variables of the multi-objective optimization model are X-ray energy, incident angle and polarization direction. The objective function is to maximize the image signal-to-noise ratio, contrast and spatial resolution, minimize the X-ray dose and scanning time, and the constraint condition is the multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction. Since there are certain conflicts and contradictions between multiple objective functions, it is difficult to achieve the optimal value at the same time, so a multi-objective optimization algorithm is needed to solve it.

[0078] This application uses a multi-objective evolutionary algorithm based on the Pareto frontier (such as NSGA-II, MOEA / D, etc.) to search for the optimal combination of X-ray imaging parameters. The multi-objective evolutionary algorithm is a type of heuristic optimization algorithm based on population search. It searches for the Pareto optimal solution set in the decision variable space by simulating the selection, crossover, mutation and other mechanisms in the biological evolution process. The Pareto optimal solution refers to a solution that cannot continue to improve any objective without reducing other objectives under the premise of satisfying the constraints, reflecting the balance and trade-off between multiple objectives.

[0079] In the iterative process of the multi-objective evolutionary algorithm, a population of X-ray energy, incident angle and polarization direction is first randomly initialized, the objective function value and constraint violation corresponding to each individual are calculated, and the population is sorted and selected according to the non-dominated sorting and crowding evaluation, and the excellent individuals are retained. Then, new individuals are generated through crossover and mutation operations, the population is updated, and the above process is repeated until the maximum number of iterations or convergence conditions are reached. Finally, an optimal solution that balances all objectives is selected on the Pareto front as the optimal detection parameters of X-ray imaging, including optimal energy, optimal incident angle and optimal polarization direction.

[0080] After determining the optimal detection angle, it is necessary to further optimize the spatial motion path of the X-ray source and detector to achieve all-round, blind-spot-free imaging detection of the power supply equipment. Due to the complex internal structure of the power supply equipment, different areas have different attenuation capabilities for X-rays. It is difficult to take into account the coverage and overlap rate of the detection blind area using a fixed scanning path. Therefore, it is necessary to adaptively plan the scanning path based on the structural characteristics and attenuation distribution of the equipment.

[0081] First, the three-dimensional geometric structure of the power supply equipment and the characteristics of X-ray attenuation distribution are comprehensively considered, and the equipment is divided into several detection sub-areas. Different scanning modes and scanning parameters are used for each sub-area according to its structural complexity and attenuation difference. For areas with simple structure and uniform attenuation, a sparse scanning mode is used to perform imaging with a larger scanning step and scanning speed to improve detection efficiency; for areas with complex structure and uneven attenuation, a fine scanning mode is used to perform imaging with a smaller scanning step and scanning speed to improve detection accuracy and reliability.

[0082] Then, a multi-objective optimization model of the scanning path is constructed with the coverage and overlap of the detection blind area as the optimization targets. The coverage reflects the completeness of the scanning path covering all areas of the power supply equipment. The higher the coverage, the fewer the detection blind areas; the overlap reflects the degree of overlap between adjacent scanning paths. The lower the overlap, the higher the scanning efficiency. In the optimization model, the spatial coordinate sequence of the X-ray source and the detector is used as the decision variable, the maximization of the coverage and the minimization of the overlap are used as the objective functions, and the scanning field of view, resolution, speed, etc. are used as constraints. A multi-objective evolutionary algorithm is used to solve the problem.

[0083] In the optimization process, different scanning paths are generated through crossover and mutation operations, the coverage and overlap rate of each path are calculated, and the excellent path is selected by non-dominated sorting and congestion evaluation. After continuous iteration and updating, a set of Pareto optimal scanning paths is finally obtained. According to actual needs, a path that balances the detection blind area and scanning efficiency is selected from the optimal path set as the adaptive detection path parameters, including scanning trajectory, scanning step length, and scanning speed.

[0084] By adaptively optimizing the detection path parameters, the motion trajectory and scanning parameters of the X-ray source and detector can be flexibly adjusted according to the structural characteristics and attenuation distribution of the power supply equipment. While minimizing the detection blind area, the scanning efficiency and detection speed are improved, realizing all-round, efficient and reliable non-destructive detection of power supply equipment.

[0085] In order to verify the effectiveness and feasibility of the proposed X-ray imaging parameter adaptive selection method based on multi-objective optimization, an X-ray imaging detection experiment was carried out on a certain type of transformer.

[0086] Firstly, a finite element simulation model of the transformer was constructed based on the three-dimensional CAD model of the transformer. The Monte Carlo method was used to simulate the interaction between X-ray photons of different energies (30-500 kV), different incident angles (0-60°) and different polarization directions (0-90°) and the transformer material. The multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction was obtained, and polynomial fitting was performed.

[0087] Then, a multi-objective optimization model of X-ray imaging parameters was constructed with image signal-to-noise ratio, contrast and spatial resolution as optimization objectives. The NSGA-II algorithm was used to solve the model and a set of Pareto optimal solutions were obtained. From the solutions, an optimal solution that balanced all objectives was selected as the optimal detection parameters, i.e., the energy was 160 kV, the incident angle was 45°, and the polarization direction was 0°.

[0088] After determining the optimal detection angle, the complexity of the transformer's internal structure and the differences in X-ray attenuation distribution were comprehensively considered, and it was divided into 6 detection sub-areas, using sparse scanning and fine scanning modes respectively. Taking the coverage and overlap rate of the detection blind area as the optimization target, a multi-objective optimization model of the scanning path was constructed, and the MOEA / D algorithm was used to solve it, and a set of Pareto optimal scanning paths were obtained. From them, an optimal path that balances the detection blind area and scanning efficiency was selected as the adaptive detection path parameter.

[0089] Finally, the transformer was scanned with X-rays from multiple angles using the optimized X-ray imaging parameters and detection path parameters, and a set of high-quality X-ray images was obtained. The experimental results show that compared with the traditional fixed parameter and path scanning method, the proposed adaptive optimization method can significantly improve the image signal-to-noise ratio, contrast and spatial resolution, with an average improvement of 2.6 dB, 18% and 25% respectively; at the same time, the coverage of the detection blind area increased from 85% to 98%, the scanning time was shortened from 2.5 hours to 1.8 hours, and the radiation dose was reduced from 15mSv to 8mSv, which verified the advantages of this method in improving imaging quality and detection efficiency.

[0090] In an optional implementation, the imaging image signal-to-noise ratio, contrast and spatial resolution are taken as optimization targets, the obtained multivariate mapping relationship is converted into constraint conditions of a multi-objective optimization problem, and penalty terms of X-ray dose and scanning time are introduced. The construction of a multi-objective optimization model includes:

[0091] The multi-objective optimization function is as follows:

[0092] ;

[0093] ;

[0094] ;

[0095] ;

[0096] Penalties include:

[0097] ;

[0098] ;

[0099] in, SNR , CT , SR They represent signal-to-noise ratio, contrast and spatial resolution respectively, a0, b0 and c0 represent the linear coefficients corresponding to signal-to-noise ratio, contrast and spatial resolution respectively, n represents the number of imaging parameters, x i , x j denote the i-th imaging parameter and the j-th imaging parameter respectively, a ij , b ij 、c ij They represent the quadratic coefficients corresponding to the signal-to-noise ratio, contrast, and spatial resolution respectively;

[0100] P 1 (x) , P 2 (x) They represent the constraint items corresponding to the X-ray dose and the scanning time, respectively. λ1 and λ2 represent the penalty item weight coefficients corresponding to the X-ray dose and the scanning time, respectively. d 0 , t 0 represent the initial X-ray dose and initial scanning time respectively, d i , t i They represent the X-ray dose and scanning time corresponding to the i-th imaging parameter respectively.

[0101] In an optional embodiment, before inputting the radiographic image features into a pre-built defect recognition model and determining whether the multi-angle X-ray image set has a defect area by using the defect recognition model, the method further includes training the defect recognition model:

[0102] Construct training and testing datasets for defect identification;

[0103] Designing a network structure of a restricted Boltzmann machine model, including a visible layer and a plurality of stacked hidden layers, wherein the hidden layer is used to learn a hierarchical feature representation of an image, wherein the number of nodes in each hidden layer is adaptively determined according to an input image, and performing unsupervised pre-training on the restricted Boltzmann machine model by a contrastive divergence algorithm with an L1 regularization term;

[0104] A layer-by-layer greedy training strategy is adopted to sequentially feed the images in the training dataset into the pre-trained restricted Boltzmann machine model. After multiple layers of nonlinear transformation and feature extraction, high-dimensional feature representations of the images in the training dataset at different abstract levels are obtained.

[0105] With the extracted high-level features as input and the corresponding defect category labels as output, a training data set for a multi-class extreme learning machine classifier is constructed, and the weight decay regularization term and Dropout technology are introduced to prevent overfitting to complete the training of the defect recognition model.

[0106] Exemplarily, the present application proposes a method for X-ray image defect recognition based on deep learning, by constructing a training data set and a test data set for defect recognition, designing the network structure of a restricted Boltzmann machine model, adopting unsupervised pre-training and layer-by-layer greedy training strategies, extracting high-level feature representations of the image, and combining the extreme learning machine classifier to realize intelligent recognition of defect categories.

[0107] In order to train and evaluate the performance of the defect recognition model, it is necessary to construct a training data set and a test data set containing normal samples and defect samples. First, a large number of X-ray images of power supply equipment are collected, covering image data of different models, different parts, and different imaging conditions, and professional non-destructive testing personnel mark the defects of the images to obtain the corresponding relationship between the images and the defect categories.

[0108] Then, according to the annotation results, the image data is divided into two categories: normal samples and defective samples. The defective samples are further divided into different defect categories, such as cracks, pores, inclusions, etc. In order to ensure the balance and representativeness of the data set, the number of samples in each category needs to be controlled to make their distribution as even as possible to avoid recognition bias caused by data imbalance.

[0109] Next, the collected image data is divided into three parts: training set, validation set and test set by random division. The training set is used for model training and parameter optimization, the validation set is used for model hyperparameter selection and performance evaluation, and the test set is used for the final test of the model and generalization ability evaluation. In order to enhance the robustness and adaptability of the model, data enhancement techniques such as rotation, translation, scaling, noise addition, etc. can also be used to expand the diversity and quantity of training samples.

[0110] Restricted Boltzmann Machine (RBM) is an energy-based generative random neural network consisting of visible layers and hidden layers. There is full connection between layers, but no connection between nodes within a layer. RBM can extract the intrinsic features and abstract representation of data by learning the probability distribution of input data. It is one of the important models in deep learning.

[0111] In the defect recognition task, a stacked RBM model is used to learn the hierarchical feature representation of X-ray images. When designing the network structure of the RBM model, it is necessary to determine the number of nodes, the number of layers, and the connection method of the visible layer and the hidden layer. The number of nodes in the visible layer is the same as the number of pixels in the input image, and the number of nodes in the hidden layer is adaptively determined according to the complexity and feature dimension of the image, and is usually set in a layer-by-layer incremental manner to achieve hierarchical feature extraction and abstraction.

[0112] After determining the network structure, an unsupervised pre-training method is used to initialize and optimize the parameters of the RBM model. The pre-training process learns the model parameters by maximizing the joint probability distribution between the visible layer and the hidden layer nodes. Commonly used optimization algorithms include the contrastive divergence (CD) algorithm and the persistent contrastive divergence (PCD) algorithm. Among them, the CD algorithm approximates the gradient and updates the parameters through Gibbs sampling and gradient descent. It is a simple and efficient training method; while the PCD algorithm introduces additional persistent chains for sampling, which can better approximate the true gradient and improve the training quality.

[0113] In the pre-training process, in order to improve the sparsity and robustness of feature representation, the L1 regularization term is introduced in the objective function to suppress excessive non-zero features through sparse constraints to prevent overfitting. The coefficient of the L1 regularization term controls the intensity of sparsity and needs to be adjusted according to the data characteristics and model complexity to balance the richness and generalization ability of feature representation.

[0114] After completing the pre-training of the RBM model, a layer-by-layer greedy training strategy is used to fine-tune the model and extract features. Layer-by-layer greedy training means stacking the pre-trained RBM model layer by layer, training only one layer at a time, and using the output of the previous layer as the input of the next layer. Through multiple layers of nonlinear transformation and feature mapping, a high-level feature representation of the input data is obtained.

[0115] Specifically, the X-ray images in the training set are sequentially fed into the pre-trained RBM model. After feature extraction by the first layer of RBM, the feature representation of the image on the first hidden layer is obtained. These features are then used as the input of the second layer of RBM. After feature extraction by the second layer of RBM, the feature representation of the image on the second hidden layer is obtained, and so on, until the last hidden layer. On each hidden layer, the effect of feature extraction is optimized by adjusting the parameters and hyperparameters of RBM, such as learning rate, momentum factor, regularization coefficient, etc., so that the extracted features have stronger discriminability and generalization.

[0116] In the feature extraction process, dropout technology can be used to randomly discard some neurons to reduce the interdependence between neurons and improve the robustness and generalization ability of the model. Dropout integrates and regularizes the model by temporarily discarding some neurons with a certain probability during the training process, which can effectively prevent overfitting and enhance the adaptability of the model.

[0117] Through layer-by-layer greedy training and feature extraction, high-dimensional feature representations of X-ray images at different levels of abstraction can be obtained. These features contain local details and global structures of the image, including low-level edge and texture information as well as high-level semantic and contextual information, laying the foundation for subsequent defect identification.

[0118] After obtaining the high-level feature representation of the X-ray image, it is necessary to further construct a classifier to realize the recognition of defect categories. This application uses the extreme learning machine (ELM) as a classifier for defect recognition, taking advantage of its simplicity, high efficiency and strong generalization ability to realize fast and accurate recognition of defect categories.

[0119] ELM is a single hidden layer feedforward neural network consisting of an input layer, a hidden layer, and an output layer. The number of hidden layer nodes and the activation function can be randomly determined, while the output weights are directly solved by methods such as least squares or ridge regression. There is no need for iterative optimization, fast training speed, and good generalization performance.

[0120] When constructing the ELM classifier, the extracted high-level features of the X-ray image are used as input, and the corresponding defect category labels are used as output to form a training data set. In order to further improve the classification performance and robustness, a weight decay regularization term is introduced into the objective function of the ELM. By imposing a penalty on the norm of the output weight, the model complexity is controlled and the risk of overfitting is reduced. At the same time, the dropout technology is applied in the training process of the ELM to randomly discard a part of the hidden layer nodes to enhance the generalization ability and adaptability of the model.

[0121] After completing the training of the ELM classifier, the validation set is used to evaluate the model performance and select hyperparameters, such as the number of hidden layer nodes, activation function type, regularization coefficient, etc. The optimal model parameter combination is found through grid search or random search to obtain the ELM classifier with the best performance.

[0122] Finally, the trained ELM classifier is used to identify defects and evaluate performance on the test set. The classification performance and generalization ability of the model are comprehensively evaluated by calculating evaluation indicators such as accuracy, precision, recall, and F1 value. At the same time, by visualizing the classification results, the recognition correctness and error patterns of the model are analyzed to provide a reference for the improvement and optimization of the algorithm.

[0123] In order to verify the effectiveness and feasibility of the proposed X-ray image defect recognition method based on deep learning, a defect recognition experimental platform was built, and recognition experiments were carried out on different types of power supply equipment.

[0124] First, we collected 20,000 X-ray image data of various power supply equipment including transformers, cables, lightning arresters, insulators, etc., covering normal samples and 8 typical defect categories (such as cracks, pores, inclusions, notches, etc.), and divided them into training set, validation set and test set in a ratio of 6:2:2.

[0125] Then, a 5-layer RBM network structure was designed, in which the number of nodes in the visible layer was the number of pixels of the input image (such as 64x64=4096), the number of nodes in the first hidden layer was 1000, the number of nodes in the second hidden layer was 500, the number of nodes in the third hidden layer was 250, and the number of nodes in the fourth hidden layer was 100. The CD algorithm was used for unsupervised pre-training of RBM, with the learning rate set to 0.01, the momentum factor set to 0.5, the L1 sparse regularization coefficient set to 0.001, and the maximum number of iterations set to 100.

[0126] After completing the RBM pre-training, a layer-by-layer greedy training strategy is used to extract image features, and the RBM parameters are fine-tuned on each hidden layer, with the learning rate set to 0.1, the momentum factor set to 0.9, the dropout probability set to 0.5, and the maximum number of iterations set to 50. Finally, a 100-dimensional high-level feature representation is obtained on the fourth hidden layer.

[0127] Next, an ELM classifier was constructed with the extracted high-level features as input and the defect category label as output. The number of hidden layer nodes was set to 200, the activation function used the sigmoid function, the weight decay regularization coefficient was set to 0.01, and the dropout probability was set to 0.1. The validation set was used to select hyperparameters and evaluate the performance of ELM to obtain the optimal model parameter combination.

[0128] Finally, the trained ELM classifier is used to perform defect recognition and performance evaluation on the test set. The experimental results show that the average recognition accuracy of the proposed method on 8 defect categories reaches 95.2%, the average precision reaches 96.1%, the average recall rate reaches 94.7%, and the average F1 value reaches 95.4%, which is better than traditional machine learning methods such as SVM, KNN, and random forest, verifying the superiority and effectiveness of this method in defect recognition tasks. At the same time, through the visualization of classification results, it is found that the proposed method has a good recognition effect on defects of different types and degrees. The misclassification is mainly concentrated on a few samples whose defect features are not obvious or similar to normal structures, and it has strong robustness and practicality.

[0129] In an optional embodiment, the method further includes:

[0130] Within the value range of the number of hidden layer nodes and the activation function type of the extreme learning machine classifier, multiple groups of hidden layer parameter combinations are randomly generated, the output weights corresponding to each group of parameters are calculated at one time using the Moore-Penrose generalized inverse matrix, and then the parameter combination with the best generalization performance is selected based on the cross-validation result, so as to realize rapid optimization and training of the extreme learning machine classifier;

[0131] The X-ray image to be inspected is segmented at multiple scales using a sliding window, and sent to the pre-trained restricted Boltzmann machine model to extract high-level features at different abstract levels, and then input into the trained extreme learning machine classifier for defect category prediction. By integrating the prediction results of different scales and different models, the defective area of ​​the image block is pixel-level marked and segmented using a voting mechanism.

[0132] For example, when constructing an extreme learning machine (ELM) classifier, the number of hidden layer nodes and the type of activation function are two key hyperparameters that directly affect the feature mapping capability and classification performance of the ELM. In order to obtain the optimal classifier, it is necessary to search for the best parameter combination within a reasonable parameter value range.

[0133] This application uses a combination of random search and cross-validation to optimize the hidden layer parameters of the ELM classifier. First, based on experience and prior knowledge, determine the value range of the number of hidden layer nodes and the type of activation function. For example, the number of hidden layer nodes can be randomly selected between 50 and 1000, and the activation function can be randomly selected from common functions such as sigmoid, tanh, and ReLU.

[0134] Then, multiple sets of hidden layer parameter combinations are generated within the parameter value range by random sampling. Each set of parameter combinations includes a number of hidden layer nodes and an activation function type. For each set of hidden layer parameter combinations, the Moore-Penrose generalized inverse matrix is ​​used to calculate the corresponding output weight matrix at one time to obtain a complete ELM classifier. Since the ELM training process only involves solving the output weights, it avoids the iterative optimization in traditional neural networks, so the computational efficiency is very high, and a large number of parameter combinations can be evaluated in a short time.

[0135] Next, the K-fold cross-validation method is used to divide the training set into K mutually exclusive subsets. K-1 subsets are selected as training data each time, and the remaining 1 subset is used as validation data. The ELM classifier is trained and its performance is evaluated on the validation set. This is repeated K times to obtain K validation results. Here, the performance evaluation indicators can be selected from commonly used classification evaluation indicators such as accuracy, precision, recall, and F1 value.

[0136] Finally, the results of K cross-validations are averaged to obtain the average performance of each hidden layer parameter combination on the training set. The hidden layer parameter combination with the best average performance is selected as the final parameter of the ELM classifier to obtain the classifier model with the best generalization performance.

[0137] Through the parameter optimization strategy that combines random search and cross-validation, the optimal ELM classifier can be efficiently found among massive parameter combinations, avoiding the blindness and uncertainty of manual parameter adjustment and improving the generalization ability and robustness of the model.

[0138] After obtaining the ELM classifier with optimized performance, it needs to be further applied to the actual X-ray image defect detection task. Since the size, shape and position of the defect in the image may have large variations and uncertainties, it may be difficult to achieve the ideal detection effect by directly extracting features and distinguishing defects from the entire image. Therefore, this application adopts a method based on a multi-scale sliding window to scan and distinguish local areas of the image to achieve pixel-level defect location and segmentation.

[0139] First, according to the defect type to be detected and the image resolution, determine the sliding window size at multiple scales. For example, you can choose square windows of different sizes such as 64x64, 128x128, 256x256, etc. to cover defect areas of different sizes. At the same time, determine the step size of the sliding window, that is, the number of pixels the window moves on the image. Usually, a step size proportional to the window size is selected, such as 1 / 4 or 1 / 2 of the window size, to balance detection accuracy and computational efficiency.

[0140] Then, at each scale, the X-ray image is segmented in a sliding window manner to obtain a large number of image blocks. Each image block is sent to a pre-trained restricted Boltzmann machine (RBM) model, and after multiple layers of nonlinear transformation and feature mapping, high-level feature representations of the image block at different abstract levels are extracted. Here, the structure and parameters of the RBM model are consistent with those used in the previous training of the ELM classifier to ensure the consistency and effectiveness of feature extraction.

[0141] Next, the extracted high-level features are fed into the trained ELM classifier to predict the defect category. Based on the input features, the ELM classifier calculates the probability or confidence score that the image block belongs to each defect category, and selects the category with the highest score as the predicted label of the image block. Here, if the predicted label is normal, the image block is considered to contain no defects; if the predicted label is a certain defect category, the image block is considered to contain that type of defect.

[0142] After completing the defect prediction of all image blocks, the prediction results at different scales and positions are obtained. In order to further improve the accuracy and robustness of detection, a voting-based integration strategy is adopted to combine the prediction results at different scales and different positions to discriminate the defect attributes of each pixel. Specifically, for each pixel in the image, the number of times it is predicted as a defect at different scales and positions is counted. If the number exceeds a certain threshold (such as 50% or 75%), the pixel is marked as a defective pixel of the corresponding type; otherwise, it is marked as a normal pixel. Through this majority voting method, the error and noise of the prediction of a single scale or a single position can be effectively suppressed, and the accuracy and reliability of defect detection can be improved.

[0143] Finally, the pixels marked as defects are subjected to region growing and morphological processing to obtain the complete defect region. The region growing algorithm uses defective pixels as seed points and iteratively merges adjacent defective pixels into the same region based on the similarity and connectivity between pixels until no new pixels are added. Morphological processing smoothes and regularizes the boundaries and shapes of the defective regions through operations such as corrosion, expansion, and opening and closing operations, removes small holes and burrs, and obtains the final defect segmentation result.

[0144] Through the above-mentioned defect detection method based on multi-scale sliding windows, the feature information of local areas can be fully utilized, the diversity of defect sizes and shapes can be adapted, and pixel-level refined detection and segmentation can be achieved. At the same time, by integrating the prediction results of multiple scales and positions, the group wisdom is used to improve the robustness and accuracy of detection, effectively suppress false positives and false negatives, and improve the practicality and reliability of defect detection.

[0145] In order to verify the effectiveness and superiority of the proposed X-ray image defect detection method based on multi-scale sliding window and extreme learning machine, a detailed experimental evaluation and performance comparison were carried out on the defect sample dataset constructed previously.

[0146] First, in the parameter optimization experiment of the ELM classifier, 500 sets of parameter combinations with hidden layer nodes ranging from 50 to 1000 and activation functions of sigmoid, tanh, and ReLU were randomly generated, and the average classification performance of each set of parameters was calculated using 5-fold cross validation. The results show that when the number of hidden layer nodes is 876 and the activation function is ReLU, the ELM classifier achieves the best performance on the validation set, with a classification accuracy of 97.8% and an F1 value of 97.5%, which is significantly better than other parameter combinations. Therefore, this parameter combination is selected as the optimal parameter of the ELM classifier for subsequent defect detection experiments.

[0147] In addition, the detection performance of the proposed method under different defect types and different imaging conditions was evaluated. The results show that the proposed method has a good detection rate for various typical defects (such as cracks, pores, inclusions, etc.), and is stable on images of different energies, different angles, and different noise levels, with good adaptability and generalization. Further visualization analysis found that the proposed method can not only accurately locate the defect area, but also better characterize the shape and boundary of the defect, providing strong support for the quantitative analysis and evaluation of defects.

[0148] In summary, the experimental results fully demonstrate the effectiveness and superiority of the X-ray image defect detection method based on multi-scale sliding windows and extreme learning machines proposed in this paper, and provide a new idea and method for the automation and intelligence of industrial CT non-destructive testing. This method can not only greatly improve the efficiency and accuracy of defect detection, reduce the error rate and missed detection rate of manual detection, but also quantitatively evaluate the type, location, size and shape of defects, provide important data support for equipment health diagnosis and life prediction, and has broad application prospects.

[0149] In an optional implementation, based on the three-dimensional model and the multi-angle X-ray image set, determining the three-dimensional spatial position and actual size of the defective area in the power supply device by three-dimensional reconstruction technology includes:

[0150] Perform X-ray imaging of the target device from different angles and orientations to obtain a set of two-dimensional projection images covering all parts of the device with a certain degree of overlap between adjacent viewing angles, and record the imaging parameters of the ray source position, detector position and rotation angle corresponding to each image;

[0151] By selecting corresponding feature points in the three-dimensional model and the X-ray image set, the transformation matrix from the image to the model is calculated by using a rigid body transformation method, the two are aligned to the same coordinate system, and an optimization algorithm is used to iteratively refine the registration accuracy;

[0152] voxelize the three-dimensional model according to the imaging resolution and the model size, and discretize it into a three-dimensional voxel grid with a certain physical scale;

[0153] For each X-ray projection image, the three-dimensional coordinates of the ray source and the detector pixel points in the voxel grid are calculated according to its imaging parameters, and the voxels through which the ray passes are integrated using the principle of ray projection to obtain a simulated projection image at that viewing angle, and the degree of agreement between the current voxel model and the real structure is reflected by comparing the difference between the simulated projection and the actual image;

[0154] The defect area detected in the X-ray image is mapped to the voxel grid, the corresponding ray equation is calculated according to the coordinates of the defective pixels in the image and the imaging parameters, the rays of all viewing angles are intersected in the voxel grid to obtain the three-dimensional distribution of the defective voxels, and the independent defect area is segmented by clustering and morphological processing of the defective voxels;

[0155] According to the spatial distribution of defective voxels and the scale information of the voxel grid, the three-dimensional center coordinates of each defective area are calculated by taking weighted average of the voxel coordinates, the actual size of the defective area is estimated by calculating the bounding box or maximum inscribed ellipsoid of the voxel, and the position and size information of the defective area are visualized on the three-dimensional model.

[0156] For example, after obtaining the defect detection results in the X-ray image, in order to further determine the actual position and size of the defect inside the power supply equipment, it is necessary to associate and map the two-dimensional defect area with the three-dimensional model. This application proposes a defect positioning and measurement method based on three-dimensional reconstruction technology, which realizes the precise positioning and quantitative characterization of the defect area in three-dimensional space through the registration and fusion of multi-view X-ray images and equipment three-dimensional models.

[0157] First, perform X-ray imaging of the target power supply equipment from different angles and orientations to obtain a set of two-dimensional projection images that cover all parts of the equipment and have a certain degree of overlap between adjacent viewing angles. In order to ensure the accuracy of subsequent three-dimensional reconstruction, it is necessary to reasonably design the imaging viewing angle and number so that the image set can reflect the three-dimensional structural information of the equipment as completely as possible. At the same time, during the imaging process, it is necessary to record the imaging parameters of the ray source position, detector position, and rotation angle corresponding to each image to provide a basis for the registration of the image to the three-dimensional model.

[0158] After obtaining the X-ray image set, it needs to be registered with the 3D CAD model of the equipment to establish the spatial correspondence between the two. Here, a feature point-based registration method is used. By selecting a series of corresponding feature points in the 3D model and the X-ray image, the image-to-model transformation matrix is ​​calculated using rigid body transformation (including translation, rotation, and scaling) to align the two to the same coordinate system.

[0159] Specifically, select some easy-to-identify and match feature points on the 3D model, such as edges, corners, holes, etc., and manually or automatically mark the corresponding points in the X-ray image. Then, construct an optimization problem to minimize the distance between feature points, and solve the parameters of the transformation matrix so that the sum of the Euclidean distances between the transformed image feature points and the model feature points is minimized. Here, the classic Levenberg-Marquardt algorithm can be used for nonlinear optimization to obtain the optimal transformation matrix.

[0160] In order to further improve the registration accuracy, the transformation matrix can be refined by using an iterative optimization strategy based on the initial registration. Specifically, in each iteration, the X-ray image is mapped to the 3D model according to the current transformation matrix, and the similarity between the two (such as mutual information, correlation coefficient, etc.) is calculated. With the goal of maximizing the similarity, the parameters of the transformation matrix are optimized and updated. Repeat the iteration until the similarity converges or the maximum number of iterations is reached, and the transformation matrix after fine registration is obtained.

[0161] Through the above image registration process, the spatial correspondence between the X-ray image and the three-dimensional model is established, laying the foundation for subsequent defect positioning and measurement.

[0162] In order to realize the mapping of X-ray images to three-dimensional models and the spatial positioning of defect areas, it is necessary to discretize the continuous three-dimensional model into the form of voxels, that is, divide the model into regular three-dimensional grids, each grid element corresponds to a voxel, and records the physical properties of the position (such as density, attenuation coefficient, etc.).

[0163] First, the target physical scale of voxelization is determined according to the resolution of X-ray imaging and the size of the 3D model, that is, the actual physical size represented by each voxel. For example, if the pixel resolution of the X-ray image is 0.1 mm and the size of the 3D model is 100 mm × 100 mm × 100 mm, the model can be divided into 1000 × 1000 × 1000 voxels, and the physical scale of each voxel is 0.1 mm × 0.1 mm × 0.1 mm.

[0164] Then, the 3D model is voxelized and discretized into a uniform 3D voxel grid. Specifically, each triangular face of the model is traversed, the voxel index corresponding to its vertex coordinates is calculated, and the voxels covered by the face are marked as object voxels, and the other voxels are marked as air voxels. For object voxels, the corresponding density value or attenuation coefficient is assigned according to the material properties of its location.

[0165] After voxelization is completed, a regular voxel grid consistent with the shape of the three-dimensional model is obtained. Each voxel records whether the location is an object and the corresponding physical parameters, providing a discretized spatial representation for subsequent simulation projection and defect mapping.

[0166] In order to associate the defect area in the X-ray image with the three-dimensional model, it is necessary to simulate the X-ray imaging process and generate a simulated projection image corresponding to the actual image as a bridge for mapping between the two.

[0167] For each image in the X-ray image set, the spatial coordinates of the ray source and detector pixels in the three-dimensional voxel grid are calculated based on its imaging parameters (ray source position, detector position and rotation angle). Then, for each pixel on the detector, the ray equation from the ray source to the pixel is calculated using the principle of ray projection, and the voxel sequence through which the ray passes is determined.

[0168] Next, the attenuation integral is performed on each voxel through which the ray passes, simulating the propagation and attenuation process of the X-ray in the object. Specifically, the attenuation ratio of the ray at the voxel is calculated based on the attenuation coefficient of the voxel and the penetration length of the ray in the voxel, and the attenuation ratios of all voxels are multiplied to obtain the final intensity of the ray at the detector pixel.

[0169] Repeat the above process, calculate the ray intensity at all pixels, and obtain a simulated projection image corresponding to the actual X-ray image. This image reflects the projection distribution of the 3D model on the 2D plane under the current imaging parameters, and has the same geometric characteristics and intensity distribution as the actual image.

[0170] By generating simulated projection images, the corresponding relationship between the 3D model and the 2D image is established, which provides a basis for the 3D mapping of the defect area. At the same time, by comparing the difference between the simulated projection image and the actual image, the accuracy of the model and image registration can be verified, providing a basis for the optimization of the registration parameters.

[0171] After obtaining the defect detection results in the X-ray image and the simulated projection image, the two-dimensional defect area can be mapped to the three-dimensional voxel grid to realize the positioning of the defect in three-dimensional space.

[0172] First, for each defect area detected in the X-ray image, its pixel coordinates and boundary contours are extracted. Then, based on the imaging parameters of the image, the ray equation corresponding to the boundary pixels of the defect area in three-dimensional space is calculated, that is, a series of rays starting from the ray source, passing through the defect pixel point, and reaching the detector.

[0173] Next, the ray equations from all viewing angles are intersected in the three-dimensional voxel grid to obtain the voxel sequence that each ray passes through. For each voxel, the number of rays passing through it is counted and marked as a potential defective voxel. Here, if a voxel is passed by multiple rays, it means that the voxel intersects with the defective area at different viewing angles, and it is more likely to be a defective voxel.

[0174] After completing the intersection of all rays, a three-dimensional defect voxel distribution map is obtained, which reflects the approximate position and shape of the defect area in three-dimensional space. In order to further extract independent defect areas, the defect voxels need to be clustered and morphologically processed.

[0175] Specifically, adjacent defect voxels are connected into clusters, and divided into different defect regions according to the size, density, and shape of the voxel clusters. For each defect region, morphological operations (such as dilation, erosion, opening and closing operations, etc.) are used to smooth and regularize its boundaries, remove noise and discrete points, and obtain the final defect region voxel distribution.

[0176] Through the above defect mapping and segmentation process, the defect area in the two-dimensional image is located at the specific position in the three-dimensional model, and the voxel representation of each defect in the three-dimensional space is obtained, which provides a basis for subsequent defect measurement and evaluation.

[0177] After obtaining the three-dimensional voxel distribution of the defect area, the actual size of the defect can be further estimated and visualized on the three-dimensional model to intuitively display the spatial position and size of the defect.

[0178] For each defect area, first calculate its center coordinates in three-dimensional space. Here, the weighted average method of voxel coordinates can be used, that is, multiply the coordinates of each defect voxel by its corresponding confidence (such as the number of ray crossings), and then sum all coordinates and divide them by the total confidence to obtain the three-dimensional coordinates of the defect center. This coordinate reflects the position distribution of the defect area in three-dimensional space and is an important parameter for evaluating the defect location.

[0179] Then, the actual size of the defect area is estimated. A simple method is to calculate the bounding box of the defect voxel distribution, that is, to find the minimum and maximum values ​​of the defect voxel on the three coordinate axes, and the difference is the size of the defect in each direction. However, this method may overestimate the actual size of the defect, especially for irregularly shaped defects.

[0180] Another more accurate method is to fit the maximum inscribed ellipsoid of the defect voxel distribution. Specifically, a smaller ellipsoid is initialized with the defect center as the ellipsoid center, and then the semi-axis length of the ellipsoid is iteratively increased until the ellipsoid is tangent to the boundary of the defect voxel distribution. The three semi-axis lengths of the ellipsoid are the maximum size of the defect in three directions, and the direction of the ellipsoid also reflects the spatial orientation of the defect. Compared with the bounding box method, ellipsoid fitting can better approximate the actual shape of the defect and provide a more accurate size estimate.

[0181] Finally, the position and size information of the defect area is integrated with the 3D model to generate intuitive visualization results. Specifically, the voxel distribution of the defect area is superimposed on the 3D model and rendered with different colors or transparencies to highlight the difference between the defect area and the normal area. At the same time, the center coordinates and size estimates of each defect are marked in the form of text or graphics, and the defect area is scaled at an appropriate ratio to make it consistent with the overall size of the 3D model.

[0182] Through defect size estimation and three-dimensional visualization, the spatial distribution and actual size of defects inside the equipment are intuitively displayed, providing an important basis for quantitative evaluation of defects and subsequent maintenance decisions. Compared with traditional two-dimensional defect detection, the three-dimensional defect positioning and measurement method proposed in this paper can provide more comprehensive and accurate defect information, which helps to improve the reliability of defect evaluation and the pertinence of maintenance, and has important engineering application value.

[0183] In order to verify the effectiveness and accuracy of the proposed defect location and measurement method based on 3D reconstruction, this paper carried out a detailed experimental study taking a certain type of transformer as an example.

[0184] First, the industrial CT system was used to perform multi-view X-ray imaging of the transformer, and 720 two-dimensional projection images with a resolution of 1000×1000 were obtained. The angle step was 0.5 degrees, the distance between the ray source and the rotation center was 1000mm, and the distance between the ray source and the detector was 1200mm. At the same time, the CAD model of the transformer was constructed through 3D modeling software and converted into a triangular patch model in STL format.

[0185] Then, the image registration method proposed in this paper is used to register the X-ray image with the 3D model. By selecting 20 pairs of corresponding feature points on the image and model respectively, the Levenberg-Marquardt algorithm is used to solve the initial transformation matrix, and the mutual information is used as the similarity metric to iteratively optimize the transformation parameters, and finally the registered image and model are obtained.

[0186] Based on the registration, the 3D model is voxelized and discretized into a voxel grid of 1000×1000×1000 at a physical scale of 0.1 mm. Then, for each X-ray image, a corresponding simulated projection image is generated, and the defect area detected in the image is mapped to the 3D voxel grid to obtain the 3D distribution of the defect voxels.

[0187] Next, the defect voxels are clustered and morphologically processed to extract independent defect areas. For each defect area, its three-dimensional center coordinates are calculated, and its actual size is estimated using the ellipsoid fitting method. Finally, the position and size information of the defect area is fused with the three-dimensional model to generate intuitive visualization results.

[0188] Figure 2 FIG. 1 is a schematic diagram of the structure of a nondestructive detection system for internal defects of a power supply device based on X-rays according to an embodiment of the present invention. Figure 2 As shown, the system comprises:

[0189] The first unit is used to obtain a three-dimensional model of the power supply device to be detected, construct a finite element simulation model of the power supply device according to the three-dimensional model, determine the optimal detection angle and detection path parameters of the power supply device during X-ray imaging, and control the X-ray imaging device to perform multi-angle scanning and imaging on the power supply device according to the optimal detection angle and the detection path parameters to obtain a multi-angle X-ray image set of the power supply device;

[0190] The second unit is used to perform image enhancement processing on the multi-angle X-ray image set, extract radiation image features, input the radiation image features into a pre-built defect recognition model, and determine whether there is a defective area in the multi-angle X-ray image set through the defect recognition model, wherein the defect recognition model is built based on a deep learning algorithm; if there is a defective area, the three-dimensional spatial position and actual size of the defective area in the power supply device are determined based on the three-dimensional model and the multi-angle X-ray image set through a three-dimensional reconstruction technology;

[0191] The third unit is used to further obtain a thermal imaging image of the power supply device if there is no defective area, extract the temperature field distribution characteristics of the thermal imaging image, and determine whether there is an abnormal temperature area; if there is an abnormal temperature area, determine whether there is a potential defect risk inside the power supply device based on the position and temperature value of the abnormal temperature area, and output the potential defect risk to the defect detection report.

[0192] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0193] processor;

[0194] a memory for storing processor-executable instructions;

[0195] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0196] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described above is implemented.

[0197] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.

[0198] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. Nondestructive detection method of internal defects of power supply equipment based on X-ray, It is characterized in that include: Acquire a three-dimensional model of the power supply device to be detected, construct a finite element simulation model of the power supply device according to the three-dimensional model, determine the optimal detection angle and detection path parameters of the power supply device during X-ray imaging, control the X-ray imaging device to perform multi-angle scanning and imaging on the power supply device according to the optimal detection angle and the detection path parameters, and obtain a multi-angle X-ray image set of the power supply device; Performing image enhancement processing on the multi-angle X-ray image set, extracting radiation image features, inputting the radiation image features into a pre-built defect recognition model, and judging whether there is a defective area in the multi-angle X-ray image set by the defect recognition model, wherein the defect recognition model is built based on a deep learning algorithm; if there is a defective area, determining the three-dimensional spatial position and actual size of the defective area in the power supply device by three-dimensional reconstruction technology based on the three-dimensional model and the multi-angle X-ray image set; If there is no defective area, further obtain a thermal imaging image of the power supply equipment, extract the temperature field distribution characteristics of the thermal imaging image, and determine whether there is an abnormal temperature area; if there is an abnormal temperature area, determine whether there is a potential defect risk inside the power supply equipment based on the position and temperature value of the abnormal temperature area, and output the potential defect risk to the defect detection report.

2. The method according to claim 1, It is characterized in that Acquiring a three-dimensional model of the power supply device to be detected, constructing a finite element simulation model of the power supply device according to the three-dimensional model, and determining the optimal detection angle and detection path parameters of the power supply device during X-ray imaging include: According to the three-dimensional model of the power supply device to be detected, a finite element simulation model of the power supply device is constructed, and the Monte Carlo method is used to simulate the interaction process of scattering, diffraction and absorption of X-ray photons with different energies, incident angles and polarization directions with the power supply device, so as to obtain a multivariate mapping relationship between the X-ray attenuation coefficient and the energy, incident angle and polarization direction; Taking the imaging image signal-to-noise ratio, contrast and spatial resolution as the optimization objectives, the obtained multivariate mapping relationship is transformed into the constraint conditions of the multi-objective optimization problem, and the penalty terms of X-ray dose and scanning time are introduced to construct a multi-objective optimization model; A multi-objective evolutionary algorithm based on Pareto frontier is used to search for the optimal combination of X-ray energy, incident angle and polarization direction in the decision variable space, obtain a set of Pareto optimal solutions, and determine the best detection angle; Comprehensively considering the coverage and overlap rate of the detection blind area, as well as the attenuation distribution characteristics of the internal structure of the power supply equipment to be detected to the X-ray, the spatial motion path of the X-ray source and the detector is optimized to obtain adaptive detection path parameters, wherein the detection path parameters include at least one of a scanning trajectory, a scanning step length, and a scanning speed.

3. The method according to claim 2, It is characterized in that Taking the imaging image signal-to-noise ratio, contrast and spatial resolution as the optimization objectives, the obtained multivariate mapping relationship is transformed into the constraint conditions of the multi-objective optimization problem, and the penalty terms of X-ray dose and scanning time are introduced. The multi-objective optimization model is constructed including: The multi-objective optimization function is as follows: ; ; ; ; Penalties include: ; ; in, SNR , CT , SR Represents signal-to-noise ratio, contrast and spatial resolution, respectively. 0 , b 0 、c 0 They represent the linear coefficients corresponding to the signal-to-noise ratio, contrast, and spatial resolution, respectively. n represents the number of imaging parameters, x i , x j denote the i-th imaging parameter and the j-th imaging parameter respectively, a ij , b ij 、c ij They represent the quadratic coefficients corresponding to the signal-to-noise ratio, contrast, and spatial resolution respectively; P 1 (x) , P 2 (x) They represent the constraints corresponding to the X-ray dose and scanning time, respectively, 1 , 2 Respectively represent the penalty weight coefficients corresponding to X-ray dose and scanning time, d 0 , t 0 represent the initial X-ray dose and initial scanning time respectively, d i , t i They represent the X-ray dose and scanning time corresponding to the i-th imaging parameter respectively.

4. The method according to claim 1, It is characterized in that Before inputting the radiographic image features into a pre-built defect recognition model and determining whether the multi-angle X-ray image set has a defect area by using the defect recognition model, the method further includes training the defect recognition model: Construct training and testing datasets for defect identification; Designing a network structure of a restricted Boltzmann machine model, including a visible layer and a plurality of stacked hidden layers, wherein the hidden layer is used to learn a hierarchical feature representation of an image, wherein the number of nodes in each hidden layer is adaptively determined according to an input image, and performing unsupervised pre-training on the restricted Boltzmann machine model by a contrastive divergence algorithm with an L1 regularization term; A layer-by-layer greedy training strategy is adopted to sequentially feed the images in the training dataset into the pre-trained restricted Boltzmann machine model. After multiple layers of nonlinear transformation and feature extraction, high-dimensional feature representations of the images in the training dataset at different abstract levels are obtained. With the extracted high-level features as input and the corresponding defect category labels as output, a training dataset for a multi-class extreme learning machine classifier is constructed, and the weight decay regularization term and Dropout technology are introduced to prevent overfitting.

5. The method according to claim 4, It is characterized in that The method further comprises: Within the value range of the number of hidden layer nodes and the activation function type of the extreme learning machine classifier, multiple groups of hidden layer parameter combinations are randomly generated, the output weights corresponding to each group of parameters are calculated at one time using the Moore-Penrose generalized inverse matrix, and then the parameter combination with the best generalization performance is selected based on the cross-validation result, so as to realize rapid optimization and training of the extreme learning machine classifier; The X-ray image to be inspected is segmented at multiple scales by using a sliding window, and is sent to the pre-trained restricted Boltzmann machine model to extract high-level features at different abstract levels, and then input into the trained extreme learning machine classifier for defect category prediction. By integrating the prediction results of different scales and different models, the defect area of ​​the image block is pixel-level marked and segmented using a voting mechanism; The performance of the constructed restricted Boltzmann machine-extreme learning machine defect recognition model was evaluated on the test set. The precision, recall and F1 score of each defect category, as well as the overall average accuracy and Kappa coefficient indicators were calculated. At the same time, cross-validation and McNemar test methods were used to conduct statistical performance comparison and pros and cons analysis with other classic defect recognition models.

6. The method according to claim 1, It is characterized in that Based on the three-dimensional model and the multi-angle X-ray image set, determining the three-dimensional spatial position and actual size of the defective area in the power supply device by three-dimensional reconstruction technology includes: Perform X-ray imaging of the target device from different angles and orientations to obtain a set of two-dimensional projection images covering all parts of the device with a certain degree of overlap between adjacent viewing angles, and record the imaging parameters of the ray source position, detector position and rotation angle corresponding to each image; By selecting corresponding feature points in the three-dimensional model and the X-ray image set, the transformation matrix from the image to the model is calculated by using a rigid body transformation method, the two are aligned to the same coordinate system, and an optimization algorithm is used to iteratively refine the registration accuracy; voxelize the three-dimensional model according to the imaging resolution and the model size, and discretize it into a three-dimensional voxel grid with a certain physical scale; For each X-ray projection image, the three-dimensional coordinates of the ray source and the detector pixel points in the voxel grid are calculated according to its imaging parameters, and the voxels through which the ray passes are integrated using the principle of ray projection to obtain a simulated projection image at that viewing angle, and the degree of agreement between the current voxel model and the real structure is reflected by comparing the difference between the simulated projection and the actual image; The defect area detected in the X-ray image is mapped to the voxel grid, the corresponding ray equation is calculated according to the coordinates of the defective pixels in the image and the imaging parameters, the rays of all viewing angles are intersected in the voxel grid to obtain the three-dimensional distribution of the defective voxels, and the independent defect area is segmented by clustering and morphological processing of the defective voxels; According to the spatial distribution of defective voxels and the scale information of the voxel grid, the three-dimensional center coordinates of each defective area are calculated by taking weighted average of the voxel coordinates, the actual size of the defective area is estimated by calculating the bounding box or maximum inscribed ellipsoid of the voxel, and the position and size information of the defective area are visualized on the three-dimensional model.

7. An X-ray-based nondestructive detection system for internal defects of power supply equipment, used to implement the method described in any one of claims 1 to 6. It is characterized in that include: The first unit is used to obtain a three-dimensional model of the power supply device to be detected, construct a finite element simulation model of the power supply device according to the three-dimensional model, determine the optimal detection angle and detection path parameters of the power supply device during X-ray imaging, and control the X-ray imaging device to perform multi-angle scanning and imaging on the power supply device according to the optimal detection angle and the detection path parameters to obtain a multi-angle X-ray image set of the power supply device; The second unit is used to perform image enhancement processing on the multi-angle X-ray image set, extract radiation image features, input the radiation image features into a pre-built defect recognition model, and determine whether there is a defective area in the multi-angle X-ray image set through the defect recognition model, wherein the defect recognition model is built based on a deep learning algorithm; if there is a defective area, the three-dimensional spatial position and actual size of the defective area in the power supply device are determined based on the three-dimensional model and the multi-angle X-ray image set through a three-dimensional reconstruction technology; The third unit is used to further obtain a thermal imaging image of the power supply device if there is no defective area, extract the temperature field distribution characteristics of the thermal imaging image, and determine whether there is an abnormal temperature area; if there is an abnormal temperature area, determine whether there is a potential defect risk inside the power supply device based on the position and temperature value of the abnormal temperature area, and output the potential defect risk to the defect detection report.

8. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.