A rolling bearing fault diagnosis method based on small samples and GAF-DCGAN
GAF-DCGAN converts one-dimensional time series data into two-dimensional images, and uses convolutional neural networks to extract features, which solves the problems of small samples and noise, improves the accuracy and speed of rolling bearing fault diagnosis, and achieves more efficient fault identification.
Patent Information
- Application Number
- CN202111517698.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-12-13
AI Technical Summary
It is difficult for the existing technology to effectively handle the problem of small sample data and mixed noise in rolling bearing fault diagnosis, resulting in low diagnosis accuracy and insufficient use of the image feature extraction capabilities of convolutional neural networks.
A method based on GAF-DCGAN is used to convert one-dimensional time series vibration data into two-dimensional images. It is trained through a convolutional neural network model composed of a generator and a discriminator to generate images with high similarity, and the model is judged through a comprehensive distance formula. Training completion and Nash equilibrium are converted into fault diagnosis models.
It improves the accuracy of fault diagnosis and model training speed, ensures the quality of generated image data, and thereby improves the accuracy of fault diagnosis.
Smart Images

Figure CN114266339B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of bearing fault diagnosis, and in particular relates to a rolling bearing fault diagnosis method for industrial field equipment based on small samples and GAF-DCGAN. Background Art
[0002] Rolling bearings are one of the core components of industrial equipment and the main cause of system failures. According to statistics, 45% to 55% of equipment failures are caused by bearing damage, so whether or not the failure affects the normal operation, performance, efficiency and even safety of the entire industrial equipment system. In order to ensure the safety of industrial equipment operation, it is extremely important to conduct effective fault diagnosis of rolling bearings. At present, most of the fault diagnosis of rolling bearings is to analyze and study its one-dimensional vibration signal, and with the rapid development of deep learning, the intelligent fault diagnosis algorithm using deep learning has been widely used in the field of rolling bearing fault diagnosis. Although these methods have achieved good results, the basis of most research is based on sufficient fault data. In the actual production process of industrial equipment, there are two problems with the collected fault data. The first is that the probability of equipment failure is very small, and the fault data is far from enough, that is, the fault data belongs to small sample data, so the research on fault diagnosis methods for small sample data is more in line with practical applications; the second is that the collected data has a variety of noise types, so the research on wavelet denoising of rolling bearing fault data is particularly important.
[0003] In the prior art, one-dimensional time series data is converted into two-dimensional images through GAF and input into the convolutional neural network (CNN) model to achieve fault diagnosis. However, this method is only used for the western storage data, and the problem of noise and small number of samples in the actual fault data set is not fully considered. In addition, the singular spectrum analysis is performed on the vibration signal of the noisy fault bearing to obtain the reconstructed vibration signal, and the reconstructed vibration signal is input into the WDCNN fault diagnosis model for fault diagnosis. However, the advantages of CNN in image feature extraction are not fully utilized, and the fault diagnosis accuracy cannot be improved well. In addition, Xu Lin, Zheng Xiaotong, Fu Bo, Tian Ge. Motor bearing fault diagnosis method based on improved GAN algorithm [J]. Journal of Northeastern University (Natural Science Edition), 2019, 40(12): 1679-1684. A bearing fault diagnosis method based on improved GAN algorithm is proposed. This method combines the ability of continuous wavelet transform to process unbalanced data signals and the ability of generative adversarial network to process and recognize images. At the same time, a conditional model is added on the basis of generative adversarial network and the loss function is optimized, achieving a relatively satisfactory diagnosis result. However, there are still some defects in the diagnosis process. The two-dimensional image converted by continuous wavelet transform processing vibration signal is a grayscale image, which contains incomplete feature information, thus affecting the accuracy of rolling bearing fault diagnosis. Summary of the invention
[0004] The purpose of the present invention is to provide a rolling bearing fault diagnosis method based on small samples and GAF-DCGAN. In the actual production process of industrial equipment, when rolling bearing fault data is lacking, how to diagnose bearing faults more accurately in a small sample environment.
[0005] The technical solution to achieve the purpose of the present invention is:
[0006] A rolling bearing fault diagnosis method based on GAF-DCGAN is used to determine whether the bearing is faulty and the type of fault by analyzing the bearing vibration signal collected on site, including the following steps:
[0007] Step 1, processing the collected bearing data set: collecting bearing vibration data to form a sample data set including a fault data set and a normal data set;
[0008] Step 2, denoising the bearing sample data set to obtain a denoised one-dimensional bearing data set;
[0009] Step 3, converting the denoised one-dimensional bearing data set into a two-dimensional fault image set;
[0010] Step 4. Establish a DCGAN bearing data generation model: Use a two-dimensional fault image set to train the pre-built DCGAN model to obtain a bearing data generation model; the generator and discriminator in the DCGAN structure are both composed of convolutional neural networks. The discriminator structure is composed of the input layer, the first convolution layer, batch normalization, the second convolution layer, batch normalization, the third convolution layer, batch normalization, the fourth convolution layer, batch normalization, global pooling layer, Flatten layer, Dense layer, and output layer; the generator is mainly composed of the input layer, shape change layer, the first transposed convolution layer, the second transposed convolution layer, the third transposed convolution layer, the fourth transposed convolution layer, and the output layer;
[0011] Step 5: Initialize the parameters of the DCGAN fault data generation model, train the DCGAN bearing data generation model through a two-dimensional fault image set, and calculate an evaluation value for each training image. The evaluation value represents the comprehensive distance between the generated image and the original image. The evaluation standard for training completion is that the evaluation value reaches the set threshold, and finally a trained DCGAN fault data generation model is obtained;
[0012] Step 6: Determine whether the evaluation value is greater than the set threshold. If it is greater than the set threshold, add a SoftMax layer after the output layer of the discriminator of the trained DCGAN fault data generation model, so that the model has classification ability, and the DCGAN fault data generation model is converted into a DCGAN fault diagnosis model; if it is less than the threshold, go to step 5;
[0013] Step 7: Mix the generated image that meets the evaluation value in step 6 with the original image dataset to form an expanded sample dataset. Use the sample dataset as the input of the DCGAN fault diagnosis model to train the model. Determine whether the model training is complete by calculating whether the loss value converges, and finally obtain a trained bearing fault diagnosis model.
[0014] Compared with the prior art, the present invention has the following significant advantages:
[0015] (1) The present invention converts one-dimensional time series fault vibration data into two-dimensional images through the GAN angle field. Since the generator and discriminator in the GAN model both contain convolutional layers, and a major advantage of the convolutional layer is the extraction of image features, compared with one-dimensional time series signals, two-dimensional images allow the model to extract more complete features, thereby learning more feature information and generating images with higher similarity, which well solves the problem of lack of fault data in the actual production process of industrial equipment, and ultimately achieves the purpose of improving the accuracy of fault diagnosis.
[0016] (2) The present invention proposes a formula for calculating the comprehensive distance between the generated image and the real image. The value calculated by this formula can well determine whether the data generation network model has been trained, and also provide a reference for when the model starts to train the fault diagnosis model. Finally, it can also determine whether the GAN has reached Nash equilibrium based on whether the comprehensive distance tends to a constant value. This value plays a connecting role in the GAF-DCGAN fault diagnosis model proposed in the present invention, and also plays a role in separating data generation and fault diagnosis. In this way, a reasonable division of labor is carried out. Fault diagnosis can only be performed after the generated image data is qualified. This not only greatly improves the speed of model training, but also improves the accuracy of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Flowchart of the processing method.
[0018] Figure 2 Algorithm framework diagram.
[0019] Figure 3 Comparison diagram of fault data before and after wavelet denoising.
[0020] Figure 4 For X f,r Value judgment logic diagram.
[0021] Figure 5 This is an example of a two-dimensional fault image.
[0022] Figure 6 Generate a network model hierarchy diagram for GAF-DCGAN data.
[0023] Figure 7 This is the hierarchical diagram of the fault diagnosis network model of GAF-DCGAN.
[0024] Figure 8 This is the loss value curve and accuracy curve of the fault diagnosis model. DETAILED DESCRIPTION
[0025] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0026] Combination Figure 1 and Figure 2 , a rolling bearing fault diagnosis method based on small samples and GAF-DCGAN in this embodiment has the following steps:
[0027] Step 1: Process the collected bearing data set. The test object of this embodiment is the cylindrical roller bearing at the motor drive end, model TMB-N209M. The diagnosed bearing has three fault locations: outer ring fault, rolling element fault, and inner ring fault. Each fault location contains three fault levels: early fault, minor fault, and major fault. There are a total of 9 fault types, which can be distinguished according to the damage diameter. Finally, the collected data is sorted to form a bearing data set, which includes a fault data set and a normal data set.
[0028] For undamaged rolling bearings and each type of damaged rolling bearings, sensors are deployed on the rolling bearings to collect vibration signals of each type of rolling bearing under load, forming a sample data set with fault type labels. The sampling frequency of the system is 10kHz. Because the characteristic frequencies of the inner ring, outer ring and rolling element of the rolling bearing are calculated by different formulas, the specific calculation formulas are as follows:
[0029] Table 1 Fault frequency calculation formula for each location
[0030]
[0031] Among them, f r is the relative rotation frequency of the inner and outer rings, and Z is the number of balls.
[0032] Because the characteristic frequency of the fault can be analyzed in the vibration signal, the fault type can be determined by comparing the analyzed value with the value calculated by the above formula. Therefore, the present invention collects the bearing vibration signal. Because the sample data set of this step is collected from the industrial site and contains noise, it is necessary to perform noise reduction on the sample set, that is, step 2.
[0033] Step 2: Use the wavelet threshold denoising method to denoise the bearing sample data set collected in step 1. Wavelet is a function that has both volatility and compact support. The basic idea of wavelet denoising is to decompose the obtained noisy signal through a suitable base wavelet, then set a suitable threshold to process the high-frequency wavelet coefficients, and finally reconstruct the original signal based on the wavelet coefficients obtained by wavelet denoising. The specific steps are as follows:
[0034] (1) Select the wavelet basis function and the number of wavelet decomposition layers. The present invention adopts the Daubechies basis wavelet function. The number of decomposition layers is selected as 3 layers.
[0035] (2) Selecting a threshold function and a threshold. Commonly used thresholds in practice include hard thresholds and soft thresholds. The present invention uses a threshold to select a general threshold, and a soft threshold function is selected as the threshold function. The specific mathematical model is as follows:
[0036]
[0037] in, is the threshold, σ is the noise mean square error, N is the length of the noisy signal sequence, γ is the wavelet coefficient, and T h (γ,t) are both expressed as threshold functions.
[0038] The time domain curve comparison between the denoised signal and the original signal is as follows: Figure 3 shown.
[0039] Step 3: Use the Grami Angular Field (GAF) to convert the one-dimensional time series vibration data into a two-dimensional image. Because the fault data collected in step 1 is one-dimensional time series vibration data, it conforms to the conversion principle of GAF. The specific steps of GAF implementation principle are as follows: First, perform numerical scaling, that is, scale the time series data to [-1,1], which is achieved through the following formula:
[0040]
[0041] in, is the one-dimensional time series signal after numerical scaling at the i-th moment, x i is the signal value at the i-th moment in the one-dimensional time series signal, max(X) is the maximum value in the one-dimensional time series signal, and min(X) is the minimum value in the one-dimensional time series signal.
[0042] Then, we use the coordinate transformation formula to encode the timestamp as radius and represent the rescaled time series in polar coordinates. The formula is as follows:
[0043]
[0044] Among them, t i is the timestamp, N is the constant factor for adjusting the span of the polar coordinate system, φ is the polar coordinate angle, is the one-dimensional time series signal after numerical scaling at the i-th moment, r is the polar coordinate radius, is the rescaled time series.
[0045] This is a method of representing time series based on polar coordinates. As time increases, the corresponding values twist between different angular points on the span circle. The encoding mapping of the above formula has two important properties. The first property: it is bijective, because when φ∈[0,π], cos(φ) is a monotonic function, that is, given a time series, the mapping produces a unique result in polar coordinates and has a unique inverse mapping; the second property: contrary to Cartesian coordinates, the polar coordinate system maintains absolute time relations. After converting the rescaled time series to the polar coordinate system, we can use angular perspective by considering the trigonometric sum / difference between each point to identify time correlations within different time intervals. The Gramian Sum Angular Field (GASF) is defined as follows:
[0046]
[0047] in, is the timing signal for numerical scaling, for The transpose of , I is the unit vector, φ i ,φ j are the angles corresponding to two time points respectively.
[0048] The present invention uses a fault two-dimensional image dataset generated by GASF. Each type of fault image is divided into a training sample set, a verification sample set, and a test sample set. The training sample set x train , validation sample set x valid And the test sample set x test The division ratio is 7:2:1.
[0049] Step 4: Establish a DCGAN bearing data generation model: Use a two-dimensional fault image set to train the pre-built DCGAN model to obtain a bearing data generation model for generating two-dimensional fault images. The generator and discriminator in the DCGAN structure are both composed of convolutional neural networks. The discriminator structure is composed of an input layer, a first convolution layer, batch standardization, a second convolution layer, batch standardization, a third convolution layer, batch standardization, a fourth convolution layer, batch standardization, a global pooling layer, a Flatten layer, a Dense layer, and an output layer; the generator is mainly composed of an input layer, a shape change layer, a first transposed convolution layer, a second transposed convolution layer, a third transposed convolution layer, a fourth transposed convolution layer, and an output layer. The input of the model of the present invention is divided into two parts. The first is that the input of the generator is random noise that conforms to a Gaussian distribution, and the second is that the input of the discriminator is the two-dimensional image data set in step 3. The output of the model is a two-dimensional image containing fault features.
[0050] Step 5: Initialize the parameters of the DCGAN fault data generation model, set the number of samples for a single training Batch_size, the maximum number of iterative samples MaxEpoch, and the maximum number of iterative steps MaxStep. It is also necessary to set the training relationship between the generator and the discriminator: TrainStep=2, which means that when the generator is trained once, the discriminator will be trained twice. The DCGAN bearing data generation model is trained using a two-dimensional fault image set, and an evaluation value is calculated for each image obtained during training. The evaluation value represents the comprehensive distance between the generated image and the original image. The evaluation criterion for the completion of the training is that the evaluation value reaches the set threshold, and finally a trained DCGAN fault data generation model is obtained;
[0051] 5.1 Comprehensive distance calculation formula
[0052] If you want to determine whether the generated image can be used for fault diagnosis, you need to determine its similarity with the original image, that is, you need to calculate the structural similarity (SSIM), peak signal-to-noise ratio (PSNR) and FrechetInception distance (FID value) of the generated image and the original image for numerical judgment. The value of SSIM is [0, 1]. The larger the SSIM value, the more similar the two images are; the larger the PSNR value, the more diverse the generated image is; the FID value is the opposite. The smaller the FID value, the better the quality of the model, and the stronger its ability to output diverse and high-quality images. Combining the above three judgment criteria, the present invention designs a value X that can be comprehensively evaluated. f,r , X f,r The larger it is, the more similar the generated image is to the original image. The calculation formula is as follows:
[0053] X f,r =αX ssim +βX psnr -γX fid +δ
[0054] Among them, X f,r is the comprehensive distance between the real image and the generated image, X ssim is the structural similarity between the real image and the generated image, X psnr is the peak signal-to-noise ratio, X fid is the Frechet Inception distance, α, β, γ are all constants greater than 0, which are used to adjust the proportions of the three factors, and δ is other factors that affect the comprehensive distance (such as Mode score, Inception score, etc.).
[0055] 5.2 Frechet Inception Distance (FID)
[0056] In order to overcome the defects of the IS method, the formula for calculating the FID score is as follows (4-23):
[0057]
[0058] Where μ is the mean of the multivariate normal distribution, Σ is the covariance, r and g subscripts represent the real image and the generated image respectively, T r Represents the sum of the elements on the diagonal of the matrix, or the "trace".
[0059] The lower the FID score, the better the quality of the model and the greater its ability to output diverse, high-quality images.
[0060] 5.3 Structural Similarity (SSIM)
[0061] Structural similarity is an indicator to measure the similarity between two images, and can be used to judge the difference between the images generated by the GAN network and the real images. The value range of SSIM is [0,1]. The larger the SSIM value, the more similar the two images are. The calculation formula of SSIM is as follows:
[0062]
[0063] Among them, μ x ,μ y is the pixel value of the image, δ x ,δ y is the standard deviation of the image pixel values, δ xy is the covariance between point x and point y, and C1, C2, and C3 are constants.
[0064] 5.4 Peak Signal-to-Noise Ratio (PSNR)
[0065] The peak signal-to-noise ratio (PSNR) calculation formula is as follows (4-29):
[0066]
[0067] Where MSE is the mean square error of the image, MAX I It represents the maximum value of the pixel color. The larger the PSNR, the more diverse the generated image is.
[0068] Step 6: Determine the X calculated in step 5 f,r Is the value greater than the set threshold? If it is greater than the set threshold, and X f,r If the model tends to a constant value, that is, reaches Nash equilibrium, a Softmax layer is added after the discriminator output layer of the trained DCGAN data generation model, so that the model has classification ability, and the DCGAN fault data generation model is converted into a DCGAN fault diagnosis model. The specific logic is as follows Figure 4 If it is less than the threshold, go to step 5.
[0069] 6.1 Nash equilibrium
[0070] Nash equilibrium comes from the zero-sum game problem in game theory, that is, the gain of one party is equal to the loss of the other party. Zero-sum games have a Nash equilibrium point, that is, no matter how hard either party tries, they cannot improve their results. GAN reaches Nash equilibrium when the following two conditions are met:
[0071] (1) The pseudo-fault images generated by the generator are consistent with the real images in the training set;
[0072] (2) The discriminator can only randomly guess whether a specific sample is true or false, that is, the probability of true and false is 50%.
[0073] Step 7: Replace the X in step 6 f,r The generated image of the value is mixed with the original image data set to form an expanded data set, and the sample data set is used as the input of the DCGAN fault diagnosis model. The model is trained and the training of the model is judged by whether the loss value converges. After the training is completed, the model takes the bearing fault data as input and outputs the diagnosis results of the fault type and fault location. The calculation method of the loss value is as follows.
[0074] 8.1 Loss Function
[0075] In the process of fault classification, the purpose of the discriminator's loss function is to reduce the gap between the real sample and the predicted sample. The formula of the loss function is as follows:
[0076]
[0077] in, is the expected value of the original sample, Softmax() represents the softmax function, D(x) represents the discriminator network, λ‖W‖ 2 It represents L2 regularization, and the parameters act on all the weights of the discriminator.
[0078] The function of the generator's loss function is to measure the distance between the generated image generated by the generator and the real image. The corresponding loss function formula is as follows:
[0079]
[0080] in, represents the expected value of the input random Gaussian noise, and G(z) represents the generator network.
[0081] 8.2 Error Function of Generative Adversarial Networks
[0082] From the principle of GAN, it can be concluded that the generator and discriminator models are in conflict with each other. L(G,D) represents the damage function, in which the discriminator model tries to minimize the error and the generator model tries to maximize the error. The final error function formula is as follows:
[0083]
[0084] Example 1
[0085] A rolling bearing fault diagnosis method based on small samples and GAF-DCGAN of the present invention is experimentally verified.
[0086] Step 1: The test object of this test is the cylindrical roller bearing at the drive end of the motor, model TMB-N209M. The diagnosed bearing has three fault locations: outer ring fault, rolling element fault, and inner ring fault. Each fault location contains three fault levels: early fault (damage diameter is 0.42 inches), minor fault (damage diameter is 0.70 inches), and severe fault (damage diameter is 0.98 inches). There are a total of 9 fault types. Finally, the collected data is sorted to form a bearing data set, which includes a fault data set and a normal data set. The details are shown in Table 2 below.
[0087] Table 2 Fault location table
[0088]
[0089] Step 2: Use the wavelet denoising method to denoise the bearing sample data set in step 1. The first step is to use the selected Daubechies basis wavelet function and 3-layer decomposition scale to perform wavelet decomposition on the signal; the second step is to select the general threshold and soft threshold function; finally, reconstruct the original data based on the wavelet coefficients obtained by wavelet denoising. The specific processing results are as follows: Figure 3 shown.
[0090] Step 3: Using the Grami angle field, the one-dimensional bearing data set processed in step 2 is converted into polar coordinate representation, thereby obtaining a 64x64-sized two-dimensional fault image set. Each type of fault in the image set is divided into a training sample set, a validation sample set, and a test sample set in a ratio of 7:2:1, as shown in Table 3. Figure 5 shown.
[0091] Table 3: Partition table of sample sets
[0092]
[0093] Step 4: Establish a DCGAN bearing data generation model. The layer structure of the DCGAN bearing data generation model is as follows: Figure 6 shown.
[0094] Step 5: Initialize the parameters of the DCGAN data generation model. Set the number of samples per time to Batch_size = 128, the maximum number of iterations MaxEpoch = 10, the maximum number of iteration steps MaxStep = 100, and the threshold value X = 23 for the comprehensive distance between the generated image and the original image. It is also necessary to set the training relationship between the generator and the discriminator TrainStep = 2, which means that when the generator is trained once, the discriminator will be trained twice. Each iteration calculates the X of the generated image. f,r Finally, the trained DCGAN fault data generation model is obtained.
[0095] Step 6: Determine X f,r Is the value greater than the set threshold X. If it is greater than the set threshold, a Softmax layer is added after the discriminator output layer of the trained DCGAN data generation model, so that the model has classification ability, thereby converting the DCGAN data generation network model into a fault diagnosis model; if it is less than the set value, go to step 5.
[0096] Step 7: Establish a DCGAN bearing fault diagnosis model. The layer structure of the DCGAN bearing fault diagnosis model is as follows: Figure 7 As shown. Replace the X f,r The generated image of the value is mixed with the original image dataset to form an expanded dataset as the input of the DCGAN fault diagnosis model. The division criteria of the expanded sample set are shown in Table 4. The DCGAN fault diagnosis model is trained.
[0097] Table 4: Partition table of expanded sample set
[0098]
[0099] Because the discriminator is used to diagnose faults, the loss function of the discriminator is used to calculate the loss value. Then determine whether the model has converged. If it has converged, the DCGAN fault diagnosis model training is completed; if the model does not converge, continue training. For the trained DCGAN fault diagnosis model, import the test sample set for testing, and obtain the output of the fully connected layer as the diagnostic basis for fault diagnosis. Its loss value curve represents the speed at which the model converges during the model iteration process of the test set. The loss value curve is as follows Figure 8 (a) shows. The fault diagnosis model analysis shows that with the input of the expanded sample set, the model's diagnostic accuracy can eventually reach 99.6%. The accuracy curve is as follows Figure 8 (b) as shown.
Claims
1. A rolling bearing fault diagnosis method based on GAF-DCGAN is used to determine whether the bearing is faulty and the type of fault by analyzing the bearing vibration signal collected on site, characterized in that: The steps include: Step 1, processing the collected bearing data set: collecting bearing vibration data to form a sample data set including a fault data set and a normal data set; Step 2, denoising the bearing sample data set to obtain a denoised one-dimensional bearing data set; Step 3, converting the denoised one-dimensional bearing data set into a two-dimensional fault image set; Step 4: Establish a DCGAN bearing data generation model: Use a two-dimensional fault image set to train the pre-built DCGAN model to obtain a bearing data generation model; the generator and the discriminator in the DCGAN structure are both composed of convolutional neural networks; The discriminator structure consists of the input layer, the first convolution layer, batch normalization, the second convolution layer, batch normalization, the third convolution layer, batch normalization, the fourth convolution layer, batch normalization, global pooling layer, Flatten layer, Dense layer, and output layer; the generator consists of the input layer, shape change layer, the first transposed convolution layer, the second transposed convolution layer, the third transposed convolution layer, the fourth transposed convolution layer, and the output layer; Step 5: Initialize the parameters of the DCGAN fault data generation model, train the DCGAN bearing data generation model through a two-dimensional fault image set, and calculate an evaluation value for each training image. The evaluation value represents the comprehensive distance between the generated image and the original image. The evaluation standard for training completion is that the evaluation value reaches the set threshold, and finally a trained DCGAN fault data generation model is obtained; Step 6: Determine whether the evaluation value is greater than the set threshold. If it is greater than the set threshold, add a SoftMax layer after the output layer of the discriminator of the trained DCGAN fault data generation model, so that the model has classification ability, and the DCGAN fault data generation model is converted into a DCGAN fault diagnosis model; if it is less than the threshold, go to step 5; Step 7: Mix the generated image that meets the evaluation value in step 6 with the original image dataset to form an expanded sample dataset. Use the sample dataset as the input of the DCGAN fault diagnosis model to train the model. Determine whether the model training is complete by calculating whether the loss value converges, and finally obtain a trained bearing fault diagnosis model.
2. The rolling bearing fault diagnosis method based on GAF-DCGAN according to claim 1 is characterized in that: The specific calculation formula of the evaluation value in step 5 is as follows: X f,r =αX ssim +βX psnr -γX fid +d Among them, X f,r is the comprehensive distance between the original image and the generated image, X ssim is the structural similarity between the original image and the generated image, X psnr is the peak signal-to-noise ratio, X fid is the Frechet Inception distance, α, β, γ are all constants greater than 0, and δ is a constant.
3. The rolling bearing fault diagnosis method based on GAF-DCGAN according to claim 1 is characterized in that: The specific process of judging whether the DCGAN fault data generation model is complete in step 5 is as follows: When the evaluation value reaches the set threshold and approaches a constant value, the DCGAN network model reaches Nash equilibrium, further confirming that the model training is completed.
4. The rolling bearing fault diagnosis method based on GAF-DCGAN according to claim 3 is characterized in that: The Nash equilibrium satisfies the following conditions: (1) The pseudo-fault images generated by the generator are consistent with the real images in the training set; (2) The discriminator can only randomly guess whether a specific sample is true or false, that is, the probability of true and false is 50%.
5. The rolling bearing fault diagnosis method based on GAF-DCGAN according to claim 1 is characterized in that: In step 2, the bearing sample data set is denoised using a wavelet threshold denoising method, which specifically includes the following steps: 2.
1. Select the wavelet basis function and the number of wavelet decomposition layers; 2.
2. Select the threshold function and threshold.
6. The rolling bearing fault diagnosis method based on GAF-DCGAN according to claim 1, characterized in that: Step 3 converts the denoised one-dimensional bearing data set into a two-dimensional fault image set, which specifically includes the following steps: 3.
1. Perform numerical scaling, that is, scale the time series data to [-1, 1], which is achieved through the following formula: in, is the one-dimensional time series signal after numerical scaling at the i-th moment, x i is the signal value at the i-th moment in the one-dimensional time series signal, max(X) is the maximum value in the one-dimensional time series signal, and min(X) is the minimum value in the one-dimensional time series signal; 3.
2. Then, we use the coordinate transformation formula to encode the timestamp as the radius and represent the rescaled time series in the polar coordinate system. The formula is as follows: Among them, t i is the timestamp, N is the constant factor for adjusting the span of the polar coordinate system, φ is the polar coordinate angle, is the one-dimensional time series signal after numerical scaling at the i-th moment, r is the polar coordinate radius, is the rescaled time series; 3.
3. Utilize angular perspective by considering the trigonometric sums / differences between each point to identify temporal correlations within different time intervals; the Gramian sum angular field GASF is defined as follows: in, is the timing signal for numerical scaling, for The transpose of , I is the unit vector, φ i ,φ j are the angles corresponding to two time points respectively.
7. The rolling bearing fault diagnosis method based on GAF-DCGAN according to claim 1 is characterized in that: The loss value calculation formula in step 7 is: in, is the expected value of the original sample, Softmax() represents the softmax function, D(x) represents the discriminator network, λ‖W‖ 2 represents L2 regularization, E z ~p z represents the expected value of the input random Gaussian noise, and G(z) represents the generator network.
Citation Information
Patent Citations
Fault diagnosis method based on semi-supervised learning deep adversarial network
CN110823574A
Motor bearing fault diagnosis method based on one-dimensional data enhancement and CNN
CN113203566A
Fault diagnosis model training method and system and diagnosis method and system thereof
CN113780412A
Power spectral entropy random forest-based aeroengine rolling bearing fault diagnosis method
WO2019153388A1
