Rolling bearing fault diagnosis method based on joint moment condition distribution matching
Through the domain adaptive network based on joint moment conditional distribution matching, using the feature space linear mapping algorithm and joint moment statistical indicators, the inefficiency problem of traditional methods in rolling bearing fault diagnosis under cross-working conditions is solved, and higher diagnostic accuracy is achieved. rate and model generalization ability.
Patent Information
- Application Number
- CN202410797189.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional deep learning methods perform poorly in rolling bearing fault diagnosis across working conditions, and are difficult to meet the requirements for different data distribution characteristics in actual engineering, resulting in low diagnosis efficiency.
A domain adaptive network based on joint moment conditional distribution matching is used to construct a domain adaptive network through feature generators and classifiers. The feature space linear mapping algorithm and joint moment statistical indicators are used to reduce data distribution differences and learn domain invariant features. Enhance the diagnostic capabilities of the model.
The model's generalization performance and diagnostic accuracy are improved, faults can be more accurately identified in cross-working scenarios, and the learning and transfer capabilities of shared diagnostic knowledge are enhanced.
Smart Images

Figure CN118746436A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of mechanical fault diagnosis methods, and in particular to a rolling bearing fault diagnosis method based on joint moment condition distribution matching. Background Art
[0002] Rolling bearings are an important part of the auxiliary equipment of thermal power plants, and their operating status directly affects the overall stability and reliability of the power plant operation. Rolling bearing failures may lead to reduced equipment efficiency and even cause serious mechanical accidents. Therefore, timely and accurate monitoring and diagnosis of the health status of rolling bearings is crucial to ensure the safety and stable operation of the unit. In recent years, data-driven fault diagnosis methods have received widespread attention. Traditional data-driven methods require a large amount of labeled training data with the same distribution as the data to be diagnosed to achieve reliable diagnosis. However, this is difficult to meet in actual engineering tasks, because data collected from different operating conditions (speed, load) usually have different distribution characteristics. This makes traditional deep learning methods perform poorly in cross-condition diagnosis tasks. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention provides a rolling bearing fault diagnosis method based on joint moment conditional distribution matching, aiming to improve the generalization performance of the model and enhance the effectiveness of target sample diagnosis in cross-operating scenarios.
[0004] The technical solution adopted by the present invention is as follows:
[0005] A rolling bearing fault diagnosis method based on joint moment condition distribution matching, comprising:
[0006] S1. constructing a domain adaptation network based on joint moment conditional distribution matching, wherein the domain adaptation network based on joint moment conditional distribution matching includes a feature generator and a classifier;
[0007] S2. Obtain rolling bearing vibration data under different working conditions, use the labeled data under a certain working condition as the source domain, and the unlabeled data under another working condition as the target domain, construct labeled source domain samples and unlabeled target domain samples, use all source domain samples and part of the target domain samples as the training set, and use the remaining target domain samples as the test set;
[0008] S3, inputting the training set into the domain adaptation network based on joint moment conditional distribution matching, and obtaining the feature matrices F belonging to the source domain respectively through the feature generator s and the feature matrix F belonging to the target domain t ; Feature matrix F s and the feature matrix F t Input the classifier to obtain the classification loss L of the source domain samples c, and output the label prediction probability vector of the target domain sample;
[0009] S4. Use the feature space linear mapping algorithm to calculate the feature matrix F of the fusion category information of the source domain samples s,y , and the feature matrix F of the fusion category information of the target domain samples t,y ;
[0010] Feature matrix F s,y Features included are:
[0011]
[0012] in, represents the output feature of the feature generator output corresponding to the i-th source domain input; is the label of the i-th source domain input; yes One-hot form; represents the tensor product operator; the subscript s represents the source domain; flat(·) represents the flattening operation; 1(·) is the indicator function, if and only if y s i =1, 1(y s i =1) is taken as 1, otherwise it is taken as 0;
[0013] Feature matrix F t,y Features included are:
[0014]
[0015] in, is the label prediction probability vector of the i-th target domain sample, represents the output feature of the feature generator output corresponding to the i-th target input; represents the i-th target domain sample x t i The probability of being identified as different categories, l = 1, 2, ... L, L is the number of output categories of the feature generator; represents the label prediction probability vector of the i-th target domain sample; flat(·) represents the flattening operation; the subscript t represents the target domain;
[0016] S5, based on the feature matrix F s,y , feature matrix F t,y , respectively calculate the joint moment statistics corresponding to the source domain and the target domain, and obtain the distribution difference loss L of the network smm ;
[0017] S6. The classification loss L of the source domain samples c and the distribution difference loss L of the networksmm Merge to form a total loss function, and update the network parameters of the feature generator and classifier through a back propagation algorithm;
[0018] S7, repeat steps S3 to S6 until the loss converges, the network training is completed, and a trained model is obtained;
[0019] S8. Input the test set of step S2 into the trained model to perform fault diagnosis and obtain a diagnosis result.
[0020] Further technical solutions are:
[0021] The structure of the feature generator includes a first convolutional layer, a first pooling layer, a second convolutional layer, a second pooling layer, a third convolutional layer, a third pooling layer and a first fully connected layer;
[0022] The structure of the classifier includes a front fully connected layer and a rear fully connected layer.
[0023] The number and size of convolution kernels of the first convolution layer are 32 and 7 respectively; the number and size of convolution kernels of the second convolution layer are 64 and 5 respectively; the number and size of convolution kernels of the third convolution layer are 64 and 3 respectively;
[0024] The number of nodes in the first fully connected layer is 512, and the pooling size and pooling step size of each pooling layer are 2, 2 respectively;
[0025] The number of nodes in the front fully connected layer is 100, and the number of nodes in the rear fully connected layer is L, where L is the number of output categories.
[0026] Step S5 includes:
[0027] Calculate the feature matrix F s,y 、F t,y The covariance matrix of is:
[0028]
[0029] Among them, α s and α t F s,y 、F t,y The covariance matrix of and I is a unit vector; n s is the number of source domain samples, n t is the number of samples in the target domain;
[0030] F s,y 、F t,yThe shape of is n×(L×d), n is the number of samples input to the feature generator, L is the number of output categories, and d is the dimension of the feature f output by the feature generator;
[0031] Calculate the feature matrix F s,y 、F t,y The mean vector of :
[0032]
[0033] Among them, β s and β t They are the feature matrices F s,y 、F t,y The mean of , j = 1, 2, …, L × d;
[0034] Combine the covariance matrix and mean vector to obtain the joint moment statistics index J of the source domain and the target domain s , J t :
[0035]
[0036] Based on the joint moment statistical index J s , J t , calculate the distribution difference loss L of the network smm :
[0037]
[0038] in, represents the Frobenius norm.
[0039] Step S6 includes:
[0040] Construct the total loss function:
[0041] J(θ G ,θ C )=L c +λ·L smm
[0042] Among them, θ G ,θ C are the network parameters of the feature generator and classifier respectively, and λ is a trade-off parameter;
[0043] The stochastic gradient descent algorithm is used to update the network parameters of the feature generator and classifier:
[0044]
[0045] Among them, μ is the learning rate.
[0046] The beneficial effects of the present invention are as follows:
[0047] The present invention is based on a linear mapping algorithm process including feature space and joint moment statistical indicators. By coupling the label information of the data into the features, the conditional distribution characteristics related to the categories are fully explored, which can more accurately characterize the data distribution of the source domain and the target domain, and more effectively achieve distribution alignment, thereby reducing the distribution difference. A joint moment statistical indicator combining first-order and second-order statistics is constructed for feature matching training to learn domain-invariant features, thereby enhancing the model's ability to learn and transfer shared diagnostic knowledge, thereby improving the diagnostic accuracy of the target sample.
[0048] The method of the present invention can fully exploit domain-invariant features between domains in the rolling bearing cross-operating condition fault diagnosis task, and has good effectiveness and application prospects.
[0049] Other features and advantages of the present invention will be set forth in the following description or may be learned by practicing the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 The figure is a flow chart of model training in the method of an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The specific implementation of the present invention is described below with reference to the accompanying drawings.
[0052] See also Figure 1 , a rolling bearing fault diagnosis method based on joint moment condition distribution matching in this embodiment includes:
[0053] S1. Construct a domain adaptation network (JDAN) based on joint moment conditional distribution matching, wherein the domain adaptation network based on joint moment conditional distribution matching includes a feature generator G(·) and a classifier C(·).
[0054] S2. Use an acceleration sensor to collect the original vibration signals of the bearing under different operating conditions. Use the labeled data under a certain condition as the source domain and the unlabeled data under another condition as the target domain to obtain labeled source domain samples and unlabeled target domain samples. Divide all the source domain and 70% of the target domain data into a training set, and the remaining 30% of the target domain into a test set.
[0055] S3, inputting the training set samples into the domain adaptation network based on joint moment conditional distribution matching, and obtaining the feature matrices F belonging to the source domain respectively through the feature generator s and the feature matrix F belonging to the target domain t ; Feature matrix F s and the feature matrix F t Input the classifier to obtain the classification loss L of the source domain samples c , and output the label prediction probability vector of the target domain sample;
[0056] Classification loss L c Specifically, it can be expressed as:
[0057]
[0058] Among them, n s is the number of source domain samples, is the cross entropy loss function, and are the i-th source domain sample and its corresponding label respectively; the subscript s represents the source domain;
[0059] The label prediction probability vector of the target domain sample can be specifically expressed as: is the i-th target domain sample.
[0060] S4, use the feature space linear mapping algorithm (FSLM) to calculate the feature matrix F of the fusion category information of the source domain samples s,y , and the feature matrix F of the fusion category information of the target domain samples t,y .
[0061] The FSLM algorithm used in this embodiment uses a tensor product operator to simultaneously project the feature representation generated by the feature generator G(·) and the label information generated by the classifier C(·) into a new feature space to form a feature representation that integrates the label information. Specifically:
[0062] Feature matrix F s,y Features included are:
[0063]
[0064] in, represents the output feature of the feature generator output corresponding to the i-th source domain input; is the label of the i-th source domain input; yes One-hot form; represents the tensor product operator; the subscript s represents the source domain; flat(·) represents the flattening operation; 1(·) is the indicator function, if and only if hour, The value is 1, otherwise the value is 0;
[0065] Feature matrix F t,y Features included are:
[0066]
[0067] in, is the label prediction probability vector of the i-th target domain sample, represents the output feature of the feature generator output corresponding to the i-th target input; represents the i-th target domain sample The probability of being identified as different categories, l = 1, 2, ... L, L is the number of output categories of the feature generator; represents the label prediction probability vector of the i-th target domain sample; flat(·) represents the flattening operation; the subscript t represents the target domain;
[0068] Through iterative training, the confidence of the classifier will continue to increase, and the prediction results of the target domain samples will gradually reach the optimal level;
[0069] S5, based on the feature matrix F s,y , feature matrix F t,y , respectively calculate the joint moment statistics corresponding to the source domain and the target domain, and obtain the distribution difference loss L of the network smm , specifically including the following steps:
[0070] Calculate the feature matrix F s,y 、F t,y The covariance matrix of is:
[0071]
[0072] Among them, α s and α t F s,y 、F t,y The covariance matrix of and I is a unit vector; n s is the number of source domain samples, n t is the number of samples in the target domain;
[0073] F s,y 、F t,y The shape of is n×(L×d), n is the number of samples input to the feature generator, L is the number of output categories, and d is the dimension of the feature f output by the feature generator;
[0074] Calculate the feature matrix F s,y 、F t,y The mean vector of :
[0075]
[0076] Among them, β s and β t They are the feature matrices F s,y 、F t,y The mean of , j = 1, 2, …, L × d;
[0077] Combine the covariance matrix and mean vector to obtain the joint moment statistics index J of the source domain and the target domain s , J t :
[0078]
[0079] Based on the joint moment statistical index J s , J t , calculate the distribution difference loss L of the network smm :
[0080]
[0081] in, represents the Frobenius norm.
[0082] S6. The classification loss L of the source domain samples c and the distribution difference loss L of the network smm Combined to form the total loss function:
[0083] J(θ G ,θ C )=L c +λ·L smm
[0084] Among them, θ G ,θ C are the network parameters of the feature generator and classifier respectively, and λ is a trade-off parameter;
[0085] The stochastic gradient descent algorithm is used to update the network parameters of the feature generator and classifier:
[0086]
[0087] Among them, μ is the learning rate.
[0088] S7, repeat steps S3 to S6 until the loss converges, the network training is completed, and a trained model is obtained;
[0089] S8. Input the test set of step S2 into the trained model to perform fault diagnosis and obtain a diagnosis result.
[0090] As a specific implementation, referring to Table 1, the structure of the feature generator G(·) includes a first convolutional layer, a first pooling layer, a second convolutional layer, a second pooling layer, a third convolutional layer, a third pooling layer and a first fully connected layer;
[0091] Among them, the number of convolution kernels and the size of convolution kernels of the first convolution layer are 32 and 7 respectively; the number of convolution kernels and the size of convolution kernels of the second convolution layer are 64 and 5 respectively; the number of convolution kernels and the size of convolution kernels of the third convolution layer are 64 and 3 respectively; the number of nodes of the first fully connected layer is 512, and the pooling size and pooling step size of each pooling layer are 2 and 2 respectively;
[0092] The structure of the classifier C(·) includes a front fully connected layer and a rear fully connected layer.
[0093] The number of nodes in the front fully connected layer is 100, the number of nodes in the rear fully connected layer is L, and L is the number of output categories.
[0094] Table 1 JDAN structure and parameters
[0095]
[0096] The effectiveness of this embodiment is verified by a verification example below.
[0097] Verification example:
[0098] The data set was collected on a rolling bearing simulation test bench, and the bearing damage was achieved by manual wire cutting. There are four types of bearing health states, including normal state (N), inner ring (IR) and outer ring (OR) damage, and rolling damage (RE). Except for the IR damaged bearing model NU205, the bearings in other states are all N205. The inner and outer diameters of these two types of bearings are the same, 25mm and 52mm respectively. The difference is that the number of rolling elements of the two is different, the number of rolling elements of N205 is 10pc, and the number of rolling elements of NU205 is 11pc. The size of all outer ring damage is 0.3×0.25mm, and the size of rolling element damage is 0.5×0.15mm. The frequency used for collecting vibration data is 50kHz, and it is collected from three different speed conditions of 600rpm, 800rpm, and 1000rpm, respectively. The domains are A, B, and C. One of the domains is used as the source domain, and the other three are used as the target domains. A total of 6 cross-domain diagnosis tasks are established.
[0099] A comparative study is conducted using the traditional convolutional neural network model (CNN), the standard domain adaptation network (DDC) based on statistical moment matching, the M1 model with the FSLM process removed from JDAN, and the JDAN method implemented in this paper.
[0100] The cross-domain fault diagnosis results of JDAN and the three comparison methods are shown in Table 2. As can be seen from the table, JDAN has a good performance in the six diagnosis tasks of this experimental case (Task C x-yIndicates the migration from x rpm condition to y rpm condition), the highest diagnostic accuracy is always obtained, and its average diagnostic rate (AVG) reaches 91.73%. This result verifies the excellent performance and strong generalization ability of JDAN in cross-domain fault diagnosis, indicating that the method of this embodiment has good application prospects in the cross-condition fault diagnosis task of rolling bearings.
[0101] Table 2 Test accuracy of diagnostic tasks (%)
[0102]
[0103]
[0104] Those skilled in the art can understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A rolling bearing fault diagnosis method based on joint moment condition distribution matching, characterized in that: include: S1. constructing a domain adaptation network based on joint moment conditional distribution matching, wherein the domain adaptation network based on joint moment conditional distribution matching includes a feature generator and a classifier; S2. Obtain rolling bearing vibration data under different working conditions, use the labeled data under a certain working condition as the source domain, and the unlabeled data under another working condition as the target domain, construct labeled source domain samples and unlabeled target domain samples, use all source domain samples and part of the target domain samples as the training set, and use the remaining target domain samples as the test set; S3, inputting the training set into the domain adaptation network based on joint moment conditional distribution matching, and obtaining the feature matrices F belonging to the source domain respectively through the feature generator s and the feature matrix F belonging to the target domain t ; Feature matrix F s and the feature matrix F t Input the classifier to obtain the classification loss L of the source domain samples c , and output the label prediction probability vector of the target domain sample; S4. Use the feature space linear mapping algorithm to calculate the feature matrix F of the fusion category information of the source domain samples s,y , and the feature matrix F of the fusion category information of the target domain samples t,y ; Feature matrix F s,y Features included are: in, represents the output feature of the feature generator output corresponding to the i-th source domain input; is the label of the i-th source domain input; yes One-hot form; represents the tensor product operator; the subscript s represents the source domain; flat(·) represents the flattening operation; 1(·) is the indicator function, if and only if hour, The value is 1, otherwise the value is 0; Feature matrix F t,y Features included are: in, is the label prediction probability vector of the i-th target domain sample, represents the output feature of the feature generator output corresponding to the i-th target input; represents the i-th target domain sample The probability of being identified as different categories, l = 1, 2, ... L, L is the number of output categories of the feature generator; represents the label prediction probability vector of the i-th target domain sample; flat(·) represents the flattening operation; the subscript t represents the target domain; S5, based on the feature matrix F s,y , feature matrix F t,y , respectively calculate the joint moment statistics corresponding to the source domain and the target domain, and obtain the distribution difference loss L of the network smm ; S6. The classification loss L of the source domain samples c and the distribution difference loss L of the network smm Merge to form a total loss function, and update the network parameters of the feature generator and classifier through a back propagation algorithm; S7, repeat steps S3 to S6 until the loss converges, the network training is completed, and a trained model is obtained; S8. Input the test set of step S2 into the trained model to perform fault diagnosis and obtain a diagnosis result.
2. The rolling bearing fault diagnosis method based on joint moment condition distribution matching according to claim 1 is characterized in that: The structure of the feature generator includes a first convolutional layer, a first pooling layer, a second convolutional layer, a second pooling layer, a third convolutional layer, a third pooling layer and a first fully connected layer; The structure of the classifier includes a front fully connected layer and a rear fully connected layer.
3. The rolling bearing fault diagnosis method based on joint moment condition distribution matching according to claim 2 is characterized in that: The number and size of convolution kernels of the first convolution layer are 32 and 7 respectively; the number and size of convolution kernels of the second convolution layer are 64 and 5 respectively; the number and size of convolution kernels of the third convolution layer are 64 and 3 respectively; The number of nodes in the first fully connected layer is 512, and the pooling size and pooling step size of each pooling layer are 2, 2 respectively; The number of nodes in the front fully connected layer is 100, and the number of nodes in the rear fully connected layer is L, where L is the number of output categories.
4. The rolling bearing fault diagnosis method based on joint moment condition distribution matching according to claim 1 is characterized in that: Step S5 includes: Calculate the feature matrix F s,y 、F t,y The covariance matrix of is: Among them, α s and α t F s,y 、F t,y The covariance matrix of and I is a unit vector; n s is the number of source domain samples, n t is the number of samples in the target domain; F s,y 、F t,y The shape of is n×(L×d), n is the number of samples input to the feature generator, L is the number of output categories, and d is the dimension of the feature f output by the feature generator; Calculate the feature matrix F s,y 、F t,y The mean vector of : Among them, β s and β t They are the feature matrices F s,y 、F t,y The mean of , j = 1, 2, …, L × d; Combine the covariance matrix and mean vector to obtain the joint moment statistics index J of the source domain and the target domain s , J t : Based on the joint moment statistical index J s , J t , calculate the distribution difference loss L of the network smm : in, represents the Frobenius norm.
5. The rolling bearing fault diagnosis method based on joint moment condition distribution matching according to claim 4 is characterized in that: Step S6 includes: Construct the total loss function: J(θ G ,i C )=L c +λ·L smm Among them, θ G ,θ C are the network parameters of the feature generator and classifier respectively, and λ is a trade-off parameter; The stochastic gradient descent algorithm is used to update the network parameters of the feature generator and classifier: Among them, μ is the learning rate.
Citation Information
Cited By
Intelligent fault diagnosis method and system for ship propulsion shafting
CN119669854A
