Abstract
Detection of the rotor position is an important prerequisite for controlling the speed and developed torque in permanent magnet synchronous motor (PMSM). Even though use of incremental encoder and resolver is one of the popular schemes for sensing the rotor position in a PMSM drive, it increases the size and weight of the drive and reduces its reliability. Dynamic modeling of the motor and control algorithms are often used in sensor-less control of PMSM to estimate rotor position and motor speed. Most sensor-less control algorithms use machine parameters like torque constant, stator inductances and stator resistance for estimating the rotor position and speed. However, with accuracy of such estimation and the performance of the motor degrades with variation in motor parameters. Model reference adaptive control (MRAC) provides a simple solution to this issue. An improved Adaptive neuro-fuzzy inference system (ANFIS) based MRAC observer for speed control of PMSM drive is presented in this paper. In the proposed method adaptive model and adaptive mechanism are replaced by an improved ANFIS controller, which neutralize the effect of parametric variation and results in improved performance of the drive. The modeling equations of PMSM are used to estimate the rotor position for speed and torque control of the drive. Simulation studies have been carried out under various operating condition using MATLAB/Simulink. In addition, a comparative analysis of the conventional MRAC based observer and improved ANFIS based MRAC observer is carried out. It is observed that the proposed method results in better performance of the PMSM drive.
Keywords
Introduction
Nowadays, alternating current (AC) motors are widely used for industrial, robotic and automobile applications in comparison to direct current (DC) motors due to their better efficiency, small size for the same power output and low maintenance. However, the control of AC motor is more complex than that of DC motor. Induction motor (IM) and PMSM are the most widely used AC motors. PMSMs are preferred in industrial applications over IM, due to their better reliability, compactness, higher power density and higher efficiency [1–5]. However, for efficient control of PMSM it is essential to know the rotor position, which can either be obtained using resolvers / encoders or estimated using the measured stator currents and back emf. Position sensors like resolver and encoder are mounted on the motor shaft, which results in reduced reliability due to sensitivity to vibration, high temperature, and noise. This also increases the volume, weight and the machine cost. These issues can be addressed by estimation of the rotor position rather than using resolvers / encoders. The reported methods for sensor-less control of PMSM drives include: 1) flux linkage and back-emf based estimation of rotor position [6, 7]; 2) high frequency (HF) signal injection for tracking the rotor saliency [8, 9] and 3) nonlinear state observer-based estimation of rotor position and speed [10]. Based on these categories many established algorithms are used to estimate the rotor position and motor speed in PMSM drives [11–16].
The back-EMF based method is generally employed for medium to high speed operation of the PMSM drive; while HF signal injection method is used for low operation. In HF signal injection method, the position of the rotor is obtained by analyzing the injected HF signal. The observer-based sliding mode observer techniques are easy to implement and immune to parametric variations but often results in the chattering problem. MRAC based observer is a direct control approach [17], which can effectively manage any systems with parametric variations using the models, viz- reference model and adjustable model. An adaptive mechanism is implemented to adjust the motor parameters continuously. While adjustable model depends on unknown parameter, reference model is not parameter dependent. The error signal of two models is applied to an adaptive mechanism to estimate unknown quantities which tunes the adjustable model. Adaptive control is widely used for both the linear and nonlinear systems. However, the estimation of unknown quantities of the motor in nonlinear system is complex to implement.
This paper proposes an improved ANFIS-based MRAC technique to solve these problems related to uncertain parameters and input saturation [18, 19]. In the proposed method, the adaptive model and mechanism to minimize the stator current error are replaced by ANFIS controller. In the architecture of ANFIS, fuzzy has the ability to handle uncertainties and artificial neural network (ANN) has the ability to learn from the process. An adaptive model of PMSM is developed using ANFIS at undefined operating conditions, which automatically compensates for variations in resistance, inductance etc. The PMSM drive is modeled using the rotating reference frame. This mitigates the issues associated with adaptive control in estimating PMSM’s rotor position with unknown parameters. The novelties of the proposed improved ANFIS based MRAC observer include: - Performance of the proposed observer is improved by using adaptive normalization method to normalize the inputs and output data extracted from the Proportional-plus-integral (PI) controller, which is further applied to reduce the error of two models to fine tune the membership function near the desired speed. The PI controller is replaced by an improved ANFIS controller. This paper focuses on the effect of load variation on the speed response in terms of settling time, rise time and overshoot.
The proposed improved ANFIS based MRAC observer is investigated through simulation studies using MATLAB/Simulink for sensor-less speed control of PMSM drive over a wide varying operating condition. The performance of drive with the proposed MRAC is also demonstrated for low-speed operation at low load torque. This paper is organized into six sections with Introduction in Section 1, Sections 2 to 6 cover Modeling of PMSM in d-q Coordinates, Design of Improved ANFIS based MRAC Observer, Principal of SVPWM, Results and Discussions followed by the Conclusion.
Dynamic modeling of PMSM in d-q coordinates
The PMSM is modelled in the d-q rotating reference frame as
Where
The load torque, T
L
is defined in terms of T
e
, mechanical speed (ω
m
), inertia constant (J) and damping coefficient (B) as:
The mechanical motor speed of given by
The rotor electrical speed, ω
r
and rotor position, θ are:
Figure 1 shows the block diagram of PMSM Drive with improved ANFIS based MRAC observer. It includes an improved ANFIS based MRAC observer with SVPWM and a speed controller in outer loop and two current controllers in inner loop. The rotor position and motor speed and are assessed through the proposed observer using (8), (9) and (10). The measured terminal voltage and current are transformed into the d-q axes using vector transformation. The PWM pulses are generated by SVPWM and fed to voltage source inverter (VSI) which produces the voltage signal for the operation of PMSM.

A Block diagram of PMSM Drive with Improved ANFIS based MRAC Observer.
The rotor position and speed of the PMSM are effectively estimated through MRAC based observer. Figures 2(a) and 2(b) show the conventional MRAC based observer and improved ANFIS based MRAC observer used for sensor less control of the PMSM. In MRAC based observers the reference model is derived from PMSM model and adjustable model is derived from stator winding currents, which is regulated by estimated value of speed [20–22]. In the conventional MRAC adjustable model is regulated by a PI controller used in the adaptive mechanism; while in the proposed method, the adjustable model is regulated by the improved ANFIS based adaptive mechanism.

A Block diagram of: (a) Conventional MRAC, (b) Improved ANFIS based MRAC.
Adjustable model is derived with the help of stator current equation. Speed error is continuously monitored for negative feedback to ensure system stability.
The stator current equation of PMSM is given as
The Equations (8) and (9) can be expressed as
Where
Replacing the conventional adjustable model and adaptive mechanism by improved adjustable model and ANFIS based adaptive mechanism mitigates parameter uncertainties. The ANFIS strategy is based of Takagi-Sugeno (TS) system. The rules are defined in linguistic forms hence transitional results can be evaluated and understood easily [23]. The rules can be changed during training and optimization process.
The data set required for training of the ANFIS learning is the I/O data pairs of the defined system. The broad outline of the architecture of the ANFIS controller involves the i) defining of fuzzy inference systems; ii) defining of training data set and checking the data sets; iii) defining number of data pairs; iv) defining number of epochs; and v) Learning from the results.
The architecture of ANFIS is given in Fig. 3. It is similar to the fuzzy inference system, expect for the neural network block. It is structured in five layers linked to each other and termed as follows:

Architecture of (a) Fuzzy inference system (b) Corresponding ANFIS.
Figure 4 shows the flow chart of proposed MRAC observer, which summarizes how the proposed observer is designed to estimate the motor speed and rotor position.

Flow chart of proposed Improved ANFIS based MRAC Observer.
SVPWM method of PWM generation is the most prevalent among all the methods of PWM generation as it provides high DC voltage, V
dc
and is easy for implementation in the digital domain [24–27]. The output voltages of the inverters are represented as space vectors. The spatial position of the three phase voltages (v
an
, v
bn
and v
cn
) fed to the stator windings, determines the magnitude and position of the space vector, v. The axis and the length of their coordinates define the voltage vectors direction.
Figure 5 shows the block diagram of the VSI. The SVPWM consists of 6 active inverter switching states which are defined as (100)

Block diagram of VSI.

Space voltage vectors.
The active voltage vectors are spaced apart with a phase angle of 600 and null vectors are situated at the zero. The desired output voltage vector can be situated in any of the six sectors, which make a hexagon.
The reference voltage vector. V ref , is created by null vector at operating time T K and adjacent vector at operating times, TK+1, in the sector where V ref resides. At any given sampling instance, the duration of the active and null vectors should follow the voltage-seconds balance, T S . The SVPWM input should be in the α-β reference coordinates, so that the voltage components V dref and V qref can converted into V∝ and V β by inverse park transformation. This is executed in four stages as given below:
The Sector, N, is selected based on the relationship between V∝ and V
β
in each sector as:
If
The sector, N in which the voltage vector lies is determined by the relationship:
The operating time, X, Y and Z of respective voltage in current sector TK and TK+1 are calculated as follows:
Evolution of T K and TK+1
The mathematical addition of T
K
and TK+1 should be less than the total switching period T. If the summation is more than zero, it is revised as:
By using symmetrical PWM arrangement the voltage vectors are switched and the switching points can be evaluated as below:
Table 2 defines the switching points Tsp1, Tsp2 and Tsp3.
Vector Switching Points
Tsp1, Tsp2 and Tsp3 are compared with repeating sequence wave with different frequencies to generate the PWM signals PWM1,3,5 and PWM4,6,2 are the compliments of PWM1,3,5,
A 3-phase 3.4 kW, 314rad/s vector controlled PMSM drive is modeled and simulated in MATLAB/Simulink.
The drive performance is studied and examined under various operating conditions using the conventional MRAC observer and the improved ANFIS based MRAC observer. For simulation studies the sampling time is set at 10μ sec. The parameters of the PMSM is tabulated in Table 3.
Rated parameter of PMSM
Rated parameter of PMSM
Figure 7(a) and 7(b) show the dynamic characteristics of sensor less PMSM drive at a rated speed operation with the conventional MRAC observer and the improved ANFIS based MRAC observer. The motor is started without any load torque at rated speed of 314 rad/s.

Dynamic characteristics of sensor less PMSM drive at rated speed with: (a) conventional MRAC, (b) Improved ANFIS based MRAC.
At 0.03 sec, when full load is applied to the motor, there is a mild dip in the speed during this transition, however, the motor immediately recovers and follow the commanded speed smoothly. During the starting, the stator current is high, as expected, to provide the required dynamic torque needed to overcome the motor inertia. No variation is observed in the estimated position of the rotor with change in load torque as observed from
Figure 7(a) and 7(b). It is also noted that the settling time and time rise in MRAC based on adaptive ANFIS is less than the conventional MRAC, hence PMSM response with MRAC based on adaptive ANFIS is faster.
Figure 8(a) and 8(b) show the dynamic characteristics of sensor less PMSM drive with conventional the MRAC observer and the improved ANFIS based MRAC observer for step change in speed and torque. The motor is started with no-load at half of the rated speed i.e. 157rad/s. At 0.03 sec rated load torque of 11 Nm is applied to the motor and the motor is observed to follow the commanded speed smoothly. At 0.05 sec the motor speed is increased to rated speed of 314rad/s. It is observed that motor follows the commanded speed smoothly.

Dynamic characteristics of sensor less PMSM drive under speed variation with: (a) conventional MRAC, (b) Improved ANFIS based MRAC.
In the case of the conventional MRAC a mild overshoot in torque is observed during the transition in load, while in the improved ANFIS based MRAC no such overshoot is observed. Thus, improved dynamic torque is achieved with proposed method.
Figure 9(a) and 9(b) show the dynamic characteristics of sensor less PMSM drive with the conventional MRAC observe and the improved ANFIS based MRAC observer during speed reversal.

Dynamic characteristics of sensorless PMSM drive in reverse speed with: (a) conventional MRAC, (b) Improved ANFIS based MRAC.
The motor is started at rated speed of 314 rad/s under no load condition and the rated load of 11 Nm is applied at 0.03 sec. At 0.05 s a speed of the motor is reversed.
Some oscillations are observed in the torque response when load torque is applied with the conventional MRAC, while with the proposed method, the load transition is smooth without any oscillations. However, no change is speed is observed during this load transition. During speed reversal, the motor tracks the changes commanded speed smoothly. It is also observed that while achieving steady state speed, there is an overshoot in torque with the conventional MRAC, which is not there in the improved MRAC based on ANFIS.
Figure 10(a) and 10(b) illustrate the dynamic characteristics of the sensor less PMSM drive with conventional MRAC observer and improved ANFIS based MRAC observer under load variations.

Dynamic characteristics of sensorless PMSM drive under load variation with: (a) Conventional MRAC, (b) Improved ANFIS based MRAC.
The motor is running at no load rated speed condition in starting. At t = 0.03 sec a load torque of 5 Nm is applied to the rotor and the load torque is increased to 11 Nm at t = 0.05 sec. The load is reduced to 5 Nm at t = 0.07 sec followed by a change to no load operation at t = 0.09 sec.
During the load transition, some overshoots are observed with the conventional MRAC observer. However, no overshoots are observed with the proposed method and the motor develops the required torque smoothly.
Figure 11(a) and 11(b) illustrate the dynamic characteristics of the sensor less PMSM drive with the conventional MRAC observer and the improved ANFIS based MRAC observer under low speed operation of 10rad/s with a load torque of 5 Nm. The motor is started at a commanded speed of 10 rad/sec under no load condition and a load torque of 5 Nm is applied at 0.1 sec. It is noted that the motor speed follows the commanded value and the required torque is developed smoothly. The settling and rising times of the speed and torque responses of the improved ANFIS based MRAC observer are observed to be lesser than the conventional MRAC observer.

Dynamic characteristics of sensor less PMSM drive at low speed and low load torque with: (a) Conventional MRAC, (b) Improved ANFIS based MRAC.
In this paper an improved ANFIS based MRAC observer is proposed for speed and position estimation in sensor less control of PMSM drive and its performance compared with the conventional MRAC observer. The robustness of the proposed observer is demonstrated successfully under various operating conditions like speed change and torque variation in steps, speed reversal, low speed operation etc. In proposed MRAC observer, an improved ANFIS based adaptation technique is employed which estimates the speed of the rotor by minimizing the error of the reference model and adjustable model. The simulation results obtained confirms the improved performance of proposed observer for all operating speeds and different load conditions. The proposed ANFIS based MRAC observer provides improved steady state and dynamic characteristics of the motor at different speed and load change operation as compared to the conventional MRAC observer.
