Rolling bearing fault diagnosis method of improved convolution attention module
By improving the convolutional attention module, combining multi-modal signals for filtering and wavelet transformation, and constructing a parallel attention module, the problems of single signal collection and insufficient feature extraction in fault diagnosis of rotating machinery equipment are solved, and a more accurate and more accurate feature is achieved. Comprehensive fault diagnosis results.
Patent Information
- Application Number
- CN202410676810.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
AI Technical Summary
Existing fault diagnosis methods for rotating machinery equipment mainly rely on single-modal signals, which results in limited fault information extraction and is easily misled by noise. Moreover, it is difficult to install vibration sensors in compact environments, resulting in signal noise and coupled vibration information, which affects diagnostic accuracy.
An improved convolution attention module is used to combine vibration signals, current signals and torque signals for filtering and noise reduction processing, and are converted into time-frequency signals through continuous wavelet transform. A parallel attention module is constructed to enhance feature extraction and diagnosis accuracy.
It achieves more comprehensive and accurate fault diagnosis, improves feature extraction efficiency and accuracy, and maintains good classification performance and generalization ability especially in noisy environments.
Smart Images

Figure CN118585791A
Abstract
Description
Technical Field
[0001] The present invention relates to a fault detection method for rotating mechanical equipment, and in particular to a rolling bearing fault diagnosis method with an improved convolutional attention module. Background Art
[0002] Rotating machinery and equipment are widely used in industrial production to avoid unexpected downtime and maintenance costs caused by sudden failures. According to statistics, the failure probability of wind turbines is about 22.8%, the failure probability of coal mining machine motors is about 19.78%, and the failure probability of underground drainage pumps is about 26.85%. Thanks to the vigorous development of sensor types and functions, enterprises can easily obtain massive operating status data of industrial rotating machinery and equipment in different modes, which creates good practical conditions for this paper to predict equipment fault categories and fault locations based on multimodal data fusion. At the same time, deep learning can automatically learn feature representations from low-level to high-level from raw data without manual feature engineering, reducing dependence on domain expertise. In particular, convolutional neural networks are very suitable for processing data with grid structures such as images, which have the characteristics of parameter sharing, local receptive field, and translation invariance. Therefore, it is necessary to perform predictive maintenance before equipment failures and failures occur.
[0003] At present, the fault diagnosis of rotating mechanical equipment mainly focuses on obtaining a single vibration signal of the equipment, and a small number of separate current signals, sound signals, and torque signals of the equipment are collected. In 2020, Peng et al. proposed a novel multi-branch, multi-scale convolutional neural network (MBSCNN), which can automatically learn and fuse rich and complementary fault information from multiple signal components and time. In 2020, Yu et al. proposed a one-dimensional residual convolutional autoencoder (1-DRCAE) DNN fault diagnosis model based on unsupervised learning, which can complete one-dimensional vibration signal noise filtering and feature extraction. In 2021, Zhao et al. developed a new activation function, namely the adaptive parameter rectified linear unit, and inserted the activation function into the deep residual network to improve the feature learning ability, so that each input signal is trained to have its own set of nonlinear transformations. In 2022, Rebeiro et al. proposed a multi-head one-dimensional convolutional neural network that uses vibration signals measured in two different directions to detect and diagnose motor faults, thereby increasing the scale of feature extraction. In 2023, Zhang et al. proposed a fault diagnosis method based on a dual-task time domain and frequency domain learning network. This method considers the difference between the features of the time domain and the frequency domain while learning the time domain and the frequency domain, so that the network can comprehensively and effectively obtain fault information. The above fault diagnosis methods can achieve very high values in model training accuracy.
[0004] However, the vibration signals input by these methods are often based on one mode, resulting in limited fault information extracted and an inherent risk of being misled by single-mode signal noise. Moreover, the vibration sensor is difficult to install, especially in a particularly compact environment, so the vibration excitation source must propagate through a long path to reach the vibration sensor, which will cause the vibration signal to contain noise and coupled vibration information of other components. In contrast, many induction motor drive devices in industry already have current monitoring functions, which are controlled by frequency converters or protected by current transformers, so current signal acquisition is relatively easy to obtain, signal acquisition will not interfere with the overall operation of the system, and the collected signal is robust to environmental noise; at the same time, the torque sensor is usually closely connected to the motor and located in a fixed position, which is less subject to interference and is also one of the important indicators for evaluating the working state of the motor. In addition, although the above method can automatically extract feature information from the vibration signal, it cannot adaptively select features to improve the model's attention to important fault features, which will affect the accuracy of model fault diagnosis, especially under noisy working conditions. In order to solve the above problems, the present invention provides the following technical solutions. Summary of the invention
[0005] The purpose of the present invention is to propose a rolling bearing fault diagnosis method with an improved convolutional attention module to address the problems of single signal acquisition and insufficient feature extraction in the process of predictive maintenance of rotating mechanical equipment, so as to provide more comprehensive and accurate fault diagnosis results and avoid the limitations that may exist in a single sensor. At the same time, the improved attention module can make the model more focused on key diagnostic information and improve the efficiency and accuracy of feature extraction.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A rolling bearing fault diagnosis method with an improved convolutional attention module, the method specifically comprising the following steps:
[0008] Step 1: Collect the vibration signal, motor current signal and torque signal of the water pump motor bearing, then filter and reduce the noise of the three modal signals respectively and use continuous wavelet transform to convert the original time domain signal into time-frequency signal;
[0009] Step 2: Transform the original CBAM serial structure into a parallel form to form a hybrid attention module, and replace the fully connected layer in the channel attention mechanism with a convolutional layer with a convolution kernel size of 1×1;
[0010] Step 3: Use different modal time-frequency signals to perform offline training on the three convolutional neural networks to extract shallow features and fuse the shallow features. Then, input the fused features into the convolutional neural network again for offline training to extract deeper features and perform fault diagnosis.
[0011] Step 4: When the results of the training set meet the requirements, save the model of each iteration, determine whether the model is optimal through the validation set, and select the optimal model as the real-time fault diagnosis model for rotating machinery equipment.
[0012] Furthermore, in step 1, the specific method of obtaining the time domain signal after filtering and noise reduction and the time-frequency signal after wavelet transformation is as follows:
[0013] Step 101: The threshold function used for filtering and denoising the three different modal signals is described by the formula:
[0014]
[0015] Where: w j,k represents the wavelet coefficients, represents the quantized wavelet coefficient, λ represents the threshold, N is the signal length, sign(g) represents the sign function;
[0016] Step 102: Use continuous wavelet transform to transform the original time domain signal into a time-frequency signal, which is described by the following formula:
[0017]
[0018] Where: f(t) represents the signal to be transformed, ψ(g) represents the mother wavelet function, a and τ represent the scale parameter and translation parameter, and WT(a,τ) represents the wavelet coefficient of the signal f(t) under the scale parameter a and translation parameter τ.
[0019] Furthermore, step 2 specifically includes:
[0020] Step 201: Obtain statistical information of the feature map through average pooling and maximum pooling operations;
[0021] Avg_pool(X)=avg_pool(X)
[0022] Max_pool(X)=max_pool(X)
[0023] Where: X represents the feature vector, avg_pool(g) represents the average pooling, and max_pool(g) represents the maximum pooling;
[0024] Step 202: The pooled feature map is transformed through two consecutive convolutional layers;
[0025] Avg_out=cov2D2(ReLU(cov2D1(Avg_pool(X))))
[0026] Max_out=cov2D2(ReLU(cov2D1(Max_pool(X))))
[0027] Where: cov2D1 and cov2D2 represent convolutional layers, ReLU represents the activation function;
[0028] Step 203: Add the results of the feature map after passing through the convolution layer and normalize it through the Sigmoid activation function to obtain the output CAM of the channel attention mechanism;
[0029] CAM=Sigmoid(Avg_out+Max_out)
[0030] Step 204: After the pooled feature maps are concatenated, they are transformed through the convolution layer, and finally normalized through the Sigmoid function to obtain the output SAM of the spatial attention mechanism;
[0031] SAM=Sigmoid(cov2D[Avg_pool(X),Max_pool(X)])
[0032] Step 205: multiply the output of the channel attention mechanism and the output of the spatial attention mechanism by the feature vector respectively and then add them together to obtain a parallel CBAM module;
[0033] CBAM parallel (X) = CAM*X + SAM*X.
[0034] Furthermore, after extracting shallow features in step 3, the shallow features are fused, and then the fused features are input into the convolutional neural network for offline training to extract deeper features and perform fault diagnosis. The process is as follows:
[0035] Step 301: The three modal signals are respectively input into three submodules for shallow feature extraction. The input signal first passes through a convolution layer, then passes through a maximum pooling layer for downsampling, then passes through a LeakyReLU activation function for nonlinear transformation, and finally applies a batch normalization layer for normalization.
[0036] Step 302: The output features of the three submodules are concatenated together and passed through a series of convolution, maximum pooling, LeakyReLU activation function and batch normalization layers for deeper feature extraction;
[0037] Step 303: The fused features are flattened and input into a fully connected neural network, which contains two linear layers and a LeakyReLU activation function. The size of the final output layer is specified by the num_classes parameter for fault classification.
[0038] Furthermore, the description formula of the LeakyReLU activation function in step 301 is:
[0039]
[0040] After convolution in step 301, the feature output Y=[y1,...,y n ] is passed as input to Batch_Norm, then the description formula of batch normalization processing is:
[0041]
[0042] Z i =αy i ′+β
[0043] Where: μ Y and σ Y 2 Represent the mean and variance of the feature output respectively, ε is a constant, y i ′ represents the normalized value, Z i Represents the value after batch normalization transformation, α and β are trainable parameters that the BN algorithm needs to learn.
[0044] Furthermore, the optimizer in the convolutional neural network in step 3 uses Nadam, and its gradient update equation is:
[0045] m t =β1*m t-1 +(1-β1)g t
[0046] v t =β2*v t-1 +(1-β2)*g t 2
[0047]
[0048] Where: m t and v t They represent the first and second order moments of the gradient, g t represents the current gradient, θ t Represents the current parameters, α represents the learning rate, and β1 and β2 are used to control the decay rate of the first-order moment and the second-order moment.
[0049] First, the wavelet threshold denoising function used in the present invention makes up for the phenomenon that the traditional hard threshold function is discontinuous at the threshold and the soft threshold function has a constant difference, which can effectively suppress the noise in the signal while retaining the important features of the signal;
[0050] Secondly, the present invention inserts the improved attention module into the convolutional neural network, which can enhance the characterization ability of fault features on the one hand; on the other hand, by introducing the attention module CNN, it can selectively focus on the task-related areas or features and reduce the impact of redundant information;
[0051] Next, the present invention adopts the LeakyReLU activation function. LeakyReLU can overcome the neuron death problem of the ReLU activation function and increase the stability of the network by introducing a small slope in the negative region.
[0052] Finally, the present invention adopts the Nadam optimizer, and by introducing the Nesterov momentum on the basis of Adam, the gradient is allowed to be updated faster in the parameter space, thereby accelerating the model convergence process.
[0053] Beneficial effects of the present invention:
[0054] 1. Compared with most methods that only use one modal signal to analyze fault characteristics, the present invention uses three modal signals to fuse and diagnose fault characteristics, which not only obtains more comprehensive fault characteristic information, but also improves the diagnostic accuracy of the model;
[0055] 2. Compared with other methods that use a channel attention module and a spatial attention module in series to form a hybrid attention module, the present invention improves the series form of the two into a parallel form to form a new module structure. Compared with before the improvement, the model pays more attention to fault features and extracts fault features more fully.
[0056] 3. The method of the present invention still has good classification performance in a noisy environment, can well solve the problem of unbalanced distribution of normal state and fault state data in reality, and has good generalization ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The present invention will be further described below in conjunction with the accompanying drawings.
[0058] Figure 1 is a flow chart of the fault diagnosis method of the present invention;
[0059] Figure 2 It is a schematic diagram comparing the improved threshold function of the present invention with the original soft and hard threshold function curves;
[0060] Figure 3 This is a structural diagram of the CBAM module before the improvement of the present invention;
[0061] Figure 4 It is the structural diagram of the improved CBAM module of the present invention;
[0062] Figure 5 It is the network model structure diagram of the present invention;
[0063] Figure 6 is a schematic diagram of actual damage to the inner ring and outer ring of the bearing described in the present invention;
[0064] Figure 7 It is a schematic diagram of the vibration signal threshold function noise reduction processing according to the present invention;
[0065] Figure 8 is a schematic diagram of the current signal threshold function noise reduction processing according to the present invention;
[0066] Fig. 9 is a schematic diagram of the torque signal threshold function noise reduction processing according to the present invention;
[0067] Fig.10 It is the vibration current torque time-frequency diagram before filtering described in the present invention;
[0068] Fig.11 It is the time-frequency diagram of the vibration current torque after filtering described in the present invention;
[0069] Fig.12 is a schematic diagram of a post-filtering loss curve according to the present invention;
[0070] Fig.13 is a schematic diagram of the accuracy curve after filtering according to the present invention;
[0071] Fig.14 is a schematic diagram of a post-filtering fault diagnosis confusion matrix according to the present invention;
[0072] Fig.15 is a t-SNE schematic diagram of fault diagnosis after filtering according to the present invention;
[0073] Fig.16 1. It is a schematic diagram comparing the average accuracy of fault diagnosis of original data and filtered data according to the present invention;
[0074] Fig.17 It is a schematic diagram comparing the average accuracy of the improved CBAM module and the original CBAM module under different signal-to-noise ratios described in the present invention. DETAILED DESCRIPTION
[0075] 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.
[0076] A rolling bearing fault diagnosis method with improved convolutional attention module, such as Figure 1As shown, the method comprises the following steps:
[0077] Step 1: First, install a vibration sensor on the outer shell surface of the water pump motor, then install a current transformer at the motor coil, and finally install a torque sensor on the rotating shaft of the motor, in order to obtain the vibration signal of the water pump motor bearing, the current signal and the torque signal of the motor respectively, and then perform fault category coding, filtering and noise reduction, standardization and wavelet transformation on each modal signal respectively;
[0078] Step 1 specifically includes:
[0079] Step 101: Use One-Hot Encoding to encode fault categories in MATLAB;
[0080] Step 102: Use the improved threshold function to filter and reduce noise on the collected signal. The improved threshold curve is compared with the original soft and hard threshold curves. Figure 2 The specific mathematical description is as follows:
[0081]
[0082] Where: w j,k represents the wavelet coefficients, represents the quantized wavelet coefficient, λ represents the threshold, N is the signal length, sign(g) represents the sign function;
[0083] Step 103: After filtering, the data has a different range of values, so each data segment is normalized to ensure that its value is between 0 and 255. The normalization mathematical formula is as follows:
[0084]
[0085] Where: N = 1, 2..., n represents the number of samples, x max and x min Respectively represent the maximum and minimum values of each sample;
[0086] Step 104: Use wavelet transform to convert the original time domain signal into a time-frequency signal. The specific mathematical description is as follows:
[0087]
[0088] Where: f(t) represents the signal to be transformed, ψ(g) represents the mother wavelet function, a and τ represent the scale parameter and translation parameter, and WT(a,τ) represents the wavelet coefficient of the signal f(t) under the scale parameter a and translation parameter τ;
[0089] Step 105: Divide the data set in a ratio of 7:2:1, with the training set accounting for 70%, the validation set accounting for 20%, and the test set accounting for 10%.
[0090] Step 2: Change the original CBAM serial structure into Figure 3 As shown, it is transformed into a parallel form as Figure 4 As shown in the figure, a hybrid attention module is constructed, and the fully connected layer in the channel attention mechanism is replaced by a convolutional layer; the specific method is:
[0091] Step 201: Obtain statistical information of the feature map through average pooling and maximum pooling operations;
[0092] Avg_pool(X)=avg_pool(X)
[0093] Max_pool(X)=max_pool(X)
[0094] Where: X represents the feature vector, avg_pool(g) represents the average pooling, and max_pool(g) represents the maximum pooling;
[0095] Step 202: The pooled feature map is transformed through a convolutional layer;
[0096] Avg_out=cov2D2(ReLU(cov2D1(Avg_pool(X))))
[0097] Max_out=cov2D2(ReLU(cov2D1(Max_pool(X))))
[0098] Where: cov2D1 and cov2D2 represent convolutional layers, ReLU represents the activation function;
[0099] Step 203: Add the results of the feature map after passing through the convolution layer and normalize it through the Sigmoid activation function to obtain the output CAM of the channel attention mechanism;
[0100] CAM=Sigmoid(Avg_out+Max_out)
[0101] Step 204: The pooled feature map is first concatenated, then subjected to convolution for feature transformation, and finally normalized by a Sigmoid function to obtain the output SAM of the spatial attention mechanism;
[0102] SAM=Sigmoid(cov2D[Avg_pool(X),Max_pool(X)])
[0103] Step 205: multiply the output of the channel attention mechanism and the output of the spatial attention mechanism by the feature vector respectively and then add them together to obtain a parallel CBAM module;
[0104] CBAM parallel (X) = CAM*X + SAM*X
[0105] Step 3: Use convolutional neural network to build a fault diagnosis model Figure 5 As shown;
[0106] Step 301: The three modal signals are input into the three submodules respectively. The input signals first pass through a convolution layer, then pass through a maximum pooling layer for downsampling, then pass through a LeakyReLU activation function for nonlinear transformation, and finally apply a batch normalization layer for normalization.
[0107] Step 302: The output features of the three sub-modules are concatenated together and fused through a series of convolution, maximum pooling, LeakyReLU activation function and batch normalization layer stacking;
[0108] Step 303: The fused features are flattened and input into a fully connected neural network, which contains two linear layers and LeakyReLU activation function. The size of the final output layer is specified by the num_classes parameter for fault classification.
[0109] The description formula of the LeakyReLU activation function in step 301 is:
[0110]
[0111] Where: α is usually around 0.01;
[0112] Step 301 After convolution, feature output Y = [y1, ..., y n ] is passed as input to Batch_Norm, then the description formula of batch normalization processing is:
[0113]
[0114] Z i =αy i ′+β
[0115] Where: μ Y and σ Y 2 Respectively represent the mean and variance of the feature output, ε is a small constant, y i ′ represents the normalized value, Z i Represents the value after batch normalization transformation, α and β are the trainable parameters that the BN algorithm needs to learn;
[0116] The optimizer in the convolutional neural network in step 3 uses Nadam, and its gradient update equation is:
[0117] m t =β1*m t-1 +(1-β1)g t
[0118] v t =β2*v t-1 +(1-β2)*g t 2
[0119]
[0120]
[0121] Where: m t and v t They represent the first and second order moments of the gradient, g t represents the current gradient, θ t Represents the current parameters, α represents the learning rate, and β1 and β2 are used to control the decay rate of the first-order moment and the second-order moment.
[0122] Step 4: When the results of the training set meet the requirements, save the model of each iteration, determine whether the model is optimal through the validation set, and select the optimal model as the real-time fault diagnosis model for rotating machinery equipment.
[0123] Example
[0124] S1: Prepare dataset;
[0125] In order to verify the effectiveness and accuracy of the method of the present invention, the Parderborn bearing data set is used for experimental verification. The bearing is a deep groove ball bearing. The vibration signal is measured using a piezoelectric accelerometer with a sampling frequency of 64kHz; the torque signal is collected using a torque sensor with a sampling frequency of 4kHz; and the current signal is measured using a current sensor with a sampling frequency of 64kHz. The actual damage of the bearing is mainly manifested on the inner and outer rings, such as Figure 6 shown.
[0126] The data set was obtained under four working conditions as shown in Table 1. This paper selects samples under the N09_M07_F10 working condition for research. One sample occupies 1024 data points, and 4500 samples are selected for each working condition, of which 3150 samples are used for training set, 900 samples are used for validation set, and 450 samples are used for test set. The specific sample division of healthy and faulty bearings used for research is shown in Table 2.
[0127] Table 1 Operating parameters under four working conditions
[0128]
[0129]
[0130] Table 2 Division of sample data set under N09_M07_F10 working condition
[0131]
[0132] S2: Data preprocessing
[0133] The following is a time-frequency diagram of bearing KA04 after data normalization, noise reduction, and wavelet transformation. From the filter diagram, we can see that the signal becomes chaotic after adding noise, and the visualization result is clearer after filtering and noise reduction. The vibration signal filtering is as follows: Figure 7 , current signal filtering such as Figure 8 , torque signal filtering such as Fig. 9 As shown. Therefore, the feasibility of the wavelet threshold denoising function proposed in this paper is theoretically proved. At the same time, the time-frequency diagram after wavelet transform can provide the resolution of the signal in time and frequency, while the original time domain signal cannot provide such detailed analysis. The clarity of the time-frequency diagram after denoising is improved, the signal strength is enhanced, and the time-frequency diagram after denoising is more readable and beautiful, making it easier to understand and interpret the information contained therein. The vibration, current, and torque time-frequency diagrams before filtering are shown from left to right. Fig.10 As shown in the figure, the filtered vibration, current, and torque time-frequency diagrams are as follows from left to right: Fig.11 shown.
[0134] After filtering, the data has a different range of values, so each data segment is normalized separately to ensure that its value is between 0 and 255. The normalization mathematical formula is as follows:
[0135]
[0136] Where: N = 1, 2..., n represents the number of samples, x max and x min Represent the maximum and minimum values of each sample respectively.
[0137] S3: Experimental Analysis
[0138] The two key indicators for evaluating network models are accuracy and loss rate. Fig.12 The fault diagnosis loss rate after filtering and Fig.13The accuracy rate is basically constant after 80 iterations, with an average accuracy of 99.93% and a maximum of 100%. In order to better evaluate the performance of the classification model, the confusion matrix is used to reflect the error between the true type label and the fault type label, and the t-SNE algorithm is used for dimensionality reduction. The experimental environment of this paper is shown in Table 3.
[0139] Table 3 Experimental environment and configuration
[0140]
[0141] pass Fig.14 As shown in the figure, the confusion matrix results clearly show that except for one inner circle fault sample that is identified as a normal sample, the classification accuracy of the remaining samples is 100%, which proves that the model can capture the characteristics and patterns of the data well and has a high generalization ability; at the same time, it also reflects that the quality of the training data after filtering is high. Fig.15 As shown in the figure, the t-SNE results show that the distance between fault categories is large, which means that the category separability of the model is high.
[0142] In order to verify the feasibility of the filtering method proposed in this paper, the experiment is first carried out on the original data; then the original data is filtered and then the experiment is carried out; finally, the original data is filtered and then the original data is filtered. Fig.16 As can be seen from the above, the results of ten experiments show that the filtering method proposed in this paper can reduce the noise in the original data and enhance the specific frequency components of the signal, ultimately improving the accuracy of fault diagnosis.
[0143] The prior art provides the classification accuracy obtained by using different methods on the Paderborn dataset, and also provides a simple splicing network using vibration signals and torque signals and a network spliced after the two are connected through a mutual attention mechanism. As shown in Table 4, the fault diagnosis accuracy of the method proposed in the present invention is 2.43% higher than that of using a single vibration mode and 0.13% higher than that of using both vibration and torque modes. At the same time, compared with using only simple splicing, the diagnostic accuracy of the model proposed in the present invention is 2.93% higher.
[0144] Table 4 Diagnostic accuracy of different methods
[0145]
[0146]
[0147] In order to further verify the robustness of the model proposed in this paper in a variable noise environment, this paper adds Gaussian white noise with different signal-to-noise ratios to the signal to simulate the noise in the real environment. Among them, the signal-to-noise ratio is the ratio of the power of the useful signal to the power of the non-useful signal (noise), which is used to measure the quality or clarity of the signal. Its expression is as follows:
[0148]
[0149] Where: P signal is the power of the signal; P noise is the power of the noise.
[0150] Different signal-to-noise ratios were set in the experiment, namely -10dB, -5dB, 0dB, 5dB, and 10dB. The negative sign represents that the phases of the signal and the noise are opposite. This paper compares the improved CBAM module with the original CBAM module. In order to avoid the accidental nature of an experiment, ten consecutive experiments were performed to take the average accuracy. Fig.17 The original CBAM module is on the right, and the improved CBAM module is on the left. Fig.17 It can be seen that the improved CBAM module has a higher fault diagnosis accuracy than the original CBAM module as the noise interference changes from strong to weak. This also reflects that the 1×1 convolutional layer is better than the fully connected layer, and the parallel structure of channel attention and spatial attention is better than the serial structure.
[0151] In summary, in order to verify the effectiveness of the method of the present invention, the following conclusions were drawn by comparing the results of existing research literature: the fault diagnosis accuracy of the method proposed in the present invention is 2.43% higher than that of using a single vibration signal mode, and 0.13% higher than that of introducing the attention mechanism and fusing the two signal modes of vibration and torque. And from the visualization diagram, it can be seen that except for one inner circle fault sample that is identified as a normal sample, the classification accuracy of the remaining samples is 100%, proving that the model can capture the characteristics and patterns of the data well and has a high generalization ability.
[0152] In order to compare the fault diagnosis accuracy using original data and filtered data, the present invention continuously conducted 10 experiments under the same environment and took the average value of the diagnostic accuracy. The average accuracy using filtered data was 99.93%, and the highest accuracy could reach 100%; the average accuracy using original data was 99.54%, and the highest accuracy could reach 99.78%, which indirectly proves that the quality of filtered training data is higher.
[0153] In order to verify the diagnostic accuracy of the improved attention module in a variable noise environment, the present invention sets different signal-to-noise ratios. From the results, it can be seen that the improved CBAM module has a higher fault diagnosis accuracy than the original CBAM module in the process of noise interference from strong to weak. Even when the signal-to-noise ratio is -10, the diagnostic accuracy can still reach 99.24%, which proves that the improved attention module of the present invention is feasible.
[0154] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.
Claims
1. A rolling bearing fault diagnosis method with improved convolutional attention module, It is characterized in that The method specifically comprises the following steps: Step 1: Collect the vibration signal, motor current signal and torque signal of the water pump motor bearing, then filter and reduce the noise of the three modal signals respectively and use continuous wavelet transform to convert the original time domain signal into time-frequency signal; Step 2: Transform the original CBAM serial structure into a parallel form to form a hybrid attention module, and replace the fully connected layer in the channel attention mechanism with a convolutional layer with a convolution kernel size of 1×1; Step 3: Use different modal time-frequency signals to perform offline training on the three convolutional neural networks to extract shallow features and fuse the shallow features. Then, input the fused features into the convolutional neural network again for offline training to extract deeper features and perform fault diagnosis. Step 4: When the results of the training set meet the requirements, save the model of each iteration, determine whether the model is optimal through the validation set, and select the optimal model as the real-time fault diagnosis model for rotating machinery equipment.
2. According to the rolling bearing fault diagnosis method with improved convolutional attention module in claim 1, It is characterized in that The specific method of obtaining the time domain signal after filtering and noise reduction processing and the time-frequency signal after wavelet transformation in step 1 is: Step 101: The threshold function used for filtering and denoising the three different modal signals is described by the formula: Where: w j,k represents the wavelet coefficients, represents the quantized wavelet coefficient, λ represents the threshold, N is the signal length, sign(g) represents the sign function; Step 102: Use continuous wavelet transform to transform the original time domain signal into a time-frequency signal, which is described by the following formula: Where: f(t) represents the signal to be transformed, ψ(g) represents the mother wavelet function, a and τ represent the scale parameter and translation parameter, and WT(a,τ) represents the wavelet coefficient of the signal f(t) under the scale parameter a and translation parameter τ.
3. According to the rolling bearing fault diagnosis method with improved convolutional attention module in claim 1, It is characterized in that Step 2 specifically includes: Step 201: Obtain statistical information of the feature map through average pooling and maximum pooling operations; Avg_pool(X)=avg_pool(X) Max_pool(X)=max_pool(X) Where: X represents the feature vector, avg_pool(g) represents the average pooling, and max_pool(g) represents the maximum pooling; Step 202: The pooled feature map is transformed through two consecutive convolutional layers; Avg_out=cov2D 2 (ReLU(cov2D 1 (Avg_pool(X)))) Max_out=cov2D 2 (ReLU(cov2D 1 (Max_pool(X)))) Where: cov2D 1 and cov2D 2 They represent convolutional layers, and ReLU represents activation function; Step 203: Add the results of the feature map after passing through the convolution layer and normalize it through the Sigmoid activation function to obtain the output CAM of the channel attention mechanism; CAM=Sigmoid(Avg_out+Max_out) Step 204: After the pooled feature maps are concatenated, they are transformed through the convolution layer, and finally normalized through the Sigmoid function to obtain the output SAM of the spatial attention mechanism; SAM=Sigmoid(cov2D[Avg_pool(X),Max_pool(X)]) Step 205: multiply the output of the channel attention mechanism and the output of the spatial attention mechanism by the feature vector respectively and then add them together to obtain a parallel CBAM module; CBAM parallel (X) = CAM*X+SAM*X.
4. The rolling bearing fault diagnosis method with an improved convolutional attention module according to claim 1, It is characterized in that After extracting shallow features in step 3, the shallow features are fused, and then the fused features are input into the convolutional neural network for offline training to extract deeper features and perform fault diagnosis. The process is as follows: Step 301: The three modal signals are respectively input into three submodules for shallow feature extraction. The input signal first passes through a convolution layer, then passes through a maximum pooling layer for downsampling, then passes through a LeakyReLU activation function for nonlinear transformation, and finally applies a batch normalization layer for normalization. Step 302: The output features of the three submodules are concatenated together and passed through a series of convolution, maximum pooling, LeakyReLU activation function and batch normalization layers for deeper feature extraction; Step 303: The fused features are flattened and input into a fully connected neural network, which contains two linear layers and a LeakyReLU activation function. The size of the final output layer is specified by the num_classes parameter for fault classification.
5. According to the rolling bearing fault diagnosis method of the improved convolutional attention module of claim 4, It is characterized in that The description formula of the LeakyReLU activation function in step 301 is: After convolution in step 301, the feature output Y=[y 1 ,...,y n ] is passed as input to Batch_Norm, then the description formula of batch normalization processing is: Z i =αy i ′+β Where: μ Y and σ Y 2 Represent the mean and variance of the feature output respectively, ε is a constant, y i ′ represents the normalized value, Z i Represents the value after batch normalization transformation, α and β are trainable parameters that the BN algorithm needs to learn.
6. The rolling bearing fault diagnosis method with improved convolutional attention module according to claim 1, It is characterized in that The optimizer in the convolutional neural network in step 3 uses Nadam, and its gradient update equation is: m t =b 1 *m t-1 +(1-β 1 )g t v t =b 2 *v t-1 +(1-β 2 )*g t 2 Where: m t and v t They represent the first and second order moments of the gradient, g t represents the current gradient, θ t represents the current parameters, α represents the learning rate, β 1 and β 2 Used to control the decay rate of the first-order moment and the second-order moment.
