Parameter Identification of PMSM Using Immune Clonal Selection Differential Evolution Algorithm

Permanent magnet synchronous motor (PMSM) models with accurate parameters are crucial to high performance PMSM control system designs. As the estimation of PMSM parameters is very difficult due to the nonlinear model complexity, a novel immune clonal differential evolution algorithm (ICDEA) is proposed to identify the electrical parameters of nonsalient pole PMSM. Clonal selection and receptor editing mechanism are introduced to ICDEA to increase the diversity of the population and improve searching capability. The effectiveness of the proposed identification method is verified by both simulation and experiment. The results show that the proposed algorithm has good convergence in simultaneously estimating stator resistance, dq-axis inductances, and rotor flux linkage. In addition, the convergence speed of ICDEA is compared with other differential evolution (DE) algorithms, which verifies that the ICDEA has better performances in global searching.


Introduction
Permanent magnet synchronous motor (PMSM) is widely used in high performance servo system due to its high power density and high efficiency.Meanwhile, control techniques such as field oriented control (FOC) and direct torque control (DTC) for controlling PMSM are also still developing and improving.In FOC, the parameters of current control loop will directly affect the overall performance of the system, and the greatest impact on the design of the current loop controller is the stator resistance and stator inductance.Therefore, identification of motor parameters accurately is important to design the current loop controller.In addition, parameters of speed loop and position loop controller are also influenced by the current loop control parameters.In DTC, electromagnetic torque and stator flux are used as control variables to directly control the torque and flux deviation through the hysteresis comparator.It is necessary to estimate the stator flux accurately, and the premise to estimate the stator flux accurately is to know the motor parameters exactly [1].Common methods proposed for parameter identifica-tion include least squares [LS] method [2], model reference adaptive (MRA) method [3], extended Kaman filters (EKF) method [4], artificial intelligence methods (neural networks, fuzzy logic, genetic algorithms, etc.) [5], and evolutionary algorithms [6,7].
The LS method is simple.When used in parameter identification, its objective function is the square of error between the measured results and the calculated results, and the minimum value of the objective function is zero.The LS method is suitable for online identification of motor parameter as its calculation amount is small.However, during the identification process, It is need to differentiate the objective function with respect to the motor parameter.The result of differentiation is easily affected by speed fluctuations or measurement noise which will lead to the deviation of the estimation result.
EKF method can avoid the problem of noise sensitivity and can estimate the state and parameters of the motor simultaneously.However, owing to large number of vector and matrix operations during the iterative process, the computation amount of this algorithm is great.In addition, 2 Mathematical Problems in Engineering pretreatment of motor mathematical model is needed and this is complex when used in multiparameter identification.As in [8], the motor and load parameters including stator resistance, stator inductance, and torque constant are identified using neural network.Reference [9] used back-propagation neural network for speed estimation; this method does not require prior model training and offline training, and the whole training process is conducted online.However, the neural network methods cannot guarantee their own stability and the convergence of the identification results.In [10], an MRA parameter identification method is proposed.The motor resistance is set as design value on the data sheet, and then we identify the rotor flux and stator resistance; however, when the motor is running, the resistance is changing which will bring to great estimation error.In [11], Popov stability criterion was used to estimate PMSM parameter and the identification effect is better.But this method cannot estimate the parameters of the stator resistance, -axis inductance, and rotor flux linkage simultaneously.Evolutionary algorithm based on immune particle swarm optimization (PSO) was proposed in [12]; this method can identify stator resistance, stator flux, and inductance simultaneously and the result is accurate, but the method is too complex.
An immune clonal differential evolution algorithm (ICDEA) based estimation method for identifying the electrical parameters of a nonsalient pole PMSM is proposed.The proposed method does not need the nominal value of any parameters and can estimate the stator resistance, axis inductance, and rotor flux linkage simultaneously.The proposed method is verified through both simulation and experiment test and shows good performance in estimation of the electrical parameters of PMSM.

Model of PMSM
Ignoring the iron loss, magnetic saturation, and magnet eddy current loss, the electrical model of a sinusoidal PMSM in synchronous rotating reference frame (-axis) can be expressed as follows: where   ,   ,   , and   are the -component of stator current and voltage, respectively,  is the rotor electrical angular speed,   ,   ,   , and  are the stator resistance, and -axis and -axis are the inductance and permanent magnet flux linkage, respectively.In the proposed identification method, -axis current, -axis voltage, and rotor electrical speed are measured and stored after filtering by low-pass filter.The parameter identification can be based on steady state discrete model of PMSM [13] as shown in the following:   () =     () −    ()   () ,   () =     () +    ()   () +  () . ( The zero -axis current control strategy (  = 0) is widely used in PMSM control.In this case, (2) can be simplified as In (3),   ,   ,   , and  are the unknown parameters to be identified; other variables, such as -axis current, -axis voltage, and electrical speed, are measurable.As there are four parameters to be estimated and the rank of (2) or ( 3) is two, it can be regarded as rank deficient equation.To solve the rank deficient problem, in [14] LIU injects a short pulse of negative   current and simultaneously solves two sets of simplified PMSM state equations corresponding to   = 0 and   ̸ = 0 and gets a set of -axis equation as follows: where the variable and parameters with/without suffix "0" are referred to as   = 0 and   ̸ = 0, respectively.

Immune Clonal Selection Differential Evolution Algorithm (ICDEA)
3.1.Standard Differential Evolution Algorithm.Differential evolution (DE) algorithm was proposed by Storn and Price in 1997 and has received increasing attention due to its effectiveness and simplicity [15].DE algorithm is a population-based evolutionary computing method and has the characteristic of memorizing of individual's optimal value, sharing internal information.Its basic operator includes mutation, crossover, and selection.It can be seen as a kind of greedy genetic algorithm with the idea of ensuring quality.In the initialization phase, the individuals are initialed with an average probability distribution within the search space.In the evolutionary stage, individuals undergo mutation, crossover, and selection until the stop condition is met.Each individual represents a candidate solution of objective function (); its quality is evaluated through calculating the fitness function and the optimal individual is recorded and tracked.The evolution process of DE starts with a population which includes NP individuals; each individual is a  dimensional vector and can be described as follows: The evolution process starts after the population is initialized randomly, and the process includes mutation, crossover, and selection operation.There are several mutation strategies according to the producing way of individual.Common mutation operator include DE/rand/1/bin and DE/best/1/bin.For each target individual   , according to the mutation operator, a mutation vector V  , is generated by adding the weight difference between a defined number of individual randomly selected from the previous population and another individual, which is described as or where   best, denote the best individual in current population, 1, 2, 3 ∈ {1, 2, . . ., NP} are integers randomly generated and mutually different and also different from , and  ∈ (0, 2) is the scaling factor, which is a positive constant and used to control the amplification of the differential of where CR ∈ [0, 1] is called a crossover constant, rand() is the th evaluation of a uniform random number generator with value between 0 and 1, and   is a randomly selected index ∈ 1, 2, . . .,  and used to ensure that   , is different from V  , [15].
"Greedy" selection strategy is used in selection phase to ensure the better individual can get into next generation.Individual of next generation is created according to the following formula:

Immune Differential Evolution Based on Clonal Selection
Algorithm.As described above, DE algorithms use greedy search strategy in selection operation; that is, after mutation and crossover operation, only the individual with better fitness value can be chosen as offspring.This greedy mechanism can increase the convergence speed of the algorithm; however, it is easily trapped into local minimum and lead to the premature convergence.To deal with this problem,a DE algorithm based on immune clonal selection algorithm is proposed.In proposed algorithm, certain number of outstanding offspring individuals underwent clonal selection operation, which retains the excellent individuals as much as possible and thereby enhancing the convergence accuracy and diversity of the population.The inactive individual undergoes receptor editing operation to ensure the diversity of the population and to speed up the convergence rate of the algorithm.

Artificial Immune Algorithm.
One reason for premature convergence in DE algorithm is that the population diversity declines rapidly during the iteration; this is called as gather phenomenon, which makes the difference between the individual's fitness get smaller and smaller and tend to concentrate on converging to one point, and the population cannot research in the solution space.Therefore, the algorithm falls into a local optimum and premature convergence phenomenon is appearing.In addition, as DE algorithm is a stochastic search method, if the problem is a multimodal function in which multiple local minima exist, the algorithm is easy to trap into local optimum and is difficult to find the global optimum.In order to improve the optimization capability to solve multimodal problem, clonal selection mechanism and the receptor editing mechanism are introduced.

Clonal Selection Algorithm.
Clone selection algorithm (CSA) was presented by de Castro and Von Zuben in 2000 [16].As a new kind of bionic intelligent algorithm, CSA has the property of fast convergence to the global optimizations.CSA introduces the mechanism of affinity maturation, clonal and memory based on the traditional bionic evolutionary algorithm and uses the corresponding operators that guarantee it converging to the global optimization.The basic steps of CSA are as follows: Step 1. Generate a set of candidate solutions  = { 1 ,  2 , . . .,   }.
Step 2. Clone the individual in population ; the clonal size is proportional to its affinity: where round( ) denotes the rounding function,  is population size, and  ∈ (0, 1); constant  ⩾ 1 is added to ensure that each antibody has a certain number.After clonal operation, a temporary population  is generated.
Step 3. Antibody population ( * ) is created through hypermutation to each individual in population .Inspired by natural biological evolution, in the beginning stage of evolution, the mutation rate is larger to maintain the diversity of the population, whereas in the later stage of evolution, the mutation rate declines gradually to improve the ability of local tuning.The mutation operator is defined as follows: where rand(0, 1) is random number between 0 and 1,   = 0.5, () = 1 −  (1−/ max ) ,  max is the max number of evolutionary generations,  is normal number and its general value is set to 2, and  ∈ (0, 1).It can be seen from ( 11) that in the beginning of evolution, when  is small, () ≈ 1, mutation range is large and in the later stage of evolution, when  is near to  max , () ≈ 0, local search will be carried on within a small range local space.
Step 4. Immune selection operations: after clonal operation, the individual with optimum affinity is chosen to next generation.Through local selection, population compression is realized while ensuring the optimal solution in the antibody group is not deteriorating.

Receptor Editing Mechanism.
Receptor editing mechanism [17] refers to the T-cell and B-cell receptor's structure change in specific condition and the affinity of receptor change accordingly.Receptor editing mechanism enriches the diversity of antigen receptors.In ICDEA algorithm, inactive cell receptor is distinguished at intervals of certain generation, and receptor editing is carried on to this inactive cell receptor through using nonlinear logistic sequence to realize the random and regular drift as the following formula: min id ,  max id are low bound and up bound, respectively, and  is normal constant and its value is determined by specific problems. +1 is mapping of chaotic sequence logistic and given by where  is the control parameter of system; it has been proved by [18] that when  = 4 and   ∈ (0.25, 0.5, 0.75, 1), the system described by ( 13) is completely chaotic and  +1 is ergodic within 0 and 1.

Algorithm
Procedure.The proposed ICDEA can be summarized as follows.
Step 1. Set the values of population size NP, maximum number of iterations  max , scaling factor , and crossover probability CR; set the current number of iterations  = 1 and initialize each individual randomly according to the following formula: where  = 1, 2, . .., NP;  = 1, 2, . . ., , and    and    are up bound and low bound on th dimension.
Step 2. Calculate individual fitness and find the optimal fitness value and record the best individual in the current generation as   best .
Step 3. If the optimal fitness value reaches theoretical optimal value or current number of iterations  is equal to  max , then output the outcome; otherwise, go to next step.
Step 4. Sort all individuals according to their fitness value.For the top one fourth of the outstanding individual, clonal selection operation is carried on; if the individual fitness value is better than the current generation of global optimal individual fitness, it is replaced with the individual global best individual   best , whereas one fourth of individual with poor fitness undergo receptor editing operations every several generations.
Step 5. Randomly select two different individuals in the population and generate individual V   through mutation operation according to (6).

Multiparameter Identification of PMSM Using ICDEA
Parameter identification of PMSM can be regarded as a system optimization problem.The identification principle is to find a set of parameters that minimize the error between the output of the theoretical model and the actual system.To use optimization algorithm for parameter identification, the model of PMSM can be described as the form of differential equations which is as follows [19]: where () = (  ,   ) is the state vector, () = (  ,   ) is the system input vector,  = (  ,   ,   , ) is the parameter vector which is needed to identify, () is the measurable output vector, and (, (), ()) and (, ) can be either linear or nonlinear function.The objective of parameter identification is to identify the unknown parameter vector  as accurately as possible; an equipollent tracking model of the system is established as follows:  where p is the estimated value of .The structure of the ICDEA based parameter identification of PMSM is illustrated in Figure 1.First, () = (  ,   ) is fed into both the system to be identified and the desired system; the outputs of both of the system and its desired system are input to the performance evaluator and then the fitness will be calculated; the calculated fitness is input to the ICDEA based identifier to estimate the unknown parameter vector; the estimated parameter will be used to update the system model.The above process will be repeated until the error between output of system and its model reaches the desired error limit or the preset maximum iteration number is equal to its preset maximum.
As described above, PMSM parameter identification is an identification problem with nonlinearity structure.Four parameters, stator resistance,  axis inductance, and linkage flux are to be estimated.The fitness function is constructed according to (2), (3), and Figure 1 [20].Consider where  1 ,  2 ,  3 ,  4 are weight value and  is the number of sample data.Equation ( 17) is a function of the estimated parameters with multiple local optima.As traditional algorithms usually have difficulties in optimizing complex nonlinear systems with multiple local optima, the fitness function is optimized using the proposed ICDEA to search   for better identification of PMSM electrical parameters.The flow chart of the ICDEA based parameters identification is illustrated in Figure 2. The time complexity of each step is presented in Table 1.

Simulation.
A nonsalient poles PMSM is simulated in Matlab to demonstrate the performance of the proposed ICDEA applied to PMSM parameter identification.In the simulation, the PMSM is applied to vector control drive system with cascaded PI controllers which are widely used in industrial motor drive system.Similar structure is used in our experimental test platform.Nominal parameters of the simulated PMSM are listed in Table 2.
To compare with others algorithms, different DE algorithms include DE [21] and adaptive differential evolution (ADE) [22]; hybridizing differential evolution and particle swarm optimization (HDEPSO) [23] are applied to the PMSM electrical parameter identification.During simulation, all the algorithms iterate 100 generations; the parameters of simulated PMSM are chosen to be identical to the test motor datasheet parameters.Figure 3 shows the optimization process of the fitness function (cost) and the optimization process of the identified parameters   ,   ,   and  are shown in Figure 4.
It can be seen from Figures 3 and 4 that the convergence rate of proposed ICDEA is significantly faster than DE, ADE, and HDEPSO, and the algorithm is capable of identifying the electrical parameter of PMSM accurately.

Experimental Verification.
To further verify the effectiveness of the proposed estimation method, experiments are performed on a platform of PMSM drive system.The experimental data were obtained on a PMSM fed from vector control drive and coupled to an identical DC motor as its load.The DSP (TMS320LF28335) based hardware test bed is displayed in Figure 5, specification for PMSM is identical to Table 2.
In the experiment, the motor was started and rotated at its rated speed.Data including -axis current, -axis voltage, and electrical speed are sampled and memorized.During the identification process, the data are sent to the computer to  calculate iteratively.The procedure is similar to that of the simulation described previously, except that the real data are utilized.
The convergence rates of different evolution algorithms are shown in Figure 6  Optimization process of the identified parameters is shown in Figure 7.The identification results are present in Table 3.It can be seen from the experiment results that the ICDEA is the best identification algorithm compared with DE, ADE, and HDEPSO.

Conclusion
A new hybrid DEA named ICDEA is proposed for PMSM electrical parameters identification.ICDEA incorporates clonal selection, receptor editing, and DEA.Both simulation and experiment results are provided to verify the effectiveness of the proposed method.Comparing with other different DEA shows that the ICDEA has better optimization capability and has good convergence in simultaneously estimating and thus represents the level of mutation.Following the mutation operation, for each target individual   , a new individual is generated by the following equation: , rand () ≤ CR or  =     , , otherwise, the new individual in the new population and ( ) is the fitness function.Only the value of fitness function of trial vector    is smaller than that of the target vector    ; the next generation will be replaced by    .

Figure 1 :
Figure 1: Components of the ICDEA based parameters identification.

Figure 2 :Figure 3 :
Figure 2: Flow chart of the ICDEA based parameters identification.
Estimated of -axis inductance   Estimated of flux linkage
Estimated -axis inductance   Estimated rotor flux linkage

Figure 6 (
b) shows the fitness value variation of DE, HDEPSO, ADE, and ICDE, respectively, which shows that the ICDE can converge to the global optimum about 4 s and it is more effective than the other three DE algorithms.

Table 1 :
Time complexity of the proposed identification algorithm.

Table 3 :
Experimental results.electrical parameters such as stator resistance,  axis inductances, and rotor flux linkage.As the proposed method is used for nonsalient pole PMSM (assuming that   =   ), it still needs further research for parameter identification of salient pole PMSM. PMSM