[go: up one dir, main page]

CN115407197B - Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis - Google Patents

Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis Download PDF

Info

Publication number
CN115407197B
CN115407197B CN202211028982.6A CN202211028982A CN115407197B CN 115407197 B CN115407197 B CN 115407197B CN 202211028982 A CN202211028982 A CN 202211028982A CN 115407197 B CN115407197 B CN 115407197B
Authority
CN
China
Prior art keywords
fault
motor
sparse
encoder
head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211028982.6A
Other languages
Chinese (zh)
Other versions
CN115407197A (en
Inventor
戴峻峰
季仁东
赵俊
于之洋
魏友业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Xiechuang Zhongchuang Information Technology Co ltd
Original Assignee
Huaiyin Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaiyin Institute of Technology filed Critical Huaiyin Institute of Technology
Priority to CN202211028982.6A priority Critical patent/CN115407197B/en
Publication of CN115407197A publication Critical patent/CN115407197A/en
Application granted granted Critical
Publication of CN115407197B publication Critical patent/CN115407197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines
    • G01R31/343Testing dynamo-electric machines in operation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H11/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by detecting changes in electric or magnetic properties
    • G01H11/06Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by detecting changes in electric or magnetic properties by electric means
    • G01H11/08Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by detecting changes in electric or magnetic properties by electric means using piezoelectric devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/088Non-supervised learning, e.g. competitive learning

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

本发明公开了一种基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,检测电机位置传感器故障引起的振动信号,获得相应故障的振动信号频谱;利用Goertzel算法作为故障频谱的窄带谐波分析工具,对电机位置传感器故障引起的振动信号频谱的二次谐波分量进行评估,并将其作为故障检测的激励特征,再利用振动信号的四次谐波分量来完成对电机位置传感器的错位故障或击穿故障特征的提取;提出多头稀疏自编码器深度神经网络来联合学习电机故障特征,从而实现对电机故障数据的无监督重建和有监督分类。本发明不需要执行经典DNN所需的预训练和微调,通过直接训练具有校正功能的线性单元激活函数的MH‑DNN,可以减少计算负担,故障诊断性能良好,提高预测精度。

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.

Description

基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法Motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis

技术领域Technical Field

本发明涉及电机故障诊断技术领域,具体涉及一种基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法。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

随着现代科技的进步、生产系统的发展和设备制造水平的提高,生产系统所采用的电机数量不断增加,电机的正常工作对保障生产制造过程的安全、高效、优质、低耗运行具有非常重大的意义,而电机故障诊断技术就是在这种背景下出现的。电机故障诊断技术包含多门技术学科,可以根据电机运行过程中产生的各种信息来判断电机运行是否正常,在不拆卸的情况下,即可以找到故障位置及原因,因此,电机的故障预测与健康管理对工业发展具有重要意义。常见的无刷直流电动机驱动器,由于位置传感器引起错位等故障。由于制造缺陷,位置传感器可以安装在超前或滞后位置,分别导致负或正换向角误差,在位置传感器错位的情况下,会影响电机转子位置反馈,导致故障交替,产生额外的振动信号,这些振荡会导致电机电流增加,进而导致电机电流波动和机械振荡,电机电流和扭矩将受到影响,降低系统性能、威胁电机预期寿命。从而威胁电机控制器电路和电机绕组的正常工作,影响驱动系统性能。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 drivers 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

发明目的:针对无刷直流电动机驱动器的由于位置传感器引起的错位故障与击穿故障,本发明提供一种基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,利用压电传感器、Goertzel谐波分析及多头稀疏自编码器分类的方法,使测试分类系统具有更高的灵活性和非侵入性,减少计算负担,更适合对位置传感器引起的故障诊断。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.

技术方案:本发明公开了一种基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,包括以下步骤: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:

步骤1:通过压电传感器检测电机位置传感器故障引起的振动信号,完成对位置传感器的击穿故障或错位故障信号的前端信号采集,获得相应故障的振动信号频谱;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;

步骤2:利用Goertzel算法作为故障频谱的窄带谐波分析工具,对电机位置传感器故障引起的振动信号频谱的二次谐波分量进行评估,并将其作为故障检测的激励特征,再利用振动信号的四次谐波分量来完成对电机位置传感器的错位故障或击穿故障特征的提取;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.

步骤3:提出多头稀疏自编码器深度神经网络(MH-DNN)来联合学习电机故障特征,实现对电机故障数据的无监督重建和有监督分类;所述多头稀疏自编码器深度神经网络(MH-DNN)构建多隐层编码器以及解码器,所述解码器和编码器的结构及隐藏层数量和尺寸完全对称,且在传统SAE基础上增加分类模块;编码器使用多层非线性变换,从输入数据中提取高层表示特征,用作解码器和分类模块的输入,解码器重建输入数据,分类模块预测输入数据;所述MH-DNN利用代价函数完成训练,直接训练具有校正功能的线性单元激活函数,完成对健康及故障电机的健康状况及故障类型的分类。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.

进一步地,所述步骤1具体包括如下步骤:Furthermore, the step 1 specifically includes the following steps:

步骤1.1:构建故障信号采集系统,利用三相电压源逆变器(VSI)驱动无刷直流电机,测试电路包括一组7个5kHz的有源一阶低通滤波器,两个集成运算放大器,将压电陶瓷传感器安装在实验装置上,模拟通道以10kHz和12位精度进行采样和数字化,并进行数据存储、处理;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;

步骤1.2:建立内置霍尔效应的位置传感器的无刷直流电机模型,获得电机反电势和转子位置相电流的波形在位置传感器出现故障时的变化规律,完成无刷直流电机驱动控制器配置;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;

步骤1.3:建立压电传感器模型及其电气模拟器,通过压电传感器对振动信号的监测,来获得由于位置传感器错位等故障引起的扭矩和速度振荡信号。Step 1.3: Establish a piezoelectric sensor model and its electrical simulator. By monitoring the vibration signal of the piezoelectric sensor, the torque and speed oscillation signals caused by faults such as position sensor misalignment can be obtained.

进一步地,所述步骤1.2具体操作为:Furthermore, the specific operations of step 1.2 are as follows:

(1)获得无刷直流电机控制电路的状态空间(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:

其中,Vxs、R、Ls、M、ix(x=a,b,c)、exs、Kef(θ)分别表示相电压、相电阻、自感、互感、相电流、反电动势、反电动势常数、机械转子角速度和梯形函数;Among them, V xs , R, L s , M, i x (x=a,b,c), exs , Ke , 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)建立无刷直流电机驱动控制系统的机械动力学模型(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:

其中,θm,TL,B,J分别是转子位置、负载扭矩、摩擦扭矩系数和机械惯性;Among them, θ m , TL , B, and J are the rotor position, load torque, friction torque coefficient, and mechanical inertia, respectively;

(3)根据位置传感器的输出和所需旋转的方向,获得电机反电势和转子位置相电流的波形,确定电循环六个扇区的控制器配置数据。(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.

进一步地,所述步骤1.3的具体操作为:Furthermore, the specific operations of step 1.3 are:

(1)建立压电传感器模型(1) Establishing a piezoelectric sensor model

将压电传感器安装在圆形黄铜板(负极)上,并涂有一层薄金属膜,作为正电极,建立该压电传感器模型,其正向和反向压电效应为: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:

其中,Di是电位移分量,dikl和dkij是压电系数,Tkl是牵引矢量分量,是恒定条件下的介电常数分量,Ek是电场分量,Sij是应变分量,sijkl E是恒定电场下的柔度常数,i,j,k,l代表压电晶体系统的自然坐标,取值为1、2和3;Where D i is the electric displacement component, d ikl and d kij are the piezoelectric coefficients, 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 the values are 1, 2 and 3;

(2)建立电气模拟器,电气模拟器采用the Butterworth-Van Dyke(BVD)模型;(2) Establish an electrical simulator using the Butterworth-Van Dyke (BVD) model;

(3)利用压电传感器检测位置传感器故障引起的振动信号。(3) Use piezoelectric sensors to detect vibration signals caused by position sensor failure.

进一步地,所述步骤2中Goertzel算法的实现过程如下:Furthermore, the implementation process of the Goertzel algorithm in step 2 is as follows:

步骤2.1:首先,计算信号x[n]的第k个离散傅立叶变换(DFT)的分量:Step 2.1: First, calculate the components of the kth discrete Fourier transform (DFT) of the signal x[n]:

其中,特征长度为N,k是整数;Among them, the feature length is N, k is an integer;

步骤2.2:求取yk[n]期望值的一阶差分方程:Step 2.2: Find the first-order difference equation for the expected value of y k [n]:

步骤2.3:求取二阶差分方程:Step 2.3: Solve the second-order difference equation:

步骤2.4:获得基于Goertzel谐波分析的最终表达式:Step 2.4: Obtain the final expression based on Goertzel harmonic analysis:

进一步地,所述步骤3中构建多隐层编码器具体步骤如下:Furthermore, the specific steps of constructing a multi-hidden layer encoder in step 3 are as follows:

1)首先构建单层编码器,从输入层到隐藏层,称为编码器,单层编码器接收样本x作为输入,并将输入的D维样本x转换为其隐藏层输出,表示为a=[a1,a2,a3,…aD1],a=σ(W1x+b1),其中,σ是激活函数,W1,b1是编码器的权重矩阵和偏置矢量;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)在单层编码器的基础上,构建多隐层编码器;使用L个隐层来提取编码器的高层特征,其中,L∈N,令a1,a2,…,aL是从相应隐藏层中提取的特征,其维数为D1,D2,…,DL2) 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 be the features extracted from the corresponding hidden layer, and its dimension is D 1 ,D 2 ,…,D L ;

3)维数设置:D1设置大于输入层D的值,以获得第一次隐藏层的稀疏过完备表示特征;剩余隐层的维度Dl,l=2,3,…,L,小于Dl-1,用以获得压缩特征;3) Dimension setting: D1 is set to a value greater 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 Dl , l = 2, 3, ..., L, which is less than Dl-1 to obtain compressed features;

4)ReLU激活函数被用于输入层和所有隐藏层,在所有隐藏层中,应用稀疏正则化提取判别特征,L2正则化用于约束编码器的权重: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:

其中,Rsp为稀疏正则化,利用Kullback-Leibler(KL)的散度函数计算,用以衡量与期望稀疏比例p的接近程度,当所有等于p时,KL函数为零;为第j个隐藏神经元的平均激活度,考虑所有输入样本xi,i=1,…,N,其定义如下:ai,j是第i个隐藏特征的第j个元素。Among them, R sp is sparse regularization, which is calculated using the Kullback-Leibler (KL) divergence function 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 i-th hidden feature.

进一步地,所述步骤3中构建解码器的具体步骤为:Furthermore, the specific steps of constructing the decoder in step 3 are:

1)解码器是从隐藏层到输出层,根据特征向量a,利用输入样本x重建解码器和编码器的结构及隐藏层数量和尺寸完全对称,解码器利用特征aL恢复输入数据x,如下: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 the feature a L to recover the input data x as follows:

其中,W2,b2分别是解码器的权重矩阵和偏差向量;Among them, W 2 , b 2 are the weight matrix and bias vector of the decoder respectively;

2)所有隐藏层均使用ReLU激活函数,所有输出层均使用sigmoid激活函数,L2正则化被用于约束解码器的权重;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)在网络训练期间添加稀疏限制项,稀疏编码器完成对鉴别性特征的提取:3) Add sparse restrictions during network training, and the sparse encoder completes the extraction of discriminative features:

设输入样本为xi,i=1,…,N,训练目标为最小化以下成本函数:Assume that the input sample is x i , i = 1,…,N, and the training objective is to minimize the following cost function:

其中,第一项是重建误差,第二项是L2正则化项,W是SAE权重矩阵,Rsp是稀疏正则化,λ和β是相应项的权重控制参数,Rsp为稀疏正则化,利用Kullback-Leibler(KL)的散度函数计算,用以衡量与期望稀疏比例p的接近程度,当所有等于p时,KL函数为零:Among them, the first term is the reconstruction error, the second term is the L2 regularization term, W is the SAE weight matrix, Rsp is the sparse regularization, λ and β are the weight control parameters of the corresponding terms, Rsp is the sparse regularization, calculated using the Kullback-Leibler (KL) divergence function to measure The closeness to the expected sparse ratio p is When p is equal to p, the KL function is zero:

其中,为第j个隐藏神经元的平均激活度,考虑所有输入样本xi,i=1,…,N,其定义如下:ai,j是第i个隐藏特征的第j个元素。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 i-th hidden feature.

进一步地,所述步骤3中构建分类模块的具体步骤为:Furthermore, the specific steps of constructing the classification module in step 3 are:

1)MH-DNN在传统SAE基础上增加分类模块,分类模块采用具有C个神经元的softmax层,通过softmax层将神经网络的输出结果转化成概率表达式,由此找到最大概率项,并为其分类;softmax层代表了求解C类分类问题的不同条件,当给定特征aL,softmax层计算输出向量y1,y2,…,yC,其中,第k个输出为yk,k=1,2,…,C,其具体定义如下: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 the feature a L is given, 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:

其中,0≤yk≤1,Zk是应用softmax激活函数前的第k个输出,在分类模块的隐藏层上使用Dropout(随机失活)正则化,利用以下等式计算ZkAmong them, 0≤y k ≤1, Z k is the k-th output before applying the softmax activation function. Dropout regularization is used on the hidden layer of the classification module. Z k is calculated using the following equation:

zk=wk(aLor)+bk z k = w k (a L or) + b k

其中,wk和bk是softmax层的第k个神经元的权重和偏差,o为向量乘法中的元素乘法运算符,aL为给定特征,是伯努利随机变量的“掩蔽”向量,其概率为0;Where wk and bk are the weight and bias of the kth neuron in the softmax layer, o is the element-wise multiplication operator in vector multiplication, aL is the given feature, is the "masking" vector of Bernoulli random variables, whose probability is 0;

2)设训练集中的数据表示为(xi,yi),i=1,2,…,N,将每个标签yi被转化成一个C维向量,即(yi,1,yi,2,…yi,c)i=1,2,…,N2) Assume that the data in the training set is represented as ( xi , yi ), i = 1, 2, ..., N, and each label yi is transformed into a C-dimensional vector, that is, (yi ,1 , yi ,2 , ... yi ,c ) i = 1, 2, ..., N :

3)利用代价函数完成训练3) Use the cost function to complete the training

多头稀疏自编码器深度神经网络(MH-DNN)的训练目标为是最小化如下代价函数:The training objective of the multi-head sparse autoencoder deep neural network (MH-DNN) is to minimize the following cost function:

其中,第一项是重建误差,第二项是L2正则化项,yi,k为yi被转化成的C维向量,xi为输入样本,为解码器输出,N为数据长度,W是整个MH-DNN的权重矩阵,是应用于编码器的第j个隐藏层的稀疏正则化,最后一项是分类模块的交叉熵损失性参数,λ,β,η1,η2是相关项的权重控制系数。Among them, the first term is the reconstruction error, the second term is the L2 regularization term, yi ,k is the C-dimensional vector converted from yi , xi 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, the last term is the cross entropy loss parameter of the classification module, and λ, β, η 1 , η 2 are the weight control coefficients of the related terms.

有益效果:Beneficial effects:

1、本发明通过用压电传感器、Goertzel分析及多头稀疏自编码器分类的方法完成对电机故障诊断的过程,对由于位置传感器引起的错位故障与击穿故障进行正确预测。在电机故障信号采集中,采用压电传感器来采集位置传感器故障引起的振动信号。压电传感器是一种廉价的测试技术,具有灵活性和非侵入性。该方法可以作为外部的诊断工具,能够检测所有潜在的基于霍尔效应的位置传感器的故障类型,如错位或单次击穿故障或双次击穿故障,而无需对电机进行硬件修改,无需改变控制器或增加外部电压或电流传感器,由此,该方法独立于驱动系统的电压和电流,且独立于位置传感器,能最大限度地减少系统连接线,消除基于电机的位置传感器映射的需求,无需将位置传感器加倍或添加逻辑电路,即可以实现本地或远程对电机健康或故障状态的监测。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.

2、本发明利用Goertzel算法进行故障振动信号的谐波分析。Goertzel算法仅在感兴趣的谐波分量周围使用窄频带,就可用于频域分析,相对来说具有较大优势。Goertzel算法无需归一化,在所研究频谱范围内,没有其他高振幅谐波分量,因此可以进一步缩小范围,实施过程更快,适合用于电机故障诊断和状态监测等应用场合。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.

3、本发明提出多头稀疏自编码器深度神经网络(MH-DNN)来联合学习电机故障特征,从而完成对测试用健康及故障电机的健康状况及故障类型的分类。重点在于构建多隐层编码器,以及隐藏层数量和尺寸完全对称的解码器,增加分类模块。该方法不需要执行经典DNN所需的预训练和微调阶段,直接训练具有校正功能的线性单元激活函数,可以减少计算负担,有利于提高电机生产的可靠性,降低维修成本,对电机检测维护均具有重大的实际意义。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 and 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

图1是基于位置传感器的无刷直流电动机故障信号采集系统;FIG1 is a brushless DC motor fault signal acquisition system based on a position sensor;

图2是无刷直流电机外形尺寸图;FIG2 is a dimensional diagram of a brushless DC motor;

图3是电机绕组引线图;Figure 3 is a diagram of the motor winding leads;

图4是具有内置霍尔位置传感器的典型无刷直流电机驱动器的框图;FIG4 is a block diagram of a typical brushless DC motor driver with a built-in Hall position sensor;

图5是理想的电机反电势(Ex)和转子位置相电流(Ix)的波形(x=A、B、C);FIG5 is the waveform of the ideal motor back EMF (Ex) and rotor position phase current (Ix) (x = A, B, C);

图6是基于不同的机械和电气的正向和反向压电效应简化框图;FIG6 is a simplified block diagram of the forward and reverse piezoelectric effects based on different mechanical and electrical properties;

图7是压电传感器的the Butterworth-Van Dyke(BVD)模型;FIG7 is the Butterworth-Van Dyke (BVD) model of a piezoelectric sensor;

图8是二阶Goertzel算法的实现框图;FIG8 is a block diagram of an implementation of a second-order Goertzel algorithm;

图9是基于Goertzel算法的电机故障频率分析及特征提取流程;FIG9 is a flow chart of motor fault frequency analysis and feature extraction based on the Goertzel algorithm;

图10是基于Goertzel分析的压电传感器的窄频谱;FIG10 is a narrow spectrum of a piezoelectric sensor based on Goertzel analysis;

图11是位置传感器故障时的相电流波形(高位置配置);FIG11 is a phase current waveform when the position sensor fails (high position configuration);

图12是位置传感器故障时的相电流波形(低位置配置);FIG12 is a phase current waveform when the position sensor fails (low position configuration);

图13是单层稀疏自动编码器(SAE)的结构;FIG13 is the structure of a single-layer sparse autoencoder (SAE);

图14是多头稀疏自编码器深度神经网络(MH-DNN)结构;Figure 14 is a multi-head sparse autoencoder deep neural network (MH-DNN) structure;

图15是基于多头稀疏自编码器深度神经网络(MH-DNN)的电机故障诊断方法流程。Figure 15 is the process of the motor fault diagnosis method based on the multi-head sparse autoencoder deep neural network (MH-DNN).

具体实施方式DETAILED DESCRIPTION

下面结合附图对本发明作进一步描述,以下实施例是对本发明的解释,而本发明并不局限于以下实施例。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.

针对无刷直流电动机驱动器的由于位置传感器引起的错位故障与击穿故障,本发明提供一种基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,这种利用压电传感器、Goertzel谐波分析及多头稀疏自编码器分类的方法,使测试分类系统具有更高的灵活性和非侵入性,减少计算负担,更适合对位置传感器引起的故障诊断。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.

图1所示为本发明实施例中基于位置传感器的无刷直流电动机故障信号采集系统:FIG1 shows a brushless DC motor fault signal acquisition system based on a position sensor in an embodiment of the present invention:

该电机故障信号采集系统由电动机、压电陶瓷传感器、集成运算放大器、三相电压源逆变器(VSI)、12位精度ADC采集器和计算机组成。实验在电动机空载稳定运行下进行,主要采集电动机正常状态和故障状态下的振动信号,最后,将采集后的信号送入计算机进行故障诊断处理。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.

结合图1,本发明公开的一种基于多头稀疏自编码器及Goertzel谐波分析的电机故障诊断方法,包括以下步骤:In conjunction with FIG1 , the present invention discloses a motor fault diagnosis method based on a multi-head sparse autoencoder and Goertzel harmonic analysis, comprising the following steps:

步骤1:在电机空载稳定运行下,利用压电陶瓷传感器采集电机正常状态和位置传感器故障状态下的振动信号;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;

(1)构建故障信号采集系统(1) Build a fault signal acquisition system

采用型号为57BL115S18无刷直流电机BLDC(180W/3000RPM/DC 24V)为研究对象,设定电机的转子转速为900rpm,基频为60Hz,空载。利用三相电压源逆变器(VSI)驱动无刷直流电机,测试电路包括一组7个5kHz的有源一阶低通滤波器,两个单电源、低成本、噪声和偏置通用的集成运算放大器,将压电陶瓷传感器安装在实验装置上,模拟通道以10kHz和12位精度进行采样和数字化,并送入计算机中进行数据存储、处理。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.

具体实施中,所用电机尺寸参数及电机绕组引线图如图2、图3。无刷直流电机参数如表1:In the specific implementation, the motor size parameters and motor winding lead diagram are shown in Figure 2 and Figure 3. The brushless DC motor parameters are shown in Table 1:

表1无刷直流电机BLDC参数Table 1 BLDC brushless DC motor parameters

(2)研究内置霍尔效应位置传感器的无刷直流电机模型,获得电机反电势和转子位置相电流的波形的变化规律,完成无刷直流电机驱动控制器配置;(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;

1)获得无刷直流电机控制电路的状态空间1) Obtain the state space of the brushless DC motor control circuit

对于具有中性点的无刷直流电机,其控制电路的状态空间由等式(1)和(2)表示:For a brushless DC motor with a neutral point, the state space of its control circuit is expressed by equations (1) and (2):

其中,Vxs、R、Ls、M、ix(x=a,b,c)、exs、Kef(θ)分别表示相电压、相电阻、自感、互感、相电流、反电动势、反电动势常数、机械转子角速度和梯形函数。Among them, V xs , R, L s , M, i x (x=a,b,c), exs , Ke , 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)建立无刷直流电机驱动控制系统的机械动力学模型2) Establish the mechanical dynamics model of the brushless DC motor drive control system

无刷直流电机驱动控制系统的机械动力学模型和产生的电磁波扭矩见等式(3)和(4):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):

其中,θm,TL,B,J分别是转子位置、负载扭矩、摩擦扭矩系数和机械惯性,其他参数同上。Among them, θ m , TL , B, J are rotor position, load torque, friction torque coefficient and mechanical inertia respectively, and other parameters are the same as above.

3)根据位置传感器的输出和所需旋转的方向,获得电机反电势和转子位置相电流的波形,根据这些波形,确定电循环六个扇区的控制器配置数据。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 for the six sectors of the electrical cycle are determined.

无刷直流电机通常使用内置霍尔效应的位置传感器,这是一种低成本、体积小的转子位置检测方法,具有60度分辨率和速度估计,其低速时的速度更新率较低,准确地说,每个传感器的数字输出高达180度,剩下的时间都是低电气循环,而最常见的配置是位于相隔120度,将电循环分为六个扇区的情况。由于典型的无刷直流电机驱动系统带有电压源逆变器,因此,可根据电机转子位置来进行相电流的检测及变换。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.

具有内置霍尔位置传感器的无刷直流电机驱动器的典型框图如图4所示。A typical block diagram of a brushless DC motor driver with built-in Hall position sensor is shown in Figure 4.

工作期间,功率开关根据预定义的顺序激活,用以实现标准120度的换向逻辑,并且,在每个扇区具有两个有源相位,因此,每个阶段包括120度正向通电,60度断电,120度负通电,其余为停止工作状态。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.

理想的电机反电势和转子位置相电流的波形如图5所示。The ideal motor back EMF and rotor position phase current waveforms are shown in Figure 5.

值得注意的是,图5中的波形基于以下假设:忽略功率开关的开启及关闭时间,并且在无刷直流电机(BLDC)具有理想梯形反电势和低相电感的情况下获得对应波形。It is worth noting that the waveforms in FIG5 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.

获得一个电循环六个扇区的控制器配置见表2。The controller configuration to obtain six sectors in one electrical cycle is shown in Table 2.

表2基于转子位置和传感器信号的120°换向逻辑Table 2 120° commutation logic based on rotor position and sensor signal

在实际应用中,相电流以准矩形为特征波形,但在大多数情况下,它们与反电势不完全同步,因此,会影响观察到的电流波形。考虑到电机电感和不可避免的转子位置估计的检测处理误差,在正常运行下,可能会出现转矩脉动。In practical applications, the phase currents have a quasi-rectangular waveform, but in most cases they are not completely synchronized with the back EMF, thus affecting the observed current waveform. Torque ripple may occur in normal operation, taking into account the motor inductance and the unavoidable detection processing errors of the rotor position estimation.

(3)建立压电传感器模型及其电气模拟器,通过压电传感器对振动信号的监测,来获得由于位置传感器错位等故障引起的扭矩和速度振荡信号,研究压电陶瓷传感器在检测不同故障类型的无刷直流电机驱动系统中的性能。(3) A piezoelectric sensor model and its electrical simulator are established. The piezoelectric sensor monitors the vibration signal 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.

1)建立压电传感器模型1) Establish a piezoelectric sensor model

根据直接压电效应,在某些情况下,施加外部应力的晶体会产生表面电荷,由此产生极化,极化可以表示为晶体端子间的电压差。当这些电介质材料发生变形时,也会表现出逆压电效应,正向和反向压电效应分别由等式(5)和(6)表示。其中,输出电压极性由晶体相对于压力的方向定义。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.

具体压电效应如图6所示。The specific piezoelectric effect is shown in Figure 6.

Sij=sijkl ETkl+dkijEk (6)S ij =s ijkl E T kl +d kij E k (6)

其中,Di是电位移分量,dikl和dkij是压电系数,Tkl是牵引矢量分量,是恒定条件下的介电常数分量,Ek是电场分量,Sij是应变分量,sijkl E是恒定电场下的柔度常数,i,j,k,l代表压电晶体系统的自然坐标,取值为1、2和3。Where D i is the electric displacement component, d ikl and d kij are the piezoelectric coefficients, 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 the values are 1, 2 and 3.

2)建立电气模拟器2) Build an electrical simulator

电气模拟器采用the Butterworth-Van Dyke(BVD)模型,如图7所示。The electrical simulator uses the Butterworth-Van Dyke (BVD) model, as shown in Figure 7.

其中,电子元件Cm与电极机械弹性相关,Lm是振动材料的惯性分量,Rm是由振荡引起的机械能损失,Co表示压电材料的电容。Here, the electronic component Cm is related to the mechanical elasticity of the electrode, Lm is the inertial component of the vibrating material, Rm is the mechanical energy loss caused by the oscillation, and Co represents the capacitance of the piezoelectric material.

3)研究压电传感器在电机位置传感器故障检测中的应用理论及依据,并利用锆酸盐钛陶瓷压电传感器检测位置传感器故障引起的振动信号,经预处理,通过Wi-Fi无线传输到计算机控制系统中。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.

实施中,使用锆酸盐钛陶瓷压电传感器,压电元件安装在圆形黄铜板(负极)上,并涂有一层薄金属膜,作为正电极,该传感器频率差异较小,制造成本低。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.

由于制造缺陷,位置传感器可以安装在超前或滞后位置,分别导致负或正换向角误差,在位置传感器错位的情况下,电机电流和扭矩将受到影响,产生额外的振动信号。因此,压电传感器可用于诊断具有不同或均匀移动的非理想安装角度。在本专利中,将压电传感器应用于诊断位置传感器的错位故障,并使用Goertzel算法对振动信号的二次谐波分量提取故障特征。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.

本实施方式中,针对单位置传感器故障进行研究。In this implementation, a single position sensor failure is studied.

如前所述,位置传感器故障可以通过故障传感器在高电平或低电平下的永久输出信号来识别,与转子无关位置,这种故障条件会影响相电流换向,因为它会导致扩展120度扇区。对于有效相位,在单传感器击穿故障的情况下,也会观察到(0,0,0)和(1,1,1)的“禁止”向量。在本发明中,控制器编程对禁止向量作出反应,在PWM输出端发送零矢量命令,将电机绕组驱动至三相浮动状态。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.

电机健康状态与由传感器位置不当引起的故障状态如表3所示:The motor health status and fault status caused by improper sensor position are shown in Table 3:

表3电机健康状态与由传感器位置不当引起的故障状态的换向序列Table 3 Commutation sequence of motor health status and fault status caused by improper sensor position

故障传感器以不同方式影响相电流换向,在位置传感器存在缺陷的情况下。通过对相电流波形的比较得出以下结论:Faulty sensors affect phase current commutation in different ways. In the case of defective position sensors, the following conclusions are drawn from the comparison of phase current waveforms:

单位置传感器击穿故障,会施加额外的零电流扇区或延长的传导周期,可能导致控制器电源开关故障或电机绕组温度升高。另外,当反电动势幅值从平顶值降低到较低值时,由于输入电压及其电压差,相电流将增加。因此,由于两相传导模式,另一个激活相位也受到影响,预计两个相位的电流值都会增加。在不同位置传感器击穿故障的情况下,类似的波形为其故障状态预测提供了依据。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.

步骤2:提出利用Goertzel算法作为故障频谱的窄带谐波分析工具,对电机位置传感器故障引起的振动信号频谱的二次谐波、四次谐波分量进行评估,并利用其提取位置传感器的错位故障或击穿故障特征。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.

在故障诊断的频域分析中,常用到快速傅立叶变换(FFT),然而,其主要缺点是频率分辨率、频谱泄漏以及计算成本等性能具有局限性。由此,本发明采用Goertzel算法,Goertzel算法仅在感兴趣的谐波分量周围使用窄频带,就可用于频域分析,相对来说具有较大优势,而FFT分析则需要使整个频谱的方法来完成频率分析,而且,Goertzel算法无需归一化,在所研究频谱范围内,没有其他高振幅谐波分量,因此可以进一步缩小范围,实施过程更快。总体来说,Goertzel算法在信号长度和低内存需求方面均优于FFT,其计算复杂度与信号长度无关,适合用于电机故障诊断和状态监测等应用场合。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.

具体地说,Goertzel算法的实现过程如下:Specifically, the implementation process of the Goertzel algorithm is as follows:

(1)首先,计算信号x[n]的第k个离散傅立叶变换(DFT)的分量,其特征长度为N,表达式如等式(7)所示。其中,k是整数,算法使用相位因子ej2πk完成计算,基于ej2πk的周期性,算法的计算复杂度会大大减少;(1) First, calculate the kth discrete Fourier transform (DFT) component of the signal x[n], 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 to complete the calculation. Based on the periodicity of e j2πk , the computational complexity of the algorithm will be greatly reduced;

(2)然后,求取yk[n]的期望值的一阶差分方程,见等式(8),这其中包含复数和计算量大的乘法因子;(2) Then, the first-order difference equation for the expected value of y k [n] is obtained, see equation (8), which contains complex numbers and computationally intensive multiplication factors;

(3)接下来,求取二阶差分方程,具体由方程(9)表示;(3) Next, the second-order difference equation is obtained, which is specifically expressed by equation (9);

(4)最后,获得最终系统的表达式,具体描述见方程(10);(4) Finally, the expression of the final system is obtained, as described in equation (10);

所用到的二阶Goertzel算法的流程图如图8所示。The flowchart of the second-order Goertzel algorithm used is shown in FIG8 .

在利用Goertzel算法进行电机故障信号特征提取及分析的具体实施中,当检测到二次谐波分量,则会触发故障诊断过程。具体的说,首先获取电机故障振动数据,然后对其进行基于Goertzel算法的频率分析,判断是否有二次谐波分量,如果没有则再次进行频率分析,如果检测到二次谐波分量,则检测四次谐波分量,接下来判断是否为高增量的四次故障谐波成分,以此来获得两组特征数据,最后将特征值送入分类器,获得最终分类结果。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.

基于Goertzel算法的电机故障频率分析及特征提取流程如图9。The process of motor fault frequency analysis and feature extraction based on Goertzel algorithm is shown in Figure 9.

实施中,采用Goertzel算法来分析由于位置传感器引起的电机故障,系统频率为60Hz基频,额定扭矩为65%,在单个位置传感器错位故障情况下,通过Goertzel算法分析压电传感器频谱的二次谐波分量,对应的窄频谱的特性输出如图9所示。In the implementation, the Goertzel algorithm is used to analyze the motor fault caused by the position sensor. The system frequency is 60 Hz 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 shown in Figure 9.

进一步地,为了研究单位置传感器的击穿故障,比较了霍尔效应的位置传感器在高位置和低位置状态下的故障情况。当霍尔效应位置传感器持续输出高或低信号,即认定为故障信号。实验中获得的高、低位置传感器配置故障时的相电流波形如图10和图11。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 identified as a fault signal. The phase current waveforms obtained in the high and low position sensor configurations when faulty are shown in Figures 10 and 11.

步骤3:提出多头稀疏自编码器深度神经网络(MH-DNN)来联合学习电机故障特征,用以完成对电机故障的检测和诊断,从而实现对电机故障数据的无监督重建和有监督分类。主要特点是构建多隐层稀疏编码器,以及隐藏层数量和尺寸完全对称的解码器,增加分类模块。其中,编码器使用多层非线性变换,用以从输入数据中提取高层表示特征,这些提取的特征用作解码器和分类模块的输入,解码器旨在重建输入数据,而分类模块用于预测输入数据。具体步骤如下: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:

(1)构建多隐层编码器(1) Constructing a multi-hidden layer encoder

首先构建单层编码器,从输入层到隐藏层,称为编码器,单层编码器接收样本x作为输入,并将输入的D维样本x转换为其隐藏层输出,表示为a=[a1,a2,a3,…aD1],具体表达式如下: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 ], and the specific expression is as follows:

a=σ(W1x+b1) (11)a=σ(W 1 x+b 1 ) (11)

其中,σ是激活函数,W1,b1是编码器的权重矩阵和偏置矢量。Where σ is the activation function, W 1 , b 1 are the weight matrix and bias vector of the encoder.

单层稀疏自动编码器(SAE)的结构见图12。The structure of a single-layer sparse autoencoder (SAE) is shown in Figure 12.

接下来,在单层编码器的基础上,构建多隐层编码器。使用L个隐层来提取编码器的高层特征,其中,L∈N,令a1,a2,…,aL是从相应隐藏层中提取的特征,其维数为D1,D2,…,DLNext, 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, and a 1 , a 2 , …, a L are the features extracted from the corresponding hidden layers, and their dimensions are D 1 , D 2 , …, D L .

对于维数的设置,具有如下规定及特点:1)D1设置大于输入层D的值,以获得第一次隐藏层的稀疏过完备表示特征;2)剩余隐层的维度Dl,l=2,3,…,L,应该小于Dl-1,用以获得压缩特征。The setting of dimension has the following provisions and characteristics: 1) D 1 is set larger than the value of input layer D to obtain sparse over-complete representation features of the first hidden layer; 2) The dimension of the remaining hidden layer D l , l = 2, 3, ..., L, should be smaller than D l-1 to obtain compressed features.

实施中,ReLU激活函数被用于输入层和所有隐藏层。在所有隐藏层中,应用式(14)中定义的稀疏正则化去提取判别特征,L2正则化用于约束编码器的权重。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 equation (14) is applied to extract discriminative features, and the L2 regularization is used to constrain the weights of the encoder.

(2)构建解码器(2) Constructing a decoder

解码器是从隐藏层到输出层,根据特征向量a,利用输入样本x重建解码器和编码器的结构及隐藏层数量和尺寸完全对称,解码器旨在利用特征aL恢复输入数据x。具体如下: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 aims to restore the input data x using the feature a L. The details are as follows:

其中,W2,b2分别是解码器的权重矩阵和偏差向量。Among them, W 2 , b 2 are the weight matrix and bias vector of the decoder respectively.

在重建过程中,所有隐藏层均使用ReLU激活函数,所有输出层均使用sigmoid激活函数,L2正则化被用于约束解码器的权重。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.

作为自编码器的变体,通过在网络训练期间添加稀疏限制项,稀疏编码器完成对鉴别性特征的提取。As a variant of the autoencoder, the sparse encoder extracts discriminative features by adding sparse restrictions during network training.

设输入样本为xi,i=1,…,N,训练目标为最小化以下成本函数:Assume that the input sample is x i , i = 1,…,N, and the training objective is to minimize the following cost function:

其中,第一项是重建误差,第二项是L2正则化项,W是SAE权重矩阵,λ和β是相应项的权重控制参数,Rsp为稀疏正则化,利用Kullback-Leibler(KL)的散度函数计算,用以衡量与期望稀疏比例p的接近程度,当所有等于p时,KL函数为零。具体定义如下:Among them, the first term is the reconstruction error, the second term is the L2 regularization term, W is the SAE weight matrix, λ and β are the weight control parameters of the corresponding terms, and Rsp is the sparse regularization, which is calculated using the Kullback-Leibler (KL) divergence function 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:

其中,为第j个隐藏神经元的平均激活度,考虑所有输入样本xi,i=1,…,N,其定义如下:in, is the average activation of the jth hidden neuron, considering all input samples x i , i = 1,…,N, which is defined as follows:

ai,j是第i个隐藏特征的第j个元素。a i,j is the jth element of the i-th hidden feature.

(3)构建分类模块(3) Building a classification module

1)MH-DNN在传统SAE基础上增加分类模块,分类模块采用具有C个神经元的softmax层,通过softmax层将神经网络的输出结果转化成概率表达式,由此找到最大概率项,并为其分类。softmax层代表了求解C类分类问题的不同条件,当给定特征aL,softmax层计算输出向量y1,y2,…,yC。其中,第k个输出为yk,k=1,2,…,C,其具体定义如下: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 the feature a L is given, the softmax layer calculates the output vector y 1 ,y 2 ,…,y C . Among them, the k-th output is y k , k=1,2,…,C, and its specific definition is as follows:

式子中,0≤yk≤1,Zk是应用softmax激活函数前的第k个输出,为了防止过度拟合,在分类模块的隐藏层上使用Dropout(随机失活)正则化,因此,考虑到Dropout,利用以下等式计算Zk,其定义如下:In the formula, 0≤y k ≤1, Z k is the k-th output before applying the softmax activation function. In order to prevent overfitting, Dropout (random dropout) regularization is used on the hidden layer of the classification module. Therefore, considering Dropout, Z k is calculated using the following equation, which is defined as follows:

zk=wk(aLor)+bk (17)z k = w k (a L or) + b k (17)

其中,wk和bk是softmax层的第k个神经元的权重和偏差,o为向量乘法中的元素乘法运算符,aL为给定特征,是伯努利随机变量的“掩蔽”向量,其概率为0。实施中,梯度计算仅通过未屏蔽神经元的反向传播来完成。Where wk and bk are the weight and bias of the kth neuron in the softmax layer, o is the element-wise multiplication operator in vector multiplication, aL is the 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.

2)将每个标签yi转化成一个C维向量2) Convert each label yi into a C-dimensional vector

设训练集中的数据表示为(xi,yi),i=1,2,…,N,将每个标签yi转化成一个C维向量,即(yi,1,yi,2,…yi,c)i=1,2,…,N,具体如下:Assume that the data in the training set is represented as ( xi , yi ), i = 1, 2, ..., N, and transform each label yi into a C-dimensional vector, that is, (yi ,1 , yi ,2 , ... yi ,c ) i = 1, 2, ..., N , as follows:

3)利用代价函数完成训练3) Use the cost function to complete the training

多头稀疏自编码器深度神经网络(MH-DNN)的训练目标为是最小化如下代价函数:The training objective of the multi-head sparse autoencoder deep neural network (MH-DNN) is to minimize the following cost function:

其中,第一项是重建误差,第二项是L2正则化项,yi,k为yi被转化成的C维向量,xi为输入样本,为解码器输出,N为数据长度,W是整个MH-DNN的权重矩阵,是应用于编码器的第j个隐藏层的稀疏正则化,最后一项是分类模块的交叉熵损失性参数,λ,β,η1,η2是相关项的权重控制系数。Among them, the first term is the reconstruction error, the second term is the L2 regularization term, yi ,k is the C-dimensional vector converted from yi , xi 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, the last term is the cross entropy loss parameter of the classification module, and λ, β, η 1 , η 2 are the weight control coefficients of the related terms.

多头稀疏自编码器深度神经网络(MH-DNN)结构见图13。The structure of the multi-head sparse autoencoder deep neural network (MH-DNN) is shown in Figure 13.

利用MH-DNN进行电机故障诊断的具体实施中,首先,将电机故障原始信号分割成数据样本,建立样本库。然后建立MH-DNN,并使用已收集的健康与故障状态的C类特征数据样本进行训练,模型训练成功后,再利用测试数据样本,由MH-DNN分类算法判别其是否属于已知的C类,并给出故障决策结论。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.

基于多头稀疏自编码器深度神经网络(MH-DNN)的电机故障诊断方法的流程图如图14所示。The flowchart of the motor fault diagnosis method based on multi-head sparse autoencoder deep neural network (MH-DNN) is shown in Figure 14.

步骤4:基于以上技术,搭建实验平台,完成对电机故障分类的具体实施,主要完成以下测试实验: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:

(1)电机故障诊断实验(1) Motor fault diagnosis experiment

本发明实施例利用压电传感器采集由于位置传感器引起的故障信号频谱,再利用Goertzel算法作为窄带谐波分析工具,对故障信号频谱进行分析,并提取其特征,最后,加入多头稀疏自编码器深度神经网络(MH-DNN)分类器中,进而获得两种故障的类型,错位故障与击穿故障的分类结果。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.

对不同故障及健康状态信号分别采集200个数据,提取对应频率图的故障特征,送入对应分类器模型中,完成对健康及故障电机的健康状况及故障类型的分类。算法中的迭代次数和种群数分别为1000以及500,阈值和权值取值在[-1,1]之间,学习速率为0.25。测试结果见表4。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.

表4故障诊断分类效果Table 4 Fault diagnosis classification effect

表4中可见,错位故障,击穿故障的分类精度和召回率类似,且表现良好,使用压电传感器能够完成对电机驱动控制系统中的霍尔效应位置传感器的错位及击穿故障进行正确诊断,该方法对于不同故障的分类效果均有效,具有良好的应用前景。该方法的主要优点是能够区分电机控制中的两种位置传感器故障类型,将不同的谐波成分用于检测不同的故障类型,利用窄带谐波分析的Goertzel算法,即节省时间,又可以节省计算成本和内存需求。由此,压电传感器可用于电机驱动系统的状态监测,适合形成廉价的故障诊断的智能物联网。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.

(2)不同分类器模型比较(2) Comparison of different classifier models

实施中,对提出的MH-DNN分类器与常规BP算法、RBF算法进行实验验证、比较。对模型完成训练后,对训练好的网络误差值进行比较,随机选取20组样本,将故障样本送入训练好的模型中进行测试,获得诊断效果如表5所示。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.

表5实验结果对比(误差)Table 5 Comparison of experimental results (error)

从表5可以看出,基于多头稀疏自编码器深度神经网络分类器(MH-DNN)的预测结果最佳,其预测误差绝对值明显小于BP算法、RBF算法。由于训练样本中包含电机故障信息,因此,相较于传统的BP神经网络、RBF算法,MH-DNN分类器在电机故障诊断方面表现出明显优势,具有较高的诊断准确率,可以获得远远高于BP算法、RBF算法的诊断效果。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.

上述实施方式只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人能够了解本发明的内容并据以实施,并不能以此限制本发明的保护范围。凡根据本发明精神实质所做的等效变换或修饰,都应涵盖在本发明的保护范围之内。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 (6)

1.一种基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,其特征在于,包括以下步骤:1. A motor fault diagnosis method based on a multi-head sparse autoencoder and Goertzel analysis, characterized in that it comprises the following steps: 步骤1:通过压电传感器检测电机位置传感器故障引起的振动信号,完成对位置传感器的击穿故障或错位故障信号的前端信号采集,获得相应故障的振动信号频谱;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; 步骤1.1:构建故障信号采集系统,利用三相电压源逆变器(VSI)驱动无刷直流电机,测试电路包括一组7个5kHz的有源一阶低通滤波器,两个集成运算放大器,将压电陶瓷传感器安装在实验装置上,模拟通道以10kHz和12位精度进行采样和数字化,并进行数据存储、处理;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; 步骤1.2:建立内置霍尔效应的位置传感器的无刷直流电机模型,获得电机反电势和转子位置相电流的波形在位置传感器出现故障时的变化规律,完成无刷直流电机驱动控制器配置;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; 步骤1.3:建立压电传感器模型及其电气模拟器,通过压电传感器对振动信号的监测,来获得由于位置传感器错位故障引起的扭矩和速度振荡信号;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)建立压电传感器模型(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: Sij=sijkl ETkl+dkijEk S ij =s ijkl E T kl +d kij E k 其中,Di是电位移分量,dikl和dkij是压电系数,Tkl是牵引矢量分量,是恒定条件下的介电常数分量,Ek是电场分量,Sij是应变分量,sijkl E是恒定电场下的柔度常数,i,j,k,l代表压电晶体系统的自然坐标,取值为1、2和3;Where D i is the electric displacement component, d ikl and d kij are the piezoelectric coefficients, 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 the values are 1, 2 and 3; (2)建立电气模拟器,电气模拟器采用theButterworth-VanDyke(BVD)模型;(2) Establishing an electrical simulator, which uses the Butterworth-Van Dyke (BVD) model; (3)利用压电传感器检测位置传感器故障引起的振动信号;(3) Using piezoelectric sensors to detect vibration signals caused by position sensor failure; 步骤2:利用Goertzel算法作为故障频谱的窄带谐波分析工具,对电机位置传感器故障引起的振动信号频谱的二次谐波分量进行评估,并将其作为故障检测的激励特征,再利用振动信号的四次谐波分量来完成对电机位置传感器的错位故障或击穿故障特征的提取;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. 步骤3:提出多头稀疏自编码器深度神经网络来联合学习电机故障特征,实现对电机故障数据的无监督重建和有监督分类;所述多头稀疏自编码器深度神经网络构建多隐层编码器以及解码器,所述解码器和编码器的结构及隐藏层数量和尺寸完全对称,且在传统SAE基础上增加分类模块;编码器使用多层非线性变换,从输入数据中提取高层表示特征,用作解码器和分类模块的输入,解码器重建输入数据,分类模块预测输入数据;所述多头稀疏自编码器深度神经网络利用代价函数完成训练,直接训练具有校正功能的线性单元激活函数,完成对健康及故障电机的健康状况及故障类型的分类。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 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 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 types of healthy and faulty motors. 2.根据权利要求1所述的基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,其特征在于,所述步骤1.2具体操作为:2. According to 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)获得无刷直流电机控制电路的状态空间(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: 其中,Vxs、R、Ls、M、ix(x=a,b,c)、exs、Kef(θ)分别表示相电压、相电阻、自感、互感、相电流、反电动势、反电动势常数、机械转子角速度和梯形函数;Among them, V xs , R, L s , M, i x (x=a,b,c), exs , Ke , 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)建立无刷直流电机驱动控制系统的机械动力学模型(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: 其中,θm,TL,B,J分别是转子位置、负载扭矩、摩擦扭矩系数和机械惯性;Among them, θ m , TL , B, and J are the rotor position, load torque, friction torque coefficient, and mechanical inertia, respectively; (3)根据位置传感器的输出和所需旋转的方向,获得电机反电势和转子位置相电流的波形,确定电循环六个扇区的控制器配置数据。(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.根据权利要求1所述的多头稀疏自编码器及Goertzel分析的电机故障诊断方法,其特征在于,所述步骤2中Goertzel算法的实现过程如下:3. The motor fault diagnosis method based on the multi-head sparse autoencoder and Goertzel analysis according to claim 1, characterized in that the implementation process of the Goertzel algorithm in step 2 is as follows: 步骤2.1:首先,计算信号x[n]的第k个离散傅立叶变换(DFT)的分量:Step 2.1: First, calculate the components of the kth discrete Fourier transform (DFT) of the signal x[n]: 其中,特征长度为N,k是整数;Among them, the feature length is N, k is an integer; 步骤2.2:求取yk[n]期望值的一阶差分方程:Step 2.2: Find the first-order difference equation for the expected value of y k [n]: 步骤2.3:求取二阶差分方程:Step 2.3: Solve the second-order difference equation: 步骤2.4:获得基于Goertzel谐波分析的最终表达式:Step 2.4: Obtain the final expression based on Goertzel harmonic analysis: 4.根据权利要求1所述的基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,其特征在于,所述步骤3中构建多隐层编码器具体步骤如下:4. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 1 is characterized in that the specific steps of constructing a multi-hidden layer encoder in step 3 are as follows: 1)首先构建单层编码器,从输入层到隐藏层,称为编码器,单层编码器接收样本x作为输入,并将输入的D维样本x转换为其隐藏层输出,表示为a=[a1,a2,a3,…,aD1],a=σ(W1x+b1),其中,σ是激活函数,W1,b1是编码器的权重矩阵和偏置矢量;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)在单层编码器的基础上,构建多隐层编码器;使用L个隐层来提取编码器的高层特征,其中,L∈N,令a1,a2,…,aL是从相应隐藏层中提取的特征,其维数为D1,D2,…,DL2) 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 be the features extracted from the corresponding hidden layer, and its dimension is D 1 ,D 2 ,…,D L ; 3)维数设置:D1设置大于输入层D的值,以获得第一次隐藏层的稀疏过完备表示特征;剩余隐层的维度Dl,l=2,3,…,L,小于Dl-1,用以获得压缩特征;3) Dimension setting: D1 is set to a value greater 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 Dl , l = 2, 3, ..., L, which is less than Dl-1 to obtain compressed features; 4)ReLU激活函数被用于输入层和所有隐藏层,在所有隐藏层中,应用稀疏正则化提取判别特征,L2正则化用于约束编码器的权重: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: 其中,Rsp为稀疏正则化,利用Kullback-Leibler的散度函数计算,用以衡量与期望稀疏比例p的接近程度,当所有等于p时,Kullback-Leibler的散度函数为零;为第j个隐藏神经元的平均激活度,考虑所有输入样本xi,i=1,…,N,其定义如下:ai,j是第i个隐藏特征的第j个元素。Among them, R sp is sparse regularization, which is calculated using the Kullback-Leibler divergence function 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 i-th hidden feature. 5.根据权利要求4所述的基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,其特征在于,所述步骤3中构建解码器的具体步骤为:5. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 4 is characterized in that the specific steps of constructing the decoder in step 3 are: 1)解码器是从隐藏层到输出层,根据特征向量a,利用输入样本x重建解码器和编码器的结构及隐藏层数量和尺寸完全对称,解码器利用特征aL恢复输入数据x,如下: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 the feature a L to recover the input data x as follows: 其中,W2、b2分别是解码器的权重矩阵和偏差向量;Among them, W 2 and b 2 are the weight matrix and bias vector of the decoder respectively; 2)所有隐藏层均使用ReLU激活函数,所有输出层均使用sigmoid激活函数,L2正则化被用于约束解码器的权重;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)在网络训练期间添加稀疏限制项,稀疏编码器完成对鉴别性特征的提取:3) Add sparse restrictions during network training, and the sparse encoder completes the extraction of discriminative features: 设输入样本为xi,i=1,…,N,训练目标为最小化以下成本函数:Assume that the input sample is x i , i = 1,…,N, and the training objective is to minimize the following cost function: 其中,第一项是重建误差,第二项是L2正则化项,W是SAE权重矩阵,λ和β是相应项的权重控制参数,Rsp为稀疏正则化,利用Kullback-Leibler的散度函数计算,用以衡量与期望稀疏比例p的接近程度,当所有等于p时,Kullback-Leibler的散度函数为零:Among them, the first term is the reconstruction error, the second term is the L2 regularization term, W is the SAE weight matrix, λ and β are the weight control parameters of the corresponding terms, and Rsp is the sparse regularization, which is calculated using the Kullback-Leibler divergence function to measure The closeness to the expected sparse ratio p is When p is equal to p, the Kullback-Leibler divergence function is zero: 其中,为第j个隐藏神经元的平均激活度,考虑所有输入样本xi,i=1,…,N,其定义如下:ai,j是第i个隐藏特征的第j个元素。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 i-th hidden feature. 6.根据权利要求1所述的基于多头稀疏自编码器及Goertzel分析的电机故障诊断方法,其特征在于,所述步骤3中构建分类模块的具体步骤为:6. The motor fault diagnosis method based on multi-head sparse autoencoder and Goertzel analysis according to claim 1, characterized in that the specific steps of constructing the classification module in step 3 are: 1)多头稀疏自编码器深度神经网络在传统SAE基础上增加分类模块,分类模块采用具有C个神经元的softmax层,通过softmax层将神经网络的输出结果转化成概率表达式,由此找到最大概率项,并为其分类;softmax层代表了求解C类分类问题的不同条件,当给定特征aL,softmax层计算输出向量y1,y2,…,yC,其中,第k个输出为yk,k=1,2,…,C,其具体定义如下:1) The multi-head sparse autoencoder deep neural network adds a classification module on the basis of 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 the feature a L is given, 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: 其中,0≤yk≤1,Zk是应用softmax激活函数前的第k个输出,在分类模块的隐藏层上使用Dropout(随机失活)正则化,利用以下等式计算ZkAmong them, 0≤y k ≤1, Z k is the k-th output before applying the softmax activation function. Dropout regularization is used on the hidden layer of the classification module. Z k is calculated using the following equation: zk=wk(aLοr)+bk z k = w k (a L o r ) + b k 其中,wk和bk是softmax层的第k个神经元的权重和偏差,ο为向量乘法中的元素乘法运算符,aL为给定特征,是伯努利随机变量的“掩蔽”向量,其概率为0;Where wk and bk are the weight and bias of the kth neuron in the softmax layer, ο is the element-wise multiplication operator in vector multiplication, aL is the given feature, is the "masking" vector of Bernoulli random variables, whose probability is 0; 2)设训练集中的数据表示为(xi,yi),i=1,2,…,N,将每个标签yi被转化成一个C维向量,即(yi,1,yi,2,…yi,c)i=1,2,…,N2) Assume that the data in the training set is represented as ( xi , yi ), i = 1, 2, ..., N, and each label yi is transformed into a C-dimensional vector, that is, (yi ,1 , yi ,2 , ... yi ,c ) i = 1, 2, ..., N : 3)利用代价函数完成训练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: 其中,第一项是重建误差,第二项是L2正则化项,yi,k为yi被转化成的C维向量,xi为输入样本,为解码器输出,N为数据长度,W是整个多头稀疏自编码器深度神经网络的权重矩阵,是应用于编码器的第j个隐藏层的稀疏正则化,最后一项是分类模块的交叉熵损失性参数,λ,β,η1,η2是相关项的权重控制系数。Among them, the first term is the reconstruction error, the second term is the L2 regularization term, yi ,k is the C-dimensional vector converted from yi , xi 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, the last term is the cross entropy loss parameter of the classification module, and λ, β, η 1 , η 2 are the weight control coefficients of the related terms.
CN202211028982.6A 2022-08-25 2022-08-25 Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis Active CN115407197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211028982.6A CN115407197B (en) 2022-08-25 2022-08-25 Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211028982.6A CN115407197B (en) 2022-08-25 2022-08-25 Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis

Publications (2)

Publication Number Publication Date
CN115407197A CN115407197A (en) 2022-11-29
CN115407197B true CN115407197B (en) 2024-09-27

Family

ID=84161730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211028982.6A Active CN115407197B (en) 2022-08-25 2022-08-25 Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis

Country Status (1)

Country Link
CN (1) CN115407197B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116243683B (en) * 2023-03-15 2024-02-13 青岛澎湃海洋探索技术有限公司 Method for diagnosing faults of propulsion system based on torque and multi-head self-encoder
CN116678070A (en) * 2023-04-26 2023-09-01 浙江工业大学 Sensor fault online intelligent self-correction method for building HVAC system
CN117590141B (en) * 2024-01-19 2024-03-26 青岛中微创芯电子有限公司 IPM electrical parameter testing system based on data analysis
PL247140B1 (en) * 2024-03-25 2025-05-19 Borg Automotive Spolka Z Ograniczona Odpowiedzialnoscia How to diagnose the electric parking brake module
CN119375615B (en) * 2024-12-30 2025-04-22 国网浙江省电力有限公司三门县供电公司 A diagnostic device suitable for early warning and positioning of overhead cable faults in power transmission lines

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132414A (en) * 2017-05-26 2017-09-05 北京新能源汽车股份有限公司 Method for detecting looseness of motor position sensor, motor controller and automobile
CN112052796A (en) * 2020-09-07 2020-12-08 电子科技大学 Permanent magnet synchronous motor fault diagnosis method based on deep learning

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8131482B2 (en) * 2008-05-16 2012-03-06 Schneider Electric USA, Inc. Methods and apparatus for estimating rotor slots
US8680842B2 (en) * 2010-10-01 2014-03-25 Schneider Electric USA, Inc. Method for measurement of total harmonic distortion
US8861110B2 (en) * 2011-08-23 2014-10-14 Nec Corporation Failure prediction method and failure prediction system
US10746590B2 (en) * 2017-09-29 2020-08-18 Rockwell Automation Technologies, Inc. Method and apparatus for online condition monitoring of variable speed motor applications
CN110779746B (en) * 2019-10-24 2021-08-10 西安理工大学 Diagnosis method for improving composite fault of deep sparse self-encoder network rotating machinery
GB202000742D0 (en) * 2020-01-17 2020-03-04 Univ Of Saltford Vibro-electric condition monitoring
CN112595976A (en) * 2020-12-22 2021-04-02 电子科技大学 Switched reluctance motor fault diagnosis method based on stacked sparse self-encoder
CN113916860B (en) * 2021-11-02 2023-04-25 淮阴工学院 Pesticide residue type identification method based on fluorescence spectrum
CN114839531B (en) * 2022-05-25 2025-06-24 淮阴工学院 Motor fault detection method based on group sparse autoencoder and swarm intelligence

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132414A (en) * 2017-05-26 2017-09-05 北京新能源汽车股份有限公司 Method for detecting looseness of motor position sensor, motor controller and automobile
CN112052796A (en) * 2020-09-07 2020-12-08 电子科技大学 Permanent magnet synchronous motor fault diagnosis method based on deep learning

Also Published As

Publication number Publication date
CN115407197A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN115407197B (en) Motor fault diagnosis method based on multi-head sparse self-encoder and Goertzel analysis
Gou et al. An intelligent time-adaptive data-driven method for sensor fault diagnosis in induction motor drive system
Liu et al. Capturing high-discriminative fault features for electronics-rich analog system via deep learning
Boukra et al. Statistical and neural-network approaches for the classification of induction machine faults using the ambiguity plane representation
Pan et al. An approach for HVCB mechanical fault diagnosis based on a deep belief network and a transfer learning strategy
CN110133538B (en) A kind of ANPC three-level inverter open-circuit fault diagnosis method and experimental platform
Xia et al. A learning-based method for speed sensor fault diagnosis of induction motor drive systems
Jiang et al. A fault feature extraction method for DC–DC converters based on automatic hyperparameter-optimized 1-D convolution and long short-term memory neural networks
Godoy et al. Evaluation of stator winding faults severity in inverter-fed induction motors
Zheng et al. Fault diagnosis of wind power converters based on compressed sensing theory and weight constrained AdaBoost-SVM
Ji et al. Open-circuit fault detection for three-phase inverter based on backpropagation neural network
Pietrzak et al. Application of Support Vector Machine to stator winding fault detection and classification of permanent magnet synchronous motor
Husari et al. Sensitive inter-tum fault identifcation in induction motors using deep learning based methods
Sivapriya et al. A novel enhanced deep learning-based fault diagnosis approach for cascaded multilevel inverter
CN117955154A (en) PSORBFNN-based single-phase inverter impedance identification method and system
Schmitt et al. Detecting bearing faults in line-connected induction motors using information theory measures and neural networks
CN116702060A (en) A Fault Diagnosis Method for Multilevel Inverter Power Devices
Zhang et al. Online fault diagnosis for single-phase PWM rectifier using data-driven method
Malik et al. Deep learning based fault diagnostic technique for grid connected inverter
Bessam et al. A novel method for induction motors stator inter-turn short circuit fault diagnosis based on wavelet energy and neural network
Ahmed et al. Effects of deep neural network parameters on classification of bearing faults
Jung et al. Fault diagnosis of inter-turn short circuit in permanent magnet synchronous motors with current signal imaging and semi-supervised learning
Xia et al. Ensemble-based randomized classifier for data-driven fault diagnosis of IGBT in traction converters
Apsari et al. Capacitance and ESR estimation of DC-link capacitors in AC machine drives based on hybrid CNN-attention model
Bhattacharya et al. Wavelet based component fault detection in diode clamped multilevel inverter using probabilistic neural network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250109

Address after: Room 503, 504, 5th Floor, No. 68 Shengtai Road, Jiangning Economic and Technological Development Zone, Nanjing City, Jiangsu Province, 211100

Patentee after: Nanjing Xiechuang Zhongchuang Information Technology Co.,Ltd.

Country or region after: China

Address before: 223000 No.1, Meicheng East Road, Huaian Economic and Technological Development Zone, Jiangsu Province

Patentee before: HUAIYIN INSTITUTE OF TECHNOLOGY

Country or region before: China