Permanent magnet synchronous motor cross-working-condition field loss fault diagnosis method
The PCA-PNN model, which extracts the main components of the phase current through the PCA algorithm and optimizes the GTO algorithm, solves the problem of diagnosing the cross-working condition loss of excitation fault of the permanent magnet synchronous motor, achieves efficient and accurate fault identification, reduces the cost and improves the equipment Reliability and longevity.
Patent Information
- Application Number
- CN202410659487.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technology is difficult to effectively diagnose the loss of excitation faults of permanent magnet synchronous motors under cross-working conditions, resulting in faults not being identified and corrected in time, increasing motor losses and maintenance costs, and reducing equipment reliability and service life.
The PCA algorithm is used to extract the principal components of the phase current to construct the fault vector, and is combined with the PNN model and GTO algorithm optimization to form the PCA-GTO-PNN model, which is used for cross-working condition fault diagnosis and output classification results.
It realizes fault diagnosis without additional sensors, improves diagnosis efficiency and accuracy, detects faults early, saves maintenance costs, and improves the reliability and service life of the motor.
Smart Images

Figure CN118566719A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor fault diagnosis, and in particular to a method for diagnosing a permanent magnet synchronous motor's cross-operating condition demagnetization fault. Background Art
[0002] With the rapid development of high-performance rare earth permanent magnet materials and power electronics technology, permanent magnet synchronous motors have been widely used in new energy vehicles, aerospace, transportation and other fields due to their significant advantages such as simple structure, high efficiency, high power density and low noise.
[0003] However, due to the influence of various factors such as motor operating temperature, permanent magnet aging, and insufficient magnetization, permanent magnet synchronous motors face the inevitable risk of demagnetization failure. This failure will not only increase the loss of the motor and reduce the working efficiency of the equipment, but if it is not identified and corrected in time, it may also cause serious property losses and casualties. At present, in the field of fault diagnosis research of permanent magnet synchronous motors, most studies focus on demagnetization failures under the same working conditions, while there is little in-depth exploration of demagnetization fault diagnosis methods under cross-working conditions.
[0004] Therefore, the research on cross-operating condition fault diagnosis methods is of great significance for early detection of motor faults, saving maintenance costs, improving the reliability of permanent magnet synchronous motor operation, and extending its service life. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a method for diagnosing the demagnetization fault of a permanent magnet synchronous motor across operating conditions, so as to realize the demagnetization fault diagnosis of the permanent magnet synchronous motor across operating conditions.
[0006] A method for diagnosing a permanent magnet synchronous motor cross-operating condition demagnetization fault according to an embodiment of the present invention comprises steps S1 to S6:
[0007] S1, collecting phase current data of the permanent magnet synchronous motor when it works in different working conditions;
[0008] S2, divide the phase current data into training set and test set, and normalize them;
[0009] S3, based on the data obtained in step S2, using the PCA algorithm to extract the principal components of the phase current to construct a new fault vector;
[0010] S4, inputting the fault vector into the PNN model to obtain the PCA-PNN model;
[0011] S5, confirm the fitness function, use the GTO algorithm to optimize the PCA-PNN model to obtain the PCA-GTO-PNN model;
[0012] S6, use the PCA-GTO-PNN model to perform fault diagnosis and output the classification results.
[0013] The method for diagnosing demagnetization fault of a permanent magnet synchronous motor across operating conditions according to an embodiment of the present invention has the following beneficial effects:
[0014] (1) The present invention uses phase current signals to perform permanent magnet synchronous motor fault diagnosis, which can avoid the use of additional sensors and thus reduce costs.
[0015] (2) The present invention uses PCA to extract the principal components in the phase current to construct the fault vector, which can reduce the dimension of the sample and improve the fault diagnosis efficiency.
[0016] (3) The present invention uses the GTO algorithm to optimize the PCA-PNN network, which has higher diagnostic accuracy.
[0017] (4) The present invention realizes the cross-operating condition demagnetization fault diagnosis of the permanent magnet synchronous motor, and effectively solves the diagnosis problem of the demagnetization fault of the permanent magnet synchronous motor under cross-operating conditions. It not only helps to detect motor faults at an early stage and save maintenance costs, but also improves the reliability of the operation of the permanent magnet synchronous motor and provides a strong guarantee for its extended service life.
[0018] In addition, the method for diagnosing cross-operating demagnetization fault of a permanent magnet synchronous motor according to the above embodiment of the present invention may also have the following additional technical features:
[0019] Furthermore, the phase current data of the permanent magnet synchronous motor collected in step S1 includes the normal motor, the whole demagnetized motor, and the single-pole demagnetized motor operating at a speed of 500-3000 r·min -1 , 260 sets of current data under load conditions of 1-10N·m.
[0020] Furthermore, in step S2, the training set and the test set are divided into 11:2.
[0021] Furthermore, in step S3, the PCA algorithm includes the following four steps: establishing an initial feature matrix; calculating a correlation coefficient matrix; calculating eigenvalues of the correlation coefficient matrix, and determining the principal component dimension with a cumulative contribution greater than 95%; and calculating principal components and constructing a fault vector.
[0022] Furthermore, the GTO algorithm includes two stages: exploration and development. The specific modeling steps are as follows:
[0023] The mathematical model of the exploration phase is described as:
[0024]
[0025] Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; M(u) is the position vector of the gorilla individual at the uth iteration; M(t) is the position vector of the gorilla individual at the tth iteration; M r (t) is a gorilla individual randomly selected at the tth iteration; GM r (t) is the candidate position vector of the gorilla randomly selected at the tth iteration; r 1 、r 2 、r 3 , rand is a random value ranging from 0 to 1 updated in each iteration; p is a given parameter between 0 and 1; UB, LB represent the upper and lower limits of the variable respectively; C is the iteration coefficient; L is the parameter used to simulate the leadership of the silverback gorilla; H is the random position vector;
[0026] In the above formula, C, L, and H are calculated using the following formulas:
[0027]
[0028] F = cos(2×r 4 )+1
[0029] L=C×l
[0030] H=Z×M(t)
[0031] Z = [-C, C]
[0032] Where: t is the current iteration number; t max is the maximum number of iterations; F is the cosine function coefficient; l is a random value between -1 and 1; r 4 is a random value ranging from 0 to 1 that is updated in each iteration; Z is a random value ranging from -C to C in the problem dimension;
[0033] After the exploration phase, compare the sizes of all GM(t+1) and M(t). If GM(t+1)<M(t), then update M(t) to GM(t+1). The best individual in this phase is considered to be the silverback gorilla.
[0034] In the development phase, there are two main behavior modes: following the silverback gorilla and competition between adult females. The development phase involves leadership following and potential leadership change. If C≥W, the silverback gorilla following mode is selected, and if C<W, the competition mode between adult females is selected. W is a parameter set before the optimization operation.
[0035] Following the Silverback Gorilla pattern is described as follows:
[0036] GM(t+1)=L×Y×(M(t)-XS )+M(t)
[0037]
[0038] g=2 L
[0039] Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; L is the parameter used to simulate the leadership of the silverback gorilla; M(t) is the position vector of the gorilla individual at the tth iteration; Y is the mean parameter; X S is the position vector of the silverback gorilla; GM mm (t) is the candidate position vector of the mth gorilla at the tth iteration; N is the total population; g is an exponential parameter with base 2;
[0040] The competition pattern between adult females is described as follows:
[0041] GM(t+1)=X S -(X S ×QM(t)×Q)×A
[0042] Q=2×r 5 -1
[0043] A=β×E
[0044]
[0045] Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; M(t) is the position vector of the gorilla individual at the tth iteration; X S is the position vector of the silverback gorilla; Q is the parameter used to simulate the impact force; A is the coefficient vector for simulating the degree of violence; β is the parameter given before the optimization operation; r 5 , rand is a random value between 0 and 1; E is the evaluation coefficient; N 1 is a random value in the normal distribution and the problem dimension; N 2 is a normally distributed random value;
[0046] After the development phase, compare the sizes of all GM(t+1) and M(t). If GM(t+1)<M(t), update M(t) to GM(t+1), and regard the optimal solution obtained in the entire population as the silverback gorilla.
[0047] Furthermore, the PNN model consists of four layers: input layer, pattern layer, summation layer and output layer. Assume that the input test sample is x=(x 1 , x 2 , …, x k), the training sample of the pattern layer is x ij =(x 1j , x 2j , …, x ij ), the output is Typei;
[0048] The first layer of the PNN model is the input layer, which is used to receive the feature vector of the test sample and pass these features directly to the network. The number of neurons in the input layer corresponds to the dimension of the feature vector.
[0049] The second layer of the PNN model is the pattern layer, which is responsible for calculating the similarity between the input feature vector and each training category. The number of neurons in the pattern layer matches the total number of categories of the training samples. The input-output relationship of the pattern layer is determined by the following formula:
[0050]
[0051] Among them, δ ij (x) is the output of the pattern layer; x ij is the feature vector of the jth sample of the i-th category in the training sample; x is the feature vector of the predicted sample; k is the sample dimension; σ is the smoothing coefficient;
[0052] The third layer of the PNN model is the summation layer, which is used to calculate the probability accumulation of a specific category to obtain the probability that the sample belongs to this type of fault. The calculation method of the summation layer is to sum the pattern layer units in each class through the following calculation, where each category corresponds to a summation layer unit, which is only connected to the pattern layer unit of this category:
[0053]
[0054] in, is the probability density function of x belonging to the i-th category; N i is the number of training samples in the i-th class;
[0055] The fourth layer of the PNN model is the output layer. Based on the output of the summation layer, the neuron with the maximum posterior probability is selected as the output to determine the fault category of the motor. The fault category with the highest probability is identified through the output layer. The calculation formula of the probability density is:
[0056]
[0057] Among them, the smoothing coefficient σ in the PNN model is optimized by the GTO algorithm.
[0058] Further, in step S5, the process of using the GTO algorithm to optimize the PCA-PNN model to obtain the PCA-GTO-PNN model is:
[0059] The recognition error of the PCA-PNN model is used as the fitness function of the GTO algorithm, and the optimized parameters of the GTO algorithm are used as the smoothing coefficients of the PCA-PNN model. First, the initial parameters of the GTO algorithm are set. The initial number of chimpanzees is set to 10, and the number of iterations is t. max Set it to 50, set W to 0.8, β to 3, and p to 0.03, and then use the PCA-PNN model for pattern recognition, calculate the classification error, and obtain the optimized parameters of the GTO algorithm through continuous iteration. Finally, bring the optimized parameters into the PCA-PNN model as the smoothing coefficient σ to obtain the PCA-GTO-PNN model for subsequent fault diagnosis.
[0060] Furthermore, step 6 specifically includes:
[0061] Input training samples and test samples, use the PCA-GTO-PNN model to perform fault diagnosis, and output the final diagnosis results. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The above and / or additional aspects and advantages of the embodiments of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0063] Figure 1 It is a schematic diagram of the process flow of diagnosing the demagnetization fault of the permanent magnet synchronous motor across operating conditions of the present invention.
[0064] Figure 2 Schematic diagram of the network structure of the PNN model of the present invention.
[0065] Figure 3 It is a schematic diagram of a current-load waterfall diagram of a normal permanent magnet synchronous motor of the present invention with a rotation speed of 2000 r·min-1 and a load of 1-10 N·m.
[0066] Figure 4 It is a schematic diagram of the current waveform comparison of the permanent magnet synchronous motor of the present invention when the load is 9 N·m and the speed is 2000 r·min-1.
[0067] Figure 5 It is a schematic diagram of the GTO iteration curve of the present invention.
[0068] Figure 6 It is a schematic diagram of the classification results of the PCA-SVM test set of the present invention.
[0069] Figure 7 It is a schematic diagram of the classification results of the PCA-ELM test set of the present invention.
[0070] Figure 8 It is a schematic diagram of the classification results of the PCA-BP test set of the present invention.
[0071] Fig. 9 It is a schematic diagram of the classification results of the PCA-RF test set of the present invention.
[0072] Fig.10 It is a schematic diagram of the classification results of the PCA-RBF test set of the present invention.
[0073] Fig.11 It is a schematic diagram of the classification results of the PCA-PNN test set of the present invention.
[0074] Fig.12 It is a schematic diagram of the classification results of the PCA-GTO-PNN test set of the present invention. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0076] See also Figure 1 The embodiment of the present invention provides a method for diagnosing a permanent magnet synchronous motor cross-operating condition demagnetization fault, comprising steps S1 to S6:
[0077] S1, collects phase current data of the permanent magnet synchronous motor when it works in different working conditions.
[0078] In step S1, the phase current data of the permanent magnet synchronous motor are collected, including the normal motor, the whole demagnetized motor, and the single-pole demagnetized motor working at a speed of 500-3000 r·min -1 , 260 sets of current data under load conditions of 1-10N·m.
[0079] S2, divide the phase current data into training set and test set, and normalize them.
[0080] In step S2, the training set and the test set are divided into 11:2.
[0081] S3, based on the data obtained in step S2, use the PCA algorithm to extract the principal components of the phase current and construct a new fault vector.
[0082] Among them, PCA is an efficient data analysis technology, especially suitable for large data sets. As an unsupervised learning method, PCA can reduce high-dimensional data to a set of key features by linearly transforming the data into a new coordinate system, thus facilitating data exploration and visualization. This transformation can capture most of the changes in the data with fewer dimensions, effectively reducing the complexity of the neural network and improving the recognition rate and prediction accuracy.
[0083] In step S3, the PCA algorithm includes the following four steps: establishing an initial feature matrix; calculating a correlation coefficient matrix; calculating eigenvalues of the correlation coefficient matrix and determining the principal component dimension with a cumulative contribution greater than 95%; and calculating principal components and constructing a fault vector.
[0084] S4, input the fault vector into the PNN model to obtain the PCA-PNN model.
[0085] Among them, see Figure 2 The PNN model consists of four layers: input layer, pattern layer, summation layer and output layer. Assume that the input test sample is x=(x 1 ,x 2 ,…,x k ), the training sample of the pattern layer is x ij =(x 1j ,x 2j ,…,x ij ), the output is Typei;
[0086] The first layer of the PNN model is the input layer, which is used to receive the feature vector of the test sample and pass these features directly to the network. The number of neurons in the input layer corresponds to the dimension of the feature vector.
[0087] The second layer of the PNN model is the pattern layer, which is responsible for calculating the similarity between the input feature vector and each training category. The number of neurons in the pattern layer matches the total number of categories of the training samples. The input-output relationship of the pattern layer is determined by the following formula:
[0088]
[0089] Among them, δ ij (x) is the output of the pattern layer; x ij is the feature vector of the jth sample of the i-th category in the training sample; x is the feature vector of the predicted sample; k is the sample dimension; σ is the smoothing coefficient;
[0090] The third layer of the PNN model is the summation layer, which is used to calculate the probability accumulation of a specific category to obtain the probability that the sample belongs to this type of fault. The calculation method of the summation layer is to sum the pattern layer units in each class through the following calculation, where each category corresponds to a summation layer unit, which is only connected to the pattern layer unit of this category:
[0091]
[0092] in, is the probability density function of x belonging to the i-th category; N i is the number of training samples in the i-th class;
[0093] The fourth layer of the PNN model is the output layer. Based on the output of the summation layer, the neuron with the maximum posterior probability is selected as the output to determine the fault category of the motor. The fault category with the highest probability is identified through the output layer. The calculation formula of the probability density is:
[0094]
[0095] Among them, the smoothing coefficient σ in the PNN model is optimized by the GTO algorithm.
[0096] S5, confirm the fitness function, use the GTO algorithm to optimize the PCA-PNN model to obtain the PCA-GTO-PNN model.
[0097] The core idea of the GTO algorithm is to explore and find the optimal solution to the problem by simulating the behavior of a gorilla group. In this algorithm, each gorilla represents a potential solution. During the iteration process, each gorilla moves in the search space, looking for a better solution and records its best position. The entire group optimizes the search process through information sharing and collaboration, and finally achieves the global optimal solution.
[0098] The GTO algorithm consists of two stages: exploration and development. The specific modeling steps are as follows:
[0099] The mathematical model of the exploration phase is described as:
[0100]
[0101] Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; M(u) is the position vector of the gorilla individual at the uth iteration; M(t) is the position vector of the gorilla individual at the tth iteration; M r (t) is a gorilla individual randomly selected at the tth iteration; GM r (t) is the candidate position vector of the gorilla randomly selected at the tth iteration; r 1 、r 2 、r 3 , rand is a random value ranging from 0 to 1 updated in each iteration; p is a given parameter between 0 and 1; UB, LB represent the upper and lower limits of the variable respectively; C is the iteration coefficient; L is the parameter used to simulate the leadership of the silverback gorilla; H is the random position vector;
[0102] In the above formula, C, L, and H are calculated using the following formulas:
[0103]
[0104] F = cos(2×r 4 )+1
[0105] L=C×l
[0106] H=Z×M(t)
[0107] Z = [-C, C]
[0108] Where: t is the current iteration number; t max is the maximum number of iterations; F is the cosine function coefficient; l is a random value between -1 and 1; r 4 is a random value ranging from 0 to 1 that is updated in each iteration; Z is a random value ranging from -C to C in the problem dimension;
[0109] After the exploration phase, compare the sizes of all GM(t+1) and M(t). If GM(t+1)<M(t), then update M(t) to GM(t+1). The best individual in this phase is considered to be the silverback gorilla.
[0110] In the development stage, there are two main behavior modes: following the silverback gorilla and competition between adult females. As the leader of the group, the silverback gorilla is responsible for making all key decisions. However, over time, the silverback gorilla may lose its leadership due to old age and frailty. At this time, the blackback gorilla or other male gorillas in the group may rise up to challenge the leadership of the silverback gorilla, or even replace it as the new leader. That is, the development stage involves following the leadership and potential leadership changes. If C≥W, the following silverback gorilla mode is selected. If C<W, the competition mode between adult females is selected. W is the parameter set before the optimization operation.
[0111] Following the Silverback Gorilla pattern is described as follows:
[0112] GM(t+1)=L×Y×(M(t)-X S )+M(t)
[0113]
[0114] g=2 L
[0115] Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; L is the parameter used to simulate the leadership of the silverback gorilla; M(t) is the position vector of the gorilla individual at the tth iteration; Y is the mean parameter; X S is the position vector of the silverback gorilla; GM mm (t) is the candidate position vector of the mth gorilla at the tth iteration; N is the total population; g is an exponential parameter with base 2;
[0116] The competition pattern between adult females is described as follows:
[0117] GM(t+1)=X S -(X S ×QM(t)×Q)×A
[0118] Q=2×r 5 -1
[0119] A=β×E
[0120]
[0121] Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; M(t) is the position vector of the gorilla individual at the tth iteration; X S is the position vector of the silverback gorilla; Q is the parameter used to simulate the impact force; A is the coefficient vector for simulating the degree of violence; β is the parameter given before the optimization operation; r 5 , rand is a random value between 0 and 1; E is the evaluation coefficient; N 1 is a random value in the normal distribution and the problem dimension; N 2 is a normally distributed random value;
[0122] After the development phase, compare the sizes of all GM(t+1) and M(t). If GM(t+1)<M(t), update M(t) to GM(t+1), and regard the optimal solution obtained in the entire population as the silverback gorilla.
[0123] Among them, in step S5, the process of using the GTO algorithm to optimize the PCA-PNN model to obtain the PCA-GTO-PNN model is:
[0124] The recognition error of the PCA-PNN model is used as the fitness function of the GTO algorithm, and the optimized parameters of the GTO algorithm are used as the smoothing coefficients of the PCA-PNN model. First, the initial parameters of the GTO algorithm are set. The initial number of chimpanzees is set to 10, and the number of iterations is t. maxSet it to 50, set W to 0.8, β to 3, and p to 0.03. Then use the PCA-PNN model for pattern recognition and calculate the classification error. Through continuous iteration, the optimized parameters of the GTO algorithm are obtained. Finally, the optimized parameters are introduced into the PCA-PNN model as the smoothing coefficient σ to obtain the PCA-GTO-PNN model for subsequent fault diagnosis.
[0125] S6, use the PCA-GTO-PNN model to perform fault diagnosis and output the classification results.
[0126] Wherein, step 6 specifically includes:
[0127] Input training samples and test samples, use the PCA-GTO-PNN model to perform fault diagnosis, and output the final diagnosis results.
[0128] The following is a specific example:
[0129] S1: The embodiment of the present invention is completed by collecting phase current data of three built-in permanent magnet synchronous motors, and Table 1 is the parameters of the permanent magnet synchronous motor prototype. The permanent magnet synchronous motor fault experiment platform of this embodiment mainly includes an experimental motor, a load motor, a dynamometer, a power cabinet, a frequency converter and a control computer. The experimental motors include normal motors, single-pole demagnetization motors, and overall demagnetization motors, totaling three motors; the dynamometer sampling frequency is 125kHz, the voltage measurement range is 100μV-15kV, the current measurement range is 100μA-15kA, and the measurement accuracy is 0.1%; the power cabinet input is three-phase 380-500V voltage, the frequency is 50Hz, the output is three-phase 380-500V voltage, the frequency is 0-320Hz, the input and output currents are both 46A, and the rated power is 22kW; the inverter model is SP332201C, the rated voltage is 3300V, the rated current is 200A, the frequency test range is 0.1-1500Hz, and the power is 1.5kW; the function of the control computer is to control the power on and off of the platform, set the load torque, and the motor speed.
[0130] Table 1
[0131] parameter Numeric parameter Numeric Rated power / kW 5 <![CDATA[Rated speed / r·min -1 > 3000 Rated voltage / V 72 Armature length / mm 90 Stator outer diameter / mm 160 Stator inner diameter / mm 108 Rotor outer diameter / mm 106.66 Rotor inner diameter / mm 36 Number of slots 48 Number of poles 8 Number of phases 3 Number of parallel branches 4 Rated torque / N·m 19.9 <![CDATA[Peak speed / r·min -1 > 6800 Permanent magnet type N35UH Motor brand TZQ160-5-72
[0132] The data collection process is: first, turn on the power cabinet switch, click the closing button on the control computer, and turn on the platform power; second, start the experimental motor and the load motor, and adjust them to the required speed and the required load; finally, turn on the dynamometer and click the collection button to collect current data.
[0133] Figure 3 When the speed is 2000r·min -1 , the current-load waterfall diagram of a normal motor when the load is 1-10N·m, Figure 4 When the load is 9N·m, the speed is 2000r·min -1 The current waveform comparison diagram when Figure 3 and Figure 4 It can be seen from the figure that when the motor loses its magnetism, the current will increase. The current amplitude of the overall demagnetized motor is the largest, followed by the single-pole demagnetized motor, and the normal motor has the smallest amplitude. Therefore, the phase current signal can be used to diagnose motor faults.
[0134] The experiment collected data of normal motor, overall demagnetized motor and single-pole demagnetized motor working at a speed of 500-3000r·min -1 , there are 260 groups of phase current data under the working condition of load 1-10N·m, a total of 780 groups, each group of data acquisition time is 0.15s, and there are 18750 sample points.
[0135] S2: The data is divided into training set and test set at 11:2, that is, 220 groups of normal motor, single-pole demagnetization, and overall demagnetization motor samples are used as training samples, and the remaining 40 groups are used as test samples. There are 660 training samples in total and 120 test samples in total. The label codes are set to 1, 2, and 3 respectively. The training set and test set are normalized to between 0 and 1.
[0136] S3: Use PCA to extract the principal components of the phase current and construct a new fault vector. First, the normalized training set and test set are combined to establish the initial feature matrix; second, the correlation coefficient matrix is established by calculating the covariance; then, the eigenvalues of the correlation coefficient matrix are calculated to determine the principal component dimension with a cumulative contribution greater than 95%; finally, the principal components are calculated and the fault vector is constructed. After the PCA dimension reduction, the number of sample points of the data is 27.
[0137] S4: Replace the original training set and test set with the fault vector after dimension reduction and input it into the PNN model to obtain the PCA-PNN model.
[0138] S5: The recognition error of PCA-PNN is used as the fitness function of GTO, and the optimized parameters of GTO are used as the smoothing coefficient of PCA-PNN. First, the initial parameters of GTO are set, the initial number of chimpanzees is set to 10, and the number of iterations is t max Set to 50, set W to 0.8, β to 3, and p to 0.03. Then use PCA-PNN for pattern recognition, calculate the classification error, and obtain the optimized parameters of GTO through continuous iteration. The optimized smoothing coefficient σ=0.6533. Finally, bring σ=0.6533 into PCA-PNN to obtain the PCA-GTO-PNN network model. The GTO iteration curve is shown in the figure. The GTO algorithm of the present invention has converged to the optimal value in less than 5 iterations. The data show that the GTO algorithm of the present invention has good convergence ability.
[0139] S6: Input the above training samples and test samples into the PCA-GTO-PNN model for fault diagnosis, output the final diagnosis results, and compare with six algorithms including PCA-SVM, PCA-ELM, PCA-BP, PCA-RF, PCA-RBF, and PCA-PNN. The comparison results of the seven algorithms are shown in Table 2.
[0140] Table 2
[0141]
[0142]
[0143] The PCA-SVM test set classification results are as follows Figure 6 As shown, the classification results of the PCA-ELM test set are as follows Figure 7 As shown, the classification results of the PCA-BP test set are as follows Figure 8 As shown, the classification results of the PCA-RF test set are as follows Fig. 9 As shown, the classification results of the PCA-RBF test set are as follows Fig.10 As shown, the classification results of the PCA-PNN test set are as follows Fig.11 As shown, the classification results of the PCA-GTO-PNN test set are as follows Fig.12 As shown in the figure. From the above results, it can be seen that the accuracy of PCA-GTO-PNN is as high as 95.83%, which is significantly better than the other 6 algorithms. It is proved that PCA-GTO-PNN has good classification performance for fault diagnosis and has broad application prospects.
[0144] In summary, the method for diagnosing a permanent magnet synchronous motor demagnetization fault across operating conditions according to an embodiment of the present invention has the following beneficial effects:
[0145] (1) The present invention uses phase current signals to perform permanent magnet synchronous motor fault diagnosis, which can avoid the use of additional sensors and thus reduce costs.
[0146] (2) The present invention uses PCA to extract the principal components in the phase current to construct the fault vector, which can reduce the dimension of the sample and improve the fault diagnosis efficiency.
[0147] (3) The present invention uses the GTO algorithm to optimize the PCA-PNN network, which has higher diagnostic accuracy.
[0148] (4) The present invention realizes the cross-operating condition demagnetization fault diagnosis of the permanent magnet synchronous motor, and effectively solves the diagnosis problem of the demagnetization fault of the permanent magnet synchronous motor under cross-operating conditions. It not only helps to detect motor faults at an early stage and save maintenance costs, but also improves the reliability of the operation of the permanent magnet synchronous motor and provides a strong guarantee for its extended service life.
[0149] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0150] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for diagnosing demagnetization fault of a permanent magnet synchronous motor under cross-operating conditions, characterized in that: It includes steps S1 to S6: S1, collect the phase current data of the permanent magnet synchronous motor when it works under different working conditions; S2, divide the phase current data into a training set and a test set, and normalize them; S3, based on the data obtained in step S2, use the PCA algorithm to extract the principal components of the phase current to construct a new fault vector; S4, input the fault vector into the PNN model to obtain the PCA-PNN model; S5, confirm the fitness function, and use the GTO algorithm to optimize the PCA-PNN model to obtain the PCA-GTO-PNN model; S6, use the PCA-GTO-PNN model for fault diagnosis and output the classification result.
2. The method for diagnosing a permanent magnet synchronous motor demagnetization fault across operating conditions according to claim 1 is characterized in that: The phase current data of the permanent magnet synchronous motor collected in step S1 includes the normal motor, the overall demagnetized motor, and the single-pole demagnetized motor operating at a speed of 500-3000 r·min -1 , 260 sets of current data under load conditions of 1-10N·m.
3. The method for diagnosing a permanent magnet synchronous motor demagnetization fault across operating conditions according to claim 1 is characterized in that: In step S2, the training set and the test set are divided according to 11:
2.
4. The method for diagnosing a permanent magnet synchronous motor demagnetization fault across operating conditions according to claim 1 is characterized in that: In step S3, the PCA algorithm includes the following 4 steps: establish the initial feature matrix; calculate the correlation coefficient matrix; calculate the eigenvalues of the correlation coefficient matrix, and determine the principal component dimension with the cumulative contribution rate greater than 95%; calculate the principal components and construct the fault vector.
5. The method for diagnosing demagnetization fault of a permanent magnet synchronous motor under cross-operating conditions according to claim 1 is characterized in that: The GTO algorithm includes two stages: exploration and exploitation. The specific modeling steps are as follows: The mathematical model description of the exploration stage is: Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; M(u) is the position vector of the gorilla individual at the uth iteration; M(t) is the position vector of the gorilla individual at the tth iteration; M r (t) is a gorilla individual randomly selected at the tth iteration; GM r (t) is the candidate position vector of the gorilla randomly selected at the tth iteration; r1, r2, r3, rand are random values ranging from 0 to 1 updated in each iteration; p is a given parameter between 0 and 1; UB and LB represent the upper and lower limits of the variable respectively; C is the iteration coefficient; L is the parameter used to simulate the leadership of the silverback gorilla; H is the random position vector; C, L, and H in the above formula are calculated using the following formulas respectively: F = cos(2×r4)+1 L = C×l H = Z×M(t) Z = [-C, C] Where: t is the current iteration number; t max is the maximum number of iterations; F is the cosine function coefficient; l is a random value between -1 and 1; r4 is a random value between 0 and 1 updated in each iteration; Z is a random value in the range of -C to C in the problem dimension; After the exploration stage, compare the magnitudes of all GM(t + 1) and M(t). If GM(t + 1) < M(t) is satisfied, then update M(t) to GM(t + 1), and the optimal individual in this stage is regarded as the silverback gorilla; In the exploitation stage, there are two main behavioral patterns: the competition between following the silverback gorilla and adult females; the exploitation stage involves following the leadership and potential leadership changes. If C ≥ W, then choose the pattern of following the silverback gorilla. If C < W, then choose the pattern of competition between adult females. W is a parameter set before the optimization operation; The pattern of following the silverback gorilla is described by the following formula: GM(t+1)=L×Y×(M(t)-X S )+M(t) g=2 L Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; L is the parameter used to simulate the leadership of the silverback gorilla; M(t) is the position vector of the gorilla individual at the tth iteration; Y is the mean parameter; X S is the position vector of the silverback gorilla; GM mm (t) is the candidate position vector of the mth gorilla at the tth iteration; N is the total population; g is an exponential parameter with base 2; The pattern of competition between adult females is described by the following formula: GM(t+1)=X S -(X S ×Q-M(t)×Q)×A Q=2×r5-1 A = β×E Where: GM(t+1) is the candidate position vector of the gorilla individual at the t+1th iteration; M(t) is the position vector of the gorilla individual at the tth iteration; X S is the position vector of the silverback gorilla; Q is the parameter used to simulate the impact force; A is the coefficient vector for simulating the degree of violence; β is the parameter given before the optimization operation; r5,rand is a random value between 0 and 1; E is the evaluation coefficient; N1 is a random value in the normal distribution and the problem dimension; N2 is a random value in the normal distribution; After the exploitation stage, compare the magnitudes of all GM(t + 1) and M(t). If GM(t + 1) < M(t) is satisfied, then update M(t) to GM(t + 1), and regard the optimal solution obtained in the entire population as the silverback gorilla.
6. The method for diagnosing a permanent magnet synchronous motor demagnetization fault across operating conditions according to claim 5 is characterized in that: The PNN model consists of four layers: input layer, pattern layer, summation layer and output layer. Assume that the input test sample is x = (x1, x2, ..., x k ), the training sample of the pattern layer is x ij =(x 1j ,x 2j ,…,x ij ), the output is Typei; The first layer of the PNN model is the input layer, which is used to receive the feature vector of the test sample and directly transfer these features to the network. The number of neurons in the input layer corresponds one-to-one with the dimension of the feature vector; The second layer of the PNN model is the pattern layer, which is responsible for calculating the similarity between the input feature vector and each training category. The number of neurons in the pattern layer matches the total number of training sample categories. The input-output relationship of the pattern layer is determined by the following formula: Among them, δ ij (x) is the output of the pattern layer; x ij is the feature vector of the jth sample of the i-th category in the training sample; x is the feature vector of the predicted sample; k is the sample dimension; σ is the smoothing coefficient; The third layer of the PNN model is the summation layer, which is used to calculate the probability accumulation of a specific category to obtain the probability that the sample belongs to the fault of this category. The calculation method of the summation layer is calculated by the following formula, sum the pattern layer units in each category, where each category corresponds to a summation layer unit, and is only connected to the pattern layer units of this category: in, is the probability density function of x belonging to the i-th category; N i is the number of training samples in the i-th class; The fourth layer of the PNN model is the output layer. Based on the output of the summation layer, the neuron with the maximum posterior probability is selected as the output to determine the fault category of the motor. The fault category with the highest probability is identified through the output layer. The calculation formula of the probability density is: Among them, the smoothing coefficient σ in the PNN model is optimized by the GTO algorithm.
7. The method for diagnosing a permanent magnet synchronous motor demagnetization fault across operating conditions according to claim 6 is characterized in that: In step S5, the process of using the GTO algorithm to optimize the PCA-PNN model to obtain the PCA-GTO-PNN model is as follows: The recognition error of the PCA-PNN model is used as the fitness function of the GTO algorithm, and the optimized parameters of the GTO algorithm are used as the smoothing coefficients of the PCA-PNN model. First, the initial parameters of the GTO algorithm are set. The initial number of chimpanzees is set to 10, and the number of iterations is t. max Set it to 50, set W to 0.8, β to 3, and p to 0.
03. Then use the PCA-PNN model for pattern recognition and calculate the classification error. Through continuous iteration, the optimized parameters of the GTO algorithm are obtained. Finally, the optimized parameters are introduced into the PCA-PNN model as the smoothing coefficient σ to obtain the PCA-GTO-PNN model for subsequent fault diagnosis.
8. The method for diagnosing demagnetization fault of a permanent magnet synchronous motor under cross-operating conditions according to claim 7 is characterized in that: Step 6 specifically includes: Input training samples and test samples, use the PCA-GTO-PNN model to perform fault diagnosis, and output the final diagnosis results.
