A method for constructing a demagnetization fault diagnosis model for a permanent magnet drive motor based on visual images, and a fault diagnosis method and system
By converting one-dimensional time domain signals into two-dimensional Fourier spectrum diagrams and integrating global and local features, a softmax classifier is constructed, which solves the problems of signal processing complexity and low feature efficiency in motor demagnetization fault diagnosis, and achieves a better Accurate fault diagnosis.
Patent Information
- Application Number
- CN202111668865.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the current technology for motor demagnetization fault diagnosis, signal preprocessing is complex and highly professional, and global feature extraction cannot be applied to image occlusion and rotation, and local features cannot take into account comprehensive features, resulting in low feature efficiency.
Convert the one-dimensional time domain signal into a two-dimensional Fourier spectrogram, extract global and local features and fuse them, build a softmax classifier for fault diagnosis, and use the characteristics of the two-dimensional Fourier spectrogram to classify fault types.
It simplifies the signal processing process, improves the accuracy and effectiveness of fault feature extraction, overcomes the shortcomings of single feature extraction, and improves the diagnostic effect.
Smart Images

Figure CN114282580B
Abstract
Description
Technical Field
[0001] The present invention relates to a motor demagnetization fault diagnosis technology, and in particular to a method for constructing a permanent magnet drive motor demagnetization fault diagnosis model based on visual images, and a fault diagnosis method and system, which can be especially applied to electric vehicles. Background Art
[0002] my country's new energy vehicle industry has gone through 20 years of development. my country has become the world's largest producer and consumer of new energy vehicles. Among them, the scale of pure electric vehicles accounts for more than 50% of the world, ranking first in the world, and the overall level is internationally advanced. With the continuous improvement of the intelligence and integration of new energy vehicles, their internal structure is becoming increasingly complex. In the past two years, the safety accidents of new energy vehicles have been increasing. The industry has gradually shifted from "mileage anxiety" to "safety anxiety", and safety issues have become one of the core issues that need to be solved in the development of new energy vehicles. In May 2020, the Ministry of Industry and Information Technology successively issued three mandatory national standards, namely "Safety Requirements for Electric Vehicles", "Safety Requirements for Electric Buses", and "Safety Requirements for Power Batteries for Electric Vehicles", which clearly put forward the safety technical requirements for new energy vehicles.
[0003] The power of electric vehicles is the motor. The permanent magnet drive motor uses permanent magnets to generate the motor magnetic field. It has a simple structure, high efficiency and control accuracy, and is widely used in electric vehicles, aerospace, wind power generation and other fields. Domestic and international electric vehicles are mostly powered by permanent magnet synchronous motors. The magnetic steel sheets of permanent magnet drive motors are mostly made of neodymium iron boron permanent magnet materials, which have a low Curie temperature. Therefore, overload of the motor and damage to the cooling system will lead to magnetic loss of the permanent magnet, which is very likely to cause demagnetization of the permanent magnet. Demagnetization failure will aggravate torque pulsation and motor loss, seriously reduce vehicle performance, and in severe cases cause property damage and casualties.
[0004] At present, the state signals used for demagnetization fault diagnosis include motor stator current, voltage, torque and magnetic flux. The changes in the above state signals are all indirectly affected by the permanent magnet demagnetization fault and are easily interfered by other faults. The motor state signal not only contains fault features, but also is mixed with redundant signals and other interference signals. Therefore, the extraction of fault features is particularly important in motor fault diagnosis. Traditional methods focus on one-dimensional features in the time domain and frequency domain, which requires complex and professional signal processing knowledge. Expanding the state signal to a two-dimensional image will be more conducive to fault diagnosis. However, traditional methods either only use global feature extraction methods to extract image features, or only use local feature extraction methods to extract features, but both have certain defects. For example, global feature extraction cannot be applied to image occlusion, rotation, etc., and local features cannot take into account the problem of low feature efficiency caused by comprehensive features.
[0005] In summary, the existing diagnostic methods have the following technical problems:
[0006] 1) In traditional feature extraction based on one-dimensional time domain or frequency domain signals, signal preprocessing is complex and requires strong professionalism.
[0007] 2) Global feature extraction cannot be applied to image occlusion, rotation, etc., and local features cannot take into account comprehensive features, resulting in low feature efficiency.
[0008] Therefore, there is an urgent need to study a more accurate and effective permanent magnet drive motor demagnetization fault diagnosis method and system. Summary of the invention
[0009] The purpose of the present invention is to solve at least some of the technical problems existing in the above-mentioned prior art, and further provide a method for constructing a demagnetization fault diagnosis model of a permanent magnet drive motor based on visual images, and a fault diagnosis method and system. The method of the present invention selects to extract the leakage magnetic signal of the faulty motor as the original signal, and converts the one-dimensional time domain signal into a two-dimensional image, that is, a two-dimensional Fourier spectrum diagram, to enrich the fault signal characteristics; in addition, the global features and local features are integrated, effectively overcoming the above two problems existing in the prior art.
[0010] On the one hand, the present invention provides a method for constructing a demagnetization fault diagnosis model of a permanent magnet drive motor based on visual images, which includes: signal acquisition, converting the acquired signal into a two-dimensional image, extracting and fusing the global features and local features of the two-dimensional image, and constructing a fault diagnosis classifier using the fused features, as follows:
[0011] Step 1: Collect leakage magnetic signals of the faulty motor under various faults, where the leakage magnetic signals are one-dimensional time domain signals;
[0012] Step 2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0013] Step 3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion;
[0014] Step 4: Use the fused features as the input of the fault diagnosis classifier, and the fault type as the output of the fault diagnosis classifier. Use the fused features of various faults of known fault types to perform network training to obtain the fault diagnosis classifier.
[0015] The classifier is applied to the demagnetization fault diagnosis of a permanent magnet synchronous motor.
[0016] The reason why the present invention selects the leakage magnetic signal as the original signal for fault diagnosis is that the leakage magnetic signal can directly reflect the demagnetization fault. Compared with other signals such as voltage and current that indirectly reflect the demagnetization fault, it can improve the effectiveness of the fault characteristics and is less affected by other faults. Secondly, it is generally achieved by measuring the leakage magnetic signal outside the motor casing, so there is no need to disassemble the motor and no human interference will be introduced.
[0017] Furthermore, the present invention converts the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram, considering that performing a two-dimensional Fourier transform in an image composed of a one-dimensional signal can more effectively reflect the characteristics of the fault data after being converted into an image, which is beneficial to fault diagnosis. The present invention converts a one-dimensional signal into an image and then uses the spectrum diagram after Fourier transform for fault diagnosis, which can remove the influence of the one-dimensional signal amplitude and only extract features in the frequency domain of the image.
[0018] Further optionally, in step 3, an autoencoder and a scale-invariant feature transformation are respectively used to extract global features and local features of the two-dimensional Fourier spectrum graph.
[0019] The present invention finds that for the two-dimensional Fourier spectrum diagram, neither a single local feature nor a global feature can obtain an ideal demagnetization fault diagnosis, while the fusion of global features and local features can extract more effective fault features in the two-dimensional Fourier spectrum diagram, thereby obtaining a better diagnostic effect, especially in the automotive field.
[0020] Further optionally, when extracting the local features of the two-dimensional Fourier spectrum graph using scale-invariant feature transformation, feature points are searched in different scale spaces;
[0021] Among them, the scale space L(x, y, σ) of the image is the convolution of the fuzzy Gaussian and the two-dimensional Fourier spectrum map, expressed as:
[0022] L(x,y,σ)=G(x,y,σ)*I(x,y)
[0023] The feature points are expressed as:
[0024] D(x,y,σ)=(G(x,y,kσ)-G(x,y,σ))*I(x,y)
[0025] Where D(x, y, σ) is the feature point corresponding to the element I(x, y) on the two-dimensional Fourier spectrum graph, G(x, y, σ) is the Gaussian fuzzy representation of the element I(x, y) on the two-dimensional Fourier spectrum graph, k is the calculation constant, and σ is the standard deviation of the normal distribution;
[0026] Each feature point is assigned a reference direction, which is expressed as:
[0027] θ(x, y) = tan-1 ((L(x,y+1)-L(x,y+1)) / (L(x+1,y)-L(x-1,y)))
[0028] Where θ(x, y) represents the reference direction and the function L() represents the scale space value.
[0029] Further optionally, when converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram in step 2, firstly, N×N points greater than twice the motor operation during data acquisition are taken from the magnetic flux leakage signal to form a two-dimensional matrix f(x, y), and then converted into a two-dimensional spectrum diagram H(v, p) through a two-dimensional Fourier transform, where v and p are respectively the horizontal and vertical coordinates of the frequency domain coordinates in the two-dimensional spectrum diagram of the image;
[0030] Among them, the two-dimensional Fourier transform formula is:
[0031]
[0032] Among them, the frequency origin is translated to the center, and the translation formula is:
[0033]
[0034] The two-dimensional Fourier spectrum diagram I(x, y) and the two-dimensional spectrum diagram H(v, p) mentioned above have the same meaning and can both represent the Fourier spectrum diagram.
[0035] Further optionally, the fault diagnosis classifier adopts a softmax classifier, and the fused features are input into the softmax classifier to obtain a classification probability value, the sum of the classification probability values of various types of faults is 1, and the classification probability value is expressed as:
[0036]
[0037] Among them, y i Represents the sofmax classifier input, n represents its dimension, and e is the natural base.
[0038] Commonly used intelligent classification models include support vector machines, decision trees, neural networks, etc. The above classification models can achieve better diagnostic results. For the fusion features of the present invention, the above existing network can also be used to build a classifier. The construction process has not been optimized and can refer to the existing technology.
[0039] However, the present invention further considers that the internal parameters and hyperparameters of the above-mentioned network models affect their performance. And for different classification objects, the hyperparameters of the classification model are different. Therefore, for different fault diagnoses, a professional and complex hyperparameter optimization and adjustment process is often required, such as the maximum number of splits of a decision tree or the box constraints of a support vector machine. Although there are advanced neural networks with good mobility, most of them have very deep network layers, a long training process, and poor transparency and interpretability. Taking into account the shortcomings of the above-mentioned network, in order to further improve the performance of the fault diagnosis classifier of the present invention, the present invention further considers providing the above-mentioned softmax classifier.
[0040] Among them, the Softmax classifier is generally used as the last layer of a convolutional neural network or other complex neural networks with a large number of layers for classification. It has a simple structure and strong interpretability. The poor transparency and analytical properties in complex neural networks are mainly caused by the pooling layer, connection layer, etc. in the middle layer. Under the combined features, the softmax classifier can achieve very good results, simplify the diagnosis process, and increase the interpretability of the diagnosis process. After converting the one-dimensional signal to a two-dimensional Fourier spectrum diagram, the present invention only focuses on the frequency domain features of the leakage magnetic signal after the fault, which simplifies the signal processing process and highlights the fault characteristics. Combined with the global features and local features, effective features have been obtained. Therefore, the use of softmax, a classifier with fewer parameters and strong interpretability, can further simplify the diagnosis process.
[0041] In a second aspect, the present invention provides a permanent magnet drive motor demagnetization fault diagnosis method based on the above-mentioned fault diagnosis model construction method, which includes: construction of a fault diagnosis classifier and fault diagnosis based on the fault diagnosis classifier, specifically as follows:
[0042] S1: Collecting leakage magnetic signals of the faulty motor under various faults, wherein the leakage magnetic signals are one-dimensional time domain signals;
[0043] S2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0044] S3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion;
[0045] S4: The fused features are used as the input of the fault diagnosis classifier, and the fault type is used as the output of the fault diagnosis classifier. The fused features of various faults of known fault types are used to perform network training to obtain the fault diagnosis classifier;
[0046] S5: Obtain the magnetic flux leakage signal of the permanent magnet synchronous motor to be diagnosed, and perform feature extraction and fusion according to steps S2-S3, input the fused features into the fault diagnosis classifier, and obtain the fault diagnosis result.
[0047] In a third aspect, the present invention provides a system based on the permanent magnet drive motor demagnetization fault diagnosis model construction method or the permanent magnet drive motor demagnetization fault diagnosis method, which comprises:
[0048] A signal acquisition module is used to collect / obtain leakage magnetic signals of the faulty motor under various faults, wherein the leakage magnetic signals are one-dimensional time domain signals;
[0049] An image conversion module, used for converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0050] A feature extraction module, used to extract global features and local features of the two-dimensional Fourier spectrum graph;
[0051] Feature fusion module, used to fuse global features and local features;
[0052] A fault diagnosis classifier construction module is used to use the fused features as the input of the fault diagnosis classifier, the fault type as the output of the fault diagnosis classifier, and to perform network training using the fused features of various faults of known fault types to obtain the fault diagnosis classifier;
[0053] The diagnosis module is used to perform fault diagnosis by using a fault diagnosis classifier and fusion features corresponding to the permanent magnet synchronous motor to be diagnosed to obtain a fault diagnosis result.
[0054] In a fourth aspect, the present invention provides an electronic terminal comprising a processor and a memory connected to each other, wherein the processor is programmed or configured to execute the steps of the permanent magnet synchronous motor demagnetization fault diagnosis model construction method or the permanent magnet synchronous motor demagnetization fault diagnosis method.
[0055] In a fifth aspect, the present invention provides a system based on the permanent magnet drive motor demagnetization fault diagnosis model construction method or the permanent magnet drive motor demagnetization fault diagnosis method, wherein the system is an electric vehicle system, comprising: a vehicle monitoring system, CAN communication, a vehicle drive control system, a magnetic flux sensor, and a drive motor; wherein the drive motor is a permanent magnet drive motor, the vehicle monitoring system sends a control instruction to the vehicle drive control system through CAN communication, and the vehicle drive control system controls the drive motor to enable the electric vehicle to run;
[0056] Among them, the flux sensor measures the leakage magnetic signal on the surface of the drive motor and transmits the signal to the vehicle drive control system. The vehicle drive control system loads or calls the fault diagnosis classifier generated by the above method, and then uses the fault diagnosis classifier and the fusion features corresponding to the permanent magnet synchronous motor to be diagnosed to perform fault diagnosis to obtain the fault diagnosis result.
[0057] In a sixth aspect, the present invention provides a readable storage medium, wherein the readable storage medium stores a computer program programmed or configured to execute the method for constructing a demagnetization fault diagnosis model of a permanent magnet synchronous motor or a computer program for the method for diagnosing demagnetization fault of a permanent magnet synchronous motor.
[0058] Beneficial Effects
[0059] 1. The present invention directly converts the motor status signal into a two-dimensional Fourier spectrum diagram, showing more effective high-dimensional fault features and avoiding complex and professional signal processing.
[0060] 2. The present invention innovatively proposes a global and local feature fusion extraction method, which makes up for the shortcomings of single global features and local features and improves the diagnostic effect.
[0061] 3. The present invention proposes to use a softmax classifier for demagnetization fault diagnosis. The classifier has only one layer, fast calculation speed, simple structure and strong interpretability. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 Schematic diagram of a demagnetization fault system of a permanent magnet drive motor for an electric vehicle in an embodiment of the present invention.
[0063] Figure 2 It is a schematic diagram of a demagnetization fault diagnosis method for a permanent magnet drive motor for an electric vehicle based on visual images according to an embodiment of the present invention.
[0064] Figure 3 It is a two-dimensional Fourier spectrum diagram of three demagnetization fault motors in the embodiment of the present invention.
[0065] Figure 4 It is a fusion feature map of global features and local features in the embodiment of the present invention.
[0066] Figure 5 It is a schematic diagram of softmax in an embodiment of the present invention. DETAILED DESCRIPTION
[0067] The present invention will be further described below in conjunction with the accompanying drawings, and the purpose and effect of the present invention will become more obvious. It is understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It is also necessary to explain that, for the convenience of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all structures.
[0068] This embodiment takes the demagnetization fault diagnosis of a driving motor of an electric vehicle as an example to explain the present invention in detail. Figure 1 Schematic diagram of a permanent magnet drive motor demagnetization fault system for electric vehicles provided by an embodiment of the present invention. Figure 1As shown, the system includes: the vehicle monitoring system 1 sends control instructions to the vehicle drive control system 3 through CAN communication 2, and the vehicle drive control system 3 controls the drive motor 5 to make the electric vehicle run. For fault diagnosis, the overall monitoring system 1 integrates the display of fault diagnosis results, and all algorithms and calculation processes of fault diagnosis are in the vehicle drive control system 3. The magnetic flux sensor 4 is used to measure the leakage magnetic signal on the surface of the drive motor 5, and the signal is transmitted to the vehicle drive control system 3. The system 3 realizes the fault diagnosis of the motor based on the demagnetization fault diagnosis method of the permanent magnet drive motor for electric vehicles with visual images, and displays the diagnosis results to the user in the vehicle monitoring system 1.
[0069] Embodiment 1:
[0070] like Figure 2 As shown, this embodiment is applied to a permanent magnet drive motor demagnetization fault diagnosis method and system based on visual images for electric vehicles, including signal acquisition, one-dimensional signal conversion to two-dimensional image, autoencoder image feature extraction and softmax classifier. Among them, this embodiment chooses to build a softmax classifier. It should be understood that the softmax classifier is the best example of the present invention, but the present invention is not limited to this. It is also feasible to choose other classification network models without departing from the concept of the present invention.
[0071] This embodiment provides a permanent magnet drive motor demagnetization fault diagnosis method based on visual images, comprising the following steps:
[0072] 1) Collect the one-dimensional leakage magnetic signal of the motor as the original signal for fault diagnosis, and convert the original signal into a two-dimensional Fourier spectrum.
[0073] Among them, according to Figure 1 System diagram, leakage magnetic signal collection for three states of electric vehicle drive motor, two demagnetization faults (demagnetization fault 1 (demagnetization 30%) and demagnetization fault 2 (demagnetization 100%)) and one normal motor, at 1000r / min, a non-contact AC magnetic sensor is used to measure the leakage magnetic signal on the motor surface.
[0074] Then, based on the two-dimensional Fourier transform, the leakage magnetic signals of the three motors under various and variable working conditions are converted into a two-dimensional Fourier spectrum image data set that can be used for fault diagnosis, realizing the expansion of the one-dimensional time domain leakage magnetic signal to a two-dimensional image. Figure 3 The two-dimensional Fourier spectrum images of the variable speed of the electric vehicle drive motor in three states when it is no-load.
[0075] Among them, the collected leakage magnetic field time domain signal is taken at N×N points at a frequency greater than twice the motor running frequency during data collection to form a two-dimensional matrix f(x,y), and then converted into a two-dimensional spectrum diagram H(v,p) through a two-dimensional Fourier transform. The two-dimensional Fourier transform formula is:
[0076]
[0077] Shift the frequency origin to the center, the shift formula is:
[0078]
[0079] 2) The autoencoder and scale-invariant feature transform (SIFT) method are used to extract the global and local features of the two-dimensional Fourier spectrum respectively, and then feature fusion is performed.
[0080] In this embodiment, an autoencoder and a scale-invariant feature transform (SIFT) method are used to extract global and local features of a two-dimensional Fourier spectrum graph respectively, and feature fusion is performed. Figure 4 There are two feature extraction graphs. The extraction process includes:
[0081] 2.1) Using autoencoders to extract global features of two-dimensional Fourier spectrograms;
[0082] 2.2) The scale-invariant feature transform (SIFT) method is used to extract local features of the two-dimensional Fourier spectrum.
[0083] 2.3) Fusion of global features and local features There are various fusion techniques, and the present invention does not impose any specific restrictions on them.
[0084] About using autoencoders to extract global features of two-dimensional Fourier spectrograms:
[0085] The present invention adopts a two-layer autoencoder to extract the global features of a two-dimensional Fourier spectrum graph. The autoencoder is also a neural network. The settings that need to be made include the maximum number of convolutions, L2 network weight regularization parameters, sparse regularization controller parameters, sparse regularization term parameters, and whether to set the data to be scaled.
[0086] About the use of Scale Invariant Feature Transform (SIFT) method to extract local features of two-dimensional Fourier spectrum;
[0087] Among them, the SIFT method is to find feature points in different scale spaces, and the acquisition of scale space needs to be achieved using Gaussian blur. When the two-dimensional template is m*n, the Gaussian blur calculation formula of the element I(x,y) on the image is:
[0088]
[0089] Where σ is the standard deviation of the normal distribution. The convolution of the fuzzy Gaussian and the original image I(x,y) is the scale space of the image L(x,y,σ), and the specific formula is
[0090] L(x,y,σ)=G(x,y,σ)*I(x,y) (4)
[0091] Then perform extreme value detection to determine the feature points
[0092] D(x,y,σ)=(G(x,y,kσ)-G(x,y,σ))*I(x,y) (5)
[0093] Where k is a calculation constant. In order to make the descriptor rotation invariant, it is necessary to use the local features of the image to assign a reference direction to each key point. The direction is calculated as follows:
[0094] θ(x,y)=tan -1 ((L(x,y+1)-L(x,y+1)) / (L(x+1,y)-L(x-1,y))) (6)
[0095] 3) Use softmax classifier for fault diagnosis. The principle diagram of softmax is as follows Figure 5 As shown in the figure, the feature values extracted by the autoencoder and SIFT are all values after complex weighting and nonlinear processing. This value can be any value and needs to be calculated and processed by the softmax classifier to obtain the classification probability value. The sum of each probability value is 1. The calculation formula is:
[0096]
[0097] Among them, y i represents the input of the sofmax classifier, and n represents its dimension. For multi-classification, the cross entropy loss function is also needed to determine the closeness between the actual output and the expected output. The cross entropy loss function is:
[0098]
[0099] where t i Represents the true value.
[0100] Based on the above theoretical statements, a diagnostic model (fault diagnosis classifier) is constructed that can be used to realize demagnetization fault diagnosis of permanent magnet synchronous motors, and then based on the fault diagnosis classifier, demagnetization fault diagnosis of the motor can be realized.
[0101] 4) Obtain the leakage magnetic signal of the permanent magnet synchronous motor to be diagnosed, and perform feature extraction and fusion according to the method of 1)-2), input the fused features into the fault diagnosis classifier to obtain the fault diagnosis result.
[0102] Among them, this embodiment takes electric vehicles as an example. It should be understood that the method of the present invention can also be applied to motor leakage fault diagnosis in other fields without departing from the concept of the present invention.
[0103] Embodiment 2:
[0104] This embodiment provides a system based on the above-mentioned fault diagnosis model construction method or fault diagnosis method, which includes:
[0105] The signal acquisition module is used to collect / obtain the leakage magnetic signal of the faulty motor under various faults. The leakage magnetic signal is a one-dimensional time domain signal. The signal acquisition module can be implemented as a software module, that is, used to obtain the leakage magnetic signal collected by hardware, or it can be implemented in hardware, such as a flux sensor.
[0106] An image conversion module, used for converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0107] A feature extraction module, used to extract global features and local features of the two-dimensional Fourier spectrum graph;
[0108] Feature fusion module, used to fuse global features and local features;
[0109] A fault diagnosis classifier construction module is used to use the fused features as the input of the fault diagnosis classifier, the fault type as the output of the fault diagnosis classifier, and to perform network training using the fused features of various faults of known fault types to obtain the fault diagnosis classifier;
[0110] The diagnosis module is used to perform fault diagnosis by using a fault diagnosis classifier and fusion features corresponding to the permanent magnet synchronous motor to be diagnosed to obtain a fault diagnosis result.
[0111] It should be understood that the specific implementation process of the above-mentioned unit modules refers to the method content, and the present invention will not be specifically repeated here, and the division of the above-mentioned functional module units is only a division of logical functions. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. At the same time, the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0112] Embodiment 3:
[0113] This embodiment provides an electronic terminal, including a processor and a memory connected to each other, wherein the processor is programmed or configured to execute the steps of the permanent magnet synchronous motor demagnetization fault diagnosis model construction method or the permanent magnet synchronous motor demagnetization fault diagnosis method.
[0114] Wherein, when executing the method for constructing a permanent magnet synchronous motor demagnetization fault diagnosis model, the following steps are specifically performed:
[0115] Step 1: Collect the leakage magnetic signal of the faulty motor under various faults, wherein the leakage magnetic signal is a one-dimensional time domain signal;
[0116] Step 2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0117] Step 3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion;
[0118] Step 4: Use the fused features as the input of the fault diagnosis classifier, and the fault type as the output of the fault diagnosis classifier. Use the fused features of various faults of known fault types to perform network training to obtain the fault diagnosis classifier.
[0119] Wherein, when executing the permanent magnet synchronous motor demagnetization fault diagnosis method, specifically performing:
[0120] S1: Collecting leakage magnetic signals of the faulty motor under various faults, wherein the leakage magnetic signals are one-dimensional time domain signals;
[0121] S2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0122] S3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion;
[0123] S4: The fused features are used as the input of the fault diagnosis classifier, and the fault type is used as the output of the fault diagnosis classifier. The fused features of various faults of known fault types are used to perform network training to obtain the fault diagnosis classifier;
[0124] S5: Obtain the magnetic flux leakage signal of the permanent magnet synchronous motor to be diagnosed, and perform feature extraction and fusion according to steps S2-S3, input the fused features into the fault diagnosis classifier, and obtain the fault diagnosis result.
[0125] For the specific implementation process of each step, please refer to the description of the above method.
[0126] It should be understood that in the embodiments of the present invention, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the type of device.
[0127] Embodiment 4:
[0128] This embodiment provides a fault diagnosis system, which is an electric vehicle system, including: a vehicle monitoring system, CAN communication, a vehicle drive control system, a magnetic flux sensor, and a drive motor; wherein the drive motor is a permanent magnet drive motor, the vehicle monitoring system sends a control instruction to the vehicle drive control system through CAN communication, and the vehicle drive control system controls the drive motor to make the electric vehicle run;
[0129] Among them, the flux sensor measures the leakage magnetic signal on the surface of the drive motor and transmits the signal to the vehicle drive control system. The vehicle drive control system loads or calls the fault diagnosis classifier generated by the method described in the present invention, and then uses the fault diagnosis classifier and the fusion features corresponding to the permanent magnet synchronous motor to be diagnosed to perform fault diagnosis to obtain a fault diagnosis result.
[0130] Embodiment 5:
[0131] This embodiment provides a readable storage medium, in which a computer program programmed or configured to execute the method for constructing a demagnetization fault diagnosis model of a permanent magnet synchronous motor or the computer program for the method for diagnosing demagnetization fault of a permanent magnet synchronous motor is stored.
[0132] Wherein, when executing the method for constructing a permanent magnet synchronous motor demagnetization fault diagnosis model, the following steps are specifically performed:
[0133] Step 1: Collect the leakage magnetic signal of the faulty motor under various faults, wherein the leakage magnetic signal is a one-dimensional time domain signal;
[0134] Step 2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0135] Step 3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion;
[0136] Step 4: Use the fused features as the input of the fault diagnosis classifier, and the fault type as the output of the fault diagnosis classifier. Use the fused features of various faults of known fault types to perform network training to obtain the fault diagnosis classifier.
[0137] Wherein, when executing the permanent magnet synchronous motor demagnetization fault diagnosis method, specifically performing:
[0138] S1: Collecting leakage magnetic signals of the faulty motor under various faults, wherein the leakage magnetic signals are one-dimensional time domain signals;
[0139] S2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram;
[0140] S3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion;
[0141] S4: The fused features are used as the input of the fault diagnosis classifier, and the fault type is used as the output of the fault diagnosis classifier. The fused features of various faults of known fault types are used to perform network training to obtain the fault diagnosis classifier;
[0142] S5: Obtain the magnetic flux leakage signal of the permanent magnet synchronous motor to be diagnosed, and perform feature extraction and fusion according to steps S2-S3, input the fused features into the fault diagnosis classifier, and obtain the fault diagnosis result.
[0143] For the specific implementation process of each step, please refer to the description of the above method.
[0144] The readable storage medium is a computer-readable storage medium, which may be an internal storage unit of the controller described in any of the foregoing embodiments, such as a hard disk or memory of the controller. The readable storage medium may also be an external storage device of the controller, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the controller. Further, the readable storage medium may also include both an internal storage unit of the controller and an external storage device. The readable storage medium is used to store the computer program and other programs and data required by the controller. The readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0145] Based on this understanding, the technical solution of the present invention, in essence or in other words, the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.
[0146] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present application is a device for realizing the function specified in one flow or multiple flows of the flow chart and / or one or multiple blocks of the block diagram with reference to the instructions executed by the processor according to the method, device (system) and computer program product of the embodiment of the present application. These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which realizes the function specified in one flow or multiple flows of the flow chart and / or one or multiple blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0147] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for constructing a demagnetization fault diagnosis model for permanent magnet drive motors based on visual images. Features: include: Signal acquisition, two-dimensional image conversion of the acquired signal, extraction of global and local features of the two-dimensional image and fusion, and construction of a fault diagnosis classifier using fusion features, as follows: Step 1: Collect leakage magnetic signals of the faulty motor under various faults, where the leakage magnetic signals are one-dimensional time domain signals; Step 2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram; Step 3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion; Step 4: Use the fused features as the input of the fault diagnosis classifier, and the fault type as the output of the fault diagnosis classifier. Use the fused features of various faults of known fault types to perform network training to obtain the fault diagnosis classifier. The classifier is applied to the demagnetization fault diagnosis of permanent magnet synchronous motor; In step 3, the global features and local features of the two-dimensional Fourier spectrum graph are extracted by using an autoencoder and a scale-invariant feature transformation respectively; When the local features of the two-dimensional Fourier spectrum graph are extracted by using scale-invariant feature transformation, feature points are searched in different scale spaces; Among them, the scale space L(x, y, σ) of the image is the convolution of the fuzzy Gaussian and the two-dimensional Fourier spectrum map, expressed as: L(x,y,σ)=G(x,y,σ)*I(x,y) The feature points are expressed as: D(x,y,σ)=(G(x,y,kσ)-G(x,y,σ))*I(x,y) Where D(x,y,σ) is the feature point corresponding to the element I(x,y) on the two-dimensional Fourier spectrum graph, G(x,y,σ) is the Gaussian fuzzy representation of the element I(x,y) on the two-dimensional Fourier spectrum graph, k is the calculation constant, and σ is the standard deviation of the normal distribution; Each feature point is assigned a reference direction, which is expressed as: θ(x,y)=tan -1 ((L(x,y+1)-L(x,y+1)) / (L(x+1,y)-L(x-1,y))) Where θ(x,y) represents the reference direction, and the function L() represents the scale space value; When converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram in step 2, firstly, N×N points greater than twice the motor running time during data acquisition are taken from the magnetic flux leakage signal to form a two-dimensional matrix f(x, y), and then converted into a two-dimensional spectrum diagram H(v, p) through a two-dimensional Fourier transform, where v and p are the horizontal and vertical coordinates of the frequency domain coordinates in the two-dimensional spectrum diagram of the image, respectively; Among them, the two-dimensional Fourier transform formula is: Among them, the frequency origin is translated to the center, and the translation formula is: The fault diagnosis classifier is a softmax classifier. The fused features are input into the softmax classifier to obtain a classification probability value. The sum of the classification probability values of various faults is 1. The classification probability value is expressed as: Among them, y i Represents the input of the sofmax neural network classifier, n represents its dimension, and e is the natural base.
2. A permanent magnet drive motor demagnetization fault diagnosis method based on the model building method of claim 1, Features: include: The construction of the fault diagnosis classifier and the fault diagnosis based on the fault diagnosis classifier are as follows: S1: Collecting leakage magnetic signals of the faulty motor under various faults, wherein the leakage magnetic signals are one-dimensional time domain signals; S2: converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram; S3: extracting global features and local features of the two-dimensional Fourier spectrum graph, and performing feature fusion; S4: The fused features are used as the input of the fault diagnosis classifier, and the fault type is used as the output of the fault diagnosis classifier. The fused features of various faults of known fault types are used to perform network training to obtain the fault diagnosis classifier; S5: Obtain the magnetic flux leakage signal of the permanent magnet synchronous motor to be diagnosed, and perform feature extraction and fusion according to steps S2-S3, input the fused features into the fault diagnosis classifier, and obtain the fault diagnosis result.
3. A system based on the permanent magnet drive motor demagnetization fault diagnosis model construction method according to claim 1 or the permanent magnet drive motor demagnetization fault diagnosis method according to claim 2, Features: include: A signal acquisition module is used to collect / obtain leakage magnetic signals of the faulty motor under various faults, wherein the leakage magnetic signals are one-dimensional time domain signals; An image conversion module, used for converting the magnetic flux leakage signal into a two-dimensional Fourier spectrum diagram; A feature extraction module, used to extract global features and local features of the two-dimensional Fourier spectrum graph; Feature fusion module, used to fuse global features and local features; A fault diagnosis classifier construction module is used to use the fused features as the input of the fault diagnosis classifier, the fault type as the output of the fault diagnosis classifier, and to perform network training using the fused features of various faults of known fault types to obtain the fault diagnosis classifier; The diagnosis module is used to perform fault diagnosis by using a fault diagnosis classifier and fusion features corresponding to the permanent magnet synchronous motor to be diagnosed to obtain a fault diagnosis result.
4. An electronic terminal, It is characterized in that It comprises a processor and a memory connected to each other, wherein the processor is programmed or configured to execute the steps of the permanent magnet synchronous motor demagnetization fault diagnosis model construction method according to claim 1 or the permanent magnet synchronous motor demagnetization fault diagnosis method according to claim 2.
5. A system based on the permanent magnet drive motor demagnetization fault diagnosis model construction method according to claim 1 or the permanent magnet drive motor demagnetization fault diagnosis method according to claim 2, Features: The system is an electric vehicle system, including: a vehicle monitoring system, CAN communication, a vehicle drive control system, a magnetic flux sensor, and a drive motor; wherein the drive motor is a permanent magnet drive motor, the vehicle monitoring system sends control instructions to the vehicle drive control system through CAN communication, and the vehicle drive control system controls the drive motor to make the electric vehicle run; Among them, the flux sensor measures the leakage magnetic signal on the surface of the drive motor and transmits the signal to the vehicle drive control system. The vehicle drive control system loads or calls the fault diagnosis classifier generated by the method described in claim 1, and then uses the fault diagnosis classifier and the fusion features corresponding to the permanent magnet synchronous motor to be diagnosed to perform fault diagnosis to obtain a fault diagnosis result.
6. A readable storage medium, Features: The readable storage medium stores a computer program that is programmed or configured to execute a method for constructing a demagnetization fault diagnosis model for a permanent magnet synchronous motor as described in claim 1 or a computer program for a method for diagnosing demagnetization fault for a permanent magnet synchronous motor as described in claim 2.
