A small sample fault diagnosis method for rotating machinery based on generative adversarial network

By using the ACWGAN-GP-ARGMAX model in rotating machinery fault diagnosis, adversarial training and model fusion are used to solve the problem of small sample training, achieve high-precision fault diagnosis, overcome the unsupervised classification shortcomings of traditional GAN, and reduce the hardware cost resource requirements and improved diagnostic accuracy.

CN114091504BActive Publication Date: 2024-10-18TECH & ENG CENT FOR SPACE UTILIZATION CHINESE ACAD OF SCI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110813313.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-19
Publication Date
2024-10-18
Estimated Expiration
2041-07-19

AI Technical Summary

Technical Problem

It is difficult for the existing technology to achieve high-precision fault diagnosis of rotating machinery through small sample training, mainly due to the low fault occurrence rate, high experimental cost and high data annotation cost, which makes it difficult to obtain enough effective annotation data in actual industrial scenarios.

Method used

The ACWGAN-GP-ARGMAX model based on Generative Adversarial Network (GAN) is used to build a rotating machinery fault diagnosis method that can diagnose faults in small samples through adversarial training and model fusion, and uses vibration signals for feature extraction and classification.

Benefits of technology

It achieves high-precision rotating machinery fault diagnosis under small samples, has powerful generation capabilities and classification and recognition capabilities, overcomes the shortcomings of traditional GAN ​​under unsupervised conditions, reduces hardware resource requirements, improves diagnosis accuracy and shows good performance. generalization ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114091504B_ABST
    Figure CN114091504B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for small sample fault diagnosis of rotating machinery based on generative adversarial network. First, the collected time domain signal of rotating machinery is converted into a spectrum signal with easy-to-observe features through fast Fourier transform (FFT); then, based on ACWGAN-GP, the ACWGAN-GP-ARGMAX diagnosis model is obtained by introducing the "argmax" multi-classification idea. The diagnosis model gives the discriminator classification and recognition capabilities and enhances the classification and recognition capabilities of the discriminator, which can effectively improve the accuracy and efficiency of small sample fault diagnosis of rotating machinery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rotating machinery fault diagnosis, and in particular to a rotating machinery small sample fault diagnosis method based on a generative adversarial network. Background Art

[0002] Rotating machinery is widely used in aerospace, shipbuilding, wind power, petrochemical and other fields. It is one of the key components in industrial scenarios and is also a type of equipment that is prone to failure. Most rotating machinery is a cyclically symmetrical structure and is stable under normal operating conditions. However, when a rotating machinery fails, its symmetry is destroyed, resulting in unstable performance and easily causing major accidents. In order to avoid catastrophic failures of rotating machinery, it is of great significance to continuously monitor and diagnose its operating status.

[0003] The operating status of rotating machinery can usually be detected and diagnosed by measuring signals such as vibration, noise and oil. At present, the acquisition and analysis technology of vibration signals is relatively mature, and the fault diagnosis of rotating machinery based on vibration signals is one of the most commonly used and widely used methods. The characteristics of the vibration signals of rotating machinery are relatively complex. Non-professionals generally do not understand and cannot identify the fault characteristics of vibration signals. Therefore, the research on intelligent fault diagnosis based on multidisciplinary cross-cutting is the main development direction of rotating machinery fault diagnosis. However, in the training process of intelligent fault diagnosis methods, it is necessary to learn the corresponding data distribution from a large amount of historical data to achieve accurate fault diagnosis. However, in actual industrial scenarios, due to: 1) the low fault occurrence rate, it is difficult to collect comprehensive real operating data corresponding to various health states; 2) the cost of rotating machinery fault injection experiments is high and there are great risks, which may endanger personnel safety and property safety; 3) even if there is a large amount of operation monitoring data, it takes a lot of manpower and material resources to effectively label these data, and the cost is extremely high, so it is usually difficult to obtain enough effectively labeled data of various types for model training. Therefore, it is urgent to develop a diagnostic method that can achieve high-precision fault diagnosis results with only a small sample for training. Summary of the invention

[0004] The purpose of the present invention is to provide a rotating machinery small sample fault diagnosis method based on a generative adversarial network, so as to solve the above-mentioned problems existing in the prior art.

[0005] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is as follows:

[0006] A method for small sample fault diagnosis of rotating machinery based on a generative adversarial network comprises the following steps:

[0007] S1: Collect vibration signals of rotating machinery;

[0008] S2: preprocess the rotating machinery vibration signal and divide it into a training set and a test set;

[0009] S3: Establish ACWGAN-GP-ARGMAX network model;

[0010] S4: training the ACWGAN-GP-ARGMAX network model;

[0011] S5: performing adversarial training on the data in each health state in the training set, and fusing the trained network models into a diagnostic model;

[0012] S6: Input the test set into the diagnosis model to perform a diagnosis test, and output a diagnosis result.

[0013] Furthermore, the specific implementation of step S1 includes arranging a vibration acceleration sensor on the rotating machinery, and using the vibration acceleration sensor to collect one-dimensional time series vibration acceleration data of the rotating machinery under various health states to form an original data set, wherein the original data set includes 1 normal state and N-1 fault states.

[0014] Furthermore, the specific implementation of step S2 includes extracting features of vibration signals under various health conditions in the original data set by fast Fourier transform and standard normalization, and constructing a new data set from the processed data;

[0015] The standard normalization method is: X = (xx min ) / (x max -x min ), where x max is the maximum value of the data sample, x min is the minimum value of the data sample;

[0016] According to the algorithm requirements, the new data set is divided into two parts: a training set and a test set. The training set is represented as Where k represents the kth health state, is the i-th training sample in this health state.

[0017] Further, the ACWGAN-GP-ARGMAX network model in step S3 includes a generator and a discriminator;

[0018] The generator is a network model structure including 5 deconvolution layers, and the input data is a 4096-dimensional random noise that obeys a normal distribution; in the generator, the random noise is first input into a fully connected layer consisting of 4096 neurons, and then passes through the 5 deconvolution layers in sequence; wherein, the number of filters in the first four deconvolution layers is 256, 128, 64, and 32, respectively, and the last deconvolution layer has only one filter; the size of the convolution kernel of the first deconvolution layer is 4×4 and the step size is 1, and the size of the convolution kernel of the last four deconvolution layers is 3×3 and the step size is 2; after the five deconvolution layers, the input data is converted into a 64×64 two-dimensional matrix;

[0019] The discriminator is represented by a network model structure including 5 convolutional layers, and the input data is a 64×64 two-dimensional matrix generated by the generator and a 64×64 two-dimensional matrix obtained by shaping the real data; in the discriminator, the number of filters in the first four convolutional layers is 32, 64, 128, and 256 respectively, and the last convolutional layer has only 1 filter; the size of the convolution kernel of the first four convolutional layers is 3×3 and the step size is 2, and the size of the convolution kernel of the last convolutional layer is 4×4 and the step size is 1; after the five convolutional layers, the input data is converted into a label value.

[0020] Furthermore, the specific implementation of step S4 includes selecting Gaussian distribution as the noise distribution P noise , and assign corresponding category labels, from which a subset of size n is sampled, denoted as Subset the random noise with category labels Input to the generator G corresponding to the health state k k , forward propagation to generate a subset of samples From the real data training set P of health state k k~data The data is sampled as positive samples, denoted as Then, from the real data training set P outside the health state k (C≠k)~data The data is sampled as negative samples, denoted as Depend on and The real samples under the health state k are composed by generating samples Combination, forming a training set subset {X k};

[0021] Set the discriminator D k With the generator G k The ratio of training times is m. First, the training set subset {X k} and the Adam algorithm for the discriminator Dk Perform m trainings; then use the random noise subset with category labels And the Adam algorithm for the generator G k Perform one training session; select the cross entropy loss function as the objective function, which is defined as follows:

[0022]

[0023]

[0024] Where x represents the real sample, Indicates the generated sample, is obtained by adding x and Random samples obtained by linear interpolation, λ is the gradient penalty factor, represents the expectation of the real data distribution, represents the expectation of generating data distribution, represents the gradient penalty term, P(C=c|X real ) represents the conditional probability distribution of the real data on the class label, represents the conditional probability distribution of generated data on the class label,

[0025] According to the above ratio m of the number of training times per round, the discriminator D k With the generator G k Perform iterative training until the discriminator D k With the generator G k A Nash equilibrium is reached between them.

[0026] Furthermore, the specific implementation of step S5 includes:

[0027] First, the data samples except for the k-th health state are marked as negative samples and labeled as class 0; correspondingly, the data samples in the k-th health state are marked as positive samples and labeled as class 1;

[0028] Second, the labeled data is input into the discriminator D as a real sample. k Conduct adversarial training in the k-th class until the model loss function converges to the minimum value, thereby obtaining the generator and discriminator of the k-th class sample;

[0029] Third, perform the above training on each type of samples in turn to obtain n trained ACWGAN-GP-ARGMAX models; from these, separate n discriminators as trained diagnostic models;

[0030] Fourth, the n discriminators are model-fused, the probability values ​​of the output results are combined into an n-dimensional vector, and connected to the Softmax activation layer for activation, so that each value output by the output layer corresponds to the probability that the test sample belongs to each health state.

[0031] Furthermore, step S500 is included between step S4 and step S5: performing quality assessment on the network model trained in step S4, and if the network model fails the assessment, step S4 is repeated.

[0032] Furthermore, the quality assessment in step S500 includes:

[0033] First, evaluate the generator G k The specific method is to first qualitatively compare the spectra of the generated samples with the real samples, and then quantitatively measure their similarity by calculating the Pearson correlation coefficient (PCC) and cosine similarity (CS) between the generated samples and the real samples;

[0034] Second, evaluate the discriminator D k The classification and recognition ability of the trained discriminator D k Generate data samples, if the discriminator D k If sufficiently realistic generated samples can be generated, these generated samples can be further used to continuously train the discriminator D k Train so that the discriminator D k Learn the hidden distribution in the current sample.

[0035] The beneficial effects of the present invention are:

[0036] 1) Based on the ACWGAN-GP model, the present invention introduces the "argmax" multi-classification idea, so that the ACWGAN-GP-ARGMAX model has both powerful generation ability and powerful classification and recognition ability.

[0037] 2) The present invention integrates the generative adversarial network and the fault diagnosis model, overcoming the shortcoming that the generative adversarial network cannot perform classification under unsupervised conditions. Therefore, the present invention can directly use the data set to realize fault diagnosis without the need to introduce an additional discriminant model.

[0038] 3) The rotating machinery small sample fault diagnosis model based on generative adversarial network proposed in the present invention has the advantages of simple structure, few parameters, low hardware resource requirements and high economy. Experiments on gearbox data sets and bearing data sets have proved that the present invention can effectively improve the accuracy of rotating machinery small sample fault diagnosis and has a certain generalization ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a basic flow chart of the small sample fault diagnosis method of rotating machinery based on the generative adversarial network of the present invention;

[0040] Figure 2 is a flowchart of an implementation example of the present invention;

[0041] Figure 3 It is a structural diagram of the ACWGAN-GP-ARGMAX network model of the present invention;

[0042] Figure 4 It is a time domain diagram of the original vibration signals of 8 types of gearboxes in the embodiment described in the present invention;

[0043] Figure 5 is a spectrum comparison diagram of various types of generated data and original data in the embodiment of the present invention;

[0044] Figure 6 is the diagnostic result of 10 independent experiments under different sample ratio conditions in the embodiment of the present invention;

[0045] Figure 7 is the average value of the diagnostic results of 10 independent experiments under different sample ratio conditions in the embodiment of the present invention;

[0046] Figure 8 is a confusion matrix of the average values ​​of the diagnostic results of 10 independent experiments under different sample ratio conditions in the embodiment of the present invention;

[0047] Fig. 9 It is the average value of the diagnostic results of 10 independent experiments under different sample ratio conditions using different diagnostic methods in the embodiments of the present invention. DETAILED DESCRIPTION

[0048] The present invention provides a method for diagnosing small sample faults of rotating machinery based on a generative adversarial network, comprising the following steps:

[0049] S1: Collect vibration signals of rotating machinery. Arrange a vibration acceleration sensor on the rotating machinery, and use the vibration acceleration sensor to collect one-dimensional time series vibration acceleration data of the rotating machinery under various health states to obtain an original data set, which includes 1 normal state and N-1 fault states.

[0050] S2: Preprocess the vibration signal of the rotating machinery. Through fast Fourier transform (FFT) and standard normalization, the vibration signals in various health states in the data set are feature extracted, and the processed data are constructed into a new data set. The standard normalization method is: X = (xx min ) / (x max -xmin ), where x max is the maximum value of the data sample, x min is the minimum value of the data sample. According to the algorithm requirements, the new data set is divided into two parts: training set and test set. The training set can be expressed as Where k represents the kth health state, is the i-th training sample in this health state.

[0051] S3: Establishing the ACWGAN-GP-ARGMAX network model corresponding to the health state. Considering the excellent performance of CNN in feature extraction and classification, the present invention establishes a generator and a discriminator based on a two-dimensional CNN.

[0052] The network model structure of the generator consists of 5 deconvolution layers, and the input data is a 4096-dimensional random noise that follows a normal distribution. In the generator, the random noise is first input into a fully connected layer consisting of 4096 neurons, and then passes through 5 deconvolution layers in sequence. Among them, the number of filters in the first four deconvolution layers is 256, 128, 64, and 32, respectively, and the last deconvolution layer has only 1 filter; the size of the convolution kernel of the first deconvolution layer is 4×4 and the step size is 1, and the size of the convolution kernel of the next four deconvolution layers is 3×3 and the step size is 2; after five deconvolution layers, the input data is converted into a 64×64 two-dimensional matrix.

[0053] The network structure of the discriminator is symmetrical with that of the generator. The network model structure of the discriminator consists of 5 convolutional layers, and the input data is a 64×64 two-dimensional matrix generated by the generator and a 64×64 two-dimensional matrix obtained by shaping the real data. In the discriminator, the number of filters in the first four convolutional layers is 32, 64, 128, and 256, respectively, and the last convolutional layer has only 1 filter; the size of the convolution kernel of the first four convolutional layers is 3×3 and the step size is 2, and the size of the convolution kernel of the last convolutional layer is 4×4 and the step size is 1; after five convolutional layers, the input data is converted into a label value.

[0054] S4: Train the network model. Select Gaussian distribution as the noise distribution P noise , and assign corresponding category labels, from which a subset of size n is sampled, denoted as Subset the random noise with category labels Input to the generator G corresponding to the health state k k , forward propagation to generate a subset of samples From the real data training set P of health state k k~data The data is sampled as positive samples, denoted as Then from the real data training set P outside the health state k (C≠k)~data The data is sampled as negative samples, denoted as Depend on and The real samples in the health state k are composed by generating samples Combination, forming a training set subset {X k}. Set the discriminator D k With the generator G k The ratio of training times is m. First, we use the training set subset {X k} and Adam algorithm for the discriminator D k Perform m trainings; then a random noise subset with class labels And Adam algorithm for generator G k Perform 1 training; select the cross entropy loss function as the objective function, which is defined as follows:

[0055]

[0056]

[0057] Where x represents the real sample, Indicates the generated sample, is obtained by adding x and Random samples obtained by linear interpolation, λ is the gradient penalty factor, represents the expectation of the real data distribution, represents the expectation of generating data distribution, represents the gradient penalty term, P(C=c|X real ) represents the conditional probability distribution of the real data on the class label, represents the conditional probability distribution of generated data on the class label,

[0058] According to the above ratio m of the number of training times per round, the discriminator D k With the generator G k Perform iterative training until the discriminator D k With the generator G k A Nash equilibrium is reached between them.

[0059] S5: Perform quality assessment on the network model trained in S4. Generally, the quality of the trained model is assessed from two aspects. One is to qualitatively and quantitatively evaluate the similarity of the generated samples, that is, to evaluate the generation ability of the model generator. The specific method is to first qualitatively compare the frequency spectrum of the generated samples with the real samples, and then quantitatively measure their similarity by calculating the Pearson correlation coefficient (PCC) and cosine similarity (CS) between the generated samples and the real samples; the second is to evaluate the impact of the generated samples on fault diagnosis in the case of small samples through sample expansion, that is, to evaluate the classification and recognition ability of the model discriminator. Use the trained generator to generate data samples. If the generator can generate sufficiently realistic generated samples, then further use these generated samples to continuously train the discriminator so that the discriminator D k Learn the hidden distribution in the current sample.

[0060] S6: Perform adversarial training on the data in each health state in the dataset. First, mark the data samples except the k-th health state as negative samples and label them as class 0; correspondingly, mark the data samples in the k-th health state as positive samples and label them as class 1. Second, input the labeled data as real samples into the discriminator for adversarial training until the model loss function converges to the minimum value, thereby obtaining the generator and discriminator of the k-th class samples. Third, perform the above training on each class of samples in turn to obtain n trained ACWGAN-GP-ARGMAX models. From these, n discriminators D i Fourth, D i Perform model fusion, and combine n D i The probability values ​​of the output results are combined into an n-dimensional vector and connected to the Softmax activation layer for activation, so that each value output by the output layer corresponds to the probability that the test sample belongs to each health state.

[0061] At this point, the complete fault diagnosis process is completed.

[0062] 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. It should be understood that the specific implementation methods and embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0063] Example:

[0064] Figure 2 FIG. 1 is a flowchart of an implementation example of a method for diagnosing small sample faults of rotating machinery based on a generative adversarial network according to the present invention. Figure 2 As shown, the specific steps of the rotating machinery small sample fault diagnosis method based on the generative adversarial network of the present invention include:

[0065] S1: Use vibration acceleration sensor to collect vibration signals of rotating machinery.

[0066] S2: Perform data preprocessing on the collected rotating machinery vibration signals to construct an original data set, and divide the original data set into a training set and a test set.

[0067] S3: Build a network model based on ACWGAN-GP-ARGMAX.

[0068] S4: Train the network model based on ACWGAN-GP-ARGMAX, and fuse the trained network models under each health state to build a diagnostic model.

[0069] S5: Input the test set into the diagnosis model for diagnostic testing.

[0070] Figure 3 : is the ACWGAN-GP-ARGMAX network model structure diagram of the present invention. Figure 3 As shown in the figure, the ACWGAN-GP-ARGMAX network model contains the following modules: generator module, discriminator module, data input module and diagnosis module.

[0071] The present invention and its effects are specifically described below by means of an example.

[0072] The experimental data for this example comes from the gearbox dataset provided by the 2009 IEEE PHM Challenge, which is representative of general industrial gearbox data. Figure 3 As shown. The data set contains a total of 8 time domain vibration signals in different health states. All data in the data set are collected from the input shaft end under high load conditions. The shaft speed is 30Hz, the sampling frequency is 66.7kHz, and the sampling time is 4s. On the premise of ensuring that the information contained in the gearbox diagnostic signal is not lost, 400 samples of each type of health status data are selected. The sample length is 8192. Because each sample is a time domain signal, after FFT transformation, each type of data sample becomes a spectrum vector with a sample length of 4096. The details of the samples used are shown in Table 1, and their time domain waveforms are shown as follows. Figure 4 shown.

[0073] Table 1 Detailed description of the gearbox data set operation mode

[0074]

[0075] IS: Input Shaft; ID: Idler Shaft; OS: Output Slide.

[0076] G: Good; C: Chipped; E: Eccentric; Br: Broken; B: Ball; I: Inner race; O: Outerrace; Im: Imbalance; K: Keyway sheared.

[0077] Take 200 samples from each health state in the data set as training sets and for testing. Take some samples from the training set as training subsets, and the ratio of the number of samples in the training subset to the number of samples in the test set is called the sample ratio. In the experiment, the samples were divided according to 1:20, 1:10, 1:5, 1:4, 1:2, and 1:1, respectively. Table 2 shows the number of each type of training samples in each sample ratio. During the adversarial training process, the size of the minibatch is set to 8 when the sample ratio is 1:20, and the size of the minibatch is set to 16 in all other cases. During each round of adversarial training, the ratio of the number of updates of the discriminator and the generator is set to 5:1, that is, the generator is updated once for every 5 updates of the discriminator. The learning rate is set to 0.0001, and the number of training iterations is 10000; for the discriminator learning the kth health state For example, all training samples under the kth health state are selected as positive samples, and the label category is 1. Some samples are selected from the training samples of the remaining 7 health states as negative samples, and the label category is 0. At this time, the number of positive samples and negative samples should remain roughly equal.

[0078] Table 2 The number of training samples in each health state under different sample ratio conditions

[0079]

[0080]

[0081] After the network model is pre-trained, each generator model is used to generate 200 new samples for each health state. In order to evaluate the new samples, first, the spectrum of the real samples and the generated samples are visualized in the same figure, such as Figure 5 As shown; secondly, the generated samples are evaluated by the values ​​of similarity indicators PCC and CS. The values ​​of similarity indicators PCC and CS are shown in Table 3.

[0082] Table 3 PCC and CS between generated data and original data in each health state

[0083]

[0084] from Figure 5As can be seen from the above, the generated samples of each health state have a high overlap with the real samples; As shown in Table 3, the PCC and CS of all health state samples are higher than 0.5, indicating that the generated samples are highly similar to the real samples. In summary, the adversarially trained generator can accurately learn the data distribution implicit in the real samples and generate samples that are highly similar to the real samples.

[0085] In order to test the performance of the fault diagnosis method based on ACWGAN-GP-ARGMAX proposed in this invention, a comparative experiment based on the ACWGAN-GP diagnosis model was arranged. For each sample ratio, 10 independent experiments were conducted. The experimental results are shown in the figure. Figure 6 , Figure 7 As shown in Figure 1, data1 represents the ACWGAN-GP diagnostic model, and data2 represents the ACWGAN-GP-ARGMAX diagnostic model. Figure 6 It can be seen that the ACWGAN-GP-ARGMAX diagnostic model has significantly improved diagnostic accuracy and stability compared with the ACWGAN-GP diagnostic model. Figure 7 It can be seen that with the increase in the proportion of training samples, the diagnostic accuracy of the ACWGAN-GP-ARGMAX diagnostic model and the ACWGAN-GP diagnostic model has been significantly improved, but the ACWGAN-GP-ARGMAX diagnostic model has a better diagnostic effect. In order to more intuitively explain the diagnostic results of the ACWGAN-GP-ARGMAX diagnostic model, the diagnostic process of each sample ratio is taken as an example and visualized using the confusion matrix, as shown in the figure below: Figure 8 As shown. Figure 8 It can be seen that when the sample ratio is 1:20, some data of Class 2, 4, 6, and 8 are misclassified. As the sample ratio gradually increases, the sample diagnosis accuracy also gradually increases. When the sample ratio reaches 1:1, only a very small number of samples are misclassified.

[0086] In order to prove the superiority of the method of the present invention, we use several common methods to compare with ACWGAN-GP-ARGMAX in solving the problem of small sample size of fault diagnosis. Common methods include: CNN, DNN, SVM, SAE, GAN. By training and testing each method under the same conditions, the fault diagnosis accuracy of all the above methods is obtained, as shown in Fig. 9 shown.

[0087] from Fig. 9 It can be seen that the fault accuracy of all methods increases with the increase of sample proportion, indicating that these methods are effective in fault diagnosis. Fig. 9It can also be clearly seen that the method proposed in the present invention has a higher fault diagnosis accuracy and better effect in the case of small samples than other methods.

[0088] In summary, the method for small sample fault diagnosis of rotating machinery based on generative adversarial network described in the present invention combines the generative adversarial network with the "argmax" multi-classification idea to construct a diagnostic model based on ACWGAN-GP-ARGMAX, which can effectively improve the accuracy of small sample fault diagnosis of rotating machinery.

[0089] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the scope of protection of the present invention.

Claims

1. A method for small sample fault diagnosis of rotating machinery based on generative adversarial network, characterized in that: The following steps are involved: S1: Collect vibration signals of rotating machinery; S2: preprocess the rotating machinery vibration signal and divide it into a training set and a test set; S3: Establish ACWGAN-GP-ARGMAX network model; S4: training the ACWGAN-GP-ARGMAX network model; S5: performing adversarial training on the data in each health state in the training set, and fusing the trained network models into a diagnostic model; S6: inputting the test set into the diagnostic model to perform diagnostic testing, and outputting a diagnostic result; The ACWGAN-GP-ARGMAX network model in step S3 includes a generator and a discriminator; The generator is a network model structure including 5 deconvolution layers, and the input data is a 4096-dimensional random noise that obeys a normal distribution; in the generator, the random noise is first input into a fully connected layer consisting of 4096 neurons, and then passes through the 5 deconvolution layers in sequence; wherein, the number of filters in the first four deconvolution layers is 256, 128, 64, and 32, respectively, and the last deconvolution layer has only one filter; the size of the convolution kernel of the first deconvolution layer is 4×4 and the step size is 1, and the size of the convolution kernel of the last four deconvolution layers is 3×3 and the step size is 2; after the five deconvolution layers, the input data is converted into a 64×64 two-dimensional matrix; The discriminator is a network model structure including 5 convolutional layers, and the input data is a 64×64 two-dimensional matrix obtained by shaping the 64×64 two-dimensional matrix generated by the generator and the real data; in the discriminator, the number of filters in the first four convolutional layers is 32, 64, 128, and 256, respectively, and the last convolutional layer has only one filter; the size of the convolution kernel of the first four convolutional layers is 3×3 and the step size is 2, and the size of the convolution kernel of the last convolutional layer is 4×4 and the step size is 1; after the five convolutional layers, the input data is converted into a label value; The specific implementation of step S4 includes selecting Gaussian distribution as the noise distribution P noise , and assign corresponding category labels, from which a subset of size n is sampled, denoted as Subset the random noise with category labels Input to the generator G corresponding to the health state k k , forward propagation to generate a subset of samples From the real data training set P of health state k k~data The data is sampled as positive samples, denoted as Then, from the real data training set P outside the health state k (C≠k)~data The data is sampled as negative samples, denoted as Depend on and The real samples under the health state k are composed by generating samples Combination, forming a training set subset {X k }; Set the discriminator D k With the generator G k The ratio of training times is m. First, the training set subset {X k } and the Adam algorithm for the discriminator D k Perform m trainings; then use the random noise subset with category labels And the Adam algorithm for the generator G k Perform one training session; select the cross entropy loss function as the objective function, which is defined as follows: Where x represents the real sample, Indicates the generated sample, is obtained by adding x and Random samples obtained by linear interpolation, λ is the gradient penalty factor, represents the expectation of the real data distribution, represents the expectation of generating data distribution, represents the gradient penalty term, P(C=c|X real ) represents the conditional probability distribution of the real data on the class label, represents the conditional probability distribution of generated data on the class label, According to the above ratio m of the number of training times per round, the discriminator D k With the generator G k Perform iterative training until the discriminator D k With the generator G k A Nash equilibrium is reached between them.

2. A method for small sample fault diagnosis of rotating machinery based on generative adversarial network as claimed in claim 1, characterized in that: The specific implementation of step S1 includes arranging a vibration acceleration sensor on the rotating machinery, using the vibration acceleration sensor to collect one-dimensional time series vibration acceleration data of the rotating machinery under various health states to form an original data set, and the original data set includes 1 normal state and N-1 fault states.

3. A method for small sample fault diagnosis of rotating machinery based on generative adversarial network as claimed in claim 1, characterized in that: The specific implementation of step S2 includes extracting features of vibration signals under various health conditions in the original data set by fast Fourier transform and standard normalization, and constructing a new data set from the processed data; The standard normalization method is: X = (xx min ) / (x max -x min ), where x max is the maximum value of the data sample, x min is the minimum value of the data sample; According to the algorithm requirements, the new data set is divided into two parts: a training set and a test set. The training set is represented as Where k represents the kth health state, is the i-th training sample in this health state.

4. A method for small sample fault diagnosis of rotating machinery based on generative adversarial network as claimed in claim 1, characterized in that: The specific implementation of step S5 includes: First, the data samples except for the k-th health state are marked as negative samples and labeled as class 0; correspondingly, the data samples in the k-th health state are marked as positive samples and labeled as class 1; Second, the labeled data is input into the discriminator D as a real sample. k Conduct adversarial training until the model loss function converges to the minimum value, thereby obtaining the generator and discriminator of the k-th class sample; Third, perform the above training on each type of samples in turn to obtain n trained ACWGAN-GP-ARGMAX models; from these, separate n discriminators as trained diagnostic models; Fourth, the n discriminators are fused into a model, the probability values ​​of the output results are combined into an n-dimensional vector, and connected to the Softmax activation layer for activation, so that each value output by the output layer corresponds to the probability that the test sample belongs to each health state.

5. The method for small sample fault diagnosis of rotating machinery based on generative adversarial network according to claim 1, characterized in that: The step S500 is also included between step S4 and step S5: performing a quality assessment on the network model trained in step S4, and if the network model fails the assessment, repeating step S4.

6. A method for small sample fault diagnosis of rotating machinery based on generative adversarial network as claimed in claim 5, characterized in that: The quality assessment in step S500 includes: First, evaluate the generator G k The specific method is to first qualitatively compare the spectra of the generated samples with the real samples, and then quantitatively measure their similarity by calculating the Pearson correlation coefficient (PCC) and cosine similarity (CS) between the generated samples and the real samples; Second, evaluate the discriminator D k The classification and recognition ability of the trained discriminator D k Generate data samples, if the discriminator D k If it is able to generate sufficiently realistic generated samples, then these generated samples are further used to continuously train the discriminator D k Train so that the discriminator D k Learn the hidden distribution in the current sample.

Citation Information

Patent Citations

  • Failure recognition method and system based on neural network self-learning

    CN103914735A

  • Vehicle type recognition method based on CNN and domain adaptive learning

    CN107527068A