Bearing fault diagnosis method and device and electronic equipment

Through the combination of continuous wavelet transform and dense connection network, the fault characteristics of rolling bearings under variable working conditions are extracted, which solves the problem of feature extraction under a single working condition being difficult to adapt to changing working conditions, and improves the accuracy and identification accuracy of bearing fault diagnosis. .

CN118549136APending Publication Date: 2024-08-27HEBEI GUOHUA DINGZHOU POWER GENERATION +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410653410.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The features extracted by existing deep learning-based rolling bearing fault diagnosis methods under a single working condition are difficult to adapt to changing working conditions, resulting in low accuracy of bearing fault diagnosis under changing working conditions.

Method used

Continuous wavelet transform is used to convert the vibration signal to be measured into a wavelet time-frequency diagram, and a bearing fault diagnosis model improved based on multi-scale feature fusion and attention mechanism is combined with dense connection network to improve fault identification through multi-scale feature extraction and feature weight adjustment. Accuracy and generalization.

Benefits of technology

It improves the accuracy of bearing fault diagnosis under variable working conditions, can better adapt to fault diagnosis tasks under different working conditions, and enhances the fault identification accuracy and the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549136A
    Figure CN118549136A
Patent Text Reader

Abstract

The invention provides a bearing fault diagnosis method and device and electronic equipment, and belongs to the technical field of bearings. The method comprises the following steps: acquiring a to-be-tested vibration signal of a to-be-tested bearing; performing time-frequency domain analysis on the vibration signal to be measured through continuous wavelet transform to obtain a wavelet time-frequency diagram; inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model; wherein the bearing fault diagnosis model is obtained by training a plurality of sample vibration signals of the to-be-detected bearing in different operation conditions of the same fault state and a state label corresponding to each sample vibration signal; the bearing fault diagnosis model is obtained by improving a dense connection network based on multi-scale feature fusion and an attention mechanism. The method is used for solving the problem that fault diagnosis under another working condition is difficult to realize for features extracted under a single working condition, so that the accuracy of bearing fault diagnosis under variable working conditions is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bearings, and in particular to a bearing fault diagnosis method, a bearing fault diagnosis device, an electronic device, a machine-readable storage medium and a computer program product. Background Art

[0002] At present, most rolling bearing fault diagnosis methods based on deep learning are based on constant working conditions. However, the operating conditions of rolling bearings are often complex and changeable. Changes in working conditions will affect the vibration characteristics of rolling bearings. For example, changes in load will increase the friction between the transmission shaft and the rolling bearing, resulting in increased vibration shock, which will eventually manifest in the vibration signal, such as changes in the amplitude, frequency, phase and other information of the vibration signal. The fault characteristics of rolling bearings are closely related to this information. Therefore, it is difficult to achieve fault diagnosis problems under another working condition based on the features extracted under a single working condition, resulting in a low accuracy rate of bearing fault diagnosis under variable working conditions. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a bearing fault diagnosis method, a bearing fault diagnosis device, an electronic device, a machine-readable storage medium and a computer program product, so as to solve the problem that the features extracted under a single working condition are difficult to realize fault diagnosis under another working condition, resulting in a low accuracy rate of bearing fault diagnosis under variable working conditions.

[0004] In order to achieve the above object, an embodiment of the present invention provides a bearing fault diagnosis method, comprising:

[0005] Acquire a vibration signal of the bearing to be tested;

[0006] Performing time-frequency domain analysis on the vibration signal to be measured by continuous wavelet transform to obtain a wavelet time-frequency diagram;

[0007] Inputting the wavelet time-frequency graph into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model;

[0008] Among them, the bearing fault diagnosis model is trained based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each sample vibration signal; the bearing fault diagnosis model is improved based on multi-scale feature fusion and attention mechanism of a densely connected network.

[0009] Optionally, the bearing fault diagnosis model includes a cascaded multi-scale feature fusion network, an attention mechanism network, and a dense connection network;

[0010] The step of inputting the wavelet time-frequency graph into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model comprises:

[0011] Inputting the wavelet time-frequency graph into a multi-scale feature fusion network to obtain a feature graph output by the multi-scale feature fusion network;

[0012] Inputting the feature map into the attention mechanism network to obtain the feature weight adjustment result output by the attention mechanism network;

[0013] The feature weight adjustment result is input into a dense connection network to obtain a bearing fault diagnosis result output by the dense connection network.

[0014] Optionally, the multi-scale feature fusion network includes a multi-scale feature extraction layer and a feature fusion layer connected in sequence;

[0015] A multi-scale feature extraction layer, used for performing feature extraction of multiple different scales on the wavelet time-frequency graph in parallel;

[0016] The feature fusion layer is used to perform feature fusion on the results of feature extraction at the multiple different scales.

[0017] Optionally, the multi-scale feature extraction layer includes:

[0018] A first feature extraction layer, used for performing convolution of a first convolution kernel size and maximum pooling of a first step length on the wavelet time-frequency map;

[0019] The second feature extraction layer is used to perform convolution with a second convolution kernel size and maximum pooling with a second step length on the wavelet time-frequency map.

[0020] Optionally, the attention mechanism network is constructed using a channel attention mechanism or a spatial attention mechanism.

[0021] Optionally, the bearing fault diagnosis model is trained by the following steps:

[0022] Acquire multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and a state label corresponding to each of the sample vibration signals;

[0023] Performing time-frequency domain analysis on the multiple sample vibration signals respectively to obtain a sample wavelet time-frequency diagram corresponding to each sample vibration signal;

[0024] Repeat the following training steps until the set number of iterations is reached: input the sample wavelet time-frequency diagram of the first sample vibration signal into the bearing fault diagnosis model; calculate the loss function based on the sample bearing fault diagnosis result output by the bearing fault diagnosis model and the state label corresponding to the first sample vibration signal; adjust the model parameters of the bearing fault diagnosis model based on the loss function; wherein the first sample vibration signal is any one of the multiple sample vibration signals;

[0025] The remaining sample vibration signals of the plurality of sample vibration signals except the first sample vibration signal are input into the trained bearing fault diagnosis model to perform accuracy tests respectively.

[0026] Optionally, the vibration signal to be tested of the bearing to be tested is obtained by training through the following steps:

[0027] Cleaning invalid data in the original vibration signal of the bearing to be tested;

[0028] The original vibration signal after the cleaning operation is divided based on the data overlapping segmentation method to obtain the vibration signal to be measured.

[0029] On the other hand, an embodiment of the present invention further provides a bearing fault diagnosis device, comprising:

[0030] An acquisition module, used for acquiring a vibration signal to be measured of the bearing to be measured;

[0031] An analysis module, used for performing time-frequency domain analysis on the vibration signal to be measured by continuous wavelet transform to obtain a wavelet time-frequency diagram;

[0032] A diagnosis module, used for inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model;

[0033] Among them, the bearing fault diagnosis model is trained based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each sample vibration signal; the bearing fault diagnosis model is a densely connected network obtained by improving multi-scale feature fusion and attention mechanism.

[0034] On the other hand, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned bearing fault diagnosis method is implemented when the processor executes the program.

[0035] On the other hand, the present invention further provides a machine-readable storage medium having a computer program stored thereon, and the computer program implements the above-mentioned bearing fault diagnosis method when executed by a processor.

[0036] On the other hand, the present invention further provides a computer program product, comprising a computer program, wherein the computer program implements the above-mentioned bearing fault diagnosis method when executed by a processor.

[0037] Through the above technical scheme, the embodiment of the present invention combines the continuous wavelet transform and the bearing fault diagnosis model, and the two have good adaptability. The original vibration signal is converted into a wavelet time-frequency diagram through the continuous wavelet transform, which can well reflect the fault information contained in the vibration signal to be tested. In addition, the powerful feature extraction ability of the bearing fault diagnosis model improved by the dense connection network based on multi-scale feature fusion and attention mechanism is improved, which improves the fault identification accuracy and generalization. The bearing fault diagnosis model is obtained by training multiple sample vibration signals of different operating conditions in the same fault state, so as to fully explore the feature extraction of fault information under variable working conditions, and can be well applied to the rolling bearing variable working condition fault diagnosis task, and improve the accuracy of bearing fault diagnosis under variable working conditions.

[0038] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0040] Figure 1 This is one of the flow charts of the bearing fault diagnosis method provided by the present invention;

[0041] Figure 2 It is a schematic diagram of vibration signals of the bearing to be tested in different states provided by the present invention;

[0042] Figure 3 It is the wavelet time-frequency diagram of the vibration signal under four load working conditions provided by the present invention;

[0043] Figure 4 This is the second flow chart of the bearing fault diagnosis method provided by the present invention;

[0044] Figure 5 It is a structural schematic diagram of the channel attention mechanism provided by the present invention;

[0045] Figure 6 is a schematic diagram of the structure of a densely connected network provided by the present invention;

[0046] Figure 7 This is the third flow chart of the bearing fault diagnosis method provided by the present invention;

[0047] Figure 8 It is a schematic diagram showing the change of the loss function of the accuracy of the bearing fault diagnosis model verification test set provided by the present invention with the number of iterations;

[0048] Fig. 9 It is a structural schematic diagram of the bearing fault diagnosis device provided by the present invention;

[0049] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0051] Method Embodiment

[0052] Please refer to Figure 1 , an embodiment of the present invention provides a bearing fault diagnosis method, comprising:

[0053] Step 100: Obtain a vibration signal of a bearing to be tested.

[0054] The electronic device can obtain the vibration signal to be measured at the position to be measured of the bearing to be measured. The bearing to be measured can be a bearing in various mechanical equipment, such as a rolling bearing. The position to be measured of the bearing to be measured can be the outer ring, inner ring, rolling element, etc. of the rolling bearing. The outer ring, inner ring, and rolling element of the rolling bearing may fail in practice. Please refer to Figure 2 , Figure 2 (a) shows the vibration signal of the bearing under test in normal state. Figure 2 (b) shows the vibration signal of the bearing under test in the outer ring fault state. Figure 2 (c) shows the vibration signal of the bearing under test in the inner ring fault state. Figure 2 (d) in the middle represents the vibration signal to be measured when the bearing is in a rolling element failure state.

[0055] Step 200: Perform time-frequency domain analysis on the vibration signal to be measured by continuous wavelet transform to obtain a wavelet time-frequency diagram.

[0056] Specifically, a continuous wavelet transform (CWT) is performed by an electronic device to obtain a wavelet time-frequency diagram that can fully reflect the fault information. Continuous wavelet transform is a common time-frequency analysis method that can decompose the signal into frequency components of different scales. It is different from the traditional Fourier transform in that the wavelet transform can provide not only frequency domain information, but also time domain information. The advantage of continuous wavelet transform is that the time window shape is variable, so it has a certain degree of adaptability in time-frequency domain analysis. Among them, the mathematical formula of continuous wavelet transform is as follows:

[0057]

[0058] Among them, a represents the scale factor, τ represents the translation factor, and Ψ α,τ (t) represents the wavelet basis function.

[0059] By inputting the vibration signal to be measured into the continuous wavelet transform mathematical expression for calculation, a three-channel image can be output to obtain a wavelet time-frequency diagram. Figure 3 As shown, Figure 3 It is the wavelet time-frequency diagram of the vibration signal under four load conditions. Figure 3 (a) shows the wavelet time-frequency diagram of the vibration signal under the first load condition when the outer ring fails. Figure 3 (b) shows the wavelet time-frequency diagram of the vibration signal under the second load condition when the outer ring fails. Figure 3 (c) shows the wavelet time-frequency diagram of the vibration signal under the third load condition when the outer ring fails. Figure 3 (d) shows the wavelet time-frequency diagram of the vibration signal under the fourth load condition when the outer ring fails. The image size is compressed to 128×128. It can be seen that the wavelet time-frequency diagrams under the four load conditions contain richer time domain and frequency domain information, and the differences are relatively obvious, which is conducive to improving the bearing fault diagnosis performance of the subsequent bearing fault diagnosis model under variable conditions.

[0060] Step 300: input the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model.

[0061] The electronic device inputs the wavelet time-frequency diagram into the bearing fault diagnosis model to obtain the bearing fault diagnosis result output by the bearing fault diagnosis model. The bearing fault diagnosis model is trained based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each sample vibration signal. Specifically, the multiple sample vibration signals of different operating conditions of the same fault state can be four sample vibration signals of rolling bearings with the same fault state and different load conditions: 0hp, 1hp, 2hp and 3hp. 0hp represents a load size of 0, 1hp corresponds to a load size of 0.735Kw, 2hp corresponds to a load size of 1.471Kw, and 3hp corresponds to a load size of 2.206Kw. The data is assigned corresponding state labels according to the working conditions of the rolling bearing. The state labels include labels such as normal state and fault state.

[0062] The bearing fault diagnosis model is obtained by improving the dense connection network based on multi-scale feature fusion and attention mechanism. The embodiment of the present invention combines the continuous wavelet transform with the bearing fault diagnosis model, and the two have good adaptability. The original vibration signal is converted into a wavelet time-frequency diagram through the continuous wavelet transform, which can well reflect the fault information contained in the vibration signal to be measured. In addition, the powerful feature extraction ability of the bearing fault diagnosis model improved by the dense connection network based on multi-scale feature fusion and attention mechanism is combined to improve the fault identification accuracy and generalization. The bearing fault diagnosis model is obtained by training multiple sample vibration signals of different operating conditions of the same fault state, so as to fully explore the feature extraction of fault information under variable conditions, and can be well applied to the rolling bearing variable condition fault diagnosis task, and improve the accuracy of bearing fault diagnosis under variable conditions.

[0063] In an embodiment of the present invention, the bearing fault diagnosis model includes a cascaded multi-scale feature fusion network, an attention mechanism network, and a dense connection network. The wavelet time-frequency graph is input into the bearing fault diagnosis model to obtain the bearing fault diagnosis result output by the bearing fault diagnosis model, including: inputting the wavelet time-frequency graph into the multi-scale feature fusion network to obtain the feature graph output by the multi-scale feature fusion network; inputting the feature graph into the attention mechanism network to obtain the feature weight adjustment result output by the attention mechanism network; inputting the feature weight adjustment result into the dense connection network to obtain the bearing fault diagnosis result output by the dense connection network.

[0064] For details, please refer to Figure 4The wavelet time-frequency graph can be composed of a convolutional layer (Conv) with a convolution kernel size of 7×7 and a maximum pooling layer with a step size (Pool) of 3 to extract the shallow features of the vibration signal to be tested; then, the multi-scale feature fusion network is used to extract multi-scale features to obtain the feature map, and the feature information under different receptive fields is extracted to enrich the types of features; then the feature map is input into the attention mechanism for adaptive adjustment of important feature weights, so that the model pays more attention to the fault characteristics, thereby enhancing the diagnostic performance of the model; finally, the feature weight adjustment result is input into the dense connection network to obtain the bearing fault diagnosis result.

[0065] Among them, for the vibration signal of the rolling bearing that is constantly changing under variable working conditions, its nonlinearity, non-stationarity and non-periodicity will be more obvious, and the complexity of the characteristic frequency will be higher. The multi-scale feature fusion network of the embodiment of the present invention includes a multi-scale feature extraction layer 10 and a feature fusion layer 20 connected in sequence. The multi-scale feature extraction layer 10 is used to perform feature extraction of multiple different scales on the wavelet time-frequency graph in parallel. The feature fusion layer 20 is used to perform feature fusion on the results of feature extraction at multiple different scales.

[0066] In one embodiment, please refer to Figure 4 , the multi-scale feature extraction layer 10 includes: a first feature extraction layer 11 and a second feature extraction layer 12; the first feature extraction layer 11 is used to perform convolution of the wavelet time-frequency graph with a first convolution kernel size and maximum pooling of the first step length; the second feature extraction layer 12 is used to perform convolution of the wavelet time-frequency graph with a second convolution kernel size and maximum pooling of the second step length. For example, the first feature extraction layer 11 includes a convolution layer with a convolution kernel size of 7×7 and a maximum pooling layer with a step length of 3; the second feature extraction layer 12 includes a convolution layer with a convolution kernel size of 5×5 and a maximum pooling layer with a step length of 4. The embodiment of the present invention completes feature extraction through multiple parallel "convolution + pooling" unit structures with different convolution kernel sizes, which can extract feature information under different receptive fields of the wavelet time-frequency graph and enrich the types of features. Then, multiple parallel extracted features are spliced ​​or fused to obtain more comprehensive feature information, better adapt to the feature differences caused by changes in working conditions, thereby improving fault identification accuracy and generalization.

[0067] The attention mechanism network is constructed by using a channel attention mechanism or a spatial attention mechanism. The embodiment of the present invention takes the channel attention mechanism to construct an attention mechanism network as an example. For rolling bearings, vibrations are generated due to the impact of local fault sources and healthy parts, resulting in different vibration signals generated when faults occur in different parts. In order to increase the distinction between different faults, the embodiment of the present invention introduces a channel attention mechanism to transform the network structure of the densely connected network.

[0068] Please refer to Figure 5 The channel attention mechanism is specifically manifested as the input feature map first undergoes maximum pooling (MaxPool) and average pooling (AvgPool), where the maximum pooling and average pooling are based on two different directions of width and height respectively, and then the obtained results are sent to a two-layer neural network (Shared MLP), which is shared. The output results of the two squeeze-excitation networks are added to obtain a new feature vector c′=R H×1×1 Among them, the output matrix C of the channel attention mechanism is expressed as:

[0069] C = X·σ(c′); Formula (2)

[0070] Where X∈R H×1×w Represents the matrix of the input channel attention mechanism, H represents the number of channels, W represents the data length, c∈R H / R×1×1 Represents the middle vector.

[0071] The embodiment of the present invention assigns different weights to different features through a channel attention mechanism, and assigns a greater weight to fault features, so that the bearing fault diagnosis model pays more attention to fault features, thereby enhancing the fault diagnosis performance of the bearing fault diagnosis model.

[0072] For traditional convolutional neural networks, as the number of network layers increases, gradient vanishing and gradient exploding phenomena will occur, and the model is difficult to converge. In order to solve this problem, the densely connected network of the embodiment of the present invention designs a Dense Block structure. The structure of Dense Block is as follows: Figure 6 As shown in the figure, it consists of multiple Dense Layers (i.e., L1 to L5). There is a coefficient k between each layer that represents the growth rate of the number of feature channels. If the number of channels in the lth layer is m, then the number of channels in the l+1th layer is m×(1+k), which ensures that more features can be learned. In addition, all the outputs of the previous Dense Layers will be used as the input of the next layer, and the features learned in each layer will also be used by the next layer. This dense connection structure ensures that there is information interaction between any two layers, realizes feature reuse, and effectively solves the problem of gradient disappearance.

[0073] Specifically, the Dense Layer of the embodiment of the present invention is composed of BatchNorm+ReLU+1×1Conv+BatchNorm+ReLU+3×3Conv, where BatchNorm is a batch normalization function, ReLU is an activation function, 1×1Conv is a convolution layer and its convolution kernel size is 1×1. DenseNet uses Tansition Layer to connect each Dense Block, which is composed of BatchNorm+ReLU+1×1Conv+2×2AvgPool, where 2×2AvgPool represents a pooling layer with a step size of 2.

[0074] In summary, the wavelet time-frequency graph of the vibration signal to be measured is extracted by a convolution layer with a convolution kernel size of 7×7 and a maximum pooling layer with a step size of 3 to extract the shallow features of the vibration signal, and then respectively input into the two feature extraction branches of the multi-scale feature network for multi-scale feature extraction, one feature extraction branch includes a convolution layer with a convolution kernel size of 7×7 and a maximum pooling layer with a step size of 3, and the other feature extraction branch includes a convolution layer with a convolution kernel size of 5×5 and a maximum pooling layer with a step size of 4. After the two branches are feature fused, they are input into the channel attention mechanism for adaptive adjustment of important feature weights; then they are input into 3 Dense Blocks and 2 Tansition Layers to extract deep-level features, and finally they are pooled in a pooling layer with a step size of 2, and the fault category is output by the classification layer. The embodiment of the present invention makes full use of the time-frequency domain analysis method to characterize the signal, and then combines the dense connection network improved by multi-scale feature fusion and channel attention mechanism to extract richer feature information, so that fault diagnosis can be completed better and more accurately in response to different working conditions.

[0075] In other aspects of the embodiments of the present invention, the vibration signal to be tested of the bearing to be tested is obtained by training through the following steps: performing a cleaning operation on invalid data in the original vibration signal of the bearing to be tested; and dividing the original vibration signal that has undergone the cleaning operation based on a data overlapping segmentation method to obtain the vibration signal to be tested.

[0076] In an embodiment of the present invention, the vibration signal to be tested of the bearing to be tested is obtained by dividing the original vibration signal of the bearing to be tested through data preprocessing and data overlapping segmentation. The specific data preprocessing includes cleaning invalid data such as abnormalities and blanks in the collected original vibration signal. The data overlapping segmentation method refers to dividing the original vibration signal of the bearing to be tested by using the data overlapping segmentation method to obtain the original vibration signal of the bearing to be tested within a certain period of time. The total length of the original vibration signal is L, and the length of a single sample data is set to L1, the step size is D, the data point index of the first sample is [1,2,…,L1], the data point index of the second sample is [D+1,D+2,…,D+L1], and so on. A total of N samples are obtained, and their values ​​are:

[0077]

[0078] In formula (3), N, D, L, and L1 are the number of samples obtained, the index step length, the total length of the vibration signal data, and the length of a single sample data, respectively. In this embodiment, L1=1024D=200 is taken, and a total of 1000 samples are obtained.

[0079] For other aspects of the embodiments of the present invention, please refer to Figure 7 , the bearing fault diagnosis model is trained by the following steps:

[0080] Step 10: Acquire multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and a state label corresponding to each of the sample vibration signals.

[0081] The electronic device obtains multiple sample vibration signals of different operating conditions of the bearing under test in the same fault state, which can be four original vibration signals of rolling bearings in the same fault state and different load conditions: 0hp, 1hp, 2hp and 3hp. Each sample vibration signal is provided with a corresponding state label.

[0082] Step 20: Perform time-frequency domain analysis on the multiple sample vibration signals respectively to obtain a sample wavelet time-frequency diagram corresponding to each sample vibration signal.

[0083] Specifically, by inputting four sample vibration signals (0hp, 1hp, 2hp and 3hp) into the continuous wavelet transform mathematical expression of formula (1), a three-channel image can be output to obtain four wavelet time-frequency diagrams corresponding to the four sample vibration signals, as shown in Figure 3 shown.

[0084] Step 30, repeatedly perform the following training steps until the set number of iterations is reached: input the sample wavelet time-frequency diagram of the first sample vibration signal into the bearing fault diagnosis model; calculate the loss function based on the sample bearing fault diagnosis result output by the bearing fault diagnosis model and the state label corresponding to the first sample vibration signal; adjust the model parameters of the bearing fault diagnosis model based on the loss function; wherein the first sample vibration signal is any one of the multiple sample vibration signals.

[0085] In the embodiment of the present invention, the wavelet time-frequency diagram of the first sample vibration signal (for example, 0hp) can be divided into a training set and a test set according to a ratio of 3:1, and the wavelet time-frequency diagrams under other load conditions (1hp, 2hp and 3hp) are all used as test sets.

[0086] The wavelet time-frequency diagram of the first sample vibration signal (e.g. 0hp) is sent to the bearing fault diagnosis model for training, and the test set data under the load condition is used to complete the test. The mapping relationship model between the wavelet time-frequency diagram and the corresponding state label is established. When the loss function meets the iteration termination condition, the training is stopped and the trained model parameters are saved. The Adam optimizer is selected during the training process, the learning rate is set to 0.001, the number of training times is 100, and the batch is 32. Please refer to Figure 8 , Figure 8 The change of the loss function of the accuracy of the test set for the bearing fault diagnosis model verification with the number of iterations shows that the model training process is very good and the loss function decreases quickly. When the number of model iterations is about 20, the loss function has dropped to the lowest, indicating that the model converges quickly. In addition, the loss function of the subsequent training process is also relatively stable, indicating that the model training process is relatively stable.

[0087] Step 40: input the remaining sample vibration signals of the plurality of sample vibration signals except the first sample vibration signal into the trained bearing fault diagnosis model to perform accuracy tests respectively.

[0088] The wavelet time-frequency diagrams of several other load conditions (1hp, 2hp and 3hp) are input into the trained bearing fault diagnosis model as test set samples to obtain the bearing fault state type, calculate the diagnosis accuracy, and compare with multiple comparison models to analyze the model performance.

[0089] In order to verify the performance of the bearing fault diagnosis model proposed in the embodiment of the present invention, four rolling bearing fault diagnosis methods were used for comparison, namely, the convolutional neural network CNN model, the residual convolutional neural network ResCNN model, the dense connection network ADenseNet model improved by the channel attention mechanism, and the dense connection network MSADenseNet model improved by the multi-scale and attention mechanism (i.e., the bearing fault diagnosis model of the embodiment of the present invention). The data under different variable load conditions are input into the five network models respectively, and the bearing status of the test set is obtained and compared with the real status label to calculate the diagnostic accuracy of each model, as shown in Table 1. Table 1 shows the variable load conditions of different models

[0091] Diagnostic accuracy.

[0092] Table 1

[0093]

[0094] As can be seen from Table 1, the CNN method has the worst diagnostic effect under variable load conditions, mainly because the features extracted by CNN are not comprehensive enough and cannot adapt to diagnostic tasks under different working conditions. Its average accuracy is 86.33%; ResCNN has improved diagnostic effect compared with CNN, and its average diagnostic accuracy is 89.08%. The residual neural network has better feature expression ability due to the advantage of residual connection, so the diagnostic accuracy is improved; ADenseNet has a relatively high diagnostic accuracy, with an average diagnostic accuracy of 93.05%. It relies on the channel attention mechanism to improve the densely connected network. The densely connected network itself has a more powerful feature extraction capability, and combined with the channel attention mechanism, it strengthens the focus on fault features. Therefore, it has a relatively high diagnostic accuracy; the implementation of the present invention The diagnostic performance of the bearing fault diagnosis model of the example is further improved compared with ADenseNet, and the average diagnostic accuracy reaches 94.93%. This is due to the multi-scale feature fusion link, which fuses the features of different convolution kernel sizes, enriches the feature types, and is therefore more adaptable to diagnostic tasks under variable working conditions; therefore, the bearing fault diagnosis model of the embodiment of the present invention has the highest diagnostic accuracy, with an average diagnostic accuracy of 99%. It relies on wavelet transform (CWT) to convert the original vibration signal into a wavelet time-frequency diagram with time domain and frequency domain information, and makes full use of the time-frequency domain analysis method to characterize the signal. Combined with the densely connected network (MSADenseNet) improved by multi-scale feature fusion and channel attention mechanism, it can extract richer feature information, so it can also better complete fault diagnosis in response to different working conditions.

[0095] Device Embodiment

[0096] Please refer to Fig. 9On the other hand, an embodiment of the present invention further provides a bearing fault diagnosis device, comprising:

[0097] An acquisition module 901 is used to acquire a vibration signal to be measured of a bearing to be measured;

[0098] An analysis module 902 is used to perform time-frequency domain analysis on the vibration signal to be measured by continuous wavelet transform to obtain a wavelet time-frequency diagram;

[0099] A diagnosis module 903, used for inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model;

[0100] Among them, the bearing fault diagnosis model is trained based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each sample vibration signal; the bearing fault diagnosis model is a densely connected network obtained by improving multi-scale feature fusion and attention mechanism.

[0101] Optionally, the bearing fault diagnosis model includes a cascaded multi-scale feature fusion network, an attention mechanism network, and a dense connection network;

[0102] The step of inputting the wavelet time-frequency graph into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model comprises:

[0103] Inputting the wavelet time-frequency graph into a multi-scale feature fusion network to obtain a feature graph output by the multi-scale feature fusion network;

[0104] Inputting the feature map into the attention mechanism network to obtain the feature weight adjustment result output by the attention mechanism network;

[0105] The feature weight adjustment result is input into a dense connection network to obtain a bearing fault diagnosis result output by the dense connection network.

[0106] Optionally, the multi-scale feature fusion network includes a multi-scale feature extraction layer and a feature fusion layer connected in sequence;

[0107] A multi-scale feature extraction layer, used for performing feature extraction of multiple different scales on the wavelet time-frequency graph in parallel;

[0108] The feature fusion layer is used to perform feature fusion on the results of feature extraction at the multiple different scales.

[0109] Optionally, the multi-scale feature extraction layer includes:

[0110] A first feature extraction layer, used for performing convolution of a first convolution kernel size and maximum pooling of a first step length on the wavelet time-frequency map;

[0111] The second feature extraction layer is used to perform convolution with a second convolution kernel size and maximum pooling with a second step length on the wavelet time-frequency map.

[0112] Optionally, the attention mechanism network is constructed using a channel attention mechanism or a spatial attention mechanism.

[0113] Optionally, the bearing fault diagnosis model is trained by the following steps:

[0114] Acquire multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and a state label corresponding to each of the sample vibration signals;

[0115] Performing time-frequency domain analysis on the multiple sample vibration signals respectively to obtain a sample wavelet time-frequency diagram corresponding to each sample vibration signal;

[0116] Repeat the following training steps until the set number of iterations is reached: input the sample wavelet time-frequency diagram of the first sample vibration signal into the bearing fault diagnosis model; calculate the loss function based on the sample bearing fault diagnosis result output by the bearing fault diagnosis model and the state label corresponding to the first sample vibration signal; adjust the model parameters of the bearing fault diagnosis model based on the loss function; wherein the first sample vibration signal is any one of the multiple sample vibration signals;

[0117] The remaining sample vibration signals of the plurality of sample vibration signals except the first sample vibration signal are input into the trained bearing fault diagnosis model to perform accuracy tests respectively.

[0118] Optionally, the vibration signal to be tested of the bearing to be tested is obtained by training through the following steps:

[0119] Cleaning invalid data in the original vibration signal of the bearing to be tested;

[0120] The original vibration signal after the cleaning operation is divided based on the data overlapping segmentation method to obtain the vibration signal to be measured.

[0121] The bearing fault diagnosis device includes a processor and a memory. The acquisition module 901, analysis module 902 and diagnosis module 903 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.

[0122] The processor includes a kernel, which calls the corresponding program unit from the memory. There can be one or more kernels.

[0123] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0124] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the bearing fault diagnosis method, which includes: obtaining a vibration signal to be tested of the bearing to be tested; performing time-frequency domain analysis on the vibration signal to be tested by continuous wavelet transform to obtain a wavelet time-frequency diagram; inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model; wherein the bearing fault diagnosis model is obtained by training based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each sample vibration signal; the bearing fault diagnosis model is obtained by improving a dense connection network based on multi-scale feature fusion and attention mechanism.

[0125] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0126] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a machine-readable storage medium. When the computer program is executed by a processor, the computer can execute a bearing fault diagnosis method, which includes: obtaining a vibration signal to be tested of the bearing to be tested; performing time-frequency domain analysis on the vibration signal to be tested by continuous wavelet transform to obtain a wavelet time-frequency diagram; inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model; wherein the bearing fault diagnosis model is based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each of the sample vibration signals is trained; the bearing fault diagnosis model is improved by a densely connected network based on multi-scale feature fusion and attention mechanism.

[0127] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which is implemented when the processor executes a bearing fault diagnosis method, the method comprising: obtaining a vibration signal to be tested of the bearing to be tested; performing time-frequency domain analysis on the vibration signal to be tested by continuous wavelet transform to obtain a wavelet time-frequency diagram; inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model; wherein the bearing fault diagnosis model is trained based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each of the sample vibration signals; the bearing fault diagnosis model is improved by a densely connected network based on multi-scale feature fusion and attention mechanism.

[0128] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A bearing fault diagnosis method, characterized in that: include: Obtaining a vibration signal to be measured of the bearing to be measured; Performing time-frequency domain analysis on the vibration signal to be measured by continuous wavelet transform to obtain a wavelet time-frequency diagram; Inputting the wavelet time-frequency graph into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model; The bearing fault diagnosis model is obtained by training based on a plurality of sample vibration signals of the bearing to be tested in different operating conditions under the same fault state, and a state label corresponding to each of the sample vibration signals; The bearing fault diagnosis model is obtained by improving a densely connected network based on multi-scale feature fusion and attention mechanism.

2. The bearing fault diagnosis method according to claim 1, characterized in that: The bearing fault diagnosis model includes a cascaded multi-scale feature fusion network, an attention mechanism network and a dense connection network; The step of inputting the wavelet time-frequency graph into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model comprises: Inputting the wavelet time-frequency graph into a multi-scale feature fusion network to obtain a feature graph output by the multi-scale feature fusion network; Inputting the feature map into the attention mechanism network to obtain a feature weight adjustment result output by the attention mechanism network; The feature weight adjustment result is input into a dense connection network to obtain a bearing fault diagnosis result output by the dense connection network.

3. The bearing fault diagnosis method according to claim 2, characterized in that: The multi-scale feature fusion network includes a multi-scale feature extraction layer and a feature fusion layer connected in sequence; A multi-scale feature extraction layer, used for performing feature extraction of multiple different scales on the wavelet time-frequency graph in parallel; The feature fusion layer is used to perform feature fusion on the results of feature extraction at the multiple different scales.

4. The bearing fault diagnosis method according to claim 3, characterized in that: The multi-scale feature extraction layer comprises: A first feature extraction layer, used for performing convolution of a first convolution kernel size and maximum pooling of a first step length on the wavelet time-frequency map; The second feature extraction layer is used to perform convolution with a second convolution kernel size and maximum pooling with a second step length on the wavelet time-frequency map.

5. The bearing fault diagnosis method according to claim 1, characterized in that: The attention mechanism network is constructed using a channel attention mechanism or a spatial attention mechanism.

6. The bearing fault diagnosis method according to claim 1, characterized in that: The bearing fault diagnosis model is trained by the following steps: Acquire multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and a state label corresponding to each of the sample vibration signals; Performing time-frequency domain analysis on the multiple sample vibration signals respectively to obtain a sample wavelet time-frequency diagram corresponding to each sample vibration signal; Repeat the following training steps until the set number of iterations is reached: input the sample wavelet time-frequency diagram of the first sample vibration signal into the bearing fault diagnosis model; calculate the loss function based on the sample bearing fault diagnosis result output by the bearing fault diagnosis model and the state label corresponding to the first sample vibration signal; adjust the model parameters of the bearing fault diagnosis model based on the loss function; wherein the first sample vibration signal is any one of the multiple sample vibration signals; The remaining sample vibration signals of the plurality of sample vibration signals except the first sample vibration signal are input into the trained bearing fault diagnosis model to perform accuracy tests respectively.

7. The bearing fault diagnosis method according to claim 1, characterized in that: The vibration signal of the bearing to be tested is obtained by training through the following steps: Cleaning invalid data in the original vibration signal of the bearing to be tested; The original vibration signal after the cleaning operation is divided based on the data overlapping segmentation method to obtain the vibration signal to be measured.

8. A bearing fault diagnosis device, characterized in that: include: An acquisition module is used to acquire a vibration signal to be measured of the bearing to be measured; An analysis module, used for performing time-frequency domain analysis on the vibration signal to be measured by continuous wavelet transform to obtain a wavelet time-frequency diagram; A diagnosis module, used for inputting the wavelet time-frequency diagram into a bearing fault diagnosis model to obtain a bearing fault diagnosis result output by the bearing fault diagnosis model; Among them, the bearing fault diagnosis model is trained based on multiple sample vibration signals of different operating conditions of the bearing to be tested in the same fault state, and the state label corresponding to each sample vibration signal; the bearing fault diagnosis model is a densely connected network obtained by improving multi-scale feature fusion and attention mechanism.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the bearing fault diagnosis method according to any one of claims 1 to 7 is implemented.

10. A machine-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the bearing fault diagnosis method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the bearing fault diagnosis method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Bearing fault diagnosis method based on crown porcupine optimization variable mode decomposition

    CN119293588A