NEURAL-NETWORK BASED MTPA, FLUX-WEAKENING AND MTPV FOR IPM MOTOR CONTROL AND DRIVES

Information

  • Patent Application
  • 20230032672
  • Publication Number
    20230032672
  • Date Filed
    August 02, 2022
    a year ago
  • Date Published
    February 02, 2023
    a year ago
Abstract
A method for determining MTPA, flux-weakening, and MTPV operating points over the full speed range of an IPM motor for the most efficient torque control of the motor using a neural network is provided. The neural network is trained using a cloud-based neural network training algorithm. A special technique is developed to generate neural network training data, that is particularly suitable and favorable, to develop a high-performance neural network-based IPM torque control system, and the impact of variable motor parameters is embedded into the neural network system development and training. The provided method can achieve a fast and accurate current reference generation with a simple neural network structure, for optimal torque control of an IPM motor. The method can handle the MTPA, MTPV, and flux-weakening operation considering physical motor constraints.
Description
BACKGROUND

Permanent-magnet synchronous machines (PMSM) are widely used in industry because of their benefits such as high efficiency, high power density, and high torque density. Interior permanent magnet (IPM) synchronous machine is one type of PMSM which is suitable for the operation over a wide speed range due to their magnet location design and relative high saliency. Especially for vehicular propulsion systems, IPM drives are able to meet the requirements for two operation modes, constant torque operation under base speed and field-weakening operation in higher speed range. For the IPM motor drive control, these two operations are restricted by the machine torque limit, speed limit, and inverter voltage and current ratings. To have a good performance in the constant torque operation region, optimal and highly efficient control strategies, such as the maximum-torque-per-ampere (MTPA) approach, are usually adopted. The MTPA technique generates an optimum dq-axis current combination with the minimum stator current to achieve the desired torque, which reduces the motor copper loss. When the speed increases into the high-speed range, the stator voltage will reach the rated value and the flux-weakening (FW) control is adopted. The IPM motor drive will then work at the voltage limit to generate the maximum available torque. If the center point of the voltage limit is within the current limit circle, the maximum-torque-per-volt (MTPV) rule is required in the flux-weakening region as the speed continues to increase.


There are several challenges to achieve the optimal and high-efficient control for the motor operation over its full speed range in MTPA, flux-weakening, and MTPV regions. 1) Nonlinear optimization problems are complex to solve considering voltage, flux and current constraints. 2) These constraints are affected by the DC link voltage fluctuation and speed changes. 3) The IPM motor parameters are nonlinear and vary with stator currents due to the saturation and cross-magnetization effects.


SUMMARY

A method for determining MTPA, flux-weakening, and MTPV operating points over the full speed range of an IPM motor for the most efficient torque control of the motor using a neural network is provided. The neural network is trained using a cloud-based neural network training algorithm. A special technique is developed to generate neural network training data, that is particularly suitable and favorable, to develop a high-performance neural network-based IPM torque control system, and the impact of variable motor parameters is embedded into the neural network system development and training. The provided method can achieve a fast and accurate current reference generation with a simple neural network structure, for optimal torque control of an IPM motor. The method can handle the MTPA, MTPV, and flux-weakening operation considering physical motor constraints.


In an embodiment, a method for controlling an interior permanent magnet (IPM) motor is provided. The method includes: receiving a request for torque from a computing device; using a neural network to calculate a set of reference currents for the requested torque; and applying the set of reference currents to the IPM motor.


Embodiments may include some or all of the following features. The set of reference currents may include a d-reference current and a q-reference current. The IPM motor may be part of an electric vehicle and request for torque may be received from a control component of the electric vehicle. The method may further include: calculating a flux linkage limit for the IPM motor; and using the neural network to calculate the set of reference currents for the requested torque and the calculated flux linkage. The method may further include: determining an inverter DC voltage of the IPM motor; determining a current speed of the IPM motor; and calculating the flux linkage limit based on the inverter DC voltage and the current speed. The method may further include: collecting training data for the neural network in a cloud-based computing environment; and training the neural network using the training data in the cloud-based computing environment. Collecting the training data may include collecting sufficient training data to cover a plurality of different IPM motor operations over a full speed range of the IPM motor. Collecting the training data may include collecting a plurality of input tuples using the IPM motor, wherein each tuple comprises a torque value, a flux input limit, and optimal d-current and q-current values for the torque value and the flux input limit. The training data may be collected in a random manner.


In an embodiment, a method for training a neural network to generate optimal reference currents for an IPM motor. The method includes: determining optimal reference currents for an IPM motor for a plurality of desired torque values and a plurality of flux input limits by a computing device; generating training data for the IPM motor, wherein the training data comprises a plurality of tuples and each tuple comprises a torque value of the desired torque values, a flux input limit of the plurality of flux input limits, and optimal reference currents determined for the torque value and the flux input limit by the computing device; and training a first neural network using the generated training data by the computing device.


Embodiments may include some or all of the following features. The first neural network may be trained in a cloud-computing environment. The method may further include: receiving a request for torque; passing the requested torque through a torque limiter to ensure that the requested torque is below a maximum allowable torque; after passing the requested torque through the torque limiter, using the first neural network to calculate a set of optimal reference currents for the requested torque; and applying the set of reference currents to the IPM motor. The torque limiter may include a second neural network. The IPM motor may be part of an electric vehicle and request for torque is received from a control component of the electric vehicle. The method may further include: calculating a flux linkage limit for the IPM motor; and using the neural network to calculate the set of reference currents for the requested torque and the calculated flux linkage limit. The method may further include: determining an inverter DC voltage of the IPM motor; determining a current speed of the IPM motor; and calculating the flux linkage limit based on the inverter DC voltage and the current speed.


In an embodiment, an electric vehicle is provided. The vehicle includes: an IPM motor; a neutral network; and a control system adapted to: receive a request for torque; use the neural network to calculate a set of reference currents for the requested torque; and apply the set of reference currents to the IPM motor.


Embodiments may include some or all of the following features. The set of reference currents may include a d-reference current and a q-reference current. The control system may be adapted to: calculate a flux linkage limit for the IPM motor; and use the neural network to calculate the set of reference currents for the requested torque and the calculated flux linkage limit. The control system may be adapted to: determine an inverter DC voltage of the IPM motor; determine a current speed of the IPM motor; and calculate the flux linkage limit based on the inverter DC voltage and the current speed.


This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.





BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing summary, as well as the following detailed description of illustrative embodiments, is better understood when read in conjunction with the appended drawings. For the purpose of illustrating the embodiments, there is shown in the drawings example constructions of the embodiments; however, the embodiments are not limited to the specific methods and instrumentalities disclosed. In the drawings:



FIG. 1 is an illustration of an example IPM motor;



FIG. 2 is a graph of torque to reference currents considering both current and flux limits;



FIG. 3 is graphs illustrating the relation of d-axis and q-axis flux linkages with d-axis and q-axis currents;



FIG. 4 is graphs illustrating the relation of optimal d-axis and q-axis currents with desired torque and flux linkage limits;



FIG. 5 is an illustration of an example neural network architecture;



FIG. 6 is an illustration of an example neural network, IPM motor drive and control system;



FIG. 7 is an illustration of an example method for generating training data;



FIG. 8 is an illustration of an example method for training a neural network;



FIGS. 9A and 9B are illustrations of example methods for cloud-based data collection and cloud-based neural network training;



FIG. 10 is an illustration of an implementation of a method for training a neural network to generate optimal reference currents for an IPM motor;



FIG. 11 is an operational flow of an implementation of a method for generating optimal reference currents for an IPM motor using a neural network; and



FIG. 12 shows an exemplary computing environment in which example embodiments and aspects may be implemented.





DETAILED DESCRIPTION
1 Torque Control of IPM Motor

Torque control of an IPM motor is usually achieved through the configuration 100 shown in FIG. 1. Basically, a reference torque command T*em is first converted into motor d- and q-axis current references, i*d and i*q by a Torque to Current converter 101. Then, a current controller 102 regulates the motor stator currents, id and iq, to follow the reference currents. The current controller 102 outputs d- and q-axis control voltages, v*d and v*q, which control the operation of a IPM motor 104 normally via a space vector pulse-width modulation (SVPWM) scheme 103.


1.1. IPM Model in DQ Reference Frame

Based on the Park-Clarke transformation, the stator dq flux linkages of an IPM motor are described by:










[




λ
d






λ
q




]

=



[




L
d



0




0



L
q




]

[




i
d






i
q




]

+

[




λ
pm





0



]






(
1
)







where λd, λq, Ld, Lq, id and iq are stator d- and q-axis flux linkages, inductances, and currents, and λpm is the flux linkage of the rotor permanent-magnet. The stator dq voltage equation is:










[




v
d






v
q




]

=


R
[




i
d






i
q




]

+


d
dt

[




λ
d






λ
q




]

+


ω
e

[




-

λ
q







λ
d




]






(
2
)







where νd and νq are d- and q-axis stator voltages, and ωe is the motor electrical speed. The steady-state voltage equation is:





νd=Rid−ωeλq=Rid−ωeLqiq  (3a)





νq=Rigeλd=Ride(Ldidpm)  (3b)


The electromagnetic torque of the motor can be written as:










T
em

=



p
2



(



λ
d



i
q


-


λ
q



i
d



)


=



p
2

[


λ
pm

+


(


L
d

-

L
q


)



i
d



]



i
q







(
4
)







1.2. Torque Control of an IPM Motor

According to (4), for a given torque command T*em, there are multiple current vectors that can generate the specified torque. Hence, in order to get the most efficient current references and, at the same time, assure the motor operation within its physical constraints, the conversion from a torque reference to the current reference should be obtained by considering the following equations:











Minimize





i
d
2

+

i
q
2





as


much


as


possible





(

5

a

)















Subject


to
:

T
em
*


=


P
2



(



λ
d



i
q


-


λ
q



i
d



)







(

5

b

)

















i
d
2

+

i
q
2





i

m

a

x







(

5

c

)















v
d
2

+

v
q
2



=






[


ω
e

(



L
d



i
d


+

λ
pm


)

]

2

+


(


ω
e



L
q



i
q


)

2






v

m

a

x




or






(



L
d



i
d


+

λ
pm


)

2

+


(


L
q



i
q


)

2







V

d

c




2


ω
e





=

λ


l

i

m

,

ω
e








(

5

d

)







where (5a) means that the amplitude of the current reference should be as small as possible; (5b) stands for that the actual motor torque should equal the command torque; (5c) requires that the amplitude of the current reference should not exceed the rated current limit of the motor and inverter; (5d) means that the current reference should not require a voltage higher than the maximum voltage νmax=Vdc/√{square root over (2)} that the inverter can provide under the SVPWM, or that the current reference should not require a flux linkage higher than the maximum flux linkage λlim,ωe=Vdc/√{square root over (2)} that can be provided at speed ωe. Within the stator d- and q-axis current plane, i.e., id and iq plane (FIG. 2), the current limit is shown in the graph 200 of FIG. 2 by one circle and the flux linkage limit is shown by multiple ellipses that shrink to the center point






X
=

(


-


λ
pm


L
d



,
0

)





as the motor speed increases from 0 rad/sec to the infinity. Depending on the motor operating speed, the solution of the current reference from is illustrated in the graph 200 by the OA (MTPA), AB (flux weakening I), BC (flux weakening II), and CX (MTPV) segments.


1.3. The Nonlinearity of Motor Parameters

One of the major challenges for the IPM motor control is the machine parameter variations as shown in the graphs 301 and 303 of FIG. 3. With the iron saturation and cross-saturation, the dq-axis flux-linkages are nonlinear and can be described as functions of stator currents: λd(id, iq) and λq (id, iq). To improve the accuracy of converting the torque reference to the current references, the parameter variation and nonlinear properties of the motor need to be properly addressed.


1.4. Conventional LUT Methods to Determine MTPA, Flux-Weakening and MTPV

As discussed above, there have been several conventional methods to determine the MTPA, flux-weakening, and MTPV operating points for an IPM motor, among which the LUT approach is a widely used technique in motor drives and EV (electric vehicle) industry. The basic idea of the approach is to generate two lookup tables based on motor flux-linage or parameter LUTs:: 1) i*d=fd (Tem*, λlim,ωe) and 2) is i*q=fq (Tem*, λlim,ωe) as illustrated in the graphs 401 and 403 of FIG. 4. The generated LUTs will give the optimal d- and q-axis current references for the desired torque command under a given flux linkage limit at a motor operating speed and inverter DC voltage.


One advantage is that the motor d- and q-axis flux linkages, λd(td, iq) and λq(id, iq), can be embedded in the LUTs. Since the LUTs are generated offline, this method also has good stability and dynamic performance and does not have a high computational burden compared to the online-based methods. However, the disadvantage is the requirement for a large memory size to store the lookup tables. Also, the LUT size and interpolation methods will affect the accuracy in determining the d- and q-axis reference currents.


1.5 Online Methods of Determined MTPA, Flux-Weakening and MTPV

Online methods have also been developed recently by many researchers. An online method basically uses an online algorithm to determine or calculate optimal dq current based on a demanded torque. In a typical online method, premade parameter LUTs are still required to provide motor flux linkage or inductance information at different motor operating currents for the online algorithms. From this perspective, the advantage of the online method over the LUT methods shown do not dominate and the online method is still unable to handle the motor part-to-part variation and parameter variation over time. The inputs of an online method could contain 1) motor torque command, 2) maximum flux linkage limit, 3) motor parameters provided by the parameter LUTs, and 4) dq current at the previous time step that is needed for solving the online optimization problem iteratively over time. The input of the maximum flux linkage limit is not needed for online methods that focus on the MTPA only and is required for an online method that addresses both MTPA and flux weakening.


Overall, the mathematical foundation of an online method is the optimization problem shown in (5), which requires solving the optimization problem with constraints online. If the constraint (5d) is not considered, the corresponding online method focuses on MTPA only; otherwise, the online method addresses both MTPA and flux weakening. For a commanded torque, the optimal reference dq current is solved iteratively online over time based on the equation as illustrated below:






i*
dq(k)=idq(k−1)+Δidq(k)  (6)


where i*dq(k) represents the reference current generated at the present time step, idq(k−1) stands for the measured motor dq current or reference dq current at the previous time step, and Δidq(k) is the current adjustment term that is obtained during each iterative process of solving the optimization problem (5) online. However, solving the optimization problem online is not easy. Especially when both MTPA and flux weakening are considered, the optimization problem would involve MTPA, flux-weakening region I, flux-weakening region II, and MTPV, in which each portion needs to be treated specifically and is slightly different from (5).


2 Proposed Neural Network Based MTPA, Flux-Weakening, and MTPV Control

The designed neural network structure is a feedforward neural network as shown in the network 500 of FIG. 5. Other types of neural networks may be supported. The neural network 500 consists of an input layer 510, hidden layers 515 (i.e. 515A and 515B) 515C), and an output layer 520. There are two inputs at the input layer 510, one is the desired torque command T*em the other is the flux linkage limit λlim which is calculated based on the inverter DC voltage and the motor speed. At the output layer 520, the two outputs are the dq reference currents i*d and i*q. The selection of the number of hidden layers 515 and the number of neurons in each hidden layer 515 may be set by a user or administrator.


In the first hidden layer, the output of the sth neuron can be expressed as:






n
s
L1
=w
s,T
L1
·x
T
+w
s,λ
L1
·x
λ
+b
s
L1
∀s  (7)


where xT and xλ are the desired torque command and the flux linkage limit after preprocessing, ws,TL1 and ws,λL1 are the input weights corresponding to xT and xλ, and bsL1 is the bias for the sth neuron in the first hidden layer 515A. Then, the hyperbolic tangent sigmoid transfer function is applied for each neuron.


In the second hidden layer 515B, the pth neuron output is:






m
p
L2s=1Nswp,sL2asL1+bpL2 ∀s, ∀p  (8)


where Ns is the number of neurons of the first hidden layer, wp,sL2 and bpL2 are the weights and bias for the pth neuron of the second hidden layer 515B. Similarly, the sigmoid function is adopted for the neuron outputs mpL2 of the second hidden layer 515B.


Then, the normalized reference currents yId and yIq are generated at the output layer 520:






y
Id
=ΣN
p=1
N

p

w
Id,p
L3
a
p
L2
+b
Id
L3  (9a)






y
Iq
=ΣN
p=1
N

p

w
Iq,p
L3
a
p
L2
+b
Iq
L3  (9b)


where Np is the number of neurons of the second hidden layer, wIq,pL3, bIdL3 and bIqL3 are the weights and the bias of the output layer 520.


The neural network inputs and outputs are related to the physical variables of torque, flux linkage, and stator d- and q-axis currents via pre- and post-processing by:










x

T
.
i


=


2
·



T

em
,
i

*

-

min

(

T
em
*

)




max

(

T
em
*

)

-

min

(

T
em
*

)




-
1





(

10

a

)













x

λ
,
i


=


2
·



λ


l

i

m

,
i


-

min

(

λ

l

i

m


)




max

(

λ

l

i

m


)

-

min

(

λ

l

i

m


)




-
1





(

10

b

)













i

sd
,
i

*

=




(


y

Id
.
i


+
1

)



(


max

(

i
sd
*

)

-

min

(

i
sd
*

)


)


2

+

min

(

i
sd
*

)






(

10

c

)













i

sq
,
i

*

=




(


y

iq
.
i


+
1

)



(


max

(

i
sq
*

)

-

min

(

i
sq
*

)


)


2

+

min

(

i
sq
*

)






(

10

d

)







where T*em,i, λlim,i, i*d,i and i*q are the ith sample of the desired torque, flux linkage limit, d-axis current reference, and q-axis current reference, respectively; T*em, λlim, i*d, and i*q represent the training data set of all the desired torques, flux linkage limits, d-axis current references, and q-axis current references, respectively.


The neural network in the overall IPM motor control system 600 is shown in FIG. 6. The desired torque first passes through a torque limiter block 601 to ensure that the torque reference presented to the neural network 603 is below the maximum allowable torque command for a given flux-linkage limit. The torque limiter block 601 may be implemented through a small neural network that is trained based on the maximum allowable torque data at the maximum current circle and the MTPV trajectory with respect to different flux limit lines (FIG. 2).


The neural network 603 converts the torque reference to d- and q-axis current references that are presented to a motor current controller 605. The current controller 605 outputs d- and q-axis control voltages to control the IPM motor 606 based on the SVPWM 607. To ensure the amplitude of the control voltage generated by the current controller 605 does not exceed the six-step voltage, a feedback flux weakening controller 609 is adopted in FIG. 6. The neural network needs to be trained. The objective is that after the training, the neural network can give the optimal d- and q-axis current references, in MTPA, flux-weakening I and II, and MTPV modes, for a desired torque demand and flux linkage limit under a specified motor speed and inverter DC voltage. To assure lifetime adaptivity and learning capabilities of both neural networks, a cloud computing framework is proposed to support efficient and reliable lifetime updates of both neural networks, based on routine offline training over the cloud computing platform. Details about the neural network training are shown in the following section.


3 Training Data Generation and Neural Network Training
3.1. Generation of Training Data

The training data for the neural network consists of a large number of input-output pairs [(T*em, λlim)→(i*d, i*q)]. The training data should be large and detailed enough to assure accurate, optimal, and efficient IPM operation under MTPA, flux-weakening, and MTPV modes. The data set for the neural network training consists of a large number of input-output pairs. Each pair contains two input data of desired torque command T*em and flux linkage limit λlim, and two output data of optimal d- and q-axis reference currents i*d and i*q. The data set should be large and detailed enough to assure accurate, optimal, and efficient IPM operation under MTPA, flux-weakening, and MTPV modes.



FIG. 7 shows a flowchart of a method 700 to generate the training data. First, measured data of d- and q-axis flux leakages vs. d- and q-axis currents are loaded into a memory (701). Then, the training data generation follows these steps: 1) (703) generating (i*d, i*q) grid points across −Irated and +Irated range over the i*d↔i*q 2D plane, 2) (705) for each (i*d, i*q) grid point, obtaining d- and q-axis flux leakages from λd(id, iq) and λd(id, iq) LUTs and then calculating torque T*em and flux linkage limit λlim,ω, 3) (707) finding MTPA, MTPV and current limited paths as illustrated in the graph 200 of FIG. 2 based on the data generated at Step 2, 4) (709) getting the training data corresponding to all the input-output pairs [(T*em, λlim)→(i*d, i*q)] along the MTPA path, current constraint path, and MTPV path and storing all the input-output pairs into the data storage, 5) (711) getting the training data corresponding to all the input-output pairs [(T*em, λlim)→(i*d, i*q)] inside the MTPA path, current constraint path, and MTPA path and storing all the input-output pairs into the data storage, 6) (713) extending the data generation along the MTPA path to the full flux range, and 7) (715) extending the data generation along the MTPV path to the full torque reference range. The need for Step 6 is due to the fact that the MTPA solution, i*d and i*q or a desired torque T*em under λlim,ω1 condition, as shown in FIG. 2, is also the MTPA solution of the same desired torque T*em under any other has a value larger than that of λlim,ω1. Thus, those input-output pairs [(T*em, λlim)→(i*d, i*q)] over the MTPA path should be included in the training data set (717). Similarly, the need for Step 7 is due to the fact that the MTPV solution, i*d and i*q, under λlim,ω3 condition for a desired torque T*em, as shown in FIG. 2, is also the MTPV solution of any other desired torque T*em,i that has a value larger than that of T*em. Therefore, those input-output pairs over the MTPV path should also be included in the training data set (719).


Some other important characteristics about the training data generated using the proposed methods include: i) unlike the traditional LUT approaches, the training data can be stored in the data storage in a random manner instead of a well-structured style that is typically needed in order to search an i*d and i*q solution from the LUTs efficiently; ii) the motor parameter variation is embedded into the training data set because all the i*d and i*q solutions are obtained and calculated through actual measured data of λd(id, iq) and λd(id, iq) LUTs that contain the motor current impact on the flux linkages; iii) a large amount of training data can be added into the data storage conveniently to enable information equity and sufficiency to benefit the training and the trained neural network to handle the extremely nonlinear portions between the input data (T*em, λlim,ω) and output data (i*d, i*q) than other methods because the neural network has the ability to extract information through training from the data that is collected and stored irregularly and randomly, especially for the motor characteristics in these nonlinear positions. This will particularly benefit the online-based data collection and storage of the motor characteristics in these nonlinear portions for the cloud-based training of the neural network described herein. However, for a LUT approach, for example, the data must be collected and stored regularly because this is typically required for the design of an efficient interpolation algorithm.


3.2. Neural Network Training

The performance function used for training the neural network is:









C
=


1
N






k
=
1

N




e


dq

(
k
)







(

11

a

)















e


dq

(
k
)

=




[



i

d

_

NN

*

(
k
)

-


i
d
*

(
k
)


]

2

+


[



i

q

_

NN

*

(
k
)

-


i
q
*

(
k
)


]

2







(

11

b

)







where N is the total number of samples of the training data set, i*d(k) and i*q(k) are the target d- and q-axis current references of the kth training sample, and i*d_NN(k) and i*q_NN(k) are the corresponding neural network outputs.


The neural network is trained to minimize the performance function (11). The LMBP algorithm may be used to update the weights and biases at each training iteration. The LMBP algorithm is a variant of gradient descent which provides a nice compromise between the speed of Newton's method and the guaranteed convergence of the steepest descent and has proven to be one of the most powerful training algorithms for neural networks. In order to use the LMBP for training the neural network efficiently, the performance function is rewritten as:









C
=




1
N






k
=
1

N




e
dq



(
k
)







define



V

(
k
)


=


(



e
dq



(
k
)

)




C

=


1
N






k
=
1

N



(

V
(
k
)

)

2








(
12
)







Then, the gradient ∂C/∂{right arrow over (W)} can be written in a matrix as:













C





w




=








k
=
1

N



[

V
(
k
)

]

2







w




=





k
=
1

N


2


V
(
k
)







V
(
k
)






w






=

2



J

(

w


)

T



V









(
13
)







where the Jacobian matrix J({right arrow over (w)}) is:











J

(

w


)

=

[








V
(
1
)





w
1













V
(
1
)





w
M






















V
(
N
)





w
1












V
(
N
)





w
M






]


,


V


=

[




V
(
1
)











V
(
N
)




]






(
14
)







Therefore, the weight update is expressed by:





Δ{right arrow over (w)}=−[J({right arrow over (w)})TJ({right arrow over (w)})+μI]−1J({right arrow over (w)})T{right arrow over (V)}  (15a)






{right arrow over (w)}
update
={right arrow over (w)}+Δ{right arrow over (w)}  (15b)


where μ is the damping parameter.


The training procedure for each epoch is illustrated in the diagram 800 of FIG. 8. The batch training method is adopted because of its fast convergence performance with smaller errors than other methods. For each iteration, all the stored data are used to generate the errors and Jacobian matrix. Then, the gradients are computed to update the weights and biases. The training stops when the performance function meets the requirement.


4 Data Collection and Cloud-Based Training

The proposed neural network will be first trained offline at the factory production stage based on the data of a sample IPM of the same motor type and then will be continuously trained offline over the cloud at the operating stage based on the data collected in real-life conditions for each individual IPM. In other words, there is no training that will be performed at the onboard computing facility of an EV.


4.1 Data Collection and Cloud-Based Training

The collection of the training data is different for the neural network development at the production and operation stages. At the production stage, the training data is collected from a sample test motor of the same motor type based on a set of experiments. During the experiments, the test motor is put on a dyno system, where the motor operating speed and driving torque can be adjusted and measurements of flux-current relations can be obtained directly or indirectly.


At the operation stage of each individual IPM motor, the training data is collected based on the real-time measurement of the motor during the online operation of an EV. The first task before the online data collection is to divide the motor operation ranges into multiple lattices in terms of motor d- and q-axis currents from −Irated to +Irated. Each lattice will have a flag indicator to indicate whether there are sufficient data collected corresponding to that lattice, such as 10 data samples for a lattice. This is to ensure the appropriate data equity for the neural network training.


In general, the data collection process follows the following strategies. (i) Real-time measured data will be collected when the motor is in a steady-state condition and with no or minimum noise impact. (ii) Corresponding to each lattice discussed above, measured data will be saved into low-cost storage only when there is not enough data collected for a lattice. For example, when there are 10 data samples that have been collected and saved in the storage corresponding to a lattice, any new measured data will not be collected and saved into the storage for that lattice. (iii) After enough data are collected and saved into the storage corresponding to all the lattices, the online data collection process stops and the data is ready to be transmitted to the cloud for the neural network training over the cloud platform. (iv) After all the data is sent to and received by the cloud, the collection process is reinitialized, and the system is ready for the next-round data collection process.



FIG. 9A shows the flowchart of the online data collection process 900 at the operation stage of each individual IPM motor. It is necessary to point out that the data collection and storage process does not follow a well-defined structure that is typically needed by the data search algorithm of a LUT approach. In other words, data can be collected and stored in highly random order, which cannot be applied to other methods. In addition, data will be collected and transmitted to a remote cloud device for a time period of several weeks or months smartly based on the performance degradation evaluation of the IPM motor over the cloud.


For the routine offline training of the neural network over the cloud computing platform, it will follow the same strategy except that data needs to be collected and transmitted to a remote cloud device for the neural network training. Firstly, real-time motor operation data is collected smartly, meaning that only meaningful and valuable data is collected and stored, and data collected should cover the full operating range of the motor at the normal and critical conditions. When sufficient data is obtained, data is sent to a remote cloud computing device. Over the cloud system, a thorough evaluation of the newly obtained motor operation data will be conducted first to investigate whether there is a major deviation between the expected model performance and measured data. If the evaluation shows that there is only a minor deviation, the cloud system will not retrain and update the neural network and then send a signal to the remote EV to indicate that the data collection and transmission process can be slowed down. Otherwise, the neural network will be retrained and updated. After the training, the new neural network weights are transmitted back to the EV computer to replace the previous neural network weights. In addition, if the evaluation shows that there is a large deviation, the cloud system will send a signal to the remote EV to indicate that the data collection and transmission process needs to speed up.



FIG. 9B shows the flowchart of the process 910 for cloud-based neural network training. Such an offline learning strategy, based upon a cloud computing platform, will guarantee the safe and reliable neural network system development that cannot be achieved for an online neural network learning system, which will assure the high-performance operation of individual EV motor over its lifetime.



FIG. 10 is an operational flow of an implementation of a method 1000 for training a neural network to generate optimal reference currents for an IPM motor. The neural network may be used in place of prior art look-up tables for determining optimal reference currents for a provided torque value. The method 1000 may be implemented by a general purpose computing device such as the computing device 1200 illustrated with respect to FIG. 12 and/or a cloud-based computing environment.


At 1010, an IPM motor is received. The IPM motor may be an electric motor. The IPM motor may be intended for use in an electric vehicle such as an electric car. Other types of IPM motors may be supported.


At 1020, measured data of d- and q-axis flux leakages vs. d- and q-axis currents are obtained and then transmitted to a cloud-computing environment.


At 1030, measured data of d- and q-axis flux leakages vs. d- and q-axis currents are received by the cloud-computing system.


At 1040, optimal reference currents for the IPM motor for a plurality of torque values and a plurality of flux input limits are determined based on the measured data of d- and q-axis flux leakages vs. d- and q-axis currents. The optimal reference currents may include a d-axis reference current and a q-axis reference current. Depending on the embodiment, the optimal reference currents may be determined from one or more lookup tables associated with the IPM motor.


At 1050, training data is generated from the determined optimal reference currents. The training data may be generated by the computing device 1200 and may include a plurality of tuples. Each tuple may include a desired torque value, a measured flux input, an optimal d-axis current, and an optimal q-axis current.


At 1060, the neural network is trained using the training data. The neural network may be trained by the cloud-computing environment.


At 1070, the trained neural network is provided. The trained neural network may be provided by the cloud-computing environment to an electric vehicle. The electric vehicle may use the neural network to generate optimal reference currents for selected torque values and measured flux input limits.



FIG. 11 is an operational flow of an implementation of a method 1100 for generating optimal reference currents for an IPM motor using a neural network. The neural network may be used in place of prior art look-up tables for determining optimal reference currents for a provided torque value. The method 1100 may be implemented by a general purpose computing device such as the computing device 1200 illustrated with respect to FIG. 12, an electric vehicle, or a cloud-based computing environment.


At 1110, a neural network is received. The neural network may be received by an electric vehicle that includes an IPM motor associated with the neural network. The neural network may have been trained using a cloud-based computing environment to generate optimal reference currents for the IPM motor given a requested torque value and a current flux linkage limit measured for the IPM motor.


At 1120, a requested torque value is received. The requested torque value may be received from a navigation or control system associated with the electric vehicle.


At 1130, the flux linkage limit for the IPM motor is calculated. Depending on the embodiment, the flux linkage limit may be calculated based on an inverter DC voltage of the IMP motor and a current speed of the IPM motor.


At 1140, optimal reference currents for the IPM motor are determined using the requested torque and the calculated flux linkage. In particular, the neural network may take as an input the requested torque and calculated flux linkage limit and may output the optimal reference currents. The reference currents may include a d-reference current and a q-reference current.


At 1150, the optimal reference currents are provided to the IPM motor. The optimal reference currents are applied to the IPM motor to achieve the requested torque.



FIG. 12 shows an exemplary computing environment in which example embodiments and aspects may be implemented. The computing device environment is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality.


Numerous other general purpose or special purpose computing devices environments or configurations may be used. Examples of well-known computing devices, environments, and/or configurations that may be suitable for use include, but are not limited to, personal computers, server computers, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, network personal computers (PCs), minicomputers, mainframe computers, embedded systems, distributed computing environments that include any of the above systems or devices, and the like.


Computer-executable instructions, such as program modules, being executed by a computer may be used. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Distributed computing environments may be used where tasks are performed by remote processing devices that are linked through a communications network or other data transmission medium. In a distributed computing environment, program modules and other data may be located in both local and remote computer storage media including memory storage devices.


With reference to FIG. 12, an exemplary system for implementing aspects described herein includes a computing device, such as computing device 1200. In its most basic configuration, computing device 1200 typically includes at least one processing unit 1202 and memory 1204. Depending on the exact configuration and type of computing device, memory 1204 may be volatile (such as random access memory (RAM)), non-volatile (such as read-only memory (ROM), flash memory, etc.), or some combination of the two. This most basic configuration is illustrated in FIG. 12 by dashed line 1206.


Computing device 1200 may have additional features/functionality. For example, computing device 1200 may include additional storage (removable and/or non-removable) including, but not limited to, magnetic or optical disks or tape. Such additional storage is illustrated in FIG. 12 by removable storage 1208 and non-removable storage 1210.


Computing device 1200 typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by the device 1200 and includes both volatile and non-volatile media, removable and non-removable media.


Computer storage media include volatile and non-volatile, and removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Memory 1204, removable storage 1208, and non-removable storage 1210 are all examples of computer storage media. Computer storage media include, but are not limited to, RAM, ROM, electrically erasable program read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing device 1200. Any such computer storage media may be part of computing device 1200.


Computing device 1200 may contain communication connection(s) 1212 that allow the device to communicate with other devices. Computing device 1200 may also have input device(s) 1214 such as a keyboard, mouse, pen, voice input device, touch input device, etc. Output device(s) 1216 such as a display, speakers, printer, etc. may also be included. All these devices are well known in the art and need not be discussed at length here.


It should be understood that the various techniques described herein may be implemented in connection with hardware components or software components or, where appropriate, with a combination of both. Illustrative types of hardware components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc. The methods and apparatus of the presently disclosed subject matter, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium where, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the presently disclosed subject matter.


Although exemplary implementations may refer to utilizing aspects of the presently disclosed subject matter in the context of one or more stand-alone computer systems, the subject matter is not so limited, but rather may be implemented in connection with any computing environment, such as a network or distributed computing environment. Still further, aspects of the presently disclosed subject matter may be implemented in or across a plurality of processing chips or devices, and storage may similarly be effected across a plurality of devices. Such devices might include personal computers, network servers, and handheld devices, for example.


Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims
  • 1. A method for controlling an interior permanent magnet (IPM) motor comprising: receiving a request for torque from a computing device;using a neural network to calculate a set of reference currents for the requested torque; andapplying the set of reference currents to the IPM motor.
  • 2. The method of claim 1, wherein the set of reference currents comprise a d-reference current and a q-reference current.
  • 3. The method of claim 1, wherein the IPM motor is part of an electric vehicle and request for torque is received from a control component of the electric vehicle.
  • 4. The method of claim 1, further comprising: calculating a flux linkage limit for the IPM motor; andusing the neural network to calculate the set of reference currents for the requested torque and the calculated flux linkage.
  • 5. The method of claim 4, further comprising: determining an inverter DC voltage of the IPM motor;determining a current speed of the IPM motor; andcalculating the flux linkage limit based on the inverter DC voltage and the current speed.
  • 6. The method of claim 1, further comprising: collecting training data for the neural network in a cloud-based computing environment; andtraining the neural network using the training data in the cloud-based computing environment.
  • 7. The method of claim 6, wherein collecting the training data comprises collecting sufficient training data to cover a plurality of different IPM motor operations over a full speed range of the IPM motor.
  • 8. The method of claim 6, wherein collecting the training data comprises collecting a plurality of input tuples using the IPM motor, wherein each tuple comprises a torque value, a flux input limit, and optimal d-current and q-current values for the torque value and the flux input limit.
  • 9. The method of claim 6, wherein the training data is collected in a random manner.
  • 10. A method for training a neural network to generate optimal reference currents for an IPM motor comprising: determining optimal reference currents for an IPM motor for a plurality of desired torque values and a plurality of flux input limits by a computing device;generating training data for the IPM motor, wherein the training data comprises a plurality of tuples and each tuple comprises a torque value of the desired torque values, a flux input limit of the plurality of flux input limits, and optimal reference currents determined for the torque value and the flux input limit by the computing device; andtraining a first neural network using the generated training data by the computing device.
  • 11. The method of claim 10, wherein the first neural network is trained in a cloud-computing environment.
  • 12. The method of claim 10, further comprising: receiving a request for torque;passing the requested torque through a torque limiter to ensure that the requested torque is below a maximum allowable torque;after passing the requested torque through the torque limiter, using the first neural network to calculate a set of optimal reference currents for the requested torque; andapplying the set of reference currents to the IPM motor.
  • 13. The method of claim 12, wherein the torque limiter comprises a second neural network that is trained in a cloud computing environment.
  • 14. The method of claim 12, wherein the IPM motor is part of an electric vehicle and request for torque is received from a control component of the electric vehicle.
  • 15. The method of claim 12, further comprising: calculating a flux linkage limit for the IPM motor; andusing the neural network to calculate the set of reference currents for the requested torque and the calculated flux linkage limit.
  • 16. The method of claim 15, further comprising: determining an inverter DC voltage of the IPM motor;determining a current speed of the IPM motor; andcalculating the flux linkage limit based on the inverter DC voltage and the current speed.
  • 17. An electric vehicle comprising: an IPM motor;a neutral network; anda control system adapted to: receive a request for torque;use the neural network to calculate a set of reference currents for the requested torque; andapply the set of reference currents to the IPM motor.
  • 18. The electric vehicle of claim 17, wherein the set of reference currents comprise a d-reference current and a q-reference current.
  • 19. The electric vehicle of claim 17, wherein the control system is adapted to: calculate a flux linkage limit for the IPM motor; anduse the neural network to calculate the set of reference currents for the requested torque and the calculated flux linkage limit.
  • 20. The electric vehicle of claim 19, wherein the control system is adapted to: determine an inverter DC voltage of the IPM motor;determine a current speed of the IPM motor; andcalculate the flux linkage limit based on the inverter DC voltage and the current speed.
CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims priority to U.S. Provisional Application Ser. No. 63/228,226 filed on Aug. 2, 2021, and titled “NEURAL-NETWORK BASED MTPA, FLUX-WEAKENING AND MTPV FOR IPM MOTOR CONTROL AND DRIVES.”

Provisional Applications (1)
Number Date Country
63228226 Aug 2021 US