A method and device for intelligent identification of internal defects based on dual-modality ultrasonic images

By combining the fusion recognition model of amplitude and depth images in the ultrasonic phased array C-scan, the dual-modal features of the ultrasonic phased array C-scan are extracted, which solves the problem of accuracy and recklessness in the existing technology that relies on single-modality image recognition. The problem of insufficient stickiness is eliminated and more intelligent and efficient defect identification is achieved.

CN118674719BActive Publication Date: 2024-10-29SHENYANG RES INST OF FOUNDRY
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology mainly relies on amplitude images for defect identification in ultrasonic phased array C-scans and ignores the importance of depth images, resulting in limitations in the accuracy and robustness of defect identification.

Method used

An internal defect intelligent identification method based on dual-modal ultrasonic images is used to obtain the amplitude data and depth data of the component to be identified, generate amplitude images and depth images, and combine the fusion recognition model to extract fusion features, using the dual-modal feature fusion module The features of the two modalities are adaptively fused and finally converted into a probability distribution that the image contains defects by the classifier module.

Benefits of technology

It improves the accuracy and robustness of defect identification, reduces the amount of features required for image recognition, improves the efficiency of defect identification, and realizes intelligent identification of components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674719B_ABST
    Figure CN118674719B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for intelligent identification of internal defects based on dual-modal ultrasonic images. The method and device for intelligent identification of internal defects based on dual-modal ultrasonic images provided in the present application include: obtaining the original data of the component to be identified; the original data at least includes the amplitude data and depth data of the component to be identified; generating an amplitude image and a depth image based on the original data to form a dual-modal image data set; fusing the amplitude image and the depth image in the dual-modal image data set based on a fusion recognition model to obtain a fusion feature; based on the fusion recognition model, using the fusion feature to obtain the defect identification result of the component to be identified. The method and device for intelligent identification of internal defects based on dual-modal ultrasonic images provided in the present application can intelligently identify whether the component to be identified has defects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial nondestructive testing, and in particular to a method and device for intelligently identifying internal defects based on dual-modality ultrasonic images. Background Art

[0002] Ultrasonic phased array C-scan is a technology that uses phased array probes and encoders to perform visual inspection of internal defects of parts. The phased array probe transmits and receives ultrasonic waves according to the preset process, and the encoder is used to achieve continuous measurement in the scanning direction to obtain the ultrasonic phased array C-scan raw data. According to the different inspection requirements of the parts to be identified, different data processing methods are selected and the corresponding gate threshold is set. The image type is divided into two types: amplitude image and depth image.

[0003] At present, with the rapid development of artificial intelligence, deep learning technology has shown great potential in multiple application scenarios such as computer vision. At present, many studies have mainly focused on intelligent recognition of ultrasonic phased array C-scan amplitude images, including metal welds, ceramic detection, etc. However, most studies only use amplitude images for processing, ignoring the importance of depth images for defect recognition, which to some extent limits the accuracy and robustness of defect recognition technology. Summary of the invention

[0004] In view of this, the present application provides a method and device for intelligently identifying internal defects based on dual-modality ultrasonic images, so as to intelligently identify whether a component to be identified has defects.

[0005] Specifically, the present application is implemented through the following technical solutions:

[0006] The first aspect of the present application provides an intelligent internal defect recognition method based on dual-modality ultrasonic images, the method comprising:

[0007] Acquire original data of the component to be identified; the original data at least includes amplitude data and depth data of the component to be identified;

[0008] Generating an amplitude image and a depth image based on the raw data to form a dual-modal image data set;

[0009] fusing the amplitude image and the depth image in the dual-modal image dataset based on a fusion recognition model to obtain a fusion feature;

[0010] Wherein, before fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model, at least the following steps are further included:

[0011] Acquire a first defect image region and a second defect image region based on the amplitude image and the depth image respectively, wherein the first defect image region and the second defect image region are geometric regions where defects in the amplitude image and the depth image are located respectively; determine a fused defect image region based on the first defect image region and the second defect image region, wherein the fused defect image region does not overlap with the first defect image region and the second defect image region;

[0012] The fusing of the amplitude image and the depth image in the dual-modal image data set based on the fusion recognition model at least includes: extracting the amplitude feature of the area corresponding to the amplitude image based on the fused defect image area; extracting the depth feature of the area corresponding to the depth image based on the fused defect image area; respectively calculating the correlation between the amplitude feature, the depth feature and the defect type to be identified as the weights corresponding to the amplitude feature and the depth feature, and calculating the fusion feature based on the weights corresponding to the features and the amplitude feature and the depth feature;

[0013] Based on the fusion recognition model, the defect recognition result of the component to be recognized is obtained by utilizing the fusion feature.

[0014] The second aspect of the present application provides an internal defect intelligent identification device based on dual-modality ultrasonic images, the device comprising an acquisition module, a construction module, a fusion module and an identification module; wherein,

[0015] The acquisition module is used to acquire the original data of the component to be identified; the original data at least includes the amplitude data and depth data of the component to be identified;

[0016] The construction module is used to generate an amplitude image and a depth image based on the original data to form a dual-modal image data set;

[0017] The fusion module is used to fuse the amplitude image and the depth image in the dual-modal image dataset based on a fusion recognition model to obtain a fusion feature;

[0018] Wherein, before fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model, at least the following steps are further included:

[0019] Acquire a first defect image region and a second defect image region based on the amplitude image and the depth image respectively, wherein the first defect image region and the second defect image region are geometric regions where defects in the amplitude image and the depth image are located respectively; determine a fused defect image region based on the first defect image region and the second defect image region, wherein the fused defect image region does not overlap with the first defect image region and the second defect image region;

[0020] The fusing of the amplitude image and the depth image in the dual-modal image data set based on the fusion recognition model at least includes: extracting the amplitude feature of the area corresponding to the amplitude image based on the fused defect image area; extracting the depth feature of the area corresponding to the depth image based on the fused defect image area; respectively calculating the correlation between the amplitude feature, the depth feature and the defect type to be identified as the weights corresponding to the amplitude feature and the depth feature, and calculating the fusion feature based on the weights corresponding to the features and the amplitude feature and the depth feature;

[0021] The recognition module is used to obtain the defect recognition result of the component to be recognized by using the fusion feature based on the fusion recognition model.

[0022] The present application provides a method and device for intelligently identifying internal defects based on dual-modal ultrasonic images, by acquiring the original data of the component to be identified, the original data at least includes the amplitude data and depth data of the component to be identified, and generating an amplitude image and a depth image based on the original data to form a dual-modal image data set, and then fusing the amplitude image and the depth image in the dual-modal image data set based on a fusion recognition model to obtain a fusion feature, and finally based on the fusion recognition model, using the fusion feature to obtain the defect recognition result of the component to be identified. In this way, the feature extraction network simultaneously extracts the amplitude image and the depth image features of the ultrasonic phased array C scan, and adaptively fuses the features of the two modes based on the dual-modal feature fusion module of the fusion recognition model, and finally the classifier module converts the fused features into the probability distribution of the image containing defects. This defect recognition method based on dual-modal images is more intelligent than the defect recognition method of a single modality, and can improve the accuracy of image recognition through image recognition in a small area and the use of fusion features, while greatly reducing the amount of features required for image recognition, thereby improving the efficiency of defect recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a first embodiment of an intelligent internal defect recognition method based on dual-modality ultrasonic images provided by the present application;

[0024] Figure 2 A schematic diagram of the structure of the fusion recognition model provided in this application;

[0025] Figure 3 This is a structural schematic diagram of Embodiment 1 of the internal defect intelligent identification device based on dual-modal ultrasonic images provided in the present application. DETAILED DESCRIPTION

[0026] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0027] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0028] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0029] The present application provides a method and device for intelligently identifying internal defects based on dual-modality ultrasonic images, which are used to intelligently identify whether a component to be identified has defects.

[0030] The present application provides a method and device for intelligently identifying internal defects based on dual-modal ultrasonic images, by acquiring the original data of the component to be identified, the original data at least including the amplitude data and depth data of the component to be identified, and generating an amplitude image and a depth image based on the original data to form a dual-modal image data set, and then fusing the amplitude image and the depth image in the dual-modal image data set based on a fusion recognition model to obtain a fusion feature, and finally based on the fusion recognition model, using the fusion feature to obtain the defect recognition result of the component to be identified. In this way, the amplitude image and depth image features of the ultrasonic phased array C scan are simultaneously extracted through the feature extraction network, and the dual-modal feature fusion module based on the fusion recognition model adaptively fuses the features of the two modes, and finally the classifier module converts the fused features into the probability distribution of the image containing defects. This defect recognition method based on dual-modal images is more intelligent than the defect recognition method of a single mode, and the internal defect intelligent recognition method based on dual-modal ultrasonic images is more accurate and more robust.

[0031] Specific embodiments are given below to introduce the technical solution of the present application in detail.

[0032] Figure 1This is a flowchart of the first embodiment of the internal defect intelligent identification method based on dual-modality ultrasonic images provided by this application. Figure 1 , the method provided in this embodiment may include:

[0033] S101, acquiring original data of a component to be identified; the original data at least includes amplitude data and depth data of the component to be identified.

[0034] It should be noted that the acquisition of the raw data of the component to be identified at least includes: acquiring the scanning data of the preset depth of the component to be identified by ultrasonic phased array C scanning detection as the raw data. Among them, ultrasonic phased array (Phased Array Ultrasonics) is a technology that uses ultrasonic waves to detect, image and evaluate internal defects of materials. Ultrasonic phased array C refers to the use of ultrasonic phased array technology in this technology, and is aimed at the detection and evaluation of carbon materials.

[0035] In ultrasonic phased array C, a phased array consisting of a set of ultrasonic transmitters and receivers is usually used. These transmitters and receivers can be programmed and controlled as needed to adjust the transmission angle and focus position of the ultrasonic wave. By properly controlling the work of the transmitter and receiver, it is possible to quickly and accurately scan multiple directions inside the material of the component to be identified, thereby achieving all-round detection and imaging.

[0036] Specifically, the raw data includes at least the amplitude data and depth data of the component to be identified. Among them, the amplitude data refers to the amplitude or intensity information of the signal detected by the ultrasonic wave during the scanning process. These data reflect the acoustic properties of the material and the interaction between the ultrasonic wave and the different structures inside the component. Generally, the amplitude data is used to reflect various characteristics inside the component, such as defects, material changes, interfaces, etc. The depth data refers to the time delay experienced by the ultrasonic wave from emission to reception. By measuring these time delays, the propagation distance or depth of the ultrasonic wave inside the component can be determined. The depth data reflects the distance information of different positions inside the component, and is usually used to locate and quantitatively analyze the detected defects or other characteristics.

[0037] For example, in one embodiment, after performing ultrasonic phased array C-scan detection on the structure to be identified, a single image may be obtained including H×W pixels, and the number of raw data sampling points of each pixel is L, so the size of a single raw data is H×W×L. A total of k groups of ultrasonic phased array C-scan raw data are collected, including n groups of raw data containing defects and m groups of raw data not containing defects.

[0038] S102: Generate an amplitude image and a depth image based on the original data to form a dual-modal image data set.

[0039] It should be noted that the generating of the amplitude image and the depth image based on the original data to form a dual-modal image data set specifically includes:

[0040] (1) Scan the component to be identified using the same ultrasonic phased array C scan to obtain the original data of the component.

[0041] (2) Setting a gate threshold according to the quality inspection requirements of the component, and forming a dual-modal image data set according to the gate threshold; determining the gate threshold according to the image noise frequency and the quality inspection accuracy, wherein the gate threshold is inversely proportional to the quality inspection accuracy.

[0042] It should be noted that the gate threshold is set according to the image noise frequency and the quality detection accuracy of the component, and the gate threshold is inversely proportional to the quality detection accuracy. For example, if the detection quality requirement of the component is high, the gate threshold is set low. At this time, even smaller defects in the component need to be identified, that is, smaller defects inside the component to be detected will also be displayed in the image. In the actual process, the gate threshold can be adjusted as needed to select the signal part of interest in the raw data for subsequent processing. In addition, the setting of the gate threshold will also eliminate the display of noise in the image to a certain extent.

[0043] Specifically, according to the set gate threshold, the parts of interest are extracted from the amplitude data and depth data and converted into amplitude images and depth images. The amplitude image shows the signal intensity distribution inside the component, while the depth image shows the distance information of each position inside the component. Then, the generated amplitude image and depth image are combined to form a dual-modal image dataset. Each sample contains a set of amplitude images and depth images, and a total of k groups are used as image datasets, which represent the information of the component to be identified in different aspects, such as the acoustic properties of the material (amplitude image) and the distance information of the internal structure (depth image).

[0044] S103: fusing the amplitude image and the depth image in the dual-modal image dataset based on a fusion recognition model to obtain a fusion feature.

[0045] Wherein, before fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model, at least the following steps are further included:

[0046] Acquire a first defect image region and a second defect image region based on the amplitude image and the depth image respectively, wherein the first defect image region and the second defect image region are geometric regions where defects in the amplitude image and the depth image are located respectively; determine a fused defect image region based on the first defect image region and the second defect image region, wherein the fused defect image region does not overlap with the first defect image region and the second defect image region;

[0047] The fusing of the amplitude image and the depth image in the dual-modal image data set based on the fusion recognition model at least includes: extracting the amplitude features of the area corresponding to the amplitude image based on the fused defect image area; extracting the depth features of the area corresponding to the depth image based on the fused defect image area; respectively calculating the correlation between the amplitude features, the depth features and the defect type to be identified as the weights corresponding to the amplitude features and the depth features, and calculating the fusion features based on the weights corresponding to the features and the amplitude features and the depth features.

[0048] Compared with the traditional feature extraction and identification of the entire image, the method provided by the present invention can directly identify defects through feature extraction and identification of partial areas, thereby improving the computational complexity of defect identification. Furthermore, in order to accurately determine the area where the defect is located, the present invention proposes mutual correction of areas based on the amplitude image and the depth image to obtain the most comprehensive defect area. The image features of the two dimensions are not only used for each other in the feature identification stage, but also verified with each other in the stage of determining the feature extraction range, thereby improving the accuracy of area determination, thereby greatly improving the efficiency and accuracy of defect identification.

[0049] Specifically, the determination of the fused defect image region based on the first defect image region and the second defect image region specifically includes: detecting the non-overlapping geometric region enclosed by the boundaries of the first defect image region and the second defect image region, the non-overlapping geometric region being the region where the first defect image region and the second defect image region do not overlap; identifying the image pixel information in the non-overlapping region; correcting the candidate defect image region based on the image pixel information and the pixel similarity of the defect image region outside the non-overlapping region, the candidate defect image region being the smaller image region between the first defect image region and the second defect image region. For example, the first defect image region is A, the second defect image region is B, the area of ​​region A is larger than that of region B, A includes B, the region formed by the boundary of A and the boundary of B is taken as the non-overlapping geometric region, the correlation and similarity between the pixel information in the non-overlapping geometric region and the pixel information at the boundary of region B are identified, the boundary of region B is corrected, and the corrected boundary is taken as the final fused defect image region.

[0050] The method provided by the present invention, while identifying the region boundary with the feature images of each dimension, comprehensively utilizes the information of the feature images of two dimensions, and obtains the accurate final region boundary after accurate correction, that is, in the feature extraction stage, the feature information of the two dimensions is used as a correction for each other, and in the feature utilization stage, the feature information of the two dimensions is integrated with each other, thereby reducing the amount of data for image processing and improving the accuracy of defect recognition.

[0051] In addition, compared with the traditional method of fusion of preset weights, the present invention determines the weights by calculating the correlation between the features and the types of defects to be identified, that is, the size of the weights is related to the type of identification. The limitation of the results directly affects the previous feature fusion method, improves the utilization rate of the features, and greatly improves the accuracy of defect identification.

[0052] Figure 2 For the structural diagram of the fusion recognition model provided in this application, please refer to Figure 2 The fusion recognition model at least includes a feature extraction module, a bimodal feature fusion module and a classifier module. Specifically, the functions of each module are as follows:

[0053] (1) Feature extraction module: The feature extraction module is used to extract deep semantic features of the amplitude image and the depth image in the dual-modal image dataset.

[0054] The deep semantic features mentioned here refer to the features in the fused defect image area, that is, the features of the amplitude image and the depth feature area.

[0055] Specifically, the feature extraction module includes a feature extraction network with shared weights. The feature extraction network with shared weights refers to a model structure that uses shared parameters in the feature extraction process. This structure allows the same parameters to be used to extract features when processing different inputs, thereby reducing the number of model parameters, improving the generalization ability of the model, and making more effective use of data.

[0056] In bimodal image datasets, both amplitude images and depth images contain information about components, but these two images usually have different feature representations. The feature extraction network with shared weights can process these two inputs at the same time by sharing parameters and extract shared and universal feature representations.

[0057] In specific implementation, for example, in one embodiment, the feature extraction network with shared weights can adopt some classic deep learning models, such as convolutional neural network (CNN). In this network structure, the parameters of the convolution layer are shared, that is, no matter whether the input is an amplitude image or a depth image, the same convolution kernel is used to extract features. In this way, the network can learn the features that are commonly present in the image without being affected by a specific input type.

[0058] Combined with the above example of obtaining the original data of the component to be identified, the feature extraction network with shared weights is used to extract features from the amplitude image and depth image obtained by the ultrasonic phased array C scanning to obtain the amplitude feature A and the depth feature D. The process can be expressed by the following formula:

[0059] ;

[0060] in, is the feature extraction network, is the magnitude image, is the depth image.

[0061] Preferably, the feature extraction network provided in the present application is VGG16, AlexNet, ResNet, DenseNet or Xception pre-trained on ImageNet, and the part after the global pooling layer in the feature extraction network is not used. This can avoid overfitting or reduce model complexity, save computing resources, and retain the general feature representation capabilities learned by these models on the ImageNet dataset.

[0062] (2) Bimodal feature fusion module: The bimodal feature fusion module analyzes the correlation between the amplitude image and the depth image in the bimodal image data set and the defect type to be identified based on the deep semantic features of the two images. The correlation is used to represent the contribution of the feature to the defect type to be identified. The weighted sum of the deep semantic features of the amplitude image and the depth image is calculated using the correlation as a weight to obtain the fused feature.

[0063] It should be noted that the fusion recognition model also includes a global average pooling layer between the feature extraction module and the bimodal feature fusion module; the global average pooling layer is used to unify the features extracted in the spatial dimension.

[0064] In a specific implementation, the process of fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model to obtain the fusion feature includes:

[0065] (i) Using a feature extraction module to extract features from the defect image region fused with the dual-modal image dataset, and obtaining extracted features of the amplitude image and the depth image corresponding to the defect image region fused with the dual-modal image dataset.

[0066] (ii) The extracted features are subjected to a preset processing and then input into a dual-modal feature fusion module; the preset processing at least includes a global average pooling operation and an addition operation.

[0067] Specifically, after obtaining the amplitude feature A and the depth feature D, the features are uniformly reduced to 1×1 in the spatial dimension through global average pooling, and then the two are added and sent to the bimodal feature fusion module. The ultimate goal of the bimodal feature fusion module is to analyze the contribution of the two to the final defect recognition based on the characteristics of the two. Preferably, the contribution is the correlation of the features to the type of defects to be identified output by the final model. The specific composition of the bimodal feature fusion module is composed of a fully connected layer and a softmax layer. The fully connected layer further reduces the feature sum to 2, and the softmax layer converts it into a probability distribution, and finally obtains the weight value of the bimodal feature. Specifically, the process can be expressed by the following formula:

[0068] ;

[0069] in, is a bimodal feature fusion module. is the weight corresponding to the amplitude feature, is the weight corresponding to the deep feature, is the fully connected layer, is the magnitude image, is the depth image.

[0070] (iii) The dual-modal feature fusion module calculates the fusion weights of the extracted features after processing according to the contribution rates of the extracted features of the amplitude image and the depth image to defect recognition, and weightedly fuses the extracted features based on the fusion weights to obtain fused features.

[0071] Specifically, the process can be expressed by the following formula:

[0072] ;

[0073] in, To fusion features, is the weight corresponding to the amplitude feature, is the weight corresponding to the depth feature, A is the amplitude feature, and D is the depth feature.

[0074] (3) Classifier module: The classifier module is used to output whether there is a defect in the image of the component to be identified and the probability of the defect existing based on the fusion features.

[0075] Specifically, the classifier module includes a first Dropout layer, a first fully connected layer, a ReLu activation function layer, a second Dropout layer, a second fully connected layer and a Softmax layer connected in sequence. The functions and connection methods of each layer are as follows:

[0076] First Dropout layer: The first Dropout layer is used to randomly discard a part of the fusion features to reduce the risk of overfitting. It should be noted that the first Dropout layer will make the output of some neurons become zero, thereby reducing the interdependence between neurons and helping to improve the generalization ability of the model.

[0077] First fully connected layer: The first fully connected layer receives the fused features after the first Dropout layer as input, and maps the high-dimensional features to the first feature space through linear transformation of the weight matrix, and the dimension of the first feature space is higher than the dimension of the original features.

[0078] ReLu activation function layer: The ReLu activation function sets the negative part of the mapped feature to zero and retains the positive part, introducing a nonlinear transformation; this helps the network learn complex data patterns and improves the expressiveness of the model.

[0079] Second Dropout layer: The second Dropout layer is used to randomly discard input features to further reduce overfitting. It can improve the generalization ability of the model and protect the model from the influence of training data.

[0080] Second fully connected layer: The second fully connected layer takes the fused features processed by the ReLu activation function layer and the second Dropout layer as input, further maps the fused features, and calculates the probability vector.

[0081] Softmax layer: The Softmax layer receives the output of the second fully connected layer and converts the probability vector into a probability distribution. Specifically, the output of the second fully connected layer is converted into a probability vector that describes the probability distribution of whether the image has defects. The Softmax function converts the original linear output into a probability value between 0 and 1, and ensures that the sum of these probability values ​​is 1. This means that each element of the Softmax layer output can be interpreted as the predicted probability of the corresponding category, that is, the probability of whether the image belongs to a certain category. The role of the Softmax layer is to convert the output of the network into a probability distribution that is easy to interpret and use, so that probability prediction and result interpretation of multi-classification problems can be easily performed.

[0082] S104: Based on the fusion recognition model, the defect recognition result of the component to be recognized is obtained by utilizing the fusion feature.

[0083] It should be noted that, based on the results output by the classifier module of the fusion recognition model, information such as whether there are defects in the component to be identified, the location and type of the defects, etc. can be obtained. Preferably, the recognition results can be further interpreted and analyzed according to specific application needs and task requirements, such as making an identification report, triggering an alarm, and performing subsequent maintenance. It should also be noted that the present application uses the fusion features to obtain the defect recognition results of the component to be identified, which can be applied to ultrasonic phased array C-scan detection of various materials such as composite materials, ceramic materials, and metal materials, and has a wide range of applications.

[0084] The intelligent internal defect recognition method based on dual-modal ultrasonic images provided in this embodiment obtains the original data of the component to be identified, the original data at least includes the amplitude data and depth data of the component to be identified, and generates an amplitude image and a depth image based on the original data to form a dual-modal image data set, and then fuses the amplitude image and the depth image in the dual-modal image data set based on a fusion recognition model to obtain a fusion feature, and finally obtains the defect recognition result of the component to be identified based on the fusion recognition model and the fusion feature. In this way, the amplitude image and depth image features of the ultrasonic phased array C scan are extracted simultaneously through a feature extraction network with shared weights, and the features of the two modes are adaptively fused based on the dual-modal feature fusion module of the fusion recognition model, and finally the classifier module converts the fused features into a probability distribution of defects in the image. This defect recognition method based on dual-modal images is smarter than the single-modal defect recognition method. It can improve the accuracy of image recognition by using image recognition and fusion features in a small area, and greatly reduce the number of features that need to be processed for image recognition, thereby improving the efficiency of defect recognition. Fusion features can be used to obtain defect recognition results of components to be identified, thereby realizing automatic detection and diagnosis of components. In addition, this defect recognition method based on fusion features can also improve the accuracy and reliability of recognition, and can also better adapt to components of different types and sizes.

[0085] Corresponding to the aforementioned embodiment of an internal defect intelligent recognition method based on dual-modal ultrasonic images, the present application also provides an embodiment of an internal defect intelligent recognition device based on dual-modal ultrasonic images.

[0086] Figure 3 This is a schematic diagram of the structure of the first embodiment of the internal defect intelligent identification device based on dual-modal ultrasonic images provided by this application. Figure 3 The device provided in this embodiment includes an acquisition module 310, a construction module 320, a fusion module 330 and an identification module 340; wherein,

[0087] The acquisition module 310 is used to acquire raw data of the component to be identified; the raw data at least includes amplitude data and depth data of the component to be identified;

[0088] The construction module 320 is used to generate an amplitude image and a depth image based on the original data to form a dual-modal image data set;

[0089] The fusion module 330 is used to fuse the amplitude image and the depth image in the dual-modal image dataset based on a fusion recognition model to obtain a fusion feature;

[0090] Wherein, before fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model, at least the following steps are further included:

[0091] Acquire a first defect image region and a second defect image region based on the amplitude image and the depth image respectively, wherein the first defect image region and the second defect image region are geometric regions where defects in the amplitude image and the depth image are located respectively; determine a fused defect image region based on the first defect image region and the second defect image region, wherein the fused defect image region does not overlap with the first defect image region and the second defect image region;

[0092] The fusing of the amplitude image and the depth image in the dual-modal image data set based on the fusion recognition model at least includes: extracting the amplitude feature of the area corresponding to the amplitude image based on the fused defect image area; extracting the depth feature of the area corresponding to the depth image based on the fused defect image area; respectively calculating the correlation between the amplitude feature, the depth feature and the defect type to be identified as the weights corresponding to the amplitude feature and the depth feature, and calculating the fusion feature based on the weights corresponding to the features and the amplitude feature and the depth feature;

[0093] The recognition module 340 is used to obtain the defect recognition result of the component to be recognized by using the fusion feature based on the fusion recognition model.

[0094] The device of this embodiment can be used to perform Figure 1 The steps, specific implementation principles and implementation processes of the method embodiment shown are similar and will not be repeated here.

[0095] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0096] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0097] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An intelligent internal defect recognition method based on dual-modality ultrasonic images, characterized in that: The method comprises: Acquire original data of the component to be identified; the original data at least includes amplitude data and depth data of the component to be identified; Generating an amplitude image and a depth image based on the raw data to form a dual-modal image data set; fusing the amplitude image and the depth image in the dual-modal image dataset based on a fusion recognition model to obtain a fusion feature; Wherein, before fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model, at least the following steps are further included: Acquire a first defect image region and a second defect image region based on the amplitude image and the depth image respectively, wherein the first defect image region and the second defect image region are geometric regions where defects in the amplitude image and the depth image are located respectively; determine a fused defect image region based on the first defect image region and the second defect image region, wherein the fused defect image region does not overlap with the first defect image region and the second defect image region; The fusing of the amplitude image and the depth image in the dual-modal image data set based on the fusion recognition model at least includes: extracting the amplitude feature of the area corresponding to the amplitude image based on the fused defect image area; extracting the depth feature of the area corresponding to the depth image based on the fused defect image area; respectively calculating the correlation between the amplitude feature, the depth feature and the defect type to be identified as the weights corresponding to the amplitude feature and the depth feature, and calculating the fusion feature based on the weights corresponding to the features and the amplitude feature and the depth feature; Based on the fusion recognition model, using the fusion feature to obtain a defect recognition result of the component to be recognized; The fusion recognition model at least includes a feature extraction module, a bimodal feature fusion module and a classifier module; The feature extraction module is used to extract deep semantic features of the amplitude image and the depth image in the dual-modal image dataset; The bimodal feature fusion module analyzes the correlation between the amplitude image and the depth image in the bimodal image data set and the type of defect to be identified based on the deep semantic features of the amplitude image and the depth image. The correlation is used to represent the contribution of the feature to the type of defect to be identified. The weighted sum of the deep semantic features of the amplitude image and the depth image is calculated using the correlation as a weight to obtain the fused feature. The classifier module is used to output whether there is a defect in the image of the component to be identified and the probability of the defect existing based on the fusion features.

2. The method according to claim 1, characterized in that The process of fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model to obtain the fusion feature includes: Using a feature extraction module to extract features in the fused defect image area of ​​the dual-modal image data set, and obtain extracted features of the amplitude image and the depth image corresponding to the fused defect image area; The extracted features are input into a dual-modal feature fusion module after being subjected to a preset processing; the preset processing at least includes a global average pooling operation and an addition operation; The dual-modal feature fusion module calculates the fusion weights of each processed extracted feature according to the contribution rate of the extracted features of the amplitude image and the depth image to defect recognition, and weightedly fuses the extracted features based on the fusion weights to obtain fused features.

3. The method according to claim 1, characterized in that The fusion recognition model also includes a global average pooling layer between the feature extraction module and the bimodal feature fusion module; the global average pooling layer is used to unify the features extracted in the spatial dimension.

4. The method according to claim 2, characterized in that: The feature extraction module includes a feature extraction network with shared weights.

5. The method according to claim 1, characterized in that The classifier module includes a first Dropout layer, a first fully connected layer, a ReLu activation function layer, a second Dropout layer, a second fully connected layer and a Softmax layer connected in sequence; The first Dropout layer is used to randomly discard a portion of the fusion features; The first fully connected layer receives the fused features after the first Dropout layer as input, and maps the high-dimensional features to a first feature space through a linear transformation of a weight matrix, wherein the dimension of the first feature space is higher than the dimension of the original features; The ReLu activation function sets the negative part of the mapped feature to zero and retains the positive part; The second Dropout layer is used to randomly discard input features; The second fully connected layer takes the fused features processed by the ReLu activation function layer and the second Dropout layer as input, maps the fused features, and calculates the probability vector; The Softmax layer receives the output of the second fully connected layer and converts the probability vector into a probability distribution.

6. The method according to claim 1, characterized in that The obtaining of the original data of the component to be identified at least includes: The scanning data of the preset depth of the component to be identified is obtained by ultrasonic phased array C scanning detection to serve as the original data.

7. The method according to claim 1, characterized in that Generating an amplitude image and a depth image based on the original data to form a dual-modal image data set specifically includes: Scanning the component to be identified with the same ultrasonic phased array C to obtain raw data of the component; A gate threshold is set according to the quality detection requirements of the component, and a dual-modal image data set is formed according to the gate threshold; the gate threshold is determined according to the image noise frequency and the quality detection accuracy, and the gate threshold is inversely proportional to the quality detection accuracy.

8. The method according to claim 1, characterized in that: The determining of the fused defect image area based on the first defect image area and the second defect image area specifically includes: Detecting a non-overlapping geometric area enclosed by the boundaries of the first defect image area and the second defect image area, wherein the non-overlapping geometric area is an area where the first defect image area and the second defect image area do not overlap; Identify image pixel information in the non-overlapping area; A candidate defective image region is corrected based on the image pixel information and the pixel similarity of the defective image region outside the non-overlapping region, and the candidate defective image region is a smaller image region between the first defective image region and the second defective image region.

9. An intelligent internal defect recognition device based on dual-modality ultrasonic images, characterized in that: The device comprises an acquisition module, a construction module, a fusion module and an identification module; wherein, The acquisition module is used to acquire the original data of the component to be identified; the original data at least includes the amplitude data and depth data of the component to be identified; The construction module is used to generate an amplitude image and a depth image based on the original data to form a dual-modal image data set; The fusion module is used to fuse the amplitude image and the depth image in the dual-modal image dataset based on a fusion recognition model to obtain a fusion feature; Wherein, before fusing the amplitude image and the depth image in the dual-modal image dataset based on the fusion recognition model, at least the following steps are further included: Acquire a first defect image region and a second defect image region based on the amplitude image and the depth image respectively, wherein the first defect image region and the second defect image region are geometric regions where defects in the amplitude image and the depth image are located respectively; determine a fused defect image region based on the first defect image region and the second defect image region, wherein the fused defect image region does not overlap with the first defect image region and the second defect image region; The fusing of the amplitude image and the depth image in the dual-modal image data set based on the fusion recognition model at least includes: extracting the amplitude feature of the area corresponding to the amplitude image based on the fused defect image area; extracting the depth feature of the area corresponding to the depth image based on the fused defect image area; respectively calculating the correlation between the amplitude feature, the depth feature and the defect type to be identified as the weights corresponding to the amplitude feature and the depth feature, and calculating the fusion feature based on the weights corresponding to the features and the amplitude feature and the depth feature; The recognition module is used to obtain a defect recognition result of the component to be recognized by using the fusion feature based on the fusion recognition model; The fusion recognition model at least includes a feature extraction module, a bimodal feature fusion module and a classifier module; The feature extraction module is used to extract deep semantic features of the amplitude image and the depth image in the dual-modal image dataset; The bimodal feature fusion module analyzes the correlation between the amplitude image and the depth image in the bimodal image data set and the type of defect to be identified based on the deep semantic features of the amplitude image and the depth image. The correlation is used to represent the contribution of the feature to the type of defect to be identified. The weighted sum of the deep semantic features of the amplitude image and the depth image is calculated using the correlation as a weight to obtain the fused feature. The classifier module is used to output whether there is a defect in the image of the component to be identified and the probability of the defect existing based on the fusion features.

Citation Information

Patent Citations

  • Weldment defect detection system and detection method

    CN107340328A

  • Long-distance pipeline ray image defect intelligent identification method based on self-attention network

    CN114445366A

  • Method for automatically identifying defect type of polyethylene electrofusion joint by means of ultrasonic phased array inspection

    WO2017063355A1