A method for uniform demagnetization fault diagnosis of permanent magnet synchronous motor based on deep learning
By generating adversarial networks and deep denoising convolutional autoencoders in the demagnetization fault diagnosis of permanent magnet synchronous motors, the problems of lack of data and insufficient generalization are solved, achieving high-accuracy and robust fault diagnosis, and improving improve the security and stability of the system.
Patent Information
- Application Number
- CN202210860058.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-07-21
AI Technical Summary
The existing technology has weak generalization in demagnetization fault diagnosis of permanent magnet synchronous motors and is easily affected by noise. The lack of data results in poor diagnosis results and cannot achieve online monitoring and minor fault signal extraction.
Using generative adversarial networks and deep denoising convolutional autoencoders, combined with image style transfer ideas and transfer learning, we generate high-quality fault data, expand the sample set, and use deep learning models to extract and classify fault features to achieve robustness fault diagnosis.
It improves the accuracy and robustness of permanent magnet synchronous motor demagnetization fault diagnosis, can effectively detect demagnetization faults, provides reasonable motor operation planning, and improves the safety and stability of the system.
Smart Images

Figure CN115267531B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of permanent magnet synchronous motor fault diagnosis, and specifically relates to a permanent magnet synchronous motor uniform demagnetization fault diagnosis method based on deep learning. Background Art
[0002] Permanent magnet synchronous motors are now more and more widely used due to their simple structure, stable operation, high thrust density, and small size at the same power compared to traditional motors. They play an important role in the military and aerospace fields. However, due to the complex working conditions of actual applications, permanent magnet materials are easily affected by external factors such as high temperature, vibration, magnetic field interference, and inter-turn short circuit, which can cause irreversible demagnetization. The demagnetization of permanent magnet materials has serious consequences for permanent magnet synchronous motors, which can reduce motor efficiency or damage the drive module. In severe cases, it can even cause the motor to be scrapped, which in turn has immeasurable consequences for the entire system. Therefore, the demagnetization fault diagnosis of permanent magnet synchronous motors is of great significance. At present, the methods for the diagnosis and identification of demagnetization faults of permanent magnet synchronous motors mainly include mathematical model method, data-driven method, and high-frequency signal injection method. Some scholars observe the changing law of the permanent magnet flux amplitude based on mathematical models or use a variety of signal processing models to construct an observer for the permanent magnet flux, and use methods such as the least squares method and the Romberg observer to identify its parameters for fault diagnosis. However, this method has weak generalization and is easily affected by noise; some scholars use signal processing methods such as fast Fourier transform, Hilbert Huang transform, and wavelet transform based on data-driven methods to analyze physical quantities such as the stator current and induced voltage of permanent magnet synchronous motors to extract fault features. This method is limited by the use conditions of mathematical tools and is difficult to extract features for minor fault signals, so it cannot be widely used in actual engineering. Fault diagnosis methods based on high-frequency signal injection cannot achieve online monitoring. In recent years, with the development of deep learning, people have paid more and more attention to the application and development prospects of deep learning in the field of fault diagnosis. Deep learning is different from traditional neural networks. It has multiple hidden layers and can capture the characteristics of data autonomously and well. There is no need to manually adjust parameters based on prior knowledge, which greatly improves the learning ability of the network. However, deep learning networks that rely heavily on data quality and quantity perform poorly when data sets are missing. There is a lack of available data for demagnetization failures of permanent magnet synchronous motors, and most of the data is affected by complex working conditions and contains a lot of noise. d=0, the d-axis magnetic flux amplitude of the air gap magnetic flux waveform is not affected by the q-axis current, so the torque fluctuation has no effect on the calculation of the demagnetization fault degree of a single permanent magnet. The generative adversarial network and the deep denoising convolutional autoencoder are combined to expand the sample set and denoise the fault data. The generative adversarial network uses CycleGAN, which is inspired by the idea of image style transfer to migrate the fault data features to the healthy data. The use of multiple hidden layers and one-dimensional convolutional networks in the deep denoising convolutional autoencoder can effectively extract fault features and improve the performance of the fault classifier. The invention effectively solves the problem of lack of data in the field of demagnetization fault diagnosis of permanent magnet synchronous motors, and optimizes the defects of poor data quality and slow speed in similar methods. Due to the addition of a denoising module, this method has good diagnostic effect, high accuracy and strong robustness. When a demagnetization fault occurs in the motor, it can be effectively detected, thereby providing a basis for the reasonable planning of the subsequent operation of the motor, thereby improving the safety and stability of the operation of the permanent magnet synchronous motor and the system in which it is located.
[0003] Patent content
[0004] The purpose of the present invention is to provide a permanent magnet synchronous motor uniform demagnetization fault diagnosis method based on deep learning, which has strong robustness and high diagnostic accuracy, thereby overcoming the deficiencies mentioned in the background technology.
[0005] The technical solution to achieve the purpose of the present invention is: a method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning, comprising the following steps:
[0006] Step 1: On i d =0, a Hall sensor probe of a Gaussmeter is embedded in the stator teeth of the permanent magnet synchronous motor. The Hall voltage generated by the Hall sensor is proportional to the air gap flux density of the permanent magnet synchronous motor, and the change of the air gap flux density of the permanent magnet synchronous motor is monitored in real time. The air gap flux density of the permanent magnet synchronous motor under healthy operation and different degrees of uniform demagnetization is obtained, and fault labels are attached to form a real permanent magnet synchronous motor healthy and different degrees of uniform demagnetization fault data set A, and its data is used as the real data.
[0007] Step 2: According to the timing signal characteristics in the real permanent magnet synchronous motor health and different degrees of uniform demagnetization fault dataset A, reconstruct the generative adversarial network CycleGAN model.
[0008] Step 3: The real motor health and different degrees of uniform demagnetization fault data set A is used as the input of the anti-neural network CycleGAN model to generate a new permanent magnet synchronous motor healthy working and different degrees of uniform demagnetization fault data set B, whose data is used as generated data. The similarity between the generated data and the real data is expressed by the loss function. The number of training rounds is determined according to the decrease of the total function until the total loss function drops to the set threshold. At this time, the generator and the discriminator reach Nash equilibrium, and both parties in the game reach the maximum value of their expected benefits.
[0009] Step 4: Build a deep denoising convolutional autoencoder, and use the new permanent magnet synchronous motor healthy operation and different degrees of uniform demagnetization fault data set B as input to pre-train it, obtain a pre-trained model, and retain the pre-trained model parameters.
[0010] Step 5: Migrate the pre-trained model to the real permanent magnet synchronous motor healthy and uniform demagnetization fault data set A to obtain the migration model, and build a Softmax classifier. The Softmax classifier is used to classify the motor fault degree and realize the uniform demagnetization fault diagnosis of the permanent magnet synchronous motor.
[0011] Compared with the prior art, the present invention has the following significant advantages:
[0012] 1) Based on the deep learning method, the present invention applies the idea of image style transfer to fault data generation and improves CycleGAN so that it also performs well in processing one-dimensional time series signals.
[0013] 2) The traditional GAN has only one adversarial loss function and uses Gaussian noise as input. This network contains a cyclic loss function, an adversarial loss function, and an identity recognition loss function. It uses permanent magnet synchronous motor health data as input, which can greatly improve the quality and speed of generated data.
[0014] 3) Using deep denoising convolutional autoencoder, the internal deep network structure can better extract data features; the addition of noise can make it perform better, not only can it suppress overfitting, but also be more in line with the signals collected under the actual working conditions of the permanent magnet synchronous motor, and improve robustness. The core idea is that a neural network expression that can recover the original signal is not necessarily the best. It can encode and decode the "damaged" original data, and then restore the real original data. Such features are good.
[0015] 4) The idea of transfer learning is used to pre-train the model using generated data and then migrate the model to real data. This solves the problem of insufficient data in the diagnosis of demagnetization faults of permanent magnet synchronous motors and makes it difficult to effectively train the model. It can also make full use of real data and improve the diagnosis effect.
[0016] 5) The diagnostic method of the present invention has strong generalization ability. The transferability of the model enables rapid training of parameters when diagnosing different models, different working conditions and even different fault types, which greatly improves the speed of fault diagnosis and provides new ideas for the field of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The present invention is a flow chart of a specific implementation method of a method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor.
[0018] Figure 2 The schematic diagram of the adversarial network structure generated by CycleGAN of the present invention.
[0019] Figure 3 This is a schematic diagram of the deep denoising convolutional autoencoder network structure in the present invention.
[0020] Figure 4 In the present invention, d =0 control chart. DETAILED DESCRIPTION
[0021] Combination Figure 1 to Figure 4 The present invention provides a method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning, comprising the following steps:
[0022] Step 1: On i d =0, a Hall sensor probe of a Gaussmeter is embedded in the stator teeth of the permanent magnet synchronous motor. The Hall voltage generated by the Hall sensor is proportional to the air gap flux density of the permanent magnet synchronous motor, and the change of the air gap flux density of the permanent magnet synchronous motor is monitored in real time. d =0 control chart Figure 4 As shown; the air gap flux density of the permanent magnet synchronous motor under healthy operation and different degrees of uniform demagnetization is obtained, and fault labels are attached to form a real permanent magnet synchronous motor healthy and different degrees of uniform demagnetization fault data set A, and its data is used as the real data.
[0023] Step 2: According to the timing signal characteristics in the real permanent magnet synchronous motor health and different degrees of uniform demagnetization fault data set A, the generative adversarial network CycleGAN model is reconstructed, and the optimal model structure is determined through experiments.
[0024] The generative adversarial network CycleGAN model is as follows:
[0025]
[0026] Where Layer represents the hidden layer name, Type represents the hidden layer type, Ker / Str / Pad represent the kernel size / step size / padding number in the convolution layer, BN represents the normalization type, Activation represents the activation function type, Input and Output represent the data size of the hidden layer input and output respectively.
[0027] Step 3: Use the real motor health and different degrees of uniform demagnetization fault dataset A as the input of the anti-neural network CycleGAN model to generate a new permanent magnet synchronous motor healthy working and different degrees of uniform demagnetization fault dataset B, whose data is used as generated data; the similarity between the generated data and the real data is expressed by the loss function, and the number of training rounds is determined according to the decrease of the total function until the total loss function drops to the set threshold. At this time, the generator and the discriminator reach Nash equilibrium, and both parties in the game reach the maximum value of their expected benefits.
[0028] The total loss function L(G,F,D X ,D Y )for:
[0029] L(G,F,D X ,D Y )=Loss GAN +λ·Loss Cycle +β·Loss Id
[0030] Among them, G is the fault sample generator, F is the healthy sample generator, and D X is the healthy sample discriminator, D Y is the fault sample discriminator. Loss GAN To combat losses, Cycle is the cycle loss, Loss Id is the identity recognition loss. λ is the coefficient of the cycle loss in the total loss function, and β is the coefficient of the identity recognition loss in the total loss function. After experiments, we found that λ=10, β=5 are the best results.
[0031] Fighting Loss GAN Represents the adversarial loss between the generator and the discriminator, including the fault sample generator G and the fault sample discriminator D Y The adversarial loss L between GAN (G,D Y ,Y) and healthy sample generator F and healthy sample discriminator D X The adversarial loss L between GAN (F,D X ,X):
[0032] Loss GAN =L GAN(G,D Y ,Y)+L GAN (F,D X ,X)
[0033]
[0034]
[0035] Where X is a healthy motor sample, Y is a faulty motor sample; G(x) is the output after x is input to the fault sample generator G, and F(y) is the output after y is input to the healthy sample generator F; D X (F(y)) is the input of F(y) into the healthy sample discriminator D X The output after D Y (G(x)) is the input of G(x) into the fault sample discriminator D Y The output after represents expectations;
[0036] Circulation loss Loss Cycle It ensures that the anti-neural network CycleGAN model transforms the features of the input data into the features of the target data, rather than just randomly generating a target data. This can maximize the retention of the real features of the data except for the fault features, and improve the quality of data generation, including the cycle loss L of the healthy sample X. Cycle (G, F, X) and the cycle loss L of the fault sample Y Cycle (G,F,Y):
[0037]
[0038] Where X is a healthy motor sample, and Y is a faulty motor sample. G(x) is the output after x is input to the faulty sample generator G, and F(y) is the output after y is input to the healthy sample generator F. G(F(y)) is the output after F(y) is input to the faulty sample generator G, and F(G(x)) is the output after G(x) is input to the healthy sample generator F. represents expectation, || || 1 Represents the 1-norm.
[0039] Identity loss Id The role of is to make the fault sample generator G only output faulty motor samples, and the healthy sample generator F only generate healthy motor samples, regardless of whether the healthy motor sample X or the faulty motor sample Y is input. Id Post-generation effects improved.
[0040]
[0041] Where X is a healthy motor sample, Y is a faulty motor sample, G(y) is the output after y is input to the fault sample generator G, and F(x) is the output after x is input to the healthy sample generator F. Represents expectations.
[0042] Nash equilibrium must meet the following conditions:
[0043] 1) The fault sample generated by the fault sample generator G "hides" the fault sample discriminator D X The probability of the healthy sample generator F to generate healthy samples "deceives" the healthy sample discriminator D Y The probability is 49.9% to 50.01%.
[0044] 2) Fault sample discriminator D X The probability of correctly judging the faulty samples generated by the faulty sample generator G is 49.9% to 50.01%; the probability of correctly judging the healthy sample discriminator D is 49.9% to 50.01%. Y The probability of correctly judging the healthy samples generated by the healthy sample generator F is 49.9% to 50.01%.
[0045] Step 4: Build a deep denoising convolutional autoencoder, and use the new permanent magnet synchronous motor healthy operation and different degrees of uniform demagnetization fault data set B as input to pre-train it, obtain a pre-trained model, and retain the pre-trained model parameters.
[0046] The deep denoising convolutional autoencoder is composed of multiple encoding layers and decoding layers. Multiple encoding layers constitute the encoder E, and multiple decoding layers constitute the decoder D. Salt and pepper noise is added to "corrupt" the data before the data is input into the first encoding layer. The noise appears at random positions, and the depth of the noise point is basically fixed, which is consistent with the noise generated by the motor operation under actual working conditions:
[0047]
[0048] Among them, X 2 is the input of the deep denoising convolutional autoencoder, For X 2 The result after adding noise, is a noise matrix with the same shape as X;
[0049] The encoding and decoding process of the autoencoder can be described as:
[0050] H=E(X 2 )
[0051] Y 2 =D(H 2 )
[0052] Among them, E is the encoder, D is the decoder, and X2 is the input of the encoder, H is the 2 The intermediate variable obtained after inputting into the encoder will be used as the input of the Softmax classifier, Y 2 is the output after the intermediate variable H is input into the decoder D;
[0053] The sign of the completion of the autoencoder pre-training is that the cost function J meets the set threshold, and its formula is:
[0054]
[0055] in Represents expectations.
[0056] Step 5: Migrate the pre-trained model to the real permanent magnet synchronous motor health and uniform demagnetization fault data set A to obtain the migration model, and build a Softmax classifier to classify the motor fault degree through the Softmax classifier to achieve fault diagnosis. The loss function J in the training is 2 as follows:
[0057]
[0058] Among them, H is X 2 The intermediate variable obtained after inputting into the encoder, X 2label For X 2 The corresponding label, S is the Softmax classifier, is the label prediction value of the intermediate variable H by the Softmax classifier.
[0059] Example
[0060] The specific embodiments of the present invention are described below in conjunction with the accompanying drawings so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here. Figure 1 , Figure 2 , Figure 3 , Figure 4 The permanent magnet synchronous motor fault diagnosis method based on deep learning has the following specific steps:
[0061] Step 1: On i d=0, a total of 5000 sets of breath magnetic density waveforms under the normal working state of the permanent magnet synchronous motor and four different degrees of motor uniform demagnetization fault states of 5%, 10%, 15%, and 20% are collected at a sampling frequency of 10kHz as the real permanent magnet synchronous motor healthy and different degrees of uniform demagnetization fault data set A, of which 1000 sets are collected under the normal state of the motor, and 1000 sets are collected under five different degrees of motor demagnetization faults respectively, and the 5000 sets of data sets are stacked and divided into training set and verification set at a ratio of 4:1.
[0062] Step 2: Build and train the CycleGAN generative adversarial network model;
[0063] The result of the generative adversarial network model in the present invention is shown in FIG. Figure 2 As shown, the specific steps of the process are as follows:
[0064] 1) Build generators G and F: build upsampling and downsampling layers, and use one-dimensional convolutional layers as hidden layers; build discriminator D X , D Y :The main structure consists of a one-dimensional convolutional layer; the input of the generative adversarial network model is divided into two parts. First, the healthy samples X in the real permanent magnet synchronous motor health and different degrees of uniform demagnetization fault data set A are input into the fault sample generator G and the healthy sample discriminator D respectively. X In the second step, the fault samples Y in the real permanent magnet synchronous motor healthy and different degrees of uniform demagnetization fault data set A are input into the healthy sample generator F and the fault sample discriminator D respectively. Y The output of the fault sample generator G is input to the fault sample discriminator D Y In the above example, the fault sample discriminator D Y It is judged as a probability value of [0,1]; healthy sample generator F and healthy sample discriminator D X Same reason.
[0065] 2) Initialize the hyperparameters of the generative adversarial network: initial learning rate, step size; the training process uses the Adam optimization algorithm. The final optimization objective function of the generative adversarial network is described as:
[0066] L(G,F,D X ,D Y )=Loss GAN +λLoss Cycle +βLoss id
[0067] Among them, G is the fault sample generator, F is the healthy sample generator, and D X is the healthy sample discriminator, D Y is the fault sample discriminator. Loss GAN To combat losses,Cycle is the cycle loss, Loss Id is the identity recognition loss; λ is the coefficient of the cycle loss in the total loss function, β is the coefficient of the identity recognition loss in the total loss function. After experiments, it is found that λ=10, β=5 are the best results.
[0068] Fighting Loss GAN Represents the adversarial loss between the generator and the discriminator, which consists of two parts, the fault sample generator G and the fault sample discriminator D Y The adversarial loss L between GAN (G,D Y ,Y) and healthy sample generator F and healthy sample discriminator D X The adversarial loss L between GAN (F,D X ,X).
[0069] Loss GAN =L GAN (G,D Y ,Y)+L GAN (F,D X ,X)
[0070]
[0071]
[0072] Where X is a healthy motor sample, Y is a faulty motor sample; G(x) is the output after x is input to the fault sample generator G, and F(y) is the output after y is input to the healthy sample generator F; D X (F(y)) is the input of F(y) into the fault sample discriminator D Y The output after D Y (G(x)) is the input of G(x) into the healthy sample discriminator D X The output after Represents expectations.
[0073] Circulation loss Loss Cycle This ensures that the anti-neural network CycleGAN model transforms the features of the input data into the features of the target data, rather than just randomly generating a target data. This can maximize the retention of the real features of the data except for the fault features, thus improving the quality of data generation. Including the cycle loss L of the healthy sample X Cycle (G, F, X) and the cycle loss L of the fault sample Y Cycle (G,F,Y).
[0074]
[0075] Where X is a healthy motor sample, and Y is a faulty motor sample; G(x) is the output after x is input to the faulty sample generator G, and F(y) is the output after y is input to the healthy sample generator F; G(F(y)) is the output after F(y) is input to the faulty sample generator G, and F(G(x)) is the output after G(x) is input to the healthy sample generator F; represents expectation, || || 1 Represents the 1-norm.
[0076] Identity loss Id The role of is to make the fault sample generator G only output faulty motor samples, and the healthy sample generator F only generate healthy motor samples, regardless of whether the healthy motor sample X or the faulty motor sample Y is input; in the actual experiment, adding Loss Id Post-generation effect improvement;
[0077]
[0078] Where X is a healthy motor sample, Y is a faulty motor sample; G(y) is the output after y is input to the fault sample generator G, and F(x) is the output after x is input to the healthy sample generator F; Represents expectations.
[0079] When the total loss function L(G,F,D X ,D Y ) drops to the set threshold, the generator and the discriminator reach Nash equilibrium, and the condition for achieving this equilibrium is:
[0080] a. The fault sample generated by the fault sample generator G "hides" the fault sample discriminator D X The probability of the healthy sample generator F to generate healthy samples "deceives" the healthy sample discriminator D Y The probability is 49.9% to 50.01%.
[0081] b. Fault sample discriminator D X The probability of correctly judging the faulty samples generated by the faulty sample generator G is 49.9% to 50.01%; the probability of correctly judging the healthy sample discriminator D is 49.9% to 50.01%. Y The probability of correctly judging the healthy samples generated by the healthy sample generator F is 49.9% to 50.01%.
[0082] 3) The batch size of each experiment is 20 (randomly sampling 20 groups of healthy samples and 20 groups of samples with the same fault degree from the training set), the epoch is 100 (100 iterations), and when the loss function drops to 3e-2, the network parameters at this time are recorded as the final data expansion network model.
[0083] 4) The conventional generative adversarial network and the generative adversarial network model in the method of the present invention are used to expand the uniform demagnetization fault data of the permanent magnet synchronous motor. The samples and training time required to complete the model training are as follows:
[0084]
[0085] From the above experimental results, it can be seen that the generative adversarial network model in the present invention has a fast training speed and requires few training samples, and has broad application prospects in data expansion in the field of permanent magnet synchronous motor demagnetization fault and other fault diagnosis.
[0086] Step 3: Based on step 2, data expansion is performed on the real fault samples, and 800 groups of artificial samples are generated for the four different degrees of uniform demagnetization faults, totaling 3200 groups, to establish a new permanent magnet synchronous motor healthy working and different degrees of uniform demagnetization fault data set B.
[0087] Step 4: Build and train a deep denoising convolutional autoencoder network model;
[0088] The structure diagram of the deep denoising convolutional autoencoder network model constructed in the present invention is as follows: Figure 3 As shown, the specific steps of the process are as follows:
[0089] (1) Similar to step 3, the new permanent magnet synchronous motor healthy working and different degrees of uniform demagnetization fault data set B is stacked and divided into training set and validation set in a ratio of 4:1. Salt and pepper noise is added to the samples in the training set and then input into the input layer of the deep denoising convolutional autoencoder network to pre-train the deep denoising convolutional autoencoder.
[0090] (3) The saved deep denoising autoencoder pre-trained model is transferred to the real permanent magnet synchronous motor healthy and uniform demagnetization fault data set A collected in step 1 to further adjust the network parameters.
[0091] Step 5: Use the output of the encoder in the deep denoising convolutional autoencoder trained in step 4 as the input of the Softmax classifier, and output the label probability values of different degrees of uniform demagnetization faults. The label with the largest probability value is the corresponding fault type, thereby determining the severity of the motor demagnetization fault. The test set verifies the effectiveness of the network model, and finally obtains a trained permanent magnet synchronous motor uniform demagnetization fault diagnosis model.
[0092] Comparative analysis of the results of the diagnostic method of the present invention and similar diagnostic methods
[0093]
[0094] In summary, the present invention can effectively solve the problem of lack of data in the diagnosis of demagnetization faults of permanent magnet synchronous motors, generate samples with high quality and strong availability, and provide a new idea for sample expansion; among the diagnostic methods in the same field, this method has excellent performance and high accuracy, and improves the safety and stability of the operation of the permanent magnet synchronous motor and the system in which it is located; it has strong generalization, and the transferability of the model makes it possible to quickly train parameters when diagnosing different models, different working conditions, and even different fault types, which greatly improves the speed of fault diagnosis.
Claims
1. A method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning, characterized in that: The steps include: Step 1: On i d =0, a Hall sensor probe of a Gaussmeter is embedded in the stator teeth of the permanent magnet synchronous motor, and the Hall voltage generated by the Hall sensor is proportional to the air gap flux density of the permanent magnet synchronous motor, so as to monitor the change of the air gap flux density of the permanent magnet synchronous motor in real time; the air gap flux density of the permanent magnet synchronous motor under healthy operation and different degrees of uniform demagnetization is obtained, and fault labels are attached to form a real permanent magnet synchronous motor healthy and different degrees of uniform demagnetization fault data set A, and its data is used as the real data; Step 2: Based on the time series signal characteristics in the real permanent magnet synchronous motor health and uniform demagnetization fault data set A, reconstruct the generative adversarial network CycleGAN model, and determine the optimal model structure through experiments; Step 3: Take the real motor health and different degrees of uniform demagnetization fault data set A as the input of the anti-neural network CycleGAN model to generate a new permanent magnet synchronous motor healthy working and different degrees of uniform demagnetization fault data set B, whose data is used as generated data; the similarity between the generated data and the real data is expressed by the loss function, and the number of training rounds is determined according to the decrease of the total function until the total loss function drops to the set threshold. At this time, the generator and the discriminator reach Nash equilibrium, and both parties in the game reach the maximum value of their expected benefits; Step 4: Build a deep denoising convolutional autoencoder, and use the new permanent magnet synchronous motor healthy working and different degrees of uniform demagnetization fault data set B as input to pre-train it, obtain a pre-training model, and retain the pre-training model parameters; Step 5: Migrate the pre-trained model to the real permanent magnet synchronous motor healthy and uniform demagnetization fault data set A to obtain the migration model, and build a Softmax classifier. The Softmax classifier is used to classify the motor fault degree and realize the uniform demagnetization fault diagnosis of the permanent magnet synchronous motor.
2. The method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning according to claim 1 is characterized in that: In step 2, the generative adversarial network CycleGAN model is specifically as follows: Where Layer represents the hidden layer name, Type represents the hidden layer type, Ker / Str / Pad represent the kernel size / step size / padding number in the convolution layer, BN represents the normalization type, Activation represents the activation function type, Input and Output represent the data size of the hidden layer input and output respectively.
3. The method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning according to claim 2 is characterized in that: The total loss function L(G,F,D) in step 3 X ,D Y )for: L(G,F,D X ,D Y )=Loss GAN +λ·Loss Cycle +β·Loss Id Among them, G is the fault sample generator, F is the healthy sample generator, and D X is the healthy sample discriminator, D Y is the fault sample discriminator; Loss GAN To combat losses, Cycle is the cycle loss, Loss Id is the identity recognition loss; λ is the coefficient of the cycle loss in the total loss function, and β is the coefficient of the identity recognition loss in the total loss function. After experiments, it was found that λ=10, β=5 are the best results; Fighting Loss GAN Represents the adversarial loss between the generator and the discriminator, including the fault sample generator G and the fault sample discriminator D Y The adversarial loss L between GAN (G,D Y ,Y) and healthy sample generator F and healthy sample discriminator D X The adversarial loss L between GAN (F,D X ,X): Loss GAN =L GAN (G,D Y ,Y)+L GAN (F,D X ,X) Where X is a healthy motor sample, Y is a faulty motor sample; G(x) is the output after x is input to the fault sample generator G, and F(y) is the output after y is input to the healthy sample generator F; D X (F(y)) is the input of F(y) into the healthy sample discriminator D X The output after D Y (G(x)) is the input of G(x) into the fault sample discriminator D Y The output after represents expectations; Circulation loss Loss Cycle It ensures that the anti-neural network CycleGAN model transforms the features of the input data into the features of the target data, rather than just randomly generating a target data. This can maximize the retention of the real features of the data except for the fault features, and improve the quality of data generation, including the cycle loss L of the healthy sample X. Cycle (G, F, X) and the cycle loss L of the fault sample Y Cycle (G,F,Y): Where X is a healthy motor sample, and Y is a faulty motor sample; G(x) is the output after x is input to the faulty sample generator G, and F(y) is the output after y is input to the healthy sample generator F; G(F(y)) is the output after F(y) is input to the faulty sample generator G, and F(G(x)) is the output after G(x) is input to the healthy sample generator F; represents expectation, || ||1 represents 1-norm; Identity loss Id The role of is to make the fault sample generator G only output faulty motor samples, and the healthy sample generator F only generate healthy motor samples, regardless of whether the healthy motor sample X or the faulty motor sample Y is input; in the actual experiment, adding Loss Id Post-generation effect improvement; Where X is a healthy motor sample, Y is a faulty motor sample; G(y) is the output after y is input to the fault sample generator G, and F(x) is the output after x is input to the healthy sample generator F; Represents expectations.
4. The method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning according to claim 3 is characterized in that: The Nash equilibrium in step 3 must meet the following conditions: 1) The fault sample generated by the fault sample generator G "hides" the fault sample discriminator D X The probability of the healthy sample generator F to generate healthy samples "deceives" the healthy sample discriminator D Y The probability is 49.9% to 50.01%; 2) Fault sample discriminator D X The probability of correctly judging the faulty samples generated by the faulty sample generator G is 49.9% to 50.01%; the probability of correctly judging the healthy sample discriminator D is 49.9% to 50.01%. Y The probability of correctly judging the healthy samples generated by the healthy sample generator F is 49.9% to 50.01%.
5. The method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning according to claim 4 is characterized in that: The deep denoising convolutional autoencoder in step 4 is composed of multiple encoding layers and decoding layers. Multiple encoding layers constitute the encoder E, and multiple decoding layers constitute the decoder D. Salt and pepper noise is added to "corrupt" the data before the data is input into the first encoding layer. The noise appears at random positions, and the depth of the noise point is basically fixed, which is consistent with the noise generated by the motor operation under actual working conditions: Among them, X2 is the input of the deep denoising convolutional autoencoder, is the result after adding noise to X2, is a noise matrix with the same shape as X; The encoding and decoding process of the autoencoder can be described as: H=E(X2) Y2=D(H2) Where E is the encoder, D is the decoder, X2 is the input of the encoder, H is the intermediate variable obtained after X2 is input to the encoder, which will be used as the input of the Softmax classifier, and Y2 is the output after the intermediate variable H is input to the decoder D; The sign of the completion of the autoencoder pre-training is that the cost function J meets the set threshold, and its formula is: in Represents expectations.
6. The method for diagnosing uniform demagnetization fault of a permanent magnet synchronous motor based on deep learning according to claim 5 is characterized in that: In step 5, the pre-trained deep denoising convolutional autoencoder is migrated to the real motor health and different degrees of uniform demagnetization fault dataset A to obtain the migration model, and a Softmax classifier is built to classify the motor fault degree and realize fault diagnosis. The loss function J2 in its training is as follows: Among them, H is the intermediate variable obtained after inputting X2 into the encoder, X 2label is the label corresponding to X2, S is the Softmax classifier, is the label prediction value of the intermediate variable H by the Softmax classifier.
