Next Article in Journal
Challenges and Trends in Student Evaluation of Teaching: Analysis of SET Data from the University of Peloponnese
Next Article in Special Issue
On the Extended Adjacency Eigenvalues of a Graph
Previous Article in Journal
Machine Learning Applications in Prediction Models for COVID-19: A Bibliometric Analysis
Previous Article in Special Issue
Governing with Intelligence: The Impact of Artificial Intelligence on Policy Development
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Identification and Nonlinear Control of a Permanent-Magnet Synchronous Motor Based on a Physics-Informed Neural Network and Exact Feedback Linearization

by
Sergio Velarde-Gomez
and
Eduardo Giraldo
*
Department of Electrical Engineering, Universidad Tecnologica de Pereira, Pereira 660003, Colombia
*
Author to whom correspondence should be addressed.
Information 2024, 15(9), 577; https://doi.org/10.3390/info15090577
Submission received: 24 July 2024 / Revised: 13 August 2024 / Accepted: 10 September 2024 / Published: 19 September 2024
(This article belongs to the Special Issue Feature Papers in Information in 2024–2025)

Abstract

:
This work proposes a novel method for the real-time identification and nonlinear control of a permanent-magnet synchronous motor (PMSM) based on a Physics-Informed Neural Network (PINN) and the exact feedback linearization approach. The proposed approach is presented in a direct-quadrature framework, where the quadrature current and the rotational speed are selected as outputs and the direct and quadrature voltages are selected as inputs. A nonlinear difference equation is selected to describe the physical dynamics of the PMSM, and a PINN is designed based on the aforementioned structure. A simplified training scheme is designed for the PINN based on a least-squares structure to facilitate online training in real time. A nonlinear controller based on exact feedback linearization is designed by considering the nonlinear model of the system identified based on the PINN. Therefore, the proposed approach involves identification and control in real time, where the PINN is trained online. In order to track the reference for the rotational speed, a nonlinear controller with integral action based on exact feedback linearization is designed based on a linear quadratic regulator. As a result, the proposed approach can be used to identify the system to be controlled in real time, and it is able to track any small change in the real model; in addition, it is robust to both external and internal disturbances, such as variations in torque load and resistance. The proposed approach is evaluated through simulation and using a real PMSM, and the results of reference tracking are evaluated under disturbances. The identification performance is evaluated by using a Taylor diagram under closed-loop and open-loop structures, where ARX and NARX structures are used for comparison. It is thereby verified that this novel proposed control approach involving a PINN-based model can adequately track the dynamics of a PMSM system, where the performance of the proposed nonlinear control is maintained even when using the identified model based on the PINN.

Graphical Abstract

1. Introduction

Permanent-magnet synchronous motors (PMSMs) are preferred over other types of motors due to their high efficiency, simple structure, and high power density [1,2,3]. In addition, PMSMs are generally used in electric vehicles due to their lower rotor inertia, more straightforward construction, and simpler control [4,5]. The permanent-magnet brushless DC motor (PMBLDC) is another important type of motor. Its main features include high power density, high efficiency, and low electromagnetic interference in addition to requiring less maintenance. It is used in aerospace, medical applications, servo appliances, robotics, and especially electric vehicle (EV) applications due to its driving performance [6,7,8].
PMSMs have inherent nonlinear behavior; therefore, more suitable controllers are those that take into account nonlinear dynamics, as proposed in [9], through the use of a model predictive control structure. To obtain an adequate nonlinear model, the use of artificial intelligence models, such as neural networks, has been considered. For example, in [10], a model predictive current control based on the Adaline Neural Network for a PMSM is proposed for improving the parameter robustness by estimating the PMSM inductance; however, only one parameter is estimated. Another approach involves approximating the nonlinear model with a linear model estimated from data, as proposed in [11]; however, the nonlinearities of the system are no longer considered when using this approach.
Classical nonlinear control techniques, such as state feedback linearization, can also be used for performance stabilization and tracking [12]. However, these techniques require a detailed nonlinear model where the model dynamics are parameterized. In this case, a Physics-Informed Neural Network (PINN) can be used to obtain a model where the physical laws of the dynamical model are imposed on the learning stage of the neural network [13]. In addition, the authors of [14] propose a novel PINN structure designed for control applications that is called Physics-Informed Neural Nets for Control (PINC). In [15], PINNs are proposed as a suitable solution for several real-world optimization tasks, and, in [16], a strategy is presented for linearizing a system based on discrete-time nonlinear feedback linearization via physics-informed machine learning. Furthermore, in [17], an additional strategy to design a nonlinear observer based on a PINN is also proposed. Alternatively, field-oriented control techniques are based on three PID controllers, which are tuned by trial-and-error techniques or by considering transient responses and stability analysis [18].
This work introduces an innovative exact feedback linearization technique tailored for the multivariable nonlinear control of a permanent-magnet synchronous motor (PMSM), leveraging Physics-Informed Neural Networks (PINNs) for real-time identification. The novel approach is framed within the direct-quadrature coordinate system, where the quadrature current and rotational speed are designated as output variables, while the direct and quadrature voltages serve as inputs. To effectively track the reference for rotational speed, we designed a sophisticated nonlinear controller with integral action grounded in exact feedback linearization. The main contribution of this work is the design of a PINN for the identification of a nonlinear PMSM model in real time and its coupling with a multivariable nonlinear controller with integral action and based on exact feedback linearization. The proposed approach is evaluated through simulation by considering a real PMSM, and the results of reference tracking are evaluated for two control approaches based on the exact feedback linearization nonlinear technique by considering a PMSM model with known parameters and an identified PMSM model based on the PINN structure. In addition, the performance of the PINN-based PMSM model is verified under closed-loop and open-loop structures by using a Taylor diagram, wherein the standard deviation, centered root-mean-square difference, and correlation are presented simultaneously, with a dataset of 100 trials being generated for the closed-loop and open-loop structures. The proposed approach is also validated for a real PMSM model. This paper is organized as follows: In Section 2, we present the nonlinear model of the PMSM in a direct-quadrature frame, the structure of the PINN, and the training stage and the mathematical formulation of the multivariable nonlinear controller based on the exact feedback linearization approach with integral action. In Section 3, we present the simulated and experimental results and the comparison of reference tracking under external and internal disturbances for the proposed approach by using a PMSM model with known parameters and a PINN-based model trained online. Finally, in Section 4, we present our conclusions and plans for future work.

2. Theoretical Framework

2.1. State Space Nonlinear Modeling of a PMSM in Continuous Time

Consider a nonlinear model of a PMSM described by the following set of equations in a direct-quadrature framework [19]:
x ˙ 1 = c 1 x 1 + c 2 x 2 x 3 + c 3 u d x ˙ 2 = c 4 x 2 + c 5 x 1 x 3 + c 6 x 3 + c 7 u q x ˙ 3 = c 8 x 2 + c 9 x 1 x 2 + c 10 x 3 + c 11 τ L
where
x 1 ( t ) = i d ( t )
x 2 ( t ) = i q ( t )
x 3 ( t ) = ω ( t )
and u d ( t ) and u q ( t ) are the inputs, and external disturbance τ L ( t ) is the torque load. It is assumed that the state variables x 1 ( t ) = i d ( t ) and x 3 ( t ) = ω ( t ) , as outputs of the PMSM system, are as follows:
y 1 = h 1 ( x ) = x 1 y 2 = h 2 ( x ) = x 3
It is worth noting that, because the aforementioned PMSM is a multivariable nonlinear system, a multivariable nonlinear controller is required. In this work, the nonlinear state feedback controller is designed based on the exact feedback linearization methodology proposed in [12].

2.2. Discrete State Space Nonlinear Modeling of a PMSM

Presented in [19] is a nonlinear model of a PMSM described in direct-quadrature framework, which can be represented in discrete time as follows:
x 1 + = d 1 x 1 + d 2 x 2 x 3 + d 3 u d x 2 + = d 4 x 2 + d 5 x 1 x 3 + d 6 x 3 + d 7 u q x 3 + = d 8 x 2 + d 9 x 1 x 2 + d 10 x 3 + d 11 τ L
where x i is the i th state at sample k ( x i [ k ] ) and x i + the i th state at sample k + 1 ( x i [ k + 1 ] ). x 1 = i d , x 2 = i q , and x 3 = ω , with inputs of u d and u q , and the external disturbance τ L is the torque load, with outputs i d = x 1 and ω = x 3 , where d j parameters are defined as
d 1 = 1 + T s c 1 , d 2 = T s c 2 , d 3 = T s c 3 d 4 = 1 + T s c 4 , d 5 = T s c 5 , d 6 = T s c 6 d 7 = T s c 7 , d 8 = T s c 8 , d 9 = T s c 9 d 10 = 1 + T s c 10 , d 11 = T s c 11
if considering a forward difference approximation method with sampling time T s .
The model can be simplified by considering that the parameters c 9 = 0 and d 9 = 0 , and it thus follows that
x 1 + = d 1 x 1 + d 2 x 2 x 3 + d 3 u d x 2 + = d 4 x 2 + d 5 x 1 x 3 + d 6 x 3 + d 7 u q x 3 + = d 8 x 2 + d 10 x 3 + d 11 τ L
In order to obtain adequate parameters for application in a real system, an estimation scheme based on measurements is proposed. Therefore, the parameters d i are estimated by using a PINN-based identification scheme.

2.3. PINN-Based Identification

In order to perform the identification of the nonlinear model based on a PINN, the structure of the neural network is obtained by considering the mathematical relations of the state variables presented in the difference equation shown in (7). It is worth noting that (7) describes the dynamics of the PMSM in discrete time, so the PINN will also be able to describe the PMSM dynamics. In addition, as a result of the selected PINN-based structure, the weight parameters of the neural network have physical meaning and can be used to design the exact feedback nonlinear controller. In this case, a tailored-design recurrent neural network structure is obtained with one hidden layer containing only two neurons, one input layer containing six neurons (three of which are recurrent from the output layer), and one output layer containing three neurons. Since (7) contains no independent coefficients, the structure of the neural network is selected without bias. In this case, linear activation functions for the neurons are considered. Depicted in Figure 1 is the resulting tailored-design PINN-based structure with linear activation functions and no bias.
It is worth noting from Figure 1 that the number of neurons and their connections in the hidden layer are constrained to the dynamical model of the PMSM described in (7). The initial conditions for the PINN-based structure are defined as x 1 [ 0 ] , x 2 [ 0 ] , and x 3 [ 0 ] .
In order to perform online training of the PINN, the model described in Figure 1 is rewritten as follows:
x 1 + x 2 + x 3 + x + = d 1 0 0 0 d 2 d 3 0 0 0 d 4 d 6 d 5 0 0 d 7 0 0 d 8 d 10 0 0 0 0 d 11 Θ n l T x 1 x 2 x 3 x 1 x 3 x 2 x 3 u d u q τ L Φ n l
where Θ n l are the PINN weights, and the PINN outputs can be computed in a simplified form as follows:
x + = Θ n l T Φ n l
It is worth mentioning that, since τ L is not measured, it is considered an external disturbance. Therefore, during PINN training, the τ L parameters are computed by considering the estimation error e τ , computed as
e τ = 0 1 0 x Θ n l T Φ n l
Therefore, (8) can be rewritten as follows:
x 1 + x 2 + x 3 + = d 1 0 0 0 d 2 d 3 0 0 0 d 4 d 6 d 5 0 0 d 7 0 0 d 8 d 10 0 0 0 0 d 11 x 1 x 2 x 3 x 1 x 3 x 2 x 3 u d u q e τ
A simplified training scheme based on recursive least-squares is proposed, where the matrices Θ n l and Φ n l from (11) are considered, resulting in the following learning equation [20]:
Θ n l + = Θ n l + Ω n l Φ n l 1 + Φ n l T Ω n l Φ n l x T Φ n l T Θ n l
Ω n l + = Ω n l Ω n l Φ n l Φ n l T Ω n l 1 + Φ n l T Ω n l Φ n l

2.4. Exact Feedback Linearization in Discrete Time

The exact feedback linearization procedure in discrete time is similar to the one proposed in continuous time [12]. Assuming that the first output is y 1 = i d , it follows that
y 1 + = x 1 +
y 1 + = d 1 x 1 + d 2 x 2 x 3 + d 3 u d
Since the input u d [ k ] appears, the control signal v 1 is defined as
y 1 + = v 1
Assuming that the second output is y 2 = ω , it follows that
y 2 + = x 3 + = y 2 p
y 2 + = d 8 x 2 + d 10 x 3
Since there are no outputs in the resulting equation, the procedure continues as follows:
y 2 p + = d 8 x 2 + + d 10 x 3 +
y 2 p + = d 8 ( d 4 x 2 + d 5 x 1 x 3 + d 6 x 3 + d 7 u q ) + d 10 ( d 8 x 2 + d 10 x 3 )
Since the input u q [ k ] appears, the control signal v 2 is defined as
y 2 p + = v 2
The resulting discrete state space system is
y 1 + y 2 + y 2 p + = 0 0 0 0 0 1 0 0 0 F y 1 y 2 y 2 p + 1 0 0 0 0 1 G v 1 v 2
y 1 y 2 = 1 0 0 0 1 0 C y 1 y 2 y 2 p
It can be seen that the system of (22) is decoupled and can therefore be written as two subsystems. For the output y 1 , it follows that
y 1 = 0 f 1 y 1 + 1 g 1 v 1
y 1 = 1 c 1 y 1
and, for the output y 2 , it follows that
y 2 + y 2 p + = 0 1 0 0 F 2 y 2 y 2 p + 0 1 G 2 v 2
y 2 = 1 0 C 2 y 2 y 2 p
Similar to the continuous case, the control law for v 1 [ k ] is defined by
v 1 = k d 1 y 1
v 1 = k d 1 x 1
Following design, the control law for u d [ k ] can be computed as follows:
u d = 1 d 3 k d 1 x 1 d 1 x 1 d 2 x 2 x 3
Similarly, the control law for v 2 [ k ] , considering integral action, can be defined as
v 2 = k d 2 y 2 k d 3 y 2 p + k d i e i
v 2 = k d 2 x 3 k d 3 d 8 x 2 + d 10 x 3 + k d i e i
where e i is the integral error, which is defined in discrete time as
e i + = e i + T s ( ω r e f x 3 )
with T s being the sampling time.
By considering (33), an augmented discrete state space system can be obtained as follows:
y 2 + y 2 p + e i + = 0 1 0 0 0 0 T s 0 1 F a y 2 y 2 p e i + 0 1 0 G a v 2 + 0 0 1 G r ω r e f
with v 2 defined as
v 2 = k d 2 k d 3 k d i K a y 2 y 2 p e i
Following design, the control law for u q [ k ] can be computed as follows:
u q = 1 d 7 d 8 k d i e i k d 2 x 3 k d 3 ( d 8 x 2 + d 10 x 3 ) ( d 4 d 8 x 2 + d 5 d 8 x 1 x 3 + d 6 d 8 x 3 + d 8 d 10 x 2 + d 10 2 x 3 )
A discrete linear quadratic regulator (dLQR) controller can be designed based on the state feedback structure. For control law v 1 , it follows that a quadratic cost function J 1 can be defined as follows:
J 1 = N ( q 1 x 1 2 + r 1 v 1 2 )
Similarly, for a control law v 2 , it follows that a quadratic cost function J 2 can be defined as follows:
J 2 = N ( x a T Q a x a + r 2 v 2 2 )
with the augmented states x a defined as
x a = y 2 y 2 p e i
The main advantage of this design is that the controller gains k d 1 , k d 2 , k d 3 , and k d i are time-invariant and can be computed offline since the matrices f 1 and F a are also time-invariant and thus not dependent on the PMSM model. By contrast, the control laws for u d and u q are computed through PINN-based identification of the PMSM parameters.
A diagram of the optimal controller based on nonlinear exact feedback linearization that includes PINN-based identification is shown in Figure 2.

3. Results

3.1. Experimental Setup

In order to evaluate the performance of the proposed control approach, a low-voltage three-phase PMSM Teknic M-2310P-LN-04K system (developed by Tecknic, Inc. at Victor, NY, USA) is considered. The proposed approach involving a PINN-based structure for the identification stage is evaluated through simulation by considering an online training scheme in open-loop (only the PMSM system) and closed-loop (PMSM system and nonlinear optimal controller based on exact feedback linearization) structures. In addition, the proposed approach involving a PINN-based model of the PMSM with online training is compared to the simulated model of the PMSM with known parameters by using, in both cases, nonlinear optimal control based on exact feedback linearization in discrete time. The proposed approach is also validated for a real PMSM Teknic M-2310P-LN-04K system by considering a BOOSTXL-DRV8301 motor driver and a LaunchPad XL F28379D with a C2000 Delfino dual-core processor (where the motor driver and the Launchpad are developed by Texas Instruments Incorporated at Dallas, TX, USA). The PMSM Teknic M-2310P-LN-04K has two feedback sensors (hall and encoder), and the motor parameters are listed in Table 1.
In addition to the parameters presented in Table 1, the following values are also considered: stator d-axis inductance L d = 0.0002 H, stator q-axis inductance L q = 0.0002 H, motor inertia J = 7.0616 × 10 6 Kg·m2, friction constant B = 2.6369 × 10 6 N·m·s, F = 2.6369 × 10 6 N·m·s, and permanent flux linkage constant λ p m = 0.0064 Wb.
The parameters c j of the PMSM are defined as follows:
c 1 = R L d , c 2 = L q n p L d , c 3 = 1 L d c 4 = R L q , c 5 = L d n p L q , c 6 = λ p m n p L q c 7 = 1 L q , c 8 = 3 2 n p λ p m J , c 9 = 3 2 n p J ( L d L q ) c 10 = F J , c 11 = 1 J
Assuming L d = L q and the parameter c 9 = 0 results in the following set of c j parameters:
c 1 = 1.8 × 10 3 , c 2 = 4 , c 3 = 5000 c 4 = 1.8 × 10 3 , c 5 = 4 , c 6 = 127.9083 c 7 = 5000 , c 8 = 5.434 × 10 3 , c 9 = 0 c 10 = 0.3734 , c 11 = 1.4165 × 10 5
By considering T s = 0.00005 seconds, the d j parameters can be computed as
d 1 = 0.91 , d 2 = 2 × 10 4 , d 3 = 0.25 d 4 = 0.91 , d 5 = 2 × 10 4 , d 6 = 0.0064 d 7 = 0.25 , d 8 = 2 × 10 4 , d 9 = 0 d 10 = 0.999981 , d 11 = 7.0805
resulting in the following discrete model:
x 1 + = 0.91 x 1 + 2 × 10 4 x 2 x 3 + 0.25 u d x 2 + = 0.91 x 2 2 × 10 4 x 1 x 3 0.0064 x 3 + 0.25 u q x 3 + = 0.999981 x 3 + 2 × 10 4 x 2 7.0805 τ L
The block diagram that represents the PMSM system in an open-loop structure in discrete time is shown in Figure 3.
The block diagram that represents the PMSM system in a closed-loop structure through including the nonlinear optimal controller based on exact feedback linearization is shown in Figure 4.
The diagram that represents the exact feedback nonlinear control of the PMSM system in the identification stage is shown in Figure 5.
It is worth noting that the discrete controller gains are obtained by using a discrete LQR controller. To this end, the weight constraints are selected for the optimal LQR controller as follows:
q 1 = 100
r 1 = 1
Q a = 0 0 0 0 0 0 0 0 10000
r 2 = 1
This results in the following controller gains:
k d 1 = 2.4588 × 10 15
k d 2 = 0.005
k d 3 = 0.005
k d i = 99.75

3.2. Training Dataset

In order to generate a training dataset for the online training scheme in an open-loop structure, the variables i d , i q , and ω of the PMSM system shown in Figure 3 are measured by considering the signals u d , u q , and τ L as inputs, with the step structure shown in Figure 6.
The outputs corresponding to the inputs in Figure 6 are shown in Figure 7.
A total number of 100 trials are generated by randomly modifying the time step of each input in Figure 6, beginning with a range of between 0.1 and 0.9 seconds. The corresponding outputs, like the ones shown in Figure 7, are considered as the ground truth for evaluating the performance of PINN-based identification.
For the online training scheme in a closed-loop structure, the inputs are now the references for the outputs i d (which is zero) and ω (which is ω r e f ) and the non-controlled torque load input τ L . Since the main objective of the closed-loop structure is reference tracking and robustness under disturbances (in this case, the torque load τ L ), the dataset for the evaluation of the proposed approach is generated by considering the inputs ω r e f and τ L , as shown in Figure 8.
In order to evaluate the performance of the proposed approach in the online training scheme, 100 trials are generated by considering the same inputs of Figure 8 for each trial but selecting random initial values in a range between 0 and 1 for the PINN weights.
The closed-loop outputs from using the exact feedback nonlinear control technique and optimal control and by considering the inputs ω r e f and τ L from Figure 8 are shown in Figure 9, with the corresponding control inputs shown in Figure 10.
In order to evaluate the proposed approach, the results shown in Figure 9 are selected as the ground truth since they are obtained by using the PMSM system parameters.
Examples of the closed-loop outputs in the identification stage from using the exact feedback nonlinear control technique and optimal control and by considering the inputs ω r e f and τ L from Figure 8 are shown in Figure 11, with the corresponding control inputs shown in Figure 12.
It is worth mentioning that, from the comparison of Figure 11 and Figure 12 to Figure 9 and Figure 10, it is shown that the tracking performance is maintained when including the online identification stage. However, a small variation can be observed during the first 10 milliseconds that corresponds to the first samples of the system identified by the PINN.

3.3. Training Process

The process for online training of the PINN-based model is performed by using the recursive least-squares method proposed in (12). The PINN-based model weights are defined by Θ n l and computed for each sample. It is worth noting that, in the closed-loop approach, the corresponding control signals are also computed for each sample by considering the Θ n l weights and the nonlinear exact feedback linearization controller for u d and u q .
An example of the weights’ evolution during online training, related to Figure 11, is shown in Figure 13.
It is worth noting that the parameters of the PINN-based model shown in Figure 13 are the parameters d 1 to d 11 taken directly from (7).
A detailed view of the training weights’ evolution over the first 12 milliseconds is shown in Figure 14.
The estimated outputs and the measured outputs are presented in Figure 15 and correspond to the parameter evolution in Figure 13.
In order to evaluate the performance of the PINN-based modeling by using the closed-loop structure, a Taylor diagram is obtained, as shown in Figure 16. This is derived from 100 trials considering the same inputs in Figure 8 but selecting random initial values in a range between 0 and 1 for the PINN weights.
It can be seen that the correlation coefficient between the PINN-based model using the closed-loop structure and the real model is close to the unity, which means that the PINN-based model adequately describes the PMSM system dynamics.
The PINN-based modeling performance is also computed by using the open-loop structure. This is performed by considering 100 randomly generated trials with the structure shown in Figure 6 and Figure 7 as the ground truth. Two additional systems are considered for evaluating the PINN-based modeling performance: a linear autoregressive exogenous model (ARX) and the nonlinear ARX model (NARX) with linear activation functions. The structure of the ARX model is depicted in Figure 17.
The structure of the NARX model is depicted in Figure 18.
It is worth noting that the same learning algorithm of (12) is used to obtain the parameters for the ARX and NARX models. By considering the ARX and NARX models, a Taylor diagram including the PINN, ARX, and NARX models is obtained, as shown in Figure 19.
It can be seen that, as well as in the closed-loop structure, the correlation coefficient between the PINN-based model and the real model is also close to the unity (over 0.99). It is also worth mentioning that the NARX model has almost the same correlation coefficient as the PINN-based model, while the ARX model has a correlation coefficient around 0.97. However, in this case, the PINN-based modeling is preferred since the weight parameters of the neural network have physical meaning and can therefore be directly used in designing the exact feedback nonlinear controller.
An additional experiment is performed to validate the capability of the PINN-based method in tracking parameter variations. In this case, the time-varying behavior of the d 1 and d 4 parameters is considered, which are directly related to stator resistance. As a result, the parameters d 1 and d 4 are increased by 10 % of their value at time t = 0.6 seconds, as shown in Figure 20. The ω r e f and τ L values from Figure 8 are also used.
The corresponding closed-loop outputs are shown in Figure 21. It can be seen that there is a small variation at time t = 0.6 seconds in the ω output, which corresponds to the parametric disturbance of Figure 20. However, the PINN model tracks temporal variations in the PMSM model, and the proposed nonlinear controller thereby also adapts to the newly identified parameters.
Presented in Figure 22 is the learning behavior for one of the weights of the PINN-based model related to the d 1 parameter, which is used to verify that the PINN-based model tracks temporal variations in the PMSM model.

3.4. Experimental Results

Shown in Figure 23 is the experimental workbench with a real PMSM Teknic M-2310P-LN-04K system using a BOOSTXL-DRV8301 motor driver and a Texas Instruments LaunchPad XL F28379D with a C2000 Delfino dual-core processor.
Speed tracking by applying the proposed approach is shown in Figure 24. It can be seen that the PMSM motor can track the speed, with similar results to the simulation.
Figure 25 shows the corresponding measured phase currents i A and i B corresponding to a time of 41.51 seconds for Figure 24.

4. Conclusions

This paper presents work on the novel real-time identification and nonlinear control of a permanent-magnet synchronous motor (PMSM) based on a Physics-Informed Neural Network (PINN) and the exact feedback linearization approach. The nonlinear difference equation that describes the physical dynamics of the PMSM was adequately identified using the proposed PINN structure. It is worth mentioning that the simplified training scheme for the PINN based on a least-squares structure also adequately estimated the system parameters in real time. In addition, the proposed approach can identify the system to be controlled in real time, and it is thus able to track any small changes in the real model, such as torque load disturbances. The proposed approach was compared to a fixed controller with known parameters, with the performances found to be quite similar if the first 20 milliseconds of training are ignored. By considering the Taylor diagrams for the closed-loop and open-loop identification structures, it can be seen that the correlation coefficient between the PINN-based model using the closed-loop structure and the real model is close to the unity, which means that the PINN-based model adequately describes the PMSM system dynamics. In addition, by considering the ARX and NARX structures, it was verified that the proposed PINN-based model and the NARX-based model both accurately track the real model, with a correlation coefficient close to one; however, the PINN-based model has a significantly lower number of parameters. The proposed approach was compared to a PMSM model with known parameters, where it was verified that the PMSM can be successfully identified and controlled in real time using the PINN-based model and exact feedback linearization based on an optimal control design in discrete time. In addition, the proposed approach was validated for a real PMSM Teknic M-2310P-LN-04K system, where the model was shown to adequately track the reference. The PINN model can thus clearly be trained in real time and is therefore ready to track any variations in the PMSM parameters.

Author Contributions

Conceptualization, E.G.; formal analysis, E.G.; methodology, S.V.-G.; software, S.V.-G.; supervision, E.G.; writing—original draft, E.G.; writing—review and editing, S.V.-G. and E.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Gong, C.; Hu, Y.; Gao, J.; Wang, Y.; Yan, L. An Improved Delay-Suppressed Sliding-Mode Observer for Sensorless Vector-Controlled PMSM. IEEE Trans. Ind. Electron. 2020, 67, 5913. [Google Scholar] [CrossRef]
  2. Gao, P.; Zhang, G.; Ouyang, H.; Mei, L. A Sliding Mode Control with Nonlinear Fractional Order PID Sliding Surface for the Speed Operation of Surface-Mounted PMSM Drives Based on an Extended State Observer. Math. Probl. Eng. 2019, 2019, 7130232. [Google Scholar] [CrossRef]
  3. Xu, W.; Ismail, M.M.; Liu, Y.; Islam, M.R. Parameter Optimization of Adaptive Flux-Weakening Strategy for Permanent-Magnet Synchronous Motor Drives Based on Particle Swarm Algorithm. IEEE Trans. Power Electron. 2019, 34, 12128–12140. [Google Scholar] [CrossRef]
  4. Sun, X.; Li, Z.; Wang, X.; Li, C. Technology Development of Electric Vehicles: A Review. Energies 2020, 13, 90. [Google Scholar] [CrossRef]
  5. Gong, C.; Hu, Y.; Ni, K.; Liu, J.; Gao, J. SM Load Torque Observer-Based FCS-MPDSC with Single Prediction Horizon for High Dynamics of Surface-Mounted PMSM. IEEE Trans. Power Electron. 2020, 35, 20–24. [Google Scholar] [CrossRef]
  6. Kumar, P.; Student Member, G.; Vijaya Bhaskar, D.; Ranjan Muduli, U.; Beig, A.R.; Member, S.; Kumar Behera, R. Iron-Loss Modeling With Sensorless Predictive Control of PMBLDC Motor Drive for Electric Vehicle Application. IEEE Trans. Transp. Electrif. 2021, 7, 1506–1515. [Google Scholar] [CrossRef]
  7. Darcy, A.; Jegha, G.; Subathra, P.; Manoj Kumar, N.; Subramaniam, U.; Padmanaban, S. A High Gain DC-DC Converter with Grey Wolf Optimizer Based MPPT Algorithm for PV Fed BLDC Motor Drive. Appl. Sci. 2020, 10, 2797. [Google Scholar] [CrossRef]
  8. Karthick, K.; Ravivarman, S.; Samikannu, R.; Vinoth, K.; Sasikumar, B. Analysis of the Impact of Magnetic Materials on Cogging Torque in Brushless DC Motor. Adv. Mater. Sci. Eng. 2021, 2021, 5954967. [Google Scholar] [CrossRef]
  9. Djouadi, H.; Ouari, K.; Belkhier, Y.; Lehouche, H.; Bajaj, M.; Blazek, V. Improved Robust Model Predictive Control for PMSM using Backstepping Control and Incorporating Integral Action with Experimental Validation. Results Eng. 2024, 23, 102416. [Google Scholar] [CrossRef]
  10. Li, H.; Liu, Z.; Shao, J. A Model Predictive Current Control Based on Adaline Neural Network for PMSM. J. Electr. Eng. Technol. 2023, 18, 953–960. [Google Scholar] [CrossRef]
  11. Velarde-Gomez, S.; Molina-Cabrera, A.; Giraldo, E. Model-based Adaptive Control of a 3D Printed Permanent Magnet Synchronous Motor. Eng. Lett. 2023, 31, 1804–1812. [Google Scholar]
  12. Sastry, S. Nonlinear Systems: Analysis, Stability, and Control; Interdisciplinary Applied Mathematics; Springer: New York, NY, USA, 2013. [Google Scholar]
  13. Raissi, M.; Perdikaris, P.; Karniadakis, G. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  14. Antonelo, E.A.; Camponogara, E.; Seman, L.O.; Jordanou, J.P.; de Souza, E.R.; Hübner, J.F. Physics-informed neural nets for control of dynamical systems. Neurocomputing 2024, 579, 127419. [Google Scholar] [CrossRef]
  15. Seo, J. Solving real-world optimization tasks using physics-informed neural computing. Sci. Rep. 2024, 14, 202. [Google Scholar] [CrossRef]
  16. Alvarez, H.V.; Fabiani, G.; Kazantzis, N.; Siettos, C.; Kevrekidis, I.G. Discrete-time nonlinear feedback linearization via physics-informed machine learning. J. Comput. Phys. 2023, 492, 112408. [Google Scholar] [CrossRef]
  17. Alvarez, H.V.; Fabiani, G.; Kevrekidis, I.G.; Kazantzis, N.; Siettos, C. Nonlinear Discrete-Time Observers with Physics-Informed Neural Networks. arXiv 2024, arXiv:2402.12360. [Google Scholar] [CrossRef]
  18. Song, W.; Li, J.; Ma, C.; Xia, Y.; Yu, B. A Simple Tuning Method of PI regulators in FOC for PMSM Drives based on Deadbeat Predictive Conception. In IEEE Transactions on Transportation Electrification; IEEE: Piscataway, NJ, USA, 2024; p. 1. [Google Scholar] [CrossRef]
  19. Nicola, M.; Nicola, C.I. Improvement of Linear and Nonlinear Control for PMSM Using Computational Intelligence and Reinforcement Learning. Mathematics 2022, 10, 4667. [Google Scholar] [CrossRef]
  20. Goodwin, G.C.; Sin, K.S. Adaptive Filtering, Prediction and Control; Dover Publications Inc.: Englewood-Cliffs, NJ, USA, 2009. [Google Scholar]
Figure 1. PINN-based structure for modeling of the PMSM in (7).
Figure 1. PINN-based structure for modeling of the PMSM in (7).
Information 15 00577 g001
Figure 2. Optimal controller based on nonlinear exact feedback linearization that includes PINN-based identification in a direct-quadrature framework.
Figure 2. Optimal controller based on nonlinear exact feedback linearization that includes PINN-based identification in a direct-quadrature framework.
Information 15 00577 g002
Figure 3. Block diagram of the nonlinear multivariable model of the PMSM in discrete time in an open-loop structure.
Figure 3. Block diagram of the nonlinear multivariable model of the PMSM in discrete time in an open-loop structure.
Information 15 00577 g003
Figure 4. Block diagram of the nonlinear control based on exact feedback linearization with integral action in discrete time in a closed-loop structure.
Figure 4. Block diagram of the nonlinear control based on exact feedback linearization with integral action in discrete time in a closed-loop structure.
Information 15 00577 g004
Figure 5. Nonlinear control based on exact feedback linearization with integral action in discrete time and the identification stage.
Figure 5. Nonlinear control based on exact feedback linearization with integral action in discrete time and the identification stage.
Information 15 00577 g005
Figure 6. Training dataset structure of the inputs for the open-loop structure.
Figure 6. Training dataset structure of the inputs for the open-loop structure.
Information 15 00577 g006
Figure 7. Training dataset structure for the outputs of the open-loop structure.
Figure 7. Training dataset structure for the outputs of the open-loop structure.
Information 15 00577 g007
Figure 8. Training dataset structure for the inputs of the closed-loop structure.
Figure 8. Training dataset structure for the inputs of the closed-loop structure.
Information 15 00577 g008
Figure 9. Closed-loop outputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time.
Figure 9. Closed-loop outputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time.
Information 15 00577 g009
Figure 10. Closed-loop inputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time.
Figure 10. Closed-loop inputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time.
Information 15 00577 g010
Figure 11. Closed-loop outputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Figure 11. Closed-loop outputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Information 15 00577 g011
Figure 12. Closed-loop inputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Figure 12. Closed-loop inputs of the nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Information 15 00577 g012
Figure 13. Evolution of training weights for the closed-loop outputs of nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Figure 13. Evolution of training weights for the closed-loop outputs of nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Information 15 00577 g013
Figure 14. Evolution of training weights for the closed-loop outputs of nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Figure 14. Evolution of training weights for the closed-loop outputs of nonlinear control based on exact feedback linearization with integral action and optimal control in discrete time by including the identification stage.
Information 15 00577 g014
Figure 15. Estimated outputs and measured outputs from online training of the PINN.
Figure 15. Estimated outputs and measured outputs from online training of the PINN.
Information 15 00577 g015
Figure 16. Taylor diagram related to the estimated and measured outputs of Figure 15 under a closed-loop structure.
Figure 16. Taylor diagram related to the estimated and measured outputs of Figure 15 under a closed-loop structure.
Information 15 00577 g016
Figure 17. ARX-based structure for modeling of the PMSM in (7).
Figure 17. ARX-based structure for modeling of the PMSM in (7).
Information 15 00577 g017
Figure 18. NARX-based structure for modeling of the PMSM in (7).
Figure 18. NARX-based structure for modeling of the PMSM in (7).
Information 15 00577 g018
Figure 19. Taylor diagram related to the estimated and measured outputs under an open-loop structure.
Figure 19. Taylor diagram related to the estimated and measured outputs under an open-loop structure.
Information 15 00577 g019
Figure 20. Time-varying behavior of the d 1 and d 4 parameters.
Figure 20. Time-varying behavior of the d 1 and d 4 parameters.
Information 15 00577 g020
Figure 21. Closed-loop outputs from considering the time-varying parameters of Figure 20.
Figure 21. Closed-loop outputs from considering the time-varying parameters of Figure 20.
Information 15 00577 g021
Figure 22. Learning behavior for the PINN-based model weight related to the d 1 PMSM parameter.
Figure 22. Learning behavior for the PINN-based model weight related to the d 1 PMSM parameter.
Information 15 00577 g022
Figure 23. Experimental setup involving a real PMSM Teknic M-2310P-LN-04K system with motor driver and C2000 processor.
Figure 23. Experimental setup involving a real PMSM Teknic M-2310P-LN-04K system with motor driver and C2000 processor.
Information 15 00577 g023
Figure 24. Speed tracking by applying nonlinear control based on exact feedback linearization with integral action by including the identification stage for a real PMSM Teknic M-2310P-LN-04K system.
Figure 24. Speed tracking by applying nonlinear control based on exact feedback linearization with integral action by including the identification stage for a real PMSM Teknic M-2310P-LN-04K system.
Information 15 00577 g024
Figure 25. Measured phase currents i A and i B corresponding to the experiment in Figure 24 for a real PMSM Teknic M-2310P-LN-04K system.
Figure 25. Measured phase currents i A and i B corresponding to the experiment in Figure 24 for a real PMSM Teknic M-2310P-LN-04K system.
Information 15 00577 g025
Table 1. PMSM Teknic M-2310P-LN-04K parameters.
Table 1. PMSM Teknic M-2310P-LN-04K parameters.
ParametersUnitValue
Rated voltageV40
Rated speedRPM6000
Rated torqueN·m0.274
Rated powerW170
Continuous currentA7.1
Pair poles ( n p )-4
Stator resistance per phase (R) Ω 0.3643
Inductance, phase to phasemH0.40
Electrical time constantmS0.56
Back EMFVpeak/kRPM4.64
Encoder resolutioncounts/rev4000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Velarde-Gomez, S.; Giraldo, E. Real-Time Identification and Nonlinear Control of a Permanent-Magnet Synchronous Motor Based on a Physics-Informed Neural Network and Exact Feedback Linearization. Information 2024, 15, 577. https://doi.org/10.3390/info15090577

AMA Style

Velarde-Gomez S, Giraldo E. Real-Time Identification and Nonlinear Control of a Permanent-Magnet Synchronous Motor Based on a Physics-Informed Neural Network and Exact Feedback Linearization. Information. 2024; 15(9):577. https://doi.org/10.3390/info15090577

Chicago/Turabian Style

Velarde-Gomez, Sergio, and Eduardo Giraldo. 2024. "Real-Time Identification and Nonlinear Control of a Permanent-Magnet Synchronous Motor Based on a Physics-Informed Neural Network and Exact Feedback Linearization" Information 15, no. 9: 577. https://doi.org/10.3390/info15090577

APA Style

Velarde-Gomez, S., & Giraldo, E. (2024). Real-Time Identification and Nonlinear Control of a Permanent-Magnet Synchronous Motor Based on a Physics-Informed Neural Network and Exact Feedback Linearization. Information, 15(9), 577. https://doi.org/10.3390/info15090577

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop