Motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis

The motor fault diagnosis method through multi-head sparse autoencoder and Goertzel analysis solves the problem of difficult identification of position sensor misalignment or breakdown fault in brushless DC motor drives, achieves accurate diagnosis and classification of motor faults, and improves motor production reliability and reduced maintenance costs.

CN115407197BActive Publication Date: 2024-09-27NANJING XIECHUANG ZHONGCHUANG SPACE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211028982.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2024-09-27
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

Existing motor fault diagnosis technology is difficult to effectively identify and distinguish faults caused by position sensor misalignment or breakdown, especially in brushless DC motor drives, leading to motor performance degradation and life expectancy threats.

Method used

A motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis is adopted. Vibration signals are collected through piezoelectric sensors, narrow-band harmonic analysis is performed using Goertzel algorithm, fault features are extracted, and unsupervised is performed through multi-head sparse autoencoder deep neural network. Reconstruction and supervised classification to achieve accurate diagnosis of motor faults.

Benefits of technology

This method improves the flexibility and non-invasiveness of motor fault diagnosis, reduces the computational burden, and can be independent of the voltage and current of the drive system and the position sensor to achieve accurate monitoring and classification of motor health status and fault types, reducing the cost Reduce maintenance costs and improve the reliability of motor production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115407197B
    Figure CN115407197B
Patent Text Reader

Abstract

The present invention discloses a motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis, detects the vibration signal caused by the motor position sensor fault, and obtains the vibration signal spectrum of the corresponding fault; uses the Goertzel algorithm as a narrowband harmonic analysis tool for the fault spectrum, evaluates the second harmonic component of the vibration signal spectrum caused by the motor position sensor fault, and uses it as the excitation feature of the fault detection, and then uses the fourth harmonic component of the vibration signal to complete the extraction of the misalignment fault or breakdown fault feature of the motor position sensor; proposes a multi-head sparse autoencoder deep neural network to jointly learn the motor fault features, thereby realizing unsupervised reconstruction and supervised classification of motor fault data. The present invention does not need to perform the pre-training and fine-tuning required by the classic DNN. By directly training the MH-DNN with a linear unit activation function with a correction function, the computational burden can be reduced, the fault diagnosis performance is good, and the prediction accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor fault diagnosis, and in particular to a motor fault diagnosis method based on a multi-head sparse autoencoder and Goertzel analysis. Background Art

[0002] With the advancement of modern science and technology, the development of production systems and the improvement of equipment manufacturing level, the number of motors used in production systems is increasing. The normal operation of motors is of great significance to ensure the safe, efficient, high-quality and low-consumption operation of the production and manufacturing process. Motor fault diagnosis technology has emerged in this context. Motor fault diagnosis technology includes multiple technical disciplines. It can judge whether the motor is running normally based on various information generated during the operation of the motor. The fault location and cause can be found without disassembly. Therefore, motor fault prediction and health management are of great significance to industrial development. Common brushless DC motor drives cause faults such as misalignment due to position sensors. Due to manufacturing defects, the position sensor can be installed in the leading or lagging position, resulting in negative or positive commutation angle errors, respectively. In the case of position sensor misalignment, it will affect the motor rotor position feedback, resulting in alternating faults and generating additional vibration signals. These oscillations will cause the motor current to increase, which will lead to motor current fluctuations and mechanical oscillations. The motor current and torque will be affected, reducing system performance and threatening the expected life of the motor. This will threaten the normal operation of the motor controller circuit and motor windings and affect the performance of the drive system. Summary of the invention

[0003] Purpose of the invention: In view of the misalignment fault and breakdown fault of the brushless DC motor drive caused by the position sensor, the present invention provides a motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis, and utilizes piezoelectric sensors, Goertzel harmonic analysis and multi-head sparse autoencoder classification methods to make the test classification system more flexible and non-invasive, reduce the computational burden, and be more suitable for fault diagnosis caused by position sensors.

[0004] Technical solution: The present invention discloses a motor fault diagnosis method based on a multi-head sparse autoencoder and Goertzel analysis, comprising the following steps:

[0005] Step 1: Detect the vibration signal caused by the motor position sensor fault through the piezoelectric sensor, complete the front-end signal acquisition of the breakdown fault or dislocation fault signal of the position sensor, and obtain the vibration signal spectrum of the corresponding fault;

[0006] Step 2: Use the Goertzel algorithm as a narrowband harmonic analysis tool for the fault spectrum to evaluate the second harmonic component of the vibration signal spectrum caused by the motor position sensor fault and use it as the excitation feature for fault detection. Then use the fourth harmonic component of the vibration signal to extract the misalignment fault or breakdown fault feature of the motor position sensor.

[0007] Step 3: A multi-head sparse autoencoder deep neural network (MH-DNN) is proposed to jointly learn motor fault features to achieve unsupervised reconstruction and supervised classification of motor fault data; the multi-head sparse autoencoder deep neural network (MH-DNN) constructs a multi-hidden layer encoder and a decoder, the structure and the number and size of hidden layers of the decoder and the encoder are completely symmetrical, and a classification module is added on the basis of traditional SAE; the encoder uses multi-layer nonlinear transformation to extract high-level representation features from the input data, which are used as inputs of the decoder and the classification module, the decoder reconstructs the input data, and the classification module predicts the input data; the MH-DNN uses a cost function to complete training, directly trains a linear unit activation function with a correction function, and completes the classification of the health status and fault types of healthy and faulty motors.

[0008] Furthermore, the step 1 specifically includes the following steps:

[0009] Step 1.1: Construct a fault signal acquisition system, using a three-phase voltage source inverter (VSI) to drive a brushless DC motor. The test circuit includes a set of seven 5kHz active first-order low-pass filters, two integrated operational amplifiers, and a piezoelectric ceramic sensor installed on the experimental device. The analog channel is sampled and digitized at 10kHz and 12-bit accuracy, and data is stored and processed;

[0010] Step 1.2: Establish a brushless DC motor model with a built-in Hall effect position sensor, obtain the change rules of the motor back EMF and rotor position phase current waveform when the position sensor fails, and complete the configuration of the brushless DC motor drive controller;

[0011] Step 1.3: Establish a piezoelectric sensor model and its electrical simulator, and obtain the torque and speed oscillation signals caused by position sensor misalignment and other faults by monitoring the vibration signal of the piezoelectric sensor.

[0012] Furthermore, the specific operations of step 1.2 are as follows:

[0013] (1) Obtaining the state space of the brushless DC motor control circuit

[0014] For a brushless DC motor with a neutral point, the state space of its control circuit is:

[0015]

[0016]

[0017] Among them, V xs , R, L s 、M、i x (x=a,b,c),e xs , K e , f(θ) represents phase voltage, phase resistance, self-inductance, mutual inductance, phase current, back-EMF, back-EMF constant, mechanical rotor angular velocity and trapezoidal function respectively;

[0018] (2) Establishing the mechanical dynamics model of the brushless DC motor drive control system

[0019] The electromagnetic wave torque generated by the mechanical dynamics model of the brushless DC motor drive control system is shown in the following formula:

[0020]

[0021]

[0022] Among them, θ m , T L , B, J are the rotor position, load torque, friction torque coefficient and mechanical inertia respectively;

[0023] (3) Based on the output of the position sensor and the required direction of rotation, the waveforms of the motor back EMF and rotor position phase current are obtained, and the controller configuration data for the six sectors of the electrical cycle are determined.

[0024] Furthermore, the specific operations of step 1.3 are:

[0025] (1) Establishing a piezoelectric sensor model

[0026] The piezoelectric sensor is mounted on a circular brass plate (negative electrode) and coated with a thin metal film as the positive electrode. The piezoelectric sensor model is established, and its forward and reverse piezoelectric effects are:

[0027]

[0028] Among them, D i is the electric displacement component, d ikl and d kij is the piezoelectric coefficient, T kl is the pulling vector component, is the dielectric constant component under constant conditions, E k is the electric field component, S ij is the strain component, s ijkl Eis the flexibility constant under constant electric field, i, j, k, l represent the natural coordinates of the piezoelectric crystal system, and take values ​​of 1, 2, and 3;

[0029] (2) Establish an electrical simulator, which uses the Butterworth-Van Dyke (BVD) model;

[0030] (3) Use piezoelectric sensors to detect vibration signals caused by position sensor failure.

[0031] Furthermore, the implementation process of the Goertzel algorithm in step 2 is as follows:

[0032] Step 2.1: First, calculate the components of the kth discrete Fourier transform (DFT) of the signal x[n]:

[0033]

[0034] Among them, the feature length is N, k is an integer;

[0035] Step 2.2: Find y k [n]First-order difference equation for expected value:

[0036]

[0037] Step 2.3: Solve the second-order difference equation:

[0038]

[0039] Step 2.4: Obtain the final expression based on Goertzel harmonic analysis:

[0040]

[0041] Furthermore, the specific steps of constructing a multi-hidden layer encoder in step 3 are as follows:

[0042] 1) First, a single-layer encoder is constructed, from the input layer to the hidden layer, called an encoder. The single-layer encoder receives a sample x as input and converts the input D-dimensional sample x into its hidden layer output, expressed as a = [a 1 ,a 2 ,a 3 ,…a D1 ],a=σ(W 1 x+b 1 ), where σ is the activation function, W 1 , b 1 are the weight matrix and bias vector of the encoder;

[0043] 2) Based on the single-layer encoder, a multi-hidden layer encoder is constructed; L hidden layers are used to extract high-level features of the encoder, where L∈N, let a 1 ,a 2 ,…,a L is the feature extracted from the corresponding hidden layer, and its dimension is D 1 ,D 2 ,…,D L ;

[0044] 3) Dimension setting: D 1 Set the value larger than the input layer D to obtain the sparse over-complete representation characteristics of the first hidden layer; the dimension of the remaining hidden layer is D l ,l=2,3,…,L,less than D l-1 , used to obtain compression features;

[0045] 4) The ReLU activation function is used for the input layer and all hidden layers. In all hidden layers, sparse regularization is applied to extract discriminative features, and L2 regularization is used to constrain the weights of the encoder:

[0046]

[0047] Among them, R sp For sparse regularization, the Kullback-Leibler (KL) divergence function is used to measure The closeness to the expected sparse ratio p is When it is equal to p, the KL function is zero; is the average activation of the jth hidden neuron, considering all input samples x i ,i=1,…,N, which is defined as follows: a i,j is the jth element of the ith hidden feature.

[0048] Furthermore, the specific steps of constructing the decoder in step 3 are:

[0049] 1) The decoder is from the hidden layer to the output layer, and reconstructs the input sample x according to the feature vector a The structure, number and size of hidden layers of the decoder and encoder are completely symmetrical. The decoder uses feature a L Restore the input data x as follows:

[0050]

[0051] Among them, W 2 , b 2 are the weight matrix and bias vector of the decoder respectively;

[0052] 2) All hidden layers use ReLU activation function, all output layers use sigmoid activation function, and L2 regularization is used to constrain the weights of the decoder;

[0053] 3) Add sparse restrictions during network training, and the sparse encoder completes the extraction of discriminative features:

[0054] Let the input sample be x i ,i=1,…,N, the training goal is to minimize the following cost function:

[0055]

[0056] Among them, the first term is the reconstruction error, and the second term is L 2 Regularization term, W is the SAE weight matrix, R sp is the sparse regularization, λ and β are the weight control parameters of the corresponding terms, R sp For sparse regularization, the Kullback-Leibler (KL) divergence function is used to measure The closeness to the expected sparse ratio p is When it is equal to p, the KL function is zero:

[0057]

[0058] in, is the average activation of the jth hidden neuron, considering all input samples x i ,i=1,…,N, which is defined as follows: a i,j is the jth element of the ith hidden feature.

[0059] Furthermore, the specific steps of constructing the classification module in step 3 are:

[0060] 1) MH-DNN adds a classification module based on the traditional SAE. The classification module uses a softmax layer with C neurons. The output of the neural network is converted into a probability expression through the softmax layer, thereby finding the maximum probability item and classifying it; the softmax layer represents different conditions for solving C classification problems. When a feature a is given, L , the softmax layer calculates the output vector y 1 ,y 2 ,…,y C , where the kth output is y k ,k=1,2,…,C, and its specific definition is as follows:

[0061]

[0062] Where 0≤y k ≤1, Z k is the kth output before applying the softmax activation function. Dropout (random dropout) regularization is used on the hidden layer of the classification module. Z is calculated using the following equation k :

[0063] z k =w k (a L or)+b k

[0064] Among them, w k and b k is the weight and bias of the kth neuron in the softmax layer, o is the element-wise multiplication operator in vector multiplication, and a L For a given feature, is the "masking" vector of Bernoulli random variables, whose probability is 0;

[0065] 2) Assume that the data in the training set is represented as (x i ,y i ),i=1,2,…,N, each label y i is converted into a C-dimensional vector, that is, (y i,1 ,y i,2 ,…y i,c ) i=1,2,…,N :

[0066]

[0067] 3) Use the cost function to complete the training

[0068] The training objective of the multi-head sparse autoencoder deep neural network (MH-DNN) is to minimize the following cost function:

[0069]

[0070] Among them, the first term is the reconstruction error, the second term is the L2 regularization term, and y i,k for y i The converted C-dimensional vector, x i is the input sample, is the decoder output, N is the data length, W is the weight matrix of the entire MH-DNN, is the sparse regularization applied to the jth hidden layer of the encoder, and the last term is the cross entropy loss parameter of the classification module, λ, β, η 1 , η 2 is the weight control coefficient of the relevant item.

[0071] Beneficial effects:

[0072] 1. The present invention uses piezoelectric sensors, Goertzel analysis and multi-head sparse autoencoder classification to complete the process of motor fault diagnosis, and correctly predicts the misalignment fault and breakdown fault caused by the position sensor. In the motor fault signal acquisition, a piezoelectric sensor is used to collect the vibration signal caused by the position sensor failure. Piezoelectric sensor is an inexpensive testing technology with flexibility and non-invasiveness. This method can be used as an external diagnostic tool to detect all potential Hall effect-based position sensor fault types, such as misalignment or single breakdown fault or double breakdown fault, without the need to modify the motor hardware, change the controller or add external voltage or current sensors. Therefore, this method is independent of the voltage and current of the drive system and the position sensor, which can minimize the system connection lines and eliminate the need for motor-based position sensor mapping. There is no need to double the position sensor or add logic circuits, which can achieve local or remote monitoring of the motor health or fault status.

[0073] 2. The present invention uses the Goertzel algorithm to perform harmonic analysis of fault vibration signals. The Goertzel algorithm can be used for frequency domain analysis by using only a narrow frequency band around the harmonic component of interest, which is relatively advantageous. The Goertzel algorithm does not require normalization, and there are no other high-amplitude harmonic components within the studied spectrum, so the scope can be further narrowed, and the implementation process is faster, which is suitable for applications such as motor fault diagnosis and condition monitoring.

[0074] 3. The present invention proposes a multi-head sparse autoencoder deep neural network (MH-DNN) to jointly learn motor fault characteristics, thereby completing the classification of the health status and fault type of healthy and faulty motors for testing. The focus is on constructing a multi-hidden layer encoder, as well as a decoder with a completely symmetrical number and size of hidden layers, and adding a classification module. This method does not require the pre-training and fine-tuning stages required by the classic DNN, and directly trains a linear unit activation function with a correction function, which can reduce the computational burden, is beneficial to improving the reliability of motor production, and reducing maintenance costs, and has great practical significance for motor detection and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 It is a brushless DC motor fault signal acquisition system based on position sensor;

[0076] Figure 2 This is the dimensional drawing of the brushless DC motor;

[0077] Figure 3 It is the motor winding lead diagram;

[0078] Figure 4is a block diagram of a typical brushless DC motor driver with built-in Hall position sensor;

[0079] Figure 5 It is the waveform of the ideal motor back EMF (Ex) and rotor position phase current (Ix) (x = A, B, C);

[0080] Figure 6 It is a simplified block diagram of the forward and reverse piezoelectric effects based on their different mechanical and electrical properties;

[0081] Figure 7 is the Butterworth-Van Dyke (BVD) model of piezoelectric sensor;

[0082] Figure 8 This is the implementation block diagram of the second-order Goertzel algorithm;

[0083] Fig. 9 It is a motor fault frequency analysis and feature extraction process based on the Goertzel algorithm;

[0084] Fig.10 It is the narrow spectrum of piezoelectric sensors based on Goertzel analysis;

[0085] Fig.11 is the phase current waveform when the position sensor fails (high position configuration);

[0086] Fig.12 is the phase current waveform when the position sensor fails (low position configuration);

[0087] Fig.13 It is the structure of a single-layer sparse autoencoder (SAE);

[0088] Fig.14 It is a multi-head sparse autoencoder deep neural network (MH-DNN) structure;

[0089] Fig.15 It is a motor fault diagnosis method process based on multi-head sparse autoencoder deep neural network (MH-DNN). DETAILED DESCRIPTION

[0090] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are provided to explain the present invention, but the present invention is not limited to the following embodiments.

[0091] Aiming at the misalignment fault and breakdown fault of the brushless DC motor driver caused by the position sensor, the present invention provides a motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis. This method using piezoelectric sensor, Goertzel harmonic analysis and multi-head sparse autoencoder classification makes the test classification system more flexible and non-invasive, reduces the computational burden, and is more suitable for fault diagnosis caused by position sensor.

[0092] Figure 1 The figure shows a brushless DC motor fault signal acquisition system based on a position sensor in an embodiment of the present invention:

[0093] The motor fault signal acquisition system consists of a motor, a piezoelectric ceramic sensor, an integrated operational amplifier, a three-phase voltage source inverter (VSI), a 12-bit precision ADC collector and a computer. The experiment was carried out under the stable operation of the motor without load, mainly collecting the vibration signals of the motor in normal state and fault state. Finally, the collected signals were sent to the computer for fault diagnosis and processing.

[0094] Combination Figure 1 The present invention discloses a motor fault diagnosis method based on a multi-head sparse autoencoder and Goertzel harmonic analysis, comprising the following steps:

[0095] Step 1: When the motor is running stably without load, use the piezoelectric ceramic sensor to collect the vibration signals of the motor in normal state and the position sensor in fault state;

[0096] (1) Building a fault signal acquisition system

[0097] The 57BL115S18 brushless DC motor BLDC (180W / 3000RPM / DC 24V) was used as the research object, and the motor rotor speed was set to 900rpm, the base frequency was 60Hz, and the motor was unloaded. The brushless DC motor was driven by a three-phase voltage source inverter (VSI). The test circuit included a set of 7 5kHz active first-order low-pass filters, two single-power, low-cost, noise and bias universal integrated operational amplifiers, and the piezoelectric ceramic sensor was installed on the experimental device. The analog channel was sampled and digitized at 10kHz and 12-bit accuracy, and sent to the computer for data storage and processing.

[0098] In the specific implementation, the motor size parameters and motor winding lead diagram used are as follows: Figure 2 , Figure 3 The parameters of the brushless DC motor are shown in Table 1:

[0099] Table 1 BLDC brushless DC motor parameters

[0100]

[0101] (2) Study the brushless DC motor model with built-in Hall effect position sensor, obtain the changing law of the motor back EMF and the waveform of the rotor position phase current, and complete the configuration of the brushless DC motor drive controller;

[0102] 1) Obtain the state space of the brushless DC motor control circuit

[0103] For a brushless DC motor with a neutral point, the state space of its control circuit is expressed by equations (1) and (2):

[0104]

[0105]

[0106] Among them, V xs , R, L s 、M、i x (x=a,b,c),e xs , K e , f(θ) represents phase voltage, phase resistance, self-inductance, mutual inductance, phase current, back-EMF, back-EMF constant, mechanical rotor angular velocity and trapezoidal function, respectively.

[0107] 2) Establish the mechanical dynamics model of the brushless DC motor drive control system

[0108] The mechanical dynamics model of the brushless DC motor drive control system and the electromagnetic wave torque generated are shown in equations (3) and (4):

[0109]

[0110]

[0111] Among them, θ m , T L , B, J are the rotor position, load torque, friction torque coefficient and mechanical inertia respectively, and other parameters are the same as above.

[0112] 3) Based on the output of the position sensor and the direction of required rotation, the waveforms of the motor back EMF and rotor position phase current are obtained, and based on these waveforms, the controller configuration data of the six sectors of the electrical cycle are determined.

[0113] Brushless DC motors usually use built-in Hall effect position sensors, which are a low-cost, small-volume rotor position detection method with 60-degree resolution and speed estimation. The speed update rate is low at low speeds. To be precise, the digital output of each sensor is up to 180 degrees, and the rest of the time is low electrical cycles. The most common configuration is located 120 degrees apart, dividing the electrical cycle into six sectors. Since the typical brushless DC motor drive system has a voltage source inverter, the phase current can be detected and transformed according to the motor rotor position.

[0114] A typical block diagram of a brushless DC motor driver with built-in Hall position sensor is shown in Figure 4 shown.

[0115] During operation, the power switches are activated according to a predefined sequence to implement the standard 120-degree commutation logic, and there are two active phases in each sector, so each stage includes 120 degrees of positive power on, 60 degrees of power off, 120 degrees of negative power on, and the rest is a stop working state.

[0116] The ideal motor back EMF and rotor position phase current waveforms are as follows: Figure 5 shown.

[0117] It is worth noting that Figure 5 The waveforms in are based on the following assumptions: the turn-on and turn-off times of the power switch are ignored, and the corresponding waveforms are obtained when the brushless DC motor (BLDC) has an ideal trapezoidal back EMF and low phase inductance.

[0118] The controller configuration to obtain six sectors in one electrical cycle is shown in Table 2.

[0119] Table 2 120° commutation logic based on rotor position and sensor signal

[0120]

[0121] In practice, the phase currents are characterized by quasi-rectangular waveforms, but in most cases they are not completely synchronized with the back EMF, thus affecting the observed current waveforms. Torque ripples may occur in normal operation, taking into account the motor inductance and the unavoidable detection processing errors of the rotor position estimation.

[0122] (3) A piezoelectric sensor model and its electrical simulator are established. The vibration signal is monitored by the piezoelectric sensor to obtain the torque and speed oscillation signals caused by faults such as position sensor misalignment. The performance of piezoelectric ceramic sensors in detecting different fault types in brushless DC motor drive systems is studied.

[0123] 1) Establish a piezoelectric sensor model

[0124] According to the direct piezoelectric effect, in some cases, a crystal subjected to external stress will generate surface charges, which will produce polarization, which can be expressed as a voltage difference between the crystal terminals. When these dielectric materials are deformed, they will also exhibit the inverse piezoelectric effect, with the forward and reverse piezoelectric effects expressed by equations (5) and (6), respectively. Here, the output voltage polarity is defined by the orientation of the crystal relative to the pressure.

[0125] Specific piezoelectric effects such as Figure 6 shown.

[0126]

[0127] S ij =s ijkl E T kl +d kij E k (6)

[0128] Among them, D i is the electric displacement component, d ikl and d kij is the piezoelectric coefficient, T kl is the pulling vector component, is the dielectric constant component under constant conditions, E k is the electric field component, S ij is the strain component, s ijkl E is the flexibility constant under constant electric field, i, j, k, l represent the natural coordinates of the piezoelectric crystal system, and take values ​​of 1, 2, and 3.

[0129] 2) Build an electrical simulator

[0130] The electrical simulator uses the Butterworth-Van Dyke (BVD) model, such as Figure 7 shown.

[0131] Among them, electronic components C m Related to the mechanical elasticity of the electrode, L m is the inertia component of the vibrating material, R m is the mechanical energy loss caused by oscillation, C o Represents the capacitance of the piezoelectric material.

[0132] 3) Study the application theory and basis of piezoelectric sensors in motor position sensor fault detection, and use zirconate titanium ceramic piezoelectric sensors to detect vibration signals caused by position sensor faults. After preprocessing, the signals are transmitted wirelessly to the computer control system via Wi-Fi.

[0133] In the implementation, a zirconate titanium ceramic piezoelectric sensor is used, where the piezoelectric element is mounted on a circular brass plate (negative electrode) and coated with a thin metal film as the positive electrode. The sensor has a small frequency difference and low manufacturing cost.

[0134] Due to manufacturing defects, the position sensor can be installed in the leading or lagging position, resulting in negative or positive commutation angle errors, respectively. In the case of misalignment of the position sensor, the motor current and torque will be affected, generating additional vibration signals. Therefore, piezoelectric sensors can be used to diagnose non-ideal installation angles with different or uniform movement. In this patent, piezoelectric sensors are applied to diagnose misalignment faults of position sensors, and the Goertzel algorithm is used to extract fault features from the second harmonic component of the vibration signal.

[0135] In this implementation, a single position sensor failure is studied.

[0136] As previously mentioned, a position sensor fault can be identified by a permanent output signal of the faulty sensor at a high or low level, regardless of the rotor position. This fault condition affects the phase current commutation because it causes an extended 120 degree sector. For the active phase, in the case of a single sensor breakdown fault, "inhibit" vectors of (0,0,0) and (1,1,1) are also observed. In the present invention, the controller is programmed to react to the inhibit vector by sending a zero vector command at the PWM output terminal to drive the motor windings to a three-phase floating state.

[0137] The motor health status and fault status caused by improper sensor position are shown in Table 3:

[0138] Table 3 Commutation sequence of motor health status and fault status caused by improper sensor position

[0139]

[0140] Faulty sensors affect the phase current commutation in different ways. In the case of defective position sensors, the following conclusions are drawn from the comparison of the phase current waveforms:

[0141] A single-position sensor breakdown fault imposes an additional zero-current sector or an extended conduction cycle, which may cause a controller power switch failure or an increase in motor winding temperature. In addition, when the back-EMF amplitude decreases from a flat-top value to a lower value, the phase current will increase due to the input voltage and its voltage difference. Therefore, due to the two-phase conduction mode, the other activated phase is also affected, and the current values ​​of both phases are expected to increase. In the case of different position sensor breakdown faults, similar waveforms provide a basis for its fault state prediction.

[0142] Step 2: It is proposed to use the Goertzel algorithm as a narrowband harmonic analysis tool for the fault spectrum to evaluate the second harmonic and fourth harmonic components of the vibration signal spectrum caused by the motor position sensor fault, and use it to extract the misalignment fault or breakdown fault characteristics of the position sensor.

[0143] In the frequency domain analysis of fault diagnosis, the fast Fourier transform (FFT) is often used. However, its main disadvantages are that its performance such as frequency resolution, spectrum leakage and computational cost are limited. Therefore, the present invention adopts the Goertzel algorithm. The Goertzel algorithm can be used for frequency domain analysis by using only a narrow frequency band around the harmonic component of interest, which has a relatively large advantage. FFT analysis requires the entire spectrum to complete the frequency analysis. Moreover, the Goertzel algorithm does not need normalization. There are no other high-amplitude harmonic components within the studied spectrum range, so the range can be further narrowed and the implementation process is faster. In general, the Goertzel algorithm is superior to FFT in terms of signal length and low memory requirements. Its computational complexity is independent of the signal length and is suitable for applications such as motor fault diagnosis and condition monitoring.

[0144] Specifically, the implementation process of the Goertzel algorithm is as follows:

[0145] (1) First, the kth discrete Fourier transform (DFT) component of the signal x[n] is calculated, whose characteristic length is N, as shown in equation (7). Where k is an integer, and the algorithm uses the phase factor e j2πk Complete the calculation based on e j2πk The computational complexity of the algorithm will be greatly reduced if the periodicity is taken into account.

[0146] (2) Then, find y k The first-order difference equation for the expected value of [n] is shown in equation (8), which contains complex numbers and computationally intensive multiplication factors;

[0147] (3) Next, the second-order difference equation is obtained, which is specifically expressed by equation (9);

[0148] (4) Finally, the expression of the final system is obtained, as described in equation (10);

[0149]

[0150]

[0151]

[0152]

[0153] The flowchart of the second-order Goertzel algorithm used is as follows Figure 8 shown.

[0154] In the specific implementation of the motor fault signal feature extraction and analysis using the Goertzel algorithm, when the second harmonic component is detected, the fault diagnosis process will be triggered. Specifically, the motor fault vibration data is first obtained, and then the frequency analysis based on the Goertzel algorithm is performed to determine whether there is a second harmonic component. If not, the frequency analysis is performed again. If the second harmonic component is detected, the fourth harmonic component is detected, and then it is determined whether it is a high-increment fourth fault harmonic component, so as to obtain two sets of feature data, and finally the feature value is sent to the classifier to obtain the final classification result.

[0155] The process of motor fault frequency analysis and feature extraction based on Goertzel algorithm is as follows: Fig. 9 .

[0156] In the implementation, the Goertzel algorithm is used to analyze the motor fault caused by the position sensor. The system frequency is 60Hz fundamental frequency and the rated torque is 65%. In the case of a single position sensor misalignment fault, the second harmonic component of the piezoelectric sensor spectrum is analyzed by the Goertzel algorithm. The characteristic output of the corresponding narrow spectrum is as follows: Fig. 9 shown.

[0157] Furthermore, in order to study the breakdown failure of a single position sensor, the fault conditions of the Hall effect position sensor in the high position and low position states are compared. When the Hall effect position sensor continuously outputs a high or low signal, it is considered a fault signal. The phase current waveforms obtained in the experiment when the high and low position sensor configurations fail are shown in Figure 2. Fig.10 and Fig.11 .

[0158] Step 3: A multi-head sparse autoencoder deep neural network (MH-DNN) is proposed to jointly learn motor fault features to complete the detection and diagnosis of motor faults, thereby realizing unsupervised reconstruction and supervised classification of motor fault data. The main features are the construction of a multi-hidden layer sparse encoder, a decoder with a completely symmetrical number and size of hidden layers, and the addition of a classification module. Among them, the encoder uses multiple layers of nonlinear transformations to extract high-level representation features from the input data. These extracted features are used as inputs to the decoder and classification module. The decoder aims to reconstruct the input data, while the classification module is used to predict the input data. The specific steps are as follows:

[0159] (1) Constructing a multi-hidden layer encoder

[0160] First, a single-layer encoder is constructed, from the input layer to the hidden layer, called an encoder. The single-layer encoder receives a sample x as input and converts the input D-dimensional sample x into its hidden layer output, expressed as a = [a 1 ,a 2 ,a 3 ,…a D1 ], the specific expression is as follows:

[0161] a=σ(W 1 x+b 1 ) (11)

[0162] Among them, σ is the activation function, W 1 , b 1 are the weight matrix and bias vector of the encoder.

[0163] The structure of a single-layer sparse autoencoder (SAE) is shown in Fig.12 .

[0164] Next, we construct a multi-hidden layer encoder based on the single-layer encoder. We use L hidden layers to extract high-level features of the encoder, where L∈N. Let a 1 ,a 2 ,…,a L is the feature extracted from the corresponding hidden layer, and its dimension is D 1 ,D 2 ,…,D L .

[0165] The setting of dimension has the following provisions and characteristics: 1)D 1 Set a value greater than the input layer D to obtain the sparse over-complete representation characteristics of the first hidden layer; 2) The dimension D of the remaining hidden layer l ,l=2,3,…,L,should be smaller than D l-1 , used to obtain compression features.

[0166] In the implementation, the ReLU activation function is used in the input layer and all hidden layers. In all hidden layers, the sparse regularization defined in Eq. (14) is applied to extract discriminative features, and L2 regularization is used to constrain the weights of the encoder.

[0167] (2) Constructing a decoder

[0168] The decoder is from the hidden layer to the output layer, and reconstructs the input sample x according to the feature vector a. The structure, number and size of hidden layers of the decoder and encoder are completely symmetrical. The decoder is designed to utilize feature a L Restore the input data x. The details are as follows:

[0169]

[0170] Among them, W 2 , b 2 are the weight matrix and bias vector of the decoder respectively.

[0171] During the reconstruction process, all hidden layers use the ReLU activation function, all output layers use the sigmoid activation function, and L2 regularization is used to constrain the weights of the decoder.

[0172] As a variant of the autoencoder, the sparse encoder extracts discriminative features by adding sparse restrictions during network training.

[0173] Let the input sample be x i ,i=1,…,N, the training goal is to minimize the following cost function:

[0174]

[0175] Among them, the first term is the reconstruction error, and the second term is L 2 regularization term, W is the SAE weight matrix, λ and β are the weight control parameters of the corresponding terms, R sp For sparse regularization, the Kullback-Leibler (KL) divergence function is used to measure The closeness to the expected sparse ratio p is When it is equal to p, the KL function is zero. The specific definition is as follows:

[0176]

[0177] in, is the average activation of the jth hidden neuron, considering all input samples x i ,i=1,…,N, which is defined as follows:

[0178]

[0179] a i,j is the jth element of the ith hidden feature.

[0180] (3) Building a classification module

[0181] 1) MH-DNN adds a classification module based on the traditional SAE. The classification module uses a softmax layer with C neurons. The output of the neural network is converted into a probability expression through the softmax layer, thereby finding the maximum probability item and classifying it. The softmax layer represents different conditions for solving C-class classification problems. When a feature a is given, L , the softmax layer calculates the output vector y 1 ,y 2,…,y C . Among them, the kth output is y k ,k=1,2,…,C, and its specific definition is as follows:

[0182]

[0183] In the formula, 0≤y k ≤1, Z k is the kth output before applying the softmax activation function. To prevent overfitting, Dropout (random dropout) regularization is used on the hidden layer of the classification module. Therefore, considering Dropout, Z is calculated using the following equation k , which is defined as follows:

[0184] z k =w k (a L or)+b k (17)

[0185] Among them, w k and b k is the weight and bias of the kth neuron in the softmax layer, o is the element-wise multiplication operator in vector multiplication, and a L For a given feature, is a “masked” vector of Bernoulli random variables with probability 0. In practice, gradient computation is done only by backpropagation through unmasked neurons.

[0186] 2) Each label y i Converted into a C-dimensional vector

[0187] Assume that the data in the training set is represented as (x i ,y i ),i=1,2,…,N, each label y i Transformed into a C-dimensional vector, that is, (y i,1 ,y i,2 ,…y i,c ) i=1,2,…,N , as follows:

[0188]

[0189] 3) Use the cost function to complete the training

[0190] The training objective of the multi-head sparse autoencoder deep neural network (MH-DNN) is to minimize the following cost function:

[0191]

[0192] Among them, the first term is the reconstruction error, the second term is the L2 regularization term, and y i,k for y i The converted C-dimensional vector, x i is the input sample, is the decoder output, N is the data length, W is the weight matrix of the entire MH-DNN, is the sparse regularization applied to the jth hidden layer of the encoder, and the last term is the cross entropy loss parameter of the classification module, λ, β, η 1 , η 2 is the weight control coefficient of the relevant item.

[0193] The structure of the multi-head sparse autoencoder deep neural network (MH-DNN) is shown in Fig.13 .

[0194] In the specific implementation of motor fault diagnosis using MH-DNN, first, the original motor fault signal is divided into data samples and a sample library is established. Then, MH-DNN is established and trained using the collected C-class feature data samples of healthy and faulty states. After the model is successfully trained, the test data samples are used to determine whether they belong to the known C class by the MH-DNN classification algorithm, and a fault decision conclusion is given.

[0195] The flow chart of the motor fault diagnosis method based on multi-head sparse autoencoder deep neural network (MH-DNN) is as follows Fig.14 shown.

[0196] Step 4: Based on the above technologies, build an experimental platform to complete the specific implementation of motor fault classification, mainly completing the following test experiments:

[0197] (1) Motor fault diagnosis experiment

[0198] The embodiment of the present invention uses a piezoelectric sensor to collect the fault signal spectrum caused by the position sensor, and then uses the Goertzel algorithm as a narrowband harmonic analysis tool to analyze the fault signal spectrum and extract its features. Finally, it is added to a multi-head sparse autoencoder deep neural network (MH-DNN) classifier to obtain the classification results of two types of faults, namely, misalignment fault and breakdown fault.

[0199] 200 data were collected for different fault and health status signals, and the fault features of the corresponding frequency graph were extracted and sent to the corresponding classifier model to complete the classification of the health status and fault type of healthy and faulty motors. The number of iterations and populations in the algorithm were 1000 and 500 respectively, the threshold and weight values ​​were between [-1,1], and the learning rate was 0.25. The test results are shown in Table 4.

[0200] Table 4 Fault diagnosis classification effect

[0201]

[0202] As can be seen from Table 4, the classification accuracy and recall rate of misalignment faults and breakdown faults are similar and perform well. The use of piezoelectric sensors can correctly diagnose the misalignment and breakdown faults of Hall effect position sensors in motor drive control systems. This method is effective for the classification of different faults and has good application prospects. The main advantages of this method are that it can distinguish between the two types of position sensor faults in motor control, use different harmonic components to detect different fault types, and use the Goertzel algorithm of narrowband harmonic analysis, which saves time, computing costs and memory requirements. Therefore, piezoelectric sensors can be used for state monitoring of motor drive systems and are suitable for forming a cheap intelligent Internet of Things for fault diagnosis.

[0203] (2) Comparison of different classifier models

[0204] In the implementation, the proposed MH-DNN classifier was experimentally verified and compared with the conventional BP algorithm and RBF algorithm. After the model was trained, the error values ​​of the trained network were compared, and 20 groups of samples were randomly selected. The fault samples were sent to the trained model for testing, and the diagnostic results were shown in Table 5.

[0205] Table 5 Comparison of experimental results (error)

[0206]

[0207]

[0208] As can be seen from Table 5, the prediction result based on the multi-head sparse autoencoder deep neural network classifier (MH-DNN) is the best, and its absolute value of prediction error is significantly smaller than that of the BP algorithm and the RBF algorithm. Since the training samples contain motor fault information, compared with the traditional BP neural network and RBF algorithm, the MH-DNN classifier shows obvious advantages in motor fault diagnosis, has a higher diagnostic accuracy, and can obtain a diagnostic effect far higher than that of the BP algorithm and the RBF algorithm.

[0209] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis, It is characterized in that The following steps are involved: Step 1: Detect the vibration signal caused by the motor position sensor fault through the piezoelectric sensor, complete the front-end signal acquisition of the breakdown fault or dislocation fault signal of the position sensor, and obtain the vibration signal spectrum of the corresponding fault; Step 1.1: Construct a fault signal acquisition system, using a three-phase voltage source inverter (VSI) to drive a brushless DC motor. The test circuit includes a set of seven 5kHz active first-order low-pass filters, two integrated operational amplifiers, and a piezoelectric ceramic sensor installed on the experimental device. The analog channel is sampled and digitized at 10kHz and 12-bit accuracy, and data is stored and processed; Step 1.2: Establish a brushless DC motor model with a built-in Hall effect position sensor, obtain the change rules of the motor back EMF and rotor position phase current waveform when the position sensor fails, and complete the configuration of the brushless DC motor drive controller; Step 1.3: Establish a piezoelectric sensor model and its electrical simulator, and obtain the torque and speed oscillation signals caused by the position sensor misalignment fault by monitoring the vibration signal with the piezoelectric sensor; (1) Establishing a piezoelectric sensor model The piezoelectric sensor is mounted on a circular brass plate and coated with a thin metal film as the positive electrode. The piezoelectric sensor model is established, and its forward and reverse piezoelectric effects are: S ij =s ijkl E T kl +d kij E k Among them, D i is the electric displacement component, d ikl and d kij is the piezoelectric coefficient, T kl is the pulling vector component, is the dielectric constant component under constant conditions, E k is the electric field component, S ij is the strain component, s ijkl E is the flexibility constant under constant electric field, i, j, k, l represent the natural coordinates of the piezoelectric crystal system, and take values ​​of 1, 2, and 3; (2) Establishing an electrical simulator, which uses the Butterworth-Van Dyke (BVD) model; (3) Using piezoelectric sensors to detect vibration signals caused by position sensor failure; Step 2: Use the Goertzel algorithm as a narrowband harmonic analysis tool for the fault spectrum to evaluate the second harmonic component of the vibration signal spectrum caused by the motor position sensor fault and use it as the excitation feature for fault detection. Then use the fourth harmonic component of the vibration signal to extract the misalignment fault or breakdown fault feature of the motor position sensor. Step 3: A multi-head sparse autoencoder deep neural network is proposed to jointly learn motor fault features to achieve unsupervised reconstruction and supervised classification of motor fault data; the multi-head sparse autoencoder deep neural network constructs a multi-hidden layer encoder and a decoder, the structure and the number and size of hidden layers of the decoder and the encoder are completely symmetrical, and a classification module is added on the basis of the traditional SAE; The encoder uses multi-layer nonlinear transformation to extract high-level representation features from the input data, which are used as inputs of the decoder and the classification module. The decoder reconstructs the input data, and the classification module predicts the input data. The multi-head sparse autoencoder deep neural network uses a cost function to complete training, directly trains a linear unit activation function with a correction function, and completes the classification of the health status and fault type of healthy and faulty motors.

2. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 1, It is characterized in that The specific operations of step 1.2 are: (1) Obtaining the state space of the brushless DC motor control circuit For a brushless DC motor with a neutral point, the state space of its control circuit is: Among them, V xs , R, L s 、M、i x (x=a,b,c),e xs , K e , f(θ) represents phase voltage, phase resistance, self-inductance, mutual inductance, phase current, back-EMF, back-EMF constant, mechanical rotor angular velocity and trapezoidal function respectively; (2) Establishing the mechanical dynamics model of the brushless DC motor drive control system The electromagnetic wave torque generated by the mechanical dynamics model of the brushless DC motor drive control system is shown in the following formula: Among them, θ m , T L , B, J are the rotor position, load torque, friction torque coefficient and mechanical inertia respectively; (3) Based on the output of the position sensor and the required direction of rotation, the waveforms of the motor back EMF and rotor position phase current are obtained, and the controller configuration data for the six sectors of the electrical cycle are determined.

3. The motor fault diagnosis method based on the multi-head sparse autoencoder and Goertzel analysis according to claim 1, It is characterized in that The implementation process of the Goertzel algorithm in step 2 is as follows: Step 2.1: First, calculate the components of the kth discrete Fourier transform (DFT) of the signal x[n]: Among them, the feature length is N, k is an integer; Step 2.2: Find y k [n]First-order difference equation for expected value: Step 2.3: Solve the second-order difference equation: Step 2.4: Obtain the final expression based on Goertzel harmonic analysis:

4. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 1, It is characterized in that The specific steps of constructing a multi-hidden layer encoder in step 3 are as follows: 1) First, a single-layer encoder is constructed, from the input layer to the hidden layer, called an encoder. The single-layer encoder receives a sample x as input and converts the input D-dimensional sample x into its hidden layer output, expressed as a = [a 1 ,a 2 ,a 3 ,…,a D1 ],a=σ(W 1 x+b 1 ), where σ is the activation function, W 1 , b 1 are the weight matrix and bias vector of the encoder; 2) Based on the single-layer encoder, a multi-hidden layer encoder is constructed; L hidden layers are used to extract high-level features of the encoder, where L∈N, let a 1 ,a 2 ,…,a L is the feature extracted from the corresponding hidden layer, and its dimension is D 1 ,D 2 ,…,D L ; 3) Dimension setting: D 1 Set the value larger than the input layer D to obtain the sparse over-complete representation features of the first hidden layer; the dimension of the remaining hidden layer is D l ,l=2,3,…,L,less than D l-1 , used to obtain compression features; 4) The ReLU activation function is used for the input layer and all hidden layers. In all hidden layers, sparse regularization is applied to extract discriminative features, and L2 regularization is used to constrain the weights of the encoder: Among them, R sp For sparse regularization, the Kullback-Leibler divergence function is used to measure The closeness to the expected sparse ratio p is When it is equal to p, the Kullback-Leibler divergence function is zero; is the average activation of the jth hidden neuron, considering all input samples x i ,i=1,…,N, which is defined as follows: a i,j is the jth element of the ith hidden feature.

5. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 4, It is characterized in that The specific steps of constructing the decoder in step 3 are: 1) The decoder is from the hidden layer to the output layer, and reconstructs the input sample x according to the feature vector a The structure, number and size of hidden layers of the decoder and encoder are completely symmetrical. The decoder uses feature a L Restore the input data x as follows: Among them, W 2 , b 2 are the weight matrix and bias vector of the decoder respectively; 2) All hidden layers use ReLU activation function, all output layers use sigmoid activation function, and L2 regularization is used to constrain the weights of the decoder; 3) Add sparse restrictions during network training, and the sparse encoder completes the extraction of discriminative features: Let the input sample be x i ,i=1,…,N, the training goal is to minimize the following cost function: Among them, the first term is the reconstruction error, and the second term is L 2 regularization term, W is the SAE weight matrix, λ and β are the weight control parameters of the corresponding terms, R sp For sparse regularization, the Kullback-Leibler divergence function is used to measure The closeness to the expected sparse ratio p is When p is equal to p, the Kullback-Leibler divergence function is zero: in, is the average activation of the jth hidden neuron, considering all input samples x i ,i=1,…,N, which is defined as follows: a i,j is the jth element of the ith hidden feature.

6. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 1, It is characterized in that The specific steps of constructing the classification module in step 3 are: 1) The multi-head sparse autoencoder deep neural network adds a classification module based on the traditional SAE. The classification module uses a softmax layer with C neurons. The output of the neural network is converted into a probability expression through the softmax layer, thereby finding the maximum probability item and classifying it; The softmax layer represents different conditions for solving the C-class classification problem. When a feature a is given L , the softmax layer calculates the output vector y 1 ,y 2 ,…,y C , where the kth output is y k ,k=1,2,…,C, and its specific definition is as follows: Where 0≤y k ≤1, Z k is the kth output before applying the softmax activation function. Dropout (random dropout) regularization is used on the hidden layer of the classification module. Z is calculated using the following equation k : z k =w k (a L οr)+b k Among them, w k and b k is the weight and bias of the kth neuron in the softmax layer, ο is the element-wise multiplication operator in vector multiplication, and a L For a given feature, is the "masking" vector of Bernoulli random variables, whose probability is 0; 2) Assume that the data in the training set is represented as (x i ,y i ),i=1,2,…,N, each label y i is converted into a C-dimensional vector, that is, (y i,1 ,y i,2 ,…y i,c ) i=1,2,…,N : 3) Use the cost function to complete the training The training objective of the multi-head sparse autoencoder deep neural network is to minimize the following cost function: Among them, the first term is the reconstruction error, the second term is the L2 regularization term, and y i,k for y i The converted C-dimensional vector, x i is the input sample, is the decoder output, N is the data length, W is the weight matrix of the entire multi-head sparse autoencoder deep neural network, is the sparse regularization applied to the jth hidden layer of the encoder, and the last term is the cross entropy loss parameter of the classification module, λ, β, η 1 , η 2 is the weight control coefficient of the relevant item.