A construction method and application of a variable operating condition bearing fault diagnosis model
By constructing a bearing fault diagnosis model under variable operating conditions, using feature extraction modules and domain classifiers combined with temporal convolutional networks and adversarial domain generalization methods, the problem of low accuracy of bearing fault diagnosis under variable operating conditions in existing technologies is solved. It achieves accurate fault judgment and improved cross-domain diagnosis accuracy under different working conditions.
Patent Information
- Application Number
- CN202210113860.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-01-30
AI Technical Summary
The existing technology has a low accuracy in bearing fault diagnosis under changing working conditions. Especially when the model is distributed under different data distributions, the model generalization is not strong, making it difficult to accurately determine the fault type under unseen working conditions.
Construct a variable working condition bearing fault diagnosis model, including a feature extraction module, a generation module and a domain classifier. The model is trained by minimizing the feature difference loss and label prediction loss. It combines the temporal convolution network and the adversarial domain generalization method to generate the domain. Irrelevant features improve model generalization and accuracy.
It achieves accurate diagnosis of bearing faults under different working conditions, reduces the sensitivity of the model to the domain, improves the generalization ability to unseen working conditions, avoids the problem of domain discriminator non-convergence, and supports variable length input , improving the accuracy of cross-domain fault diagnosis.
Smart Images

Figure CN114492533B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fault diagnosis, and more specifically, relates to a construction method and application of a variable operating condition bearing fault diagnosis model. Background Art
[0002] Bearings, as an extremely important component in modern mechanical equipment, are widely used in transportation, manufacturing and other fields. With the rapid development of modern industrial technology, all kinds of machine tools are developing towards precision, automation and large-scale. Once various bearing parts that play an important role in them fail, they will affect the operation of the machine tools. At the least, it will increase the defective rate of the products and reduce the precision of the products. At worst, it will cause damage to the machine tools, shut down for inspection and maintenance, delay the construction period, and cause huge economic losses, and may even endanger the lives of workers. Therefore, it is of great significance to explore and develop a method that can quickly and accurately diagnose bearing faults in various production scenarios.
[0003] Bearing fault diagnosis technology can be divided into two categories: traditional machine learning methods (ML) and methods based on deep learning (DL). The former requires professionals in multiple fields to perform manual feature extraction, which is costly and inefficient; while the latter can realize automatic feature extraction, directly use the collected signals as input, and realize end-to-end fault diagnosis, which has higher accuracy and certain transferability. At present, the commonly used fault diagnosis network models based on deep learning are mainly: convolutional neural network (CNN) and recurrent neural network (RNN); although compared with ML, the above methods have improved efficiency and accuracy to a certain extent, there are still some disadvantages, such as CNN requires more convolutional layers and a large amount of labeled data; RNN may have problems of gradient explosion and gradient disappearance; and in the face of the complexity of the actual production environment and the differences in the production environment, under the actual industrial application of variable working conditions, the data distribution under different working conditions is inconsistent, which will have a greater negative impact on the classification performance of the model. The existing methods have poor generalization of models with different data distributions, and it is difficult to have a high accuracy under variable working conditions. Summary of the invention
[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a method for constructing and applying a variable operating condition bearing fault diagnosis model to solve the technical problem of low bearing fault diagnosis accuracy in variable operating condition scenarios in the prior art.
[0005] In order to achieve the above-mentioned object, in a first aspect, the present invention provides a method for constructing a variable operating condition bearing fault diagnosis model, comprising the following steps:
[0006] S1. Build a variable operating condition bearing fault diagnosis model; the variable operating condition bearing fault diagnosis model includes: a feature extraction module, a generation module, a domain classifier and a label classifier;
[0007] Among them, the feature extraction module is used to extract the time series features of the input data; the generation module is used to generate generation features similar to the time series features; the domain classifier is used to map the input time series features or generation features to the corresponding predicted working condition categories; the label classifier is used to map the input time series features or generation features to the corresponding predicted fault category labels;
[0008] S2, using the bearing vibration signal data with real fault category labels under existing working conditions as source domain data and the bearing vibration signal data without real fault category labels under new working conditions as target domain data to form a training sample set;
[0009] S3, input the training sample set into the variable working condition bearing fault diagnosis model, and perform the first stage of training on the model by simultaneously minimizing the feature difference loss and the first label prediction loss; wherein the feature difference loss is used to measure the difference between the time series features of each training sample in the training sample set and the corresponding generated features; the first label prediction loss is used to measure the difference between the predicted fault category label corresponding to the time series features of each training sample in the training sample set and the corresponding real fault category label;
[0010] S4, repeat step S3 to iterate until the number of iterations reaches a preset number of iterations m; m≥1;
[0011] S5. Input the training sample set into the variable operating condition bearing fault diagnosis model, and perform the second stage of model training by simultaneously minimizing the feature difference loss, maximizing the domain discrimination loss, and minimizing the second label prediction loss; wherein, the domain discrimination loss is used to measure the sum of the discrimination losses of the predicted operating condition category corresponding to the temporal features and generated features of the source domain data being discriminated as the source domain operating condition category, and the predicted operating condition category corresponding to the temporal features and generated features of the target domain data being discriminated as the target domain operating condition category; the second label prediction loss is used to measure the difference between the predicted fault category label corresponding to the temporal features and generated features of each training sample in the training sample set and the corresponding real fault category label.
[0012] Further preferably, the training method in the first stage comprises the following steps:
[0013] S31, using a feature extraction module to extract the time series features of each training sample in the training sample set, and output them to a generation module;
[0014] S32, using a generation module to generate generation features corresponding to the time series features of each training sample;
[0015] S33, using a domain classifier to measure the difference between the temporal features of each training sample and the corresponding generated features, and obtaining a feature difference loss;
[0016] S34, using a label classifier to measure the difference between the predicted fault category label corresponding to the time series feature of each training sample in the training sample set and the corresponding real fault category label, to obtain a first label prediction loss;
[0017] S35. Update the parameters in the variable operating condition bearing fault diagnosis model by minimizing the sum of the feature difference loss and the first label prediction loss.
[0018] Further preferably, the training method in the second stage comprises the following steps:
[0019] S51, using a feature extraction module to extract time series features of source domain data and target domain data respectively, and output them to a generation module;
[0020] S52, using a generation module to generate generation features corresponding to the temporal features of the source domain data and the target domain data respectively;
[0021] S53, using a domain classifier to measure the difference between the temporal features of the source domain data and the target domain data and the corresponding generated features, to obtain a feature difference loss;
[0022] S54, using a domain classifier to measure the sum of the discrimination losses of the predicted operating condition category corresponding to the temporal features and generated features of the source domain data being judged as the source domain operating condition category and the predicted operating condition category corresponding to the temporal features and generated features of the target domain data being judged as the target domain operating condition category, to obtain a domain discrimination loss;
[0023] S55, using a label classifier to measure the temporal features of the source domain data and the target domain data, and to generate a difference between the predicted fault category label corresponding to the feature and the corresponding real fault category label, to obtain a second label prediction loss;
[0024] S56, updating the parameters in the variable operating condition bearing fault diagnosis model by simultaneously minimizing the feature difference loss, maximizing the domain discrimination loss, and minimizing the second label prediction loss.
[0025] Further preferably, the feature extraction module is a temporal convolutional network.
[0026] Further preferably, the generation module is a generator or a plurality of cascaded generators.
[0027] Further preferably, the generator comprises: a plurality of cascaded generation units; the generation unit comprises: a cascaded fully connected layer, a batch normalization layer and a TanhExp activation function layer.
[0028] Further preferably, the preset number of iterations m is:
[0029] m=(N / C)×(c max / c min )
[0030] Where N is the total number of source domain data in the training sample set; C is the number of fault categories of the source domain data in the training dataset; c max is the maximum number of samples of each fault category in the source domain data in the training dataset; c min It is the minimum number of samples of each fault category in the source domain data in the training dataset.
[0031] In a second aspect, the present invention provides a method for diagnosing bearing faults under variable operating conditions, comprising:
[0032] The bearing vibration signal data to be diagnosed is input into the variable operating condition bearing fault diagnosis model constructed by the method for constructing the variable operating condition bearing fault diagnosis model provided by the first aspect of the present invention. After time series feature extraction is performed based on the feature extraction module in the variable operating condition bearing fault diagnosis model, the data is input into the label classifier in the variable operating condition bearing fault diagnosis model to obtain the fault category label of the bearing vibration signal data to be diagnosed.
[0033] In a third aspect, the present invention provides a variable operating condition bearing fault diagnosis system, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor executes the variable operating condition bearing fault diagnosis method provided in the second aspect of the present invention when executing the computer program.
[0034] In a fourth aspect, the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method for constructing a variable operating condition bearing fault diagnosis model provided in the first aspect of the present invention and / or the variable operating condition bearing fault diagnosis method provided in the second aspect of the present invention.
[0035] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0036] 1. The present invention provides a method for constructing a variable operating condition bearing fault diagnosis model. In the constructed model, a feature extraction module, a generation module, a domain classifier and a label classifier form a whole. The combination of the label classifier, the domain classifier and the generation module can effectively generate additional training data. Under the condition that the domain classifier can obtain discriminative features in the domain, by maximizing the domain discrimination loss, its domain sensitivity to different data is reduced, making it difficult for the domain classifier to process and distinguish these data, and conversely enabling the feature extraction module to extract more domain-independent time series features, thereby realizing end-to-end joint training; after continuously training the model, the label classifier is made as refined as possible and the domain classifier is made as generalized as possible, thereby improving the generalization of the model for the operating conditions of bearings that have never been seen (i.e., unknown domains), and realizing that the fault diagnosis model under different operating conditions can also accurately determine the fault type.
[0037] 2. In the construction method of the variable operating condition bearing fault diagnosis model provided by the present invention, the training of the entire model is divided into two stages. The first stage is mainly based on the data in the original training sample set to pre-train the model, so that the generation module in the model can preliminarily generate feature data according to the data distribution of the existing bearing features; the second stage is based on the original training sample set and the newly generated training samples to further train the model. Under the condition that the domain classifier can obtain discriminative features in the domain, the domain sensitivity of the model to the source domain and the target domain data is reduced, thereby improving the generalization of the model for the operating conditions of unseen bearings (i.e., unknown domains). The bearing data in the present invention belongs to high-frequency time series signals. Due to the cyclostationarity and discreteness of the data, in the m pre-iterations, the quality of the bearing data generated by the generator is poor. If the generated data and the time series data are considered to be the same operating condition, it is easy to cause the domain discriminator to not converge. Through two stages of training, the generated data effect is better and the problem of non-convergence of the domain discriminator is effectively avoided.
[0038] 3. The construction method of the variable working condition bearing fault diagnosis model provided by the present invention takes into account the periodicity of the impact component of the bearing fault. As the bearing working condition changes, the fault impulse frequency changes with the speed. The TCN model is used as the feature extraction network. The bearing feature representation under variable scale is extracted through the void causal convolution. The consideration of time correlation is conducive to capturing the invariant characteristics of the working condition, so that the variable working condition bearing fault diagnosis model supports variable length input, which helps the model learn the correlation representation between multi-scale signals and improves the accuracy of cross-domain fault diagnosis. In addition, in the generative model adopted, the use of the TanhExp activation function makes the model have a stable gradient, and the cascaded generator also effectively solves the problem of poor quality of generated data caused by fewer samples in industrial problems.
[0039] 4. Compared with traditional bearing fault diagnosis methods, the variable operating condition bearing fault diagnosis method provided by the present invention does not require manual feature extraction. It only needs to train the above-mentioned variable operating condition bearing fault diagnosis model, collect corresponding data and apply it to the model, and then the bearing fault diagnosis can be automatically performed without manual judgment.
[0040] 5. The model used in the variable operating condition bearing fault diagnosis method provided by the present invention includes a domain classifier. The domain classifier can greatly improve the generalization of the model in the invisible domain by using the domain generalization method, so that it can still perform accurate fault diagnosis under variable operating conditions, and has stronger versatility and practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flow chart of a method for constructing a variable operating condition bearing fault diagnosis model provided in Example 1 of the present invention;
[0042] Figure 2 A schematic diagram of the structure of a variable operating condition bearing fault diagnosis model provided in Example 1 of the present invention;
[0043] Figure 3 A schematic diagram of the dilated causal convolution provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0045] Embodiment 1,
[0046] A method for constructing a variable operating condition bearing fault diagnosis model takes the original time series data collected by the sensor as input, then uses a feature extractor based on a temporal convolutional network for automatic feature extraction, and then uses a domain generalization method based on deep domain adversarial object generation for data enhancement. Continuous training is performed to obtain an accurate label classifier, and then a variable operating condition bearing fault diagnosis model is established.
[0047] Specifically, Figure 1 As shown, the following steps are included:
[0048] S1. Build a variable operating condition bearing fault diagnosis model;
[0049] Specifically, Figure 2 As shown, the variable working condition bearing fault diagnosis model includes: feature extraction module, generation module, domain classifier and label classifier;
[0050] Among them, the feature extraction module is used to extract the time series features of the input data; the generation module is used to generate generation features similar to the time series features; the domain classifier is used to map the input time series features or generation features to the corresponding predicted working condition categories; the label classifier is used to map the input time series features or generation features to the corresponding predicted fault category labels;
[0051] The feature extraction module can be a temporal convolutional network (TCN), RNN, bidirectional LSTM and other models. In this embodiment, TCN is preferably used to automatically extract features from the time series signals collected by the sensor. TCN uses a one-dimensional full convolutional network and the length of each hidden layer is the same as the length of the input layer, and zero padding is used to ensure that the subsequent layers have the same length. TCN also uses a hollow causal convolution to ensure that the output at time t only comes from the result of convolution of elements at time t and the previous layer at an earlier time, and obtains input from every d steps from t, allowing the network to trace back to (k-1)d time steps (where k is the kernel size and d is the expansion factor), so that the receptive field of each layer grows exponentially, and the output prediction sequence uses all inputs in the valid historical data.
[0052] The following will describe the architecture of the time convolutional network TCN from several aspects:
[0053] Sequence modeling task: Given an input sequence, we can predict the corresponding output, that is, find a function f (build a convolutional network) to transform a vector X consisting of 1 element T+1 Mapped to another vector Y consisting of 1 elements T+1 ,Right now Among them, X T+1 ={x0, x1, ..., x T-1 , x T}, It contains a constraint (causal constraint): when the prediction time t is less than or equal to T, only inputs from the same time point and earlier time points can be used, and inputs from time points later than t cannot be used. The goal of sequence modeling is to find a function f that minimizes the true label {y0, ..., y T} and prediction results The loss between.
[0054] Therefore, TCN should be based on two principles: the output produced should be the same length as the input, and causal constraints should be satisfied. To achieve the former, TCN uses a 1D fully-convolutional network (FCN), where the length of each hidden layer is the same as the length of the input layer, and zero padding is used to ensure that subsequent layers have the same length. To achieve the latter, TCN uses dilated causal convolutions, such as Figure 3 As shown in , first of all, it ensures that the output at time t only comes from the result of convolution of elements at time t and earlier times of the previous layer, and obtains input from every d steps away from t, allowing the network to trace back to (k-1)d time steps, making the receptive field of each layer grow exponentially. At the same time, the output prediction sequence uses all inputs in the valid historical data, so that a not-too-deep convolutional network can also obtain a very large effective history. The finally defined atrous causal convolution operation F(s) of the sequence element s is:
[0055] In addition, it should be noted that the idea of residual connection expresses the output as a linear superposition of the input and a nonlinear transformation of the input: that is, a nonlinear change function is used to describe the input and output of a network, the input is X, and the output is F r (x), F r Usually includes convolution, activation and other operations; when an input is forcibly added to the output of a function, G(x) can be used to describe the relationship between the input and output. At this time, G(x) can be clearly split into F r The residual block allows each layer to learn to modify the identity mapping, avoiding gradient disappearance and ensuring long-term effective use of history.
[0056] Based on this, each layer of TCN contains multiple filters for feature extraction. Therefore, in TCN, a general residual module is used to replace the convolution layer. The residual block in TCN is composed of: hole causal convolution, weight normalization (modify data size), ReLU activation function and dropout operation to prevent overfitting, and the above steps are performed twice. Considering that the input and output can have different widths in TCN, an additional 1×1 convolution is used to ensure the same length.
[0057] After using TCN for feature extraction, a new domain generalization method (DG) is used to facilitate the application of the model to new target domains without adjustment. Synthetic data from unknown domains are used to augment the original training data of the source domain to narrow the differences between different domains, thereby greatly enhancing the versatility of the diagnostic model.
[0058] The generation module, domain classifier and label classifier in this embodiment are all differentiable deep neural networks. The label classifier and domain classifier are trained to predict the class label (fault category label) and domain label (operating condition category label) of the input data respectively. The learning training goal of the generation module is to transform the input data. The transformation generated by the generation module is designed to be a disturbance with the same input label, and the disturbance is combined with the original input to generate new data, minimize the loss of the label classifier, and make the label classifier as detailed and accurate as possible, so that the label classifier can identify the input data for accurate classification. Under the condition that the domain classifier can obtain the distinguishing features in the domain, by maximizing the domain discrimination loss (one of the losses of the domain classifier), its domain sensitivity to different data is reduced, making it difficult for the domain classifier to process and distinguish these data. After continuously training the model, the label classifier is made as detailed as possible and the domain classifier is as generalized as possible, thereby improving the generalization of the model for the working conditions of the bearing that have not been seen (i.e., the unknown domain), and realizing that the fault diagnosis model under different working conditions can also accurately judge the fault type. In this embodiment, the training generation module is used to generate feature data according to the data distribution of existing bearing features, and the generated feature data has the same fault category label as the original feature data.
[0059] The domain classifier can be multi-class on the source domain (have access to multiple source domains) to ensure that maximizing the domain classification loss does not simply force the synthetic data to fall into another domain distribution. Assuming there are three source domains, given a synthetic example from the first domain, maximize (zi represents the operating condition category, i = 1, 2, 3), which essentially minimizes z1 while giving equal gradients to maximize z2 and z3 at the same time. Therefore, neither the gradient of z2 or z3 is dominant.
[0060] The combination of the three components of the label classifier, the domain classifier and the generation module can effectively generate additional training data, which in turn allows the learning of more domain-independent label classifiers and joint training in an end-to-end manner, so that the variable operating condition bearing fault diagnosis model provided by the present invention works directly at the pixel level, greatly improving the interpretability of the model.
[0061] Specifically, the generation module may be one generator or multiple cascaded generators.
[0062] The generator includes: multiple cascaded generation units; the generation units include: cascaded fully connected layers, batch normalization layers and TanhExp activation function layers. The batch normalization layer can normalize multiple groups of data in one iteration at the batch level to prevent sampling outliers from affecting the stability of the generator; the TanhExp activation function can provide smoother boundaries, and the simplified operation can improve the calculation speed of lightweight neural networks and be robust to noise.
[0063] S2, using the bearing vibration signal data with real fault category labels under existing working conditions as source domain data and the bearing vibration signal data without real fault category labels under new working conditions as target domain data to form a training sample set;
[0064] Specifically, the bearing vibration signal data under different existing working conditions are obtained through sensors as source domain data sets, and the bearing vibration signal data under new working conditions are obtained through sensors as target domain data.
[0065] S3, input the training sample set into the variable working condition bearing fault diagnosis model, and perform the first stage of training on the model by simultaneously minimizing the feature difference loss and the first label prediction loss; wherein the feature difference loss is used to measure the difference between the time series features of each training sample in the training sample set and the corresponding generated features; the first label prediction loss is used to measure the difference between the predicted fault category label corresponding to the time series features of each training sample in the training sample set and the corresponding real fault category label;
[0066] Specifically, in the first stage, the label classifier loss is the first label prediction loss; the expression of the first label prediction loss is as follows:
[0067]
[0068] Where N is the number of samples in the training sample set; y o (i) is the true fault category label of the i-th sample in the training sample set; is the predicted fault category label of the i-th sample in the training sample set, that is, the output of the label classifier. D1(·) is y o (i) and The difference measurement function can be a distance calculation function (such as Euclidean distance), a cross entropy loss function, or other loss functions.
[0069] The loss of the domain classifier is the feature difference loss, and the expression of the feature difference loss is as follows:
[0070]
[0071] Where N is the number of samples in the training sample set; f g (i) is the generated feature of the i-th sample in the training sample set, i.e., the output of the feature extraction module; f o (i) is the temporal feature of the i-th sample in the training sample set, i.e., the output of the generation module; D f (·) is f g (i) With fo (i) The difference measurement function can be a distance calculation function (such as Euclidean distance), a cross entropy loss function, or other loss functions.
[0072] In summary, the loss function of the variable operating condition bearing fault diagnosis model in the first stage is: L1 = α1loss1 + (1-α1)loss f , the first stage of training is completed by minimizing L1; where α1 is the balance weight of the first stage, and its value in this embodiment is 0.5.
[0073] S4, repeat step S3 to iterate until the number of iterations reaches a preset number of iterations m; m≥1;
[0074] The domain classifier is pre-trained through step S3 so that it can generate feature data according to the data distribution of existing bearing features, and the generated feature data has the same category label as the original feature data.
[0075] Preferably, considering the differences in the number of samples between different fault categories, the number of iterations is considered based on the average number of samples in each category and the maximum difference in the number of samples between different categories, so as to ensure that the model can fully learn the features of the class with the least number of samples. Specifically, the preset number of iterations m is:
[0076] m=(N / C)×(c max / c min )
[0077] Where N is the total number of source domain data in the training sample set; C is the number of fault categories of the source domain data in the training dataset; c max is the maximum number of samples of each fault category in the source domain data in the training dataset; c min It is the minimum number of samples of each fault category in the source domain data in the training dataset.
[0078] S5. Input the training sample set into the variable operating condition bearing fault diagnosis model, and perform the second stage of model training by simultaneously minimizing the feature difference loss, maximizing the domain discrimination loss, and minimizing the second label prediction loss; wherein, the domain discrimination loss is used to measure the sum of the discrimination losses of the predicted operating condition category corresponding to the temporal features and generated features of the source domain data being discriminated as the source domain operating condition category, and the predicted operating condition category corresponding to the temporal features and generated features of the target domain data being discriminated as the target domain operating condition category; the second label prediction loss is used to measure the difference between the predicted fault category label corresponding to the temporal features and generated features of each training sample in the training sample set and the corresponding real fault category label.
[0079] Specifically, in the second stage, the feature data generated by the label classifier and the domain classifier with the same label are directly input into the mixed training with the original bearing feature data; and the source domain data and target domain data in the training sample set are alternately input into the working condition bearing fault diagnosis model for training.
[0080] The label classifier loss is the second label prediction loss; the expression of the second label prediction loss is as follows:
[0081]
[0082] Where M is the sum of the number of samples in the training sample set and the number of newly generated samples; y (i) is the true fault category label of the i-th feature sample in the sample set composed of the feature sample corresponding to the original sample in the training sample set and the newly generated feature sample; is the predicted fault category label of the i-th feature sample in the sample set composed of the feature samples corresponding to the original samples in the training sample set and the newly generated feature samples, that is, the output of the label classifier. D2(·) is y (i) and The difference measurement function can be a distance calculation function (such as Euclidean distance), a cross entropy loss function, or other loss functions.
[0083] The loss of the domain classifier is the above feature difference loss and the domain discrimination loss; the expression of the domain discrimination loss is as follows:
[0084]
[0085] Where M is the sum of the number of samples in the training sample set and the number of newly generated samples; d (i) and are the domain category of the predicted operating condition category label of the i-th feature sample in the sample set composed of the feature sample corresponding to the original sample in the training sample set and the newly generated feature sample, and its corresponding real domain category; D d (·) is d (i) and The difference measurement function can be a distance calculation function (such as Euclidean distance), a cross entropy loss function, or other loss functions.
[0086] In summary, the loss function of the variable operating condition bearing fault diagnosis model in the second stage is: L2 = α2loss2 + (1-α2)(βloss f -(1-β)loss d ), the second stage of training is completed by minimizing L2; wherein α2 and β are the balance weights of the second stage; in this embodiment, α2 takes a value of 0.4 and β takes a value of 0.6.
[0087] The present invention proposes a variable working condition bearing fault diagnosis model based on a temporal convolutional network. First, the time series signal collected by the sensor is used as input, and after extracting the time series features through the feature extraction module, the adversarial idea is introduced, and data enhancement is performed based on the generation module, domain classifier and label classifier to reduce the difference between domains, and the model is decomposed into domain-specific and domain-common parts, thereby establishing a model for bearing fault diagnosis under variable working conditions, and then realizing accurate fault diagnosis under variable working conditions.
[0088] Embodiment 2,
[0089] A variable operating condition bearing fault diagnosis method, comprising:
[0090] The bearing vibration signal data to be diagnosed is input into the variable operating condition bearing fault diagnosis model constructed by the method for constructing the variable operating condition bearing fault diagnosis model provided in Example 1 of the present invention. After time series feature extraction is performed based on the feature extraction module in the variable operating condition bearing fault diagnosis model, the data is input into the label classifier in the variable operating condition bearing fault diagnosis model to obtain the fault category label of the bearing vibration signal data to be diagnosed.
[0091] The method for diagnosing bearing faults under variable operating conditions in this embodiment includes:
[0092] 1) Prepare the dataset:
[0093] By obtaining raw data under different working conditions from the vibration acceleration sensor at the bearing seat to be tested, multiple source domain data sets with different fault type labels are prepared. Combined with the actual operating conditions of a certain bearing, for different speed and radial load combination working conditions, multiple working condition data such as working condition A, working condition B, and working condition C are obtained. Each working condition has multiple categories of faults, including: normal, outer ring fault, inner ring fault, and rolling element fault. The data labels and category labels are constructed for the obtained data. The signal is intercepted by sliding the time window, and the long time series is segmented into equal long time series segments as network input; in this example, the time window length is 2048 sampling points, and the intercepted data is stored as ndarray.
[0094] Load the data of multiple working conditions and divide them into training sets and test sets; standardize the data in the divided training set, and select some working condition combinations as source domains, such as the data of working conditions A and B as source domains, and some working conditions as target domains, such as the data of working condition C.
[0095] 2) Training the variable working condition bearing fault diagnosis model: The variable working condition bearing fault diagnosis model is trained using the method described in Embodiment 1 of the invention. The feature extraction process is as follows:
[0096] The time-domain vibration acceleration data in the training set is input into a 2-layer residual module with the same expansion factor and connected to the residual. For ease of understanding, the residual block has a layer with an expansion coefficient d of 2 and a kernel size k of 3. The input original signal is added to the input of the residual block after passing through the output of two convolutional layers. The input and output channel widths of the internal blocks of the residual block except the beginning and the end are the same, both of which are num_filters. The input and output widths of the first convolutional layer of the first residual block and the second convolutional layer of the last residual block are adjusted by 1x1 convolution.
[0097] The entire TCN feature extractor includes a hole causal convolution layer, a weight normalization layer, a ReLU activation function layer, a Dropout layer, a hole causal convolution layer, a weight normalization layer, a ReLU activation function layer, and a Dropout layer, which are connected in sequence. The original signal is sequentially extracted through the above layers; the purpose of the weight normalization layer is to standardize the input of the hidden layer to prevent gradient explosion; the purpose of the Dropout layer is to introduce regularization to prevent overfitting. Feature extraction is achieved through the TCN feature extractor as the input for training a generalized network across working conditions.
[0098] The specific process is the same as that of Example 1 and will not be described in detail here.
[0099] 3) Variable operating condition bearing fault diagnosis: The bearing data of the unknown domain (operating condition C) that needs to be diagnosed in the test set is input into the trained variable operating condition bearing fault diagnosis model. After feature extraction by the temporal convolutional network (TCN), the extracted features are directly input into the label classifier for automatic bearing fault diagnosis, thereby realizing cross-operating condition bearing fault diagnosis under variable and unknown operating conditions.
[0100] In summary, this embodiment uses the original time series data collected by the sensor as input, and then uses a feature extractor based on a time convolutional network to perform automatic feature extraction, and then uses a domain generalization method based on deep domain adversarial object generation to improve the model generalization of cross-operating fault diagnosis, integrating the original data and generated data training to obtain an accurate label classifier, and then establishes a classification network for bearing fault diagnosis under variable operating conditions, and finally realizes fault diagnosis under variable operating conditions. Compared with traditional bearing fault diagnosis methods, there is no need for manual feature extraction, and automatic analysis and diagnosis can be achieved by only collecting relevant data and inputting the training network; compared with other deep learning methods, this method supports variable length input and has a more stable gradient; the domain generalization method used also makes the model adaptable to variable operating conditions, enhancing the generalization of the model and its application value in actual scenarios.
[0101] The relevant technical solution is the same as that in Example 1 and will not be described in detail here.
[0102] Embodiment 3,
[0103] A variable operating condition bearing fault diagnosis system comprises: a memory and a processor, wherein the memory stores a computer program, and the processor executes the variable operating condition bearing fault diagnosis method provided in Example 2 of the present invention when executing the computer program.
[0104] The relevant technical solution is the same as that in Example 2 and will not be described in detail here.
[0105] Embodiment 4,
[0106] A machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method for constructing a variable operating condition bearing fault diagnosis model provided in Example 1 of the present invention and / or the method for diagnosing a variable operating condition bearing fault provided in Example 2 of the present invention.
[0107] The relevant technical solutions are the same as those in Example 1 and Example 2 and will not be described in detail here.
[0108] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing a variable operating condition bearing fault diagnosis model, characterized in that: The following steps are involved: S1. Building a variable operating condition bearing fault diagnosis model; the variable operating condition bearing fault diagnosis model includes: a feature extraction module, a generation module, a domain classifier and a label classifier; The feature extraction module is used to extract the time series features of the input data; the generation module is used to generate generation features similar to the time series features; the domain classifier is used to map the input time series features or generation features to the corresponding predicted operating condition categories; the label classifier is used to map the input time series features or generation features to the corresponding predicted fault category labels; S2, using the bearing vibration signal data with real fault category labels under existing working conditions as source domain data and the bearing vibration signal data without real fault category labels under new working conditions as target domain data to form a training sample set; S3, input the training sample set into the variable operating condition bearing fault diagnosis model, and perform the first stage of training on the model by simultaneously minimizing the feature difference loss and the first label prediction loss; the feature difference loss is used to measure the difference between the time series features of each training sample in the training sample set and the corresponding generated features; the first label prediction loss is used to measure the difference between the predicted fault category label corresponding to the time series features of each training sample in the training sample set and the corresponding real fault category label; S4, repeat step S3 to iterate until the number of iterations reaches a preset number of iterations m; m≥1; S5. Input the training sample set into the variable operating condition bearing fault diagnosis model, and perform the second stage of training on the model by simultaneously minimizing the feature difference loss, maximizing the domain discrimination loss, and minimizing the second label prediction loss; the domain discrimination loss is used to measure the sum of the discrimination losses of the predicted operating condition category corresponding to the time series features and generated features of the source domain data being judged as the source domain operating condition category and the predicted operating condition category corresponding to the time series features and generated features of the target domain data being judged as the target domain operating condition category; the second label prediction loss is used to measure the difference between the predicted fault category label corresponding to the time series features and generated features of each training sample in the training sample set and the corresponding real fault category label; The first stage of the training method includes the following steps: S31, using the feature extraction module to extract the time series features of each training sample in the training sample set, and outputting them to the generation module; S32, using the generation module to respectively generate generation features corresponding to the time series features of each training sample; S33, using the domain classifier to measure the difference between the temporal features of each training sample and the corresponding generated features to obtain a feature difference loss; S34, using the label classifier to measure the difference between the predicted fault category label corresponding to the time series feature of each training sample in the training sample set and the corresponding real fault category label, to obtain a first label prediction loss; S35. Update the parameters in the variable operating condition bearing fault diagnosis model by minimizing the sum of the feature difference loss and the first label prediction loss.
2. The method for constructing a variable operating condition bearing fault diagnosis model according to claim 1, characterized in that: The second stage of the training method includes the following steps: S51, using the feature extraction module to extract the temporal features of the source domain data and the target domain data respectively, and outputting them to the generation module; S52, using the generation module to generate generation features corresponding to the temporal features of the source domain data and the target domain data respectively; S53, using the domain classifier to measure the difference between the temporal features of the source domain data and the target domain data and the corresponding generated features, to obtain the feature difference loss; S54, using the domain classifier to measure the sum of the discrimination losses of the predicted operating condition category corresponding to the temporal features and generated features of the source domain data to be judged as the source domain operating condition category and the predicted operating condition category corresponding to the temporal features and generated features of the target domain data to be judged as the target domain operating condition category, to obtain the domain discrimination loss; S55, using the label classifier to measure the temporal features of the source domain data and the target domain data, and to generate a difference between the predicted fault category label corresponding to the feature and the corresponding real fault category label, to obtain the second label prediction loss; S56, updating the parameters in the variable operating condition bearing fault diagnosis model by simultaneously minimizing the feature difference loss, maximizing the domain discrimination loss, and minimizing the second label prediction loss.
3. The method for constructing a variable operating condition bearing fault diagnosis model according to any one of claims 1 to 2, characterized in that: The feature extraction module is a temporal convolutional network.
4. The method for constructing a variable operating condition bearing fault diagnosis model according to any one of claims 1 to 2, characterized in that: The generation module is a generator or a plurality of cascaded generators.
5. According to the method for constructing a variable operating condition bearing fault diagnosis model according to claim 4, the generator comprises: Multiple cascaded generation units; The generation unit includes: a cascaded fully connected layer, a batch normalization layer and a TanhExp activation function layer.
6. The method for constructing a variable operating condition bearing fault diagnosis model according to any one of claims 1 to 2, characterized in that: The preset number of iterations m is: m=(N / C)×(c max / c min ) Where N is the total number of source domain data in the training sample set; C is the number of fault categories of the source domain data in the training data set; c max is the maximum number of samples of each fault category in the source domain data in the training data set; c min is the minimum value of the number of samples of each fault category in the source domain data in the training data set.
7. A method for diagnosing bearing faults under variable operating conditions, characterized in that: include: The bearing vibration signal data to be diagnosed is input into a variable operating condition bearing fault diagnosis model constructed by the method for constructing a variable operating condition bearing fault diagnosis model according to any one of claims 1 to 6; after performing time series feature extraction based on a feature extraction module in the variable operating condition bearing fault diagnosis model, the data is input into a label classifier in the variable operating condition bearing fault diagnosis model, thereby obtaining a fault category label for the bearing vibration signal data to be diagnosed.
8. A variable operating condition bearing fault diagnosis system, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and the processor executes the variable operating condition bearing fault diagnosis method according to claim 7 when executing the computer program.
9. A machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method for constructing a variable operating condition bearing fault diagnosis model as described in any one of claims 1 to 6 and / or the variable operating condition bearing fault diagnosis method as described in claim 7.
Citation Information
Patent Citations
Semi-supervised mechanical fault diagnosis method based on adaptive migration neural network
CN112183581A
Bearing fault diagnosis method for dynamic joint distribution alignment network under variable working conditions
CN112629863A
Bearing fault diagnosis method based on multiple working conditions of equipment
CN113567130A
Fault transfer diagnosis method for rolling element bearings based on polynomial kernel induced feature distribution adaptation
US20210012232A1
Cited By
Efficient distributed parallel training method of fault diagnosis model based on I-PixelHop
CN116821669A
An efficient distributed parallel training method for a fault diagnosis model based on I-PixelHop
CN116821669B
