WO2023124921A1 - Torque estimation method and apparatus for permanent magnet synchronous motor, and device and storage medium - Google Patents

Torque estimation method and apparatus for permanent magnet synchronous motor, and device and storage medium Download PDF

Info

Publication number
WO2023124921A1
WO2023124921A1 PCT/CN2022/138178 CN2022138178W WO2023124921A1 WO 2023124921 A1 WO2023124921 A1 WO 2023124921A1 CN 2022138178 W CN2022138178 W CN 2022138178W WO 2023124921 A1 WO2023124921 A1 WO 2023124921A1
Authority
WO
WIPO (PCT)
Prior art keywords
torque
motor
model
value
final
Prior art date
Application number
PCT/CN2022/138178
Other languages
French (fr)
Chinese (zh)
Inventor
梁嘉宁
孙天夫
Original Assignee
深圳先进技术研究院
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 深圳先进技术研究院 filed Critical 深圳先进技术研究院
Publication of WO2023124921A1 publication Critical patent/WO2023124921A1/en

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
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/0003Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control
    • H02P21/0014Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control using neural networks
    • 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
    • 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/20Estimation of torque
    • 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
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/022Synchronous motors
    • 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
    • H02P2205/00Indexing scheme relating to controlling arrangements characterised by the control loops
    • H02P2205/05Torque loop, i.e. comparison of the motor torque with a torque reference
    • 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
    • H02P2207/00Indexing scheme relating to controlling arrangements characterised by the type of motor
    • H02P2207/05Synchronous machines, e.g. with permanent magnets or DC excitation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Definitions

  • the present application relates to the technical field of motor control, in particular to a torque estimation method, device, equipment and storage medium of a permanent magnet synchronous motor.
  • Permanent magnet synchronous motors have the advantages of high power density, high efficiency, and high torque density, and have been widely used in robotics, industrial automation, and electric vehicles.
  • the IPMSM is affected by factors such as the nonlinearity, volatility, and operational uncertainty of the motor parameters, it cannot accurately achieve high-precision control of the motor torque. Therefore, in the traditional motor torque control strategy, the control accuracy of the motor electromagnetic torque is relatively low, which degrades the overall performance of the system.
  • the extended Kalman filter algorithm is an algorithm derived by researchers based on the fact that the Kalman (KF) filter algorithm cannot effectively track nonlinear systems. It is an approximation to nonlinear systems.
  • the processing method has a good estimation effect on the nonlinear characteristics of the permanent magnet synchronous motor, and has strong anti-interference performance, but the calculation amount is relatively large.
  • the present application provides a torque estimation method, device, equipment and storage medium of a permanent magnet synchronous motor, so as to solve the problems of large calculation amount and low accuracy of the existing torque estimation.
  • a technical solution adopted by this application is to provide a torque estimation method of a permanent magnet synchronous motor, including: obtaining the motor operating parameters in real time; inputting the motor operating parameters into the pre-trained torque estimation method Measure the model to get the final torque estimation value, the torque estimation model includes the Elman neural network model and the motor torque mathematical estimation model, the Elman neural network model obtains the first torque estimation value according to the motor operation parameter prediction, the motor rotation The moment mathematical estimation model obtains the second torque estimation value according to the motor operation parameter prediction, the first torque estimation value and the second torque estimation value are calculated according to the weight parameter and the bias parameter to obtain the final torque estimation value, The weight parameters and bias parameters are trained when training the torque estimation model.
  • the real-time acquisition of motor operating parameters includes: real-time acquisition of d-axis current, q-axis current, electrical angle parameters and motor speed of the motor based on a preset acquisition device.
  • f(x n ) represents the output of the Elman neural network model
  • E(T) represents the output of the torque mathematical model
  • is the weight parameter
  • is the bias parameter
  • ⁇ and ⁇ are in rotation Obtained during the training process of the moment estimation model.
  • the step of pre-training the torque estimation model includes: constructing the torque estimation model to be trained, the weight parameters and bias parameters are initially set to default values; obtaining training sample input parameters and training The actual torque value corresponding to the sample input parameters; perform feature engineering on the training sample input parameters to obtain the sample feature vector; input the sample feature vector into the torque estimation model to obtain the sample torque estimation value; based on the pre-built loss function , the sample torque estimation value and the actual torque value are backpropagated to update the torque estimation model; the above training process is repeated until the torque estimation model reaches a preset accuracy or the number of iterations reaches a preset number of times.
  • the method further includes: when the currently running control system is a torque control system, performing closed-loop control on the motor torque according to the final estimated torque value.
  • the motor torque is closed-loop controlled according to the final torque estimation value, including: obtaining the calculation time consumed by calculating the final torque estimation value and the processing time consumed by the control system operation; if the current operation If the processor of the device is a single-core processor, the motor control cycle is set as the sum of calculation time and processing time, and according to the motor control cycle, the motor torque is calculated with the final torque estimate obtained in the motor control cycle Closed-loop control; if the processor of the currently running device is a multi-core processor, set the motor control cycle to the larger value of the calculation time and processing time, and according to the motor control cycle, use the final torque obtained in the motor control cycle The estimated value performs closed-loop control of the motor torque.
  • the final estimated torque value after obtaining the final estimated torque value, it further includes: when the currently running control system is a non-torque control system, outputting the final estimated torque value as observation data.
  • a torque estimation device for a permanent magnet synchronous motor including: an acquisition module for acquiring motor operating parameters in real time; an estimation module for The motor operating parameters are input into the pre-trained torque estimation model to obtain the final torque estimation value.
  • the torque estimation model includes the Elman neural network model and the motor torque mathematical estimation model.
  • the Elman neural network model is based on the motor operating parameters
  • the first torque estimation value is obtained by prediction, and the motor torque mathematical estimation model predicts and obtains the second torque estimation value according to the motor operating parameters.
  • the first torque estimation value and the second torque estimation value are calculated according to the weight parameters and
  • the bias parameter is calculated to obtain the final torque estimation value, and the weight parameter and bias parameter are trained during the training of the torque estimation model.
  • the computer device includes a processor, a memory coupled to the processor, and program instructions are stored in the memory, so When the program instructions are executed by the processor, the processor is made to execute the steps of the above neural network-based torque estimation method.
  • another technical solution adopted by the present application is to provide a storage medium storing program instructions capable of realizing the above-mentioned neural network-based torque estimation method.
  • the torque estimation method of the permanent magnet synchronous motor of the present application is based on the torque estimation model constructed jointly by the Elman neural network model and the motor torque mathematical estimation model, and then utilizes the torque
  • the estimation model estimates the motor operating parameters collected in real time to obtain the final torque estimation value.
  • the torque estimation model avoids harmonic interference in the motor operation, etc. Influence, optimize model performance, improve model prediction stability and accuracy.
  • FIG. 1 is a schematic flow chart of a torque estimation method for a permanent magnet synchronous motor according to a first embodiment of the present invention
  • Fig. 2 is the structural representation of Elman neural network
  • FIG. 3 is a schematic diagram of functional modules of a torque estimation device for a permanent magnet synchronous motor according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
  • first”, “second”, and “third” in this application are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, features defined as “first”, “second”, and “third” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined. All directional indications (such as up, down, left, right, front, back%) in the embodiments of the present application are only used to explain the relative positional relationship between the various components in a certain posture (as shown in the drawings) , sports conditions, etc., if the specific posture changes, the directional indication also changes accordingly.
  • FIG. 1 is a schematic flowchart of a torque estimation method for a permanent magnet synchronous motor according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in FIG. 1 if substantially the same result is obtained. As shown in Figure 1, the method includes steps:
  • Step S101 Acquiring motor operating parameters in real time.
  • this embodiment is aimed at real-time and online control of the torque of the motor during the real-time operation of the motor.
  • the motor operating parameters of the motor are collected in real time through the device.
  • the real-time acquisition of motor operating parameters includes: real-time acquisition of d-axis current, q-axis current, electrical angle parameters, and motor speed of the motor based on a preset acquisition device.
  • the speed factor of the motor is further considered, so that the prediction results obtained according to the above parameters are more accurate than those obtained only through the d-axis current, q-axis current and electrical angle parameters.
  • Step S102 Input the motor operating parameters into the pre-trained torque estimation model to obtain the final torque estimation value.
  • the torque estimation model includes the Elman neural network model and the motor torque mathematical estimation model.
  • the Elman neural network model The first torque estimation value is obtained according to the motor operation parameter prediction, and the motor torque mathematical estimation model is obtained according to the motor operation parameter prediction to obtain the second torque estimation value, the first torque estimation value and the second torque estimation value
  • the final torque estimation value is calculated according to the weight parameter and the bias parameter, and the weight parameter and the bias parameter are trained when training the torque estimation model.
  • the prediction result of the motor torque mathematical estimation model is integrated with the prediction result of the Elman neural network model, thereby improving the estimation stability and accuracy.
  • Figure 2 shows the structural diagram of the Elman neural network.
  • the Elman neural network is a typical dynamic recursive neural network. It is based on the basic structure of the BP network and adds A succession layer, as a one-step delay operator, achieves the purpose of memory, so that the system has the ability to adapt to time-varying characteristics, and enhances the global stability of the network. It has stronger computing power than the feed-forward neural network. Its mathematical expression is:
  • y is the m-dimensional output node vector
  • x is the n-dimensional intermediate layer node unit vector
  • u is the r-dimensional input vector
  • x c is the n-dimensional feedback state vector
  • w 3 is the connection weight from the intermediate layer to the output layer
  • w 2 is the connection weight from the input layer to the middle layer
  • w 1 is the connection weight from the receiving layer to the middle layer
  • g() is the transfer function of the output neuron, which is the linear combination of the output of the middle layer
  • f() is the weight of the middle layer neuron
  • the transfer function often using the S function.
  • the formula for calculating the final estimated value is:
  • f(x n ) represents the output of the Elman neural network model
  • E(T) represents the output of the torque mathematical model
  • is the weight parameter
  • is the bias parameter
  • ⁇ and ⁇ are in rotation Obtained during the training process of the moment estimation model.
  • U represents the voltage
  • L represents the inductance
  • i represents the current
  • d represents the d-axis
  • q represents the q-axis
  • R is the motor stator coil
  • is the motor flux linkage
  • p is the number of pole pairs of the motor
  • T e is the second torque Estimated value
  • w is the angular velocity of the motor.
  • steps of pre-training the torque estimation model include:
  • weight parameters and bias parameters are preset.
  • the sample input parameters and the actual torque value corresponding to each sample input parameter are collected during the actual operation of the motor.
  • the torque signal is later than the motor modulation control current signal for a certain period, it is necessary to calibrate and match the collected data.
  • the above training process is repeated until the torque estimation model reaches a preset accuracy or the number of iterations reaches a preset number.
  • the torque estimation model can reach a preset accuracy or The number of iterations reaches the preset number, and a trained torque estimation model is obtained.
  • the final torque estimation value can also be used to perform torque control on the motor, therefore, after obtaining the final torque estimation value, it also includes:
  • the motor torque is closed-loop controlled according to the final torque estimation value.
  • the current control system is a torque control system
  • the d Axis current, q-axis current and electrical angle parameters and then estimated by d-axis current, q-axis current and electrical angle parameters to obtain the final torque estimation value, and then perform closed-loop control on the torque according to the final torque estimation value .
  • the closed-loop control of the motor torque is performed according to the final torque estimation value, including:
  • the calculation time refers to the time consumed by the Elman neural network model and the motor torque mathematical estimation model from obtaining the motor operating parameters to obtaining the final torque estimation value according to the motor operating parameters
  • the processing time refers to the time consumed by the operation of the control system time.
  • processor of the currently running device is a single-core processor, set the motor control cycle to the sum of the calculation time and processing time, and according to the motor control cycle, use the final torque estimate obtained in the motor control cycle Closed-loop control of motor torque.
  • the processor of the currently running device is a multi-core processor, set the motor control cycle to the larger value of the calculation time and processing time, and according to the motor control cycle, use the final torque obtained in the motor control cycle to estimate The measured value performs closed-loop control on the motor torque.
  • the Elman neural network model and the motor torque mathematical estimation model are in a serial relationship with the motor control program. Therefore, it is necessary to run the Elman neural network after the motor control program is completed. model and motor torque mathematical estimation model, at this time, the motor control cycle is set to the sum of calculation time and processing time, for example, the motor control program can be completed in about 25us, and this Elman neural network model and motor The torque mathematical estimation model takes 85us to calculate the final torque estimation value, so the motor control cycle is set to 150us.
  • the motor control program and the Elman neural network model and the motor torque mathematical estimation model are in parallel with the motor control program. Therefore, the motor control program and the Elman neural network model and the motor torque mathematical estimation model can be simultaneously Execution, at this time, the motor control cycle is set to the larger value of the calculation time and processing time, for example, the motor control program can be completed in about 25us, and this time the Elman neural network model and the motor torque mathematical estimation model It takes 85us to calculate the final torque estimation value, so the motor control cycle is set to 100us.
  • the single-thread processing platform needs longer calculation time, and the motor control performance is slightly reduced, while the multi-thread processing platform has better motor control performance.
  • weighted calculation of the first torque estimated value and the second torque estimated value to obtain the final torque estimated value further includes:
  • the final estimated torque value is output as observation data.
  • the torque estimation method of the permanent magnet synchronous motor of the first embodiment of the present invention is based on the torque estimation model constructed jointly by the Elman neural network model and the motor torque mathematical estimation model, and then using the torque estimation model Estimating the motor operating parameters collected in real time to obtain the final torque estimation value, through the fusion of the Elman neural network and the motor mathematical model algorithm, it avoids the influence of the torque estimation model on the harmonic interference in the motor operation, and optimizes The performance of the model is improved, and the stability and accuracy of the model prediction are improved.
  • FIG. 3 is a schematic diagram of functional modules of a torque estimation device for a permanent magnet synchronous motor according to an embodiment of the present invention.
  • the torque estimation device 30 of the permanent magnet synchronous motor includes an acquisition module 31 and an estimation module 32 .
  • the estimation module 32 is used to input the motor operating parameters into the pre-trained torque estimation model to obtain the final torque estimation value.
  • the torque estimation model includes an Elman neural network model and a motor torque mathematical estimation model, The Elman neural network model obtains the first torque estimation value according to the motor operating parameter prediction, and the motor torque mathematical estimation model obtains the second torque estimation value according to the motor operating parameter prediction, the first torque estimation value and the second torque estimation value.
  • the moment estimated value is calculated according to the weight parameter and the offset parameter to obtain the final torque estimated value, and the weight parameter and the offset parameter are trained when training the torque estimation model.
  • the acquisition module 31 executes the operation of acquiring the operating parameters of the motor in real time, specifically including: acquiring the d-axis current, q-axis current, electrical angle parameters and motor speed of the motor in real time based on a preset acquisition device.
  • the formula for calculating the final estimated value is:
  • f(x n ) represents the output of the Elman neural network model
  • E(T) represents the output of the torque mathematical model
  • is the weight parameter
  • is the bias parameter
  • ⁇ and ⁇ are in rotation Obtained during the training process of the moment estimation model.
  • a training module which is used to perform the operation of pre-training the torque estimation model, specifically including: constructing the torque estimation model to be trained, and initially setting the weight parameters and bias parameters to default values; obtaining The training sample input parameters and the actual torque value corresponding to the training sample input parameters; perform feature engineering on the training sample input parameters to obtain the sample feature vector; input the sample feature vector to the torque estimation model to obtain the sample torque estimation value ;Update the torque estimation model based on the pre-built loss function, sample torque estimation value and actual torque value backpropagation; repeat the above training process until the torque estimation model reaches the preset accuracy or the number of iterations reaches the preset up to the number of times.
  • the estimation module 32 executes the operation of obtaining the final torque estimation value, it is also used for: when the currently running control system is a torque control system, perform a closed-loop operation on the motor torque according to the final torque estimation value control.
  • the estimation module 32 executes the operation of performing closed-loop control on the motor torque according to the final torque estimation value, specifically including: obtaining the calculation time consumed by calculating the final torque estimation value and the processing consumed by the control system operation time; if the processor of the currently running device is a single-core processor, set the motor control cycle to the sum of the calculation time and processing time, and according to the motor control cycle, use the final torque estimate obtained in the motor control cycle Perform closed-loop control on the motor torque; if the processor of the currently running device is a multi-core processor, set the motor control cycle to the larger value of the calculation time and processing time, and according to the motor control cycle, take the motor control cycle The obtained final torque estimate performs closed-loop control of the motor torque.
  • the estimation module 32 executes the operation of obtaining the final torque estimation value, it is further configured to: when the currently running control system is a non-torque control system, output the final torque estimation value as observation data.
  • each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments.
  • the same and similar parts in each embodiment refer to each other, that is, Can.
  • the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.
  • FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • the computer device 60 includes a processor 61 and a memory 62 coupled to the processor 61.
  • Program instructions are stored in the memory 32.
  • the processor 61 executes any of the above-mentioned operations. The steps of the method for estimating the torque of the permanent magnet synchronous motor described in the embodiment.
  • the processor 61 may also be called a CPU (Central Processing Unit, central processing unit).
  • the processor 61 may be an integrated circuit chip with signal processing capabilities.
  • the processor 61 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • FIG. 5 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
  • the storage medium in the embodiment of the present invention stores program instructions 71 capable of realizing all the above-mentioned methods, wherein the program instructions 71 can be stored in the above-mentioned storage medium in the form of software products, including several instructions to make a computer device (which can It is a personal computer, a server, or a network device, etc.) or a processor (processor) that executes all or part of the steps of the methods described in the various embodiments of the present application.
  • a computer device which can It is a personal computer, a server, or a network device, etc.
  • processor processor
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. , or computer equipment such as computers, servers, mobile phones, and tablets.
  • the disclosed computer equipment, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. The above is only the implementation mode of this application, and does not limit the scope of patents of this application. Any equivalent structure or equivalent process conversion made by using the contents of this application specification and drawings, or directly or indirectly used in other related technical fields, All are included in the scope of patent protection of the present application in the same way.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Control Of Electric Motors In General (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

Disclosed in the present invention are a torque estimation method and apparatus for a permanent magnet synchronous motor, and a device and a storage medium. The method comprises: acquiring a motor operation parameter in real time; and inputting the motor operation parameter into a pre-trained torque estimation model to obtain a final estimated torque value, wherein the torque estimation model comprises an Elman neural network model and a motor torque mathematical estimation model, the Elman neural network model performs prediction according to the motor operation parameter to obtain a first estimated torque value, the motor torque mathematical estimation model performs prediction according to the motor operation parameter to obtain a second estimated torque value, calculation is performed on the first estimated torque value and the second estimated torque value according to a weight parameter and a bias parameter, so as to obtain the final estimated torque value, and the weight parameter and the bias parameter are obtained by means of training when the torque estimation model is trained. In the present invention, a hybrid model is formed by using an Elman model and a mathematical model, thereby further improving the calculation speed and response speed, and also improving the prediction accuracy.

Description

永磁同步电机的转矩估测方法、装置、设备及存储介质Torque estimation method, device, equipment and storage medium of permanent magnet synchronous motor 技术领域technical field
本申请涉及基于电机控制技术领域,特别是涉及一种永磁同步电机的转矩估测方法、装置、设备及存储介质。The present application relates to the technical field of motor control, in particular to a torque estimation method, device, equipment and storage medium of a permanent magnet synchronous motor.
背景技术Background technique
永磁同步电机具有高功率密度、高效率、高转矩密度等优点已经被广泛的应用于机器人、工业自动化以及电动汽车等领域。但由于IPMSM受到电机参数的非线性、波动性以及运行不确定性等因素影响,导致其无法准确地实现电机转矩的高精度控制。因此,在传统的电机转矩控制策略中,电机电磁转矩的控制精度偏低,使系统整体的性能下降。Permanent magnet synchronous motors have the advantages of high power density, high efficiency, and high torque density, and have been widely used in robotics, industrial automation, and electric vehicles. However, because the IPMSM is affected by factors such as the nonlinearity, volatility, and operational uncertainty of the motor parameters, it cannot accurately achieve high-precision control of the motor torque. Therefore, in the traditional motor torque control strategy, the control accuracy of the motor electromagnetic torque is relatively low, which degrades the overall performance of the system.
为了提高永磁同步电机转矩估算精度,国内外学者已经研究出很多方案,可以分为离线和在线两类。对于离线方案,通常是查表获得,查表法是根据离线实验或者有限元分析模拟到的,基于查表法的方法既简单又具有鲁棒性,但是实现该方法非常耗时,需要利用大量的硬件资源,占据大量的储存空间,并且在每一台机器上进行测试是不切实际的,这些因素大大降低了转矩估算的效率和应用范围。对于在线方法,通常采用扩展卡尔曼滤波算法,扩展卡尔曼滤波算法(EKF)是学者根据卡尔曼(KF)滤波算法无法有效跟踪非线性系统推导出来的算法,是一种对非线性系统的近似处理方法,其对永磁同步电机非线性特性有较好的估算效果,抗干扰性较强,但计算量也相对较大。In order to improve the torque estimation accuracy of permanent magnet synchronous motors, scholars at home and abroad have developed many schemes, which can be divided into two types: offline and online. For offline solutions, it is usually obtained by looking up a table. The table lookup method is simulated based on off-line experiments or finite element analysis. The method based on the table lookup method is simple and robust, but it is very time-consuming to implement and requires a large number of hardware resources, occupy a large amount of storage space, and it is impractical to test on each machine, these factors greatly reduce the efficiency and application range of torque estimation. For online methods, the extended Kalman filter algorithm is usually used. The extended Kalman filter algorithm (EKF) is an algorithm derived by scholars based on the fact that the Kalman (KF) filter algorithm cannot effectively track nonlinear systems. It is an approximation to nonlinear systems. The processing method has a good estimation effect on the nonlinear characteristics of the permanent magnet synchronous motor, and has strong anti-interference performance, but the calculation amount is relatively large.
发明内容Contents of the invention
本申请提供一种永磁同步电机的转矩估测方法、装置、设备及存储介质,以解决现有的转矩估测计算量大且准确率较低的问题。The present application provides a torque estimation method, device, equipment and storage medium of a permanent magnet synchronous motor, so as to solve the problems of large calculation amount and low accuracy of the existing torque estimation.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种永 磁同步电机的转矩估测方法,包括:实时获取电机运行参数;将电机运行参数输入至预先训练好的转矩估测模型,得到最终转矩估测值,转矩估测模型包括Elman神经网络模型和电机转矩数学估测模型,Elman神经网络模型根据电机运行参数预测得到第一转矩估测值,电机转矩数学估测模型根据电机运行参数预测得到第二转矩估测值,第一转矩估测值和第二转矩估测值按权重参数和偏置参数计算得到最终转矩估测值,权重参数和偏置参数在训练转矩估测模型时训练得到。In order to solve the above technical problems, a technical solution adopted by this application is to provide a torque estimation method of a permanent magnet synchronous motor, including: obtaining the motor operating parameters in real time; inputting the motor operating parameters into the pre-trained torque estimation method Measure the model to get the final torque estimation value, the torque estimation model includes the Elman neural network model and the motor torque mathematical estimation model, the Elman neural network model obtains the first torque estimation value according to the motor operation parameter prediction, the motor rotation The moment mathematical estimation model obtains the second torque estimation value according to the motor operation parameter prediction, the first torque estimation value and the second torque estimation value are calculated according to the weight parameter and the bias parameter to obtain the final torque estimation value, The weight parameters and bias parameters are trained when training the torque estimation model.
作为本申请的进一步改进,实时获取电机运行参数,包括:基于预设的采集设备实时获取电机的d轴电流、q轴电流、电角度参数和电机转速。As a further improvement of the present application, the real-time acquisition of motor operating parameters includes: real-time acquisition of d-axis current, q-axis current, electrical angle parameters and motor speed of the motor based on a preset acquisition device.
作为本申请的进一步改进,最终估测值的计算公式为:As a further improvement of this application, the calculation formula of the final estimated value is:
Figure PCTCN2022138178-appb-000001
Figure PCTCN2022138178-appb-000001
其中,
Figure PCTCN2022138178-appb-000002
表示转矩估测模型的输出,f(x n)表示Elman神经网络模型的输出,E(T)表示转矩数学模型的输出,α为权重参数,β为偏置参数,α和β在转矩估测模型训练过程中训练得到。
in,
Figure PCTCN2022138178-appb-000002
Represents the output of the torque estimation model, f(x n ) represents the output of the Elman neural network model, E(T) represents the output of the torque mathematical model, α is the weight parameter, β is the bias parameter, α and β are in rotation Obtained during the training process of the moment estimation model.
作为本申请的进一步改进,预先训练转矩估测模型的步骤,包括:构建待训练的转矩估测模型,权重参数和偏置参数初始设定为默认值;获取训练样本输入参数以及与训练样本输入参数对应的实际转矩值;对训练样本输入参数进行特征工程,得到样本特征向量;将样本特征向量输入至转矩估测模型,得到样本转矩估测值;基于预先构建的损失函数、样本转矩估测值和实际转矩值反向传播更新转矩估测模型;重复执行上述训练过程直至转矩估测模型达到预设精度或迭代次数达到预设次数时为止。As a further improvement of the present application, the step of pre-training the torque estimation model includes: constructing the torque estimation model to be trained, the weight parameters and bias parameters are initially set to default values; obtaining training sample input parameters and training The actual torque value corresponding to the sample input parameters; perform feature engineering on the training sample input parameters to obtain the sample feature vector; input the sample feature vector into the torque estimation model to obtain the sample torque estimation value; based on the pre-built loss function , the sample torque estimation value and the actual torque value are backpropagated to update the torque estimation model; the above training process is repeated until the torque estimation model reaches a preset accuracy or the number of iterations reaches a preset number of times.
作为本申请的进一步改进,得到最终转矩估测值之后,还包括:在当前运行的控制系统为转矩控制系统时,根据最终转矩估测值对电机转矩进行闭环控制。As a further improvement of the present application, after obtaining the final estimated torque value, the method further includes: when the currently running control system is a torque control system, performing closed-loop control on the motor torque according to the final estimated torque value.
作为本申请的进一步改进,根据最终转矩估测值对电机转矩进行闭环控制,包括:获取计算最终转矩估测值所消耗的计算时间和控制系统运行所消耗的处理时间;若当前运行设备的处理器为单核处理器,则将 电机控制周期设定为计算时间和处理时间之和,并按照电机控制周期,以电机控制周期内获取的最终转矩估测值对电机转矩进行闭环控制;若当前运行设备的处理器为多核处理器,则将电机控制周期设定为计算时间和处理时间中的较大值,并按照电机控制周期,以电机控制周期内获取的最终转矩估测值对电机转矩进行闭环控制。As a further improvement of the present application, the motor torque is closed-loop controlled according to the final torque estimation value, including: obtaining the calculation time consumed by calculating the final torque estimation value and the processing time consumed by the control system operation; if the current operation If the processor of the device is a single-core processor, the motor control cycle is set as the sum of calculation time and processing time, and according to the motor control cycle, the motor torque is calculated with the final torque estimate obtained in the motor control cycle Closed-loop control; if the processor of the currently running device is a multi-core processor, set the motor control cycle to the larger value of the calculation time and processing time, and according to the motor control cycle, use the final torque obtained in the motor control cycle The estimated value performs closed-loop control of the motor torque.
作为本申请的进一步改进,得到最终转矩估测值之后,还包括:在当前运行的控制系统为非转矩控制系统时,将最终转矩估测值作为观测数据输出。As a further improvement of the present application, after obtaining the final estimated torque value, it further includes: when the currently running control system is a non-torque control system, outputting the final estimated torque value as observation data.
为解决上述技术问题,本申请采用的另一个技术方案是:提供一种永磁同步电机的转矩估测装置,包括:获取模块,用于实时获取电机运行参数;估测模块,用于将电机运行参数输入至预先训练好的转矩估测模型,得到最终转矩估测值,转矩估测模型包括Elman神经网络模型和电机转矩数学估测模型,Elman神经网络模型根据电机运行参数预测得到第一转矩估测值,电机转矩数学估测模型根据电机运行参数预测得到第二转矩估测值,第一转矩估测值和第二转矩估测值按权重参数和偏置参数计算得到最终转矩估测值,权重参数和偏置参数在训练转矩估测模型时训练得到。In order to solve the above technical problems, another technical solution adopted by the present application is to provide a torque estimation device for a permanent magnet synchronous motor, including: an acquisition module for acquiring motor operating parameters in real time; an estimation module for The motor operating parameters are input into the pre-trained torque estimation model to obtain the final torque estimation value. The torque estimation model includes the Elman neural network model and the motor torque mathematical estimation model. The Elman neural network model is based on the motor operating parameters The first torque estimation value is obtained by prediction, and the motor torque mathematical estimation model predicts and obtains the second torque estimation value according to the motor operating parameters. The first torque estimation value and the second torque estimation value are calculated according to the weight parameters and The bias parameter is calculated to obtain the final torque estimation value, and the weight parameter and bias parameter are trained during the training of the torque estimation model.
为解决上述技术问题,本申请采用的再一个技术方案是:提供一种计算机设备,所述计算机设备包括处理器、与所述处理器耦接的存储器,所述存储器中存储有程序指令,所述程序指令被所述处理器执行时,使得所述处理器执行上述的基于神经网络的转矩估测方法的步骤。In order to solve the above technical problems, another technical solution adopted by the present application is to provide a computer device, the computer device includes a processor, a memory coupled to the processor, and program instructions are stored in the memory, so When the program instructions are executed by the processor, the processor is made to execute the steps of the above neural network-based torque estimation method.
为解决上述技术问题,本申请采用的再一个技术方案是:提供一种存储介质,存储有能够实现上述基于神经网络的转矩估测方法的程序指令。In order to solve the above-mentioned technical problems, another technical solution adopted by the present application is to provide a storage medium storing program instructions capable of realizing the above-mentioned neural network-based torque estimation method.
本申请的有益效果是:本申请的永磁同步电机的转矩估测方法通过基于Elman神经网络模型和电机转矩数学估测模型进行联合所构建的转矩估测模型,再利用该转矩估测模型根据实时采集的电机运行参数进行估测,得到最终转矩估测值,其通过Elman神经网络与电机数学模型算法的融合,避免了转矩估测模型对电机运行中谐波干扰等影响,优化了 模型性能,提高了模型预测稳定性和精度。The beneficial effects of the present application are: the torque estimation method of the permanent magnet synchronous motor of the present application is based on the torque estimation model constructed jointly by the Elman neural network model and the motor torque mathematical estimation model, and then utilizes the torque The estimation model estimates the motor operating parameters collected in real time to obtain the final torque estimation value. Through the fusion of the Elman neural network and the motor mathematical model algorithm, the torque estimation model avoids harmonic interference in the motor operation, etc. Influence, optimize model performance, improve model prediction stability and accuracy.
附图说明Description of drawings
图1是本发明第一实施例的永磁同步电机的转矩估测方法的流程示意图;1 is a schematic flow chart of a torque estimation method for a permanent magnet synchronous motor according to a first embodiment of the present invention;
图2是Elman神经网络的结构示意图;Fig. 2 is the structural representation of Elman neural network;
图3是本发明实施例的永磁同步电机的转矩估测装置的功能模块示意图;3 is a schematic diagram of functional modules of a torque estimation device for a permanent magnet synchronous motor according to an embodiment of the present invention;
图4是本发明实施例的计算机设备的结构示意图;FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
图5是本发明实施例的存储介质的结构示意图。FIG. 5 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
本申请中的术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”、“第三”的特征可以明示或者隐含地包括至少一个该特征。本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", and "third" in this application are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, features defined as "first", "second", and "third" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present application are only used to explain the relative positional relationship between the various components in a certain posture (as shown in the drawings) , sports conditions, etc., if the specific posture changes, the directional indication also changes accordingly. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
图1是本发明第一实施例的永磁同步电机的转矩估测方法的流程示意图。需注意的是,若有实质上相同的结果,本发明的方法并不以图1所示的流程顺序为限。如图1所示,该方法包括步骤:FIG. 1 is a schematic flowchart of a torque estimation method for a permanent magnet synchronous motor according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in FIG. 1 if substantially the same result is obtained. As shown in Figure 1, the method includes steps:
步骤S101:实时获取电机运行参数。Step S101: Acquiring motor operating parameters in real time.
需要说明的是,本实施例是针对电机实时运作过程中,对电机的转矩进行实时地、在线地控制。It should be noted that this embodiment is aimed at real-time and online control of the torque of the motor during the real-time operation of the motor.
具体地,在电机运行过程中,通过设备实时采集电机的电机运行参数。Specifically, during the operation of the motor, the motor operating parameters of the motor are collected in real time through the device.
其中,实时获取电机运行参数,包括:基于预设的采集设备实时获取电机的d轴电流、q轴电流、电角度参数和电机转速。The real-time acquisition of motor operating parameters includes: real-time acquisition of d-axis current, q-axis current, electrical angle parameters, and motor speed of the motor based on a preset acquisition device.
本实施例中,通过获取电机转速,从而进一步考虑电机的转速因素,使得根据上述参数得到的预测结果相比于仅通过d轴电流、q轴电流和电角度参数得到的预测结果更为精准。In this embodiment, by obtaining the motor speed, the speed factor of the motor is further considered, so that the prediction results obtained according to the above parameters are more accurate than those obtained only through the d-axis current, q-axis current and electrical angle parameters.
步骤S102:将电机运行参数输入至预先训练好的转矩估测模型,得到最终转矩估测值,转矩估测模型包括Elman神经网络模型和电机转矩数学估测模型,Elman神经网络模型根据电机运行参数预测得到第一转矩估测值,电机转矩数学估测模型根据电机运行参数预测得到第二转矩估测值,第一转矩估测值和第二转矩估测值按权重参数和偏置参数计算得到最终转矩估测值,权重参数和偏置参数在训练转矩估测模型时训练得到。Step S102: Input the motor operating parameters into the pre-trained torque estimation model to obtain the final torque estimation value. The torque estimation model includes the Elman neural network model and the motor torque mathematical estimation model. The Elman neural network model The first torque estimation value is obtained according to the motor operation parameter prediction, and the motor torque mathematical estimation model is obtained according to the motor operation parameter prediction to obtain the second torque estimation value, the first torque estimation value and the second torque estimation value The final torque estimation value is calculated according to the weight parameter and the bias parameter, and the weight parameter and the bias parameter are trained when training the torque estimation model.
需要说明的是,电机转矩数学估测模型在实际应用中,由于电机运行中存在系统参数变化、磁体饱和、谐波扰动等非线性因素,其输出转矩与实际转矩存在很大误差,因此,本实施例中,将电机转矩数学估测模型的预测结果与Elman神经网络模型的预测结果进行整合,进而提高 估算稳定性和精确度。It should be noted that, in the actual application of the motor torque mathematical estimation model, there is a large error between the output torque and the actual torque due to nonlinear factors such as system parameter changes, magnet saturation, and harmonic disturbances during motor operation. Therefore, in this embodiment, the prediction result of the motor torque mathematical estimation model is integrated with the prediction result of the Elman neural network model, thereby improving the estimation stability and accuracy.
需要说明的是,请参阅图2,图2展示了Elman神经网络的结构图,Elman神经网络是一种典型的动态递归神经网络,它是在BP网络基本结构的基础上,在隐含层增加一个承接层,作为一步延时算子,达到记忆的目的,从而使系统具有适应时变特性的能力,增强了网络的全局稳定性,它比前馈型神经网络具有更强的计算能力。其数学表示式为:It should be noted that please refer to Figure 2. Figure 2 shows the structural diagram of the Elman neural network. The Elman neural network is a typical dynamic recursive neural network. It is based on the basic structure of the BP network and adds A succession layer, as a one-step delay operator, achieves the purpose of memory, so that the system has the ability to adapt to time-varying characteristics, and enhances the global stability of the network. It has stronger computing power than the feed-forward neural network. Its mathematical expression is:
y(k)=g(w 3x(k)); y(k)=g(w 3 x(k));
x(k)=f(w 1x c(k)+w 2(u(k-1))); x(k)=f(w 1 x c (k)+w 2 (u(k-1)));
x c(k)=x(k-1); xc (k)=x(k-1);
其中,y为m维输出节点向量;x为n维中间层节点单元向量;u为r维输入向量;x c为n维反馈状态向量;w 3为中间层到输出层连接权值;w 2为输入层到中间层连接权值;w 1为承接层到中间层连接权值;g()为输出神经元的传递函数,是中间层输出的线性组合;f()为中间层神经元的传递函数,常采用S函数。 Among them, y is the m-dimensional output node vector; x is the n-dimensional intermediate layer node unit vector; u is the r-dimensional input vector; x c is the n-dimensional feedback state vector; w 3 is the connection weight from the intermediate layer to the output layer; w 2 is the connection weight from the input layer to the middle layer; w 1 is the connection weight from the receiving layer to the middle layer; g() is the transfer function of the output neuron, which is the linear combination of the output of the middle layer; f() is the weight of the middle layer neuron The transfer function, often using the S function.
具体地,该最终估测值的计算公式为:Specifically, the formula for calculating the final estimated value is:
Figure PCTCN2022138178-appb-000003
Figure PCTCN2022138178-appb-000003
其中,
Figure PCTCN2022138178-appb-000004
表示转矩估测模型的输出,f(x n)表示Elman神经网络模型的输出,E(T)表示转矩数学模型的输出,α为权重参数,β为偏置参数,α和β在转矩估测模型训练过程中训练得到。
in,
Figure PCTCN2022138178-appb-000004
Represents the output of the torque estimation model, f(x n ) represents the output of the Elman neural network model, E(T) represents the output of the torque mathematical model, α is the weight parameter, β is the bias parameter, α and β are in rotation Obtained during the training process of the moment estimation model.
其中,该电机转矩数学估测模型表示为:Among them, the motor torque mathematical estimation model is expressed as:
Figure PCTCN2022138178-appb-000005
Figure PCTCN2022138178-appb-000005
Figure PCTCN2022138178-appb-000006
Figure PCTCN2022138178-appb-000006
Figure PCTCN2022138178-appb-000007
Figure PCTCN2022138178-appb-000007
其中,U表示电压,L表示电感,i表示电流,d表示d轴,q表示q轴,R为电机定子线圈,ψ为电机磁链,p是电机极对数,T e是第二转矩估测值,w是电机角速度。 Among them, U represents the voltage, L represents the inductance, i represents the current, d represents the d-axis, q represents the q-axis, R is the motor stator coil, ψ is the motor flux linkage, p is the number of pole pairs of the motor, T e is the second torque Estimated value, w is the angular velocity of the motor.
进一步的,预先训练转矩估测模型的步骤,包括:Further, the steps of pre-training the torque estimation model include:
1、构建待训练的转矩估测模型,权重参数和偏置参数初始设定为默认值。1. Construct the torque estimation model to be trained, and the weight parameters and bias parameters are initially set to default values.
需要说明的是,权重参数和偏置参数的默认值预先设置。It should be noted that default values of weight parameters and bias parameters are preset.
2、获取训练样本输入参数以及与训练样本输入参数对应的实际转矩值。2. Obtain the training sample input parameters and the actual torque value corresponding to the training sample input parameters.
具体地,该样本输入参数和每个样本输入参数对应的实际转矩值在电机实际运行中采集获得的,值得注意的是,理想情况下,认为电机运行状态与控制同时完成,但实际应用过程中,由于存在机械响应延时,即转矩信号要晚于电机调制控制电流信号一定周期,因此需要对采集数据进行数据校准匹配。Specifically, the sample input parameters and the actual torque value corresponding to each sample input parameter are collected during the actual operation of the motor. In , due to the mechanical response delay, that is, the torque signal is later than the motor modulation control current signal for a certain period, it is necessary to calibrate and match the collected data.
3、对训练样本输入参数进行特征工程,得到样本特征向量。3. Perform feature engineering on the input parameters of the training samples to obtain the sample feature vectors.
4、将样本特征向量输入至转矩估测模型,得到样本转矩估测值。4. Input the sample feature vector into the torque estimation model to obtain the sample torque estimation value.
5、基于预先构建的损失函数、样本转矩估测值和实际转矩值反向传播更新转矩估测模型。5. Backpropagating the torque estimation model based on the pre-built loss function, the sample torque estimation value and the actual torque value.
重复执行上述训练过程直至转矩估测模型达到预设精度或迭代次数达到预设次数时为止。The above training process is repeated until the torque estimation model reaches a preset accuracy or the number of iterations reaches a preset number.
本实施例中,通过在训练过程中,不断筛选和调整网络模型结构,包括网络神经元个数、隐含层层数、学习率、训练次数,使得该转矩估测模型达到预设精度或迭代次数达到预设次数,得到训练好的转矩估测模型。In this embodiment, by continuously screening and adjusting the network model structure during the training process, including the number of network neurons, the number of hidden layers, the learning rate, and the number of training times, the torque estimation model can reach a preset accuracy or The number of iterations reaches the preset number, and a trained torque estimation model is obtained.
进一步的,在一些实施例中,该最终转矩估测值还可用于对电机进行转矩控制,因此,得到最终转矩估测值之后,还包括:Further, in some embodiments, the final torque estimation value can also be used to perform torque control on the motor, therefore, after obtaining the final torque estimation value, it also includes:
在当前运行的控制系统为转矩控制系统时,根据最终转矩估测值对电机转矩进行闭环控制。When the currently running control system is a torque control system, the motor torque is closed-loop controlled according to the final torque estimation value.
具体地,在将上述Elman神经网络模型和电机转矩数学估测模型嵌入到电机控制程序中后,若当前运行的控制系统为转矩控制系统时,即可通过实时采集电机运行过程中的d轴电流、q轴电流和电角度参数,再以d轴电流、q轴电流和电角度参数进行估测,得到最终转矩估测值,再根据最终转矩估测值对转矩进行闭环控制。Specifically, after embedding the above-mentioned Elman neural network model and the motor torque mathematical estimation model into the motor control program, if the current control system is a torque control system, the d Axis current, q-axis current and electrical angle parameters, and then estimated by d-axis current, q-axis current and electrical angle parameters to obtain the final torque estimation value, and then perform closed-loop control on the torque according to the final torque estimation value .
需要说明的是,电机控制程序当前运行设备处理器核心数的不同会使得电机控制的执行存在区别,因此,根据最终转矩估测值对电机转矩 进行闭环控制,具体包括:It should be noted that the difference in the number of processor cores of the current running device of the motor control program will make the execution of the motor control different. Therefore, the closed-loop control of the motor torque is performed according to the final torque estimation value, including:
1、获取计算最终转矩估测值所消耗的计算时间和控制系统运行所消耗的处理时间。1. Obtain the calculation time consumed for calculating the final torque estimation value and the processing time consumed for the operation of the control system.
其中,计算时间是指Elman神经网络模型和电机转矩数学估测模型从获取到电机运行参数到根据电机运行参数得到最终转矩估测值所消耗的时间,处理时间是指控制系统运行所消耗的时间。Among them, the calculation time refers to the time consumed by the Elman neural network model and the motor torque mathematical estimation model from obtaining the motor operating parameters to obtaining the final torque estimation value according to the motor operating parameters, and the processing time refers to the time consumed by the operation of the control system time.
2、若当前运行设备的处理器为单核处理器,则将电机控制周期设定为计算时间和处理时间之和,并按照电机控制周期,以电机控制周期内获取的最终转矩估测值对电机转矩进行闭环控制。2. If the processor of the currently running device is a single-core processor, set the motor control cycle to the sum of the calculation time and processing time, and according to the motor control cycle, use the final torque estimate obtained in the motor control cycle Closed-loop control of motor torque.
3、若当前运行设备的处理器为多核处理器,则将电机控制周期设定为计算时间和处理时间中的较大值,并按照电机控制周期,以电机控制周期内获取的最终转矩估测值对电机转矩进行闭环控制。3. If the processor of the currently running device is a multi-core processor, set the motor control cycle to the larger value of the calculation time and processing time, and according to the motor control cycle, use the final torque obtained in the motor control cycle to estimate The measured value performs closed-loop control on the motor torque.
具体地,在当前设备为单核处理器时,则Elman神经网络模型和电机转矩数学估测模型与电机控制程序是串行关系,因此,需要在电机控制程序完成后,再运行Elman神经网络模型和电机转矩数学估测模型,此时,电机控制周期则设置为计算时间和处理时间之和,例如,电机控制程序用时为25us左右即可完成,而本次Elman神经网络模型和电机转矩数学估测模型计算最终转矩估测值用时为85us,则电机控制周期设定为150us。Specifically, when the current device is a single-core processor, the Elman neural network model and the motor torque mathematical estimation model are in a serial relationship with the motor control program. Therefore, it is necessary to run the Elman neural network after the motor control program is completed. model and motor torque mathematical estimation model, at this time, the motor control cycle is set to the sum of calculation time and processing time, for example, the motor control program can be completed in about 25us, and this Elman neural network model and motor The torque mathematical estimation model takes 85us to calculate the final torque estimation value, so the motor control cycle is set to 150us.
在当前设备为多核处理器时,则Elman神经网络模型和电机转矩数学估测模型与电机控制程序是并行关系,因此,电机控制程序与Elman神经网络模型和电机转矩数学估测模型可同时执行,此时,电机控制周期则设置为计算时间和处理时间中的较大值,例如,电机控制程序用时为25us左右即可完成,而本次Elman神经网络模型和电机转矩数学估测模型计算最终转矩估测值用时为85us,则电机控制周期设定为100us。When the current device is a multi-core processor, the Elman neural network model and the motor torque mathematical estimation model are in parallel with the motor control program. Therefore, the motor control program and the Elman neural network model and the motor torque mathematical estimation model can be simultaneously Execution, at this time, the motor control cycle is set to the larger value of the calculation time and processing time, for example, the motor control program can be completed in about 25us, and this time the Elman neural network model and the motor torque mathematical estimation model It takes 85us to calculate the final torque estimation value, so the motor control cycle is set to 100us.
可知,单线程处理平台需要计算时间更长,则对电机控制性能略有降低,而多线程处理平台对电机控制性能更强。It can be seen that the single-thread processing platform needs longer calculation time, and the motor control performance is slightly reduced, while the multi-thread processing platform has better motor control performance.
进一步的,在根据第一转矩估测值和第二转矩估测值加权计算得到最终转矩估测值之后,还包括:Further, after the weighted calculation of the first torque estimated value and the second torque estimated value to obtain the final torque estimated value, further includes:
在当前运行的控制系统为非转矩控制系统时,将最终转矩估测值作为观测数据输出。When the currently operating control system is a non-torque control system, the final estimated torque value is output as observation data.
本发明第一实施例的永磁同步电机的转矩估测方法通过基于Elman神经网络模型和电机转矩数学估测模型进行联合所构建的转矩估测模型,再利用该转矩估测模型根据实时采集的电机运行参数进行估测,得到最终转矩估测值,其通过Elman神经网络与电机数学模型算法的融合,避免了转矩估测模型对电机运行中谐波干扰等影响,优化了模型性能,提高了模型预测稳定性和精度。The torque estimation method of the permanent magnet synchronous motor of the first embodiment of the present invention is based on the torque estimation model constructed jointly by the Elman neural network model and the motor torque mathematical estimation model, and then using the torque estimation model Estimating the motor operating parameters collected in real time to obtain the final torque estimation value, through the fusion of the Elman neural network and the motor mathematical model algorithm, it avoids the influence of the torque estimation model on the harmonic interference in the motor operation, and optimizes The performance of the model is improved, and the stability and accuracy of the model prediction are improved.
图3是本发明实施例的永磁同步电机的转矩估测装置的功能模块示意图。如图3所示,该永磁同步电机的转矩估测装置30包括获取模块31和估测模块32。FIG. 3 is a schematic diagram of functional modules of a torque estimation device for a permanent magnet synchronous motor according to an embodiment of the present invention. As shown in FIG. 3 , the torque estimation device 30 of the permanent magnet synchronous motor includes an acquisition module 31 and an estimation module 32 .
获取模块31,用于实时获取电机运行参数;Obtaining module 31, used for obtaining motor operating parameters in real time;
估测模块32,用于将电机运行参数输入至预先训练好的转矩估测模型,得到最终转矩估测值,转矩估测模型包括Elman神经网络模型和电机转矩数学估测模型,Elman神经网络模型根据电机运行参数预测得到第一转矩估测值,电机转矩数学估测模型根据电机运行参数预测得到第二转矩估测值,第一转矩估测值和第二转矩估测值按权重参数和偏置参数计算得到最终转矩估测值,权重参数和偏置参数在训练转矩估测模型时训练得到。The estimation module 32 is used to input the motor operating parameters into the pre-trained torque estimation model to obtain the final torque estimation value. The torque estimation model includes an Elman neural network model and a motor torque mathematical estimation model, The Elman neural network model obtains the first torque estimation value according to the motor operating parameter prediction, and the motor torque mathematical estimation model obtains the second torque estimation value according to the motor operating parameter prediction, the first torque estimation value and the second torque estimation value The moment estimated value is calculated according to the weight parameter and the offset parameter to obtain the final torque estimated value, and the weight parameter and the offset parameter are trained when training the torque estimation model.
可选地,获取模块31执行实时获取电机运行参数的操作,具体包括:基于预设的采集设备实时获取电机的d轴电流、q轴电流、电角度参数和电机转速。Optionally, the acquisition module 31 executes the operation of acquiring the operating parameters of the motor in real time, specifically including: acquiring the d-axis current, q-axis current, electrical angle parameters and motor speed of the motor in real time based on a preset acquisition device.
可选地,最终估测值的计算公式为:Optionally, the formula for calculating the final estimated value is:
Figure PCTCN2022138178-appb-000008
Figure PCTCN2022138178-appb-000008
其中,
Figure PCTCN2022138178-appb-000009
表示转矩估测模型的输出,f(x n)表示Elman神经网络模型的输出,E(T)表示转矩数学模型的输出,α为权重参数,β为偏置参数,α和β在转矩估测模型训练过程中训练得到。
in,
Figure PCTCN2022138178-appb-000009
Represents the output of the torque estimation model, f(x n ) represents the output of the Elman neural network model, E(T) represents the output of the torque mathematical model, α is the weight parameter, β is the bias parameter, α and β are in rotation Obtained during the training process of the moment estimation model.
可选地,其还包括训练模块,用于执行预先训练转矩估测模型的操作,具体包括:构建待训练的转矩估测模型,权重参数和偏置参数初始 设定为默认值;获取训练样本输入参数以及与训练样本输入参数对应的实际转矩值;对训练样本输入参数进行特征工程,得到样本特征向量;将样本特征向量输入至转矩估测模型,得到样本转矩估测值;基于预先构建的损失函数、样本转矩估测值和实际转矩值反向传播更新转矩估测模型;重复执行上述训练过程直至转矩估测模型达到预设精度或迭代次数达到预设次数时为止。Optionally, it also includes a training module, which is used to perform the operation of pre-training the torque estimation model, specifically including: constructing the torque estimation model to be trained, and initially setting the weight parameters and bias parameters to default values; obtaining The training sample input parameters and the actual torque value corresponding to the training sample input parameters; perform feature engineering on the training sample input parameters to obtain the sample feature vector; input the sample feature vector to the torque estimation model to obtain the sample torque estimation value ;Update the torque estimation model based on the pre-built loss function, sample torque estimation value and actual torque value backpropagation; repeat the above training process until the torque estimation model reaches the preset accuracy or the number of iterations reaches the preset up to the number of times.
可选地,估测模块32执行得到最终转矩估测值的操作之后,还用于:在当前运行的控制系统为转矩控制系统时,根据最终转矩估测值对电机转矩进行闭环控制。Optionally, after the estimation module 32 executes the operation of obtaining the final torque estimation value, it is also used for: when the currently running control system is a torque control system, perform a closed-loop operation on the motor torque according to the final torque estimation value control.
可选地,估测模块32执行根据最终转矩估测值对电机转矩进行闭环控制的操作,具体包括:获取计算最终转矩估测值所消耗的计算时间和控制系统运行所消耗的处理时间;若当前运行设备的处理器为单核处理器,则将电机控制周期设定为计算时间和处理时间之和,并按照电机控制周期,以电机控制周期内获取的最终转矩估测值对电机转矩进行闭环控制;若当前运行设备的处理器为多核处理器,则将电机控制周期设定为计算时间和处理时间中的较大值,并按照电机控制周期,以电机控制周期内获取的最终转矩估测值对电机转矩进行闭环控制。Optionally, the estimation module 32 executes the operation of performing closed-loop control on the motor torque according to the final torque estimation value, specifically including: obtaining the calculation time consumed by calculating the final torque estimation value and the processing consumed by the control system operation time; if the processor of the currently running device is a single-core processor, set the motor control cycle to the sum of the calculation time and processing time, and according to the motor control cycle, use the final torque estimate obtained in the motor control cycle Perform closed-loop control on the motor torque; if the processor of the currently running device is a multi-core processor, set the motor control cycle to the larger value of the calculation time and processing time, and according to the motor control cycle, take the motor control cycle The obtained final torque estimate performs closed-loop control of the motor torque.
可选地,估测模块32执行得到最终转矩估测值的操作之后,还用于:在当前运行的控制系统为非转矩控制系统时,将最终转矩估测值作为观测数据输出。Optionally, after the estimation module 32 executes the operation of obtaining the final torque estimation value, it is further configured to: when the currently running control system is a non-torque control system, output the final torque estimation value as observation data.
关于上述实施例永磁同步电机的转矩估测装置中各模块实现技术方案的其他细节,可参见上述实施例中的永磁同步电机的转矩估测方法中的描述,此处不再赘述。For other details of the implementation of the technical solution of each module in the torque estimation device of the permanent magnet synchronous motor in the above embodiment, please refer to the description in the torque estimation method of the permanent magnet synchronous motor in the above embodiment, and will not repeat them here .
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.
请参阅图4,图4为本发明实施例的计算机设备的结构示意图。如 图4所示,该计算机设备60包括处理器61及和处理器61耦接的存储器62,存储器32中存储有程序指令,程序指令被处理器61执行时,使得处理器61执行上述任一实施例所述的永磁同步电机的转矩估测方法的步骤。Please refer to FIG. 4 , which is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in FIG. 4, the computer device 60 includes a processor 61 and a memory 62 coupled to the processor 61. Program instructions are stored in the memory 32. When the program instructions are executed by the processor 61, the processor 61 performs any of the above-mentioned operations. The steps of the method for estimating the torque of the permanent magnet synchronous motor described in the embodiment.
其中,处理器61还可以称为CPU(Central Processing Unit,中央处理单元)。处理器61可能是一种集成电路芯片,具有信号的处理能力。处理器61还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor 61 may also be called a CPU (Central Processing Unit, central processing unit). The processor 61 may be an integrated circuit chip with signal processing capabilities. The processor 61 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components . A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
参阅图5,图5为本发明实施例的存储介质的结构示意图。本发明实施例的存储介质存储有能够实现上述所有方法的程序指令71,其中,该程序指令71可以以软件产品的形式存储在上述存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等计算机设备设备。Referring to FIG. 5 , FIG. 5 is a schematic structural diagram of a storage medium according to an embodiment of the present invention. The storage medium in the embodiment of the present invention stores program instructions 71 capable of realizing all the above-mentioned methods, wherein the program instructions 71 can be stored in the above-mentioned storage medium in the form of software products, including several instructions to make a computer device (which can It is a personal computer, a server, or a network device, etc.) or a processor (processor) that executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. , or computer equipment such as computers, servers, mobile phones, and tablets.
在本申请所提供的几个实施例中,应该理解到,所揭露的计算机设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed computer equipment, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集 成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。以上仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. The above is only the implementation mode of this application, and does not limit the scope of patents of this application. Any equivalent structure or equivalent process conversion made by using the contents of this application specification and drawings, or directly or indirectly used in other related technical fields, All are included in the scope of patent protection of the present application in the same way.

Claims (10)

  1. 一种永磁同步电机的转矩估测方法,其特征在于,包括:A method for estimating torque of a permanent magnet synchronous motor, characterized in that it comprises:
    实时获取电机运行参数;Real-time acquisition of motor operating parameters;
    将所述电机运行参数输入至预先训练好的转矩估测模型,得到最终转矩估测值,所述转矩估测模型包括Elman神经网络模型和电机转矩数学估测模型,所述Elman神经网络模型根据所述电机运行参数预测得到第一转矩估测值,所述电机转矩数学估测模型根据所述电机运行参数预测得到第二转矩估测值,所述第一转矩估测值和所述第二转矩估测值按权重参数和偏置参数计算得到所述最终转矩估测值,所述权重参数和偏置参数在训练所述转矩估测模型时训练得到。Input the motor operating parameters into the pre-trained torque estimation model to obtain the final torque estimation value. The torque estimation model includes an Elman neural network model and a motor torque mathematical estimation model. The Elman The neural network model predicts and obtains a first torque estimated value according to the motor operating parameter, and the motor torque mathematical estimation model obtains a second torque estimated value according to the motor operating parameter prediction, and the first torque The estimated value and the second torque estimated value are calculated according to weight parameters and bias parameters to obtain the final torque estimated value, and the weight parameters and bias parameters are trained when training the torque estimation model get.
  2. 根据权利要求1所述的永磁同步电机的转矩估测方法,其特征在于,所述实时获取电机运行参数,包括:The method for estimating torque of a permanent magnet synchronous motor according to claim 1, wherein the real-time acquisition of motor operating parameters comprises:
    基于预设的采集设备实时获取电机的d轴电流、q轴电流、电角度参数和电机转速。The d-axis current, q-axis current, electrical angle parameters and motor speed of the motor are obtained in real time based on the preset acquisition device.
  3. 根据权利要求1所述的永磁同步电机的转矩估测方法,其特征在于,所述最终估测值的计算公式为:The method for estimating torque of a permanent magnet synchronous motor according to claim 1, wherein the formula for calculating the final estimated value is:
    Figure PCTCN2022138178-appb-100001
    Figure PCTCN2022138178-appb-100001
    其中,
    Figure PCTCN2022138178-appb-100002
    表示所述转矩估测模型的输出,f(x n)表示所述Elman神经网络模型的输出,E(T)表示所述转矩数学模型的输出,α为权重参数,β为偏置参数,α和β在所述转矩估测模型训练过程中训练得到。
    in,
    Figure PCTCN2022138178-appb-100002
    Represents the output of the torque estimation model, f(x n ) represents the output of the Elman neural network model, E(T) represents the output of the torque mathematical model, α is a weight parameter, and β is a bias parameter , α and β are obtained during the training process of the torque estimation model.
  4. 根据权利要求1所述的永磁同步电机的转矩估测方法,其特征在于,预先训练所述转矩估测模型的步骤,包括:The method for estimating torque of a permanent magnet synchronous motor according to claim 1, wherein the step of pre-training the torque estimating model includes:
    构建待训练的所述转矩估测模型,所述权重参数和所述偏置参数初始设定为默认值;Constructing the torque estimation model to be trained, the weight parameter and the bias parameter are initially set to default values;
    获取训练样本输入参数以及与所述训练样本输入参数对应的实际转矩值;Obtain training sample input parameters and actual torque values corresponding to the training sample input parameters;
    对所述训练样本输入参数进行特征工程,得到样本特征向量;performing feature engineering on the training sample input parameters to obtain sample feature vectors;
    将所述样本特征向量输入至所述转矩估测模型,得到样本转矩估测 值;The sample feature vector is input to the torque estimation model to obtain a sample torque estimate;
    基于预先构建的损失函数、所述样本转矩估测值和所述实际转矩值反向传播更新所述转矩估测模型;back-propagating to update the torque estimate model based on a pre-built loss function, the sample torque estimate and the actual torque value;
    重复执行上述训练过程直至所述转矩估测模型达到预设精度或迭代次数达到预设次数时为止。The above training process is repeated until the torque estimation model reaches a preset accuracy or the number of iterations reaches a preset number.
  5. 根据权利要求1所述的永磁同步电机的转矩估测方法,其特征在于,所述得到最终转矩估测值之后,还包括:The method for estimating torque of a permanent magnet synchronous motor according to claim 1, wherein, after obtaining the final estimated torque value, further comprising:
    在当前运行的控制系统为转矩控制系统时,根据所述最终转矩估测值对电机转矩进行闭环控制。When the currently running control system is a torque control system, the motor torque is closed-loop controlled according to the final estimated torque value.
  6. 根据权利要求5所述的永磁同步电机的转矩估测方法,其特征在于,所述根据所述最终转矩估测值对电机转矩进行闭环控制,包括:The method for estimating torque of a permanent magnet synchronous motor according to claim 5, wherein the closed-loop control of the motor torque according to the final estimated torque value comprises:
    获取计算所述最终转矩估测值所消耗的计算时间和所述控制系统运行所消耗的处理时间;obtaining computation time consumed in computing the final torque estimate and processing time consumed in operation of the control system;
    若当前运行设备的处理器为单核处理器,则将电机控制周期设定为所述计算时间和所述处理时间之和,并按照所述电机控制周期,以所述电机控制周期内获取的所述最终转矩估测值对电机转矩进行闭环控制;If the processor of the currently running device is a single-core processor, set the motor control cycle as the sum of the calculation time and the processing time, and according to the motor control cycle, use the motor control cycle obtained in the motor control cycle The final torque estimate performs closed-loop control of the motor torque;
    若当前运行设备的处理器为多核处理器,则将电机控制周期设定为所述计算时间和所述处理时间中的较大值,并按照所述电机控制周期,以所述电机控制周期内获取的所述最终转矩估测值对电机转矩进行闭环控制。If the processor of the currently running device is a multi-core processor, the motor control cycle is set to the larger value of the calculation time and the processing time, and according to the motor control cycle, within the motor control cycle The acquired final torque estimate performs closed-loop control on the motor torque.
  7. 根据权利要求1所述的永磁同步电机的转矩估测方法,其特征在于,所述得到最终转矩估测值之后,还包括:The method for estimating torque of a permanent magnet synchronous motor according to claim 1, wherein, after obtaining the final estimated torque value, further comprising:
    在当前运行的控制系统为非转矩控制系统时,将所述最终转矩估测值作为观测数据输出。When the currently operating control system is a non-torque control system, the final estimated torque value is output as observation data.
  8. 一种永磁同步电机的转矩估测装置,其特征在于,包括:A torque estimation device for a permanent magnet synchronous motor, characterized in that it comprises:
    获取模块,用于实时获取电机运行参数;An acquisition module is used to acquire motor operating parameters in real time;
    估测模块,用于将所述电机运行参数输入至预先训练好的转矩估测模型,得到最终转矩估测值,所述转矩估测模型包括Elman神经网络模型和电机转矩数学估测模型,所述Elman神经网络模型根据所述电机运 行参数预测得到第一转矩估测值,所述电机转矩数学估测模型根据所述电机运行参数预测得到第二转矩估测值,所述第一转矩估测值和所述第二转矩估测值按权重参数和偏置参数计算得到所述最终转矩估测值,所述权重参数和偏置参数在训练所述转矩估测模型时训练得到。The estimation module is used to input the motor operating parameters into the pre-trained torque estimation model to obtain the final torque estimation value, and the torque estimation model includes Elman neural network model and motor torque mathematical estimation A measurement model, the Elman neural network model is predicted to obtain a first torque estimation value according to the motor operation parameter, and the motor torque mathematical estimation model is obtained according to the motor operation parameter prediction to obtain a second torque estimation value, The first estimated torque value and the second estimated torque value are calculated according to weight parameters and bias parameters to obtain the final torque estimated value, and the weight parameters and bias parameters are used to train the torque It is obtained when training the moment estimation model.
  9. 一种计算机设备,其特征在于,所述计算机设备包括处理器、与所述处理器耦接的存储器,所述存储器中存储有程序指令,所述程序指令被所述处理器执行时,使得所述处理器执行如权利要求1-7中任一项权利要求所述的永磁同步电机的转矩估测方法的步骤。A computer device, characterized in that the computer device includes a processor and a memory coupled to the processor, and program instructions are stored in the memory, and when the program instructions are executed by the processor, the The processor executes the steps of the method for estimating the torque of the permanent magnet synchronous motor according to any one of claims 1-7.
  10. 一种存储介质,其特征在于,存储有能够实现如权利要求1-7中任一项所述的永磁同步电机的转矩估测方法的程序指令。A storage medium, characterized by storing program instructions capable of realizing the torque estimation method for a permanent magnet synchronous motor according to any one of claims 1-7.
PCT/CN2022/138178 2021-12-31 2022-12-09 Torque estimation method and apparatus for permanent magnet synchronous motor, and device and storage medium WO2023124921A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111674464.7A CN116418260A (en) 2021-12-31 2021-12-31 Torque estimation method, device, equipment and storage medium of permanent magnet synchronous motor
CN202111674464.7 2021-12-31

Publications (1)

Publication Number Publication Date
WO2023124921A1 true WO2023124921A1 (en) 2023-07-06

Family

ID=86997685

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138178 WO2023124921A1 (en) 2021-12-31 2022-12-09 Torque estimation method and apparatus for permanent magnet synchronous motor, and device and storage medium

Country Status (2)

Country Link
CN (1) CN116418260A (en)
WO (1) WO2023124921A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718167A (en) * 2018-06-14 2018-10-30 同济大学 For the torque estimation method of permanent magnet synchronous motor, medium, equipment and system
CN109802611A (en) * 2019-01-21 2019-05-24 桂林电子科技大学 A kind of method for controlling torque of internal permanent magnet synchronous motor
CN110266228A (en) * 2019-07-05 2019-09-20 长安大学 Surface permanent magnetic Synchronous Machine Models forecast Control Algorithm based on BP neural network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718167A (en) * 2018-06-14 2018-10-30 同济大学 For the torque estimation method of permanent magnet synchronous motor, medium, equipment and system
CN109802611A (en) * 2019-01-21 2019-05-24 桂林电子科技大学 A kind of method for controlling torque of internal permanent magnet synchronous motor
CN110266228A (en) * 2019-07-05 2019-09-20 长安大学 Surface permanent magnetic Synchronous Machine Models forecast Control Algorithm based on BP neural network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DU SHUAI-XIANG; LIANG JIA-NING; SUN TIAN-FU; PAN ZHONG-MING; LI FU-YUAN: "Research on Torque Observer of Permanent Magnet Synchronous Motor Based on Model Integration", 2021 24TH INTERNATIONAL CONFERENCE ON ELECTRICAL MACHINES AND SYSTEMS (ICEMS), KIEE & EMECS, 31 October 2021 (2021-10-31), pages 576 - 581, XP034051186, DOI: 10.23919/ICEMS52562.2021.9634435 *

Also Published As

Publication number Publication date
CN116418260A (en) 2023-07-11

Similar Documents

Publication Publication Date Title
JP7090734B2 (en) Control system, control method and storage medium
CN108718167B (en) Torque estimation method, medium, device and system for permanent magnet synchronous motor
CN107395083A (en) PMLSM servo-control system Position And Velocity methods of estimation and device
WO2023124893A1 (en) Torque estimation method and apparatus based on neural network, and device and storage medium
CN111474481A (en) Battery SOC estimation method and device based on extended Kalman filtering algorithm
CN110039537B (en) Online self-learning multi-joint motion planning method based on neural network
Verma et al. Neural speed–torque estimator for induction motors in the presence of measurement noise
Brescia et al. Automated parameter identification of spmsms based on two steady states using cloud computing resources
CN113224991B (en) Method, system, terminal and readable storage medium for identifying inductance of synchronous reluctance motor based on unscented Kalman filtering
CN117013902B (en) Motor inductance parameter calculation method, device and system, motor and power equipment
CN112564557B (en) Control method, device and equipment of permanent magnet synchronous motor and storage medium
WO2023124921A1 (en) Torque estimation method and apparatus for permanent magnet synchronous motor, and device and storage medium
Chaouch et al. Optimized torque control via backstepping using genetic algorithm of induction motor
Xue-Jun et al. Mathematical theories and applications for nonlinear control systems
CN109270455B (en) Induction motor state monitoring method based on weak-sensitivity ensemble Kalman filtering
CN114372036B (en) State estimation method, device, equipment and computer storage medium for power system
CN107957685B (en) Neurodynamics method for solving noise-containing time-varying problem
CN115932594A (en) Multi-innovation least square online parameter identification method for power battery
CN114944799A (en) Multi-parameter online synchronous identification method for permanent magnet motor
CN112152529B (en) Maximum thrust control method and system for permanent magnet linear motor
CN114614714A (en) Method for stably controlling high-speed domain of speed-sensorless induction motor
CN114679098A (en) Feedforward compensation method and device for permanent magnet synchronous motor, computer equipment and medium
Wójcik et al. Application of iterative learning control for ripple torque compensation in PMSM drive
CN113726244B (en) Rotor flux linkage real-time estimation method and system based on Adaline neural network
CN116885993B (en) Servo motor parameter identification method and system integrating cloud end and edge end

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914176

Country of ref document: EP

Kind code of ref document: A1