Motor bearing fault diagnosis method based on improved CNN model

By using the improved CNN model in motor bearing fault diagnosis, introducing the style recalibration module, group normalization and self-attention module, combined with the composite loss function, the problems of low accuracy and over-fitting in the existing technology are solved, and the problem is improved. It improves the accuracy and stability of diagnosis and enhances the generalization ability of the model.

CN118709073APending Publication Date: 2024-09-27JIANGSU UNIV OF SCI & TECH

Patent Information

Application Number
CN202410765157.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing motor bearing fault diagnosis methods have low accuracy, complex models that are prone to overfitting, and poor generalization capabilities. Moreover, the performance of traditional batch normalization decreases under small batches of data, which can easily lead to vanishing gradient problems.

Method used

An improved CNN model is adopted, by introducing a style-based recalibration module in the input layer, adding a new activation function and group normalization module after the convolution layer, adding a self-attention module with residual connection after the pooling layer, and using Composite loss function to improve the generalization ability and stability of the model.

Benefits of technology

It improves the accuracy and stability of motor bearing fault diagnosis, avoids over-fitting, enhances the representation and generalization capabilities of the model, enables stable training with a small amount of data, alleviates the vanishing gradient problem, and improves performance in complex environments. Diagnostic accuracy below.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709073A
    Figure CN118709073A
Patent Text Reader

Abstract

The invention discloses a motor bearing fault diagnosis method based on an improved CNN model, and the method comprises the steps: inputting motor bearing data into a pre-trained CNN model, and obtaining a motor bearing fault diagnosis result; the CNN model is composed of a plurality of CNN modules, and each CNN module is composed of an input layer, a recalibration module, a convolution layer, an activation function, a group normalization module, a pooling layer, a self-attention module, a full connection layer, an output layer and a classifier; input data enters a convolution layer after passing through a recalibration module, an activation function and a group normalization module are added after each convolution to enter a pooling layer, and output features of the pooling layer enter a self-attention module; the full connection layer is used for performing nonlinear combination on the features output by the convolution layer and the pooling layer to obtain a final feature vector; the recalibration module is composed of a style pooling assembly and a style fusion assembly. The self-attention module is a self-attention module with residual connection, and weighting processing is carried out on feature vectors input to the self-attention module according to correlation by automatically learning the correlation between features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motor bearing fault diagnosis, and specifically relates to a motor bearing fault diagnosis method based on an improved CNN model. Background Art

[0002] Motor bearing fault diagnosis is a key technology in industrial equipment maintenance, which involves detecting, identifying and evaluating the health of motor bearings in rotating machinery.

[0003] In order to make large and complex mechanical equipment operate in a safe and efficient mode, condition monitoring and fault diagnosis are becoming increasingly important in practical applications. As an important component in mechanical equipment, motor bearings are in a high-load operation state for a long time, and their health directly affects the stability and safety of the entire mechanical system. Motor bearing failure may cause equipment performance degradation, downtime, and may even cause safety accidents, resulting in significant economic losses. Therefore, motor bearing status monitoring and fault diagnosis are crucial to the safe operation of complex industrial systems.

[0004] The existing motor bearing fault diagnosis methods basically use BN processing for normalization, which may lead to the risk of degraded model performance and low accuracy, and easily cause gradient descent to affect model accuracy. In order to improve model accuracy, the existing motor bearing fault diagnosis methods use a more complex model with too many parameters, which is prone to overfitting, resulting in poor generalization ability of the model and reduced accuracy. Summary of the invention

[0005] Purpose of the invention: In order to solve the problems of low accuracy and complex models in existing motor bearing fault diagnosis methods, the present invention proposes a motor bearing fault diagnosis method based on an improved CNN model. The method of the present invention can improve the generalization ability of the network and obtain the fault characteristics of the motor bearing more accurately, thereby greatly improving the accuracy of motor bearing fault diagnosis.

[0006] Technical solution: A motor bearing fault diagnosis method based on an improved CNN model, comprising the following steps:

[0007] Collect motor bearing data to be diagnosed for faults;

[0008] Input the motor bearing data into the pre-trained CNN model to obtain the motor bearing fault diagnosis results;

[0009] The CNN model is composed of multiple CNN modules, and the output of the previous CNN module is used as the input of the next CNN module; each CNN module is composed of an input layer, a recalibration module, a convolution layer, an activation function, a group normalization module, a pooling layer, a self-attention module, a fully connected layer, an output layer and a classifier; the input data enters the convolution layer after passing through the recalibration module, and the activation function and the group normalization module are added after each convolution to enter the pooling layer, and the output features of the pooling layer enter the self-attention module; the fully connected layer is used to nonlinearly combine the features output by the convolution layer and the pooling layer to obtain the final feature vector;

[0010] The recalibration module consists of a style pooling component and a style fusion component;

[0011] The self-attention module is a self-attention module with residual connection, which automatically learns the correlation between features and processes the feature vector input to the self-attention module according to the correlation weighting.

[0012] Furthermore, in the recalibration module, the style pooling component is used to extract the input tensor The style features are extracted from the style fusion component, where N represents the number of samples, C is the number of channels, and H and W represent the spatial dimensions. The style fusion component uses the style features to generate example-specific style weights. Recalibrate the output tensor of the module Style weight and the input tensor The product of .

[0013] Furthermore, in the style pooling component, the style pooling operator extracts style features from each channel by aggregating feature responses across spatial dimensions, expressed as:

[0014]

[0015] In the formula, μ nc represents the average value of the pixel value, h and w represent the index of height and width respectively, x nchw Represents an element in a multidimensional tensor, σ nc represents the variance of pixel values, t nc represents the style vector, n represents the batch index, and c represents the channel index;

[0016] In the style fusion component, the style fusion operator utilizes style features through channel-based operations to generate example-specific style weights, expressed as:

[0017] z nc =w c ·t nc

[0018]

[0019] In the formula, w c represents the weight matrix, z nc represents the result after linear transformation, represents the sample mean, represents the sample variance, represents a standardized process, β c represents the affine transformation parameters, g nc Represents style weight.

[0020] Furthermore, the convolutional layer is expressed as:

[0021]

[0022] In the formula, represents the output of the lth convolutional layer; c l-1 is the channel of the l-1th layer; is the convolution kernel of the lth layer is the corresponding bias term; * is the convolution operation; σ(·) is the activation function, Represents the input features of the i-th channel.

[0023] Furthermore, the activation function is expressed as:

[0024]

[0025] Among them, ω represents the maximum mean difference weight coefficient, which is expressed as:

[0026]

[0027] In the formula, p represents the training progress, ranging between (0,1), and x i Represents the output value of the ith neuron.

[0028] Furthermore, the following steps are performed in the group normalization module:

[0029] Divide the input channels of the group normalization module into multiple groups;

[0030] Normalize the channels within each group;

[0031] The output Y of the group normalization module is expressed as:

[0032]

[0033] In the formula, μ g represents the mean of the g-th group of channels, σ g represents the standard deviation of the g-th group of channels, e represents element-by-element multiplication, ε and υ represent learnable parameters, and M is the input feature of the input group normalization module.

[0034] Furthermore, the pooling layer uses maximum pooling, which is expressed as:

[0035]

[0036] Among them, y s represents the output value of region t, represents the tth d×d area, d represents the size of the pooling window; h(d,d) represents a d×d window function.

[0037] Furthermore, the following steps are performed in the self-attention module:

[0038] Step 1: Input feature map P is linearly transformed to obtain query matrix Q i , key matrix K i Sum value matrix V i , expressed as:

[0039] Q i =P·W i Q

[0040] K i =P·W i K

[0041] V i =P·W i V

[0042] Among them, W i Q , W i K , W i V The parameter matrix representing the linear variation;

[0043] Step 2: Transposed from the key matrix, and Q i Perform point multiplication to obtain its correlation, and calculate the weight matrix of the residual self-attention module through the Softmax function. The formula is:

[0044]

[0045] Where d represents the dimension of the parameter matrix;

[0046] Step 3: V i and att i Perform matrix multiplication and perform residual connection with the input features to obtain the output of the self-attention module, and the formula is:

[0047]

[0048] Among them, att i Represents the weight matrix of the residual self-attention module; represents the self-attention output; SA represents the input of the residual self-attention module.

[0049] Furthermore, the classifier uses Softmax, which is expressed as:

[0050]

[0051] Where Y i represents the Softmax normalized output result of the i-th sample, represents the output probability, P(y i =n|x i ) means that given an input vector x i In the case of i The probability of belonging to category n, n represents the number of categories that the model needs to predict, ω i Represents the i-th weight vector in the model.

[0052] Furthermore, the pre-trained CNN model is trained by minimizing a composite loss function;

[0053] The composite loss function is expressed as:

[0054] L combined =w1L focal +w2L log +w3L boundary +L reg

[0055] In the formula, w1, w2, w3 represent the weights of different loss items;

[0056] Among them, L focal It is expressed as:

[0057] L focal =-α t (1-p t ) γ log(p t )

[0058] In the formula, α t ,γ represents the category balance coefficient and adjustment parameter, p t Represents the model's predicted probability for the actual category;

[0059] Among them, L log It is expressed as:

[0060]

[0061] In the formula, c represents the index of the category, C represents the total number of categories, The vector representing the true label, Represents the class probability vector predicted by the model;

[0062] Among them, L boundary It is expressed as:

[0063]

[0064] In the formula, i represents the i-th sample, is the true output of the i-th sample; The output of the i-th sample predicted by the model;

[0065] Among them, L reg It is expressed as:

[0066]

[0067] In the formula, λ represents the hyperparameter, ω i Represents the i-th weight parameter in the model.

[0068] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0069] (1) The method of the present invention can accelerate the convergence speed and avoid overfitting by setting appropriate hyperparameters. In order to solve the overfitting problem caused by the overly complex model, a style-based recalibration module is introduced in the input layer of the CNN model. The recalibration module enhances the model's recognition ability of motor bearing fault features through stylized feature extraction, so that the network can more effectively capture the subtle differences of motor bearing faults. This module enhances the network's characterization ability and further improves the accuracy of the diagnosis results. A new activation function and group normalization are added after the convolution layer of the CNN model. The new activation function F(x) introduces nonlinearity, takes into account the characteristics of fault diagnosis data, improves the expression ability of the model, and also contains specific mathematical properties, which helps to accelerate network training and reduce the risk of overfitting, so that the network can learn more complex patterns.

[0070] (2) To solve the problems of traditional BN, the method of the present invention solves the problem of performance degradation of traditional batch normalization on small batch data through group normalization (GN), so that the model can be stably trained even when the amount of data is not large. It also considers the correlation between channels, which helps the network learn more generalized feature representations, thereby improving the generalization ability of the model and greatly improving the stability and performance of the model; To solve the problem of gradient disappearance, the present invention adds a self-attention module with residual connection after the pooling layer of the CNN model. RSAM enables the model to identify long-distance dependencies between features through the self-attention mechanism. The residual connection ensures that the gradient can be effectively returned even in the deep network, thereby alleviating the problem of gradient disappearance in deep network training. The self-attention module with residual connection greatly enhances the feature representation ability of the model and effectively increases the stability of the model; The composite loss function combines the requirements of classification and regression tasks, and considers the class imbalance problem, boundary recognition problem and data visualization similarity problem in fault diagnosis;

[0071] (3) The method of the present invention can optimize the model performance for a specific fault diagnosis task by adjusting the weights of each loss term;

[0072] (4) The method of the present invention strives to achieve the best fault diagnosis performance in each step from data preprocessing to feature extraction, and then to model training and post-processing. At the same time, the design of the model takes into account the noise and interference in the industrial environment, and improves the diagnostic accuracy in complex environments through powerful feature extraction capabilities and a robust network structure. The various components in the model, such as SRM, GN, and RSAM, have a certain degree of flexibility and can be adjusted and optimized according to different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 The improved CNN model diagram implemented by the present invention;

[0074] Figure 2 This is an improved SRM model diagram implemented in the present invention, wherein: Figure 2 (a) is a schematic diagram of the overall structure of SRM. Figure 2 (b) is a detailed structural diagram of SRM;

[0075] Figure 3 This is a model diagram of the RSAM attention mechanism implemented in the present invention. DETAILED DESCRIPTION

[0076] The technical solution of the present invention is now further described in conjunction with the accompanying drawings and embodiments.

[0077] Embodiment 1:

[0078] refer to Figure 1As shown, this embodiment proposes a motor bearing fault diagnosis method based on an improved CNN model, which mainly includes the following steps:

[0079] Step 1: Create a motor bearing fault diagnosis dataset and set hyperparameters. The specific operations include:

[0080] S11: The motor bearing data collected by Case Western Reserve University in the United States was selected, and the drive-end motor bearing data with a sampling frequency of 20kHz was selected, which included 4 motor bearing fault states: normal, inner ring fault, outer ring fault, and rolling element fault. The motor bearing fault damage diameters were 0.2289mm, 0.3447mm, and 0.5887mm, with a total of 10 different fault conditions. In the experiment, 2500 samples were extracted for each fault state, and each sample contained 2048 data points.

[0081] S12: Set hyperparameters: the initial learning rate is 0.0001, the batch size is 32, the number of iterations is 100, the activation function uses the newly constructed activation function, the pooling type is maximum pooling, and the Adam optimizer is selected to optimize the network parameters.

[0082] Step 2: Build an improved CNN model based on SRM and RSAM modules. The improved CNN model consists of multiple improved CNN modules.

[0083] Each improved CNN module consists of an input layer, a style-based recalibration module (SRM), a convolutional layer, an activation function layer, a GN module, a pooling layer, a RSAM module, a fully connected layer, and an output layer; Figure 1 As shown in the figure, the input data enters the convolution layer after passing through the style-based recalibration module (SRM), and the activation function F(x) and the group normalization (GN) module are added after each convolution to enter the pooling layer, thus forming n improved CNN modules.

[0084] For each improved CNN module, a style-based recalibration module (SRM) is introduced in the input layer, so that feature information can be discriminated from the input layer to improve the representation ability of the network; Figure 2 As shown in (a) in the figure, given the input tensor The Style Recalibration Module (SRM) generates style weights based on the characteristics of the input tensor X. Among them, N represents the number of samples, C represents the number of channels; H and W represent the spatial dimensions.

[0085] like Figure 2 As shown in (b) of Figure 1, the style-based recalibration module (SRM) consists of two main components: style pooling and style fusion. Style pooling is used to extract the style from the input tensor. Extract intermediate style features, d is the number; style fusion is used to generate style weights Then the output tensor is obtained by multiplying G and X

[0086] The style pooling operator extracts style features from each channel by aggregating feature responses across spatial dimensions, expressed as:

[0087]

[0088] t nc =[μ nc ,σ nc ]

[0089] Where, the style vector t nc Represents the summary description of the style information of each example n and channel c; μ nc Represents the average value of pixel values; x nchw Represents an element in a multidimensional tensor, n is the batch index, c is the channel index, h and w are the height and width indices respectively; σ nc Represents the variance of pixel values.

[0090] The style fusion operator exploits style features through a channel-based operation to generate example-specific style weights, denoted as:

[0091] z nc =w c ·t nc

[0092]

[0093] Where γ, β are affine transformation parameters; w c represents the weight matrix, represents the sample mean; represents the sample variance; Indicates a standardized process; nc Represents the result after linear transformation.

[0094] The convolutional layer formula is expressed as:

[0095]

[0096] In the formula, represents the output of the lth convolutional layer; c l-1 is the channel of the l-1th layer; is the input feature of the i-th channel of this layer; is the convolution kernel of the lth layer is the corresponding bias term; * is the convolution operation; σ(·) is the activation function.

[0097] A new activation function F(x) is constructed after the convolutional layer and group normalization (GN) is added, which is not constrained by the batch size and makes the accuracy more stable.

[0098] The activation function F(x) is expressed as:

[0099]

[0100] Among them, ω represents the maximum mean difference weight coefficient, which is expressed as:

[0101]

[0102] p represents the training progress, ranging from (0,1). i Represents the output value of the i-th node, and i represents the number of output nodes.

[0103] In the group normalization (GN) module, the input channels are divided into multiple groups, and then the channels in each group are standardized. Assuming that the input feature is M, where the shape of M is (N, C, G, W), N is the batch size, C is the number of channels, H and W are the height and width of the feature map, respectively, the output Y after group normalization can be expressed as:

[0104]

[0105] In the formula, μ g represents the mean value of the g-th group of channels; σ g represents the standard deviation of the g-th group of channels; e represents element-by-element multiplication; ε and υ represent learnable parameters, initialized to 1 and 0.

[0106] The pooling layer uses the maximum pooling, and its function formula is:

[0107] y s =max(r t d×d h(d,d))

[0108] Among them, y s represents the output value of region t; r t d×d It represents the t-th d×d area, where d is usually a positive integer, indicating the size of the pooling window; h(d,d) represents a d×d window function, and the value of the window function is 1.

[0109] A self-attention module (RSAM) with residual connection is added after the pooling layer. The RSAM module can automatically learn the correlation between features, weight the input features according to the correlation, and improve the fault diagnosis accuracy of the network.

[0110] like Figure 3As shown, the RSAM process can be divided into three steps:

[0111] Step 1: Input feature map P is linearly transformed to obtain query matrix Q i , key matrix K i Sum value matrix V i , the formula is:

[0112]

[0113] V i =P·W i V Among them, W i Q , W i K , W i V A parameter matrix representing the linear variation.

[0114] Step 2: Transposed from the key matrix, and Q i Perform point multiplication to obtain its correlation, and calculate the weight matrix of the residual self-attention module through the Softmax function. The formula is:

[0115]

[0116] Where d represents the dimension of the parameter matrix;

[0117] Step 3: V i and att i Perform matrix multiplication and perform residual connection with the input features to obtain the output of the self-attention module, and the formula is:

[0118]

[0119] Among them, att i Represents the weight matrix of the residual self-attention module; represents the self-attention output; SA represents the input of the residual self-attention module.

[0120] The fully connected layer can nonlinearly combine the features output by the convolutional layer and the pooling layer to obtain the final feature vector. Its expression is:

[0121] y=δ(x·ω m +b f )

[0122] Among them, y represents the output value of the fully connected layer, δ(·) represents the activation function, x represents the feature input to the fully connected layer, ω m and b fRepresents the weight matrix and bias value of the fully connected layer.

[0123] In the classification task, Softmax is used as the classifier, and its formula is:

[0124]

[0125] Where Y i represents the Softmax normalized output result of the i-th sample, Represents the output probability The normalized result, P(y i =n|x i ) means that given an input vector x i In the case of i The probability of belonging to category n. n represents the number of categories that the model needs to predict, ω i Represents the i-th weight vector in the model.

[0126] Step 3: Introduce a composite loss function, and train the entire CNN model by minimizing the composite loss function to obtain a pre-trained CNN model; the composite loss function introduced in this embodiment helps to improve the accuracy, robustness and generalization ability of the model in actual fault diagnosis.

[0127] The composite loss function is expressed as:

[0128] L combined =w1L focal +w2L log +w3L boundary +L reg

[0129] L focal It is used to solve the class imbalance problem, especially when the number of samples of some fault classes is much smaller than that of other classes, expressed as:

[0130] L focal =-α t (1-p t ) γ log(p t )

[0131] L log Used for multi-class fault classification to ensure that the model can correctly distinguish different fault categories, expressed as:

[0132]

[0133] L boundary It is used to enhance the model's ability to identify fault boundaries, especially when there are fuzzy areas in fault diagnosis, and is expressed as:

[0134]

[0135] L reg Used to prevent model overfitting, expressed as:

[0136]

[0137] In the formula, w1, w2, w3 represent the weights of different loss terms, α t ,γ represents the category balance coefficient and adjustment parameter, p t Represents the predicted probability of the model for the actual category, i represents the i-th sample, is the true output of the i-th sample; The output of the i-th sample predicted by the model; c is the index of the category, C is the total number of categories, is the vector of true labels, The class probability vector predicted by the model; λ is a hyperparameter, ω i Represents the i-th weight parameter in the model.

[0138] Step 4: Collect the motor bearing data to be diagnosed; input the motor bearing data into the pre-trained CNN model to obtain the motor bearing fault diagnosis result.

Claims

1. A motor bearing fault diagnosis method based on an improved CNN model, characterized in that: The following steps are involved: Collect motor bearing data to be diagnosed for faults; Input the motor bearing data into the pre-trained CNN model to obtain the motor bearing fault diagnosis results; The CNN model is composed of multiple CNN modules, and the output of the previous CNN module is used as the input of the next CNN module; each CNN module is composed of an input layer, a recalibration module, a convolution layer, an activation function, a group normalization module, a pooling layer, a self-attention module, a fully connected layer, an output layer and a classifier; the input data enters the convolution layer after passing through the recalibration module, and the activation function and the group normalization module are added after each convolution to enter the pooling layer, and the output features of the pooling layer enter the self-attention module; the fully connected layer is used to nonlinearly combine the features output by the convolution layer and the pooling layer to obtain the final feature vector; The recalibration module consists of a style pooling component and a style fusion component; The self-attention module is a self-attention module with residual connection, which automatically learns the correlation between features and processes the feature vector input to the self-attention module according to the correlation weighting.

2. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: In the recalibration module, the style pooling component is used to extract the style from the input tensor The style features are extracted from the style fusion component, where N represents the number of samples, C is the number of channels, and H and W represent the spatial dimensions. The style fusion component uses the style features to generate example-specific style weights. Recalibrate the output tensor of the module Style weight and the input tensor The product of .

3. The motor bearing fault diagnosis method based on the improved CNN model according to claim 2 is characterized in that: In the style pooling component, the style pooling operator extracts style features from each channel by aggregating feature responses across spatial dimensions, expressed as: t nc =[μ nc ,s nc ] In the formula, μ nc represents the average value of the pixel value, h and w represent the index of height and width respectively, x nchw Represents an element in a multidimensional tensor, σ nc represents the variance of pixel values, t nc represents the style vector, n represents the batch index, and c represents the channel index; In the style fusion component, the style fusion operator utilizes style features through channel-based operations to generate example-specific style weights, expressed as: z nc =w c ·t nc In the formula, w c represents the weight matrix, z nc represents the result after linear transformation, represents the sample mean, represents the sample variance, represents a standardized process, β c represents the affine transformation parameters, g nc Represents style weight.

4. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: The convolutional layer is expressed as: In the formula, represents the output of the lth convolutional layer; c l-1 is the channel of the l-1th layer; is the convolution kernel of the lth layer is the corresponding bias term; * is the convolution operation; σ(·) is the activation function, Represents the input features of the i-th channel.

5. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: The activation function is expressed as: Among them, ω represents the maximum mean difference weight coefficient, which is expressed as: In the formula, p represents the training progress, ranging between (0,1), and x i Represents the output value of the ith neuron.

6. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: The following steps are performed in the group normalization module: Divide the input channels of the group normalization module into multiple groups; Normalize the channels within each group; The output Y of the group normalization module is expressed as: In the formula, μ g represents the mean of the g-th group of channels, σ g represents the standard deviation of the g-th group of channels, e represents element-by-element multiplication, ε and υ represent learnable parameters, and M is the input feature of the input group normalization module.

7. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: The pooling layer uses the maximum pooling, which is expressed as: Among them, y s represents the output value of region t, represents the tth d×d area, d represents the size of the pooling window; h(d,d) represents a d×d window function.

8. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: The following steps are performed in the self-attention module: Step 1: Input feature map P is linearly transformed to obtain query matrix Q i , key matrix K i Sum value matrix V i , expressed as: Q i =P·W i Q K i =P·W i K V i =P·W i V Among them, W i Q , W i K , W i V The parameter matrix representing the linear variation; Step 2: Transposed from the key matrix, and Q i Perform point multiplication to obtain its correlation, and calculate the weight matrix of the residual self-attention module through the Softmax function. The formula is: Where d represents the dimension of the parameter matrix; Step 3: V i and att i Perform matrix multiplication and perform residual connection with the input features to obtain the output of the self-attention module, and the formula is: Among them, att i Represents the weight matrix of the residual self-attention module; represents the self-attention output; SA represents the input of the residual self-attention module.

9. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1 is characterized in that: The classifier uses Softmax, which is expressed as: Where Y i represents the Softmax normalized output result of the i-th sample, represents the output probability, P(y i =n|x i ) means that given an input vector x i In the case of i The probability of belonging to category n, n represents the number of categories that the model needs to predict, ω i Represents the i-th weight vector in the model.

10. The motor bearing fault diagnosis method based on the improved CNN model according to claim 1, characterized in that: The pre-trained CNN model is trained by minimizing the composite loss function; The composite loss function is expressed as: L combined =w1L focal +w2L log +w3L boundary +L reg In the formula, w1, w2, w3 represent the weights of different loss items; Among them, L focal It is expressed as: L focal =-a t (1-p t ) γ log(p t ) In the formula, α t ,γ represents the category balance coefficient and adjustment parameter, p t Represents the model's predicted probability for the actual category; Among them, L log It is expressed as: In the formula, c represents the index of the category, C represents the total number of categories, The vector representing the true label, Represents the class probability vector predicted by the model; Among them, L boundary It is expressed as: In the formula, i represents the i-th sample, is the true output of the i-th sample; The output of the i-th sample predicted by the model; Among them, L reg It is expressed as: In the formula, λ represents the hyperparameter, ω i Represents the i-th weight parameter in the model.

Citation Information

Patent Citations

  • Motor bearing fault diagnosis method based on multi-source heterogeneous data adaptive fusion

    CN114492645A

  • Time-frequency feature fusion fault diagnosis method based on self-attention

    CN116304861A

  • Variable working condition small sample rolling bearing fault diagnosis method and system based on self-attention mechanism

    CN117451360A

  • Insulator fault detection method, device and equipment and storage medium

    CN117788415A

  • Computer-implemented method using convolutional neural network, apparatus for generating composite image, and computer-program product

    US20210358082A1

Cited By

  • Electroencephalogram signal automatic sleep staging method based on residual network and multi-level attention

    CN119385505A

  • Rolling bearing fault diagnosis method and system of small sample under variable working conditions

    CN120597101A