CN109120191B - Position sensing method of brushless DC motor based on LSSVM hierarchical classification - Google Patents

Position sensing method of brushless DC motor based on LSSVM hierarchical classification Download PDF

Info

Publication number
CN109120191B
CN109120191B CN201811180639.7A CN201811180639A CN109120191B CN 109120191 B CN109120191 B CN 109120191B CN 201811180639 A CN201811180639 A CN 201811180639A CN 109120191 B CN109120191 B CN 109120191B
Authority
CN
China
Prior art keywords
lssvm
motor
categories
rotor position
samples
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
CN201811180639.7A
Other languages
Chinese (zh)
Other versions
CN109120191A (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.)
Hunan University of Technology
Original Assignee
Hunan University 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 Hunan University of Technology filed Critical Hunan University of Technology
Priority to CN201811180639.7A priority Critical patent/CN109120191B/en
Publication of CN109120191A publication Critical patent/CN109120191A/en
Application granted granted Critical
Publication of CN109120191B publication Critical patent/CN109120191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position
    • H02P6/18Circuit arrangements for detecting position without separate position detecting elements
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • H02P21/18Estimation of position or speed
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P2203/00Indexing scheme relating to controlling arrangements characterised by the means for detecting the position of the rotor
    • H02P2203/03Determination of the rotor position, e.g. initial rotor position, during standstill or low speed operation
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P2203/00Indexing scheme relating to controlling arrangements characterised by the means for detecting the position of the rotor
    • H02P2203/09Motor speed determination based on the current and/or voltage without using a tachogenerator or a physical encoder

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

本发明针对无刷直流电机转子位置检测问题,提出了一种基于最小二乘支持向量机(LSSVM)分层分类的无刷直流电机位置传感方法。本发明提出的方法是将无刷直流电机定子电压和电流作为决策LSSVM的输入,转子位置信息作为输出,将直流电机转子位置分为6个区域,每个LSSVM输出对应区域类的组合,逐步分层决策,直到区分出转子对应区域位置为止;通过网格优化法对LSSVM网络训练确定LSSVM最优参数,再把训练好的网络模型运用到电机运行中,采集电机定子电压和电流作为LSSVM的输入,通过分层决策确定最终转子位置信息,通过转子位置推算逻辑换相信号,确定每个区域对应相应开关管的通断,即换相逻辑信号。

Figure 201811180639

Aiming at the problem of rotor position detection of the brushless DC motor, the invention proposes a position sensing method of the brushless DC motor based on the least squares support vector machine (LSSVM) hierarchical classification. The method proposed by the present invention takes the stator voltage and current of the brushless DC motor as the input of the decision-making LSSVM, and the rotor position information as the output, divides the DC motor rotor position into 6 regions, and each LSSVM outputs the combination of the corresponding region class, and gradually divides it into six regions. Layer decision-making until the corresponding area of the rotor is distinguished; the LSSVM network is trained by the grid optimization method to determine the optimal parameters of the LSSVM, and then the trained network model is applied to the motor operation, and the motor stator voltage and current are collected as the input of the LSSVM , the final rotor position information is determined through hierarchical decision-making, and the logical commutation signal is calculated by the rotor position to determine the on-off of the corresponding switch tube corresponding to each area, that is, the commutation logic signal.

Figure 201811180639

Description

基于LSSVM分层分类的无刷直流电机位置传感方法Position sensing method of brushless DC motor based on LSSVM hierarchical classification

技术领域technical field

本发明涉及一种无刷直流电机领域的转子位置传感方法,具体的说就是一种基于最小二乘支持向量机(LSSVM)分层分类的无刷直流电机位置传感方法。The invention relates to a rotor position sensing method in the field of brushless direct current motors, in particular to a brushless direct current motor position sensing method based on Least Squares Support Vector Machine (LSSVM) hierarchical classification.

背景技术Background technique

无刷直流电机通过转子位置信号来控制电子换相电路使定子电枢各绕组不断的换相通电,从而使定子磁场与转子永磁磁场始终保持90左右的空间角,产生转矩推动转子运转。The brushless DC motor controls the electronic commutation circuit through the rotor position signal, so that each winding of the stator armature is continuously commutated and energized, so that the stator magnetic field and the rotor permanent magnetic field always maintain a space angle of about 90, and generate torque to drive the rotor to run.

传统无刷直流电机的转子位置信息是通过位置传感器测得的,需要安装位置检测装置,但有位置检测装置的无刷直流电机存在以下缺点:增加电机体积,不利于电机小型化;位置传感器安装在电机内部很有限的空间里,难以安装并且维修困难;难于适应恶劣的环境;传感器接线复杂,容易引入干扰。因此无位置传感器无刷直流电机成了人们研究的热点。The rotor position information of the traditional brushless DC motor is measured by a position sensor, and a position detection device needs to be installed. However, the brushless DC motor with a position detection device has the following disadvantages: increasing the size of the motor is not conducive to the miniaturization of the motor; the installation of the position sensor In the limited space inside the motor, it is difficult to install and maintain; it is difficult to adapt to harsh environments; the wiring of the sensor is complicated, and it is easy to introduce interference. Therefore, the position sensorless brushless DC motor has become a research hotspot.

目前转子无位置传感器装置的位置测量技术主要有反电势法、电流检测法、智能算法。反电势与速度成正比,因此在转速很低甚至为零时不能通过检测反电势来得到过零信号;而电流法的实现主要依赖于电流传感器的精度,一般情况下,传感器能够较好的获得电流大小的信号,而对电流相位和波形的细小变化则很难检测到。故反电势法和电流法单独使用都有其局限性。At present, the position measurement technology of the rotor position sensorless device mainly includes the back EMF method, the current detection method and the intelligent algorithm. The back EMF is proportional to the speed, so the zero-crossing signal cannot be obtained by detecting the back EMF when the rotational speed is very low or even zero; and the implementation of the current method mainly depends on the accuracy of the current sensor. Signals of the magnitude of the current, while small changes in the phase and waveform of the current are difficult to detect. Therefore, the back EMF method and the current method have their limitations when used alone.

发明内容SUMMARY OF THE INVENTION

技术问题:有位置传感器和多种无位置传感器装置的转子信号检测方法都有其局限性,因此较难运用到对电机运行要求比较高的场合。Technical problem: Rotor signal detection methods with position sensors and various position sensor-less devices have their limitations, so it is difficult to apply to occasions with relatively high requirements for motor operation.

技术方案:为了解决上述问题,将LSSVM分层分类用到转子位置检测中去,通过电流速度控制使得电机能够按照要求稳定运转。对于无刷直流电机,将转子位置信号与电机电压、电流之间的映射模型建立起来,采用LSSVM分层分类实现这种映射。将电机电压和电流作为LSSVM的输入,转子位置信息作为输出,从而实现电机转子位置的判定。Technical solution: In order to solve the above problems, the LSSVM hierarchical classification is used in the rotor position detection, and the current speed control enables the motor to run stably as required. For the brushless DC motor, the mapping model between the rotor position signal and the motor voltage and current is established, and the LSSVM hierarchical classification is used to realize the mapping. The motor voltage and current are used as the input of LSSVM, and the rotor position information is used as the output, so as to realize the determination of the rotor position of the motor.

本发明是基于LSSVM的基础上的转子位置检测系统,由无刷电机工作原理可知绕组A、B、C相绕组的感应磁链是电角度θ的函数,而绕组A、B、C相绕组的感应磁链与三相端电压和电流存在一定的关系,因此可由三相端电压和电流预测出电角度θ,即转子位置信号。The present invention is a rotor position detection system based on LSSVM. From the working principle of the brushless motor, it can be known that the induced flux linkage of the windings A, B, and C phases is a function of the electrical angle θ, while the There is a certain relationship between the induced flux linkage and the three-phase terminal voltage and current, so the electrical angle θ, that is, the rotor position signal, can be predicted from the three-phase terminal voltage and current.

LSSVM是一种二分类模型,它的目的是寻找一个超平面来对样本进行分割,分割的原则是间隔最大化。描叙多元非线性分类模型一般形式为:yi=sgn(g(xi))其中

Figure GDA0003463552630000011
i=1,2,…,N表示LSSVM分类预测模型的输入量,yi表示模型目标输出量。映射函数Φ(xi):
Figure GDA0003463552630000012
使用核函数将原始输入空间的样本映射到高维特征空间Ω中,在特征空间中利用映射函数对样本数据进行线性分类。LSSVM is a binary classification model. Its purpose is to find a hyperplane to segment the samples. The principle of segmentation is to maximize the interval. The general form of describing the multivariate nonlinear classification model is: y i =sgn(g(x i )) where
Figure GDA0003463552630000011
i=1,2,...,N represents the input of the LSSVM classification prediction model, and y i represents the target output of the model. Mapping function Φ(x i ):
Figure GDA0003463552630000012
The samples in the original input space are mapped into the high-dimensional feature space Ω using the kernel function, and the sample data is linearly classified by the mapping function in the feature space.

LSSVM分类函数可表示为:g(x)=(ω·Φ(x))+b(1)The LSSVM classification function can be expressed as: g(x)=(ω·Φ(x))+b(1)

其中矢量ω∈Rn,偏置b∈R。SVM在最小化样本误差的同时,利用结构风险最小化原则,函数拟合问题可描述为最优化问题:where the vector ω∈Rn and the bias b∈R. While minimizing the sample error, SVM uses the principle of structural risk minimization, and the function fitting problem can be described as an optimization problem:

Figure GDA0003463552630000013
Figure GDA0003463552630000013

式中

Figure GDA0003463552630000014
是将输入数据映射到高维特征空间的函数;ω∈Rn,ei为误差,ei,b∈R,C>0为惩罚系数,用于控制解的光滑度,其值越大代表对误差的惩罚力度越强,T为转置。in the formula
Figure GDA0003463552630000014
is the function that maps the input data to the high-dimensional feature space; ω∈R n , e i is the error, e i , b∈R, C>0 is the penalty coefficient, which is used to control the smoothness of the solution, and the larger the value, the representative The stronger the penalty for error, T is the transpose.

根据式(1)将模型转换到对偶空间加以解决,得到如下Lagrange函数:

Figure GDA0003463552630000015
According to formula (1), the model is converted to the dual space to solve, and the following Lagrange function is obtained:
Figure GDA0003463552630000015

Figure GDA0003463552630000021
Figure GDA0003463552630000021

式中αi∈R是Lagrange乘子,分别对ω,ei,b,αi求偏导,并令偏导数为0:where α i ∈ R is the Lagrange multiplier, and the partial derivatives are obtained for ω, e i , b, and α i respectively, and the partial derivatives are set to 0:

Figure GDA0003463552630000022
Figure GDA0003463552630000022

消去ω,ei整理得线性方程组(4):Eliminate ω, e i to get linear equation system (4):

Figure GDA0003463552630000023
Figure GDA0003463552630000023

式中y=[y1…yN],α=[α1…αN],ET=[1…1],Ω为核矩阵,G为满足Mercer定理的核函数:where y=[y 1 ...y N ], α=[α 1 ...α N ], E T =[1...1], Ω is the kernel matrix, G is the kernel function satisfying Mercer's theorem:

Figure GDA0003463552630000024
Figure GDA0003463552630000024

Figure GDA0003463552630000025
Figure GDA0003463552630000025

求解式(5)得α,b,且获得的非线性回归函数为:Solve equation (5) to get α, b, and the obtained nonlinear regression function is:

Figure GDA0003463552630000026
Figure GDA0003463552630000026

根据g(x)的符号确定分类结果,式中:最优拉格朗日乘子αi;b为偏置项。The classification result is determined according to the sign of g(x), where: the optimal Lagrange multiplier α i ; b is the bias term.

LSSVM是一种基于核的学习方法,核函数选取对LSSVM性能有着重要的影响。为此,本发明分别利用表一所示的3种核函数建立分类器。LSSVM is a kernel-based learning method, and the selection of kernel function has an important impact on the performance of LSSVM. To this end, the present invention uses the three kernel functions shown in Table 1 to establish a classifier.

表一 采用的3种核函数Table 1 Three kernel functions used

核函数的名称the name of the kernel function 核函数的表达式The expression of the kernel function 多项式核函数Polynomial Kernel Function G<sub>P</sub>(x<sub>i</sub>,x)=(x<sup>T</sup>x<sub>i</sub>+1)<sup>u</sup>(u∈N)G<sub>P</sub>(x<sub>i</sub>,x)=(x<sup>T</sup>x<sub>i</sub>+1)<sup>u< /sup>(u∈N) RBF核函数RBF kernel function G<sub>R</sub>(x<sub>i</sub>,x)=exp(-‖x-x<sub>i</sub>‖<sup>2</sup>/σ<sup>2</sup>)(σ≠0∈R)G<sub>R</sub>(x<sub>i</sub>,x)=exp(-‖x-x<sub>i</sub>‖<sup>2</sup>/σ<sup> 2</sup>)(σ≠0∈R) Sigmoid核函数Sigmoid kernel function G<sub>S</sub>(x<sub>i</sub>,x)=tanh(a(x<sup>T</sup>x<sub>i</sub>)+c)(a,c∈R)G<sub>S</sub>(x<sub>i</sub>,x)=tanh(a(x<sup>T</sup>x<sub>i</sub>)+c)( a, c∈R)

表一中GP,GR,GS分别表示多项式核函数,RBF核函数,Sigmoid核函数。多项式核函数中u用来设置多项式核函数的最高项次数;RBF核函数中σ为函数的宽度参数,控制函数的径向作用范围;Sigmoid核函数中a,c用来设置核函数中的参数。In Table 1, G P , G R , and G S represent the polynomial kernel function, the RBF kernel function, and the Sigmoid kernel function, respectively. In the polynomial kernel function, u is used to set the highest degree of the polynomial kernel function; in the RBF kernel function, σ is the width parameter of the function, which controls the radial range of the function; a and c in the Sigmoid kernel function are used to set the parameters in the kernel function .

本发明提出的基于LSSVM(SVM)分层分类的无刷直流电机位置传感方法,A、B相电压ua(k),ub(k),电流ia(k),ib(k),ia(k-1),ib(k-1)作为LSSVM的输入,S(K)为转子位置信号,将其作为LSSVM的输出,每个LSSVM输出对应区域类的组合,逐步分层决策,直到区分出转子对应区域位置为止。Gj(xi,x)为核函数,j=1,2,…,L分别为L个分类器,k为时间序列,K为转子位置。The brushless DC motor position sensing method based on LSSVM (SVM) hierarchical classification proposed by the present invention, A, B phase voltage u a (k), u b (k), current i a (k), i b (k ), i a (k-1), i b (k-1) are used as the input of LSSVM, S(K) is the rotor position signal, and it is used as the output of LSSVM. Layer decision-making until the position of the corresponding region of the rotor is distinguished. G j (x i ,x) is the kernel function, j=1,2,...,L are L classifiers respectively, k is the time series, and K is the rotor position.

本发明提出的一种基于SVM分层分类的位置检测算法,主要包括LSSVM分层分类建模和模型运行部分。A position detection algorithm based on SVM hierarchical classification proposed by the present invention mainly includes LSSVM hierarchical classification modeling and model running parts.

1.LSSVM分层分类建模部分主要实现步骤如下:1. The main implementation steps of the hierarchical classification modeling part of LSSVM are as follows:

Step1:对有位置传感器同型号无刷直流电机采集系统输入输出检测信号:A、B相电压ua(k),ub(k),电流ia(k),ib(k),ia(k-1),ib(k-1)作为LSSVM的输入,S(K)为转子位置信号,将其作为LSSVM的输出,将直流电机的转子旋转的0-360度电角度θ分为每60度一个区域,共6个区域,转子位置用所在区域序号1-6表示,将测得的训练数据和测试数据归一化;Step1: Collect the input and output detection signals of the brushless DC motor with the same type of position sensor: A and B phase voltage u a (k), u b (k), current i a (k), i b (k), i a (k-1), i b (k-1) are used as the input of LSSVM, S(K) is the rotor position signal, which is used as the output of LSSVM, divide the 0-360 degree electrical angle θ of the rotor of the DC motor It is an area every 60 degrees, a total of 6 areas, the rotor position is represented by the area number 1-6, and the measured training data and test data are normalized;

Step2:共设置5个LSSVM2分类器,第一层1个分类器就把选取的两种类别(如1-2)的样本定为正样本,剩余4种类别(如3-6类别)的样本定为负样本,第二层2个分类器,第一层判定为2种类别(如1-2类别)数据继续把2类别的样本分别定为正样本和负样本,从而区分识别(类别1和类别2),第一层判定为4种类别的数据应用到第二个分类器,分成2个两类类别(如3-4类别和4-5类别),第3层2个分类器把第二层2个类别继续区分,如此下去,我们可以得到5个这样的两类分类器,其中一种结构如表二所示。Step2: A total of 5 LSSVM2 classifiers are set. The first layer of 1 classifier will set the samples of the selected two categories (such as 1-2) as positive samples, and the samples of the remaining 4 categories (such as 3-6 categories) Set as negative samples, the second layer has 2 classifiers, and the first layer is determined as 2 categories (such as 1-2 categories). and category 2), the data determined as 4 categories in the first layer are applied to the second classifier, and divided into 2 categories (such as 3-4 category and 4-5 category), and the 2 classifiers in the third layer The two categories of the second layer continue to be distinguished, and so on, we can get five such two-class classifiers, one of which is shown in Table 2.

表二 分层分类器举例Table 2 Examples of hierarchical classifiers

Figure GDA0003463552630000031
Figure GDA0003463552630000031

确定核函数Gj,核函数选取多项式、径向基等函数、sig函数之一。Determine the kernel function G j , and the kernel function selects one of polynomial, radial basis and other functions, and sig functions.

Step3:根据分类器输出分别选取相应类的训练样本,正样本为+1,负样本为-1,采用Vapnik算法分别对5个LSSVM模型进行训练,采用网格优化法验证测试获取最优模型参数惩罚系数C、核函数参数,得到5个最优LSSVM二分类器。Step3: According to the classifier output, select the training samples of the corresponding class, the positive sample is +1, and the negative sample is -1. The Vapnik algorithm is used to train the 5 LSSVM models respectively, and the grid optimization method is used to verify and test to obtain the optimal model parameters. Penalty coefficient C and kernel function parameters are used to obtain 5 optimal LSSVM binary classifiers.

2.LSSVM分层分类运行部分主要实现步骤如下:2. The main implementation steps of the LSSVM hierarchical classification operation part are as follows:

Step1:实时采集相关的电压电流输入信号并归一化;Step1: Collect relevant voltage and current input signals in real time and normalize them;

Step2:将相关的电压电流输入信号输入建立好的LSSVM分类器得到转子所在区域Ki分类结果;Step2: Input the relevant voltage and current input signals into the established LSSVM classifier to obtain the Ki classification result of the area where the rotor is located;

当属于1、2、…、6类有两个及以上结果时保持上次分类结果不变;当属于1、2、…、6类全无结果时保持上次分类结果不变。When there are two or more results in categories 1, 2, ..., 6, the last classification result remains unchanged; when there are no results in categories 1, 2, ..., 6, the last classification result remains unchanged.

Step3根据分类得到的转子位置进行实时控制。通过转子位置推算逻辑换相信号,确定每个区域对应相应开关管的通断,即换相逻辑信号。转子位置信息与换相逻辑信号的变换关系如表三所示,其中1表示开通,0表示关断。Step 3 performs real-time control according to the rotor position obtained by classification. Through the rotor position estimation logic commutation signal, the on-off of the corresponding switch tube corresponding to each area is determined, that is, the commutation logic signal. The transformation relationship between the rotor position information and the commutation logic signal is shown in Table 3, where 1 means turn on, and 0 means turn off.

表三 转子位置信息与换相逻辑信号的变换关系表Table 3 Transformation relationship between rotor position information and commutation logic signal

Figure GDA0003463552630000041
Figure GDA0003463552630000041

有益效果:本发明的位置传感方法具有动态性能好,鲁棒性高等优点。算法的运行速率快,提高了控制器反应速度。Beneficial effects: the position sensing method of the present invention has the advantages of good dynamic performance and high robustness. The running speed of the algorithm is fast, which improves the response speed of the controller.

附图说明Description of drawings

图1为基于LSSVM分层分类的无刷直流电机位置传感结构图。Figure 1 is a structural diagram of the position sensing structure of a brushless DC motor based on LSSVM hierarchical classification.

具体实施方式:Detailed ways:

本发明提出的基于LSSVM分层分类的无刷直流电机位置传感方法,结合系统结构图其具体实施方案详述如下:The brushless DC motor position sensing method based on the LSSVM hierarchical classification proposed by the present invention is described in detail as follows in conjunction with the specific implementation of the system structure diagram:

Step1:对有位置传感器同型号无刷直流电机采集系统输入输出检测信号:A、B相电压ua(k),ub(k),电流ia(k),ib(k),ia(k-1),ib(k-1)作为LSSVM的输入,S(K)为转子位置信号,将其作为LSSVM的输出,将直流电机的转子旋转的0-360度电角度θ分为每60度一个区域,共6个区域,转子位置用所在区域序号1-6表示。Step1: Collect the input and output detection signals of the brushless DC motor with the same type of position sensor: A and B phase voltage u a (k), u b (k), current i a (k), i b (k), i a (k-1), i b (k-1) are used as the input of LSSVM, S(K) is the rotor position signal, which is used as the output of LSSVM, divide the 0-360 degree electrical angle θ of the rotor of the DC motor It is an area every 60 degrees, a total of 6 areas, and the rotor position is represented by the area number 1-6.

Step2:共设置5个LSSVM2分类器,第一层1个分类器就把选取的两种类别1-2的样本定为正样本,剩余4种类别3-6类别的样本定为负样本,第二层2个分类器,第一层判定为1-2类别数据继续把1、2类别的样本分别定为正样本和负样本,从而区分识别类别1和类别2,第一层判定为3-6类别的数据应用到第二个分类器,分成3-4、5-6两个类类别,第3层2个分类器把第二层2个类别继续区分,如此下去,我们可以得到5个这样的两类分类器,其结构如表四所示。Step2: A total of 5 LSSVM2 classifiers are set. The first layer of 1 classifier sets the selected samples of the two categories 1-2 as positive samples, and the remaining 4 types of samples of categories 3-6 are set as negative samples. There are two classifiers in the second layer. The first layer is determined as 1-2 category data. The samples of categories 1 and 2 are determined as positive samples and negative samples respectively, so as to distinguish and identify category 1 and category 2. The first layer is determined as 3- The data of 6 categories is applied to the second classifier and divided into two categories: 3-4 and 5-6. The second layer of 2 classifiers continue to distinguish the second layer of 2 categories, and so on, we can get 5 The structure of such two types of classifiers is shown in Table 4.

表四 分层分类器Table 4 Hierarchical classifier

Figure GDA0003463552630000042
Figure GDA0003463552630000042

训练数据和测试数据是通过有位置传感器无刷直流电机来测得的,将测得的5000组训练数据和2500组测试数据进行归一化处理;确定激励函数为G为径向基函数The training data and test data are measured by a brushless DC motor with a position sensor, and the measured 5000 sets of training data and 2500 sets of test data are normalized; the excitation function is determined as G is the radial basis function

Figure GDA0003463552630000051
Figure GDA0003463552630000051

其中x为输入数据,xi为径向基中心,σi为径向基半径,i=1,2,…m,m为中心向量的个数。j为相应分类器序号,j=1,2,…,5。Where x is the input data, x i is the center of the radial base, σ i is the radius of the radial base, i=1, 2, ... m, m is the number of center vectors. j is the serial number of the corresponding classifier, j=1,2,...,5.

Step3:根据分类器输出分别选取相应类的训练样本,正样本为+1,负样本为-1,采用Vapnik算法对5个LSSVM模型进行训练,采用网格优化法和留一交叉效验测试获取最优模型参数惩罚系数C、径向基半径σi,得到5个最优LSSVM二分类器。参数网格按指数变化选取如下:Step3: According to the output of the classifier, select the training samples of the corresponding class, the positive sample is +1, the negative sample is -1, the Vapnik algorithm is used to train the 5 LSSVM models, and the grid optimization method and the leave-one-out cross-validation test are used to obtain the most The optimal model parameter penalty coefficient C, radial basis radius σ i , and five optimal LSSVM binary classifiers are obtained. The parameter grid is selected according to the exponential change as follows:

惩罚系数C:106-10-1;径向基半径σi:10-5-10-1 Penalty coefficient C: 10 6 -10 -1 ; radial base radius σ i : 10 -5 -10 -1

第二部分:LSSVM分层分类模型运行部分主要实现步骤如下:The second part: The main implementation steps of the LSSVM hierarchical classification model operation part are as follows:

Step1:实时采集相关的电压电流输入信号并归一化;Step1: Collect relevant voltage and current input signals in real time and normalize them;

Step2:将相关的电压电流输入信号输入建立好的LSSVM分层分类器得到转子所在区域Ki分类结果;Step2: Input the relevant voltage and current input signals into the established LSSVM hierarchical classifier to obtain the K i classification result of the region where the rotor is located;

当属于1、2、…、6类有两个及以上结果时保持上次分类结果不变;当属于1、2、…、6类全无结果时保持上次分类结果不变。When there are two or more results in categories 1, 2, ..., 6, the last classification result remains unchanged; when there are no results in categories 1, 2, ..., 6, the last classification result remains unchanged.

Step3通过LSSVM分类网络判断出转子位置S(K),即转子所在区域Ki,根据转子位置进行实时控制。通过转子位置推算逻辑换相信号,确定每个区域对应相应开关管的通断,即换相逻辑信号。Step3: Determine the rotor position S(K) through the LSSVM classification network, that is, the area K i where the rotor is located, and perform real-time control according to the rotor position. Through the rotor position estimation logic commutation signal, the on-off of the corresponding switch tube corresponding to each area is determined, that is, the commutation logic signal.

上述具体实现只是本发明的较佳实现而已,当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明的权利要求的保护范围。The above-mentioned specific implementations are only the preferred implementations of the present invention. Of course, the present invention can also have other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make according to the present invention. Various corresponding changes and deformations, but these corresponding changes and deformations should all belong to the protection scope of the claims of the present invention.

Claims (1)

1.一种基于最小二乘支持向量机(LSSVM)分层分类的无刷直流电机位置传感方法,其特征在于,通过LSSVM分层分类器获取无刷直流电机转子的位置信号,减少电机因位置传感器的存在而带来的误差以及减小电机体积;所述方法采用LSSVM二分类结构,通过分层决策确定最终分类输出,主要包括LSSVM分层分类建模和模型运行部分:1. a brushless DC motor position sensing method based on least squares support vector machine (LSSVM) hierarchical classification, it is characterized in that, obtain the position signal of brushless DC motor rotor by LSSVM hierarchical classifier, reduce the motor factor. The error caused by the existence of the position sensor and the reduction of the motor volume; the method adopts the LSSVM binary classification structure, and determines the final classification output through hierarchical decision-making, mainly including the LSSVM hierarchical classification modeling and model operation parts: 1)LSSVM分层分类建模部分主要实现步骤如下:1) The main implementation steps of the LSSVM hierarchical classification modeling part are as follows: Step1:对有位置传感器同型号无刷直流电机采集系统输入输出检测信号,将A、B相电压ua(k)、ub(k)及电流ia(k)、ib(k)、ia(k-1)、ib(k-1)作为LSSVM的输入,将转子位置信号S(K)作为LSSVM的输出,每个LSSVM输出对应一个区域样本集合,其中k为时间序列,K为转子位置,不断决策,直至分出每一类别;将直流电机的转子旋转的0-360度电角度分为6个区域,每60度一个区域,转子位置所在区域用类别序号1-6表示,将测得的训练数据和测试数据进行归一化处理;Step1: Collect the input and output detection signals of the brushless DC motor with the same type of position sensor, and compare the A and B-phase voltages ua(k), ub(k) and currents ia(k), ib(k), ia(k- 1), ib(k-1) is used as the input of LSSVM, and the rotor position signal S(K) is used as the output of LSSVM. Each LSSVM output corresponds to a set of regional samples, where k is the time series, K is the rotor position, and the decision is made continuously. , until each category is divided; the 0-360 degree electrical angle of the rotor rotation of the DC motor is divided into 6 areas, one area every 60 degrees, the area where the rotor position is represented by the category number 1-6, the measured training Data and test data are normalized; Step2:共设置5个LSSVM二分类器,第一层一个二分类器,包含类别1至类别6六种类别,把选取的两种类别的样本定为正样本,剩余四种类别的样本定为负样本;第二层两个二分类器,第二层第一个二分类器把第一层正样本中的两种类别分别定义为正样本和负样本,从而区分上述两种类别;第二层第二个二分类器把第一层负样本中的四种类别分成两组,每组包含两种类别,得到第三层的两个二分类器,第三层的两个二分类器分别把所包含的两种类别继续区分,即可区分出剩余的四种类别,共得到5个二分类器;确定核函数Gj,核函数选取多项式、径向基、sig函数之一;Step2: A total of 5 LSSVM binary classifiers are set, the first layer is a binary classifier, including six categories from category 1 to category 6, the samples of the selected two categories are set as positive samples, and the samples of the remaining four categories are set as Negative samples; two two-classifiers in the second layer, the first two-classifier in the second layer defines the two categories of positive samples in the first layer as positive samples and negative samples respectively, so as to distinguish the above two categories; the second The second two-classifier of the layer divides the four categories in the negative samples of the first layer into two groups, each group contains two categories, and obtains two two-classifiers in the third layer, and the two two-classifiers in the third layer are respectively Continue to distinguish the two categories included to distinguish the remaining four categories, and obtain a total of 5 binary classifiers; determine the kernel function Gj, and the kernel function selects one of the polynomial, radial basis, and sig functions; Step3:根据分类器输出分别选取相应类的训练样本,正样本为+1,负样本为-1,采用Vapnik算法对5个LSSVM二分类器进行训练,采用网格优化法验证测试获取最优模型参数惩罚系数C、核函数参数,得到5个最优LSSVM二分类器;Step3: Select the training samples of the corresponding class according to the classifier output, positive samples are +1, negative samples are -1, use Vapnik algorithm to train 5 LSSVM binary classifiers, use grid optimization method to verify and test to obtain the optimal model The parameter penalty coefficient C and kernel function parameters are used to obtain 5 optimal LSSVM binary classifiers; 2)LSSVM分层分类模型运行部分主要实现步骤如下:2) The main implementation steps of the running part of the LSSVM hierarchical classification model are as follows: Step1:实时采集相关的电压电流输入信号并归一化;Step1: Collect relevant voltage and current input signals in real time and normalize them; Step2:将相关的电压电流输入信号输入建立好的LSSVM分类器得到转子所在区域分类结果;Step2: Input the relevant voltage and current input signals into the established LSSVM classifier to obtain the classification result of the region where the rotor is located; 当属于1、2、…、6类有两个及以上结果时保持上次分类结果不变;当属于1、2、…、6类全无结果时保持上次分类结果不变;When there are two or more results in categories 1, 2, ..., 6, the last classification result remains unchanged; when there are no results in categories 1, 2, ..., 6, the last classification result remains unchanged; Step3:根据分类得到的转子位置进行实时控制;通过转子位置推算逻辑换相信号,确定每个区域对应开关管的通断。Step3: Carry out real-time control according to the rotor position obtained by classification; determine the on-off of the switch tube corresponding to each area through the rotor position reckoning logic commutation signal.
CN201811180639.7A 2018-10-09 2018-10-09 Position sensing method of brushless DC motor based on LSSVM hierarchical classification Active CN109120191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811180639.7A CN109120191B (en) 2018-10-09 2018-10-09 Position sensing method of brushless DC motor based on LSSVM hierarchical classification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811180639.7A CN109120191B (en) 2018-10-09 2018-10-09 Position sensing method of brushless DC motor based on LSSVM hierarchical classification

Publications (2)

Publication Number Publication Date
CN109120191A CN109120191A (en) 2019-01-01
CN109120191B true CN109120191B (en) 2022-07-15

Family

ID=64857891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811180639.7A Active CN109120191B (en) 2018-10-09 2018-10-09 Position sensing method of brushless DC motor based on LSSVM hierarchical classification

Country Status (1)

Country Link
CN (1) CN109120191B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945324A (en) * 2012-11-13 2013-02-27 江苏科技大学 Multi-model least square support vector machine (LSSVM) modeling method of brushless direct current motor
CN103501148A (en) * 2013-09-24 2014-01-08 江苏大学 Method for controlling operation of non-radial displacement sensor of bearingless permanent magnetic synchronous motor
CN106022352A (en) * 2016-05-05 2016-10-12 哈尔滨理工大学 Submersible piston pump fault diagnosis method based on support vector machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945324A (en) * 2012-11-13 2013-02-27 江苏科技大学 Multi-model least square support vector machine (LSSVM) modeling method of brushless direct current motor
CN103501148A (en) * 2013-09-24 2014-01-08 江苏大学 Method for controlling operation of non-radial displacement sensor of bearingless permanent magnetic synchronous motor
CN106022352A (en) * 2016-05-05 2016-10-12 哈尔滨理工大学 Submersible piston pump fault diagnosis method based on support vector machine

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Evaluation of SVM Speed and Position Observers for Sensorless PMSM in Start-up Region;Xiaoquan Lu等;《7th IET International Conference on Power Electronics, Machines and Drives (PEMD 2014)》;20140619;第1-6页 *
Least squares twin SVM decision tree for multi-class classification;Qing Yu等;《2016 9th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI)》;20170216;第1927-1931页 *
永磁无刷直流电机驱动的电动压缩机控制研究;马跃;《中国优秀硕士学位论文全文数据库工程科技II辑》;20180415;第25-36页 *

Also Published As

Publication number Publication date
CN109120191A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN108631678B (en) Vector control dead zone compensation method and system for permanent magnet synchronous motor
CN105790664B (en) Permanent magnet synchronous motor model predictive control method
CN104009696B (en) Interactive model reference adaptive speed and stator resistance identification method based on sliding-mode control
CN108900129A (en) A kind of position-sensor-free method for controlling permanent magnet synchronous motor, device and system
Gamazo-Real et al. ANN-based position and speed sensorless estimation for BLDC motors
CN105811828B (en) A kind of Speed of Reaction Wheels control device and method based on linear hall sensor
CN106123251A (en) A kind of convertible frequency air-conditioner power consumption computational methods
CN106026833B (en) A kind of five phase birotor permanent magnetic synchronous motor control methods based on space vector
CN117972561A (en) A current sensor fault diagnosis method based on multi-channel convolutional neural network
CN108183639A (en) A kind of brshless DC motor least squared classified speed regulating method
CN109120191B (en) Position sensing method of brushless DC motor based on LSSVM hierarchical classification
CN104167966A (en) Control method of permanent magnet linear motor with Hall sensors for positioning
CN109150054B (en) Position sensing method of brushless DC motor based on LSSVM decision classification
CN111769776A (en) Current reconstruction system and method for hub motor controller
CN112039402A (en) Motor control system and control method
CN114070146B (en) A fault detection method, device, equipment and storage medium
CN107947650B (en) A position sensorless control method of brushless DC motor based on extreme learning machine classification
CN108712116B (en) Brushless direct current motor position sensorless control method based on extreme learning machine
CN110518855A (en) Using the adaptive method controlled with straight feedback compensation permanent magnet synchronous motor angular speed
CN112886895A (en) Novel position-sensor-free switched reluctance motor control method and system
CN109120192A (en) Based on a pair of polytypic Brushless DC Motor Position method for sensing of LSSVM
KR20210097964A (en) Rotor initial angle estimation device and method
CN109150027A (en) Based on a pair of polytypic Brushless DC Motor Position method for sensing of support vector machines
CN111934590B (en) Rotating speed identification method and system based on full-order observer
CN108880357A (en) The adaptive Non-smooth surface curren tracing control method of permanent magnet synchronous motor

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