Next Article in Journal
HGT: A Hierarchical GCN-Based Transformer for Multimodal Periprosthetic Joint Infection Diagnosis Using Computed Tomography Images and Text
Previous Article in Journal
Enhancing Human–Robot Collaboration through a Multi-Module Interaction Framework with Sensor Fusion: Object Recognition, Verbal Communication, User of Interest Detection, Gesture and Gaze Recognition
Previous Article in Special Issue
Sea Mine Detection Framework Using YOLO, SSD and EfficientDet Deep Learning Models
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Performance for PMSM Sensorless Control Based on Robust-Type Controller, ESO-Type Observer, Multiple Neural Networks, and RL-TD3 Agent †

1
Research and Development Department, National Institute for Research, Development and Testing in Electrical Engineering—ICMET Craiova, 200746 Craiova, Romania
2
Department of Automatic Control and Electronics, University of Craiova, 200585 Craiova, Romania
*
Authors to whom correspondence should be addressed.
This paper is an extension version of the conference paper: Nicola, M.; Nicola, C.-I.; Ionete, C.; Șendrescu, D.; Roman, M. Improved Performance for PMSM Control Based on Robust Controller and Reinforcement Learning. In Proceedings of the 2022 26th International Conference on System Theory, Control and Computing (ICSTCC), Sinaia, Romania, 19–21 October 2022.
Sensors 2023, 23(13), 5799; https://doi.org/10.3390/s23135799
Submission received: 5 May 2023 / Revised: 14 June 2023 / Accepted: 19 June 2023 / Published: 21 June 2023
(This article belongs to the Special Issue ICSTCC 2022: Advances in Monitoring and Control)

Abstract

:
This paper summarizes a robust controller based on the fact that, in the operation of a permanent magnet synchronous motor (PMSM), a number of disturbance factors naturally occur, among which both changes in internal parameters (e.g., stator resistance Rs and combined inertia of rotor and load J) and changes in load torque TL can be mentioned. In this way, the performance of the control system can be maintained over a relatively wide range of variation in the types of parameters mentioned above. It also presents the synthesis of robust control, the implementation in MATLAB/Simulink, and an improved version using a reinforcement learning twin-delayed deep deterministic policy gradient (RL-TD3) agent, working in tandem with the robust controller to achieve superior performance of the PMSM sensored control system. The comparison of the proposed control systems, in the case of sensored control versus the classical field oriented control (FOC) structure, based on classical PI-type controllers, is made both in terms of the usual response time and error speed ripple, but also in terms of the fractal dimension (DF) of the rotor speed signal, by verifying the hypothesis that the use of a more efficient control system results in a higher DF of the controlled variable. Starting from a basic structure of an ESO-type observer which, by its structure, allows the estimation of both the PMSM rotor speed and a term incorporating the disturbances on the system (from which, in this case, an estimate of the PMSM load torque can be extracted), four variants of observers are proposed, obtained by combining the use of a multiple neural network (NN) load torque observer and an RL-TD3 agent. The numerical simulations performed in MATLAB/Simulink validate the superior performance obtained by using properly trained RL-TD3 agents, both in the case of sensored and sensorless control.

1. Introduction

In today’s world, the control of actuation systems based on servomotors has become a priority, due to the fact that these systems can be found in a wide range of products that contribute both to improving the efficiency of certain activities and to improving ergonomics [1,2]. It is worth remembering that PMSM is incorporated into servomotors used in robotics, computer peripherals, the aerospace industry, electric drives, etc. [3,4]. Thus, PMSM control takes on new dimensions, in terms of the complex concerns of researchers to improve the performance of control systems. It is worth remembering that the FOC control strategy is essential for PMSM control, and ensures superior control performance by organizing the control system into two cascaded levels, an inner level of current control and an outer level of PMSM rotor control [5,6]. Typically, the controllers used within the FOC control strategy structure are PI controllers [7,8]. The relatively good performance of these types of controllers is well-known, but when significant parametric variations occur, the performance of these types of control systems, based on PI-type controllers, decreases significantly. A number of PMSM control systems have been developed and adapted, including adaptive [9,10], optimal [11,12] and predictive [13,14], but also fuzzy [15,16] and neuro-fuzzy control systems have been invented with good results [17,18]. A backstepping controller for IM is developed in [19].
The sensorless control is also used in modern PMSM control systems to increase the reliability and operational safety of the PMSM, by using PMSM rotor speed observers and eliminating the speed sensor. Common observers include the Luenberger observer [20], the sliding mode observer (SMO) [21], the model reference adaptive system (MRAS) [22] for the deterministic case, and the Kalman filter [23] for the stochastic case.
Since there are significant variations in both the parameters describing the operation of the PMSM and the load torque during normal operation of the PMSM, robust control systems [24,25,26,27,28] may be an ideal choice of control system for the PMSM.
This paper is a continuation of the paper presented in [28] and focuses on extending the performance of the sensored control system using a robust controller type, and also in the case of the sensorless control system using an ESO-type observer [29]. This type of observer is designed by exploiting the form of the differential equations describing the PMSM. Thus, it is possible to obtain both PMSM rotor speed estimation and load torque estimation, since the ESO-type observer incorporates the disturbances acting on the system (e.g., load torque) in an additional state variable. This additional state variable is also estimated by the ESO-type observer. In terms of methods to improve the PMSM rotor speed estimation using the ESO-type observer structure, it is proposed to use this observer in combination with a multiple NN [30,31] load torque observer and an RL-TD3 agent [32,33] to obtain a better performance on rotor speed estimation compared to the measured rotor speed provided by a speed sensor.
The paper presents the main control structures and observers of the PMSM, starting with the differential equation description, the robust controller synthesis, and the ESO-type observer synthesis that performs the PMSM rotor speed estimation. Improved variants of using the ESO-type observer in tandem with the multiple NN load torque observer and RL-TD3 agent are also presented. In addition, the control structures, the reward and the training stage for the multiple NN load torque observer and RL-TD3 agent for speed estimation are presented.
The main contributions of this article are:
  • The synthesis of a robust PMSM controller using the d-q frame mathematical model for the sensored case of the PMSM control structure;
  • The robust controller synthesis using MATLAB and integration with PMSM sensored control system;
  • The improvement in the control performance of the PMSM sensored control system, by combining the robust controller and an RL-TD3 agent that provides additional correction signals to adjust the ud and uq commands generated by the main robust controller;
  • The comparative presentation of the performance of the proposed controllers used in the PMSM control system structure, in terms of response time, speed ripple error and DF of the rotor speed signal;
  • The ESO-type observer synthesis for the sensorless case of the PMSM control system for rotor speed estimation;
  • The improvement in the performance of the basic ESO observer structure for PMSM rotor speed estimation, by providing load torque estimates using two-layer feed-forward multiple NN networks implemented with the Neural Net Fitting MATLAB application [31];
  • The improvement in the performance of the ESO basic observer structure for PMSM rotor speed estimation, by implementing an RL-TD3 agent [33] in MATLAB/Simulink that provides correction signals to estimate the PMSM rotor speed value as close as possible to the sensored rotor speed provided by a PMSM speed sensor;
  • Comparison of the performance of the four observer variants for estimating the proposed PMSM rotor speed, in terms of response time and speed ripple error.
The rest of the article is organized as follows: Section 2 presents the proposed sensored and sensorless control structure of PMSM. The robust control of the PMSM is presented in Section 3, while the MATLAB/Simulink implementation of the PMSM sensored control system together with the improvement in the control performance by using an RL-TD3 agent is presented in Section 4. The PMSM sensorless control system using improved ESO-type observer variants is presented in Section 5, and numerical simulations of the operation of the PMSM sensorless control system are presented in Section 6. Section 7 presents some conclusions and suggestions for future approaches.

2. Sensored and Sensorless PMSM Control

Traditionally, PMSM control is achieved using the FOC strategy, in which a PMSM rotor speed sensor is integrated and the name of the control structure is sensored control. Figure 1 shows the schematic diagram of the FOC-type strategy for the PMSM control system, where the controllers used in the current and voltage loops are PI-type.
d i d d t = R s L d i d + L q L d n p ω i q + 1 L d u d d i q d t = R s L q i q L d L q n p ω i d λ 0 L q n p ω + 1 L q u q d ω d t = 3 2 n p J λ 0 i q + L d L q i d i q 1 J T L B J ω d θ e d t = n p ω
In Relation (1), the notations are the usual ones in the d-q rotating reference frame [1,2,28]. Therefore, it can be denoted these notations as follows: the stator voltages, ud and uq, in the d-q frame; the stator currents, id and iq, in the d-q frame; the stator inductances, Ld and Lq, in the d-q frame; and the stator resistances, Rd and Rq, in the d-q frame. Other common parameters of the PMSM include: the flux linkage is denoted by λ0, the number of pole pairs is denoted by np, the rotor moment inertia combined with load moment inertia is denoted by J, the load torque is denoted by TL, the viscous friction coefficient is denoted by B, and the PMSM rotor speed is noted with ω.
In short, the description of the nonlinear operating equations of the PMSM is given by Relation (1).
In the usual case, where Ld = Lq is Rd = Rq = Rs, the system shown in (1) can be rewritten in the following form [1,2,28]:
i ˙ d i ˙ q ω ˙ = R s L q i d + n p ω i q R s L q i q n p ω i d λ 0 L q n p ω 3 2 n p λ 0 J i q B J ω + 1 L q 0 0 1 L q 0 0 u d u q + 0 0 T L J
In the following sections we propose both an improved control structure, in the case of sensored control, and the use of ESO-type observer combinations, in the case of a structure called sensorless control. Thus, Figure 2 shows the schematic diagram of the proposed PMSM sensorless control system based on a robust controller and RL-TD3 agent algorithm, using an improved ESO-type observer combined with a multiple NN load torque estimation and an RL-TD3 agent for speed estimation.
In terms of improving control structures, a robust controller combined with an RL-TD3 agent is presented, which provides superior performance compared to classical PI controllers.
Four combinations of observers are proposed for PMSM speed estimation. The first type of observer is based on the ESO-type observer, which can estimate not only the PMSM rotor speed ω, but also the load torque TL, by adding another variable containing disturbance elements and by a special structure of the observer. A second proposed variant is a multiple NN, trained over different load torque ranges, which provides this value to an ESO-type observer which, in turn, will have a better PMSM rotor speed estimation relative to the measured PMSM rotor speed (sensored control structure case). The following two variants are derived from those presented above, with the addition of an RL-TD3 agent that provides superior estimates of rotor PMSM.

3. Robust Control of PMSM

Consider the operating point (x*, u*) obtained from the linearization of the nonlinear PMSM model in Section 2. Consider the operating point (x*, u*) obtained by linearizing the nonlinear PMSM model in Section 2. The explanation of the operating point is given by the following Relation (3) [28].
x ¯ = i d i q ω T ; u ¯ = u d u q T L T
Around the operating point (x*, u*), the nonlinear equation of the PMSM takes the following form:
f x , u = 0
The following linearized system can be related to the nonlinear Equation (4):
x ˙ ( t ) = A x ( t ) + B w ( t ) + D u ( t ) y ( t ) = C x ( t )
where the matrices are defined by Relation (6).
A = R s L q ω i q ω R s L q n p λ 0 L q 0 3 2 n p λ 0 J B J ; B = 1 L q 0 0 0 1 L q 0 0 0 1 J ; C = 1 0 0 0 0 1 ; D = 0 0 0 0 0 0
Relation (7) shows the reference values selected for the operating point:
i d i q ω = 0 1 1200
For robust control of the PMSM, Figure 3 schematically shows the control structure of the PMSM, showing the reference r = i d r e f ω r e f , the measured vector y = i d ω , and the load torque TL, which acts as a disturbance variable on the PMSM control system. After the synthesis of the robust control K, based on the synthesis of robust controllers, when the PMSM equations are described in the d-q rotating reference frame, the values of the control vector u = u d u q are obtained.
Following the steps in the synthesis of a robust control algorithm [23], Figure 4 shows the generalized plant. In addition to inputs/outputs and references, it contains the K controller structure, the nominal plant P, the uncertainties block ∆ and the input and output uncertainties w and z.
The relation between these elements can be written as follows:
w = Δ z
u = u d u q = K r y  
where ∆ represents a diagonal matrix defining the uncertainties and u is the controller feedback, i.e., the command given by the robust controller K.
The global transfer matrix from r and TL to yr is given by Relation (10):
y r = F u F l P ( s ) , K ( s ) , Δ r T L
where: the generalized plant is denoted by P, the robust controller is denoted by K, and the upper/lower fractional linear transform is denoted by Fu/l [24,28].
According to [23], the generalized plant P verifies the following relation:
z y r r y = P w r T L u
Figure 5 shows the block diagram of the extended system. It also shows the weighting function Wi (with i = 1, 2, 3) and the linearized nominal transfer function of the PMSM given in (6) and denoted by Gnom.
Typically, the sensitivity function is denoted by S, the complementary sensitivity function is denoted by T, and the additive robustness matrix is denoted by R. Their expressions are given in (12)–(14) respectively.
S = 1 1 + G n o m K
T = K G 1 + G n o m K  
R = K 1 + G n o m K  
The main objectives of robust control are tracking performance and disturbance attenuation over the entire frequency range of the controlled process. These objectives can be summarized as shown in Relation (15). The weighting matrices in Relation (15) are usually chosen as follows: W1S for a low-pass-type filter, W2U for a high-pass-type filter, and the matrix W3T provides high-frequency attenuation for the complementary sensitivity function T [24,28].
T r z = W 1 S S W 2 U K S W 3 T T < 1

4. MATLAB/Simulink Implementation and Numerical Simulations for PMSM Sensored Control System Using a Robust Controller Combined with RL-TD3 Agent

Based on what was described in the previous section on the synthesis of a robust controller for the sensored control of PMSM, this section presents the MATLAB/Simulink implementation of such a controller, while the second part of this section presents a way to improve the performance of the robust controller using an RL-TD3 agent.

4.1. Robust Controller Synthesis Based on MATLAB/Simulink

The nominal parameters of the PMSM used in the following numerical simulations are shown in Table 1. Figure 6 shows the diagram of the MATLAB/Simulink model block for the proposed PMSM sensored control system using a robust controller.
The implementation of the robust controller follows the steps described in Section 3, as well as a set of instructions specific to robust synthesis, used in the MATLAB Robust Control toolbox environment [25]. Therefore, to define a variation in some parameters, e.g., load torque TL, around nominal values, the command ureal() is used. Using the musyn() command, the numerical values for the implementation of the robust controller K(s) are obtained as shown in Relation (16).
K s A K ̲ C K B K ̲ D K ̲ s = 2279 40.38 154.7 62260 1965 62180 1960 75.58 4.052 362.8 1126 4392 1969 62160 1967 0.00062 303.2 52.76 1037 131.3 648.5 0.00006 0.01642 0.00006 0.01639 1037 638.2 5.336 0.0000002 0.02882 0.713 0.000004 0.2849 0.000004 2.664 0.02882 94.65 0.000007 0.7645 0.000004 0.7119 0.000004 0.2838 94.65 7.236 5.362 0 0.02779 0 0 1 0 2.638 02779 93.5 0 0.8716 0 0 0 1 93.5 7.128 15.88 0.5068 1.272 529.2 16.7 528.6 16.66 0 0 0.5068 6.669 37.08 16.74 528.4 16.72 527 0 0 s
Furthermore, the controller K synthesized in Relation (16) and partitioned as shown in Relation (17) is also implemented in Simulink, as shown in Figure 6 [26,28].
K ( s ) = K 11 ( s ) K 12 ( s ) K 21 ( s ) K 22 ( s )
where each component of the controller K(s) can be written as a transfer function: num(s)/den(s):
K 11 ( s ) = N 11 ( s ) D ( s ) , K 12 ( s ) = N 12 ( s ) D ( s ) , K 21 ( s ) = N 21 ( s ) D ( s ) , K 22 ( s ) = N 22 ( s ) D ( s )
The numerical values of the numerators and denominators of the components of the robust controller K(s), namely, N11(s), N12(s), N21(s), N22(s), and D(s) are as follows [26,28]:
N 11 ( s ) = 2 10 5 s 6 + 2 10 5 s 5 + 4 10 4 s 4 + 0 . 0312 s 3 + 0.0532 s 2 + 0.0201 s + 0.0122
N 12 ( s ) = 8 10 5 s 6 + 7 10 5 s 5 + 5 10 5 s 4 + 0.0422 s 3 + 0.0976 s 2 + 0.0143 s + 0.0211  
N 21 ( s ) = 5 10 5 s 6 + 6 10 5 s 5 + 7 10 5 s 4 + 0.0235 s 3 + 0.0232 s 2 + 0.0089 s + 0.0678  
N 22 ( s ) = 2 10 4 s 6 + 3 10 4 s 5 + 0.005 s 4 + 0.351 s 3 + 0.6232 s 2 + 0.3015 s + 0.0242  
D ( s ) = 3 10 4 s 7 + 2 10 4 s 6 + 9 10 4 s 5 + 0.0196 s 4 + 1.4102 s 3 + 2.5062 s 2 + 1.2128 s + 0.0973  
The following are the general rules for the selection of the weighting matrices in Relation (15) that characterize the robust control [26,28]:
W 1 S ( s ) = 0.0036 s + 2.1522 s 0 0 0.0036 s + 2.1522 s
W 1 U ( s ) = 0.01 0 0 0.01  
W 1 T ( s ) = 0.0033 s + 1 0.0053 s + 0.75 0 0 0.0033 s + 1 0.0053 s + 0.75  
Bode plots can be drawn to highlight the robustness properties of the synthesized controller. Thus, Figure 7a shows Bode plots for the transfer function ωref to z1, while Figure 7b shows Bode plots for the transfer function TL to z1. From the analysis of these Bode plots, it can be seen that the robust control system of the PMSM ensures the stability of the closed-loop system, even in the case of parametric variations.
Figure 8 shows the evolution of the parameters of interest of the PMSM sensored control system using the classical FOC control structure with PI-type controllers, namely: rotor speed—ω; electromagnetic torque—Te; load torque—TL; stator currents—ia, ib, and ic; and d-q rotating reference frame id and iq. The numerical simulations are performed by applying a sequence of step signals to the PMSM rotor speed reference as follows: ωref = [1000, 1250, 1500, 900] rpm, together with a load torque TL with a value of de 0.5 Nm. It can be seen that the response time of the control system is 29 ms, and there is no overshoot.
Figure 9 shows the numerical simulations of the PMSM sensored control system, when both the classical PI-type controller (FOC-type strategy) and the robust-type controller are used. Thus, numerical simulations are performed after applying a sequence of step signals to the PMSM rotor speed reference as follows: ωref = [1000, 1200, 1400, 1000] rpm, together with a load torque TL with a value of 0.5 Nm. For the PMSM control, better behavior of the robust controller is observed compared to the PI-based controller.
However, if there is a 50% variation in the load torque TL and a 50% variation in the combined rotor and load inertia J parameter, Figure 10 shows a comparison of the performance of the robust-type controller and the PI-type controller. It can be seen that the robust controller has the same performance as when the parameters have nominal values (see Figure 9), while the PI controller provides a response time more than 50% higher than when the PMSM parameters have nominal values.

4.2. Improvement in the Robust Control of PMSM Sensored Control System Using RL-TD3 Agent

In order to improve the performance of the robust controller according to [28], an RL-TD3 agent is used which, after the training phase, will provide correction signals over the ud and uq control signals of the robust controller, so that the control system consisting of the robust controller plus the RL-TD3 agent will provide superior performance for the PMSM control. The proposed block diagram of the implementation in Simulink of the robust controller in tandem with the RL-TD3 agent for the sensored control of a PMSM is shown in Figure 11.
Using the elements and structure from the MATLAB Reinforcement Learning toolbox, Figure 12 shows the RL-TD3 agent implementation subsystem. Note that the inputs to this subsystem, viz.: PMSM rotor speed ω, iq current, iqerror current error and speed error ωerror, are observations for this type of algorithm, while the outputs are the correction signals for the ud and uq control signals and are considered actions. The generalized reward plays the role of a global criterion for optimizing the performance of the control system. The expression of the reward is given by the following relation [32,33]:
R R L T D 3 = 5 i q e r r o r 2 + 5 ω e r r o r 2 + 0.1 j u t 1 j 2
Note that in Relation (27), the term u t 1 j includes the actions generated in the previous step. The training performance for 200 epochs of the RL-TD3 agent is shown in Figure 13.
The following is a series of numerical simulations performed in MATLAB/Simulink for a PMSM with the nominal values given in Table 1 on the performance of the robust control system, but also with the enhancements of the RL-TD3 agent, where the variables of interest are those presented in Section 4.1. Therefore, Figure 14 shows the performance of the PMSM sensored robust control system for rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm, while Figure 15 shows the performance of the PMSM sensored robust control system plus RL-TD3 agent.
Figure 16 shows the results of the performance of the robust control system plus RL-TD3 agent for PMSM control, for a 100% increase in the nominal value of the load torque and a 50% increase in the combined rotor and load inertia J parameter. It can be seen that the control system maintains its performance, but with a corresponding increase in currents.
Figure 17 shows a comparison of the time evolution of the rotor speed for the PMSM sensored control system using the PI controller, the robust controller, and the robust controller plus RL-TD3 agent. It can be seen that, compared to the robust controller, the response time of the robust controller used in tandem with RL-TD3 agent decreases from 22.9 ms to 18.2 ms, while the PI controller provides a response time of 30.1 ms.
In addition to the response time and ripple of the PMSM rotor speed signal, the calculation of the DF of the PMSM rotor speed is also proposed as an element to compare the performance of PMSM control systems for sensored control structures.
The box-counting method is used to calculate DF, according to [34]. In principle, it starts from a square that can contain the signal, and the length of one side of this square is used as the unit of measurement. The side of the square is chosen so that it contains the signal, and the size of the side of the square is chosen as a power of 2 to speed up the calculations. By dividing the unit of measurement by 2, the algorithm is repeated until the value is below a predefined threshold. We can write that the form of each division has the expression 1/2k, where k is the current step. The division on the second axis is of the form n k / 2 2 k where the total number of occupied domains on the scale given by the initial signal is denoted by nk. In the current step, the values obtained for each of the two axes using the algorithm described above are retained, namely the coordinates of a point Mk(x,y), represented in the Cartesian system by logarithmic coordinates. The sequence of points M1, M2, …, Mn is calculated sequentially at each step. The stop condition is when the set threshold value has been exceeded. The slope of a line closest to points M1, M2, …, Mn is calculated by least squares, and the value obtained represents the DF of the initial signal. In the MATLAB environment, using the command “[n,r] = boxcount(signal,‘slope’)”, the vectors of the two dimensions are obtained according to the algorithm described above.
Moreover, by using the commands “df = −diff(log(n))./diff(log(r))” and “[‘DF = ’num2str(mean(df(1:length(df)))) ‘+/− ’num2str(std(df(1:length(df))))])” the coordinates of the Mk points in logarithmic coordinates are obtained, as well as the slope of the line closest to the points provided by the algorithm representing DF.
Figure 18, Figure 19 and Figure 20 show the DF of the rotor speed signal when using PI controller, robust controller, and robust controller plus RL-TD3 agent for PMSM sensored control system.
Table 2 shows the comparative performance of the proposed controllers for the PMSM sensored control system. The elements that are compared are response time, rotor speed ripple and DF of the rotor speed signal. The performance improvement is clearly seen when using a robust controller compared to the case of using the classical PI controllers in the sensored control structure of the PMSM. Moreover, the improvement in the performance of the PMSM control system can be further enhanced by using the robust controller in tandem with an RL-TD3 agent. Note that by analyzing the obtained values of the DF of the rotor speed signal for the three cases of controllers presented, the hypothesis presented in [34] is verified, i.e., when using a controller with superior performance, the DF of the controlled signal is high.

5. PMSM Sensorless Control System Using Improved ESO-Type Observer Variants

This section presents the sensorless control of the PMSM, where the controller used is the one described in Section 4.2, i.e., a robust controller working in tandem with an RL-TD3 agent. Once the controller is fixed, there is the problem of estimating the speed of the PMSM rotor by means of a speed observer. Due to the structure of the nonlinear equations of the PMSM, an ESO-type observer is chosen according to [29]. This section also proposes improvements to PMSM rotor speed estimation, where the element of comparison is the rotor speed provided by the speed sensor in the PMSM sensored control structure. Therefore, first of all, the ESO-type observer, as its name implies, extends the estimated states by an additional state, and from the description of the ESO-type observer equations, it is also possible to estimate the load torque TL. In order to achieve an improvement in the estimated speed of the PMSM rotor, it is proposed to use a multiple NN, which uses multiple NNs trained over portions of the load torque variation, and selected accordingly by a stateflow to provide an estimate of the load torque. A second way to improve PMSM rotor speed estimation is to use an RL-TD3 agent that, after training, provides signals that overlap the ESO-type observer output to provide an estimate of the PMSM rotor closer to the value provided for the PMSM sensored control structure.

5.1. ESO-Type Observer Description

To estimate the PMSM rotor speed using the ESO-type observer, we start from the form of the PMSM nonlinear description equations. These equations were described in Section 2, but can be written in the general form given by Equation (28).
y ( n ) ( t ) = f y ( t ) , y ˙ ( t ) , , y ( n 1 ) ( t ) , d ( t ) , t + b u ( t )
Equation (28) describes a monovariable nonlinear system in which perturbations occur, where y(l) denotes the derivative l of the output of the system y, u denotes the input to the system y, and d denotes the perturbation acting on the system y.
By denoting x 1 = y , x 2 = y ˙ , , x n = y ( n 1 ) , the following form is obtained:
x ˙ i = x i + 1 , i = 1 , , n 1 x ˙ n = f x 1 , x 2 , , x n , d , t + b u
An additional state is also selected in the following form:
x n + 1 = f x 1 , x 2 , , x n , d , t x ˙ n + 1 = h ( t )
which gives the form of the function h(t):
h ( t ) = f ˙ x 1 , x 2 , , x n , d , t
Note that in the descriptions given by the previous equations, the variable f includes the concentrated disturbances acting on the system.
Starting from the equations of the PMSM nonlinear system in Section 2, and adding the previous transformations, the equations of an ESO-type observer can be synthesized in the following form [29]:
x ^ ˙ i = x ^ i + 1 + β i ( y x ^ 1 ) , i = 1 , , n x ^ ˙ n + 1 = β n + 1 ( y x ^ 1 )
Thus, Relation (32) describes the component equations of the system describing the ESO-type observer which, based on a minimum of information, will provide the estimate of the states of the system together with the extended state including the f term.
By adjusting the above relation to estimate the PMSM rotor speed, the following relation can be written:
d ω d t = 1 J 3 2 n p λ 0 i q T L B ω
where the term f, which includes the generalized disturbances acting on the system of equations describing the operation of the PMSM, is expressed as follows:
f = B J ω T L J
Substituting Relation (34) into Relation (33) gives the following equation:
d ω d t = f + b i q
If in the previous relations x1 = ω, x2 = f and f ˙ = h , the matrix expression of the system containing the PMSM rotor speed is obtained as follows:
x ˙ = A x + B u + Ε h y = C x
where the system matrices (36) are given by:
A = 0 1 0 0 ; B = b 0 ; C = 1 0 ; E = 0 1
Based on this, the ESO-type observer structure can be written as follows:
x ˙ = A x + B u + L ( x 1 z 1 ) y = C z
The bandwidth of the ESO-type observer system is denoted by ω0. The poles of this system are assigned the value −ω0, and to determine the gain of the observer L, the identification is derived from the equality of polynomials as follows [29]:
λ ( s ) = s 2 + L 1 s + L 2 = s + ω 0 2
L 1 = 2 ω 0 L 2 = ω 0 2  
L = 2 ω 0 ω 0 2  
For fast convergence, the chosen ω0 is equal to 900, and in the implementation in Figure 21, it can be seen that the PMSM rotor speed is estimated by the state variable x1 of the observer, and the term f is estimated by the state variable x2 of the observer.
Furthermore, considering the estimated PMSM rotor speed, the estimated PMSM rotor angle can also be obtained as:
θ ^ ( t ) = θ ( t 0 ) + t 0 t ω ^ ( t ) d t
where: θ ( t 0 ) is the initial value of the rotor position relative to a fixed reference point.
The estimate of the load torque can also be obtained in the form of the following equation, where x1 and x2 represent the states of the ESO-type observer:
T ^ L = J B J x 1 x 2
In the following section, a method is proposed to improve the estimation of the PMSM rotor speed, by replacing Equation (43), which was used to estimate the load torque TL with a multiple NN trained on the specific portions of the load torque variation.

5.2. Load Torque Estimation Using Multiple NN

TL load torque estimation is performed using multiple NNs, each of which is a two-layer feed-forward network [30,31]. The Neural Net Fitting application from MATLAB is used in the implementation and proper training of each NN over 5 load torque ranges TL, i.e., between 0 Nm and 1 Nm. After the numerical simulation on a predetermined interval in the load torque range specified above, the input data of each NN, namely the PMSM rotor speed ω, the derivative of the PMSM rotor speed /dt, id and iq currents from d-q frame, but also the output of each NN given by the load torque required to generate and train it, were recorded. Therefore, in the Neural Net Fitting application, the input data, represented by sets of 500,000 values for each variable, is divided into 70% data needed for training, 15% data needed for validation, and 15% data needed for testing.
The algorithm chosen for training, validation, and testing is Bayesian regularization. This type of algorithm minimizes a linear combination of squared errors and weights. It also modifies the linear combination so that, at the end of training, the resulting network has good generalization qualities. After generating the required 5 NNs in the selected load torque range, each NN is selected using a stateflow implemented in MATLAB [30,31]. Figure 22 shows the MATLAB/Simulink subsystem implementation of multiple NN for load torque estimation and selection. Implementation of a NN for load torque estimation in the Neural Net Fitting app from MATLAB is shown in Figure 23. Details of this implementation, in terms of the block diagram of a NN for load torque estimation, represented by two-layer feed-forward network with sigmoid hidden neurons (150) and linear output neurons for regression tasks, is shown in Figure 23a, while Figure 23b shows the Simulink NN exported model for load torque estimation, and this stage is performed using the Neural Net Fitting application after the process of training, validation and testing of each NN.
The number of epochs used in the training phase is 1000, and the learning rate is 0.1. Figure 24 shows the best validation performance, which represents the mean square error (MSE) values obtained on the entire data set selected for training, validation and testing during the iterative calculation process. Therefore, it can be seen that, at epoch 518, a MSE value of 0.00031339 is obtained from the total computation period of the Bayesian regularization algorithm. Figure 25 shows the evolution of the gradient in the iterative calculation algorithm, and it can be seen that, when applying the NN algorithm that provides the load torque estimation at epoch 524, the gradient value is 0.00001489.
Figure 26 shows the sample error distribution in the iterative calculation process. It can be seen that the sample error corresponding to an NN for load torque estimation is distributed between values of ±0.01. The regression analysis diagrams of the training sample data, test sample data, and the entire data set during the application of the Bayesian regularization type algorithm, are shown in Figure 27. It can be seen that the correlation factor R value corresponding to a NN for load torque estimation is around the value of 0.94.
Figure 28 shows the load torque and estimated load torque using multiple NN estimation time evolution after numerical simulation of the PMSM control system for the following load torque sequence [0.1, 0.7, 0.9, 0.5, 0.3] Nm. It can be seen that the multiple NN estimation is very good, which creates the conditions for obtaining superior PMSM rotor speed estimation results when the load torque is provided by multiple NNs in the ESO observer structure.

5.3. Improved Estimation of PMSM Rotor Speed Using ESO-Type Observer and RL-TD3 Agent

Similar to using an RL-TD3 agent to improve the performance of the PMSM control system, an agent whose implementation is shown in Figure 29 is selected and its reward is defined by the following relation [32,33]:
r E S O = Q ω e r r o r 2 + R j u t 1 j 2
where Q = 0.5, R = 0.1, and u t 1 j is the history of previous weighted actions.
Figure 30 shows the evolution of the performance of the RL-TD3 agent algorithm during the training phase over a period of 200 episodes. After the RL-TD3 agent training stage, it will cooperate with the ESO-type observer in the sense that the RL-TD3 agent will provide correction signals that overlap the value of the rotor speed estimation provided by the ESO-type observer itself, thus achieving superior performance to the PMSM rotor speed estimation. Thus, by implementing this observer variant, an improvement in rotor speed estimation is achieved for the sensorless variant of the PMSM control structure.

6. Numerical Simulation of the PMSM Sensorless Control System

MATLAB/Simulink implementation of the proposed PMSM sensorlesss control system based on robust controller combined with RL-TD3 agent for improvement in ud and uq command using improved ESO-types version observers for speed estimation is shown in Figure 31. Figure 32 shows the MATLAB/Simulink subsystem implementation for ESO-type basic version observer for PMSM rotor speed estimation.
For an evolution of the PMSM rotor speed, reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm over the time interval 0–1s, sequenced as [0, 0.25, 0.5, 0.75, 1] s, Figure 33, Figure 34, Figure 35 and Figure 36 show the time evolution parameters of PMSM sensorless control system based on a robust controller with an RL-TD3 agent for four versions of the ESO-type observer for rotor speed estimation presented in Section 5.
The comparison between the time evolution of the PMSM rotor speed estimates using the four observer variants and the time evolution of the measured PMSM rotor speed is shown in Figure 37.
Table 3 summarizes the comparative performance of the four observer variants of the PMSM rotor speed and measured PMSM rotor speed as a function of the response time and estimated speed ripple. Note that the error ripple for an analyzed variable, relative to the reference variable, can be associated with the root mean square (RMS) value of the error between the two signals. While, in Table 2, the error ripple was calculated for the error signal given by the reference rotor speed and the measured rotor speed, in Table 3 the error ripple is calculated for the error signal given by the measured rotor speed and the estimated rotor speed. It can be noted that the best performance in PMSM rotor speed estimation, in terms of the lowest estimated response time and speed ripple, is obtained when using the ESO-type observer with the load torque estimated using the multiple NN observer combined with the RL-TD3 agent.

7. Conclusions

Naturally, PMSM operation is subject to a number of perturbations, including both changes in internal parameters (e.g., stator resistance Rs and combined inertia of rotor and load J) and changes in load torque TL. In order to maintain the performance of the control system over a relatively wide range of variation of the above types of parameters, a PMSM control system based on a robust controller is used. The article also presents the synthesis of the robust controller, its implementation in MATLAB/Simulink, and an improved version using an RL-TD3 agent that works in tandem with the robust controller to achieve superior performance of the PMSM sensored control system.
Regarding the sensorless control of the PMSM, starting from a basic structure of an ESO-type observer, four variants of observers are presented, obtained by combining the use of a multiple NN and an RL-TD3 agent.
Future work proposes the implementation in real time and the optimization of the performance, both in terms of control and in terms of PMSM rotor speed estimation, by modifying the robust control weights accordingly, and implementing multiple NN and reward of the RL-TD3 agent.

Author Contributions

Conceptualization, M.N. and C.-I.N.; Data curation, M.N., C.-I.N., C.I., D.Ș. and M.R.; Formal analysis, M.N., C.-I.N., C.I., D.Ș. and M.R.; Funding acquisition, M.N.; Investigation, M.N. and C.-I.N.; Methodology, M.N., C.-I.N., C.I., D.Ș. and M.R.; Project administration, M.N.; Resources, M.N. and C.-I.N.; Software, M.N. and C.-I.N.; Supervision, M.N. and C.I.; Validation, M.N., C.-I.N., C.I. and D.Ș.; Visualization, M.N., C.-I.N., D.Ș. and M.R.; Writing—original draft, M.N., C.-I.N., C.I., D.Ș. and M.R.; Writing—review & editing, M.N. and C.-I.N. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was elaborated as part of the “NUCLEU Program within the framework of the National Research, Development and Innovation Plan for 2022–2027, developed with the support of Ministry of Research, Innovation and Digitization, Project No PN 23 33 02 04”.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Krishnan, R. Permanent Magnet Synchronous and Brushless DC Motor Drives; CRC Press/Taylor & Francis: Boca Raton, FL, USA, 2017. [Google Scholar]
  2. Bose, B.K. Modern Power Electronics and AC Drives; Prentice Hall PTR: Hoboken, NJ, USA, 2002. [Google Scholar]
  3. Zhang, X.; Wang, C.; Wang, T.; Wang, G.; Song, Z.; Huang, J. Research on the control strategy of five-phase fault-tolerant servo system for aerospace. In Proceedings of the CSAA/IET International Conference on Aircraft Utility Systems (AUS 2020), Online, 18–21 September 2020; pp. 1090–1094. [Google Scholar]
  4. Lekshmi, S.; Lal Priya, P.S. Range Extension of Electric Vehicles with Independently Driven Front and Rear PMSM Drives by Optimal Driving and Braking Torque Distribution. In Proceedings of the IEEE International Conference on Power Electronics, Smart Grid and Renewable Energy (PESGRE2020), Cochin, India, 2–4 January 2020; pp. 1–6. [Google Scholar]
  5. Golesorkhie, F.; Yang, F.; Vlacic, L.; Tansley, G. Field Oriented Control-Based Reduction of the Vibration and Power Consumption of a Blood Pump. Energies 2020, 13, 3907. [Google Scholar] [CrossRef]
  6. Tang, X.; Zhang, Z.; Liu, X.; Liu, C.; Jiang, M.; Song, Y. A Novel Field-Oriented Control Algorithm for Permanent Magnet Synchronous Motors in 60° Coordinate Systems. Actuators 2023, 12, 92. [Google Scholar] [CrossRef]
  7. Guo, J.; Fan, T.; Li, Q.; Wen, X. An Angle-Compensating, Complex-Coefficient PI Controller Used for Decoupling Control of a Permanent-Magnet Synchronous Motor. Symmetry 2022, 14, 101. [Google Scholar] [CrossRef]
  8. Wei, Z.; Zhao, M.; Liu, X.; Lu, M. A Novel Variable-Proportion Desaturation PI Control for Speed Regulation in Sensorless PMSM Drive System. Appl. Sci. 2022, 12, 9234. [Google Scholar] [CrossRef]
  9. Huang, Y.; Zhang, J.; Chen, D.; Qi, J. Model Reference Adaptive Control of Marine Permanent Magnet Propulsion Motor Based on Parameter Identification. Electronics 2022, 11, 1012. [Google Scholar] [CrossRef]
  10. Vujji, A.; Dahiya, R. Speed Estimator for Direct Torque and Flux Control of PMSM Drive using MRAC based on Rotor flux. In Proceedings of the IEEE 9th Power India International Conference (PIICON), Sonepat, India, 28 February–1 March 2020; pp. 1–6. [Google Scholar]
  11. Park, J.-H.; Lim, H.-S.; Lee, G.-H.; Lee, H.-H. A Study on the Optimal Control of Voltage Utilization for Improving the Efficiency of PMSM. Electronics 2022, 11, 2095. [Google Scholar] [CrossRef]
  12. 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]
  13. Wang, Y.; Li, H.; Yang, L.; Wang, X. Modulated Model-Free Predictive Control with Minimum Switching Losses for PMSM Drive System. IEEE Access 2020, 8, 20942–20953. [Google Scholar] [CrossRef]
  14. Zhou, C.; Yu, F.; Zhu, C.; Mao, J. Sensorless Predictive Current Control of a Permanent Magnet Synchronous Motor Powered by a Three-Level Inverter. Appl. Sci. 2021, 11, 10840. [Google Scholar] [CrossRef]
  15. Kakouche, K.; Rekioua, T.; Mezani, S.; Oubelaid, A.; Rekioua, D.; Blazek, V.; Prokop, L.; Misak, S.; Bajaj, M.; Ghoneim, S.S.M. Model Predictive Direct Torque Control and Fuzzy Logic Energy Management for Multi Power Source Electric Vehicles. Sensors 2022, 22, 5669. [Google Scholar] [CrossRef]
  16. Masoud, U.M.M.; Tiwari, P.; Gupta, N. Designing of an Enhanced Fuzzy Logic Controller of an Interior Permanent Magnet Synchronous Generator under Variable Wind Speed. Sensors 2023, 23, 3628. [Google Scholar] [CrossRef]
  17. Regaya, C.B.; Farhani, F.; Zaafouri, A.; Chaari, A. Adaptive Proportional-Integral Fuzzy Logic Controller of Electric Motor Drive. Eng. Rev. 2021, 42, 26–40. [Google Scholar] [CrossRef]
  18. Hoai, H.-K.; Chen, S.-C.; Chang, C.-F. Realization of the Neural Fuzzy Controller for the Sensorless PMSM Drive Control System. Electronics 2020, 9, 1371. [Google Scholar] [CrossRef]
  19. Farhani, F.; Regaya, C.B.; Zaafouri, A.; Chaari, A. Real Time PI-Backstepping Induction Machine Drive with Efficiency optimization. ISA Trans. 2017, 70, 348–356. [Google Scholar] [CrossRef] [PubMed]
  20. Zhu, Y.; Tao, B.; Xiao, M.; Yang, G.; Zhang, X.; Lu, K. Luenberger Position Observer Based on Deadbeat-Current Predictive Control for Sensorless PMSM. Electronics 2020, 9, 1325. [Google Scholar] [CrossRef]
  21. Gao, W.; Zhang, G.; Hang, M.; Cheng, S.; Li, P. Sensorless Control Strategy of a Permanent Magnet Synchronous Motor Based on an Improved Sliding Mode Observer. World Electr. Veh. J. 2021, 12, 74. [Google Scholar] [CrossRef]
  22. Comanescu, M.; Xu, L. Sliding-mode MRAS speed estimators for sensorless vector control of induction Machine. IEEE Trans. Ind. Electron. 2006, 53, 146–153. [Google Scholar] [CrossRef]
  23. Urbanski, K.; Janiszewski, D. Sensorless Control of the Permanent Magnet Synchronous Motor. Sensors 2019, 19, 3546. [Google Scholar] [CrossRef] [Green Version]
  24. Gu, D.-W.; Petkov, P.H.; Konstantinov, M.M. Robust Control Design with MATLAB (Advanced Textbooks in Control and Signal Processing), 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  25. Cai, R.; Zheng, R.; Liu, M.; Li, M. Robust Control of PMSM Using Geometric Model Reduction and μ-Synthesis. IEEE Trans. Ind. Electron. 2018, 65, 498–509. [Google Scholar] [CrossRef]
  26. MathWorks—Robust Control Toolbox. Available online: https://www.mathworks.com/products/robust.html (accessed on 23 November 2021).
  27. Mendoza-Mondragón, F.; Hernández-Guzmán, V.M.; Rodríguez-Reséndiz, J. Robust Speed Control of Permanent Magnet Synchronous Motors Using Two-Degrees-of-Freedom Control. IEEE Trans. Ind. Electron. 2018, 65, 6099–6108. [Google Scholar] [CrossRef]
  28. Nicola, M.; Nicola, C.-I.; Ionete, C.; Șendrescu, D.; Roman. Improved Performance for PMSM Control Based on Robust Controller and Reinforcement Learning. In Proceedings of the 26th International Conference on System Theory, Control and Computing (ICSTCC), Sinaia, Romania, 19–21 October 2022; pp. 207–212. [Google Scholar]
  29. Nicola, C.-I.; Nicola, M.; Selișteanu, D. Sensorless Control of PMSM Based on Backstepping-PSO-Type Controller and ESO-Type Observer Using Real-Time Hardware. Electronics 2021, 10, 2080. [Google Scholar] [CrossRef]
  30. Nicola, M.; Nicola, C.-I.; Duţă, M. Sensorless Control of PMSM using FOC Strategy Based on Multiple ANN and Load Torque Observer. In Proceedings of the International Conference on Development and Application Systems (DAS), Suceava, Romania, 21–23 May 2020; pp. 32–37. [Google Scholar]
  31. MathWorks—Deep Learning Toolbox—Neural Net Fitting. Available online: https://www.mathworks.com/help/deeplearning/neuralnetfitting-app.html (accessed on 20 April 2020).
  32. Nicola, M.; Nicola, C.-I. Improvement of PMSM Control Using Reinforcement Learning Deep Deterministic Policy Gradient Agent. In Proceedings of the 21st International Symposium on Power Electronics (Ee), Novi Sad, Serbia, 27–30 October 2021; pp. 1–6. [Google Scholar]
  33. MathWorks—Twin-Delayed Deep Deterministic Policy Gradient Reinforcement Learning Agent. Available online: https://www.mathworks.com/help/reinforcement-learning/ug/td3-agents.html (accessed on 12 September 2021).
  34. Nicola, M.; Nicola, C.-I.; Sacerdoțianu, D.; Vintilă, A. Comparative Performance of UPQC Control System Based on PI-GWO, Fractional Order Controllers, and Reinforcement Learning Agent. Electronics 2023, 12, 494. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of the FOC-type strategy for the PMSM control system based on PI-type controllers.
Figure 1. Schematic diagram of the FOC-type strategy for the PMSM control system based on PI-type controllers.
Sensors 23 05799 g001
Figure 2. Schematic diagram of the proposed PMSM sensorless control system based on a robust controller and an RL-TD3 agent algorithm, using an improved ESO-type observer combined with a multiple NN load torque estimation and an RL-TD3 agent for speed estimation.
Figure 2. Schematic diagram of the proposed PMSM sensorless control system based on a robust controller and an RL-TD3 agent algorithm, using an improved ESO-type observer combined with a multiple NN load torque estimation and an RL-TD3 agent for speed estimation.
Sensors 23 05799 g002
Figure 3. Schematic for the PMSM robust control.
Figure 3. Schematic for the PMSM robust control.
Sensors 23 05799 g003
Figure 4. Schematic for the generalized plant.
Figure 4. Schematic for the generalized plant.
Sensors 23 05799 g004
Figure 5. Schematic of the extended system.
Figure 5. Schematic of the extended system.
Sensors 23 05799 g005
Figure 6. Diagram of MATLAB/Simulink model block for the proposed PMSM sensored control system using a robust controller.
Figure 6. Diagram of MATLAB/Simulink model block for the proposed PMSM sensored control system using a robust controller.
Sensors 23 05799 g006
Figure 7. Graphical representation for Bode plots: (a) the transfer function from ωref to z1; and (b) the transfer function from TL to z1.
Figure 7. Graphical representation for Bode plots: (a) the transfer function from ωref to z1; and (b) the transfer function from TL to z1.
Sensors 23 05799 g007
Figure 8. Time evolution parameters of the PMSM sensored control system using a PI controller for rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm.
Figure 8. Time evolution parameters of the PMSM sensored control system using a PI controller for rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm.
Sensors 23 05799 g008
Figure 9. Comparison of the time evolution of the rotor speed for the PMSM sensored control system using the PI controller and the robust controller, for a rotor speed reference ωref = [1000, 1200, 1400, 1000] rpm and load torque TL = 0.5 Nm.
Figure 9. Comparison of the time evolution of the rotor speed for the PMSM sensored control system using the PI controller and the robust controller, for a rotor speed reference ωref = [1000, 1200, 1400, 1000] rpm and load torque TL = 0.5 Nm.
Sensors 23 05799 g009
Figure 10. Comparison of the time evolution of the rotor speed for the PMSM sensored control system using the PI controller and the robust controller, for a rotor speed reference ωref = [1000, 1300, 1700, 900] rpm and load torque TL = 1 Nm.
Figure 10. Comparison of the time evolution of the rotor speed for the PMSM sensored control system using the PI controller and the robust controller, for a rotor speed reference ωref = [1000, 1300, 1700, 900] rpm and load torque TL = 1 Nm.
Sensors 23 05799 g010
Figure 11. Block diagram of the MATLAB/Simulink implementation of the proposed PMSM sensored control system using a robust controller plus RL-TD3 agent.
Figure 11. Block diagram of the MATLAB/Simulink implementation of the proposed PMSM sensored control system using a robust controller plus RL-TD3 agent.
Sensors 23 05799 g011
Figure 12. MATLAB/Simulink subsystem implementation of the RL-TD3 agent for improvement in robust controller ud and uq command.
Figure 12. MATLAB/Simulink subsystem implementation of the RL-TD3 agent for improvement in robust controller ud and uq command.
Sensors 23 05799 g012
Figure 13. RL-TD3 agent performance evolution for ud and uq command improvement.
Figure 13. RL-TD3 agent performance evolution for ud and uq command improvement.
Sensors 23 05799 g013
Figure 14. Time evolution parameters of the PMSM sensored control system using robust controller, for a rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm.
Figure 14. Time evolution parameters of the PMSM sensored control system using robust controller, for a rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm.
Sensors 23 05799 g014
Figure 15. Time evolution parameters of the PMSM control system based on robust controller with RL-TD3 agent, for rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm.
Figure 15. Time evolution parameters of the PMSM control system based on robust controller with RL-TD3 agent, for rotor speed reference ωref = [1000, 1250, 1500, 900] rpm and load torque TL = 0.5 Nm.
Sensors 23 05799 g015
Figure 16. Time evolution parameters of the PMSM sensored control system using robust controller plus RL-TD3 agent, for a rotor speed reference ωref = [1000, 1250, 1500, 900] rpm, load torque TL = 1 Nm, and 50% increase in J parameter.
Figure 16. Time evolution parameters of the PMSM sensored control system using robust controller plus RL-TD3 agent, for a rotor speed reference ωref = [1000, 1250, 1500, 900] rpm, load torque TL = 1 Nm, and 50% increase in J parameter.
Sensors 23 05799 g016
Figure 17. Comparison of the time evolution of rotor speed for the PMSM sensored control system using PI controller, robust controller, and robust controller plus RL-TD3 agent.
Figure 17. Comparison of the time evolution of rotor speed for the PMSM sensored control system using PI controller, robust controller, and robust controller plus RL-TD3 agent.
Sensors 23 05799 g017
Figure 18. DF of the rotor speed signal in the case of using the PI controller for the PMSM control system.
Figure 18. DF of the rotor speed signal in the case of using the PI controller for the PMSM control system.
Sensors 23 05799 g018
Figure 19. DF of the rotor speed signal in the case of using the robust controller for the PMSM control system.
Figure 19. DF of the rotor speed signal in the case of using the robust controller for the PMSM control system.
Sensors 23 05799 g019
Figure 20. DF of the rotor speed signal in the case of using the robust controller combined with the RL-TD3 agent for the PMSM control system.
Figure 20. DF of the rotor speed signal in the case of using the robust controller combined with the RL-TD3 agent for the PMSM control system.
Sensors 23 05799 g020
Figure 21. ESO-type observer block diagram. The red dotted lines highlight the output quantities of the observer.
Figure 21. ESO-type observer block diagram. The red dotted lines highlight the output quantities of the observer.
Sensors 23 05799 g021
Figure 22. MATLAB/Simulink subsystem implementation of multiple NN for load torque estimation and selection using stateflow. “*” is specific to the multi switch block in Simulink and represents the default selection.
Figure 22. MATLAB/Simulink subsystem implementation of multiple NN for load torque estimation and selection using stateflow. “*” is specific to the multi switch block in Simulink and represents the default selection.
Sensors 23 05799 g022
Figure 23. Implementation of an NN for load torque estimation in Neural Network Fitting toolbox from MATLAB: (a) block diagram of a NN for load torque estimation; (b) Simulink NN exported model for load torque estimation.
Figure 23. Implementation of an NN for load torque estimation in Neural Network Fitting toolbox from MATLAB: (a) block diagram of a NN for load torque estimation; (b) Simulink NN exported model for load torque estimation.
Sensors 23 05799 g023
Figure 24. Best performance validation of a neural fitting network for load torque estimation.
Figure 24. Best performance validation of a neural fitting network for load torque estimation.
Sensors 23 05799 g024
Figure 25. Training stage of a neural fitting network for load torque estimation.
Figure 25. Training stage of a neural fitting network for load torque estimation.
Sensors 23 05799 g025
Figure 26. Error histogram after training stage of a neural fitting network for load torque estimation.
Figure 26. Error histogram after training stage of a neural fitting network for load torque estimation.
Sensors 23 05799 g026
Figure 27. Regression factor after training, validation, and testing stages of a neural fitting network for load torque estimation.
Figure 27. Regression factor after training, validation, and testing stages of a neural fitting network for load torque estimation.
Sensors 23 05799 g027
Figure 28. Load torque and estimated load torque using a multiple NN estimation time evolution.
Figure 28. Load torque and estimated load torque using a multiple NN estimation time evolution.
Sensors 23 05799 g028
Figure 29. MATLAB/Simulink subsystem implementation of the RL-TD3 agent for improvement in PMSM rotor speed estimation.
Figure 29. MATLAB/Simulink subsystem implementation of the RL-TD3 agent for improvement in PMSM rotor speed estimation.
Sensors 23 05799 g029
Figure 30. Performance evolution for the RL-TD3 agent for improvement in PMSM rotor speed estimation.
Figure 30. Performance evolution for the RL-TD3 agent for improvement in PMSM rotor speed estimation.
Sensors 23 05799 g030
Figure 31. MATLAB/Simulink implementation of the proposed PMSM sensorlesss control system based on a robust controller combined with an RL-TD3 agent for improvement in ud and uq command, using improved ESO-types version observers for speed estimation. “*” is specific to the multi switch block in Simulink and represents the default selection.
Figure 31. MATLAB/Simulink implementation of the proposed PMSM sensorlesss control system based on a robust controller combined with an RL-TD3 agent for improvement in ud and uq command, using improved ESO-types version observers for speed estimation. “*” is specific to the multi switch block in Simulink and represents the default selection.
Sensors 23 05799 g031
Figure 32. MATLAB/Simulink subsystem implementation for an ESO-type basic version observer for PMSM rotor speed estimation. The red dotted lines highlight the output quantities of the observer.
Figure 32. MATLAB/Simulink subsystem implementation for an ESO-type basic version observer for PMSM rotor speed estimation. The red dotted lines highlight the output quantities of the observer.
Sensors 23 05799 g032
Figure 33. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using the ESO-type basic version observer for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Figure 33. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using the ESO-type basic version observer for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Sensors 23 05799 g033
Figure 34. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using an ESO-type version observer with a multiple NN observer for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Figure 34. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using an ESO-type version observer with a multiple NN observer for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Sensors 23 05799 g034
Figure 35. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using an ESO-type version observer combined with an RL-TD3 agent observer for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Figure 35. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using an ESO-type version observer combined with an RL-TD3 agent observer for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Sensors 23 05799 g035
Figure 36. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using an ESO-type version with a multiple NN observer combined with an RL-TD3 agent for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Figure 36. Time evolution parameters of the PMSM sensorless control system based on a robust controller with an RL-TD3 agent, using an ESO-type version with a multiple NN observer combined with an RL-TD3 agent for rotor speed estimation; rotor speed reference ωref = [500, 800, 1100, 700] rpm and load torque TL = [0.1, 0.7, 0.9, 0.5, 0.3] Nm.
Sensors 23 05799 g036
Figure 37. Comparison of the time evolution for the rotor speed in a sensored case, and estimated rotor speeds in sensorless cases (improved ESO-types version observers) for the PMSM control system based on a robust controller with an RL-TD3 agent.
Figure 37. Comparison of the time evolution for the rotor speed in a sensored case, and estimated rotor speeds in sensorless cases (improved ESO-types version observers) for the PMSM control system based on a robust controller with an RL-TD3 agent.
Sensors 23 05799 g037
Table 1. PMSM nominal parameters used in numerical simulation.
Table 1. PMSM nominal parameters used in numerical simulation.
ParameterValueUnit
Stator resistance—Rs2.875Ω
Inductances on d-q rotating reference frame—Ld and Lq0.0085H
Combined inertia of rotor and load—J0.008kg·m2
Combined viscous friction of rotor and load—B0.005N·m·s/rad
Flux induced by the permanent magnets of the rotor in the stator phases—λ00.175Wb
PMSM Pole pairs number—nP4-
Table 2. Performances of proposed controllers for PMSM sensored control system.
Table 2. Performances of proposed controllers for PMSM sensored control system.
Controller Used in PMSM Sensored Control SystemResponse Time
[ms]
Rotor Speed Ripple
[rpm]
DF of Rotor Speed Signal
PI controller30.1108.10.95548 +/− 0.118370
Robust controller22.987.30.97560 +/− 0.053594
Robust controller combined with RL-TD3 agent18.252.40.99204 +/− 0.023511
Table 3. Performances of proposed speed observers for PMSM sensorless control system.
Table 3. Performances of proposed speed observers for PMSM sensorless control system.
ObserverResponse Time
[ms]
Improved of Response Time in Comparison with ESO-Type Basic Version Observer
[%]
Estimated Speed Ripple
[rpm]
Improved of Speed Ripple in Comparison with ESO-Type Basic Version Observer
[%]
ESO-type basic version observer30.73.43
ESO-type version observer with load torque estimated using multiple NN observer 27.4112.4827
ESO-type version observer combined RL-TD3 agent23.5241.8546
ESO-type version observer with load torque estimated using multiple NN observer combined with RL-TD3 agent 21.1321.3959
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

Nicola, M.; Nicola, C.-I.; Ionete, C.; Șendrescu, D.; Roman, M. Improved Performance for PMSM Sensorless Control Based on Robust-Type Controller, ESO-Type Observer, Multiple Neural Networks, and RL-TD3 Agent. Sensors 2023, 23, 5799. https://doi.org/10.3390/s23135799

AMA Style

Nicola M, Nicola C-I, Ionete C, Șendrescu D, Roman M. Improved Performance for PMSM Sensorless Control Based on Robust-Type Controller, ESO-Type Observer, Multiple Neural Networks, and RL-TD3 Agent. Sensors. 2023; 23(13):5799. https://doi.org/10.3390/s23135799

Chicago/Turabian Style

Nicola, Marcel, Claudiu-Ionel Nicola, Cosmin Ionete, Dorin Șendrescu, and Monica Roman. 2023. "Improved Performance for PMSM Sensorless Control Based on Robust-Type Controller, ESO-Type Observer, Multiple Neural Networks, and RL-TD3 Agent" Sensors 23, no. 13: 5799. https://doi.org/10.3390/s23135799

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