You are on page 1of 4

2011 Fourth International Symposium on Computational Intelligence and Design

Application of fuzzy neural PID controller based on


PSO for high precision servo system
Li Xinghua Chen Wenlei Zhang Yajuan
State Key Laborary of Precision Measuring Technology and Instruments
Tianjin University
Tianjin,China
e-mail:li.xinghua@126.com, sdkdcwl@163.com,yajuanzhang216@163.com

Abstract-Friction is a key factor that influences the low velocity Literature five to seven use adaptive control theory which
performance of high precision servo systems. It usually causes the promises to solve the time-varying uncertainties problem of the
steady-state error of servo systems and results in the creeping controlled object.
phenomenon in low velocity motions. Friction is complicated
nonlinear process with time-varying uncertainties. The traditional In this paper, a new technology of FNN-PID controller
PID controller of servo systems with fricition was not satisfactory in based on modified PSO algorithm is proposed and the
control precision and response time.In this paper,the fuzzy neural experiments results demonstrate that it has particular effect to
PID controller based on fuzzy neural network(FNN),which eliminate the friction torque disturbance.
combines the advantages of robustness and nonlinear characteristic
of fuzzy control and adaptive self-learning capability of neural II. SYSTEM MODEL
network,was used to eliminate nonlinear disturbance caused by
friction.To solve the problems of stagnation,poor convergence and The paper mainly focuses on the design of speed tracking
local optima in traditional NN Learning Algorithms,the modified algorithm for servo system,the diagram of the system is shown
PSO algorithm is adopted to train FNN on line. The experiment as figure 1.
result demonstrates that FNN PID controller can remove friction
disturbance efficiently and reduce steady-state error to only one
fifth of the one using the PID algorithm.

Key words-friction;nonlinear;high precision;FNN;PSO

I. INTRODUCTION
High precision servo system is widely used in precision
instruments and equipments,such as laser tracking system,AUV
auto-navigation system. Engineering experiments show that
Figure 1. Servo system diagram
friction has always been a crucial element that limits the
performance of servo system including steady-state
v is the given speed,y is the output speed,C is the speed
error,response time,overshoot.When the servo system runs at a
controller,PWM is the PWM wave driver which power the
low speed especially the vicinity of speed zero-point,the
brushless DC motor M.f denotes the friction torque disturbance
friction torque of symtem will show nonlinear characteristics
to motor,and circular grating detects the joint angle signal of
with the friction model parameters changing at different place
motor.When the motor runs at low speed,with the friction
and some other uncertainties which results in oscillation,large
torque having strong nonlinear characteristic,there will be large
steady-state error,bad tracking performance of the servo
steady-state error and control result become poor.So the
system.The traditional PID control technology has taken an
elimination of friction disturbance effect is crucial in high
important role in linear system because of strong robustness
precision servo system.
and easy feasibility.However,with the presence of limitations
like low efficiency,bad robustness for nonlinear system ,PID
controller can not meet the demand of high precision,low III. DESIGN OF FUZZY NEURAL NETWORK PID CONTROLLER
tracking error,short response time, nonlinearity of high Fuzzy neural network(FNN) combines the advantages of
precision servo system with friction disturbance.So far many fuzzy control and neural network and has been used in control
researches have been done on friction disturbance control and system fields with great potential of progress[8-9].Fuzzy
typical literatures[1-7] intensify our study on this control has strong robustness and good capacity to eliminate
field.Literature one and two integrate neural network and fuzzy nonlinear disturbance,while neural network has self-learing
control theory with PID control theory so as to solve the ability and self-adapting capability for model parameter
nonlinear problems caused by dynamic friction. Literature changes of controlled object.The input state variables are
three and four estimate the friction torque with the device of an preprocessed by fuzzy classification which promises to get
observer and compensate the friction disturbance in real time. high control efficiency and can avoid input saturate.

978-0-7695-4500-4/11 $26.00 © 2011 IEEE 291


DOI 10.1109/ISCID.2011.175
Membership functions in fuzzy control become neural choosed for every fuzzy variable,and the related
functions in FNN so that the membership of fuzzy variables membership function for B ans S are Gaussian function
can be adjusted dynamically.Fuzzy rules are expressed as x−a 2
hidden nodes and weighted sums of these nodes and therefore with a normal distribution μ = exp[ −( ) ] .The
the fuzzy control rules can be regulated adaptively by changing b
nodes weights of network.The output variable of FNN is the membership of four nodes can be changed through the
value of parameters Kp,Ki,Kd of PID controller.When in parameters a and b which can change the shape and center
running state,the FNN-PID controller can optimize fuzzy point of membership curve.
control rules by regulating parameters of neural functions and 3) Rules layer,used for fuzzy reasoning.Every node
nodes weights to obtain optimal PID parameters. The structure represents a fuzzy rule in this layer.
of FNN-PID controller is shown as figure 2. 4) Certainty layer,or Output layer.The nodes value in output
layer are weighted sum of nodes values in Rules layer or
some additional process through neural function such as
avoiding saturation.Finally,the nodes value are Kp,Ki,Kd
for PID controller.
IV. FNN LEARNING ALGORITHM BASED ON MODIFIED PSO
The process of self-learning and self-regulating PID
parameters in FNN is essentially the process of regulating
network weight w and membership functions parameters a and
b. PSO,as a new optimal algorithm which imitates swarm
intelligence of birds flight and is characteristic of global
optimization and fast convergence speed,has been drawn more
and more attention in NN Learning field.PSO has been used in
Figure 2. FNN-PID controller diagram
NN training and is better than BP algorithm in learning time
and training precision.
A. Description of fuzzy neural network(FNN)
FNN,which does the fuzzy reasoning in neural network A. Overview of PSO
way,has the essence that it expresses fuzzy control rules by Particle Swarm Optimization(PSO) was firstly proposed by
neural network reflection mechanism.The input and output Kennedy and Eberhart in 1995, and it is an evolutionary
variables in fuzzy control are expressed by input and output algorithm based on iterations.Recently it is used as learning
nodes in FNN,while membership functions and fuzzy rules are algorithm for neural network training in many fields with many
expressed by hidden nodes and neural functions.The structure modified algorithm[10-13].Every potential solution of
of FNN in this paper is shown as figure 3 optimization problems is called Particle whose position
represents potential solution value in search space.Every
particle has the properties of fitness value determined by
optimization problems and flight speed. All particles are
initialized with random values and find the Optimal Solution
iteratively. In each iteration process, particles are updated
through two EXTREME VALUE :one is Optimal Solution
value of particle itself,here called personal best value;the other
one is Optimal Solution value of whole particle swarm,also
called global best value.

B. PSO Algorithm Steps


Step1: Initiate a swarm of particles with random position and
Figure 3. 2-4-4-3 FNN model random speed.The scale of swarm is denoted as m;
Step2: Calculate the fitness value of each particle;
The model in figure 3 is a 2-4-4-3 neural network which Step3:Update the pbest value.For each particle,compare the
consists of four layers: current fitness with the fitness at ever best position pbest.If the
1) Input layer,this layer has two nodes to express absolute current fitness is larger than the one at pbest position,take the
current position as the pbest position;
value of error e and change rate value ec
Step4:Update the gbest value.Similar to Step3, compare the
2) Fuzziness layer is also called membership functions layer current fitness with the fitness at ever best position of the
whose nodes are fuzzy subsets of fuzzy variable e and whole swarm gbest.If the current fitness is larger than the one
at gbest position,take the current position as the gbest position;
ec .To simplify model structure and decrease the system Step5:Regulate the position and speed of flight particles
complexity,here only two fuzzy subsets,B and S,are basing on formula (1) and (2);

292
v(i) = w × v (i ) + c(1) × rand () × ( pbest (i ) − x (i ))
(1)
+ c(2) × rand () × ( gbest (i ) − x(i ))
x(i) = x (i ) + v(i ) (2)
Step6:Turn to Step2 if termination condition is not satisfied.
C. FNN training based on PSO
The control effect of controller is generally evaluated by
parameters like steady state error, regulating time,rise time,
overshoot and so on,so the fitness function can be function of
weighted sum of the above parameters.In this paper we choose
1 as the fitness function where x is system input
f =
( x − y) 2 Figure 4. PID algorithm with given speed 0.1rpm
value and y is system output value.

D. Measures to improve NN training result


1) Regulating inertial weighting factor dynamicly
To increase search speed of PSO algorithm,it is necessary
to dynamicly regulate inertial weighting factor w which
determines the search speed and search presion.Make w be a
nonlinear function of fitness value f so that larger serch speed
is gained to avoid local optima and fastly reach optimum range
at the initial phase of search process while smaller serch speed
is gained to improve search precision at the vicinity of the
Optimal Solution.To design an efficient w function,function
curves are obtained through experiment offline at different
fitness range and the whole w function are expressed in
separable function way. Figure 5. FNN-PID algorithm with given speed 0.1rpm

2) Combine online training with offline training


First train FNN through a large number of training data
sampled by offline experiment to obtain a set of optimal NN
parameters;When in running state online,take the offline
optimal NN parameters as initial value of particles to get
optimal solution with higher precision.

V. EXPERIMENTS
In this experiment the DC motor is the controlled object
and the given speed signal is Square Wave whose period is
1.25s.Since the range of motor running speed is from -1rpm to Figure 6. PID algorithm with given speed 1rpm
1rpm,the situations of signal with the peak value of r0.1rpm
and r 1rpm are choosed as the given speed signal
repectively.The traditional PID algorithm and FNN-PID based
on modified PSO algorithm are adopted in the controller.The
given speed curve and response speed are shown as Fig 4 to
Fig 7.
The comparison results indicates that FNN-PID based on
modified PSO algorithm can efficiently decrease the steady
1
state error,caused by friction torque disturbance,to only of
5
the error using PID algorithm.

Figure 7. FNN-PID algorithm with given speed 1rpm

293
VI. CONCLUSION control (MRAC)[C]//International Conference on Computer,
Mechatronics, Control and Electronic Engineering,2010.IEEE 2010:534-
Through the above contrast experiments,a conclusion is 537
drawn that the FNN-PID based on modified PSO algorithm is [6] Lu Lu,Yao Bin,Wang Qingfeng,Chen Zheng.Adaptive robust control of
anvanced than PID algorithm in friction disturbance restriction linear motor systems with dynamic friction compensation using
and can meet the demand of high priction,short response modified LuGre model[C]//IEEE/ASME International Conference on
time,small overshot of servo system.FNN-PID controller,with Advanced Intelligent Mechatronics,2008.IEEE 2008:961-966
advantages of self-learning,self-adapting capability and fuzzy [7] Xingjian Wang,Shaoping Wang,Bin Yao.Adaptive robust control of
linear electrical loading system with dynamic friction
reasoning,is an efficient way to solve nonlinear problems in compensation[C]//IEEE/ASME International Conference on Advanced
control engineering. Intelligent Mechatronics (AIM 2010),2010.IEEE 2010:908-913
[8] RongJong Wai,ZhiWei Yang,ChihYi Shih.Adaptive fuzzy-neural-
ACKNOWLEDGMENTS network velocity sensorless control for robot manipulator position
tracking[J].IET Control Theory & Applications,v 4, n 6, June
This project was financially supported by State Key 2010:1079-1093
Laborary of Precision Measuring Technology and Instruments [9] Xu Chunmei.Complex control based on fuzzy-neural for mechanical
of Tianjin University. servo systems[J].Control Engineering China, v 17, n 2,March 2010:146-
148, 153
[10] Guo Zhirong,Xie Shunyi,Gao Wei.Study on a recurrent functional link-
REFERENCE based fuzzy neural network controller with improved particle swarm
[1] Zhou Runjing,Yuan Weiting,Zhangfei.Application of NN-PI controller optimization[C]//Proceedings of 9th International Conference on
in direct current motor servo system[C]//International Conference on Electronic Measurement and Instruments,2009.ICEMI 2009:31095-
Electronic Measurement & Instruments,2007.IEEE 2007:468-471 31100
[2] Popa,Craciunescu,Kreindler.A PI-fuzzy controller designated for [11] Shafiabady,Teshnehlab,Aliyari Shooredeli.Training matrix parameters
industrial motor control applications[C]//IEEE International Symposium by particle swarm optimization using a fuzzy neural network for
on Industrial Electronics,2008.IEEE 2008:949-954 identification[C]//Proceedings of 2007 International Conference on
Intelligent and Advanced Systems:188-193
[3] Stotsky Alexander.Adaptive estimation of the engine friction
torque[C]//Proceedings of the 44th IEEE Conference on Decision and [12] Ming Ma,LiBiao Zhang,Jie Ma,ChunGuang Zhou.Fuzzy neural network
Control, and the European Control Conference,2005:6710-6715 optimization by a particle swarm optimization
algorithm[C]//Proceedings of Third International Symposium on Neural
[4] Liu Zhigang,Wang Junzheng,Zhao Jiangbo.Friction compensation using
Networks, 2006:752-761
dual observer for 3-axis turntable servo system[C]//IEEE International
Conference on Automation and Logistics(ICAL),2009.IEEE 2009:658- [13] GuoRong Cai,ShuiLi Chen,WenZhong Guo.Fuzzy neural network
663 structure of linguistic dynamic systems based on nonlinear particle
swarm optimization[C]//Proceedings of 2008 3rd International
[5] Ruijuan Guo,Juan Chen,Xiaoxing Hao.Position servo control of a DC
Conference on Intelligent System and Knowledge Engineering (ISKE
electromotor using a hybrid method based on model reference adaptive
2008):886-891

294

You might also like