Roller defect identification method based on multi-modal attention fusion network

The multi-modal attention fusion network combines A-scan and D-scan data to extract roll defect features, which solves the problem of difficulty in qualitative identification of defects in ultrasonic testing, improves the accuracy and efficiency of detection, and realizes automatic identification of roll defects.

CN118840602APending Publication Date: 2024-10-25NANJING FORESTRY UNIV
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410909996.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing ultrasonic testing technology has difficulties in qualitative identification of internal defects in rolls. Manual interpretation requires a large workload, is inefficient, and can easily lead to misjudgment, affecting safety.

Method used

A roll defect identification method based on multi-modal attention fusion network is adopted, combining A-scan timing signals and D-scan images, extracting features through the convolution module and improved swin transformer module, and using the attention feature fusion module for adaptive weighted fusion. Improve the recognition accuracy of the model.

Benefits of technology

It achieves accurate identification of roll defects, improves detection speed and accuracy, reduces human workload, reduces the risk of misjudgment, and enhances detection reliability and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840602A_ABST
    Figure CN118840602A_ABST
Patent Text Reader

Abstract

The invention discloses a roller defect identification method based on a multi-modal attention fusion network, and the method comprises the steps: obtaining an A scanning time sequence signal of a defect in a roller and a D scanning image corresponding to the defect, and randomly dividing the A scanning time sequence signal and the D scanning image into a training sample and a test sample; a multi-modal attention fusion network model is constructed, a double-branch feature extraction layer is formed by a convolution module and an improved swin transformer module, and an attention feature fusion module is adopted to classify extracted feature vectors. According to the method, the defects of poor effect performance and insufficient information utilization of a single mode in a complex defect identification task are overcome, and two different data sources of an A scanning signal and a D scanning image are comprehensively utilized to obtain more comprehensive and rich roller internal defect information; and feature extraction of different data and organic fusion of feature information are realized through a multi-modal attention fusion network, optimization solution is carried out, and the accuracy of the model during roller defect classification and identification and the adaptability of the model to complex conditions are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of ultrasonic defect detection, and in particular relates to a roller defect recognition method based on a multimodal attention fusion network. Background Art

[0002] As an indispensable tool in the field of metal processing, rollers play a key role in the steel industry, non-ferrous metal processing, and aluminum profile production. However, since rollers are subjected to harsh conditions such as high temperature, high pressure, and heavy load during long-term use, defects such as cracks, shrinkage holes, and white spots that are not discovered and repaired in time during the production and manufacturing process can easily pose a potential threat to the safe use of products. Therefore, accurately assessing the internal defects of rollers is the key to ensuring the safe and reliable operation of equipment during service and improving manufacturing processes and product quality.

[0003] Ultrasonic testing is widely used in the quality inspection of rolling mill rolls due to its advantages of strong penetration, high sensitivity, portable equipment and safe operation. The current more advanced ultrasonic phased array detection technology adjusts the focus position and focus direction by controlling the acoustic emission and reception delay of the array chip, with richer imaging methods, faster detection speed and more flexible operation. However, due to the complexity and heterogeneity of materials, as well as the diversity of defects themselves, ultrasonic testing is difficult to qualitatively evaluate defects. At present, the interpretation of ultrasonic testing results is generally carried out by testing technicians, but the classification and diagnosis of defect echo signals based on manual methods is labor-intensive and inefficient, and is limited by factors such as their defect identification experience and work attitude, which can easily lead to misjudgment of defects and cause safety accidents. With the vigorous development of deep learning in recent years, a large number of scholars have combined deep learning with various fields and achieved good results. Many scholars are also committed to applying deep learning technology to material defect detection. The use of deep learning methods to classify and identify roller defects not only effectively saves manpower in the detection process, greatly reduces the adverse effects caused by the personal experience of inspectors, but also improves the detection speed and accuracy, and realizes the automation and intelligence of roller quality inspection in industrial assembly lines. Summary of the invention

[0004] The purpose of the present invention is to solve the problem of difficulty in qualitatively identifying internal defects of rollers in ultrasonic testing, and proposes a roller defect recognition method based on a multimodal attention fusion network.

[0005] The purpose of the present invention is mainly achieved through the following technical solutions: A method for identifying roller defects based on a multimodal attention fusion network comprises the following steps:

[0006] Step 1: Obtain the A-scan time series signal of the internal defect of the roller and the D-scan image of the corresponding defect, and randomly divide them into training samples and test samples;

[0007] Step 2: Construct a multimodal attention fusion network model, which consists of a dual-branch feature extraction layer consisting of a convolution module and an improved swin transformer module, and use the attention feature fusion module to classify the extracted feature vectors;

[0008] Step 3: Define the types of defects and conduct defect training and classification identification.

[0009] Furthermore, the step 1 specifically includes the following steps:

[0010] 1.1. The roll defect data is derived from the roll defect data measured on site, and the entire roll surface is spirally scanned using a phased array probe;

[0011] 1.2. The data obtained from the same defect in two different imaging modes, A-scan and D-scan, are marked with the same group number;

[0012] 1.3. Label each group of defect data according to different defect types, and randomly divide the defect data of two different imaging methods into training samples and test samples according to the group number.

[0013] Furthermore, the step 2 includes the following process:

[0014] 2.1. Build a one-dimensional convolutional network to extract the local features of the A-scan time series signal. The built one-dimensional convolutional network uses a total of 5 convolutions to extract the local features of the A-scan time series signal. The 5 convolutions are composed of two different groups of convolution groups alternately connected in series. The specific steps are:

[0015] 2.1.1, wherein the first convolution group includes, in order, 1 convolution layer, 1 batch normalization layer, and 1 activation layer, and the second convolution group includes, in order, 1 convolution layer, 1 batch normalization layer, 1 activation layer, and 1 average pooling layer;

[0016] 2.1.2. Short-circuit the two connected convolution groups to achieve local residual;

[0017] 2.1.3. The output of the first convolution group is added to the output of the last convolution group to achieve the global residual.

[0018] 2.2. Use the improved swin transformer model as the feature extraction network for D-scan images; the specific steps are:

[0019] 2.2.1. In the swin transformer block, the window self-attention stage (W-MSA) is replaced with the window cross-attention fusion (CW-MSA) to extract the feature information of the D-scan image, replacing the pixel-based global information of W-MSA, making up for the problem of low attention to some core targets and incomplete target integrity information caused by the insufficient global vision of the swin transformer;

[0020] 2.2.2. The CW-MSA stage first performs feature extraction, which consists of a depth-separable convolution global feature extraction branch and a window local feature extraction branch in parallel, which are responsible for extracting the global feature X d and the window local feature X w , where the global feature X d With local features X w The dimensions are consistent;

[0021] 2.2.3, and use cross attention to fuse cross-modal feature data, the global feature X d Generate query vector (Qurey), window local feature X w Generate key and value vectors to obtain features with global information. Add global related features to the local features of the window to ensure that the window self-attention calculation can achieve global information interaction. At the same time, the features that participate in the subsequent shift window self-attention calculation contain global information, which is conducive to the network capturing the core target features with integrity under the global perspective.

[0022] 2.3. The attention feature fusion module performs adaptive weighted fusion on the two sets of feature vectors extracted by the convolution module and the improved swin transformer module to obtain enhanced feature representation, and uses the classifier to give the defect classification result of the network; the specific steps are:

[0023] 2.3.1. The attention feature fusion module first inputs the defect feature maps extracted by the convolution module and the improved swin transformer module into classifiers 1 and 2 respectively to obtain classification result component C1 and result component C2;

[0024] 2.3.2. The feature maps extracted by the two parallel branches are concatenated at the same time, and the concatenated feature vector is input into the compression and excitation network and then connected to the classifier to obtain the classification result component C3. The compression and excitation network can adaptively learn the weight of each channel, thereby enhancing the expression ability and performance of the neural network, so that the network can more effectively learn and utilize the relationship between feature channels;

[0025] 2.3.3, where the classifier uses multiple fully connected layers for feature extraction and combination, then introduces nonlinearity through activation functions, and reduces overfitting through discarding layers;

[0026] 2.3.4. Finally, adaptive weighted fusion learning is used to assign appropriate weights to the three classification result components and then the final output result of the network is given through the classification function; the calculation process of the adaptive weighted fusion learning is:

[0027] y=softmax(αC1+βC2+γC3);

[0028] Among them, the weight values ​​α, β and γ are generated by mapping the obtained three classifier component values ​​to [0, 1] using the Sigmoid activation function.

[0029] Furthermore, when performing defect classification training and identification in step 3, two groups of data with the same group number obtained by the same defect in two different imaging modes, A-scan and D-scan, are input as a group of defect samples into the multimodal attention fusion network for training; in the defect classification and identification process, the two groups of data with the same group number are also input into the model as a group of samples to be identified; finally, a general defect classification formula model is established for the three dangerous defects that are easily formed in roll manufacturing, namely cracks, shrinkage holes and white spots; in the classification task, the softmax function is often used, and its formula is:

[0030]

[0031] Where: is the probability of predicting label i; J is the total number of categories; W is the weight value; b is the bias value.

[0032] The beneficial effects of the present invention are:

[0033] (1) The present invention comprehensively utilizes two different data sources, namely, ultrasonic A-scan timing signals and D-scan image signals, to provide more comprehensive and rich time-domain and space-domain information of defects.

[0034] (2) The present invention uses the improved swin transformer network as the feature extraction network of the D-scan image, and adopts the window cross attention fusion (CW-MSA) to extract the feature information of the D-scan image, so as to make up for the problem that some core targets have low attention and incomplete target integrity information caused by the insufficient global vision of the swin transformer.

[0035] (3) The present invention adopts an adaptive attention weighted fusion strategy to expand the model's field of view from a single modality to multiple modalities, organically combine the feature information of each modality, perform optimization solution, and improve the model's recognition accuracy and adaptability to complex situations. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 The present invention is a flow chart of the method.

[0037] Figure 2 Schematic diagram of the convolution module of the present invention.

[0038] Figure 3 It is a schematic diagram of the improved swin transformer block of the present invention.

[0039] Figure 4 Schematic diagram of the compression and excitation network of the present invention.

[0040] Figure 5 Schematic diagram of the multimodal attention fusion network model of the present invention. DETAILED DESCRIPTION

[0041] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

[0042] The embodiment of the present invention provides a method for identifying roll defects. Figure 1 : is a flow chart of a method for identifying roll defects provided by an embodiment of the present invention, the method comprising steps 1 to 3, specifically:

[0043] Step 1, constructing a data set: In the specific implementation of this embodiment, ultrasonic detection automation equipment is used to perform a spiral scan on the entire outer surface of the roller, collect A-scan and D-scan data of the internal defects of the roller, and annotate and divide the data. The image formed by each imaging mode contains different defect information. The more images there are, the richer the defect information contained. In manual identification, in order to ensure the accuracy of judgment, several scanned images are usually combined for judgment. A-scan imaging generates a single-dimensional image by measuring the reflection of sound waves, and performs well in detecting small defects; D-scan imaging is the superposition of a series of A-scan displays, which provides more comprehensive defect feature information and is more effective for identifying complex defects. Therefore, this embodiment combines the two imaging methods of A-scan and D-scan for defect identification, and can comprehensively utilize their respective advantages to achieve accurate classification and comprehensive evaluation of different types of defects, thereby improving the reliability of defect detection. The specific steps are:

[0044] 1.1. The ultrasonic detection probe in this embodiment is a 64-element linear array probe, in which A-scan and D-scan are two different imaging displays. A-scan display is a waveform display, in which the horizontal axis of the instrument screen represents the propagation time (or distance) of the sound wave, and the vertical axis represents the amplitude of the reflected wave; D-scan display is a projection image display in the direction of the workpiece end face, that is, the front view. The defect detection results of the roller are first stored in the detector, and after the detection is completed, it is connected to the computer to export all defect data;

[0045] 1.2. When marking defect data, the data generated by the same defect under different scanning imaging modes are grouped into the same group number, that is, the A scan and D scan data of the same defect are a group of samples. Then, each group of defect data is labeled according to the defect type, and all samples are randomly divided into training sets and test sets. In this embodiment, when performing image encoding, the first group of defect detection samples are encoded as A1 and D1, the second group of defect detection samples are encoded as A2 and D2, ..., and the nth group of defect detection image samples are encoded as A1 and D1. n , D n ;

[0046] 1.3. In this embodiment, when dividing the data set, all samples are randomly divided into a training set and a test set in a ratio of 8:2 according to the group number.

[0047] Step 2: Use the training set data to iterate the multimodal attention fusion model multiple times. The overall structure of the model is as follows: Figure 5 , including a dual-branch feature extraction layer consisting of a convolution module and an improved swin transformer module, and an attention feature fusion module. The specific process is:

[0048] 2.1, such as Figure 2 As shown in the figure, a one-dimensional convolutional network is built to extract the local features of the A-scan time series signal. The one-dimensional convolutional network uses a total of 5 convolutions to extract the local features of the A-scan time series signal. The 5 convolutions are composed of two different convolution groups connected alternately in series. The specific steps are:

[0049] 2.1.1. The first convolution group includes 1 convolution layer, 1 batch normalization layer and 1 activation layer in order, and the second convolution group includes 1 convolution layer, 1 batch normalization layer, 1 activation layer and 1 average pooling layer in order. The batch normalization layer, activation layer and pooling layer are connected after the convolution layer to improve the training speed, stability and generalization ability of the neural network. The activation layer uses the Leaky ReLU function;

[0050] 2.1.2. Short-circuit the two connected convolution groups to achieve local residual;

[0051] 2.1.3. The output of the first convolution group is added to the output of the last convolution group to achieve the global residual.

[0052] 2.2, such as Figure 3 As shown in Figure 1, the improved swin transformer model is used as the feature extraction network of the D-scan image; the specific steps are:

[0053] 2.2.1. In the swin transformer block, the window self-attention stage (W-MSA) is replaced with the window cross-attention fusion (CW-MSA) to extract the feature information of the D-scan image, replacing the pixel-based global information of W-MSA, making up for the problem of low attention to some core targets and incomplete target integrity information caused by the insufficient global vision of the swin transformer;

[0054] 2.2.2. The CW-MSA stage first performs feature extraction, which consists of a depth-separable convolution global feature extraction branch and a window local feature extraction branch in parallel, which are responsible for extracting the global feature X d and the window local feature X w , where the global feature X d With local features X w The dimensions are consistent;

[0055] 2.2.3, and use cross attention to fuse cross-modal feature data, the global feature X d Generate query vector (Qurey), window local feature X w Generate key and value vectors to obtain features with global information. Add global related features to the local features of the window to ensure that the window self-attention calculation can achieve global information interaction. At the same time, the features that participate in the subsequent shift window self-attention calculation contain global information, which is conducive to the network capturing the core target features with integrity under the global perspective.

[0056] 2.3. Use the attention feature fusion module to perform decision-level fusion on defect features to obtain enhanced feature representation, and use the classifier to give the defect classification results of the network; the specific steps are:

[0057] 2.3.1, the attention feature fusion module first inputs the defect feature maps extracted by the convolution module and the improved swin transformer module into classifiers 1 and 2 respectively to obtain the classification result component C1 and the result component C2, and obtains the independent feature classification results of different data sources;

[0058] 2.3.2. At the same time, the feature maps extracted by the two parallel branches are spliced ​​together, and the spliced ​​feature vector is input into the compression and excitation network and then connected to classifier 3 to obtain the result component C3. Through feature map splicing and feature enhancement of the attention mechanism, a more comprehensive feature representation can be obtained. The structure of classifier 3 is the same as that of classifier 1. Figure 4 As shown in the figure, the compression and excitation network compresses the feature map into a feature vector through global average pooling, and then uses the fully connected layer to generate the weight of each channel to highlight the important feature channels and optimize the feature expression;

[0059] 2.3.3, where the classifier uses multiple fully connected layers for feature extraction and combination, then introduces nonlinearity through activation functions, and reduces overfitting through discarding layers;

[0060] 2.3.4. Finally, adaptive weighted fusion learning is used to assign appropriate weights to the three classification result components, and then the final output result of the network is given by the classification function. The calculation process is:

[0061] y=softmax(αC1+βC2+γC3);

[0062] Among them, the weight values ​​α, β and γ are generated by mapping the obtained three classifier component values ​​to [0, 1] using the Sigmoid activation function. Through the weighted fusion strategy, the model's field of view is expanded from a single modality to multi-modality, and the information of each modality is organically combined for optimization, which improves the model's adaptability to complex situations.

[0063] Step 3, input the defect data set into the multimodal attention fusion network model training, and use the trained model for defect classification and identification. This embodiment allows the sample data to enter the corresponding processing channel according to the sample naming features. If the A-scan signal data A1 is input to the convolution module, it is also necessary to search for the D1 image of the same defect and input it into the improved swintransformer module. In this embodiment, a general defect classification formula model is established for the three dangerous defects that are easily formed in the manufacturing of rolling mills, namely cracks, shrinkage holes, and white spots, to obtain the classification results. Use the softmax function, and its formula is:

[0064]

[0065] Where: is the probability of predicting label i; J is the total number of categories; W is the weight value; b is the bias value.

[0066] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A roll defect recognition method based on multimodal attention fusion network, Features: Step 1: Obtain the A-scan time series signal of the internal defect of the roller and the D-scan image of the corresponding defect, and randomly divide them into training samples and test samples; Step 2: Construct a multimodal attention fusion network model, which consists of a dual-branch feature extraction layer consisting of a convolution module and an improved swin transformer module, and use the attention feature fusion module to classify the extracted feature vectors; Step 3: Define the types of defects and conduct defect training and classification identification.

2. According to claim 1, the method for roller defect recognition based on multimodal attention fusion network, Features: The step 1 comprises: The roll defect data comes from a large amount of natural roll defect data measured on-site. The phased array probe is used to perform spiral scanning on the entire roll surface. The data obtained by the two different imaging modes of A-scan and D-scan for the same defect are marked with the same group number. Each group of defect data is labeled according to different defect types, and the defect data of the two different imaging modes are randomly divided into training samples and test samples.

3. The method for roller defect recognition based on multimodal attention fusion network according to claim 1, Features: The step 2 specifically includes: 3.

1. A one-dimensional convolutional network is used to extract representative local features from the A-scan time series signal. The convolutional module is composed of multiple convolutional layers, pooling layers, batch normalization (BN) layers, and activation layers connected in series. The convolutional layer is used to extract features from the input data, and a batch normalization layer, average pooling, and Leaky Relu activation function layer are added after the convolutional layer, and skip connections are introduced between the convolutional layers. 3.

2. Based on the improved swin transformer module, the window cross attention fusion (CW-MSA) is used to extract feature information in the window self-attention stage, replacing the pixel-based global information of W-MSA. The CW-MSA stage first performs feature extraction, which consists of a depth-separable convolution global feature extraction branch and a window local feature extraction branch in parallel, which are responsible for extracting global features X d and the window local feature X w , and then use cross attention to fuse the cross-modal feature data, the global feature X d Generate query vector (Qurey), window local feature X w Generate key and value vectors, and then input the shift window self-attention to participate in the calculation of features; 3.

3. The attention feature fusion module performs adaptive weighted fusion on the two sets of feature vectors extracted by the convolution module and the improved swin transformer module to obtain an enhanced feature representation, and uses a classifier to give the defect classification result of the network. The attention feature fusion module first inputs the defect feature map extracted by the convolution module and the improved swin transformer module into classifiers 1 and 2 respectively to obtain the classification result component C. 1 and the result component C 2 ; 3.

4. At the same time, the feature maps extracted by the two parallel branches are spliced, and the spliced ​​feature vector is input into the compression and excitation network and then connected to the classifier to obtain the classification result component C 3 , the compression and excitation network can adaptively learn the weight of each channel; then, the adaptive weighted fusion learning is used to assign appropriate weights to the three classification result components and then the final output result of the network is given by the classification function; the calculation process of the adaptive weighted fusion learning is: y=softmax(αC 1 +βC 2 +γC 3 ); Among them, the weight values ​​α, β and γ are generated by mapping the obtained three classifier component values ​​to [0, 1] using the Sigmoid activation function.

4. According to claim 1, the roller ultrasonic detection data recognition method based on multimodal attention fusion network, Features: The step 3 comprises: Two groups of data with the same group number obtained from the same defect in two different imaging modes, A-scan and D-scan, are input as a group of defect samples into the multimodal attention fusion network for training; in the defect classification and recognition process, the two groups of data with the same group number are also input into the model as a group of samples to be identified; finally, the softmax function is used to establish a defect classification formula model for the three dangerous defects that are easily formed in roller manufacturing, namely cracks, shrinkage holes and white spots.

Citation Information

Cited By

  • Laser powder bed melting defect monitoring method and system based on data fusion

    CN120009282A

  • Bamboo surface rapid detection system and method based on multi-modal fusion

    CN120161051A

  • Cold-rolled sheet shape defect identification method based on multi-modal data

    CN120182724A

  • Steel plate surface defect detection method based on Swin-Transform network structure and electronic equipment

    CN121353763A

  • Steel plate surface defect detection method based on swin-transformer network structure and electronic device

    CN121353763B