Design of Intelligent Self-Tuning GA ANFIS Temperature Controller for Plastic Extrusion System

This paper develops a GA ANFIS controller design method for temperature control in plastic extrusion system. Temperature control of plastic extrusion system suffers problems related to longer settling time, couple effects, large time constants, and undesirable overshoot. The system is generally nonlinear and the temperature of the plastic extrusion system may vary over a wide range of disturbances. The system is designed with three controllers. The proposed GA ANFIS controller is the most powerful approach to retrieve the adaptiveness in the case of nonlinear system. In this research the control methods are simulated using simulink. Relatively the methodology and efficiency of the proposed method are compared with those of the traditional methods and the results obtained from GA ANFIS controller give improved performance in terms of time domain specification, set point tracking, and disturbance rejection with optimum stability.


Introduction
The temperature control in plastic extrusion machine is an important factor to produce high-quality products.Plastic extrusion is a well-known process and widely used in polymerization industry.The extrusion consists of large barrel divided into three temperature zones, namely, barrel, adapter, and die zone, respectively.The temperature zone uses more number of heaters in order to provide different temperature ranges.The overall structure of the plastic extrusion is shown in Figure 1.The polymer is fed into the hopper in solid pellet forms and it passes through the temperature zones where it is heated and melted.The melted polymer material is pushed forward by a powerful screw and it passes through the molding mechanism from the die.The quality of extrudates depends on uniform temperature distribution, physical property of raw material, and so forth.The temperature section of PVC extrusion plant is shown in Figure 2. High efficient plastic extrudates can be obtained only when temperature in all the zones is precisely controlled [1].The implementation of PID controllers retunes their three-term parameters so as to ensure that the dynamic behavior of extruder performance is satisfactory along with the specific heat, thermal conductivity, and ambient temperature which vary with time.PID controllers are used for almost all industrial processes.However, PID controller performs well only at a particular operating range and it is necessary to retune the PID controller if the operating range is changed.The PID controllers do not provide contented results for nonlinear and dead time process [2].
In addition with that, the flow of heat from one temperature zone to another may cause bad transient response for the heating process under set point and load variation.The difficult task of modeling and controlling complex real world systems is difficult especially when implementation issues are considered.If a relatively accurate model of a dynamic system can be developed, it is often too complex to use in controller development, especially because many conventional control design techniques require restrictive assumptions, for the plant model and for the control to be designed (e.g., linearity).Not taking into account these assumptions result in a number of unknown variables which the controller design techniques are unable to handle.This is because process industry machines, unlike humans, lack the ability to solve problems using imprecise information.To emulate this ability fuzzy logic and fuzzy sets are introduced.Fuzzy controllers are not like PID; they are robust.Their performances are less sensitive to parametric variations.The fuzzy controller can be designed without knowing the mathematical model of system.Fuzzy logic controllers have been reported successful for a number of complex and nonlinear processes [3].Fuzzy can operate for wide range and is capable of maintaining set point temperature levels and reducing overshoots.The genetic algorithm-based neurofuzzy controller has the integral advantages of neural and fuzzy approaches and they are used for intelligent decision making systems.Genetic algorithm uses a direct analogy of such natural evolution to do global optimization in order to solve highly complex problems.It presumes that the potential solution of a problem is individual and can be represented by a set of parameters.Neural networks and fuzzy logic represent two distinct methodologies to deal with uncertainty.Neural networks can model complex nonlinear relationships and are quietably suited for classification phenomenon of predetermined classes.The output is not limited to zero error but minimization of least square errors occurs.Training time required is large for neural network [4].Training data has to be chosen carefully, to cover the entire range over which different variables are expected.Neural networks and fuzzy logic are different technologies which can be used to accomplish the specification of mathematical relationships.Among numerous variables in a complex dynamic process, these perform mappings with some degree of imprecision in different ways which are used to control nonlinear systems.Hence by strengthening the neurofuzzy controllers with genetic algorithms the searching and attainment of optimal solutions will be easier and faster.The benefits of harnessing the capabilities of genetic algorithms are huge, research efforts on optimizing the solutions are challenging.The combination of genetic algorithm and neuro fuzzy controllers is normally shortened as GA-ANFIS and this intelligent hybrid controller is compared with that of the conventional PID and fuzzy controller.The Matlab/Simulink software forms part of the modeling and design tool employed in this research.

Temperature System in Plastic Extrusion Model
Step response method is based on transient response tests.
Many industrial processes have step responses of the system in which the step response is monotonous after an initial time.A system with step response can be approximated by the transfer function as in (1) where "k" is the static gain, "τ" is the apparent time delay, and "T" is the apparent time constant.G(s) is the transfer function of the plant.The transfer function of plastic extrusion pipeline described is given in (2), the plastic extrusion model uses the parameters k = 0.92, T = 144 seconds, τ = 10 seconds [5], and the temperature generally varies from 50 • C to 200 • C: G(s) = 0.92 1 + 144 s e −10 s . (2)

PID Control
The PID control is designed to ensure the specifying desired nominal operating point for temperature control of plastic extrusion model and regulating it, so that it stays closer to the nominal operating point in the case of sudden disturbances, set point variations, and noise.The proportional gain (K p ), Table 1: Ziegler-Nichols tuning rules.1.By applying the step test to (1) the S-shaped curve is obtained and there is identified the temperature control method characterized by two constants as delay time L = 10 seconds and time constant = 50 seconds.The delay time and time constant are determined by drawing a tangent line at the inflection point of the S-shaped curve and determined by the intersections of the tangent line with the time axis and line output response c(t).From Zeigler-Nicholas tuning rule, the suggested optimal set (K p ), and (T i ), (T d ) values are obtained [6].The optimal setting values (K p ), (T i ), and (T d ) obtained for temperature control of plastic extrusion model are obtained by finding the minimum values of integral square error, integral time square error, integral time average error, and integral average error shown in Table 2.The minimum setting values of K p , K i , and K d shown in Table 3.

Type of controller
The simulink model of block of PID control is shown in Figure 3.

Fuzzy Controller and Its Membership Function
Fuzzy logic is more effective feedback control system and easier to implement.Fuzzy controller consists of a fuzzifier, rule base, an inference engine, and a defuzzifier [7].The numerical input values of the fuzzifier are converted into fuzzy values, along with the rule base which are fed into the inference engine which produces control value.In fuzzy rule base, various rules are fostered according to their respective problem requirements.The control values are not in usable form; henceforth they are converted to numerical output values using the defuzzifier.The plastic extrusion temperature controller uses two-dimensional fuzzy controller models which are shown in Figure 4.It has two input variables, error "e", change in error "ce", and one output variable "u".For computations to be relatively simple, the research uses triangular membership function.The computational structure of FLC scheme is composed of the steps rule base and membership function.The fuzzy control rules were formulated in the IF-THEN rules form.The rule base stores the rules governing the input and output relationship of proposed control logic [8].The inputs to the fuzzy controller error e(k) and change in error Δe(k) computed from the reference value r(k).The k denotes the discrete time.The fuzzy controller output u(k) is based on error and error change.Table 4 summarizes the 25 rules for the proposed control algorithm for fuzzy logic.Each universe of discourse is divided into five fuzzy subsystems, namely, NB, NS, Z, PS, and PB.The input and change in input variable (e, ce) are shown in Figures 5 and 6.The inference mechanism is used for evaluating linguistic descriptions.The fuzzy control rules have been described using linguistic variables; for example, if error e is NS and the increasing change in error ce is PB, then  the output is PS which is used to control the temperature rise.
The output variable of fuzzy set u is shown in Figure 7.
The inference result of each rule consists of two parts, the weighing factor w i of the individual rule and the degree of change of temperature C. According to the rule, it is written as follow: where z i denotes the change in control signal inferred by the ith rule and C is noted from the rule table, which shows the mapping from the product space of e and ce to C i [9,10].The defuzzification process is after collecting all the singleton rules; it defuzzifies the result so that a crisp value control signal is obtained and the change of the control signal is computed using center of gravity method as given in (4).The simulink model block of fuzzy control is shown in Figure 8:

GA ANFIS Model
The genetic algorithm technique employed to tune the ANFIS controller.Genetic algorithm was inspired by the mechanism of natural selection, a biological process in which stronger individual is likely to be the winners in a competing environment.Genetic algorithm uses a direct analogy of such natural evolution to do global optimization in order to solve highly complex problems.It presumes that the potential solution of a problem is individual and can be represented by a set of parameters.These parameters are regarded as the genes of a chromosome and can be structured by a string of concatenated values.The form of variables representation is defined by the encoding scheme.The variables can be represented by binary, real numbers, or other forms, depending on the application data.Its range, the search space, is usually defined by the problem.Genetic algorithm has been successfully applied to many different problems.The tuning approach employs the use of matlab M-files and functions to manipulate the ANFIS system and scaling gains, run the simulink-based simulation, checking the resulting performance, and continuously modify the system for a number of times in search for optimal solution.The GA optimization algorithm was run for 1000 epochs.Fuzzy logic and neural networks are natural complementary tools in building intelligent systems.Neural networks are computational structures that perform well, when dealing with new data, while fuzzy logic deals with reasoning, using linguistic information acquired from domain experts.Fuzzy systems lack the ability to learn and cannot adjust themselves to a new environment.Neural networks can learn and they are opaque to the user.The neural network merged with a fuzzy system, forms one integrated system.It offers a promising approach to build intelligent systems.Integrated systems can combine the parallel computation and learning abilities of neural networks, with the human knowledge representation and explanation abilities of fuzzy systems.The neural network, uses feed forward network; the number of input and output layers used for this system is one with linear saturation function.The hidden layer used for this system is two and using tansigmoidal function.Fuzzy inference systems are also known as fuzzy rule-based systems, containing a number of fuzzy IF-THEN rules.GA ANFIS is used in the form of Takaji sugeno model to integrate the best features of fuzzy systems and neural networks.GA ANFIS is also used in representation of prior knowledge into a set of constraints, to reduce optimization search space obtained from fuzzy and adaptation of back propagation to structured network through neural network [11,12].To train the GA ANFIS controller generally input-output characterization or desired output of the plant is sufficient.For better performance two systems hybridized.The error and derivative error are given as an input to the system and the neural network's output is given to the fuzzy logic.Neural network will decide which fuzzy set is selected out of five fuzzy sets.The maximum membership set is selected.The genetic learning algorithm tunes the membership functions of a Sugeno type fuzzy inference system using the training input-output data.These modeling methods can be applied to both static and dynamic systems.If the output of the model at a moment is applied as its input at the next moment, the model is called dynamic model or recurrent model.In other words, in recurrent models, the output of the model at the existing moment is influenced by the output of the model, at previous moments.The GA ANFIS system rule base is shown in Table 5.The proposed algorithm summarizes 25 rules.In a GA ANFIS controller training algorithm, each epoch is composed of a forward pass and backward pass [13].In the forward pass, a training set of input patterns is presented to the GA ANFIS controller, the neurons outputs are calculated on the layer-by-layer basis, and the rules consequent parameters are identified by the least squares estimator.The GA ANFIS system consists of the components of a conventional fuzzy system.But, these computations at each stage are performed by hidden neurons and the neural network learning capacity is provided to enhance the system knowledge [14].The multi-layer fuzzy neural network model for fuzzy tuning rules is given in Figure 9.It shows the diagram for the internal layers of ANFIS model.The optimal value of the neuro fuzzy controller is found by using genetic algorithm.All possible sets of controller parameter values are particles whose values are adjusted to minimize the objective function.For the GA ANFIS controller design, it is ensured that the controller settings estimated result in a stable closed loop system.

Initialization of Parameters.
To start with genetic algorithm, certain parameters need to be defined.These include population size, bit length of chromosome, number of iterations, selection, crossover, and mutation types.Selection of these parameters decides, to a great extend, the ability of the designed controller.The range of the tuning parameters is considered between 0 and 10.Initializing values are detailed as follows: (i) population type: double vector, In each generation, the genetic operators are applied to selected individuals from the current population in order to create a new population.Generally, the three main genetic operators of reproduction, crossover, and mutation are employed.By using different probabilities for applying these operators, the speed of convergence can be controlled.Crossover and mutation operators must be carefully designed, since their choice highly contributes to the performance of the whole genetic algorithm [15].
Reproduction.A part of the new population can be created by simply copying without changing selected individuals from the present population.Also new population has the possibility of selection by already developed solutions.There are a number of other selection methods available and it is up to the user to select the appropriate one for each process.Reproduction crossover fraction is using 0.8.Crossover.New individuals are generally created as offspring of two parents (i.e., crossover being a binary operator).One or more so-called crossover points are selected (usually at random) within the chromosome of each parent, at the same place in each.The parts delimited by the crossover points are then interchanged between the parents.The individuals resulting in this way are the offspring.Beyond one point and multiple point crossovers, there exist some crossover types.The so-called arithmetic crossover generates an offspring as a component-wise linear combination of the parents in later phases of evolution, it is more desirable to keep individuals intact, and so it is a good idea to use an adaptively changing crossover rate: higher rates in early phases and a lower rate at the end of the genetic algorithm.
Mutation.A new individual is created by making modifications to one selected individual.The modifications can consist of changing one or more values in the representation or adding/deleting parts of the representation.In genetic algorithm, mutation is a source of variability and too great a mutation rate results in less efficient evolution, except in the case of particularly simple problems.Hence, mutation should be used sparingly because it is a random search operator; with high mutation rates, the algorithm will become little more than a random search.Moreover, at different stages, one may use different mutation operators.At the beginning, mutation operators resulting in bigger jumps in the search space might be preferred [16].Later on, when the solution is close by a mutation operator leading to slighter shifts in the search space could be favored.Figures 10 and 11 show the input and change in input variable (e, ce) of GA ANFIS controller.The output variable of fuzzy set "u" is shown in Figure 12.The simulink model block of GA ANFIS controller section is shown in Figure 13.

Simulation Results
The system is a multistage and coupled system; so, four set points are taken for the system.The Matlab simulink used for simulation and uses of the first-order function.Four set point temperatures 70  14 and it is observed that the performance of the system with PID controller is almost oscillating and takes more time to settle with reference temperature, compared with other types of controller.The fuzzy simulation output diagram for fuzzy is given in Figure 15.FLC is designed using 5 linguistic levels and 25 rules.FLC gives better results compared to PID controller by giving a quick settle with reference temperature and less oscillatory response.The integrated GA ANFIS output controller output with Takaji Sugeno fuzzy model is shown in Figure 16 which eliminates the oscillatory output of different temperature set points and identifies the process variation quickly and provides good control for set point changes and sudden disturbances.The different controllers PID, FLC, and proposed GA ANFIS controller output are depicted in Figure 17.The results shows that the proposed controller output settles with reference temperature very quickly and it eliminates the overshoot problem.The result of the GA-optimized ANFIS controller shows an outstanding performance in terms of achieving the desired value with very small values for the rise time and settling time.

Results and Discussion
In this paper, GA ANFIS controller acts as a replacement for the previous existing controllers due to its unique characteristics.The merits of the GA ANFIS can be observed as follows.The GA ANFIS has improved control quality.The aim of controlling heated barrel is to bring the set points during startup as soon as possible, while avoiding large overshoots in order to maintain it at current temperature set value.Table 6 gives various timing specification for the three controllers.From the analysis, the GA ANFIS controller on the basis of delay time gives efficient output differences 8.5 times as that of PID controller and 1.5 times as that of fuzzy.Consequently, the GA ANFIS controller produces an output, which is 5 times ahead of PID and 1.6 times of fuzzy, in the rise time analysis.The peak time results state that the GA ANFIS controller outcasts a production output 6.66 times more efficient than PID and 1.66 times than fuzzy.If we consider the settling time, the GA ANFIS controller is 1.15 times more efficient than PID and 1.09 times than fuzzy.The set points tracking and disturbance rejection are obtained by the proposed method.

Conclusion
We have chosen GA ANFIS controller, since it is characterized by its capability to eliminate sudden input disturbance and maintain the set point temperature in the plastic extrusion system.The simulation results clearly show that the GA ANFIS controller reduces the timing specifications of fuzzy and PID controllers.This paper demonstrates the effectiveness of intelligent controller on nonlinear system, particularly for temperature control in plastic extrusion system.The comparison of performance of the three controllers reveals that the GA ANFIS controller is superior to the other controllers.From the results obtained the proposed controller is good for set point changes and stability.With the aid of the supervisory technique, the proposed controller identifies the process variations quickly and provides good controller performance for the set point changes and sudden disturbances.Therefore GA ANFIS controller will prove efficacious especially in the case of plastic extrusion temperature control system.

Figure 1 :Figure 2 :
Figure 1: Overall structure of the plastic extrusion system.

Figure 16 :Figure 17 :
Figure 16: GA ANFIS controller simulated output at different temperature set points.

Table 3 :
Minimum setting values K p , K i , and K d .
d ) of the PID control settings are designed using Zeigler-Nichols tuning method as shown in Table
• C, 100 • C, 150 • C, and 200 • C changes at different times are used in 14000 seconds.The results of PID controller for temperature set point shown in Figure