# Scaled Conjugate Gradient Based Adaptive ANN Control for SVM-DTC Induction Motor Drive

Lochan Babani, Sadhana Jadhav, Bhalchandra Chaudhari

► To cite this version:

Lochan Babani, Sadhana Jadhav, Bhalchandra Chaudhari. Scaled Conjugate Gradient Based Adaptive ANN Control for SVM-DTC Induction Motor Drive. 12th IFIP International Conference on Artificial Intelligence Applications and Innovations (AIAI), Sep 2016, Thessaloniki, Greece. pp.384-395, 10.1007/978-3-319-44944-9_33. hal-01557626

HAL Id: hal-01557626

https://inria.hal.science/hal-01557626

Submitted on 6 Jul 2017

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
# Scaled Conjugate Gradient based Adaptive ANN Control for SVM-DTC Induction Motor Drive

Lochan Babani¹, Sadhana Jadhav², and Bhalchandra Chaudhari³

¹ College of Engineering, Pune

² College of Engineering, Pune

³ College of Engineering, Pune

**Abstract.** In this work, an Artificial Neural Network (ANN) is developed to improve the performance of Space Vector Modulation (SVM) based Direct Torque Controlled (DTC) Induction Motor (IM) drive. The ANN control algorithm based on Scaled Conjugate Gradient (SCG) method is developed. The algorithm is tested on MATLAB Simulink platform. Results show smooth steady state operation as well as fast and dynamic transient performance. This is due to the SCG training algorithm of ANN which has the benchmarked performance against the standard Back-propagation (BP) algorithm. BP uses gradient descent optimization theory which has user selected parameters; learning rate and momentum constant. The network is trained offline and has fixed parameters. This leads to extra control effort and demands for online tuning of the parameters. SCG algorithm tunes these parameters with the use of second order approximation. Additionally, it takes less learning iterations and hence results in faster learning. Robustness to parameter variations and disturbances is the basic advantage of ANN, thus effectively controlling inherently non linear IM.

## 1 Introduction

The Direct Torque Control (DTC) [1] and Space Vector Modulated-Direct Torque Control (SVM-DTC) [2]-[3] are the latest research technologies for the VSI fed cage IMs. Both, being the special cases of vector control, have the fast and dynamic transient responses. The former has PWM-free operation and involves no coordinate transformation but 20-30% steady state torque ripple; whereas the latter has SVM based PWM, with coordinate transformation but less torque ripple upto 5-7 %. The research in SVM-DTC controlled IM drives is further advanced with respect to-

- Sensorless operation [4].

- Generation of reference stator voltage control vectors [5].

- Stator resistance compensation at low speeds [6].

Modern control techniques like Sliding Mode Control (SMC) and intelligent control [7]-[8] are used to address the three issues mentioned above. Performances of various methods are compared [9] for control vector generation.
Out of the methods reported, PI has known demerits. An approach proposed in [10] gives excellent torque response and also very low torque distortions in static state, but has complex fuzzy structure. The chattering behavior of SVM can be eliminated by using ANN [11]. Apart from variety of techniques in DTC, SVM-DTC techniques based on neuro-fuzzy logic are also discussed and compared with the conventional motor control schemes [12]. Intelligent control has benefits of model-free control and hence it is robust [13]. With these advancements in intelligent control techniques, ANN is not restricted to be used as separate controller. Rather, it can be combined with other techniques to enhance the performance of the drive as in [14], where Field Oriented Control (FOC) and DTC [15] are combined to make a hybrid network and both the schemes FOC and DTC are mapped using two different ANNs. In [16], ANN is reported in control voltage vector loop. It can be seen that the ripple in torque with ANN-DTC control is very less as compared to conventional DTC at the same operating conditions [17]. In case of ANN based control, Resilient Backpropagation (RBP) and Levenberg-Marquardt (LM) [18] algorithms are very popular.

This paper presents another approach for training the ANN for the Space Vector Modulated- Direct Torque Control (SVM-DTC) based induction motor drive. The training algorithm used is Scaled Conjugate Gradient (SCG). The basic idea in this algorithm is to combine the model-trust region approach (used in the Levenberg-Marquardt algorithm), with the conjugate gradient approach [19].

<figure><img src="image_2.png" /><figcaption>Fig. 1: ANN based SVM-DTC Scheme</figcaption></figure>

## 2 ARTIFICIAL NEURAL NETWORK

Artificial Neural Networks (ANNs) have capability of recognizing the non-linear functions of their inputs. They can represent a non-linear system to the nearest
possible approximation. Hence, in non-linear systems, which are difficult to control, the performance of conventional PI controller, in conditions like change in loads, disturbance and uncertainties can be improved by ANN [13].

Basically, it consists of neurons to represent inputs and outputs variables as well as intermediate layers which are interconnected via weights. The performance of ANNs depend upon the type of algorithm used, the number of neurons in the hidden layer, learning rate and the type of member function implied.

Various performance determining factors of ANNs are:

- Mean Square Error (MSE)

- Number of epochs

- Training Time

- Validation checks

- Gradient

## 2.1 Resilient Backpropagation (RBP) Algorithm

Resilient Backpropagation (RBP) is most suitable for pattern recognition problems. It utilizes the sign of derivative for the direction of weight update; that is, the magnitude of the derivative does not affect the weight-updating process. This eliminates the harmful effects of the magnitude of derivatives.

It generally converges much faster than other algorithms. In MATLAB, 'trainrp' function is used to train network by RBP algorithm.

The use of constant step size and involvement of a momentum term makes RBP less robust and more parameter dependent.

## 2.2 Scaled Conjugate Gradient (SCG) Algorithm

The scaled conjugate gradient (SCG) algorithm, developed by Moller [Moll93], is based on conjugate directions, but this algorithm does not perform a line search at each iteration unlike other conjugate gradient algorithms which require a line search at each iteration. Making the system computationally expensive. SCG was designed to avoid the time-consuming line search.

'trainscg' in MATLAB is a network training function that updates weight and bias values according to the scaled conjugate gradient method. It can train any network as long as its weight, net input, and transfer functions have derivative functions. In SCG algorithm, the step size is a function of quadratic approximation of the error function which makes it more robust and independent of user defined parameters.

The step size is estimating using different approach. The second order term is calculated as,

$$ \bar{s}_k = \frac{E'(\bar{w}_k + \sigma_k \bar{p}_k) - E'(\bar{w}_k)}{\sigma_k} + \lambda_k \bar{p}_k \quad (1) $$

where, $\lambda_k$ is a scalar and is adjusted each time according to the sign of $\delta_k$.
The step size,

$$ \alpha_k = \frac{\mu_k}{\delta_k} = \frac{-\bar{p}_j^T E'_{qw}(\bar{y}_1)}{\bar{p}_j^T E''(\bar{w}) \bar{p}_j} \quad (2) $$

where, $\bar{w}$ is weight vector in space $R^n$,

$E(\bar{w})$ is the global error function,

$E'(\bar{w})$ is the gradient of error,

$E'_{qw}(\bar{y}_1)$ is the quadratic approximation of error function,

$\bar{p}_1, \bar{p}_2, \dots, \bar{p}_k$ be the set of non-zero weight vectors.

$\lambda_k$ is to be updated such that,

$$ \bar{\lambda}_k = 2(\lambda_k - \frac{\delta_k}{|p_k|^2}) \quad (3) $$

If $\Delta_k > 0.75$, then $\lambda_k = \lambda_k / 4$

If $\Delta_k < 0.25$, then $\lambda_k = \lambda_k + \frac{\delta_k(1-\Delta_k)}{|p_k|^2}$

where, $\Delta_k$ is comparison parameter and is given by,

$$ \Delta_k = 2\delta_k [E(\bar{w}_k) - E(\bar{w}_k + \alpha_k \bar{p}_k)] / \mu_k^2 \quad (4) $$

Initially the values are set as, $0 < \sigma \le 10^{-4}$, $0 < \lambda_l \le 10^{-6}$ and $\bar{\lambda}_l = 0$.

Training stops when any of these conditions occurs:

- The maximum number of epochs is reached.

- The maximum amount of time is exceeded.

- Performance is minimized to the goal.

- The performance gradient falls below min-grad.

- Validation performance has increased more than max-fail times since the last time it decreased (when using validation) [20].

## 3 Simulation Results

A three phase induction motor with frequency = 50 Hz and power rating 3.5kW is used. The various machine parameters are given as,

Stator resistance (rs)=7.83 Ω

Rotor resistance (rr)=7.55 Ω

Stator inductance (Ls)=0.4751 H

Rotor inductance (Lr)=0.4751 H

Mutual inductance (Lm)=0.4535 H

No. of Poles (P)=4

Inertia (J)=0.013 kg-m²

Torque of 12 Nm is applied at 0.5 seconds. A comparison has been done between the two algorithms Resilient Backpropagation (RBP) and Scaled conjugate Gradient (SCG) method.

SCG has been tried for various cases. Each time the conditions were varied and results are verified.
<figure><img src="image_3.png" /><figcaption>Fig. 2: Performance Plot for the two algorithms</figcaption></figure>

- Case I The reference speed is kept to be zero.

- Case II A sinusoidal disturbance of amplitude 0.001 and high frequency is added in the torque and flux errors.

- Case III The stator resistance is increased to 150 % .

- Case IV The reference speed is kept to be 100 rad/sec.

- Case V Speed is constant and torque is changed to zero at 0.7 sec.

- Case VI Torque is constant and speed is changed from 100 rad/sec to 50 rad/sec at 0.8 sec.

Results have been shown as a comparison between the two.

<figure><img src="image_4.png" /><figcaption>Fig. 3: Full load torque condition for Case I</figcaption></figure>
<figure><img src="image_5.png" /><figcaption>Fig. 4: Speed for the conditions referred in Case I</figcaption></figure>

<figure><img src="image_6.png" /><figcaption>Fig. 5: Stator input current for both algorithms in Case I</figcaption></figure>

<figure><img src="image_7.png" /><figcaption>Fig. 6: Flux Circle for the two algorithms</figcaption></figure>
<table><caption>Table 1: Comparison of the two algorithms in Case I</caption><thead><tr><td>Parameter</td><td>RBP</td><td>SCG</td></tr></thead><tbody><tr><td>Settling time</td><td>0.0357 sec</td><td>0.0016 sec</td></tr><tr><td>Full load steady state speed error</td><td>1-2 rpm</td><td>1-2 rpm</td></tr><tr><td>Full load torque error</td><td>2-3 Nm</td><td>0-1 Nm</td></tr><tr><td>THD</td><td>206.64%</td><td>78.42%</td></tr><tr><td>Input norm ||Isa||</td><td>217.17</td><td>203.84</td></tr><tr><td>Mean Square Error (MSE)</td><td>281.13</td><td>229.19</td></tr><tr><td>Epochs</td><td>280</td><td>36</td></tr></tbody></table>

<figure><img src="image_8.png" /><figcaption>Fig. 7: Current transients for Case II</figcaption></figure>

<figure><img src="image_9.png" /><figcaption>Fig. 8: Current transients for Case III</figcaption></figure>

## 4 Observations

It is seen from fig.2 that the number of epochs required for least mean square error (MSE) is 280 for RBP while only 36 for SCG. Also, it is clear from Case I that total harmonic distortion (THD) is more in case of RBP than that of SCG. Fig.4 and fig.5 show that there exists undershoot in both speed and current graphs for RBP unlike SCG which has smooth transients. The steady state error in case of speed, current and torque is less in case of SCG as depicted by fig.14, 15 and 16.
<figure><img src="image_10.png" /><figcaption>Fig. 9: Stator input current for both the algorithms in Case IV</figcaption></figure>

<figure><img src="image_11.png" /><figcaption>Fig. 10: Full load torque condition for Case IV</figcaption></figure>

<figure><img src="image_12.png" /><figcaption>Fig. 11: Speed for the conditions referred in Case IV</figcaption></figure>

<figure><img src="image_13.png" /><figcaption>Fig. 12: Torque developed in Case V</figcaption></figure>
<figure><img src="image_14.png" /><figcaption>Fig. 13: Speed for the conditions referred in Case V</figcaption></figure>

<figure><img src="image_15.png" /><figcaption>Fig. 14: Stator input current for both the algorithms in Case V</figcaption></figure>

<figure><img src="image_16.png" /><figcaption>Fig. 15: Torque developed in Case VI</figcaption></figure>

<figure><img src="image_17.png" /><figcaption>Fig. 16: Speed for the conditions referred in Case VI</figcaption></figure>
<figure><img src="image_18.png" /><figcaption>Fig. 17: Stator input current for both the algorithms in Case VI</figcaption></figure>

<figure><img src="image_19.png" /><figcaption>Fig. 18: Selected stator current in Case I for both algorithms</figcaption></figure>

<figure><img src="image_20.png" /><figcaption>Fig. 19: Total Harmonic Distortion (THD) for RBP</figcaption></figure>
<figure><img src="image_21.png" /><figcaption>Fig. 20: Total Harmonic Distortion (THD) for SCG</figcaption></figure>

## 5 Conclusion

Both the algorithms provide fast initial convergence. But, the calculations and training methods are different in both of them. Results show that the proposed controller gives better results than RBP. When the torque is applied, SCG gives more smooth transients with less peak overshoot and undershoot in case of current and speed. That is, the control effort required in SCG is comparatively less than that of RBP. Also, the total harmonic distortion and steady state errors in torque and speed appear to be less in case of SCG as compared to RBP. Though the computational efforts are more in SCG algorithm, it achieves faster learning as against RBP algorithm due to the absence of line search optimization. It is observed that the epochs for SCG are around 36 for best performance while that of RBP, they are found to be around 280 which proves the superiority of the algorithm.

This scheme can be implemented on hardware using dSPACE which produces pulses to feed Voltage Source Inverter (VSI) which in turn runs the motor. The scope of this scheme is not limited to only ANN, rather, it can be used in hybrid with some other algorithm and also with Genetic Algorithm (GA) to improve the transient response.

## References

1. Takahashi and Y. Ohmori, High-performance direct torque control of an induction motor, Industry Applications, IEEE Transactions on, vol. 25, no. 2, pp. 257-264, 1989.

2. T. G. Habetler, F. Profumo, M. Pastorelli, and L. M. Tolbert, Direct torque control of induction machines using space vector modulation, Industry Applications, IEEE Transactions on, vol. 28, no. 5, pp. 1045-1053, 1992.

3. Kang, Jun-Koo and Sul, Seung-Ki, New direct torque control of induction motor for minimum torque ripple and constant switching frequency, Industry Applications, IEEE Transactions on, vol. 35, no. 5, pp. 1076-1082, 1999.
4. C. Lascu, I. Boldea, and F. Blaabjerg, A modified direct torque control for induction motor sensorless drive, Industry Applications, IEEE Transactions on, vol. 36, no. 1, pp. 122-130, 2000.

5. Cristian Lascu, Ion Boldea, Variable-Structure Direct Torque Control-A Class of Fast and Robust Controllers for Induction Machine Drives, IEEE Transaction on Industrial Electronics, Vol. 51, August 2004.

6. I. H. Luis A. Cabrera, Malik E. Elbuluk, Tuning the stator resistance of induction motors using artificial neural network, IEEE International on Power Electronics, vol. 12, no. 5, pages 779787, 1997

7. D. Park, A. Kandel, and G. Langholz, Genetic-based new fuzzy reasoning models with application to fuzzy control, Systems, Man and Cybernetics, IEEE Transactions on, vol. 24, no. 1, pp. 39-47, 1994.

8. P. Z. Grabowski, M. P. Kazmierkowski, B. K. Bose, and F. Blaabjerg, A simple direct-torque neuro-fuzzy control of pwm-inverter-fed induction motor drive, Industrial Electronics, IEEE Transactions on, vol. 47, no. 4, pp. 863-870, 2000.

9. Jadhav, SV and Srikanth, J and Chaudhari, BN, "Intelligent controllers applied to SVM-DTC based induction motor drives: A comparative study," Power Electronics, Drives and Energy Systems (PEDES) & 2010 Power India, 2010 Joint International Conference on, pp. 1-8, 2010.

10. S. A. Mir, D. S. Zinger, and M. E. Elbuluk, Fuzzy controller for inverter fed induction machines, Industry Applications, IEEE Transactions on, vol. 30, no. 1, pp. 7884, 1994.

11. Pinto, Joao OP, et al. "A neural-network-based space-vector PWM controller for voltage-fed inverter induction motor drive." Industry Applications, IEEE Transactions on 36.6 (2000): 1628-1636.

12. Buja, Giuseppe S., and Marian P. Kazmierkowski. "Direct torque control of PWM inverter-fed AC motors-a survey." Industrial Electronics, IEEE Transactions on 51.4 (2004): 744-757.

13. Lai, Yen-Shin and Chen, Jian-Ho, A new approach to direct torque control of induction motor drives for constant inverter switching frequency and torque ripple reduction, Energy Conversion, IEEE Transactions on, vol. 16, no. 3, pp. 220-227, 2001.

14. P. Sakarung and S. Chatratana, Neural network mapping of hybrid foc-dtc induction motor drive, in TENCON 2004. 2004 IEEE Region 10 Conference, vol. 500. IEEE, 2004, pp. 467470.

15. Kazmierkowski, Marian P. "Control strategies for PWM rectifier/inverter-fed induction motors." Industrial Electronics, 2000. ISIE 2000. Proceedings of the 2000 IEEE International Symposium on. Vol. 1. IEEE, 2000.

16. Jadhav, SV and Kirankumar, J and Chaudhari, BN, "ANN based intelligent control of induction motor drive with space vector modulated DTC," Power Electronics, Drives and Energy Systems (PEDES), 2012 IEEE International Conference on, pp. 1-6, 2012.

17. Kumar, Devender and Thakur, Ishan and Gupta, Kanika, "Direct Torque Control for Induction Motor using Intelligent Artificial Neural Network Technique," International Journal of Emerging Trends & Technology in Computer Science (IJETTCS), vol. 3, no. 4, pp. 44-50, 2014.

18. K. Gottapu, Y. Prashanth, P. Mahesh, Y. Sumith et al., Simulation of dtc im based on pi & artificial neural network technique, Simulation, vol. 2, no. 7, 2013.

19. Mller, Martin Fodslette. "A scaled conjugate gradient algorithm for fast supervised learning." Neural networks 6.4 (1993): 525-533.

20. MATLAB