A method for diagnosing and locating demagnetization fault of permanent magnet synchronous motor
By establishing a finite element model of a permanent magnet synchronous motor, acquiring current signals, and using a PNN network optimized by FFT transformation and SSA algorithm, fault diagnosis and location of the permanent magnet synchronous motor were realized. This solved the problem that the existing technology could not identify the number and location of demagnetization fault poles, thus improving the reliability and service life of the motor.
Patent Information
- Application Number
- CN202410006450.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-03
AI Technical Summary
In existing technologies, most demagnetization fault diagnosis of permanent magnet synchronous motors only focuses on the diagnosis of a single demagnetization fault, ignoring the number and location of the demagnetization faulty magnetic poles. This results in the inability to identify and correct the fault in a timely manner, which may cause equipment damage and economic losses.
By establishing a finite element model of a permanent magnet synchronous motor, acquiring current signals, extracting harmonics using FFT transformation, and combining a PNN network optimized by the SSA algorithm for fault diagnosis, the cosine similarity is calculated to locate the demagnetization fault, thus reducing the dependence on sensors.
It enables efficient diagnosis and location of faults in permanent magnet synchronous motors, reduces costs, improves motor reliability and service life, and saves maintenance costs.
Smart Images

Figure CN118035812B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor fault diagnosis technology, and in particular to a method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors. Background Technology
[0002] Permanent magnet synchronous motors are widely used in new energy vehicles, aerospace, transportation and other fields due to their simple structure, high efficiency, high power density and low noise. However, due to factors such as the operating environment and temperature, malfunctions are inevitable, which can affect the normal operation of the machine, or even burn it out, causing the entire system to fail and resulting in economic losses.
[0003] Currently, most research on fault diagnosis of permanent magnet synchronous motors (PMSMs) focuses solely on diagnosing demagnetization faults, neglecting the number of faulty poles and their location. If demagnetization faults in PMSMs are not identified and corrected in a timely manner, they can cause serious equipment and property damage. Therefore, research on fault diagnosis methods and the location of faulty poles is crucial for early detection of motor faults, saving maintenance costs, improving the reliability of PMSM operation, and extending its service life. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the existing technology and provide a method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors.
[0005] A method for diagnosing and locating demagnetization faults in a permanent magnet synchronous motor according to an embodiment of the present invention includes steps S1 to S6:
[0006] S1. Establish the finite element model of the permanent magnet synchronous motor and number the magnetic poles;
[0007] S2, by setting different magnetic pole demagnetization, collect motor branch current signals for two mechanical cycles, and establish a demagnetization fault location data feature sample library;
[0008] S3, by calculating the cosine similarity value between the uniform demagnetization fault and the feature sample library of demagnetization fault location data, the demagnetization fault location threshold is set.
[0009] S4 collects motor branch current signals in real time under different working conditions, uses FFT transformation to extract the 0.25th, 0.75th, 1st, 1.25th and 1.75th harmonics to construct fault vectors, and inputs them into the PNN network model optimized by the SSA algorithm for fault diagnosis.
[0010] S5, calculate the cosine similarity between the sample diagnosed as a local demagnetization fault and each sample in the demagnetization fault location data feature sample library;
[0011] S6 determines the number of demagnetizations by the magnitude of the cosine similarity and locates the demagnetized magnetic poles.
[0012] The method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors according to embodiments of the present invention has the following beneficial effects:
[0013] (1) The present invention uses current signals for fault diagnosis of permanent magnet synchronous motors, which can avoid the use of additional sensors and thus reduce costs;
[0014] (2) In this invention, the FFT transform is used to extract fault harmonics in the current, which can reduce the dimensionality of the sample and improve the efficiency of fault diagnosis.
[0015] (3) This invention uses the SSA algorithm to optimize the PNN network, which has high diagnostic accuracy;
[0016] (4) This invention can not only diagnose demagnetization faults, but also locate demagnetized magnetic poles and obtain the number of demagnetized magnetic poles. It effectively solves the problem of fault diagnosis and location of permanent magnet synchronous motors. It is of great significance for early detection of motor faults and saving maintenance costs, improves the reliability of permanent magnet synchronous motor operation and extends service life.
[0017] (5) This invention realizes the combination of algorithm diagnosis of demagnetization fault and demagnetization fault location, which improves the efficiency of fault diagnosis and location.
[0018] In addition, the method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors according to the above embodiments of the present invention may also have the following additional technical features:
[0019] Furthermore, in step S1, the permanent magnet synchronous motor model must satisfy the slot-to-pole ratio Q / 2p being an integer or 3 / 2, and be established using finite element software. The external circuit is used to split the circuit into branches, and the magnetic poles are numbered sequentially as 1, 2, 3...2p, where Q is the number of slots and p is the number of pole pairs.
[0020] Furthermore, step S2 specifically includes:
[0021] S2.1, Set the relative permeability Mu of the permanent magnet to 0.5 times that of a normal motor to simulate a 50% demagnetization fault state of a single pole;
[0022] S2.2, sequentially set the above-mentioned demagnetization state for each permanent magnet pole individually, while keeping the initial position of the motor consistent, and collect the branch current signal within two mechanical cycles, collecting a total of 2p sets of fault samples. j = 1, 2, 3... 2p, and the numbering is consistent with the numbering of the motor poles;
[0023] S2.3, Collect normal motor branch current data I h The residual value [y] between the faulty sample and the normal sample is calculated using the following formula.j The data was then normalized to obtain a feature sample library for demagnetization fault location data [Y]. j :
[0024]
[0025]
[0026] In the formula, I represents the branch current when the permanent magnet numbered j loses its magnetism. h [y] represents the normal motor branch current. j Let max|[y] represent the residual when the permanent magnet numbered j loses its magnetization. j | represents the maximum value of the residual, [Y] j This represents the feature sample of the j-th demagnetization fault location data.
[0027] Furthermore, the specific process for setting the demagnetization fault location threshold in step S3 is as follows:
[0028] S3.1, Set the relative permeability Mu of the permanent magnet to 0.1-0.9 times that of a normal motor to simulate a fault state of uniform demagnetization of 10%-90%;
[0029] S3.2, sequentially set all permanent magnets to the above demagnetization state, while keeping the initial position of the motor consistent, and collect the branch current signal at this time, collecting a total of 9 sets of uniform demagnetization fault samples. i = 1, 2, 3... 9;
[0030] S3.3, calculate the residual of uniform demagnetization fault using the following formula, and obtain the characteristic vector of uniform demagnetization fault by normalization. Then calculate its characteristics against the feature sample database of loss of excitation fault location data [Y]. j Cosine similarity;
[0031]
[0032] In the formula: n represents the amount of data collected, k represents the k-th data point, k = 1, 2, ..., n, [Y] jk This represents the k-th data point of the feature sample for locating the j-th demagnetization fault. CS represents the k-th data point of the feature vector of the i-th uniform demagnetization fault. ij The cosine similarity between the feature vector of the i-th uniform demagnetization fault and the feature sample of the location data of the j-th demagnetization fault is represented.
[0033] S3.4 will be greater than CS ij The number r with the maximum value th Set as the threshold for locating loss of magnetization faults.
[0034] Furthermore, step S4 specifically includes:
[0035] S4.1, collect 72 sets of branch current signals for two mechanical cycles of normal motors, 72 sets of branch current signals for two mechanical cycles of fault motors with uniform demagnetization of 10%-90%, and 144 sets of branch current signals for two mechanical cycles of fault motors with local demagnetization at different locations, magnetic poles and with different degrees of demagnetization.
[0036] S4.2, use FFT transformation to extract the 0.25th, 0.75th, 1st, 1.25th and 1.75th harmonics of the above branch current signal to construct a fault vector and label it. The normal motor is labeled as 1, the uniformly demagnetized motor is labeled as 2, and the locally demagnetized motor is labeled as 3. The locally demagnetized motor is also labeled with the demagnetized pole number for subsequent location verification.
[0037] S4.3, determine the fault vector training set and test set according to 3:1, that is, 54 sets of normal motors are used as the training set and 18 sets as the test set, 54 sets of uniform demagnetization motors are used as the training set and 18 sets as the test set, and 108 sets of local demagnetization motors are used as the training set and 36 sets as the test set.
[0038] S4.4 Input the above training set samples into the PNN network model optimized by SSA, and input the test set for verification to achieve fault classification.
[0039] Furthermore, in step S4, the SSA algorithm optimizes the PNN network as follows:
[0040] The accuracy of PNN is used as the fitness function of SSA, and the optimized parameters of SSA are used as the smoothing coefficient of PNN. First, the initial parameters of SSA are set: the initial number of sparrows is set to 10, the number of iterations t_max is set to 30, the safety value ST is set to 0.5, and the initial discoverer ratio is set to 20% of the number of sparrows. Then, training samples and test samples are input, and PNN is used for pattern recognition to calculate the classification accuracy. The optimized parameters of SSA are obtained through continuous iteration. Finally, the optimized parameters are used as the smoothing coefficient σ and substituted into PNN to obtain the PNN network model optimized by the SSA algorithm, which is used for subsequent fault diagnosis.
[0041] Furthermore, step S5 specifically includes:
[0042] Sample C, diagnosed by the SSA-PNN network model as a local demagnetization fault, m Feature sample library of demagnetization fault location data [Y] j The cosine similarity of each sample in the dataset is calculated using the following formula:
[0043]
[0044] In the formula: m is the number of samples of local demagnetization fault, C mk CS represents the k-th data point of the m-th local demagnetization fault sample. mj Let represent the cosine similarity between the m-th local demagnetization fault sample and the j-th demagnetization fault location data feature sample.
[0045] Furthermore, step S6 specifically includes:
[0046] The cosine similarity CS of each local demagnetization fault sample mj With fault threshold r th Compare the sizes, and set CS mj Greater than r th When the j-th magnetic pole is diagnosed with a demagnetization fault, CS mj Greater than r th The number of poles is taken as the number of demagnetized poles. Attached Figure Description
[0047] Figure 1 This is a flowchart illustrating the method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors according to the present invention.
[0048] Figure 2 This is a schematic diagram of the PNN network structure of the present invention.
[0049] Figure 3 This is a schematic diagram of the finite element model of the permanent magnet synchronous motor of the present invention.
[0050] Figure 4 This is a schematic diagram of the magnetic pole numbering of the permanent magnet synchronous motor of the present invention.
[0051] Figure 5 This is a schematic diagram showing the breakdown of the external circuit of the permanent magnet synchronous motor of the present invention.
[0052] Figure 6 This is a schematic diagram illustrating the relative permeability setting under a simulated 50% demagnetization fault state of a single pole according to the present invention.
[0053] Figure 7 This is a schematic diagram of the original signal of the demagnetization fault sample of the present invention.
[0054] Figure 8 This is a schematic diagram of a normal motor sample signal according to the present invention.
[0055] Figure 9 This is a schematic diagram of the residual signal of the demagnetization fault sample in this invention.
[0056] Figure 10 This is a schematic diagram of the feature sample signal of the demagnetization fault location data of the present invention.
[0057] Figure 11This is a schematic diagram of the original signal of the uniform demagnetization fault sample of the present invention.
[0058] Figure 12 This is a schematic diagram of the uniform demagnetization fault feature vector of the present invention.
[0059] Figure 13 This is a schematic diagram of the SSA iteration curve of the present invention.
[0060] Figure 14 This is a schematic diagram of the classification results of the PNN test set of the present invention.
[0061] Figure 15 This is a schematic diagram of the classification results of the SSA-PNN test set of the present invention.
[0062] Figure 16 This is a schematic diagram of the positioning results of the present invention. Detailed Implementation
[0063] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0064] Please see Figure 1 This invention provides a method for diagnosing and locating demagnetization faults in a permanent magnet synchronous motor, comprising steps S1 to S6. This embodiment utilizes a surface-mounted permanent magnet synchronous motor. Table 1 shows the parameters of the prototype permanent magnet synchronous motor. Figure 3 This is a finite element model of a permanent magnet synchronous motor. Figure 4 This is a diagram showing the pole numbering of a permanent magnet synchronous motor. Figure 5 This is the circuit diagram of a permanent magnet synchronous motor after branching. The permanent magnet synchronous motor model satisfies the condition that the slot-to-pole ratio Q / 2p is an integer.
[0065] Table 1
[0066] parameter numerical values parameter numerical values Rated power / kW 28.3 <![CDATA[Rated speed / r·min -1 > 1500 Rated voltage / V 345 Armature length / mm 200 Stator outer diameter / mm 230 Stator inner diameter / mm 149 Rotor outer diameter / mm 147 Rotor inner diameter / mm 60 Number of slots (Q) 48 Extreme number (2p) 8 Number of phases (m) 3 Number of parallel branches 2 Permanent magnet thickness / mm 4.5 Polar arc coefficient 0.87 Permanent magnet type XG196 / 96 Winding configuration Y-shaped
[0067] S2: By setting different magnetic pole demagnetization settings, the motor branch current signals are collected for two mechanical cycles to establish a demagnetization fault location data feature sample library.
[0068] S2.1: Set the relative permeability of the XG196 / 96 permanent magnet to 0.5 times that of a normal motor, i.e., Mu = 0.5, to simulate a 50% demagnetization fault in a single pole. Figure 6 As shown.
[0069] S2.2: Sequentially set the above demagnetization state for each permanent magnet pole individually. Each signal segment is acquired from 220ms to 300ms, for a total of 2 mechanical cycles. Figure 7 As shown, a total of 8 sets of fault samples were collected.
[0070] S2.3: Collect normal motor branch current data I h ,like Figure 8 As shown. Calculate the residual value [y] between the faulty sample and the normal sample. j (j=1,2,3…8), the residual values are as follows Figure 9 As shown. Normalization was then performed to obtain the feature sample library of demagnetization fault location data [Y]. j (j = 1, 2, 3…8), the normalized residual is as follows: Figure 10 As shown.
[0071] S3: Set the demagnetization fault location threshold by calculating the cosine similarity value between the uniform demagnetization fault and the feature sample library of demagnetization fault location data.
[0072] S3.1 Set the relative permeability of the permanent magnet to 0.1-0.9 times that of a normal motor, i.e., Mu = 0.1-0.9, to simulate a fault state of uniform demagnetization of 10%-90%.
[0073] S3.2 Sequentially set all permanent magnets to the aforementioned demagnetization state, and collect the branch current signal at this time. Each signal segment is collected from 220ms to 300ms, for a total of 2 mechanical cycles. Figure 11 As shown. A total of 9 groups of uniform demagnetization fault samples were collected.
[0074] S3.3 Calculate the residual of uniform demagnetization fault and normalize it, the result is as follows: Figure 12 As shown, the characteristic vector of uniform demagnetization fault is obtained. Then calculate its characteristics against the feature sample database of loss of excitation fault location data [Y]. j Cosine similarity CS of (j=1,2,3…8) ij (j=1,2,3…8,i=1,2,3…9), as shown in Table 2.
[0075] Table 2
[0076]
[0077] S3.4 From Table 2, we can see that CS ij (j=1,2,3…8,i=1,2,3…9) The maximum value is 0.67, therefore r can be chosen. th =0.68 is set as the demagnetization fault location threshold to avoid the impact of uniform demagnetization on location.
[0078] Table 3 shows the cosine similarity between the number and location of different demagnetized magnetic poles and the feature sample library of demagnetization fault location data when the degree of demagnetization is 90%.
[0079] Table 3
[0080]
[0081]
[0082] S4: Real-time acquisition of motor branch current signals under different operating conditions, using FFT transformation to extract the 0.25th, 0.75th, 1st, 1.25th, and 1.75th harmonics to construct fault vectors, which are then input into the PNN network model (SSA-PNN) optimized by the SSA algorithm for fault diagnosis.
[0083] The SSA algorithm is described as follows:
[0084] In SSA (Specialized Sparrow Strategies), individual sparrows are divided into finders and followers. Finders are responsible for locating food and providing the entire population with foraging areas and directions. Followers utilize the information provided by the finders to obtain food. Finders possess higher energy levels, enabling them to locate food-rich areas and lead the followers to hunt. Followers, on the other hand, have lower energy levels and must follow the finders to acquire food.
[0085] In SSA (Special Ability Search), discoverers with high fitness values prioritize acquiring food and provide foraging directions for their followers. Therefore, discoverers gain a larger foraging search area.
[0086] In each iteration, the position update formula for the discoverer can be described as follows:
[0087]
[0088] In the formula: t is the current iteration number; t max This represents the maximum number of iterations. This refers to the position information of the i-th sparrow in the j-th dimension when the iteration number is t+1; Let be the position information of the i-th sparrow in the j-th dimension when the number of iterations is t; α is a uniformly random number in (0, 1); R2 is the alarm value in [0, 1]; ST is the safety value in [0.5, 1]; Q is a random number that follows a normal distribution; L is a 1×d-dimensional matrix with all elements equal to 1. When R2 < ST, it means there are no predators around the population, and the discoverer can search widely for food; when R2 ≥ ST, it means that a sparrow has discovered a predator and sounded the alarm, at which point all sparrows must quickly fly to a safe place to forage.
[0089] The formula for updating the position of followers can be described as follows:
[0090]
[0091] In the formula: This represents the discoverer's current optimal position. Let A be the worst-case position currently held by the discoverer; A is a 1×d dimensional matrix whose elements are only equal to 1 or -1, and A + =A T (AA T ) -1 A T Let A be the transpose of matrix A, (AA) T ) -1 For (AA) T The inverse matrix of ). When i > n / 2, it means that the i-th follower cannot get food and has to go to other areas to hunt; when i ≤ n / 2, it means that the follower is currently in the optimal state of individual M. p They hunt for food in the surrounding area.
[0092] When danger arises, sparrows will move to a safe area. The position update formula can be described as follows:
[0093]
[0094] In the formula: The globally optimal position; β represents the worst-case position currently held by the discoverer; β is a parameter controlling the step size, with a mean of 0 and a variance of 1, following a normal distribution; K is a random number in [-1, 1] determining the sparrow's movement direction; f i f is the fitness value of the current individual. g f is the current globally optimal fitness value; w ε is the current worst global fitness value; ε is the minimum constant to avoid a denominator of 0. When f i >f g At that time, sparrows are on the periphery of the population and are more easily preyed upon; when f i =f g At that time, the sparrows in the middle of the population realized the danger and needed to move closer to their companions to reduce the possibility of being preyed upon.
[0095] The PNN algorithm is described as follows:
[0096] A PNN network typically consists of four layers: an input layer, a pattern layer, a summation layer, and an output layer. The PNN network structure is as follows: Figure 2 As shown, assume the input test sample is x = (x1, x2, ..., x...). k The training samples for the pattern layer are x. ij =(x 1j x 2j , ..., x ij The output is Typei.
[0097] The first layer of a PNN is the input layer, which receives the feature vectors of the test samples to be classified for faults and passes them to the network. The number of neurons in the input layer is the same as the dimension of the feature vectors. The second layer is the pattern layer, which calculates the similarity between the input feature vectors and the patterns of each class in the training set. The number of neurons in the pattern layer is the same as the number of classes in the training samples. Its input-output relationship can be determined by the following formula:
[0098]
[0099] In the formula, δ ij (x) represents the output of the pattern layer; x ij Let x be the feature vector of the j-th sample of class i in the training samples; let x be the feature vector of the predicted sample; k be the sample dimension; and σ be the smoothing coefficient.
[0100] The third layer is the summation layer, which calculates the cumulative probability of a certain class to obtain the probability of belonging to that class of fault. The summation layer is calculated by summing the pattern layer units in each class using the following formula. It's important to note that each class has only one summation layer unit, which connects only to the pattern layer units of its own class and not to pattern layer units of other classes.
[0101]
[0102] In the formula, Let N be the probability density function for x belonging to the i-th class; i is the number of training samples in the i-th class.
[0103] The fourth layer is the output layer. Its function is to select the neuron with the highest posterior probability as the output of the entire system based on the output of the summation layer. The category with the highest probability is the fault category of the motor.
[0104] Therefore, the formula for calculating the probability density can be obtained as follows:
[0105]
[0106] The smoothing coefficient σ in PNNs is usually set based on experience. If set improperly, it will affect the recognition accuracy. Therefore, to improve recognition accuracy, the SSA algorithm is used to optimize the smoothing coefficient σ in PNNs.
[0107] The process of optimizing the PNN algorithm using the SSA algorithm (SSA-PNN) is as follows:
[0108] Using the accuracy of PNN as the fitness function of SSA, and the optimized parameters of SSA as the smoothing coefficients of PNN, the initial parameters of SSA are first set, with the initial number of sparrows set to 10, and the number of iterations t. max The initial set is 30, the safety value ST is set to 0.5, and the initial discoverer ratio is set to 20% of the sparrow population. Then, training and test samples are input, and PNN is used for pattern recognition to calculate the classification accuracy. The optimized parameters for SSA are obtained through continuous iteration. Finally, the optimized parameters are used as a smoothing coefficient σ in the PNN to obtain the SSA-PNN network model, which is used for subsequent fault diagnosis.
[0109] In this embodiment, step S4 specifically includes:
[0110] S4.1 Using the above acquisition method, 72 sets of branch current signals for two mechanical cycles of a normal motor, 72 sets of branch current signals for two mechanical cycles of a fault motor with uniform demagnetization of 10%-90%, and 144 sets of branch current signals for two mechanical cycles of a fault motor with local demagnetization at different locations, magnetic poles, and different degrees of demagnetization were acquired respectively.
[0111] S4.2 The FFT transformation is used to extract the 0.25th, 0.75th, 1st, 1.25th and 1.75th harmonics of the above branch current signal to construct a fault vector, and labels are affixed. Normal motors are labeled as 1, uniformly demagnetized motors are labeled as 2, and locally demagnetized motors are labeled as 3. The locally demagnetized motors are also labeled with the demagnetized pole number for subsequent location verification.
[0112] S4.3 Determine the training and test sets of fault vectors at a ratio of 3:1, that is, 54 sets of normal motors are used as the training set and 18 sets as the test set, 54 sets of uniformly demagnetized motors are used as the training set and 18 sets as the test set, and 108 sets of locally demagnetized motors are used as the training set and 36 sets as the test set.
[0113] S4.4 Input the above samples into the PNN network, use the accuracy of PNN as the fitness function of SSA, and use the optimized parameters of SSA as the smoothing coefficients of PNN. First, set the initial parameters of SSA, with the initial number of sparrows set to 10, and the number of iterations t. max The initial set is 30, the safety value ST is set to 0.5, and the initial discoverer ratio is set to 20% of the sparrow population. Then, training and test samples are input, and PNN is used for pattern recognition. The classification accuracy is calculated, and the optimized parameters of SSA are obtained through continuous iteration. The optimized smoothing coefficient σ = 0.068. Finally, the optimized parameters are used as the smoothing coefficient and input into the PNN to obtain the SSA-PNN network model. The SSA iteration curve is shown below. Figure 13As shown, the SSA algorithm of this invention converges to the optimal value in less than 10 iterations. The data shows that the SSA algorithm of this invention has good convergence ability.
[0114] The above test set samples were input into the SSA-PNN model and validated using the test set. The results are compared with those of PNN, as shown in Table 4.
[0115] Table 4
[0116] algorithm accuracy PNN 88.89% SSA-PNN 100%
[0117] The relationship between the classification results of the PNN test set is as follows: Figure 14 As shown, the classification results of the SSA-PNN test set are as follows: Figure 15 As shown, this demonstrates that SSA-PNN has excellent classification performance for fault diagnosis.
[0118] S5: Calculate the cosine similarity between the samples diagnosed as local demagnetization faults and each sample in the demagnetization fault location data feature sample library. That is, calculate the cosine similarity between the samples C diagnosed as local demagnetization faults by the SSA-PNN network. m (m=1,2,3…36) A total of 36, which are compared with the feature sample library of demagnetization fault location data [Y]. j Cosine similarity (CS) is calculated for each sample in the dataset. mj Some of the calculation results are shown in Table 5.
[0119] Table 5
[0120]
[0121] S6: Calculate the cosine similarity CS in Table 5. mj With fault threshold r th =0.68 for comparison, CS mj Greater than r th When the j-th magnetic pole is diagnosed with a demagnetization fault, CS will be... mj Greater than r th The number of [elements] is used as the number of [demagnetizations]. Partial results are shown in Table 6, and the location results are as follows: Figure 16 As shown, only one location error occurred, with a location accuracy rate of 97.2%. The overall recognition and location accuracy rate was also 97.2%, demonstrating high diagnostic precision.
[0122] Table 6
[0123]
[0124] In summary, the method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors according to embodiments of the present invention has the following beneficial effects:
[0125] (1) The present invention uses current signals for fault diagnosis of permanent magnet synchronous motors, which can avoid the use of additional sensors and thus reduce costs;
[0126] (2) In this invention, the FFT transform is used to extract fault harmonics in the current, which can reduce the dimensionality of the sample and improve the efficiency of fault diagnosis.
[0127] (3) This invention uses the SSA algorithm to optimize the PNN network, which has high diagnostic accuracy;
[0128] (4) This invention can not only diagnose demagnetization faults, but also locate demagnetized magnetic poles and obtain the number of demagnetized magnetic poles. It effectively solves the problem of fault diagnosis and location of permanent magnet synchronous motors. It is of great significance for early detection of motor faults and saving maintenance costs, improves the reliability of permanent magnet synchronous motor operation and extends service life.
[0129] (5) This invention realizes the combination of algorithm diagnosis of demagnetization fault and demagnetization fault location, which improves the efficiency of fault diagnosis and location.
[0130] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0131] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for diagnosing and locating demagnetization fault of permanent magnet synchronous motor, characterized in that, Including steps S1 to S6: S1. Establish the finite element model of the permanent magnet synchronous motor and number the magnetic poles; S2, by setting different magnetic pole demagnetization, collect motor branch current signals for two mechanical cycles, and establish a demagnetization fault location data feature sample library; S3, by calculating the cosine similarity value between the uniform demagnetization fault and the feature sample library of demagnetization fault location data, the demagnetization fault location threshold is set. S4 collects motor branch current signals in real time under different working conditions, uses FFT transformation to extract the 0.25th, 0.75th, 1st, 1.25th and 1.75th harmonics to construct fault vectors, and inputs them into the PNN network model optimized by the SSA algorithm for fault diagnosis. S5, calculate the cosine similarity between the sample diagnosed as a local demagnetization fault and each sample in the demagnetization fault location data feature sample library; S6, determine the number of demagnetizations by the magnitude of the cosine similarity, and locate the demagnetized magnetic poles; The specific process for setting the demagnetization fault location threshold in step S3 is as follows: S3.1, Set the relative permeability Mu of the permanent magnet to 0.1-0.9 times that of a normal motor to simulate a fault state of uniform demagnetization of 10%-90%; S3.2, set the above off-line fault state to all permanent magnets in turn, keep the initial position of the motor consistent, collect the branch current signal at this time, collect 9 groups of uniform off-line fault samples , i =1,2,3...9; S3.3, calculate the residual of uniform demagnetization fault using the following formula, and obtain the characteristic vector of uniform demagnetization fault by normalization. Then calculate its characteristics against the loss of excitation fault location data feature sample library. Cosine similarity; In the formula: n This represents the amount of data collected for the signal, where k represents the k-th data point, and k = 1, 2, ..., n. This represents the k-th data point of the feature sample for locating the j-th demagnetization fault. This represents the k-th data point in the feature vector of the i-th uniform demagnetization fault. The cosine similarity between the feature vector of the i-th uniform demagnetization fault and the feature sample of the location data of the j-th demagnetization fault is represented. S3.4 will be greater than The number of the maximum value Set the demagnetization fault location threshold; Step S5 specifically includes: Samples diagnosed by the SSA-PNN network model as local demagnetization faults Feature sample library of demagnetization fault location data The cosine similarity of each sample in the dataset is calculated using the following formula: In the formula: m is the number of samples of local demagnetization fault. This represents the k-th data point of the m-th local demagnetization fault sample. The cosine similarity is represented between the m-th local demagnetization fault sample and the j-th demagnetization fault location data feature sample. Step S6 specifically includes: The cosine similarity of each local demagnetization fault sample With fault threshold Compare the sizes, Greater than A demagnetization fault was detected in the j-th magnetic pole. Greater than The number of poles is taken as the number of demagnetized poles.
2. The method for diagnosing and locating demagnetization faults in permanent magnet synchronous motors according to claim 1, characterized in that, In step S1, the permanent magnet synchronous motor model must satisfy the slot-to-pole ratio Q / 2p being an integer or 3 / 2, and be established using finite element software. The external circuit is used to split the circuit into branches, and the magnetic poles are numbered sequentially as 1, 2, 3...2p, where Q is the number of slots and p is the number of pole pairs.
3. The method for diagnosing and locating demagnetization faults in a permanent magnet synchronous motor according to claim 2, characterized in that, Step S2 specifically includes: S2.1, Set the relative permeability Mu of the permanent magnet to 0.5 times that of a normal motor to simulate a 50% demagnetization fault state of a single pole; S2.2, sequentially set the above-mentioned demagnetization fault state for each permanent magnet pole individually, while keeping the initial position of the motor consistent, and collect the branch current signal within two mechanical cycles, collecting a total of 2p sets of fault samples. , j =1,2,3...2 p And the numbering is consistent with the motor pole numbering; S2.3, Collect normal motor branch current data The residual values between faulty samples and normal samples are calculated using the following formula. The data was then normalized to obtain a feature sample library of demagnetization fault location data. : In the formula, This represents the branch current when the permanent magnet numbered j loses its magnetism. This represents the normal motor branch current. This represents the residual when the permanent magnet numbered j loses its magnetization. This represents the maximum value of the residual. This represents the feature sample of the j-th demagnetization fault location data.
4. The method for diagnosing and locating demagnetization faults in a permanent magnet synchronous motor according to claim 1, characterized in that, Step S4 specifically includes: S4.1, collect 72 sets of branch current signals for two mechanical cycles of normal motors, 72 sets of branch current signals for two mechanical cycles of fault motors with uniform demagnetization of 10%-90%, and 144 sets of branch current signals for two mechanical cycles of fault motors with local demagnetization at different locations, magnetic poles and with different degrees of demagnetization. S4.2, use FFT transformation to extract the 0.25th, 0.75th, 1st, 1.25th and 1.75th harmonics of the above branch current signal to construct a fault vector and label it. The normal motor is labeled as 1, the uniformly demagnetized motor is labeled as 2, and the locally demagnetized motor is labeled as 3. The locally demagnetized motor is also labeled with the demagnetized pole number for subsequent location verification. S4.3, determine the fault vector training set and test set according to 3:1, that is, 54 sets of normal motors are used as the training set and 18 sets as the test set, 54 sets of uniform demagnetization motors are used as the training set and 18 sets as the test set, and 108 sets of local demagnetization motors are used as the training set and 36 sets as the test set. S4.4 Input the above training set samples into the PNN network model optimized by SSA, and input the test set for verification to achieve fault classification.
5. The method for diagnosing and locating demagnetization faults in a permanent magnet synchronous motor according to claim 4, characterized in that, In step S4, the SSA algorithm optimizes the PNN network as follows: The accuracy of the PNN is used as the fitness function of the SSA, and the optimized parameters of the SSA are used as the smoothing coefficients of the PNN. First, the initial parameters of the SSA are set: the initial number of sparrows is set to 10, the number of iterations t_max is set to 30, the safety value ST is set to 0.5, and the initial discoverer ratio is set to 20% of the number of sparrows. Then, training and test samples are input, and the PNN is used for pattern recognition to calculate the classification accuracy. The optimized parameters of the SSA are obtained through continuous iteration, and finally, the optimized parameters are used as the smoothing coefficients. The data is then fed into the PNN to obtain a PNN network model optimized by the SSA algorithm, which is used for subsequent fault diagnosis.
