A segmented fault diagnosis method and system for rolling bearings with variable working conditions

Through the transfer learning neural network and vibration analysis method, combined with the residual neural network and adversarial factors, the problem of scarcity of bearing fault data is solved, and accurate identification and diagnosis of bearing faults are achieved.

CN114881073BActive Publication Date: 2024-09-06HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210403176.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-09-06
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In actual engineering, most bearings are in normal working condition, and fault data are very scarce, resulting in inaccurate diagnosis of fault categories.

Method used

Use transfer learning neural network to perform transfer learning through training data of known working conditions. Use residual neural network and adversarial factors, combined with vibration analysis methods to perform variational mode decomposition and signal division, extract fault features, and use domain discriminators to and fault classifier for fault identification.

Benefits of technology

It effectively solves the problem of insufficient data on variable working conditions, improves the accuracy and diagnosis efficiency of fault signals, and ensures the accurate identification of bearing faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114881073B
    Figure CN114881073B
Patent Text Reader

Abstract

The present invention provides a segmented fault diagnosis method and system for rolling bearings with variable working conditions, which belongs to the field of bearing fault diagnosis. The diagnosis method comprises: inputting training data of known working conditions into a transfer learning neural network, determining parameters of the transfer learning neural network based on the minimum total loss of the transfer learning neural network, and completing the training of the transfer learning neural network; inputting part of the original signal of the working condition to be diagnosed that is known and can characterize the working state of the bearing into the transfer learning neural network, and outputting all fault signals of the working condition to be diagnosed; in the present invention, the field represents two different working conditions, and the feature information learned from the known working condition is transferred to the unknown working condition, which well solves the problem of insufficient data of variable working conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of bearing fault diagnosis, and more specifically, relates to a segmented fault diagnosis method and system for rolling bearings under variable operating conditions. Background Art

[0002] In the industrial production system, as a key component of the mechanical system, rolling bearings play an irreplaceable role. With the long-term operation of the machinery and the changes in the working environment, the performance of important components gradually deteriorates, resulting in various faults in the components. In the long run, it may have a great impact on the operating status of the entire unit and even cause serious safety accidents. Therefore, it is extremely important to monitor the working status of rolling bearings in real time and diagnose faults to ensure the safe and reliable operation of the equipment.

[0003] The traditional fault diagnosis process is generally divided into four stages: signal processing, feature extraction, feature reduction, and fault identification. In the signal processing stage, the original signal is de-noised and divided into fault samples; in the feature extraction stage, the fault feature analysis is performed on the data of the fault sample to extract the feature information corresponding to the fault; in the feature reduction stage, the high-dimensional fault feature information is mapped to a low-dimensional space to simplify the calculation and improve the accuracy of the fault identification stage; in the fault identification stage, the feature information in the low-dimensional space is compared and classified, and finally the fault category is identified.

[0004] In order to improve the accuracy and efficiency of diagnosis, most of the research based on traditional fault diagnosis focuses on the first three stages. In the signal processing stage, since the bearing vibration signal reflects a lot of information about its operating status, vibration-based signal analysis is the main way of signal processing. In the feature extraction stage, learning models such as support vector machines and artificial neural networks are often used. However, most of these models are shallow learning models, which require professional knowledge in this field and are easily affected by feature quality.

[0005] In recent years, with the development of artificial intelligence technology, deep learning has gradually entered the field of vision of researchers. Deep learning is a new machine learning technology that breaks through the dependence of shallow learning models on data and professional knowledge, and shows great potential in feature extraction. Deep learning models are generally divided into three types: deep belief networks, convolutional neural networks, and deep autoencoders. Among these three models, convolutional neural networks are the most widely used. Most general convolutional neural networks are directly connected to multiple convolutional layers, and their advantages are simple network structure and fast calculation speed. However, as the complexity of data increases, shallow direct convolutional neural networks alone cannot improve the calculation speed and efficiency of the model. As the number of convolutional layers increases, deep convolutional neural networks are prone to gradient decline and vanishing problems, resulting in overfitting of network training and unsatisfactory results. Increasing the depth of the network while ensuring the efficiency and accuracy of model training is a hot research direction at present.

[0006] The above fault diagnosis methods and research are mostly based on a certain working condition or a multi-working condition environment with sufficient and complete data. However, in actual engineering, bearings are mostly in normal working state and fault data is very scarce. In order to accurately diagnose the fault category, it is necessary to further process the data features. Summary of the invention

[0007] In view of the defects of the prior art, the purpose of the present invention is to provide a segmented fault diagnosis method and system for rolling bearings with variable operating conditions, aiming to solve the problem that in actual engineering, most bearings are in normal working conditions, fault data is very scarce, resulting in inaccurate diagnosis of fault categories.

[0008] To achieve the above object, on the one hand, the present invention provides a segmented fault diagnosis method for rolling bearings under variable working conditions, comprising the following steps:

[0009] Input the training data of known working conditions into the transfer learning neural network, determine the parameters of the transfer learning neural network based on the minimum total loss of the transfer learning neural network, and complete the training of the transfer learning neural network;

[0010] Input part of the original signal of the working condition to be diagnosed that is known to characterize the working state of the bearing into the transfer learning neural network, and output all the fault signals of the working condition to be diagnosed;

[0011] Among them, the feature extractor in the transfer learning neural network is a residual neural network, and its total loss is the sum of the cross entropy function loss of the fault classifier, the boundary distribution discrimination loss, and the conditional distribution discrimination loss.

[0012] Further preferably, the method for obtaining training data of known working conditions is:

[0013] The original signal that can characterize the working state of the bearing under known working conditions is subjected to variational mode decomposition using vibration analysis method;

[0014] Calculate the energy entropy of each modal component and determine the energy entropy threshold;

[0015] The original signal is divided into a normal signal and a fault signal based on the energy entropy threshold;

[0016] The fault signal is used as training data of known working conditions.

[0017] Further preferably, the variational mode decomposition method comprises the following steps:

[0018] a. Divide the original signal into several segments according to the time period, and divide the signal in each time period into K modal components;

[0019] b. Calculate the single-sided spectrum of each modal component in each time period through Hilbert transform;

[0020] c. Based on the unilateral spectrum of each modal component, determine the center frequency of the modal component by adding restrictions;

[0021] d. When the center frequencies corresponding to two adjacent modal components in a time period differ by less than the frequency threshold, it is determined that K corresponding to the time period is too large, and K-1 is taken as the optimal number of modal components corresponding to the time period; otherwise, K=K+1, and go to step b;

[0022] Among them, the restriction condition is to estimate the broadband based on the Gaussian smoothness of each modal component, combine the quadratic penalty function and Lagrangian function reconstruction, and obtain the conditions to ensure the absolute integration of each modal component.

[0023] Further preferably, the method for training a transfer learning neural network specifically comprises the following steps:

[0024] A. Matrix the training data according to the Hankel matrix and convert it into a grayscale image;

[0025] B. Determine the fault sample capacity based on the grayscale image, combined with the image format of the residual network and the requirement that each fault sample contains at least one complete rotation of the bearing;

[0026] C. extracting fault features from the fault sample through the residual network, and determining the source of the fault features through a domain discriminator; wherein the domain discriminator includes a boundary probability distribution discriminator and a conditional probability distribution discriminator;

[0027] D. using the W distance of the boundary probability distribution discriminator and the conditional probability distribution discriminator to calculate the adversarial factor; wherein the adversarial factor is used to dynamically evaluate the weights of the boundary probability distribution discriminator and the conditional probability distribution discriminator;

[0028] E. Back-propagate the adversarial factor, adaptively adjust the parameters of the transfer learning neural network, calculate the total loss of the transfer learning neural network and update the adversarial factor, and repeat step E until the adversarial factor is updated a preset maximum number of times;

[0029] F. Take the minimum total loss as the dynamic balance indicator, and after the dynamic balance, transfer learning neural network classifies the fault features, outputs the fault category, and obtains the trained transfer learning neural network;

[0030] Among them, the transfer learning neural network includes a feature extractor, a gradient reversal layer, a domain discriminator, and a fault classifier;

[0031] The feature extractor is used to receive training data, and its output end is connected to the input end of the gradient reversal layer; the output end of the gradient reversal layer is connected to the domain discriminator and the fault classifier.

[0032] Further preferably, the antagonistic factor is:

[0033]

[0034] Where m is the total number of fault types; b is the iteration number; D S represents the boundary probability distribution of the source domain; D t Represents the boundary probability distribution of the target domain; is the conditional probability distribution of the source domain; is the conditional probability distribution of the target domain.

[0035] On the other hand, the present invention provides a variable operating condition rolling bearing segmented fault diagnosis system, comprising:

[0036] A neural network training module is used to input training data of known working conditions into the transfer learning neural network, determine the parameters of the transfer learning neural network based on the minimum total loss of the transfer learning neural network, and complete the training of the transfer learning neural network;

[0037] A transfer learning neural network module is provided with a transfer learning neural network inside, which inputs the original signal of the part of the working condition to be diagnosed that is known and can characterize the working state of the bearing, and outputs all fault signals of the working condition to be diagnosed;

[0038] Among them, the feature extractor in the transfer learning neural network is a residual neural network, and its total loss is the sum of the cross entropy function loss of the fault classifier, the boundary distribution identification loss and the conditional distribution identification loss.

[0039] Further preferably, the variable operating condition rolling bearing segmented fault diagnosis system provided by the present invention further includes a training data acquisition module, which includes a modal decomposition unit, an energy entropy calculation unit and a signal division unit;

[0040] The modal decomposition unit is used to perform variational modal decomposition on the original signal of known working conditions that can characterize the working state of the bearing using a vibration analysis method;

[0041] The energy entropy calculation unit is used to calculate the energy entropy of each modal component and determine the energy entropy threshold;

[0042] The signal division unit is used to divide the original signal into a normal signal and a fault signal based on an energy entropy threshold, and use the fault signal as training data of a known working condition.

[0043] Further preferably, the specific execution method of the modal decomposition unit is:

[0044] a. Divide the original signal into several segments according to the time period, and divide the signal in each time period into K modal components;

[0045] b. Calculate the single-sided spectrum of each modal component in each time period through Hilbert transform;

[0046] c. Based on the unilateral spectrum of each modal component, determine the center frequency of the modal component by adding restrictions;

[0047] d. When the center frequencies corresponding to two adjacent modal components in a time period differ by less than the frequency threshold, it is determined that K corresponding to the time period is too large, and K-1 is taken as the optimal number of modal components corresponding to the time period; otherwise, K=K+1, and go to step b;

[0048] Among them, the restriction condition is to estimate the broadband based on the Gaussian smoothness of each modal component, combine the quadratic penalty function and Lagrangian function reconstruction, and obtain the conditions to ensure the absolute integration of each modal component.

[0049] Further preferably, the execution process of the neural network training module is:

[0050] A. Matrix the training data according to the Hankel matrix and convert it into a grayscale image;

[0051] B. Determine the fault sample capacity based on the grayscale image, combined with the image format of the residual network and the requirement that each fault sample contains at least one complete rotation of the bearing;

[0052] C. extracting fault features from the fault sample through the residual network, and determining the source of the fault features through a domain discriminator; wherein the domain discriminator includes a boundary probability distribution discriminator and a conditional probability distribution discriminator;

[0053] D. using the W distance of the boundary probability distribution discriminator and the conditional probability distribution discriminator to calculate the adversarial factor; wherein the adversarial factor is used to dynamically evaluate the weights of the boundary probability distribution discriminator and the conditional probability distribution discriminator;

[0054] E. Back-propagate the adversarial factor, adaptively adjust the parameters of the transfer learning neural network, calculate the total loss of the transfer learning neural network and update the adversarial factor, and repeat step E until the adversarial factor is updated a preset maximum number of times;

[0055] F. Take the minimum total loss as the dynamic balance indicator, and after the dynamic balance, transfer learning neural network classifies the fault features, outputs the fault category, and obtains the trained transfer learning neural network;

[0056] Among them, the transfer learning neural network includes a feature extractor, a gradient reversal layer, a domain discriminator, and a fault classifier;

[0057] The feature extractor is used to receive training data, and its output end is connected to the input end of the gradient reversal layer; the output end of the gradient reversal layer is connected to the domain discriminator and the fault classifier.

[0058] Further preferably, the antagonistic factor is:

[0059]

[0060] Where m is the total number of fault types; b is the iteration number; D S represents the boundary probability distribution of the source domain; D t Represents the boundary probability distribution of the target domain; is the conditional probability distribution of the source domain; is the conditional probability distribution of the target domain.

[0061] It should be pointed out that the known working condition and the working condition to be diagnosed belong to the working conditions of the same rolling bearing.

[0062] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:

[0063] The variable operating condition rolling bearing segmented fault diagnosis method provided by the present invention first uses training data of known operating conditions to train a transfer learning neural network, and then uses a few known original signals to input into the transfer learning neural network, so as to obtain all fault signals of the operating conditions to be diagnosed; its core is that transfer learning in the transfer learning neural network applies existing domain knowledge to the unknown domain by searching for common points between existing domains and unknown domains; in the present invention, the domains represent two different operating conditions, and the feature information learned from the known operating conditions is transferred to the unknown operating conditions, which effectively solves the problem of insufficient variable operating condition data.

[0064] The training data acquisition method provided by the present invention is: the original signal of the known working condition that can characterize the working state of the bearing is subjected to variational modal decomposition by a vibration analysis method, the energy entropy of each modal component is calculated, the energy entropy threshold is determined, and the original signal is divided into a normal signal and a fault signal based on the energy entropy threshold. The fault signal is used as the training data of the known working condition. It can be seen that the training data provided by the present invention is not all the original signals of the known working condition, but the normal signal is eliminated. In this way, the fault signal is input into the transfer learning neural network, which can reduce the transfer learning neural network from using the normal signal as the fault signal to determine its own network parameters through training, thereby improving the training efficiency of the transfer learning neural network.

[0065] The training method of the transfer learning neural network provided in the present invention introduces an adversarial factor, uses the W distance of the boundary distribution discriminator and the conditional distribution discriminator to calculate the adversarial factor, dynamically evaluates the weights of the boundary distribution discriminator and the conditional distribution discriminator in real time, back-propagates the adversarial factor, and continuously and adaptively adjusts the parameters of the transfer learning neural network to minimize the total loss of the transfer learning neural network. The accuracy of the fault signal to be diagnosed output by the transfer learning neural network trained by the above method will be greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 It is a transfer learning neural network framework diagram provided by an embodiment of the present invention;

[0067] Figure 2 It is a schematic diagram of a segmented fault diagnosis method for rolling bearings under variable working conditions provided by an embodiment of the present invention;

[0068] Figure 3 It is a schematic diagram of energy entropy of an original signal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution 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 used to limit the present invention.

[0070] The present invention provides a segmented fault diagnosis method for a rolling bearing under variable working conditions, comprising the following steps:

[0071] (1) Health monitoring signal processing stage:

[0072] The present invention proposes a working state health monitoring model based on a signal vibration analysis method and a statistical analysis method;

[0073] The overall steps are:

[0074] (1.1) Obtaining the original signal that can characterize the working state of the bearing;

[0075] (1.2) The original signal is subjected to variational modal decomposition using the signal vibration analysis method, and the energy entropy threshold is determined by calculating the energy entropy value of each modal component;

[0076] (1.3) The original signal is divided into normal signal and fault signal based on the energy entropy threshold.

[0077] The vibration analysis method in step (1.2) is to iteratively search for the optimal solution of the variational model, and each modal function and center frequency are continuously updated to obtain a modal component with a certain bandwidth;

[0078] Assuming that the original signal includes several modal components, each modal component is associated with a certain center frequency density, the specific steps of the vibration analysis method are as follows:

[0079] The center frequency of the modal component is obtained as follows:

[0080] a. Divide the original signal into several segments according to the time period, and initialize K modal components in each time period, where the time period is determined by the sampling frequency;

[0081] b. Calculate the unilateral spectrum of each modal component IMF in each time period through Hilbert transform;

[0082] c. Based on the unilateral spectrum of each mode, determine the center frequency of the modal component by adding restrictions;

[0083] d. When the center frequencies corresponding to two adjacent modal components differ by less than the frequency threshold, it is considered that K is too large, and K-1 is taken as the optimal number of modal components; otherwise, K=K+1, and go to step b;

[0084] The restrictions are:

[0085] The bandwidth is estimated by the Gaussian smoothness of each modal component, that is, the square parameterization of the gradient, and the following constrained variable problem is obtained:

[0086]

[0087] Among them, {u k}={u 1 ...u K} represents the modal component of the component; K is the total number of modal components in the current time period; {ω k}={ω 1 ... K} represents the center frequency corresponding to each modal component; δ(t) represents the pulse function; t represents time; × represents convolution;

[0088] The quadratic penalty function and Lagrangian function reconstruction constraints are introduced; the penalty function will give a finite weight to obtain good convergence, and the function will be strictly constrained to ensure the absolute integral of each modal component. The formula is as follows:

[0089]

[0090] Where a represents the quadratic penalty factor; λ(t) represents the Lagrange multiplication operator.

[0091] The method for determining the energy entropy threshold by calculating the energy entropy value of each modal component in step (1.2) is:

[0092] All entropy calculation methods analyze the energy contained in the signal and determine the stability of the signal to judge whether the working state of the bearing is faulty or not. The basis for judging the working state is that the more unstable the signal, the higher the entropy value of the energy contained. The bearing in the normal working state has extremely strong uncertainty. The bearing in the fault state has a fixed fault location, so the uncertainty is weaker than that of the bearing in the normal working state. Therefore, it can be judged that the signal with a higher energy entropy value is a normal signal, and the signal with a lower entropy value is a fault signal.

[0093] The specific calculation steps are as follows:

[0094] According to the above variational mode decomposition steps, the original signal is divided into several IMF components, and the energy entropy value corresponding to the modal component in each time period is calculated:

[0095]

[0096] Among them, x i (t) represents the i-th IMF component, E={E 1 ,E 2 ,...,E K} represents the energy distribution characteristics of the jth time period in the frequency domain of the original signal; i represents the i-th modal component;

[0097] Since the modal components obtained by variational mode decomposition are orthogonal, the sum of the energies of all IMF components is equal to the total energy of the original vibration signal. The energy entropy value of the original signal is calculated as follows:

[0098]

[0099]

[0100] Among them, E i Represents x i (t) corresponding energy, H EN Represents the corresponding energy entropy value;

[0101] According to the above method for calculating entropy value, two sets of energy entropy values ​​are obtained under normal working conditions and fault conditions; then the entropy value standard of whether the signal is normal or not is calculated; and the energy entropy threshold is calculated by using the statistical analysis method;

[0102] The statistical analysis method is based on the definition in statistics, and the confidence space of the estimated interval of the population parameter constructed by sample statistics is defined as follows:

[0103]

[0104] in, represents the average value of energy entropy; S represents the standard deviation of energy entropy; δ represents the confidence level;

[0105] Based on the above analysis, the energy entropy threshold EE is defined θ As a standard for health monitoring, the minimum value is That is, when the entropy value is higher than the energy entropy threshold, the bearing is in normal working state; otherwise, a fault occurs; the signal is divided into normal signal and fault signal;

[0106] (2) Fault identification stage:

[0107] Construct a transfer learning neural network model based on adversarial learning. First, preprocess the fault data to generate fault samples. Then divide the fault samples into training set and test set according to the working conditions. Input the training set into the transfer learning neural network model for training. Finally, input the test set into the trained transfer learning neural network model for testing and obtain the diagnosis results.

[0108] Fault data preprocessing is determined according to model requirements and original data sampling requirements; the basic network in the transfer learning neural network proposed in the present invention is a residual neural network; the network can increase the network depth as much as possible under the condition that gradient vanishing and explosion will not occur during gradient descent, thereby improving the efficiency and accuracy of network model training; its essence is to change the learning target by using the principle of residual block, thereby simplifying the learning process and improving learning efficiency; the principle of this method is: assuming that the original learning target is H(x), the input is x, and x is directly transferred to the output layer as the initial result through constant mapping, the learning target at this time is H(x)=F(x)+x; wherein F(x) is the optimized learning target;

[0109] The residual network was originally used to identify images in the direction of computer vision. In order to use the network in the transfer learning neural network model of the present invention, the fault data needs to be matrixed and converted into a grayscale image.

[0110] The matrix is ​​defined according to the Hankel matrix definition, which is defined as a matrix in which the elements on each sub-diagonal are equal; the last element of the first column of the matrix is ​​the same as the first element of the last row, and the rest is filled according to the equality of the elements on the sub-diagonal. The formula is as follows:

[0111]

[0112] The model requirements are determined by the image format required by the residual network, which is a 256*256 jpg image. Therefore, the minimum capacity of a single sample is 511 data.

[0113] The original data sampling requirements are determined based on the sensor sampling frequency and the bearing speed. To ensure the integrity of the fault information contained in each fault sample, each fault sample is required to contain at least one complete rotation of the bearing data. Then, according to the above model requirements, an appropriate sample capacity is selected.

[0114] The training set and test set are divided according to the working conditions. The fault samples of a certain working condition are selected as known samples and used as the training set; the fault samples of the remaining working conditions are regarded as unknown samples and used as the test set.

[0115] like Figure 1 As shown, the transfer learning neural network framework includes a feature extractor, a domain discriminator, and a fault classifier;

[0116] The feature extractor is a residual neural network, which is used to extract fault features from fault samples. ResNet50 is selected as the feature extractor. 50 is the sum of the number of convolutional layers in the residual block and the number of pooling layers at the beginning and end. The network is selected based on the following reasons: the residual blocks contained in the residual neural network with 50 or more layers contain the first and last 1*1 convolutional layers, which greatly improves the efficiency of network learning.

[0117] Transfer learning applies existing domain knowledge to unknown domains by searching for commonalities between the two. In the present invention, domains represent two different working conditions, and feature information learned from known working conditions is transferred to unknown working conditions, which effectively solves the problem of insufficient data for variable working conditions. Usually, a known data set is used as the source domain, and an unknown data set is used as the target domain. The domain discriminator is a unique part of transfer learning, which is used to determine the source of data. The source of data is often determined by calculating the conditional probability distribution and boundary probability distribution of features as the loss function.

[0118] The present invention uses the idea of ​​adversarial network, uses a domain discriminator to determine the source of data, and uses a feature extractor to extract features of two domains, so that the domain discriminator cannot distinguish the source of the feature, and the two form an adversarial relationship and finally reach a balance. In order to simplify network calculation and improve calculation accuracy, a gradient reversal layer is added between the domain discriminator and the feature extractor to make the gradient propagate in reverse, so that the network reaches a balance without changing the function target. At this point, the extracted features belong to the same two domains, and the migration is completed.

[0119] The weights of the two probability distributions are changes made in existing research methods. Existing research methods often use one of the probability distributions, or directly combine the two, and the training results are limited. The common method of combining the two is to assign different weights to the two, which limits the range of weight options and cannot calculate the exact weights, and cannot obtain the optimal solution. On this basis, the adversarial factor intelligently and dynamically evaluates the importance of the two probability distributions, accurately calculates and assigns the corresponding weights.

[0120] Conditional probability distribution is only applicable to known data. For unknown data, only the boundary probability distribution can be calculated. The simultaneous cube formula of probability distribution is introduced:

[0121] P(x,y)=P(x)P(y|x)=P(y)P(x|y)

[0122] Among them, P(x, y) represents the joint probability distribution; P(x) and P(x|y) represent the boundary probability distribution and conditional probability distribution respectively; the numerical relationship between the two distribution probabilities is obtained, and the problem of unknown boundary probability distribution of unknown data is solved by deforming the formula;

[0123] A common way to combine the two is to measure the distance between them according to the probability formula:

[0124] D(D s ,D t )≈(1-μ)D(P s (x),P t (x))+μD(P s (x|y),P t (x|y)

[0125] Where D represents the distance; μ represents the balance factor, which gives weight to the two; Ds represents the source domain; Dt represents the target domain; This formula only gives a quantitative estimate in theory, and does not solve the problem of accurately calculating the balance factor;

[0126] Loss is a unique calculation standard for transfer learning. The total loss of the migration network includes the fault classifier loss and the migration loss. The fault classifier classifies faults through the softmax function, and its loss is defined by the cross entropy function formula:

[0127]

[0128] Where C represents the number of fault categories; Represents sample X i The probability of belonging to c; G f represents the fault extractor; G y represents the fault classifier; n s is the number of samples in the target domain; Ds represents the source domain; c represents the cth type of fault;

[0129] The calculation formula of migration loss is divided into conditional discrimination loss and boundary distribution discrimination loss; among them, the boundary distribution discrimination loss is defined by the formula:

[0130]

[0131] Among them, L d represents the domain discrimination loss, which is obtained by calculating the cross entropy function; G m represents the boundary probability distribution discriminator; d i Indicates the fault category to which the input sample belongs;

[0132] The conditional distribution discrimination loss is defined by the formula:

[0133]

[0134] in, represents the conditional probability distribution discriminator corresponding to fault category j; represents the conditional probability distribution discriminator loss corresponding to fault category j; n represents the total number of fault categories; Represents X i The conditional probability distribution of belonging to fault category j;

[0135] The present invention provides an adversarial factor for dynamically balancing the weights of conditional probability distribution and boundary probability distribution, minimizing migration loss, and improving model training efficiency; the calculation of the adversarial factor is based on the distance between the discriminators of the two domains; therefore, the distance needs to be defined before accurately calculating the adversarial factor; the distance is Wasserstein distance, referred to as W distance;

[0136] The boundary distribution discriminator W distance is defined as:

[0137]

[0138] In this formula, ||xy|| is the square root of the sum of the components of the x and y vectors after the difference is made, γ represents the joint distribution of x and y; x and y belong to D s , D t ; E (x,y)~γ[||xy||] represents the expected value of the sample distance;

[0139] The conditional distribution discriminator W distance is defined as:

[0140]

[0141] Among them, x and y represent samples in the source domain and target domain respectively; in this formula, x and y belong to

[0142] The antagonism factor ω is defined as:

[0143]

[0144] Where m is the total number of fault types; b is the iteration number; D S represents the probability distribution of the source domain boundary; D t Represents the probability distribution of the target domain boundary; is the conditional probability distribution of the source domain; is the conditional probability distribution of the target domain;

[0145] By coupling the above formulas, we finally get the total loss of the network, which is defined as:

[0146]

[0147] Among them, ω is calculated by the network itself and is continuously updated and adjusted; λ represents the balancing parameter added in the gradient reversal layer;

[0148] The training set and test set are source domain data and target domain data respectively; the source domain data and target domain data are input into the deep transfer learning neural network for training, and the hyperparameters are adjusted by comparing the training results to obtain the final training accuracy; the training logic is: take the source domain data and a small amount of target domain data for migration, and learn the features in the source domain data; the network is iteratively trained, and after each generation of training, the source domain data is taken for testing to obtain the iterative training results, and the remaining target domain data is taken for testing to obtain the iterative test results; the above model is serialized and deserialized to save the model parameters to obtain the final model.

[0149] Example

[0150] like Figure 1 As shown, this embodiment provides a segmented fault diagnosis method for rolling bearings with variable working conditions using a dynamic adversarial transfer learning network, the method comprising an intelligent monitoring stage for the working state of the bearing and a fault identification stage;

[0151] In order to better reflect the universality of the present invention, relatively representative rolling bearing data is selected. In this embodiment, the driving end rolling bearing data with a sampling frequency of 12kHz is selected as the research object;

[0152] Table 1

[0153]

[0154] As shown in Table 1, there are a total of 11 faults and a set of normal data; different speeds correspond to different working conditions, 1797 / 1772 / 1750 / 1730r / min corresponds to 0 / 1 / 2 / 3hp load conditions; hp stands for horsepower, which is a unit for measuring load; this embodiment uses different working conditions as training sets and test sets respectively. If not mentioned, the default 0hp sample is used as the training set.

[0155] In the signal processing stage, the original signal that can characterize the working state of the bearing is first obtained, and then preprocessed to divide it into normal signal and fault signal, and then the fault sample is obtained according to the resolution standard;

[0156] According to the requirement for the capacity of a single sample, the relationship between the sampling frequency and the bearing speed is calculated to ensure that the fault data contained in each fault label is the same. In this embodiment, 1000 data are taken as one sample. There are 120 samples for each fault under each working condition, and each working condition corresponds to 120*11=1320 fault samples.

[0157] In the signal preprocessing step, a method combining variational mode decomposition and energy entropy is used to divide normal signals and fault signals. This embodiment has divided normal samples and fault samples, so only verification is performed without further research.

[0158] Variational mode decomposition requires determining two hyperparameters first, namely the number of decomposition modes k and the penalty factor Based on experience The modal number k needs to be determined based on the center frequency. If the k value is too large, it will cause modal aliasing. If the k value is too small, the signal cannot be effectively decomposed. Therefore, it is necessary to obtain the optimal solution of k through iterative calculation. Through the constraint formula:

[0159]

[0160] The constraints are reconstructed by introducing quadratic penalty functions and Lagrangian functions; the penalty will give a finite weight to obtain good convergence, and the function will be strictly constrained; they guarantee the absolute integral of the signal, as follows:

[0161]

[0162] Calculate the center frequency of each mode and find the optimal solution for k;

[0163] Table 2

[0164]

[0165] As shown in Table 2, the normalized center frequencies of each mode are obtained by setting k=1 to 6 respectively; when k=5 or 6, the center frequencies of the last two modes are close, and it can be considered that over-decomposition occurs at this time, resulting in modal aliasing; therefore, k=4 is selected as the parameter under the working condition, and the values ​​of k under all working conditions are shown in Table 3 below;

[0166] Table 3

[0167]

[0168] According to the steps of variational mode decomposition, the original signal is divided into several IMF components, and the energy entropy value of each modal component is calculated:

[0169]

[0170] Since the modal components obtained by variational mode decomposition are orthogonal, the sum of the energies of all IMF components is equal to the total energy of the original vibration signal. The energy entropy value of the original signal is calculated as follows:

[0171]

[0172]

[0173] Among them, E i Represents x i (t) corresponding energy, H EN Represents the corresponding energy entropy value;

[0174] According to the above method for calculating entropy value, the energy entropy values ​​of the higher and lower groups are obtained; then the entropy value standard of whether the signal is normal or not is calculated; and the entropy value threshold is calculated by using the statistical analysis method;

[0175] The statistical analysis method is based on the definition in statistics, and the confidence space of the estimated interval of the population parameter constructed by sample statistics is defined as follows:

[0176]

[0177] in, represents the average value of energy entropy; S represents the standard deviation of energy entropy; δ represents the confidence level;

[0178] Based on the above analysis, the threshold EE of energy entropy value is defined θ As a standard for health monitoring, the minimum value is That is, when the entropy value is higher than the threshold, the bearing is in normal working state; otherwise, a fault occurs; the signal is divided into normal signal and fault signal;

[0179] Figure 3The dotted line in is the energy entropy threshold, that is, the points above the dotted line are samples in normal working state, and all points below the dotted line are samples in fault state; the energy distribution of the vibration signal in normal working state is more uncertain in each frequency band, so the energy entropy value of normal samples is usually greater than that of defective samples; Figure 3 It can be seen that all normal samples can be based on the threshold EE θ Completely and accurately separated from the test sample group; in addition, in this case, the energy entropy distributions of the fault samples with 11 different fault labels are similar, and it is difficult to complete the effective classification of faults based on the energy entropy characteristics of the samples alone; therefore, it is necessary to input the fault data into the adversarial transfer learning model for further fault identification;

[0180] The basic network in the transfer learning neural network proposed in this embodiment is a residual neural network; the network can increase the network depth as much as possible under the condition that the gradient does not disappear or explode when the gradient descends, thereby improving the efficiency and accuracy of network model training; its essence is to change the learning target by using the principle of residual blocks, thereby simplifying the learning process and improving learning efficiency; the principle of this method is: assuming that the original learning target is H(x), the input is x, usually the constant mapping directly passes x to the output layer as the initial result, and the learning target at this time is H(x)=F(x)+x;

[0181] The adversarial transfer learning model established in this embodiment uses ResNet50 as a feature extractor; 50 means that the sum of the number of convolutional layers in the residual block and the number of pooling layers at the beginning and the end is 50; the basis for selecting this network is that the residual blocks contained in the residual neural network with 50 layers or more include the first and last 1*1 convolutional layers, which greatly improves the efficiency of network learning;

[0182] The matrix is ​​defined according to the Hankel matrix definition, which is defined as a matrix in which the elements on each sub-diagonal are equal; the last element of the first column of the matrix is ​​the same as the first element of the last row, and the rest is filled according to the equality of the elements on the sub-diagonal. The formula is as follows:

[0183]

[0184] The residual network requires a 256*256 jpg image; therefore, the minimum capacity of a single sample is 511 data; to ensure the integrity of the fault information contained in each fault sample, each fault sample is required to contain at least complete data of one rotation of the bearing; according to the above model requirements, an appropriate sample capacity is taken; for the convenience of calculation, the sample capacity taken in this embodiment is 511, and there are 235 fault samples in each label; then one of the working conditions of 0 / 1 / 2 / 3hp is regarded as a known data set in turn, and the remaining three working conditions are regarded as unknown data sets for transfer learning, for a total of 12 groups of transfer learning experiments;

[0185] Transfer learning applies existing domain knowledge to unknown domains. In this embodiment, the domains represent two different working conditions. The feature information learned from the known working conditions is transferred to the unknown working conditions, which effectively solves the problem of insufficient data in variable working conditions. Usually, the known data set is used as the source domain and the unknown data set is used as the target domain. The domain discriminator is a unique part of transfer learning, which is used to determine the source of data. The conditional probability distribution and boundary probability distribution of the calculated features are often used as the loss function to determine the source of data.

[0186] Using the idea of ​​adversarial network, the domain discriminator is used to determine the source of data, and the feature extractor is used to extract features of two domains, so that the domain discriminator cannot distinguish the source of the feature, and the two form an adversarial relationship and finally reach a balance. In order to simplify the network calculation and improve the calculation accuracy, a gradient reversal layer is added between the domain discriminator and the feature extractor to make the gradient propagate in reverse, so as to make the network reach a balance without changing the function target. At this point, the extracted features belong to the same two domains, and the migration is completed.

[0187] The weights of the two probability distributions are changes made in existing research methods. Existing research methods often use one of the probability distributions, or directly combine the two, and the training results are limited. The common method of combining the two is to assign different weights to the two, which limits the range of weight options and cannot calculate the exact weights, and cannot obtain the optimal solution. On this basis, the adversarial factor intelligently and dynamically evaluates the importance of the two probability distributions, accurately calculates and assigns the corresponding weights.

[0188] Conditional probability distribution is only applicable to known data. For unknown data, only the boundary probability distribution can be calculated. The simultaneous cube formula of probability distribution is introduced:

[0189] P(x,y)=P(x)P(y|x)=P(y)P(x|y)

[0190] A common way to combine the two is to measure the distance between them according to the probability formula:

[0191] D(D s ,D t )≈(1-μ)D(P s (x),P t (x))+μD(P s (x|y),P t (x|y)

[0192] Where D represents the distance; μ represents the balance factor, which gives weight to the two; s represents the source domain; t represents the target domain. This formula only gives a quantitative estimate in theory and does not solve the problem of accurately calculating the balance factor.

[0193] The divided fault samples are input into the model for training. To ensure the accuracy of the experiment, 20 iterations of training are performed in the source domain for each experiment, and the target domain data is tested to obtain the accuracy of the model training. The average value of the training results of 10 times is taken for each group of experiments.

[0194] Table 4

[0195] Task 0→1 0→2 0→3 1→0 1→2 1→3 2→0 2→1 2→3 3→0 3→1 3→2 Accuracy 99.4 98.6 92.6 97.7 99.1 96.6 95.7 98.0 99.0 91.1 94.7 95.9

[0196] In the table, 0→1 indicates that the fault samples under 0hp condition are used as the source domain, and the fault samples under 1hp condition are used as the target domain. According to the definition of transfer learning, transfer learning is performed from the source domain to the target domain. Obviously, the method provided in this embodiment is used to diagnose and identify faults, which reflects the superiority of the present invention. It monitors the health status of the unit in real time and identifies the type of the fault efficiently and accurately, and has high practical value.

[0197] In summary, compared with the prior art, the present invention has the following advantages:

[0198] The variable operating condition rolling bearing segmented fault diagnosis method provided by the present invention first uses training data of known operating conditions to train a transfer learning neural network, and then uses a few known original signals to input into the transfer learning neural network, so as to obtain all fault signals of the operating conditions to be diagnosed; its core is that transfer learning in the transfer learning neural network applies existing domain knowledge to the unknown domain by searching for common points between existing domains and unknown domains; in the present invention, the domains represent two different operating conditions, and the feature information learned from the known operating conditions is transferred to the unknown operating conditions, which effectively solves the problem of insufficient variable operating condition data.

[0199] The training data acquisition method provided by the present invention is: the original signal of the known working condition that can characterize the working state of the bearing is subjected to variational modal decomposition by a vibration analysis method, the energy entropy of each modal component is calculated, the energy entropy threshold is determined, and the original signal is divided into a normal signal and a fault signal based on the energy entropy threshold. The fault signal is used as the training data of the known working condition. It can be seen that the training data provided by the present invention is not all the original signals of the known working condition, but the normal signal is eliminated. In this way, the fault signal is input into the transfer learning neural network, which can reduce the transfer learning neural network from using the normal signal as the fault signal to determine its own network parameters through training, thereby improving the training efficiency of the transfer learning neural network.

[0200] The training method of the transfer learning neural network provided in the present invention introduces an adversarial factor, uses the W distance of the boundary distribution discriminator and the conditional distribution discriminator to calculate the adversarial factor, dynamically evaluates the weights of the boundary distribution discriminator and the conditional distribution discriminator in real time, back-propagates the adversarial factor, and continuously and adaptively adjusts the parameters of the transfer learning neural network to minimize the total loss of the transfer learning neural network. The accuracy of the fault signal to be diagnosed output by the transfer learning neural network trained by the above method will be greatly improved.

[0201] 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 segmented fault diagnosis method for rolling bearings under variable working conditions, characterized in that: The following steps are involved: Input the training data of known working conditions into the transfer learning neural network, and train the transfer learning neural network with the goal of minimizing the total loss of the transfer learning neural network; Input some known original signals of the working condition to be diagnosed that can characterize the working state of the bearing into the trained transfer learning neural network, and output all fault signals of the working condition to be diagnosed; The feature extractor in the transfer learning neural network is a residual neural network, and its total loss is the sum of the cross entropy function loss, the boundary distribution identification loss and the conditional distribution identification loss of the fault classifier; Among them, the cross entropy function loss L y for: Where C represents the number of fault categories; represents the probability that sample Xi belongs to c; G f represents the fault extractor; G y represents the fault classifier; Ds represents the boundary probability distribution of the source domain; c represents the cth type of fault; Boundary distribution discrimination loss L m for: Among them, L d represents the domain discrimination loss, which is obtained by calculating the cross entropy function; G m represents the boundary probability distribution discriminator; d i Indicates the fault category to which the input sample belongs; D t Represents the boundary probability distribution of the target domain; Conditional distribution discrimination loss L c for: in, represents the conditional probability distribution discriminator corresponding to fault category j; represents the conditional probability distribution discriminator loss corresponding to fault category j; n represents the total number of fault categories; represents the conditional probability distribution that Xi belongs to fault category j; The method for obtaining training data for known working conditions is: The original signal that can characterize the working state of the bearing under known working conditions is subjected to variational mode decomposition using vibration analysis method; Calculate the energy entropy of each modal component and determine the energy entropy threshold; The original signal is divided into normal signal and fault signal based on the energy entropy threshold, and the fault signal is used as training data of known working conditions; The variational mode decomposition method comprises the following steps: a. Divide the original signal into several segments according to time periods, and divide the signal in each time period into K modal components; b. calculating the unilateral spectrum of each modal component in each time period by Hilbert transform; c. Based on the unilateral spectrum of each of the modal components, determining the center frequency of the modal component by adding restriction conditions; d. When the center frequencies corresponding to two adjacent modal components in a time period differ by less than the frequency threshold, it is determined that K corresponding to the time period is too large, and K-1 is taken as the optimal number of modal components corresponding to the time period; otherwise, K=K+1, and go to step b; The restriction condition is to estimate the bandwidth based on the Gaussian smoothness of each modal component, combine the quadratic penalty function and the Lagrangian function reconstruction, and obtain the condition to ensure the absolute integration of each modal component; The method of training a transfer learning neural network specifically includes the following steps: A. Matrix the training data according to the Hankel matrix and convert it into a grayscale image; B. Determine the fault sample capacity based on the grayscale image, combined with the image format of the residual network and the requirement that each fault sample contains at least one complete rotation of the bearing; C. extracting fault features from the fault sample through the residual network, and determining the source of the fault features through a domain discriminator; wherein the domain discriminator includes a boundary probability distribution discriminator and a conditional probability distribution discriminator; D. using the W distance of the boundary probability distribution discriminator and the conditional probability distribution discriminator to calculate the adversarial factor; wherein the adversarial factor is used to dynamically evaluate the weights of the boundary probability distribution discriminator and the conditional probability distribution discriminator; E. Back-propagate the adversarial factor, adaptively adjust the parameters of the transfer learning neural network, calculate the total loss of the transfer learning neural network and update the adversarial factor, and repeat step E until the adversarial factor is updated a preset maximum number of times; F. Take the minimum total loss as the dynamic balance indicator, and after the dynamic balance, transfer learning neural network classifies the fault features, outputs the fault category, and obtains the trained transfer learning neural network; Wherein, the transfer learning neural network includes a feature extractor, a gradient reversal layer, a domain discriminator and a fault classifier; The feature extractor is used to receive training data, and an output end of the feature extractor is connected to an input end of the gradient reversal layer; an output end of the gradient reversal layer is connected to the domain discriminator and the fault classifier.

2. The variable operating condition rolling bearing segmented fault diagnosis method according to claim 1 is characterized in that: The antagonistic factors are: Where m is the total number of fault types; b is the iteration number; D S represents the boundary probability distribution of the source domain; D t Represents the boundary probability distribution of the target domain; is the conditional probability distribution of the source domain; is the conditional probability distribution of the target domain.

3. A variable-condition rolling bearing segmented fault diagnosis system, characterized in that: include: A neural network training module is used to input training data of known working conditions into the transfer learning neural network, determine the parameters of the transfer learning neural network based on the minimum total loss of the transfer learning neural network, and complete the training of the transfer learning neural network; A transfer learning neural network module is provided with a transfer learning neural network inside, which inputs the original signal of the part of the working condition to be diagnosed that is known and can characterize the working state of the bearing, and outputs all fault signals of the working condition to be diagnosed; The feature extractor in the transfer learning neural network is a residual neural network, and its total loss is the sum of the cross entropy function loss, the boundary distribution identification loss and the conditional distribution identification loss of the fault classifier; A training data acquisition module, which includes a modal decomposition unit, an energy entropy calculation unit and a signal division unit; The modal decomposition unit is used to perform variational modal decomposition on the original signal of known working conditions that can characterize the working state of the bearing by using a vibration analysis method; The energy entropy calculation unit is used to calculate the energy entropy of each modal component and determine the energy entropy threshold; The signal division unit is used to divide the original signal into a normal signal and a fault signal based on an energy entropy threshold, and use the fault signal as training data of a known working condition; Among them, the cross entropy function loss L y for: Where C represents the number of fault categories; represents the probability that sample Xi belongs to c; G f represents the fault extractor; G y represents the fault classifier; Ds represents the boundary probability distribution of the source domain; c represents the cth type of fault; Boundary distribution discrimination loss L m for: Among them, L d represents the domain discrimination loss, which is obtained by calculating the cross entropy function; G m represents the boundary probability distribution discriminator; d i Indicates the fault category to which the input sample belongs; D t Represents the boundary probability distribution of the target domain; Conditional distribution discrimination loss L c for: in, represents the conditional probability distribution discriminator corresponding to fault category j; represents the conditional probability distribution discriminator loss corresponding to fault category j; n represents the total number of fault categories; represents the conditional probability distribution that Xi belongs to fault category j; The specific implementation method of the modal decomposition unit is: a. Divide the original signal into several segments according to the time period, and divide the signal in each time period into K modal components; b. Calculate the single-sided spectrum of each modal component in each time period through Hilbert transform; c. Based on the unilateral spectrum of each modal component, determine the center frequency of the modal component by adding restrictions; d. When the center frequencies corresponding to two adjacent modal components in a time period differ by less than the frequency threshold, it is determined that K corresponding to the time period is too large, and K-1 is taken as the optimal number of modal components corresponding to the time period; otherwise, K=K+1, and go to step b; Among them, the restriction condition is to estimate the broadband based on the Gaussian smoothness of each modal component, combine the quadratic penalty function and Lagrangian function reconstruction, and obtain the conditions to ensure the absolute integration of each modal component; The execution process of the neural network training module is: A. Matrix the training data according to the Hankel matrix and convert it into a grayscale image; B. Determine the fault sample capacity based on the grayscale image, combined with the image format of the residual network and the requirement that each fault sample contains at least one complete rotation of the bearing; C. extracting fault features from the fault sample through the residual network, and determining the source of the fault features through a domain discriminator; wherein the domain discriminator includes a boundary probability distribution discriminator and a conditional probability distribution discriminator; D. using the W distance of the boundary probability distribution discriminator and the conditional probability distribution discriminator to calculate the adversarial factor; wherein the adversarial factor is used to dynamically evaluate the weights of the boundary probability distribution discriminator and the conditional probability distribution discriminator; E. Back-propagate the adversarial factor, adaptively adjust the parameters of the transfer learning neural network, calculate the total loss of the transfer learning neural network and update the adversarial factor, and repeat step E until the adversarial factor is updated a preset maximum number of times; F. Take the minimum total loss as the dynamic balance indicator, and after the dynamic balance, transfer learning neural network classifies the fault features, outputs the fault category, and obtains the trained transfer learning neural network; Among them, the transfer learning neural network includes a feature extractor, a gradient reversal layer, a domain discriminator, and a fault classifier; The feature extractor is used to receive training data, and the output end is connected to the input end of the gradient reversal layer; the output end of the gradient reversal layer is connected to the domain discriminator and the fault classifier.

4. The variable operating condition rolling bearing segmented fault diagnosis system according to claim 3 is characterized in that: The antagonistic factors are: Where m is the total number of fault types; b is the iteration number; D S represents the boundary probability distribution of the source domain; D t Represents the boundary probability distribution of the target domain; is the conditional probability distribution of the source domain; is the conditional probability distribution of the target domain.