A bearing fault diagnosis method, product, medium and equipment
Through the full vector spectrum technology and the improved EfficientNet network model, combined with transfer learning, the problems of weak feature extraction ability and insufficient generalization ability in bearing fault diagnosis are solved, and high-accuracy bearing fault diagnosis under changing working conditions in small samples is achieved. diagnosis.
Patent Information
- Application Number
- CN202410822078.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing bearing fault diagnosis methods have problems such as weak feature extraction capabilities, insufficient generalization capabilities, and limited research on bearing fault diagnosis under small samples and variable working conditions.
Full-vector spectrum technology combined with short-time Fourier transform is used to conduct time-frequency analysis of the acoustic emission signal of the bearing operating state. The feature extraction method of the full-vector acoustic spectrogram is used for data fusion. Based on the improved EfficientNet network model, coordinate attention is introduced. Force mechanism and AdamW optimization algorithm are used to construct a fault diagnosis network model, and combined with transfer learning to perform bearing fault diagnosis under small sample conditions and changing working conditions.
It improves the completeness of fault feature extraction and the identification ability of the model, enhances the generalization ability of the model, achieves accurate fault identification under small samples and changing working conditions, and solves the problems of complex feature extraction and poor versatility in traditional methods. .
Smart Images

Figure CN118376409B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mechanical fault diagnosis methods, and in particular to a bearing fault diagnosis method, product, medium and equipment. Background Art
[0002] Rolling bearings are widely used in various rotating equipment due to their advantages of low friction resistance, simple structure, strong load-bearing capacity, flexible starting, and light weight, and they play an extremely important role. Ultra-low-speed heavy-load bearings are widely used in various large-scale mechanical equipment. Once a failure occurs, it will cause significant economic losses or even personal injury. Therefore, it is extremely necessary to diagnose the faults of such bearings used in important occasions.
[0003] In traditional bearing fault diagnosis, the fault feature extraction process has certain requirements on the knowledge and experience reserves of researchers in this field. The feature extraction process is complex and has poor versatility, making it difficult to apply to deep structure extraction. In addition, due to the low speed, weak fault signal and many interference factors of low-speed and heavy-loaded bearings, the existing methods based on parameter analysis and time-frequency analysis show low accuracy and weak generalization ability in the diagnostic analysis results. Therefore, there is currently no good method for fault diagnosis of ultra-slow-speed bearings under small sample variable operating conditions.
[0004] In summary, the existing bearing fault diagnosis methods have the problems of weak feature extraction ability, insufficient generalization ability and limited research on bearing fault diagnosis under small sample and variable operating conditions. Summary of the invention
[0005] The purpose of the present invention is to provide a bearing fault diagnosis method, product, medium and equipment to solve the problems of weak feature extraction ability, insufficient generalization ability and limited research on bearing fault diagnosis under small sample variable working conditions in existing bearing fault diagnosis methods.
[0006] To achieve the above object, the present invention provides the following solution.
[0007] On the one hand, the present invention provides a bearing fault diagnosis method, comprising: obtaining acoustic emission signals in the x-direction and acoustic emission signals in the y-direction of the bearing operating state of different fault types under different working conditions; for the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of each fault type under each working condition, using full vector spectrum technology combined with short-time Fourier transform to perform time-frequency analysis on the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of the fault type under the working condition, using the feature extraction method of the full vector spectrogram to perform full vector data fusion on the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of the fault type under the working condition, so as to obtain the full vector spectrogram of the bearing operating state of each fault type under each working condition; using the full vector spectrogram of the bearing operating state of each fault type under each working condition A full-vector spectrogram is constructed to construct a data set for each working condition; the data set for each working condition includes a full-vector spectrogram of the bearing operating status of different fault types under the working condition; based on the EfficientNet-B0 network, the standard convolutional layer in the EfficientNet-B0 network is replaced by a depth-separable convolutional layer, and the squeeze-excitation attention mechanism in the EfficientNet-B0 network is replaced by a coordinate attention mechanism, and the AdamW optimization algorithm is introduced to replace the stochastic gradient descent method in the EfficientNet-B0 network to obtain a fault diagnosis network model; a data set for any working condition is selected, and the fault diagnosis network model is trained using the selected data set of the working condition to obtain a pre-trained model; the pre-trained model is used in combination with transfer learning to perform bearing fault diagnosis under small sample variable working conditions.
[0008] Optionally, the method of obtaining the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating status of different fault types under different working conditions also includes: using two acoustic emission sensors respectively attached to the upper end and the right end of the bearing to monitor the bearing operating status of different fault types under different working conditions, using the acoustic emission sensor attached to the right end of the bearing to collect the acoustic emission signals in the x-direction of the bearing operating status of different fault types under different working conditions, and at the same time using the acoustic emission sensor attached to the upper end of the bearing to collect the acoustic emission signals in the y-direction of the bearing operating status of different fault types under different working conditions.
[0009] Optionally, the acoustic emission sensor attached to the right end of the bearing forms an angle of 90° with the acoustic emission sensor attached to the upper end of the bearing.
[0010] Optionally, the data set of any one of the working conditions is used to train the fault diagnosis network model using the data set of the selected working condition to obtain a pre-trained model, specifically including: a data set of any one of the working conditions; using the full-vector acoustic spectrogram of the bearing operating status of different fault types under the working condition in the data set of the selected working condition to train the fault diagnosis network model to obtain a pre-trained model; the pre-trained model is used to perform bearing fault diagnosis on the full-vector acoustic spectrogram of the bearing operating status of an unknown fault type under the working condition input into the pre-trained model, and output the fault type corresponding to the full-vector acoustic spectrogram of the bearing operating status of the unknown fault type under the working condition.
[0011] Optionally, the pre-trained model is used in combination with transfer learning to perform bearing fault diagnosis under small sample variable operating conditions, specifically including: freezing the structure and parameters of the pre-trained model except for the last convolutional layer and the fully connected layer; using a small number of full-vector spectrograms in a data set of another different operating condition as a small sample to train and fine-tune the last convolutional layer and the fully connected layer of the pre-trained model to obtain a bearing fault diagnosis model under small sample variable operating conditions; the data set of another different operating condition is a data set of operating conditions different from the data set for training the pre-trained model; using the bearing fault diagnosis model under small sample variable operating conditions to perform bearing fault diagnosis under small sample variable operating conditions.
[0012] On the other hand, the present invention provides a computer program product, comprising a computer program, which implements the bearing fault diagnosis method when executed by a processor.
[0013] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the bearing fault diagnosis method when executed by a processor.
[0014] On the other hand, the present invention provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the bearing fault diagnosis method.
[0015] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects.
[0016] The bearing fault diagnosis method, product, medium and equipment disclosed in the present invention use the full vector spectrum technology to process acoustic emission (i.e., the signal emitted by sound) data for the first time. By using the feature extraction method of the full vector spectrogram, the dual-channel (i.e., the x-direction and y-direction) acoustic emission signals are subjected to full vector data fusion to obtain the full vector spectrogram, which fully explores the characterization relationship between multi-directional acoustic emission data and fault characteristics. The extracted fault feature information is more complete and the model is more adaptable. At the same time, the variable working condition bearing fault recognition model based on the improved EfficientNet backbone feature extraction network has a powerful feature extraction capability and the introduced coordinate attention mechanism The module improves the model's extraction of detailed information and effectively improves the model's recognition ability without increasing the amount of calculation. The introduced AdamW optimization algorithm improves the convergence speed of the model and enhances the generalization ability of the model. At the same time, the application of transfer learning realizes fault identification under small sample variable working conditions. The present invention uses acoustic emission + Efficientnet network for bearing fault diagnosis for the first time. The use of acoustic emission + Efficientnet network + transfer learning solves the problems of weak feature extraction ability, insufficient generalization ability and limited research on bearing fault diagnosis under small sample variable working conditions in existing bearing fault diagnosis methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a flow chart of the bearing fault diagnosis method provided by the present invention.
[0019] Figure 2 Schematic diagram of the bearing fault signal collection scheme.
[0020] Figure 3 Schematic diagram of outer ring fault AE signals collected through different channels.
[0021] Figure 4 Schematic diagram of acoustic emission signal processing method.
[0022] Figure 5 Schematic diagram for comparing different spectrograms.
[0023] Figure 6 Build a flow chart for the bearing fault diagnosis model.
[0024] Figure 7 This is a schematic diagram of the MBConv network module structure.
[0025] Figure 8 Schematic diagram of the CA attention mechanism module.
[0026] Fig. 9 Schematic diagram of the comparison of recognition accuracy of different models under variable working conditions. DETAILED DESCRIPTION
[0027] 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.
[0028] The purpose of the present invention is to provide a bearing fault diagnosis method, product, medium and equipment to solve the problems of weak feature extraction ability, insufficient generalization ability and limited research on bearing fault diagnosis under small sample variable working conditions in existing bearing fault diagnosis methods.
[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0030] Figure 1 This is a flow chart of the bearing fault diagnosis method provided by the present invention. Figure 1 The present invention provides a bearing fault diagnosis method, which includes steps 101 to 106.
[0031] Step 101: Acquire acoustic emission signals in the x-direction and acoustic emission signals in the y-direction of the bearing operating states of different fault types under different operating conditions.
[0032] Before step 101, it also includes: using two acoustic emission sensors respectively attached to the upper end and the right end of the bearing to monitor the bearing operation status of different fault types under different working conditions, using the acoustic emission sensor attached to the right end of the bearing to collect the acoustic emission signals in the x-direction of the bearing operation status of different fault types under different working conditions, and at the same time using the acoustic emission sensor attached to the upper end of the bearing to collect the acoustic emission signals in the y-direction of the bearing operation status of different fault types under different working conditions.
[0033] The acoustic emission sensor attached to the right end of the bearing and the acoustic emission sensor attached to the upper end of the bearing form an angle of 90°.
[0034] Step 102: for the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of each fault type under each working condition, use the full vector spectrum technology combined with short-time Fourier transform to perform time-frequency analysis on the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of the fault type under the working condition, and use the feature extraction method of the full vector spectrogram to perform full vector data fusion on the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of the fault type under the working condition to obtain the full vector spectrogram of the bearing operating state of each fault type under each working condition.
[0035] Step 103: construct a data set for each working condition using the full vector acoustic spectrogram of the bearing operating state for each fault type under each working condition; the data set for each working condition includes the full vector acoustic spectrogram of the bearing operating state for different fault types under the working condition.
[0036] Step 104: Based on the EfficientNet-B0 network, the standard convolutional layer in the EfficientNet-B0 network is replaced with a depth-wise separable convolutional layer, and the squeeze-excitation attention mechanism in the EfficientNet-B0 network is replaced with a coordinate attention mechanism. At the same time, the AdamW optimization algorithm is introduced to replace the stochastic gradient descent method in the EfficientNet-B0 network to obtain a fault diagnosis network model.
[0037] Step 105: Select a data set of any working condition, and use the selected data set of the working condition to train a fault diagnosis network model to obtain a pre-trained model.
[0038] The step 105 specifically includes: selecting a data set of any working condition; training a fault diagnosis network model using the full-vector acoustic spectrogram of the bearing operating state of different fault types under the working condition in the data set of the selected working condition to obtain a pre-trained model; the pre-trained model is used to perform bearing fault diagnosis on the full-vector acoustic spectrogram of the bearing operating state of an unknown fault type under the working condition input into the pre-trained model, and output the fault type corresponding to the full-vector acoustic spectrogram of the bearing operating state of the unknown fault type under the working condition.
[0039] Step 106: Use the pre-trained model combined with transfer learning to perform bearing fault diagnosis under small sample variable operating conditions.
[0040] The step 106 specifically includes: freezing the structure and parameters of the pre-trained model except the last convolutional layer and the fully connected layer; using a small number of full-vector spectrograms in another data set of different working conditions as small samples to train and fine-tune the last convolutional layer and the fully connected layer of the pre-trained model to obtain a bearing fault diagnosis model under small sample variable working conditions; the other data set of different working conditions is a data set of working conditions different from the data set for training the pre-trained model; using the bearing fault diagnosis model under small sample variable working conditions to perform bearing fault diagnosis under small sample variable working conditions.
[0041] The technical solution of the bearing fault diagnosis method of the present invention is described below with a specific embodiment.
[0042] The bearing fault diagnosis method provided by the present invention is a bearing fault diagnosis method under small sample and multiple working conditions (i.e., variable working conditions), and specifically includes the following steps 1 to 6.
[0043] Step 1: Design a data collection experiment plan.
[0044] The specific steps of the data acquisition test plan designed in step 1 include: (1) Using a rolling bearing simulation test bench to conduct the test, the experimental bearing uses a 6014 deep groove ball bearing, and three test conditions are designed, namely condition A (12-0.6m), condition B (6-0.6m) and condition C (12-1.2m), where r represents the speed unit rpm and m represents the load unit MPa. In addition, each condition is divided into 9 different fault types, namely no fault, outer ring defect (1.5mm), inner ring defect (1.5mm), outer ring defect (2.5mm), inner ring defect (2.5mm), outer ring defect (3.5mm), inner ring defect (3.5mm), outer ring defect (5.0mm) and inner ring defect (5.0mm). (2) During the test, the inner ring of the bearing rotates with the test bench spindle through an interference fit, and the outer ring is directly connected to the hydraulic loader. The bearing speed can be changed by adjusting the inverter output, and the bearing load can be changed by adjusting the hydraulic loader load size to simulate the bearing operation under different working conditions. Two acoustic emission sensors are attached to the outer ring of the bearing, with a 90° angle between them to ensure the integrity of the collected data. (3) After the preparation work is completed, the acoustic emission signal collection work during the bearing operation process is carried out according to different experimental conditions under different working conditions, and the experimental data is saved in the storage device.
[0045] Step 2: Conduct the test according to the test plan to obtain the acoustic emission signal data of the faulty bearing during operation.
[0046] See also Figure 2The present invention provides a test scheme for collecting acoustic emission signals of bearing faults, which specifically includes: step S1, designing a rolling bearing simulation test bench, which is mainly composed of a motor, a motor frequency converter, an elastic coupling, a reduction box (reduction ratio 1:50), a test bearing and a hydraulic loader. The reduction box makes the output speed of the test bench between 0-30rpm, meeting the ultra-low speed engineering requirements. Step S2, considering the disassembly and assembly of the bearing during the test, the bearing is fixed at one end of the rotating shaft, and the other end is connected to the drive motor through a reduction box. The test bearing adopts a 6014 deep groove ball bearing, which is installed at the test end. The main parameters of the test bearing are shown in Table 1. The inner ring of the bearing rotates with the main shaft of the test bench through an interference fit, and the outer ring is directly connected to the hydraulic loader. The bearing speed can be changed by adjusting the output of the frequency converter, and the load of the bearing can be changed by adjusting the load size of the hydraulic loader to simulate the operation of the bearing under different working conditions. Step S3, two acoustic emission sensors are respectively attached to the upper end and the right end of the bearing, and the contact effectiveness between the sensor and the bearing is ensured. The sampling rate of the acoustic emission acquisition system is set to 1MHz, and the sampling time is 10s. Step S4, set the test parameters of different fault types under different working conditions, including working condition A (12-0.6m), working condition B (6-0.6m) and working condition C (12-1.2m), where r represents the speed unit rpm, and m represents the load unit MPa. In addition, each working condition is divided into 9 different test conditions, namely no fault, outer ring defect (1.5mm), inner ring defect (1.5mm), outer ring defect (2.5mm), inner ring defect (2.5mm), outer ring defect (3.5mm), inner ring defect (3.5mm), outer ring defect (5.0mm) and inner ring defect (5.0mm). Step S5, after the preparation work is completed, different working condition tests are carried out. During the test, the test parameters and the collected acoustic emission signals are stored. Figure 3 Schematic diagram of a bearing fault acoustic emission signal collected through two channels.
[0047]
[0048] Step 3: Process the data set by combining short-time Fourier transform with full vector spectrum technology to process the acoustic emission signal to obtain a full vector spectrogram for constructing the data set.
[0049] This step 3 provides an acoustic emission signal processing method, see Figure 4The present invention provides an acoustic emission signal processing method, which realizes the multi-faceted mining of the characterization relationship between acoustic emission (AE) data and fault characteristics, and subsequently constructs a data set based on this, specifically including: step S1, segmenting the acoustic emission data collected under different working conditions, each sample after segmentation contains 8192 sampling points, and each state has 200 samples, and finally 1800 samples under 9 different states are obtained, and a total of 5400 samples under three working conditions are obtained. In order to collect more comprehensive fault information in the experiment, two acoustic emission sensors are used for signal collection, and finally a total of 10800 samples are obtained. Step S2, using full vector spectrum technology combined with short-time Fourier transform to perform time-frequency analysis on the samples under three working conditions, the dual-channel signals obtained by the two sensors are fused, and a total of 5400 full vector spectrograms are obtained. Step S3, use the full-vector spectrogram transformation formula to process the signal, obtain all full-vector spectrograms and use them to construct a data set, including three working condition data sets: data set A (12-0.6m), data set B (6-0.6m) and data set C (12-1.2m), each working condition contains 9 fault types.
[0050] Among them, the full vector spectrum technology combined with short-time Fourier transform is used to perform time-frequency analysis on the samples under three working conditions, and the dual-channel signals obtained by the two sensors are fused to obtain a total of 5400 full vector spectrograms. The specific calculation process is as follows.
[0051] The short-time Fourier transform calculation formula is: .
[0052] in, and is the discrete sequence of the set after segmentation in the x and y directions, is the window sequence, and represents the input signal in the x and y directions, represents a constant, that is , Indicates the window length, Indicates the first data. Indicates the data length, and is the real and imaginary sequence of the short-time Fourier transform of the x-direction signal, and is the real and imaginary sequence of the short-time Fourier transform of the y-direction signal, represents the short-time Fourier transform, is the spectrum of the x-direction signal after short-time Fourier transform, is the spectrum of the y-direction signal after short-time Fourier transform, is an imaginary unit, that is , is the frequency, for index, is the ratio of pi.
[0053] In order to ensure the rapidity and stability of the full vector numerical calculation, the signal sequences in the x and y directions are constructed as complex sequences , then for There is the following formula.
[0054] .
[0055] in, represents the constructed input signal, is the window sequence, represents the real part sequence, represents the imaginary part sequence, represents a discrete sequence of signals expressed in complex form, represents the signal sequence after short-time Fourier transform, is an imaginary unit, that is .
[0056] According to the above formula, combined with the full vector spectrum theory, the full vector spectrogram transformation of each period can be obtained. The full vector spectrogram transformation formula is shown in .
[0057] .
[0058] in, All are signal sequences. represents the full vector spectrum of the signal, represents a constant, that is , Indicates The signal spectrum of the time period, Indicates The signal spectrum of a period of time.
[0059] The specific acoustic emission signal processing results are as follows: Figure 5 As shown, Figure 5 Part (a) shows a single-channel spectrogram, and part (b) shows a dual-channel full-vector spectrogram. Figure 5 It can be seen that the full vector acoustic spectrogram combined with the bidirectional channel signal enhances the time-frequency characteristics of the signal, can better reflect the fault characteristics, is conducive to reducing the complexity of the recognition calculation, and improves the recognition accuracy of the recognition model.
[0060] Step 4: Design a fault diagnosis model, add the Coordinate Attention (CA) mechanism module and the AdamW optimization algorithm to the Efficientnet network to optimize it to obtain the fault diagnosis network model EfficientNet-CA-AdamW (EfficientNet-CAA), and use the test data set to test the model. Among them, the Coordinate Attention (CA) mechanism is the CA attention mechanism.
[0061] This step 4 provides a bearing fault diagnosis model, see Figure 6 The present invention provides a bearing fault diagnosis model, which can realize the diagnosis of bearing faults under small sample and multiple working conditions, and specifically includes the following steps S1 to S3.
[0062] Step S1: Dataset construction, using Figure 4 The data set is constructed by processing the full vector acoustic spectrogram. The three working conditions contain 9 types of faults, each type of fault has 200 samples, and the total number of samples obtained under each working condition is 1800. The 1800 samples of each working condition are allocated to the training set, validation set and test set data in a ratio of 6:2:2 to complete the construction of the data set. Among them, each sample in the training set is labeled, and the label is specifically the fault type corresponding to the sample.
[0063] Step S2: Design of a fault diagnosis model, mainly including the following steps S21 to S23.
[0064] Step S21: Design a bearing fault diagnosis model based on the structure of the EfficientNet-B0 network. The EfficientNet network has a good balance between the three dimensions of depth, width and resolution. The EfficientNet-B0 network structure mainly consists of an inverted bottleneck convolution module (mobile inverted bottleneck convolution, MBConv), a convolution layer, a global average pooling layer and a fully connected layer. In order to reduce the number of parameters of the model, a depth-separable convolution layer is used to replace the original standard convolution layer in the network (only the convolution layer). The main part of the fault diagnosis model is designed based on the EfficientNet-B0 network structure. The specific structural composition is shown in Table 2. It is mainly composed of MBConv, a convolution layer, a global average pooling layer and a fully connected layer. In Table 2, its core module MBConv integrates many structures to enrich the feature extraction. The composition structure of the core module MBConv is shown in the following figure. Figure 7As shown in the figure, in order to speed up the recognition speed of the model, the original standard convolution in the network structure is replaced by the deep separable convolution, which greatly reduces the number of parameters of the model and improves the calculation speed of the model while ensuring the recognition accuracy.
[0065]
[0066] Step S22: Introduce the coordinate attention mechanism to replace the Sequeeze-and-Excitation (SE) attention mechanism in the original EfficientNet network, that is, use the coordinate attention mechanism in the feature extraction network structure to replace the squeeze-and-excitation attention mechanism in the original EfficientNet network, make up for the shortcoming of the SE module ignoring the position feature information, embed the position information into the channel, and thus better extract the feature information. The structure of the coordinate attention mechanism is as follows Figure 8 As shown. Specifically, in order to avoid the loss of position information caused by two-dimensional global pooling, the CA module first decomposes the two-dimensional global pooling into two parallel one-dimensional feature encodings, and then performs feature aggregation in the vertical and horizontal directions respectively. This can capture long-term dependencies along one spatial direction while preserving precise position information along another spatial direction. The generated feature maps are then encoded separately to form a pair of direction-aware and position-sensitive feature maps, which can be complementary applied to the input feature map to increase the representation of the object of interest.
[0067] Step S23: Introduce the AdamW optimization algorithm to replace the Stochastic Gradient Descent (SGD) in the original EfficientNet model, that is, replace the original stochastic gradient descent in the model with the AdamW optimization algorithm to improve the generalization ability and recognition accuracy of the model. The Adam (Adaptive Moment Estimation) optimization algorithm is a series of optimization adjustments based on the SGD optimization algorithm. It has the advantages of high computational efficiency, small memory requirements, and is suitable for solving optimization problems with large-scale data and parameters. The AdamW algorithm, based on the Adam optimization algorithm, adds weight decay when updating parameters. It has smaller training and test losses under the same number of training times, and the model has better generalization ability. The parameter update formula of the AdamW algorithm is: .in, is the parameter updated iteratively in the model, is the learning rate, The value of is 0.001, The value of , is a real number, is the second-order moment estimate, express The previous iteration parameter, the iteration is from Iterate to , represents the exponential decay rate of the first-order moment estimate, represents the first-order moment estimate, Represents a very small value used to prevent the denominator from being zero.
[0068] Step S3: Testing and optimization of the fault diagnosis model, mainly including the following steps.
[0069] A variety of methods were selected for comparative testing experiments with the diagnostic model of the present invention, including AlexNet, VGG16, ResNet34, ShuffleNetV2, EfficientNet-B0 and the method of the present invention, a total of 6 methods, and the test sets used in the experiment were the same. The performance of various classification models was evaluated by comprehensively using indicators such as recognition accuracy, precision, recall, and auxiliary evaluation value F1 value, and compared with the test results of other models.
[0070] Specifically, the calculation formulas for each evaluation index are as follows.
[0071] .
[0072] in, is the number of samples correctly predicted by the model, is the total sample size, Indicates the recognition accuracy.
[0073] .
[0074] in, represents a true positive, Indicates a false positive. Indicates a false negative. Indicates the accuracy, Recall. True Positive (TP) means that the actual result is positive and the prediction is also positive. False Positive (FP) means that the actual result is negative and the prediction is positive. False Negative (FN) means that the actual result is positive and the prediction is negative. True Negative (TN) means that the actual result is negative and the prediction is also negative.
[0075] .
[0076] in, Indicates the auxiliary evaluation value F1 value.
[0077] The test results are shown in Table 3. It can be seen that the Efficientnet-CAA model has an accuracy of 99.8%, a precision of 99.67%, a recall of 99.65%, and an F1 value of 99.66%, and the number of model parameters and floating-point operations are kept within a relatively small range.
[0078]
[0079] Combined with transfer learning, bearing fault diagnosis under small sample and multi-working conditions is realized. That is, the structure and parameters of the generated model under a certain working condition are frozen, and then a small amount of data from another different working condition is used to train and fine-tune the last convolutional layer and fully connected layer of the model. Finally, the test set data (20% of the total samples in the target domain) under the same working condition as the fine-tuning training is used to verify the model recognition accuracy. The data sets used include data set A (12-0.6m), data set B (6-0.6m) and data set C (12-1.2m). For example, the data set used for model training is data set A, and data set B is used for fine-tuning training and test verification. The test results are as follows: Fig. 9 As shown, from Fig. 9 It can be seen that the EfficientNet-CAA model has strong deep learning capabilities and stable generalization capabilities. Not only is the diagnostic accuracy very ideal in the stable working condition test, but under the variable working condition, although the accuracy has a slight decrease, it can still maintain a high accuracy, which is much higher than other recognition models. In addition, the number of training samples in the above experiments is 20% of the total samples in the target domain, that is, the model has achieved good recognition results in the field of bearing fault diagnosis with small samples and variable working conditions.
[0080] Step 5: Combined with the transfer learning method, use a multi-condition test dataset to test the performance of the fault diagnosis model.
[0081] The specific steps of step 5 include: combining the transfer learning method to further train and test the model trained under a single working condition, involving bearing fault diagnosis under small sample variable working conditions, and the data set uses the three working condition data sets A, B and C constructed previously. The fault diagnosis model is trained with a data set of any working condition to obtain a pre-trained model, and then the trained diagnosis model (except the last convolutional layer and the fully connected layer) is frozen, and the target domain working condition data set (20%) is used as a small sample to fine-tune the model to obtain the diagnostic accuracy under small sample variable working conditions.
[0082] Step 6: Output the bearing fault diagnosis results.
[0083] The present invention uses acoustic emission detection equipment to monitor the operating status of bearings with different fault types under different working conditions. Based on experimental data, an ultra-low-speed bearing recognition model with EfficientNet as the backbone feature extraction network is designed, and combined with transfer learning, bearing fault diagnosis under small sample variable working conditions is successfully realized. In short, the bearing fault diagnosis method under small sample multi-working conditions provided by the present invention includes: step S1, collecting acoustic emission signals of the operating status of faulty bearings under different working conditions. Step S2, extracting the full-vector acoustic spectrogram of the acquired signal data, obtaining dual-channel fusion features that can characterize the bearing fault, and constructing a data set based on this. The data set consists of acoustic emission signals under 9 different fault types, and the 9 fault types are no fault, outer ring defect (1.5mm), inner ring defect (1.5mm), outer ring defect (2.5mm), inner ring defect (2.5mm), outer ring defect (3.5mm), inner ring defect (3.5mm), outer ring defect (5.0mm) and inner ring defect (5.0mm). Each fault acoustic emission signal collected in the experiment is segmented, and each fault is segmented into 200 samples, with a total of 1,800 samples for 9 fault types. The samples in the data set all use the full vector spectrogram of the acoustic emission signal with dual-channel fusion to characterize the fault. Step S3, design a bearing fault diagnosis model based on the EfficientNet network, introduce the coordinate attention mechanism (CA) and the AdamW optimization algorithm into the model, and use the deep separable convolution to replace the standard convolution, and obtain a fault diagnosis model named EfficientNet-CAA, specifically: the coordinate attention mechanism is introduced into the model to replace the original squeeze-excitation attention mechanism. The AdamW algorithm is introduced into the model to replace the original SGD optimization algorithm. The deep separable convolution is used in the model to replace the original standard convolution. Step S4, train and test the data of different working conditions based on the transfer learning method, and fine-tune the network model parameters, finally obtain the fault diagnosis model, and output the fault diagnosis results, that is, combine the transfer learning method to use EfficientNet-CAA to train and test the data set under small sample and multi-working conditions. The performance of the model is evaluated using indicators such as accuracy, precision, recall, and auxiliary evaluation value F1 value.
[0084] The present invention provides a bearing fault diagnosis method under small sample and multi-working conditions. First, a bearing fault signal acquisition test scheme is designed to realize the acoustic emission data acquisition of different types of fault signals under different working conditions, and the acoustic emission data under different working conditions are obtained; then, the obtained data is processed, and the acoustic emission data under dual channels are fused to obtain the full vector spectrogram data using short-time Fourier transform combined with full vector spectrogram technology, and a data set is constructed. The data set includes three working conditions, and each working condition contains 9 types of faults; then, a bearing fault diagnosis model is designed based on the EfficientNet network, and the original standard convolution in the model is replaced with a deep separable convolution, which reduces the number of model parameters while ensuring accuracy and improves the model operation speed. The CA module is introduced into the model to improve the model's extraction of detailed information, and the recognition ability of the model is effectively improved without increasing the amount of calculation. The AdamW optimization algorithm is introduced into the model to improve the convergence speed of the model and enhance the generalization ability of the model. Finally, transfer learning is applied to successfully realize fault identification under small sample variable working conditions. Compared with traditional methods, the present invention solves the problems of complex feature extraction and poor versatility in traditional diagnostic methods, realizes the diagnosis of bearing faults under small sample and multiple working conditions, and improves the recognition accuracy and generalization ability of the model.
[0085] The bearing fault diagnosis method under small sample and multi-working conditions provided by the present invention adopts acoustic emission signals under different working conditions, combines short-time Fourier transform and full vector spectrum technology to perform full vector spectrum feature processing on the obtained acoustic emission data, and obtains a full vector spectrum graph for constructing an image data set for training. A deep learning model is constructed based on the EfficientNet network, and a coordinate attention mechanism is introduced in the model feature extraction stage to improve the model's ability to extract detailed position information. The AdamW optimization algorithm is introduced to improve the generalization ability of the model. Finally, combined with transfer learning, bearing fault diagnosis under small sample and multi-working conditions is realized.
[0086] The present invention is based on the fact that deep learning technology combined with acoustic emission has been widely used in the field of intelligent fault diagnosis in recent years. The deep learning network has good autonomous learning ability, wide coverage, good adaptability and excellent transplantation ability. It can process and analyze fault signals, find the implicit relationship between fault information and other influencing factors, and then realize the diagnosis and identification of faults. For the first time, acoustic emission + Efficientnet network is used for bearing fault diagnosis. The use of acoustic emission + Efficientnet network + transfer learning solves the problems of weak feature extraction ability, insufficient generalization ability and limited research on bearing fault diagnosis under small sample variable working conditions in existing bearing fault diagnosis methods. Compared with the existing fault diagnosis methods, the method of the present invention has the following technical advantages: (1) Using the feature extraction method of full-vector spectrogram, the dual-channel AE signal is subjected to full-vector data fusion to obtain the full-vector spectrogram, which fully explores the characterization relationship between multi-directional AE data and fault characteristics. Compared with the model established by single-channel data, the full-vector spectrogram method can well make up for the information omission caused by the single-channel signal, and the extracted fault feature information is more complete and the model adaptability is stronger. (2) The variable operating condition bearing fault recognition model based on the improved EfficientNet backbone feature extraction network has a strong feature extraction capability; the introduced CA module improves the model's extraction of detailed information, effectively improving the model's recognition capability without increasing the amount of calculation. The introduction of the AdamW optimization algorithm improves the convergence speed of the model and enhances the generalization ability of the model. By comparing with other models, it is found that the EfficientNet-CAA model is superior to other models in terms of recognition accuracy and loss function. (3) The application of transfer learning realizes fault recognition under variable operating conditions with small samples, which provides a basis for the subsequent migration of laboratory data to field applications, and can develop corresponding software platforms to better realize field fault recognition.
[0087] In some embodiments, the present invention further provides a computer program product, comprising a computer program, which implements the bearing fault diagnosis method when executed by a processor.
[0088] In some embodiments, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the bearing fault diagnosis method when executed by a processor.
[0089] In some embodiments, the present invention further provides a computer device, which includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the bearing fault diagnosis method can be implemented.
[0090] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A bearing fault diagnosis method, characterized in that: include: Acquire the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operation status with different fault types under different working conditions; For the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of each fault type under each working condition, the full vector spectrum technology is combined with the short-time Fourier transform to perform time-frequency analysis on the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operating state of the fault type under the working condition, and the full vector data fusion is performed on the acoustic emission signals in the x-direction and the y-direction of the bearing operating state of the fault type under the working condition using the feature extraction method of the full vector acoustic spectrogram to obtain the full vector data of the bearing operating state of each fault type under each working condition. Spectrogram; This step provides an acoustic emission signal processing method, specifically comprising: step S1, segmenting the acoustic emission data collected under different working conditions, and finally obtaining 5400 samples of three working conditions, and using two acoustic emission sensors for signal collection; step S2, using full vector spectrum technology combined with short-time Fourier transform to perform time-frequency analysis on the samples under the three working conditions, fusing the dual-channel signals obtained by the two sensors, and obtaining 5400 full vector spectrograms; step S3, using the full vector spectrogram transformation formula to process the signal, obtain all the full vector spectrograms and use them to construct a data set; Using the full vector acoustic spectrogram of the bearing operating state of each fault type under each working condition, a data set for each working condition is constructed; the data set for each working condition includes the full vector acoustic spectrogram of the bearing operating state of different fault types under the working condition; Based on the EfficientNet-B0 network, the standard convolutional layer in the EfficientNet-B0 network is replaced with a depth-separable convolutional layer, and the squeeze-excitation attention mechanism in the EfficientNet-B0 network is replaced with a coordinate attention mechanism. At the same time, the AdamW optimization algorithm is introduced to replace the stochastic gradient descent method in the EfficientNet-B0 network to obtain a fault diagnosis network model; based on the Adam optimization algorithm, the AdamW optimization algorithm adds weight attenuation when updating parameters; the parameter update formula of the AdamW optimization algorithm is: ;in, is the parameter updated iteratively in the model, is the learning rate, The value of is 0.001, The value of , is a real number, is the second-order moment estimate, express The previous iteration parameter, the iteration is from Iterate to , represents the exponential decay rate of the first-order moment estimate, represents the first-order moment estimate, Represents a very small value to prevent the denominator from being zero; Select a data set of any working condition, and use the selected data set of the working condition to train the fault diagnosis network model to obtain a pre-trained model; Using the pre-trained model combined with transfer learning to perform bearing fault diagnosis under small sample variable working conditions; Among them, the full vector spectrum technology combined with short-time Fourier transform is used to perform time-frequency analysis on samples under three working conditions, and the dual-channel signals obtained by the two sensors are fused to obtain a total of 5400 full vector spectrograms. The specific calculation process is as follows; The short-time Fourier transform calculation formula is: ; in, and is the discrete sequence of the set after segmentation in the x and y directions, is the window sequence, and represents the input signal in the x and y directions, represents a constant, that is , Indicates the window length, Indicates the first data. Indicates the data length, and is the real and imaginary sequence of the short-time Fourier transform of the x-direction signal, and is the real and imaginary sequence of the short-time Fourier transform of the y-direction signal, represents the short-time Fourier transform, is the spectrum of the x-direction signal after short-time Fourier transform, is the spectrum of the y-direction signal after short-time Fourier transform, is an imaginary unit, that is , is the frequency, for index, is pi; In order to ensure the rapidity and stability of the full vector numerical calculation, the signal sequences in the x and y directions are constructed as complex sequences , then for There is the following formula; ; in, represents the constructed input signal, is the window sequence, represents the real part sequence, represents the imaginary part sequence, represents a discrete sequence of signals expressed in complex form, represents the signal sequence after short-time Fourier transform, is an imaginary unit, that is ; According to the above formula, combined with the full vector spectrum theory, the full vector spectrogram transformation of each period can be obtained. The full vector spectrogram transformation formula is shown in ; ; in, All are signal sequences. represents the full vector spectrum of the signal, represents a constant, that is , Indicates The signal spectrum of the time period, Indicates The signal spectrum of a period of time.
2. The bearing fault diagnosis method according to claim 1, characterized in that: The method of obtaining the acoustic emission signals in the x-direction and the acoustic emission signals in the y-direction of the bearing operation status of different fault types under different working conditions also includes: Two acoustic emission sensors respectively attached to the upper end and the right end of the bearing are used to monitor the bearing operating status of different fault types under different working conditions. The acoustic emission sensor attached to the right end of the bearing is used to collect the acoustic emission signals in the x-direction of the bearing operating status of different fault types under different working conditions. At the same time, the acoustic emission sensor attached to the upper end of the bearing is used to collect the acoustic emission signals in the y-direction of the bearing operating status of different fault types under different working conditions.
3. The bearing fault diagnosis method according to claim 2, characterized in that: The acoustic emission sensor attached to the right end of the bearing forms an angle of 90° with the acoustic emission sensor attached to the upper end of the bearing.
4. The bearing fault diagnosis method according to claim 1, characterized in that: The data set of any one of the working conditions is selected, and the fault diagnosis network model is trained using the data set of the selected working condition to obtain a pre-trained model, specifically comprising: Select a data set of any working condition; The fault diagnosis network model is trained using the full-vector acoustic spectrograms of the bearing operating status of different fault types under the working condition in the data set of the selected working condition to obtain a pre-trained model; the pre-trained model is used to perform bearing fault diagnosis on the full-vector acoustic spectrograms of the bearing operating status of unknown fault types under the working condition input into the pre-trained model, and output the fault type corresponding to the full-vector acoustic spectrogram of the bearing operating status of the unknown fault type under the working condition.
5. The bearing fault diagnosis method according to claim 1, characterized in that: The pre-trained model is used in combination with transfer learning to perform bearing fault diagnosis under small sample variable working conditions, specifically including: Freeze the structure and parameters of the pre-trained model except the last convolutional layer and the fully connected layer; Using a small number of full-vector spectrograms in another data set of different working conditions as small samples to train and fine-tune the last convolutional layer and the fully connected layer of the pre-trained model, a bearing fault diagnosis model under small sample variable working conditions is obtained; the another data set of different working conditions is a data set of working conditions different from the data set for training the pre-trained model; The bearing fault diagnosis model under small sample variable operating conditions is used to diagnose bearing faults under small sample variable operating conditions.
6. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the bearing fault diagnosis method described in any one of claims 1 to 5 is implemented.
7. A computer-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 described in any one of claims 1 to 5 is implemented.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the bearing fault diagnosis method according to any one of claims 1 to 5.
