A rolling bearing fault diagnosis method based on nonlinear metric prototype network
Through the cascade attention mechanism based on the nonlinear metric prototype network, the long-distance correlation in rolling bearing fault diagnosis is extracted, which solves the problem of low fault diagnosis accuracy caused by the scarcity of labeled fault samples and achieves efficient fault diagnosis under few sample conditions. Identify.
Patent Information
- Application Number
- CN202111429337.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-11-29
AI Technical Summary
Under the condition that there are few labeled fault samples, the rolling bearing fault diagnosis method based on deep learning is difficult to achieve ideal recognition results, resulting in overfitting, poor robustness and low fault diagnosis accuracy.
A rolling bearing fault diagnosis method based on nonlinear metric prototype network is proposed. By constructing a cascade attention prototype nonlinear metric network, the sample set division module, prototype calculation module, cascade attention mechanism learning module and nonlinear metric strategy classification training are used. module to extract long-distance correlations of spliced samples to achieve accurate fault diagnosis under small sample conditions.
Under the condition of few labeled samples, the accuracy and robustness of rolling bearing fault diagnosis are significantly improved, and the fault diagnosis performance is improved. Especially the recognition effect under small samples is significantly better than traditional methods.
Smart Images

Figure CN114239384B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of simulation analysis, and in particular to a rolling bearing fault diagnosis method based on a nonlinear metric prototype network. Background Art
[0002] As one of the most critical components in large rotating machinery, rolling bearings are easily damaged when running for a long time in harsh environments, which may even cause the entire unit to malfunction, resulting in huge economic losses or casualties. Therefore, accurate and intelligent fault diagnosis of rolling bearings is of great significance in industry and academia.
[0003] Rolling bearing fault diagnosis methods based on deep learning have developed rapidly in the past few years. They use the powerful feature dimension reduction and pattern recognition capabilities of neural networks to perform fault diagnosis and identification on vibration signals. Compared with traditional diagnostic algorithms, deep learning has more powerful high-dimensional, nonlinear abstract data feature extraction capabilities and more accurate pattern recognition capabilities, without the need for manual feature extraction. Deep learning methods such as autoencoders (AE), deep belief networks (DBN), convolutional neural networks (CNN) and deep residual networks (DRN) have been widely used in the field of rolling bearing fault diagnosis with sufficient labeled samples and have achieved good performance. However, the success of these methods is mostly attributed to a large amount of labeled data. In actual industrial application scenarios, it is difficult to directly obtain enough labeled fault samples because rolling bearings are operating normally in most cases during their life cycle. The scarcity of labeled fault samples will lead to problems such as overfitting, poor robustness and low fault diagnosis accuracy of the fault diagnosis model of traditional deep learning methods. Therefore, under the condition of fewer labeled fault samples, it is of great engineering significance to study the fault diagnosis model for rolling bearings. Summary of the invention
[0004] In view of the fact that the fault diagnosis method based on deep learning in the prior art is difficult to achieve ideal recognition effect due to the scarcity of labeled samples, the present invention proposes a rolling bearing fault diagnosis method based on a nonlinear metric prototype network, including constructing a cascaded attention prototype nonlinear metric network, and performing classification training on the constructed network, processing the data with diagnosis and inputting it into the trained cascaded attention prototype nonlinear metric network, and outputting the diagnosis result.
[0005] Furthermore, the cascaded attention prototype nonlinear measurement network includes a sample set partitioning module, a prototype calculation module, a cascaded attention mechanism learning module and a nonlinear measurement strategy classification training module, wherein:
[0006] Using the sample set partitioning module to partition the sample set into a support set and a query set;
[0007] Input the divided data set into the prototype calculation module to obtain the feature map corresponding to the samples in the data set, and calculate the category prototype through the feature map of the support set;
[0008] The feature graphs of the query set samples are concatenated with the prototypes of each category one by one, and a cascaded attention mechanism learning module is used to extract the long-range correlation of the concatenated samples;
[0009] The cascaded attention mechanism learning module extracts the long-distance correlation of the spliced samples and inputs them into the nonlinear metric strategy classification training module for classification training.
[0010] Furthermore, the divided data set is input into the prototype calculation module to obtain the feature map corresponding to the samples in the data set, that is, using the feature extractor The sample x in the sample set L i Embedded into the feature space, expressed as:
[0011]
[0012] For the cth type of fault, the support set S is used to generate the prototype P C ,include:
[0013]
[0014] Among them, y i represents the label of the i-th sample in the support set S.
[0015] Furthermore, the cascaded attention mechanism learning module includes a channel attention submodule and a spatial attention submodule, and extracting the long-range correlation of the spliced samples includes:
[0016] The cascaded attention mechanism learning module convolves the input concatenated samples and extracts feature F;
[0017] The feature F is input into the channel attention submodule and the spatial attention submodule respectively. The channel attention submodule adaptively adjusts the feature values between each channel and establishes channel dependency to obtain the channel attention feature F. c ';
[0018] The spatial attention submodule focuses on the position information of the target sample in the input feature map and obtains the spatial attention feature F s ';
[0019] The channel attention feature F c ' and spatial attention feature F s 'Perform information fusion, and then add the fused feature information to the input feature F to obtain the long-range correlation of the spliced samples.
[0020] Furthermore, the channel attention submodule includes a global average pooling layer, a first convolution block and a second convolution block. Each convolution block is composed of a convolution layer, a BN layer and an activation function. The feature F is input into the cascaded global average pooling layer, the first convolution block and the second convolution block to extract the channel information structure S. The matrix product of the channel information structure S and the feature F is added as the output of the channel attention submodule.
[0021] Furthermore, the channel attention feature F c ' is expressed as:
[0022] in, is the channel attention feature map obtained by global average pooling of feature F, W1 and W2 are the weights of the convolutional layers in the first and second convolutional blocks respectively; σ(.) is the sigmoid activation function; γ(.) is the relu activation function, and They are matrix multiplication and addition operations respectively.
[0023] Furthermore, the spatial attention submodule includes a third convolution block and a global average pooling layer. The third convolution block is composed of a convolution layer and a BN layer. The feature F is input into the cascaded third convolution block and the global average pooling layer to extract the spatial information structure S'. The value obtained by multiplying the spatial information structure S' with the input feature F is then added to the feature F to obtain the spatial attention feature F. s '.
[0024] Furthermore, the spatial attention feature F s ' is expressed as:
[0025]
[0026] in, is the average pooling of feature F in its channel dimension, W3 represents the weight of the convolutional layer in the convolutional block, σ(.) is the sigmoid activation function, and They are matrix multiplication and addition operations respectively.
[0027] Furthermore, the cascaded attention mechanism learning module uses a convolution block including a convolution layer, a pooling layer, a BN layer and an activation function in the process of convolution of the input spliced samples.
[0028] The present invention extracts feature maps through a prototype calculation module, and calculates prototypes for support set features at the same time, splices query sample features with various prototypes one by one in a cascade attention module, and then extracts long-distance correlations of spliced samples through a cascade attention mechanism. Finally, the features extracted by the cascade attention module are input into a nonlinear measurement module, thereby achieving accurate and effective bearing fault diagnosis under small sample conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a flowchart of a specific implementation of a rolling bearing fault diagnosis method based on a nonlinear metric prototype network disclosed in the present invention;
[0030] Figure 2 This is a schematic diagram of the nonlinear metric prototype network structure proposed by the present invention;
[0031] Figure 3 This is a schematic diagram of the prototype network structure;
[0032] Figure 4 Schematic diagram of the linear metric structure of the prototype;
[0033] Figure 5 It is a schematic diagram of the nonlinear measurement structure of the present invention;
[0034] Figure 6 Schematic diagram of the cascade attention mechanism structure proposed in the present invention;
[0035] Figure 7 Schematic diagram of rolling bearing vibration signal collected by the MFS experimental device of the present invention in state a;
[0036] Figure 8 Schematic diagram of rolling bearing vibration signal collected by the MFS experimental device of the present invention in state b;
[0037] Fig. 9 Schematic diagram of rolling bearing vibration signal collected by the MFS experimental device of the present invention in state c;
[0038] Fig.10 Schematic diagram of rolling bearing vibration signal collected by the MFS experimental device of the present invention in state d;
[0039] Fig.11 Schematic diagram of rolling bearing vibration signal collected by the MFS experimental device of the present invention in state e;
[0040] Fig.12 A schematic diagram showing the comparison of diagnostic accuracy of different fault diagnosis and identification methods;
[0041] Fig.13 This is a schematic diagram of the confusion matrix output under the WDCNN fault diagnosis and recognition method;
[0042] Fig.14 This is a schematic diagram of the confusion matrix output under the SiaNet fault diagnosis and identification method;
[0043] Fig.15 This is a schematic diagram of the confusion matrix output under the RelaNet fault diagnosis and recognition method;
[0044] Fig.16 This is a schematic diagram of the confusion matrix output under the ProNet fault diagnosis and recognition method;
[0045] Fig.17 This is a schematic diagram of the confusion matrix output under the NM-ProNet fault diagnosis and recognition method;
[0046] Fig.18 This is a schematic diagram of the confusion matrix output under the fault diagnosis and identification method of the present invention (CANM-ProNet). DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.
[0048] The present invention proposes a rolling bearing fault diagnosis method based on a nonlinear metric prototype network, including constructing a cascaded attention prototype nonlinear metric network, and performing classification training on the constructed network, processing the data with diagnosis and inputting it into the trained cascaded attention prototype nonlinear metric network, and outputting the diagnosis result.
[0049] like Figure 1 The present invention includes two parts: nonlinear metric prototype network training and fault diagnosis and identification, specifically including:
[0050] 1. Nonlinear metric prototype network training: Based on a limited labeled sample set, it is divided into a training set and a test set, where the training set is further divided into a support set and a query set. The samples are mapped to the embedding space through the prototype network and the prototypes of each class are calculated based on the support set. The query samples in the embedding space are concatenated with the class prototypes one by one and sent to the cascade attention module to extract non-local information. Finally, the nonlinear metric module is used to better measure the similarity between the sample and the prototype to improve the fault performance. Based on the above steps, all parameters of the nonlinear metric prototype network are initialized, and the training samples are fed through the gradient descent algorithm to train the network to optimize the model parameters;
[0051] 2. Rolling bearing fault diagnosis under small sample: Process the rolling bearing vibration data to be diagnosed and identified; input the data to be diagnosed and identified into the trained nonlinear metric prototype network described in process 1; the trained nonlinear metric prototype network outputs the fault diagnosis result.
[0052] The bearing fault diagnosis model based on the nonlinear metric prototype network performs the following operations:
[0053] S11, sample set division: before dividing the sample set, the original vibration signal samples containing the C-type fault category are normalized into standardized one-dimensional samples, and the limited labeled fault samples are divided into support sets With queryset The training sample set L as the nonlinear metric prototype network is used for S12-S14;
[0054] S12, according to the divided data set, extract the feature map in the prototype calculation module, and calculate the category prototype through the support set features; that is:
[0055] Embedding prototype module in nonlinear metric prototype network using feature extractor The sample x in the training sample set L i Embedded into feature space:
[0056]
[0057] For the cth type of fault, the prototype P is generated using the support set S c :
[0058]
[0059] Since the prototype network measures the similarity between samples and class prototypes in a linear way, the linear metric aims to directly calculate the distance between features by predefining a fixed metric (such as Euclidean distance). This requires the feature extractor to extract obvious discriminative features as prototype representations, while it is difficult to extract highly identifiable fault features from mechanical vibration signals under the condition of few labeled samples. Secondly, the fixed linear metric cannot learn the nonlinear relationship between complex signals, and its diagnostic performance will be greatly reduced. In view of the shortcomings of the linear metric of the prototype network, a learnable nonlinear classifier is used to replace the fixed linear metric of the prototype network, the class prototype and the query sample features are spliced, and the nonlinear metric is learned through a nonlinear neural network. The similarity score is given to each batch of spliced samples to complete the sample category recognition.
[0060] S13. Based on the calculated prototype, the query sample features are spliced with the prototypes of each category one by one, and the cascaded attention module is used to extract the long-distance correlation of the spliced samples.
[0061] Concatenate a query sample with C class prototype features and concatenate the concatenated sample l(x i ) Input the convolution block in the cascade attention module and perform preliminary feature extraction on the concatenated features to obtain the feature map Among them, H×W×C represent the height, width and number of channels of the feature map respectively. In the cascade attention module, the control feature map They flow into the channel attention and spatial attention modules respectively. Through the channel attention module, the feature values between channels can be adaptively adjusted to establish channel dependencies and obtain the channel attention feature F c '; In the spatial attention module, we mainly focus on the position information of the target sample in the input feature map, ignore unimportant target features, and obtain the spatial attention feature F s ';Finally, the channel attention feature F c ' and spatial attention feature F s 'Perform information fusion, and then add the fused feature information to the input feature F to extract the important features of the spliced sample.
[0062] (1) Channel attention module. In the channel attention module, a global average pooling operation is first used to compress the feature F in the spatial dimension and aggregate the spatial information of the feature map to generate a channel attention feature map. Then, two convolution blocks are used to extract the nonlinear relationship between each channel. The channel dimensions of the two convolution blocks are first reduced and then increased, and then the activation function is used to obtain the channel attention weight S. The internal network structure of the channel attention is as follows: Figure 5 As shown in the figure, CPBA represents the corresponding convolution layer, pooling layer, BN layer and activation function, and CBA represents the convolution layer, BN layer and activation function. Next, the input feature F is multiplied by the channel information structure S matrix, and the generated result is fused with the F information to obtain the channel attention weighted feature The final output of the channel attention module is as follows:
[0063]
[0064] In the formula, is the channel attention feature map obtained by global average pooling of F, W1 and W2 represent the weights of two convolutions in CBA, σ(.) and γ(.) are sigmoid and relu activation functions, respectively. and They are matrix multiplication and addition operations respectively.
[0065] (2) Spatial attention module. In the spatial attention module, a convolutional layer is first used to extract information from feature F, and the output features of the convolutional layer are fused to obtain the spatial attention feature map. Then use the activation function to obtain the spatial attention weight S'. The spatial attention network structure is as follows Figure 5 As shown, CB represents the corresponding convolutional layer and BN layer. Next, the input feature F is multiplied by the spatial information structure S' matrix, and the generated result is fused with the F information to obtain the spatial attention weighted feature The final output of the spatial attention module is as follows:
[0066]
[0067] In the formula, is the average pooling of F in its channel dimension, W3 represents the weight of the 7×7 convolution kernel in CB, σ(.) is the sigmoid activation function, and They are matrix multiplication and addition operations respectively.
[0068] S14. Input the features extracted by the attention module into the nonlinear metric module to achieve effective few-shot learning (FSL) bearing fault diagnosis, and send the spliced samples to the nonlinear metric module. In the process of continuous mapping through a series of network layers, the module finally outputs C scalars V with values between 0 and 1 through softmax. j,r ,
[0069]
[0070] V j,r Represents a query sample With a certain prototype C The similarity between the query samples The probability value of belonging to this class. Among them, the linear measurement and nonlinear measurement methods based on the prototype network are distinguished as follows Figure 4 As shown:
[0071] In order to improve the accuracy of the classifier, the network model is trained by minimizing the classification loss of the class prototypes corresponding to the query sample and the support set. This paper uses the mean square error as the loss function and uses the similarity probability value V outputted above to obtain the similarity probability value V. j,r and the label of the query sample Tags that belong to the class prototype Calculate the mean square error L MSE :
[0072]
[0073] Finally, the network model is trained by minimizing the above formula:
[0074]
[0075] After the feature maps of the class prototype and the query sample are concatenated, they are directly input into the nonlinear measurement network, which is affected by the size of the receptive field and cannot capture the long-range correlation of the concatenated samples with doubled feature dimensions. Therefore, a cascaded attention mechanism is used to extract the long-range correlation of the concatenated samples, so as to better extract the nonlinear relationship between the sample and the prototype through the nonlinear measurement module.
[0076] The identification process of fault diagnosis identification includes:
[0077] S21, processing of data to be diagnosed and identified;
[0078] S22, the identification data to be diagnosed is input into the nonlinear metric prototype network, and the network outputs the fault diagnosis result;
[0079] The nonlinear metric prototype network is a small sample supervised learning model. The nonlinear metric prototype network mainly includes a prototype calculation module, a cascade attention module and a nonlinear metric module.
[0080] In order to verify the effectiveness of the fault diagnosis and identification method disclosed in the present invention, a comparative test was carried out using the vibration signal of a machine fault simulator (MFS); this experiment simulated five health states of rolling bearings, collected the Y-axis vibration signal of the belt end bearing of the simulator at a rotation frequency of 44 Hz, and the sampling frequency was 10240 Hz. In particular, each set of health state data was repeatedly collected 6 times. After obtaining the vibration signals in five different states, the vibration signals need to be preprocessed. First, the vibration data with a length of 102400 is divided into 25 samples. Each sample contains 4096 data points. Therefore, the number of samples in each category is 25×6=150. The original vibration waveforms under five different states are as follows Figure 6 As shown, its health status is shown in Table 1 below. For fault diagnosis of few labeled samples in practical applications, this paper randomly divides all samples into training sets and test sets, 20% of the samples are used as training samples, and the remaining 80% are used as test samples. Among them, the number of labeled samples in the training set is set to 4 cases, each class contains 5, 10, 15, and 20 samples, respectively, called 6-way 5 / 10 / 15 / 20-shot, and each shot is from left to right, WDCNN, SiaNet, RelaNet, ProNet, NM-ProNet, and the present invention (CANM-ProNet) 5 methods.
[0081] Table 1 Health status of rolling bearings
[0082]
[0083] Table 2 Dataset description
[0084]
[0085] Based on the above sample set, the proposed method (CANM-ProNet) is compared with five other methods, including WDCNN, Siamese Network (SiaNet) described in the 32nd International Conference Machine Learning, 2015, "Siamese Neural Networks for One-Shot Image Recognition," Relation Network (RelaNet) described in the CVPR, 2018, "Learning to Compare: Relation Network for Few-Shot Learning," Prototypical Network (ProNet) described in the NIPS, 2017, "Prototypical Networks for Few-shot Learning," and this method without adding cascaded attention mechanism (NM-ProNet). In order to ensure the fairness of the experiment, the six methods will use the same feature extractor and hyperparameters, obtain the same training and test samples for each batch of data, and repeat the experiment for a total of ten batches of data for comprehensive evaluation.
[0086] The structural parameters of the feature extractor of this method are shown in Table 3 below:
[0087] Table 3 Network layer parameters
[0088]
[0089] In order to reduce the impact of randomness of experimental data on experimental results, ten random experiments were conducted. The experimental results are as follows: Fig.12 As shown in Table 4 below:
[0090] Table 4 Comparative experimental results
[0091]
[0092] It can be clearly seen from the table that the fault diagnosis performance of the traditional deep learning method WDCNN is not ideal. This is mainly because it cannot fully reflect the true distribution of data in high-dimensional space in the case of a small amount of training data. However, with the increase of training samples, the accuracy of WDCNN is greatly improved. When there are 20 training samples in each category, the fault diagnosis recognition rate is about 24% higher than that of 5 samples in each category. The three FSL methods of SiaNet, ProNet and RelaNet in the table have significantly improved diagnostic performance compared with traditional deep learning methods. This is because SiaNet, RelaNet and ProNet all obtain knowledge from small samples through similarity calculation and category expansion. Among the three FSL methods, ProNet has the best overall recognition effect. Compared with WDCNN, the average increase rate in 5-shot, 10-shot, 15-shot and 20-shot cases is about 7%, 6%, 6% and 4% respectively. This shows that ProNet can better improve the classification accuracy of rolling bearings by fitting the data distribution center through prototypes. In addition, it can be found that with the increase of training samples, the improvement accuracy of FSL methods is gradually decreasing. In the improved method based on the prototype network, NM-ProNet uses a nonlinear measurement strategy to determine whether the spliced samples belong to the same category. When the number of training samples in each category increases from 5 to 20, the recognition accuracy of NM-ProNet increases from 81% to 91%, which is about 16%, 11%, 5%, and 5% higher than the original ProNet, respectively. This shows that in the prototype network, compared with the linear measurement method, the use of nonlinear measurement strategies can greatly improve the fault diagnosis performance. This is mainly because the fixed similarity measurement function cannot update the network model by learning more parameters, which is easy to cause overfitting, while the nonlinear measurement uses a learnable similarity measurement function to improve the classification effect. However, due to the increase in the feature dimension of the spliced samples, the long-distance correlation cannot be obtained in the nonlinear measurement module due to the limitation of the receptive field, which affects the fault feature extraction of complex vibration signals. By comparing NM-ProNet and CANM-ProNet in the table, the 5-shot, 10-shot, 15-shot and 20-shot performances of each class are improved by about 3%, 4%, 4% and 2% respectively, which indicates that adding an attention module to the spliced samples to obtain their long-distance correlation can better adapt to nonlinear metrics, thereby improving the performance of fault diagnosis. Therefore, compared with other methods, the proposed CANM-ProNet achieves the best test classification effect.
[0093] In order to compare the classification of experimental methods in more detail, Figure 8The confusion matrix of the 5-shot diagnosis results of WDCNN, SiaNet, RelaNet, ProNet, NM-ProNet and CANM-ProNet is listed. There are 120 test samples in each category, with a total of 5 fault categories. From the overall classification, it can be seen that the misclassification of the following methods is mainly concentrated on IF and BF. Figures 7 to 11 From the original signal waveforms of these two types, we can find that the signal waveforms of IF and BF are somewhat consistent, which makes it difficult to completely distinguish them. Fig.13 It can be seen that the recognition effect of WDCNN is very poor. When classifying BF, more than half of the samples are classified incorrectly, and the wrong labels are mostly concentrated on IF. This shows that when there are only 5-shot labeled samples for network training, WDCNN cannot learn its sample features well to achieve classification effect, and small samples are not suitable for WDCNN fault diagnosis. Figures 14 to 16 It can be seen that compared with WDCNN, the classification effects of the three methods have been improved accordingly, but the overall difference is not large, which shows that the three methods are effective in fault diagnosis classification under FSL. Fig.18 As shown in the figure, compared with the comparison method, the classification effect is significantly improved, the discrimination of IF and BF is enhanced, and the Fig.17 The method also has a certain improvement. This is because in the proposed method, the similarity of spliced samples can be better judged by nonlinear measurement, and the long-distance correlation of spliced samples is calculated by cascaded attention to further obtain more discriminative features, which makes the recognition accuracy of each class of this method higher. Therefore, compared with other methods, the proposed CANM-ProNet achieves the best small sample fault diagnosis accuracy.
[0094] Aiming at the application scenarios where fault labeling data is scarce, this paper proposes an improved FSL method for rolling bearing fault diagnosis model, called Cascaded Attention and Nonlinear Metric Improved Prototype Network (CANM-ProNet). First, the prototype calculation module extracts feature maps of the support set and the query set, and calculates the prototype using the feature map of the support set. Then, the query feature map is connected to each prototype, and a cascaded attention module is introduced to extract the non-local information of the connected features. Finally, a nonlinear metric module is proposed to better measure the similarity between samples and prototypes to improve the fault diagnosis performance. A large number of experiments show that this method is more effective than other methods when there are fewer fault samples.
[0095] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A rolling bearing fault diagnosis method based on nonlinear metric prototype network, characterized in that: It includes constructing a cascaded attention prototype nonlinear measurement network, and performing classification training on the constructed network, processing the data with diagnosis and inputting it into the trained cascaded attention prototype nonlinear measurement network, and outputting the diagnosis result; The cascaded attention prototype nonlinear measurement network includes a sample set partitioning module, a prototype calculation module, a cascaded attention mechanism learning module, and a nonlinear measurement strategy classification training module, where: Using the sample set partitioning module to partition the sample set into a support set and a query set; The divided data set is input into the prototype calculation module to obtain the feature map corresponding to the samples in the data set, that is, using the feature extractor The sample x in the sample set L i Embedded into the feature space, expressed as: For the cth type of fault, the support set S is used to generate the prototype P C ,include: Among them, y i represents the label of the i-th sample in the support set S; And calculate the category prototype through the feature map of the support set; The feature graphs of the query set samples are concatenated with the prototypes of each category one by one, and the long-distance correlation of the concatenated samples is extracted using the cascaded attention mechanism learning module; the cascaded attention mechanism learning module includes a channel attention submodule and a spatial attention submodule. The long-distance correlation of the concatenated samples is extracted by: The cascaded attention mechanism learning module convolves the input concatenated samples and extracts feature F; The feature F is input into the channel attention submodule and the spatial attention submodule respectively. The channel attention submodule adaptively adjusts the feature values between each channel and establishes channel dependency to obtain the channel attention feature F. c '; The spatial attention submodule focuses on the position information of the target sample in the input feature map and obtains the spatial attention feature F s '; The channel attention feature F c ' and spatial attention feature F s 'Perform information fusion, then add the fused feature information to the input feature F to obtain the long-distance correlation of the spliced samples; The cascaded attention mechanism learning module extracts the long-distance correlation of the spliced samples and inputs them into the nonlinear metric strategy classification training module for classification training.
2. A rolling bearing fault diagnosis method based on a nonlinear metric prototype network according to claim 1, characterized in that: The channel attention submodule includes a global average pooling layer, a first convolution block and a second convolution block. Each convolution block consists of a convolution layer, a BN layer and an activation function. The feature F is input into the cascaded global average pooling layer, the first convolution block and the second convolution block to extract the channel information structure S. The matrix product of the channel information structure S and the feature F is added as the output of the channel attention submodule.
3. A rolling bearing fault diagnosis method based on a nonlinear metric prototype network according to claim 2, characterized in that: Channel attention feature F c ' is expressed as: in, is the channel attention feature map obtained by global average pooling of feature F, W1 and W2 are the weights of the convolutional layers in the first and second convolutional blocks respectively; σ(.) is the sigmoid activation function; γ(.) is the relu activation function, and They are matrix multiplication and addition operations respectively.
4. The rolling bearing fault diagnosis method based on nonlinear metric prototype network according to claim 1 is characterized in that: The spatial attention submodule includes the third convolution block and the global average pooling layer. The third convolution block is composed of a convolution layer and a BN layer. The feature F is input into the cascaded third convolution block and the global average pooling layer to extract the spatial information structure S'. The value obtained by multiplying the spatial information structure S' with the input feature F is then added to the feature F to obtain the spatial attention feature F. s '.
5. A rolling bearing fault diagnosis method based on a nonlinear metric prototype network according to claim 4, characterized in that: Spatial attention feature F s ' is expressed as: in, is the average pooling of feature F in its channel dimension, W3 represents the weight of the convolutional layer in the convolutional block, σ(.) is the sigmoid activation function, and They are matrix multiplication and addition operations respectively.
6. The rolling bearing fault diagnosis method based on nonlinear metric prototype network according to claim 1 is characterized in that: The convolution blocks used by the cascaded attention mechanism learning module in the process of convolution of the input spliced samples include convolution layer, pooling layer, BN layer and activation function.
Citation Information
Patent Citations
Bearing fault diagnosis method under variable working condition based on mixed entropy and joint distribution adaptation
CN110849625A
Rolling bearing fault diagnosis method fusing attention mechanism and twin network structure
CN113191215A
Person re-identification method combining reverse attention and multi-scale deep supervision
US20210232813A1
