583
Views
0
CrossRef citations to date
0
Altmetric
Electrical & Electronic Engineering

Machine learning techniques for vector control of permanent magnet synchronous motor drives

&
Article: 2323813 | Received 18 Apr 2023, Accepted 22 Feb 2024, Published online: 06 Mar 2024

Abstract

In the conventional vector control technique for motor drive, Proportional-Integral (PI) controllers are being used, which are sensitive to parameter variations of the drive system. This article presents Machine Learning (ML)-based controllers for a surface permanent magnet synchronous motor (PMSM) drive system. In this work, ML-based regression algorithms such as linear regression, support vector machine regression and feedforward neural network are investigated for speed control application. The entire vector control scheme implementing the ML-based control algorithms is investigated theoretically and simulated under various dynamic operating conditions. Simulation results and performance metrics are compared with those of the conventional PI controller, and they validate the effectiveness of the proposed control algorithms for speed control applications. The proposed ML-based controllers have the ability to meet the speed tracking requirements in the closed-loop system, with performance metrics superior to those of the PI controller, by an average value of 20% for different test scenarios. The transient levels of the motor drive reduce by 0.02% while using the proposed controllers.

1. Introduction

Permanent magnet synchronous motors (PMSM) are a suitable option for the automobile sector because of their efficiency, compactness and dependability (Raia et al., Citation2021; Sorial et al., Citation2021). Durability, high power density, prolonged lifetime, less maintenance and low noise are some of the other benefits. However, the cost of the motor is higher compared to its peers (Jung et al., Citation2015; Pillay & Krishnan, Citation1989; Qutubuddin & Yadaiah, Citation2018; Rind et al., Citation2017; Soliman, Citation2019). The motor current control methods, as well as the hardware design, determine the overall performance of a PMSM drive (Li et al., Citation2020; Liu & Luo, Citation2017). As far as control technique is concerned, direct torque control, V/f control, vector control and artificial intelligence (AI)-based control are some of the key control methodologies for the motor.

The V/f control technique is affordable, easy to implement and can be used in both open-loop and closed-loop applications. However, it gives poor performance at low speeds. The vector control is the most commonly used control technique and can be used over larger speed variations, starting from low speeds (Hannan et al., Citation2018; Rind et al., Citation2017). It employs either Proportional-Integral (PI) or Proportional-Integral-Derivative (PID) controllers to perform the control operation. The designing procedure and practical implementation are simple for these controllers. However, their gain values are fixed and they are susceptible to system uncertainties and require an accurate mathematical model to determine controller gains (Jung et al., Citation2015; Qutubuddin & Yadaiah, Citation2017).

On the other hand, AI-based controllers can be used even if the system is ill-defined and can be trained using sufficient data. The Adaptive Neural Fuzzy Inference System, Artificial Neural Network and Genetic Algorithm are some of the AI control methods used for control applications (Hannan et al., Citation2018). With the emergence of graphics processing units, space constraints and the training-learning method of AI-based controllers, which are time-consuming, have been addressed (Karim et al., Citation2019).

Machine learning (ML) is a category of AI that can convert knowledge into expertise or uncover useful patterns in enormous volumes of data. This technique uses domain knowledge rather than mathematical modeling to train and produce an ML model (Jaffar et al., Citation2020; Morais & Pedro, Citation2018). ML approaches are broadly classified as unsupervised, semi-supervised, supervised and reinforcement learning. Supervised learning is further divided into regression and classification techniques. Regression techniques are for continuous output problems while classification is for discrete output problems (Dahrouj et al., Citation2021; Daliya et al., Citation2021; Simeone, Citation2018). Some of the most popular ML regression methods are decision trees, linear regression (LR), neural networks (NN), random forests and support vector machines (SVMs) (Farsi et al., Citation2021; Mahmud et al., Citation2021).

The main benefit of the regression techniques is that they perform better on smaller datasets (Jaffar et al., Citation2020), but NNs can also learn intricate correlations between features and targets (Hannan et al., Citation2018). The speed control of a motor drive can be modeled as a regression problem. Some of the aforementioned regression approaches are examined in this work for speed control of PMSM drive.

The following are the key goals of this article:

  1. To design a current controller based on ML that uses less complex circuitry.

  2. To investigate the possibility of multiple ML regression approaches for effectively controlling the PMSM motor drive used in electric vehicles (EV).

  3. To propose an alternative to the conventional controller utilized in industry, from the developing field of AI.

This article is organized as follows: Section 2 discusses the theoretical aspects of PMSM drive, whereas Section 3 describes the conventional vector control approach. Section 4 describes the proposed method as well as the ML algorithms used. Section 5 analyzes the validity of the proposed AI model using several conditions, and Section 6 presents the conclusion.

2. PMSM model

For a PMSM drive, its mathematical model has an electrical component and a mechanical component (Butt & Rahman, Citation2013; Li et al., Citation2020; Qutubuddin & Yadaiah, Citation2017; Sorial et al., Citation2021). EquationEquation (1) provides the electrical component of the synchronously rotating coordinate system (dq-axis). (1) (vsdvsq)=(Rs+LdddtweLqweLdRs+Lqddt)(idiq)+(0weψf)(1) where the stator resistance is given by Rs, ωe is electrical motor speed; dq-axes instant stator voltage are given by vsd, vsq; id, iq are d and q components of instant stator current; Ld, Lq are the stator and rotor d- and q-axis inductances; and ψf is the flux linkage produced by the permanent magnet (PM).

The mechanical component of the PMSM drive is given by the following torque equations: (2) Te=Jeqdwmdt+Bawm+TL(2) where Jeq is the inertia of the motor, ωm is the motor rotational speed, Ba is the friction coefficient, TL is load torque and Te is electromagnetic drive torque. (3) Te=3P2[ψfiq+(LdLq)idiq](3) where P is the pole pairs in the motor. Ld = Lq in a surface PMSM type motor.

EquationEquations (4) and Equation(5) give the relations between motor speeds and rotor angle θe. (4) we=wm*P(4) (5) θe=we dt (5)

3. Conventional vector control

For PMSM drives, vector control method is referred to as field-oriented control and recommended due to its superior performance across a broad speed range. The stator current is divided into torque and flux current components using this method. schematically depicts this control method used in the PMSM motor drive.

Figure 1. Conventional vector control.

Figure 1. Conventional vector control.

By rearranging EquationEquations (1)–(3), the transfer functions needed to design the PI controllers are obtained. The following is the transfer function that can be used to obtain the controller parameters in a surface PMSM drive: (6) TFw=ψf.P( Ba+s.Jeq)(6)

During the control process, the compensation terms (–weLqiq, weLdid, weΨf) are employed for fully decoupling the stator current into the torque and flux current components. But, they are ignored while designing the current-loop PI controllers. EquationEquations (7) and Equation(8) give the transfer functions for these controllers. In the final stage of the current loop, the compensation term needs to add with the outputs of the current. This prevents errors brought on by decoupling (Brejl & Princ, Citation2012; Hu et al., Citation2019; Li & Liu, Citation2019; Li et al., Citation2020; Liu & Luo, Citation2017). The gains for the PI controllers are obtained by Ziegler–Nicholas tuning method in the conventional technique (Qutubuddin & Yadaiah, Citation2017). (7) TFid=1( Rs+s.Ld)(7) (8) TFiq=1( Rs+s.Lq)(8)

4. Proposed ML-based control

4.1. ML-based control technique

displays a vector control method based on ML regression techniques for the PMSM drive. In the proposed method, the current loop uses ML-based controllers instead of PI controllers. However, the speed loop remains the same (Li et al., Citation2020; Qutubuddin & Yadaiah, Citation2017).

Figure 2. Proposed ML-based control method.

Figure 2. Proposed ML-based control method.

The steps to design the proposed controller is as follows: (i) modeling the drive system (ii) ML model comparable to the conventional controller dynamics and (iii) training of the ML controller (Li et al., Citation2020). outlines the structure for training and validating the ML models.

Figure 3. Proposed ML model framework.

Figure 3. Proposed ML model framework.

4.2. Training the ML controllers

Deep Learning ToolboxTM in MATLAB is used to train the ML models. A 600,000-sample training dataset is derived using a conventional model with PI current controllers, which is operated under the rated conditions, as

well as in the presence of load disturbances and speed changes. Together with a few independent samples, a portion of the dataset is used to test the model. The test sample size ranges between 50,000 and 200,000.

The ML block receives the dq-axes current error terms and their integrals as input signals. There is no need to process the compensation terms further because they are taken into consideration when determining outputs from ML model (Li et al., Citation2020). Consequently, this lowers the control algorithm’s complexity. When used in a PMSM drive, the trained ML controller can easily replace and operate similarly to a PI controller.

For estimating dq-axes reference voltages, LR and SVM algorithms each require two models, while a single model can be used for NN. This is because LR and SVM are single output networks, while the NN model can be a multi-output model. depicts the proposed ML model. gives the tuned parameters for each ML model. The hyperparameters for each ML model are determined by manually experimenting with various parameter combinations (from the options in the Toolbox) and then validating with the test dataset. The number of neurons and hidden layers in the NN model are determined by a trial-and-error process.

Figure 4. Layout of proposed ML model.

Figure 4. Layout of proposed ML model.

Table 1. Hyperparameter settings for ML models.

4.2.1. Linear regression

The linear regression (LR) method is one of the most commonly used algorithm that represents the correlation between data by drawing a line through the data with the least value of Mean Square Error loss (Alquthami et al., Citation2022; Farsi et al., Citation2021; Gutierrez-Gomez et al., Citation2020; Mahmud et al., Citation2021). In EquationEquation (9), y represents the output of the LR model, xi represents the input; θi is the weight of each ith input, θ0 is the bias; and N represents the number of features in the dataset (Jaffar et al., Citation2020). (9) y=θ0+i=1Nθixi (9)

The function ‘fitrlinear’ is used for training LR regression models in MATLAB. The parameters used are as follows:

  • (i)‘Learner’:

    The ‘Learner’ is a LR model type that can be set as LR via ordinary least squares (‘leastsquares’), or Support vector machine regression (‘svm’).

  • (ii)‘Solver’:

    The ‘Solver’ or objective function minimization technique can be Stochastic gradient descent (SGD), Average stochastic gradient descent (ASGD), Dual SGD, Broyden–Fletcher–Goldfarb–Shanno quasi-Newton algorithm (BFGS), Limited-.

memory BFGS (LBFGS) or Sparse Reconstruction by Separable Approximation (SpaRSA) method.

  • (iii)‘Regularization’:

    ‘Regularization’ or complexity penalty type can be set as Lasso or Ridge.

  • (iv)‘Lambda’:

    ‘Lambda’ is also known as the Regularization term strength and is calculated as the inverse of the training sample size.

After experimenting with different combinations for Learner-Solver-Regularization, the optimum combination is found to be BFGS-svm-Ridge.

4.2.2. SVM regression

A kernel technique is used in this method to convert the independent variables into a higher-dimensional feature space. This method requires less computing power, is independent of the dimensionality of the input, and seeks to minimize generalization mistakes rather than training faults (Gutierrez-Gomez et al., Citation2020; Jaffar et al., Citation2020; Pirbazari et al., Citation2021).

EquationEquation (10) is applied to a dataset that is linearly separable, and EquationEquation (11) is applied to a dataset that is nonlinearly separable (Mahmud et al., Citation2021). xi represents the inputs and y represents the outputs. αi represents the contraction coefficient and b represents the bias. K(x,y) represents the kernel function. (10) y=i=1N(αiαi*).xi,x+b(10) (11) y=i=1N(αiαi*).K(xi,x)+b(11)

The ‘fitrsvm’ function in MATLAB is used to train SVM regression models. The following parameters must be given when training the SVM model:

  • (i) Kernel function:

    Gaussian, Linear, Radial Basis Function (RBF) and Polynomial kernels are the available options.

  • (ii) Kernel scale:

    This value can be 1. Otherwise, it is set as auto where a subsampling procedure in the software decides the value.

  • (iii) ‘Solver’:

    Iterative Single Data Algorithm (ISDA), L1 Quadratic Programming (L1QP) or Sequential Minimal Optimization (SMO) can be used as the optimization procedure or Solver.

The optimal result arises from configuring SMO for ‘Solver’, scale value as 1, and opting for linear kernel function. The linear kernel function is represented by (12) K(x,y)=xy(12)

4.2.3. Feedforward NN

A feedforward NN is a type of artificial NN that only allows information to flow from the input to the output. The artificial neurons of NNs are modeled after biological brains, and structured into three levels: input, output and hidden layers between the two. The depth of the network is determined by the number of hidden layers. Each layer has a bias, while each connection between neurons is represented by a weight (Alquthami et al., Citation2022; Farsi et al., Citation2021; Mahmud et al., Citation2021; Shalev-Shwartz & Ben-David, Citation2014; Zhang et al., Citation2019).

shows the architecture of a two-input single-output NN having one hidden layer with three neurons. Here, x1, x2 are the inputs, and y is the output. As seen in , the output of an artificial neuron is a function f of the sum of bias b and all the weights (w1wn) from inputs (x1xn) (Jaffar et al., Citation2020; Karim et al., Citation2019; Morais & Pedro, Citation2018). Activation function f, given by EquationEquation (13), is used for normalizing the output of a neuron. (13) y=f(b+i=1nxiwi)(13)

Figure 5. NN architecture.

Figure 5. NN architecture.

Figure 6. Layout of an artificial neuron.

Figure 6. Layout of an artificial neuron.

To train a simple NN in MATLAB, the ‘train’ function is used with the following parameters specified.

  • (i) Number of hidden layers and Size of each hidden layer:

    A trial-and-error method is followed to select the number and size of the hidden layers, starting from the minimum values of 1 and 4 (input variable size), respectively. A satisfactory result is obtained at 2 layers, with 10 and 2 neurons.

  • (ii) Activation function of each layer:

    A hyperbolic tangent sigmoid transfer function is set as the hidden layer activation function while the output layer has a linear activation function.

  • (iii) Training algorithm:

    Levenberg–Marquardt, Bayesian Regulation, Gradient descent and Resilient back propagation (RPROP) algorithms are some of the training algorithms for NNs in MATLAB, among which the Levenberg–Marquardt algorithm is the fastest and most popular.

4.2.4. Training procedure

Each ML algorithm is prepared for training as mentioned in subsections 4.2.1–4.2.3. After that, they undergo offline training for regression from sequence to sequence. The trained models are verified using a small number of samples from the training data set. A comparison of the PI outputs and the

reference voltage outputs of the ML models is presented in . The transient peaks of the controller outputs are lesser for the proposed ML controllers. LR-based and SVM-based controllers have the least maximum transient peak values and the voltage waveforms settle similar to that of the PI controller.

Figure 7. Conventional vs. ML-based controller performance: dq-axis reference voltages: (a) vsd-ref and (b) vsq-ref.

Figure 7. Conventional vs. ML-based controller performance: dq-axis reference voltages: (a) vsd-ref and (b) vsq-ref.

5. Performance evaluation of controllers

MATLAB is used in the development of the PMSM motor drive simulation model. lists the parameters for the PMSM drive (Qutubuddin & Yadaiah, Citation2017, Citation2018). The controller sampling rate is 1 µs. Using Simulink, the training data set from the traditional model is first created. Performance analysis is then conducted using the models created by MATLAB Coder for both the proposed and traditional approaches. The testing of the trained ML models is detailed in subsections 5.1–5.5 (Li et al., Citation2020; Qutubuddin & Yadaiah, Citation2017, Citation2018).

Table 2. PMSM parameters in Simulation model (Qutubuddin and N. Yadaiah, Citation2018, Citation2017).

5.1. Current control evaluation

While obtaining the d- and q-axes currents, the test motor’s speed is maintained constant to evaluate the current-loop controllers. The applied load torque is set to 5 N.m., and the required motor speed is selected as 300 rad/s (Qutubuddin & Yadaiah, Citation2017, Citation2018). The responses of the conventional and ML-based controllers are shown in .

Figure 8. Conventional vs ML-based controllers: Motor speed response.

Figure 8. Conventional vs ML-based controllers: Motor speed response.

Figure 9. Conventional vs ML-based controllers: Motor torque response.

Figure 9. Conventional vs ML-based controllers: Motor torque response.

Figure 10. Conventional vs ML-based controllers: Current response of motor drive.

Figure 10. Conventional vs ML-based controllers: Current response of motor drive.

Figure 11. Conventional vs ML-based controllers: dq-axis currents (id, iq) of PMSM drive.

Figure 11. Conventional vs ML-based controllers: dq-axis currents (id, iq) of PMSM drive.

The PI controller’s speed response () settles to 300 rad/s at 0.017 s with an overshoot of 1.15%. In contrast, the speed responses of the LR-based and SVM-based controllers exhibit a peak overshoot of 1.13% and settle to the required speed at 0.02 s. A 1.17% peak overshoot is seen by the NN-based controller when it settles to 300 rad/s at 0.022 s ().

Table 3. Comparison of speed response under rated conditions (Figure 8).

shows how each controller’s torque responses reach the rated load (5 N.m.), with the PI controller responding the fastest. NN-based controllers have the lowest maximum torque value (93 N.m.) during the transient state compared to PI controllers (97 N.m.), LR-based and SVM-based controllers (101 N.m.).

The three-phase motor current responses of ML-based and traditional controllers are displayed in . The PI controller produces a rated current of 6 A at 0.02 s and the ML-based controllers at 0.035 s. The transient state peak values of the LR-based and SVM-based controllers (80 A) are lesser than that of the PI and NN-based controllers (100 A). The dq-

axis currents of the conventional and proposed models are compared in . At 0.01 s, the d-axis current of a PI controller settles to 0 A, while the q-axis current settles to 5.5 A, at 0.02 s. The LR-based and SVM-based controllers reach the same current values at 0.025 s and 0.022 s, respectively, while the NN-based controller takes 0.06 s and 0.03 s, respectively (). The NN model has more current ripples in the dq-axis current responses, compared to that of the other controllers.

Table 4. Comparison of current control performance (Figure 11).

5.2. Speed control evaluation

PMSM speed tracking is used to assess the effectiveness of the controllers. The test starts with 10% of desired speed (30 rad/s), increased to 50% (150 rad/s), then 100% (300 rad/s) and finally 125% (375 rad/s) at time intervals of 0.05 s each.

As seen in , the speed responses with the PI controller and the NN-based controller are smoother than the speed responses with the LR-based and SVM-based controllers at very low speeds (10%). All controllers respond similarly at half the rated speed. The responses of the LR-based and SVM-based controllers are similar to that of a conventional controller for speeds over rated speed (100–125%), but slightly sluggish. The NN-based controller gives a smooth response at higher speeds.

Figure 12. Conventional vs ML-based controllers: Motor speed response.

Figure 12. Conventional vs ML-based controllers: Motor speed response.

and illustrate how the changes in motor 3-phase currents and torque correspond with variations in speed. For speeds over half the rated speed, torque transients are lesser for the LR and SVM models, and current responses are the same as that of the conventional model. At speeds below the rated speed, the NN model gives the same responses as the conventional model. For rated speed and above, the NN model has more oscillations in the torque response.

Figure 13. ML-based vs. Conventional controllers: Torque response for speed variations.

Figure 13. ML-based vs. Conventional controllers: Torque response for speed variations.

Figure 14. ML-based vs Conventional controllers: Motor current response for speed variations.

Figure 14. ML-based vs Conventional controllers: Motor current response for speed variations.

5.3. Effect of load disturbance

A 2.5 N.m. continuous load is applied at a time step of 0.03 s after the motor is started at no load, and then another 2.5 N.m. is applied at a time step of 0.07 s. The motor drive performances with both conventional and ML-based controllers are shown in , with the load being the only parameter that differs from . The torque responses of the PI controller and the proposed controllers in relation to the additional load are shown in . illustrates how the speed decreases with the introduction of a load and how fast the controllers recover it. illustrates the response of the 3-phase current variations correspond to variations in load.

Figure 15. ML-based vs. Conventional controllers: Torque response for load disturbances.

Figure 15. ML-based vs. Conventional controllers: Torque response for load disturbances.

Figure 16. ML-based vs. Conventional controllers: Speed response for load disturbances.

Figure 16. ML-based vs. Conventional controllers: Speed response for load disturbances.

Figure 17. ML-based vs. Conventional controllers: Motor current response for load disturbances.

Figure 17. ML-based vs. Conventional controllers: Motor current response for load disturbances.

5.4. Robustness of speed loop controller

Based on the road conditions and load on the EV, motor inertia and friction factor can change, in practical cases. This will have an impact on the output of the speed loop controller.

compares the conventional and ML-based vector-control methods when the friction factor is doubled and the inertia is tripled, while the other conditions are the same as in .

Figure 18. ML-based vs. Conventional controllers: Motor speed response for larger Jeq and Ba.

Figure 18. ML-based vs. Conventional controllers: Motor speed response for larger Jeq and Ba.

In comparison to , speed responses of PI, LR-based and SVM-based controllers reach the rated speed at 0.08 s while the NN-based controller takes 0.1 s. This is because of higher inertia and friction factors and holds for all the controllers.

5.5. Evaluation metrics

To fully capture all the features of prediction performance that matter to applications, a single metric is insufficient. Hence, different metrics are considered and the model with the majority of better metrics is determined as the best one. The performance of the trained ML algorithms is assessed using the following metrics: symmetric mean absolute percentage error (SMAPE), mean absolute error (MAE) and root mean square error (RMSE). These are statistical metrics that are frequently used to evaluate how well time series-based models work. For these metrics, a smaller error indicates better performance of the model.

  • (i) MAE

    MAE calculates the absolute value of the difference between the observed and predicted values, without taking into account the direction of the errors. As demonstrated in EquationEquation (14), it provides a quantitative measure of the errors by averaging the errors throughout the entire group and is utilized as a loss function for regression-based ML algorithms. (14) MAE=1Ni=1N|(y¯iyi)|(14)

  • (ii) RMSE

    In supervised learning applications, RMSE is a commonly used metric to assess the accuracy of predictions. It demonstrates how well accepted the observations-based predictions are. A lower RMSE value represents a lesser predicting error. RMSE refers to the standard deviation of the variations between the observed (actual) values and the anticipated values. (15) RMSE=1Ni=1N(y¯iyi)2(15)

  • (iii) SMAPE

    SMAPE is a tool used for technique evaluation and comparison. This relative error metric allows for cross-series comparisons as well as comparisons with the outcomes of the forecasting methods that produced the data sets. To provide an idea of the variability across the various time series, the standard deviation for each approach is provided. (16) SMAPE=100%Ni=1N|(yi¯yi)|(|yi¯|+|yi|)/2(16)

where yi and ȳi are the actual and estimated values, respectively; N is the test sample size (Ahmadi et al., Citation2020; Asthana et al., Citation2023; Bao et al., Citation2014; Duan & Kashima, Citation2021; Jawad et al., Citation2020; Lemke & Gabrys, Citation2010; Martínez & Rocha, Citation2023; Méndez et al., Citation2023; Naz et al., Citation2023; Varoquaux & Colliot, Citation2023).

The assessment metrics of the drive speed are displayed in and for the following scenarios: for rated load conditions (), when the motor speed is increased from low speed to above rated speeds (), and when load perturbations are applied (). In all the three test cases, the PI controller gives the least values of all the errors. Subsections 5.5.1–5.5.3 give the evaluation metrics for reference voltage outputs, i.e. the direct outputs of the controllers, under different conditions. The least error in each set is highlighted in bold.

Figure 19. Metrics comparison of speed response ().

Figure 19. Metrics comparison of speed response (Table 5).

Table 5. Evaluation metrics for speed response under rated conditions.

5.5.1. Rated conditions

and show the evaluation metrics for reference voltage outputs from all the controllers under rated conditions (). The SVM-based controller has the least values of MAE and RMSE while the PI controller has the least SMAPE, when the reference voltage outputs are compared.

Figure 20. Metrics comparison of reference voltage output under rated conditions ().

Figure 20. Metrics comparison of reference voltage output under rated conditions (Table 6).

Table 6. Evaluation metrics (vsd-ref, vsq-ref)—rated conditions.

5.5.2. Speed variations

and give the evaluation metrics of dq-axis reference voltages during the speed variation test. The proposed SVM-based controller exhibits least RMSE when compared with the PI controller

Figure 21. Metrics comparison of reference voltage output under speed variations ().

Figure 21. Metrics comparison of reference voltage output under speed variations (Table 7).

Table 7. Evaluation metrics (vsd-ref, vsq-ref)—speed variations.

has the least values of MAE and SMAPE, when the reference voltage outputs are compared.

5.5.3. Load disturbances

and give the evaluation metrics of dq-axis reference voltages during the load disturbance test. The SVM-based controller exhibits the least RMSE while the conventional PI controller has the least values of MAE and SMAPE, when the reference voltage outputs are compared.

Figure 22. Metrics comparison of reference voltage output under load variations ().

Figure 22. Metrics comparison of reference voltage output under load variations (Table 8).

Table 8. Evaluation metrics (vsd-ref, vsq-ref)—load disturbances.

5.6. Results and discussion

The proposed ML-based controllers (LR, SVM and NN) are compared with the PI controller under various test scenarios. The reference voltage outputs of the controllers are used in conjunction with the motor current, torque and speed responses in the evaluation. From the graphs, it is clear that for speeds below rated speed, an NN-based controller is a good alternative for the PI controller. For speeds at and above the rated speed, an LR-based or an SVM-based controller makes the better choice.

Under the rated conditions, the responses of the LR-based and SVM-based controllers are almost similar to those of the PI controller. All the ML-based controllers respond similar to the PI controller, during the load disturbances. The transient state peaks are reduced by 0.02% when ML-based controllers are used.

When the electric supply is switched on, it results in a switching transient. Hence, the magnetic flux in the motor and the corresponding motor current undergo a transient state before reaching the steady-state values. With increasing time, this transient response decays to 0, and only the steady-state response remains. The transient state is a short-term response, while the steady state is a long-term response that is more important (Hambley, Citation2019) to assess the performance of a motor. and in this article show this transient state at the start of the torque, speed and current responses. Transient state occurs even when the reference speed or load applied to the motor changes (). The transient state values vary for different values of speed or load, which cannot be predicted accurately by the conventional controller or the ML-based controllers. This is given by .

The direct outputs of the controllers are the reference voltages vsd and vsq. The transient state values of the ML-based controller outputs had less undershoots and overshoots during rated conditions and load variations than the PI controller outputs, resulting in improved metrics. The oscillations in the LR and SVM-based controller responses during low-speed transients cause higher errors in the speed variation testing. However, motor drives in EV applications are not frequently required to run at such low speeds. The range of the dataset can affect the MAE and RMSE values, as they are range-dependent metrics. As a percentage metric, SMAPE can be affected by large variations in the observed and predicted values during the transient state. Regardless of the metric type used for performance evaluation, all their values are evaluated, taking into account all of these factors. The best model is determined to be the controller with the maximum number of improved metrics. The SVM-based controller is chosen as the best alternative for the PI controller based just on the metrics of the controller outputs.

Under all test conditions, the SVM-based controller gives the least RMSE for the reference voltages, in comparison to the PI controller and LR-based and NN-based controllers. The SVM-based controller also gives the least MAE for reference voltages under rated conditions. The PI controller has the least SMAPE in all the cases, and the least MAE during speed and load variations.

However, the evaluation of the overall drive response gives a different outcome. In the case of the drive speed response, the PI controller has the least values in all the errors, under all test conditions. The leading margin for PI is by 9% (NN), 10% (SVM) and 16% (LR), due to low-speed oscillations, and due to the inclusion of the compensation terms on the output side of the PI controller. The compensation terms (–weLqiq, weLdid, weΨf) are time-dependent functions of the dq-axis motor currents and electrical speed; which are added to the PI controller outputs to avoid decoupling inaccuracy while implementing the vector control technique. The instantaneous values of the compensation terms help the PI controller give better drive responses, even though ML-based controllers give better metrics.

The training data set for the ML models are inclusive of the compensation terms indirectly. The ML models are designed such that the controller outputs given to the next stage in the drive are independent of the compensation terms. These ML-based controllers are able to attain results nearer to that of a conventional controller that needs the compensation terms. This could indicate that with further refinement the ML models, in particular the SVM-based controller, can give improved performance for the overall drive response.

6. Conclusion

This article presented a vector-controlled PMSM drive based on ML algorithms. The main objective is to explore the feasibility of applying ML in the speed control of motor drives. Under various test situations, the proposed controller’s performance is compared to that of the conventional controller. The ML-based controllers could reproduce the conventional controller responses to some extent, without depending on the compensation terms.

The performance metrics of the ML-based controllers, especially RMSE, are superior when compared with conventional PI controller. Further, the RMSE of the SVM-based controller are superior to those of the PI controller by 20% and 8% for the respective controller output voltages during all the tests, followed by the LR-based controller in the same range. This indicates both controllers as good alternatives to the PI controller. At low speeds, the NN-based controller mimics the PI controller performance, making it a good alternative for low-speed requirements.

However, the overall drive response of the PI controller has better metrics due to the constant presence of compensation terms, by an average value of 12%. The performance of the proposed controllers can be further improved by fine-tuning the training parameters and with a bigger data set. Future work on this topic will include improvements to the ML designs to attain lower errors by factoring in the impact of instantaneous values of the compensation terms, and better performance of the motor drive.

Disclosure statement

The authors declare that they have no conflict of interest.

Data availability statement

The data that support the findings of this study are available from the corresponding author, J. L. Febin Daya, upon reasonable request.

Additional information

Notes on contributors

Ashly Mary Tom

Ashly Mary Tom is a doctoral student at the School of Electrical Engineering, Vellore Institute of Technology, Chennai Campus, India. Her research focuses on motor drives and machine learning techniques.

J. L. Febin Daya

J.L. Febin Daya is presently serving as Professor in Electric Vehicles Incubation, Testing, and Research Center at Vellore Institute of Technology, Chennai Campus, India. His current research interests include electrical drives and control, wireless charging, intelligent systems, electric vehicles and precision agriculture.

References

  • Ahmadi, A., Nabipour, M., Mohammadi-Ivatloo, B., Amani, A. M., Rho, S., & Piran, M. J. (2020). Long-term wind power forecasting using tree-based learning algorithms. IEEE Access, 8, 151511–151522. https://doi.org/10.1109/ACCESS.2020.3017442
  • Alquthami, T., Zulfiqar, M., Kamran, M., Milyani, A. H., & Rasheed, M. B. (2022). A performance comparison of machine learning algorithms for load forecasting in smart grid. IEEE Access, 10, 48419–48433. https://doi.org/10.1109/ACCESS.2022.3171270
  • Asthana, P., Mishra, S., Gupta, N., Derawi, M., & Kumar, A. (2023). Prediction of student’s performance with learning coefficients using regression based machine learning models. IEEE Access, 11, 72732–72742. https://doi.org/10.1109/ACCESS.2023.3294700
  • Bao, Y., Xiong, T., & Hu, Z. (2014). Multi-step-ahead time series prediction using multiple-output support vector regression. Neurocomputing, 129, 482–493. https://doi.org/10.1016/j.neucom.2013.09.010
  • Brejl, M., & Princ, M. (2012). Using the PMSM vector control. Freescale semiconductor. Retrieved June 5, 2022, from https://www.nxp.com/docs/en/application-note/ AN2972.pdf
  • Butt, C. B., & Rahman, M. A. (2013). Intelligent speed control of interior permanent magnet motor drives using a single untrained artificial neuron. IEEE Transactions on Industry Applications, 49(4), 1836–1843. https://doi.org/10.1109/TIA.2013.2257973
  • Dahrouj, H., Alghamdi, R., Alwazani, H., Bahanshal, S., Ahmad, A. A., Faisal, A., Shalabi, R., Alhadrami, R., Subasi, A., Al-Nory, M. T., Kittaneh, O., & Shamma, J. S. (2021). An overview of machine learning-based techniques for solving optimization problems in communications and signal processing. IEEE Access, 9, 74908–74938. https://doi.org/10.1109/ACCESS.2021.3079639
  • Daliya, V. K., Ramesh, T. K., & Ko, S.-B. (2021). An optimised multivariable regression model for predictive analysis of diabetic disease progression. IEEE Access, 9, 99768–99780. https://doi.org/10.1109/ACCESS.2021.3096139
  • Duan, J., & Kashima, H. (2021). Learning to rank for multi-step ahead time-series forecasting. IEEE Access, 9, 49372–49386. https://doi.org/10.1109/ACCESS.2021.3068895
  • Farsi, B., Amayri, M., Bouguila, N., & Eicker, U. (2021). On short-term load forecasting using machine learning techniques and a novel parallel deep LSTM-CNN approach. IEEE Access, 9, 31191–31212. https://doi.org/10.1109/ACCESS.2021.3060290
  • Gutierrez-Gomez, L., Petry, F., & Khadraoui, D. (2020). A comparison framework of machine learning algorithms for mixed-type variables datasets: A case study on tire-performances prediction. IEEE Access, 8, 214902–214914. https://doi.org/10.1109/ACCESS.2020.3041367
  • Hambley, A. R. (2019). Electrical engineering - Principles & applications (6th ed.). Pearson Education.
  • Hannan, M. A., Ali, J. A., Ker, P. J., Mohamed, A., Lipu, M. S. H., & Hussain, A. (2018). Switching techniques and intelligent controllers for induction motor drive: issues and recommendations. IEEE Access, 6, 47489–47510. https://doi.org/10.1109/ACCESS.2018.2867214
  • Hu, J., Peng, T., Jia, M., Yang, Y., & Guan, Y. (2019). Study on electromechanical coupling characteristics of an integrated electric drive system for electric vehicle. IEEE Access, 7, 166493–166508. https://doi.org/10.1109/ACCESS.2019.2953310
  • Jaffar, F., Farid, T., Sajid, M., Ayaz, Y., & Khan, M. J. (2020). Prediction of drag force on vehicles in a platoon configuration using machine learning. IEEE Access, 8, 201823–201834. https://doi.org/10.1109/ACCESS.2020.3035318
  • Jawad, M., Nadeem, M. S. A., Shim, S.-O., Khan, I. R., Shaheen, A., Habib, N., Hussain, L., & Aziz, W. (2020). Machine learning based cost effective electricity load forecasting model using correlated meteorological parameters. IEEE Access, 8, 146847–146864. https://doi.org/10.1109/ACCESS.2020.3014086
  • Jung, J., Leu, V. Q., Do, T. D., Kim, E., & Choi, H. H. (2015). Adaptive PID speed control design for permanent magnet synchronous motor drives. IEEE Transactions on Power Electronics, 30(2), 900–908. https://doi.org/10.1109/TPEL.2014.2311462
  • Karim, A., Azam, S., Shanmugam, B., Kannoorpatti, K., & Alazab, M. (2019). a comprehensive survey for intelligent spam email detection. IEEE Access, 7, 168261–168295. https://doi.org/10.1109/ACCESS.2019.2954791
  • Lemke, C., & Gabrys, B. (2010). Meta-learning for time series forecasting and forecast combination. Neurocomputing, 73(10–12), 2006–2016. https://doi.org/10.1016/j.neucom.2009.09.020
  • Li, L., & Liu, Q. (2019). Research on IPMSM drive system control technology for electric vehicle energy consumption. IEEE Access, 7, 186201–186210. https://doi.org/10.1109/ACCESS.2019.2958944
  • Li, S., Won, H., Fu, X., Fairbank, M., Wunsch, D. C., & Alonso, E. (2020). Neural-network vector controller for permanent-magnet synchronous motor drives: Simulated and hardware-validated results. IEEE Transactions on Cybernetics, 50(7), 3218–3230. https://doi.org/10.1109/TCYB.2019.2897653
  • Liu, C., & Luo, Y. (2017). Overview of advanced control strategies for electric machines. Chinese Journal of Electrical Engineering, 3(2), 53–61.
  • Mahmud, K., Azam, S., Karim, A., Zobaed, S., Shanmugam, B., & Mathur, D. (2021). Machine learning based PV power generation forecasting in Alice Springs. IEEE Access, 9, 46117–46128. https://doi.org/10.1109/ACCESS.2021.3066494
  • Martínez, V., & Rocha, A. (2023). The Golem: A general data-driven model for oil & gas forecasting based on recurrent neural networks. IEEE Access, 11, 41105–41132. https://doi.org/10.1109/ACCESS.2023.3269748
  • Méndez, M., Merayo, M. G., & Núñez, M. (2023). Machine learning algorithms to forecast air quality: A survey. Artificial Intelligence Review, 56(9), 1–36. https://doi.org/10.1007/s10462-023-10424-4
  • Morais, R. M., & Pedro, J. (2018). Machine learning models for estimating quality of transmission in DWDM networks, IEEE/OSA. Journal of Optical Communications and Networking, 10(10), D84–D99. https://doi.org/10.1364/JOCN.10.000D84
  • Naz, F., Mccann, C., Fahim, M., Cao, T.-V., Hunter, R., Viet, N. T., Nguyen, L. D., & Duong, T. Q. (2023). Comparative analysis of deep learning and statistical models for air pollutants prediction in urban areas. IEEE Access, 11, 64016–64025. https://doi.org/10.1109/ACCESS.2023.3289153
  • Pillay, P., & Krishnan, R. (1989). Modeling, simulation, and analysis of permanent-magnet motor drives. I. The permanent-magnet synchronous motor drive. IEEE Transactions on Industry Applications, 25(2), 265–273. https://doi.org/10.1109/28.25541
  • Pirbazari, A. M., Sharma, E., Chakravorty, A., Elmenreich, W., & Rong, C. (2021). An ensemble approach for multi-step ahead energy forecasting of household communities. IEEE Access, 9, 36218–36240. https://doi.org/10.1109/ACCESS.2021.3063066
  • Qutubuddin, M. D., & Yadaiah, N. (2017). Modeling and implementation of brain emotional controller for permanent magnet synchronous motor drive. Engineering Applications of Artificial Intelligence, 60, 193–203. https://doi.org/10.1016/j.engappai.2017.02.007
  • Qutubuddin, M. D., & Yadaiah, N. (2018). A new intelligent adaptive mechanism for sensorless control of permanent magnet synchronous motor drive. Biologically Inspired Cognitive Architectures, 24, 47–58. https://doi.org/10.1016/j.bica.2018.04.003
  • Raia, M. R., Ruba, M., Nemes, R. O., & Martis, C. (2021). Artificial neural network and data dimensionality reduction based on machine learning methods for PMSM model order reduction. IEEE Access, 9, 102345–102354. https://doi.org/10.1109/ACCESS.2021.3095668
  • Rind, S. J., Ren, Y., Hu, Y., Wang, J., & Jiang, L. (2017). Configurations and control of traction motors for electric vehicles: A review. Chinese Journal of Electrical Engineering, 3(3), 1–17. https://doi.org/10.23919/CJEE.2017.8250419
  • Shalev-Shwartz, S., & Ben-David, S. (2014). Understanding machine learning: From theory to algorithms. Cambridge University Press.
  • Simeone, O. (2018). A very brief introduction to machine learning with applications to communication systems. IEEE Transactions on Cognitive Communications and Networking, 4(4), 648–664. https://doi.org/10.1109/TCCN.2018.2881442
  • Soliman, H. M. (2019). Improve the performance characteristics of the IPMSM under the effect of the varying loads. IET Electric Power Applications, 13(12), 1935–1945. https://doi.org/10.1049/iet-epa.2019.0195
  • Sorial, R. R., Soliman, M. H., Hasanien, H. M., & Talaat, H. E. A. (2021). A vector controlled drive system for electrically power assisted steering using Hall-effect sensors. IEEE Access, 9, 116485–116499. https://doi.org/10.1109/ACCESS.2021.3105609
  • Varoquaux, G., & Colliot, O. (2023). Evaluating machine learning models and their diagnostic value. Machine Learning for Brain Disorders. Neuromethods, 197, 601–630.
  • Zhang, C., Zhang, H., & Hu, X. (2019). A contrastive study of machine learning on funding evaluation prediction. IEEE Access, 7, 106307–106315. https://doi.org/10.1109/ACCESS.2019.2927517