ECE Introduction to Artificial Neural Network and Fuzzy Systems

Similar documents
PROPORTIONAL-Integral-Derivative (PID) controllers

Hybrid Direct Neural Network Controller With Linear Feedback Compensator

H-Infinity Controller Design for a Continuous Stirred Tank Reactor

Sensors & Transducers 2015 by IFSA Publishing, S. L.

Using Neural Networks for Identification and Control of Systems

Reinforcement Learning, Neural Networks and PI Control Applied to a Heating Coil

Neural Network Identification of Non Linear Systems Using State Space Techniques.

Design of Multivariable Neural Controllers Using a Classical Approach

Application of Artificial Neural Networks in Evaluation and Identification of Electrical Loss in Transformers According to the Energy Consumption

Short Term Load Forecasting Based Artificial Neural Network

Modeling and Control of Chemical Reactor Using Model Reference Adaptive Control

A Hybrid Model of Wavelet and Neural Network for Short Term Load Forecasting

NONLINEAR PLANT IDENTIFICATION BY WAVELETS

Model Predictive Control Design for Nonlinear Process Control Reactor Case Study: CSTR (Continuous Stirred Tank Reactor)

CSTR CONTROL USING MULTIPLE MODELS

Multiple Model Based Adaptive Control for Shell and Tube Heat Exchanger Process

CHAPTER 2 CONTINUOUS STIRRED TANK REACTOR PROCESS DESCRIPTION

CHEMICAL REACTORS - PROBLEMS OF REACTOR ASSOCIATION 47-60

( t) Identification and Control of a Nonlinear Bioreactor Plant Using Classical and Dynamical Neural Networks

Temperature Control of CSTR Using Fuzzy Logic Control and IMC Control

Modelling and Control of Madeira Wine Aging process Using Directive Inverse Control

ANFIS Gain Scheduled Johnson s Algorithm based State Feedback Control of CSTR

A Method for PID Controller Tuning Using Nonlinear Control Techniques*

A STATE-SPACE NEURAL NETWORK FOR MODELING DYNAMICAL NONLINEAR SYSTEMS

Design and Implementation of Controllers for a CSTR Process

Identification of two-mass system parameters using neural networks

Design and Implementation of Two-Degree-of-Freedom Nonlinear PID Controller for a Nonlinear Process

Process Control, 3P4 Assignment 6

Nonlinear System Identification Using MLP Dr.-Ing. Sudchai Boonto

ARTIFICIAL NEURAL NETWORK WITH HYBRID TAGUCHI-GENETIC ALGORITHM FOR NONLINEAR MIMO MODEL OF MACHINING PROCESSES

BITS-Pilani Dubai, International Academic City, Dubai Second Semester. Academic Year

Keywords- Source coding, Huffman encoding, Artificial neural network, Multilayer perceptron, Backpropagation algorithm

Research Article. World Journal of Engineering Research and Technology WJERT.

Chapter 8. Feedback Controllers. Figure 8.1 Schematic diagram for a stirred-tank blending system.

Control of Neutralization Process in Continuous Stirred Tank Reactor (CSTR)

Guide to Selected Process Examples :ili3g eil;]iil

Feedback Control of Linear SISO systems. Process Dynamics and Control

Temperature control using neuro-fuzzy controllers with compensatory operations and wavelet neural networks

Design of Decentralised PI Controller using Model Reference Adaptive Control for Quadruple Tank Process

Neural Networks and the Back-propagation Algorithm

CompensatorTuning for Didturbance Rejection Associated with Delayed Double Integrating Processes, Part II: Feedback Lag-lead First-order Compensator

Introduction to Neural Networks: Structure and Training

Adaptive Inverse Control

Simulation based Modeling and Implementation of Adaptive Control Technique for Non Linear Process Tank

EEE 241: Linear Systems

Cascade Control of a Continuous Stirred Tank Reactor (CSTR)

Robust Controller Design for Speed Control of an Indirect Field Oriented Induction Machine Drive

Study on Dahlin algorithm of Brushless DC motor based on Neural. Network

Estimation of the Pre-Consolidation Pressure in Soils Using ANN method

FAULT-TOLERANT CONTROL OF CHEMICAL PROCESS SYSTEMS USING COMMUNICATION NETWORKS. Nael H. El-Farra, Adiwinata Gani & Panagiotis D.

A Sliding Mode Control based on Nonlinear Disturbance Observer for the Mobile Manipulator

SCALE-UP OF BATCH PROCESSES VIA DECENTRALIZED CONTROL. A. Marchetti, M. Amrhein, B. Chachuat and D. Bonvin

Predictive Control of a Single Link Flexible Joint Robot Based on Neural Network and Feedback Linearization

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

An Adaptive LQG Combined With the MRAS Based LFFC for Motion Control Systems

Robust PID and Fractional PI Controllers Tuning for General Plant Model

Design and Comparative Analysis of Controller for Non Linear Tank System

POWER SYSTEM DYNAMIC SECURITY ASSESSMENT CLASSICAL TO MODERN APPROACH

On Practical Applications of Active Disturbance Rejection Control

NonlinearControlofpHSystemforChangeOverTitrationCurve

Design Artificial Nonlinear Controller Based on Computed Torque like Controller with Tunable Gain

Mr. Harshit K. Dave 1, Dr. Keyur P. Desai 2, Dr. Harit K. Raval 3

Control of MIMO processes. 1. Introduction. Control of MIMO processes. Control of Multiple-Input, Multiple Output (MIMO) Processes

Direct Method for Training Feed-forward Neural Networks using Batch Extended Kalman Filter for Multi- Step-Ahead Predictions

Application of Artificial Neural Network for Short Term Load Forecasting

International Journal of Scientific & Engineering Research, Volume 5, Issue 9, September ISSN

BACKSTEPPING CONTROL DESIGN FOR A CONTINUOUS-STIRRED TANK. Saleh Alshamali and Mohamed Zribi. Received July 2011; revised March 2012

CHAPTER 7 MODELING AND CONTROL OF SPHERICAL TANK LEVEL PROCESS 7.1 INTRODUCTION

Elman Recurrent Neural Network in Thermal Modeling of Power Transformers

Type-2 Fuzzy Logic Control of Continuous Stirred Tank Reactor

ARTIFICIAL NEURAL NETWORK PART I HANIEH BORHANAZAD

2015 Todd Neller. A.I.M.A. text figures 1995 Prentice Hall. Used by permission. Neural Networks. Todd W. Neller

Forecasting River Flow in the USA: A Comparison between Auto-Regression and Neural Network Non-Parametric Models

World Journal of Engineering Research and Technology WJERT

Data Mining Part 5. Prediction

PERFORMANCE ANALYSIS OF TWO-DEGREE-OF-FREEDOM CONTROLLER AND MODEL PREDICTIVE CONTROLLER FOR THREE TANK INTERACTING SYSTEM

Application of feedforward artificial neural networks to improve process control of PID-based control algorithms

CM 3310 Process Control, Spring Lecture 21

ROBUST STABLE NONLINEAR CONTROL AND DESIGN OF A CSTR IN A LARGE OPERATING RANGE. Johannes Gerhard, Martin Mönnigmann, Wolfgang Marquardt

Experimental Investigations on Fractional Order PI λ Controller in ph Neutralization System

I. INTRODUCTION. Index Terms Speed control, PID & neural network controllers, permanent magnet Transverse Flux Linear motor (TFLM).

NONLINEAR BLACK BOX MODELING OF A LEAD ACID BATTERY USING HAMMERSTEIN-WIENER MODEL

Gain Scheduling Control with Multi-loop PID for 2-DOF Arm Robot Trajectory Control

CHBE320 LECTURE XI CONTROLLER DESIGN AND PID CONTOLLER TUNING. Professor Dae Ryook Yang

VIRTUAL CONTROL SYSTEM OF EXOTHERMIC REACTOR USING THE CONTROLLER KRGN 90 VIRTUÁLNY RIADIACI SYSTÉM EXOTERMICKÉHO REAKTORA NA BÁZE KRGN 90

Load Forecasting Using Artificial Neural Networks and Support Vector Regression

A Black-Box Approach in Modeling Valve Stiction

Control Of Heat Exchanger Using Internal Model Controller

Temporal Backpropagation for FIR Neural Networks

Model Predictive Controller of Boost Converter with RLE Load

Nonlinear PD Controllers with Gravity Compensation for Robot Manipulators

Intelligent Modular Neural Network for Dynamic System Parameter Estimation

Online Identification And Control of A PV-Supplied DC Motor Using Universal Learning Networks

Neural Network Control in a Wastewater Treatment Plant

Artificial Neural Networks (ANN) Xiaogang Su, Ph.D. Department of Mathematical Science University of Texas at El Paso

CONSIM - MS EXCEL BASED STUDENT FRIENDLY SIMULATOR FOR TEACHING PROCESS CONTROL THEORY

Class 27: Block Diagrams

Design and Tuning of Fractional-order PID Controllers for Time-delayed Processes

Controlling Human Heart Rate Response During Treadmill Exercise

Theoretical Models of Chemical Processes

Transcription:

ECE 39 - Introduction to Artificial Neural Network and Fuzzy Systems Wavelet Neural Network control of two Continuous Stirred Tank Reactors in Series using MATLAB Tariq Ahamed

Abstract. With the rapid advances in the field of Artificial Neural Networks (ANN) and their innate ability to approximate any nonlinear system, there has been a considerable increase in the usage of control systems based on nonlinear concepts. In this paper, Wavelet Neural Network (WNN) based Direct Inverse Control (DIC) and Internal Model Control (IMC) schemes are proposed to control nonlinear dynamic systems and compared with the traditional Proportional Integral- Derivative (PID) Controller. WNN combines the advantages of multi resolution capabilities of wavelets and function approximation capabilities of neural networks optimally. The proposed schemes are implemented and tested on a model of two cascaded Continuous Stirred Tank Reactors (CSTR) with coolant jackets using Shannon wavelet filter. The process variable in the test case is the concentration of the product mixture from the cascaded CSTR setup which is controlled by manipulating the inlet coolant flow rate. WNN based DIC displayed increased speed of response. WNN based IMC displayed better disturbance handling capabilities. Keywords: Artificial Neural Network, Wavelet Neural Network, Direct Inverse Control, Internal Model Control, Continuous Stirred Tank Reactor. Introduction Getting a desired performance from an industrial process is a major concern, especially when the system under control inherits nonlinear dynamic characteristics. It is required to design an intelligent system to identify the process behavior and control it. For last three decades, various neural network based computational control schemes have been exhibiting effective performances than conventional control schemes. Many research outcomes proved that an ANN, which has dynamically interconnected functional elements called neurons, can be used to model any non-linear system. This universal approximation capability of an ANN was combined with the multi resolution capability of wavelet transform to form a WNN [-3]. This WNN achieves the performance of an ANN with reduced network size. The reduced network size of a WNN also increases the speed of computation in many applications compared to that of a Multi-Layer Perceptron (MLP) based one. Traditionally, neural controllers were developed using MLP based process models to achieve stable response from any non-linear dynamic systems. In this project, two neural controller schemes, WNN based Direct Inverse Control (WNNDIC) and WNN based Internal Model Control (WNNIMC), are proposed by replacing the traditional MLP models with WNN models. In WNNDIC approach, the necessary control signal, for a system with non-linear behavior () was accomplished from the inverse model of the system. A Shannon wavelet based neural network was trained to learn the inverse dynamics (2). yk f y k, yk, yk 2,, u k, u k, uk 2,, () uˆ( k) fˆ y k, y k, y k,, u k, u k 2, (2)

The WNNIMC, which closely follows WNNDIC, was accomplished with inverse and forward models of the system under study. Both these models were also designed using Shannon wavelet based WNN models. The proposed neural control schemes were tested on the model of cascaded CSTR with cooling jacket. The objective was to maintain the chemical concentration in the second reactor at the reference by manipulating the coolant flow. Simulation results reveal that the WNNDIC and WNNIMC improve the performance of their counterparts designed using MLP based models. It was also observed that the WNNIMC overcomes the inability of WNNDIC in efficiently handling constant disturbances. This report is organized to discuss the CSTR process, formation of PID Controller and the theory behind WNN model in the first section. The following sections will cover WNNDIC and WNNIMC design concepts. The last section discusses the results obtained using both WNN and MLP based approaches. 2 Problem Formation 2. Process model The process setup is shown in fig.. An irreversible, first order reaction of cyclopentadiene forming cyclopentenol occurs in the reactors. The manipulated variable is the coolant flow rate and the dependent variables are the concentrations of reactants and temperatures of the tanks. Fig.: Process Model For modeling a CSTR, the dynamic characteristics are analyzed. The component balance and the energy balance equations are used in the modeling process. Component balance expression for Reactor : dca q E C Af CA CA exp( ) dt V RT (3)

Component balance expression for Reactor 2: dc A2 q E C A CA2 CA2 exp( ) dt V 2 RT Where q is the inlet feed rate (L/min), C Af is the feed concentration of A, V, V 2 are the volumes of reactor and 2 (L), α is the pre exponential factor for A B, E/R is the Activation energy (K), C A, C A2 are the concentrations of A in reactor and 2. Energy balance expression for Reactor : dt q T T f dt V C pccqc U A exp( VC p qc cc 2 pc ) HC A E T T exp( ) Energy balance expression for Reactor 2: dt qt T C 2 pccqc U A2 H C 2 E exp( ) A T T2 exp( ) dt V2 V2C p qc cc pc C p RT2 where, T f is the feed temperature (K), T cf is the coolant temperature (K), T, T 2 are the temperatures of reactor and 2(K), U A, U A2 are the overall heat transfer coefficients of reactor and 2 (J/min-K), H is the heat of reaction (J/mol), ρ is the density of fluid (g/l), ρ c is the density of coolant fluid (g/l), C p is the heat capacity of fluid (J/g-K), q c is the inlet coolant flow rate (L/min), C pc is the heat capacity of coolant fluid (J/g-K). cf C p RT () () () 2.2 PID Controller. The most commonly used control strategies are based on conventional linear Proportional Integral Derivative (PID) controllers. The process is simulated digitally. The results from the simulation were used to study the dynamic behavior of the process, i.e. to obtain the parameters that will aid in the selection of controller constants. To obtain the gain (kp), the process time delay (τd), and the process time constant (τi) of our process, the CSTR was perturbed using step input of -% and +% of the manipulated variable. Response of CA2 and T2 resulting from the step changes in the input variable is shown in figures 2 and 3.

Temperature (K) Concentration of A x 0-3 2 0 8 2 0 0 20 2 30 Figure 2 Response of CA2 for negative and positive step changes 2 0 8 2 0 0 20 2 30 Figure 3 Response of T2 for negative and positive step changes The transfer function parameters are found from figure 2. K 0.00023 Τ 0.3mol/L td 0 ts 20 sec Table Open loop response parameters Using the Cohen Coon method of controller tuning, approximate PID controller values are found. kp 0.28 τi 0.003279 τd 0.000907 Table 2 Tuned Parameters As ki= /τiand kd= τd, the values of kiand kd are 30.908 and 0.000907 respectively. A digital version, also called velocity form is written as u u k k e k e e k e e e k i k p k k d k 2 k k2

Here uk is the flow rate of coolant (control variable) at the kth instant. This form is obtained by replacing the integral and the derivative term with the finite difference approximations. t e t * dt 0 j k e t j de ek ek dt t Where, Δt is the sampling period( time between successive measurement of controlled variable) ek is the error at the kth sampling instant. By using this and writing the equation at kth, k-th and k-2th instant, the velocity form is found. 2.3 Wavelet neural network model. An ANN generally consists of 3 layers- input, hidden and output. These layers are connected through weighted paths. The network is trained to produce the required value by adjusting the weights in the model. The ANN combined with the wavelet transform theory forms the adaptive WNN model. Here, each neuron is defined by the function (7), where h(τ) is generated by dilation a, and translation b, with a > 0 The activation function of the neurons is also adjusted according to the error, by changing a and b, in the training phase of a WNN. Shannon wavelet filter (8) was utilized in the modeling process. h(τ k )=h((t-b k )/a k ) (7) h(τ k )= (sin 2Πτ k.sin Πτ k )/Πτ k (8) where, k denotes the k th neuron in the hidden layer.

3 Direct Inverse Control Inverse modeling involves training a neural network to form a controller which is the inverse of the plant. The block diagram of the same is shown in fig.. Fig.: DIC Block Diagram The equation for the inverse model is given by: u f qc ( t ), qc ( t 2), CA2( t ), CA2, CA2( t ) (9) A pseudo random signal is given as input to the CSTR model and output values are noted. Using these input-output values, the training pattern for the inverse network is extracted according to (9). The training of the network is done by feeding the feed forward net with the training pattern and adjusting the weights until the error reduces to allowable range. The training uses Levenberg Marquardt Back propagation algorithm. The neural network structure representing the inverse of the system dynamics at the completion of training is shown in fig.. Feedforward network has one hidden layer of seven Shannon activated neurons followed by an output layer of a linear neuron.

q c (t-) q c (t-2) C A2 (t) h(τ ) h(τ 2 ) h(τ 3 ) h(τ ) q c (t) C A2 (t+) h(τ ) C A2 (t-) h(τ ) h(τ 7 ) Inputs Hidden Layer Output Fig.: WNNDIC Network structure Internal Model Control. Internal Model Control is a control strategy which delivers better constant load disturbance handling capability. It combines both forward and inverse model of the process. Fig. depicts the block diagram of internal model control. Internal model controller is incorporated in parallel with the process model. As the inverse model of the process is modeled into a controller, similarly a forward neural network model is used along with the process. When there is an unknown disturbance in the process, the error between the outputs of the process and forward model are calculated and fed back to the inverse model. Fig.: Block diagram of IMC

The neural network structure representing the inverse of the system dynamics at the completion of training is shown in fig.. Feedforward network has one hidden layer of seven Shannon activated neurons followed by an output layer of a linear neuron. The forward network model is shown in fig. 7. It is a feedforward network having one hidden layer of five Shannon activated neurons followed by an output layer of a linear neuron. h(τ ) q c (t-) q c (t) h(τ 2 ) h(τ 3 ) C A2 (t) C A2 (t-) h(τ ) h(τ ) Inputs Hidden Layer Output Fig.7: WNNIMC network structure Results The concentration of cyclopentadiene in reactor 2 is controlled. The manipulated variable is the coolant flow rate. The initial steady state conditions of the states are: C A =0.0882mol/L; T =.293K; C A2 =0.002mol/L; T 2 =9.7K; The closed loop response of the system with the feedback controller as PID controller is shown in figure 8. The system is given to track two set points: 0.00 mol/l and 0.00 mol/l. The response of the PID controller is shown below.

Concentration of A Concentration of A in Reactor 2 x 0-3... 3. 0 00 200 300 00 00 00 Figure 8 Response of PID Controller Closed loop response of the system with MLP based DIC is shown in fig. 0 and that of WNNDIC is shown in fig.. The system is set to track the reference signal as shown in fig. 9.The MLP based DIC having 9 sigmoidal neurons in the hidden layer gave a rise time of sec and peak overshoot of 0.7%. It takes 2 sec to settle at the required concentration. The WNNDIC has a rise time of 3 sec and a peak overshoot of 2%. It takes 2 sec to settle at the required concentration. x 0-3... 3. 0 00 200 300 00 00 00 Time (sec) Fig.9: Reference concentration level in reactor-2.

Concentration of A Concentration of A x 0-3... 3. 0 00 200 300 00 00 00 Time (sec) Fig.0: Response of MLP based DIC x 0-3... 3. 0 00 200 300 00 00 00 Fig.: Response of WNNDIC A constant load disturbance in the coolant flow rate of L/min was introduced for a finite duration to analyze the disturbance handling capability of the MLP based DIC and WNNDIC strategies. The response of MLP based DIC to disturbance is shown in fig. 3 and that of WNNDIC is shown in fig.. Both the DIC strategies were found to be incapable of handling constant load disturbances. Post disturbance, the MLP based DIC took 2 sec to return to the set point while the WNNDIC took 7 sec to return to the set point.

Concentration of A Concentration of A coolant Flow Rate (L/min) 3 2 Fig.2: Disturbance 0 0 0 00 0 200 20 300 30 00 Time x 0-3... 3. 0 0 00 0 200 20 300 30 00 Time (sec) Fig.23: Response of MLP based DIC to disturbance x 0-3... 3. 0 0 00 0 200 20 300 30 00 Fig.: Response of WNNDIC to disturbance

Concentration of A Concentration of A The closed loop response of the system with MLP based IMC is shown in fig. and that with WNNIMC is shown in fig.. The system is set to track the same reference signal as shown in fig. 9. The MLP based IMC having a forward network with 3 inputs, 8 sigmoidal hidden neurons and output gave a rise time of sec but 0% overshoot. It took 2 sec to settle at the required set point. The WNNIMC has a same rise time and 0% overshoot but settles in 22 sec. x 0-3... 3. 0 00 200 300 00 00 00 Fig.3: Response of MLP based IMC x 0-3... 3. 0 00 200 300 00 00 00 Fig.: Response of WNNIMC A constant load disturbance in the coolant flow rate of L/min was introduced for a finite duration to analyze the disturbance handling capability of the MLP based IMC and WNNIMC strategies. The response of MLP based IMC to disturbance is shown in fig. 7 and that of WNNIMC is shown in fig. 8.The MLP based IMC returns back to the set point in sec during the disturbance period. The WNNIMC returns to the set point in sec. Both the schemes incur offset peaks at the rising and falling edge of the disturbance graph.

Concentration of A Concentration of A x 0-3... 3. 0 0 00 0 200 20 300 30 00 Fig.7: Response of MLP based IMC to disturbance x 0-3... 3. 0 0 00 0 200 20 300 30 00 Fig.8: Response of WNNIMC to disturbance Conclusion In the present work, WNN based DIC and IMC control strategies were implemented and analyzed on a cascaded CSTR model and the result was compared to that obtained from PID tuning. The constant load disturbance handling capability of these control strategies were also investigated. PID controller had the highest rise time The WNN based DIC and IMC had reduced network size and displayed improved robustness as compared to conventional MLP based DIC and IMC. WNNDIC showed considerably reduced rise time and settling time than MLP based DIC. IMC strategy was implemented to overcome the inherent inability of the DIC control strategy to handle load disturbances effectively. Both WNNIMC and MLP based IMC returned 0% peak overshoot and lessened rise time and settling time than their DIC counterparts. Also, IMC strategy displayed enhanced constant load disturbance handling capability with just two offset peaks of very short duration; one each at the rising and falling edge of the constant disturbance. The time duration of the offset peaks were lesser in the case of WNNIMC than MLP

based IMC for same constant disturbance over same duration. The WNNDIC and WNNIMC were found to be more robust and faster than conventional MLP with considerable reduction in network sizes. 7 References [] Q. Zhang and A. Benveniste. Wavelet networks, IEEE Transactions on neural networks, volume 3, pages 889 898, 992. [2] Licheng Jiao, Multiwavelet Neural Network And Its Approximation Properties, IEEE Transactions on neural networks, VOL. 2, NO., 00 0 (200). [3] Cheng-Jian Lin, Wavelet Neural Networks with a Hybrid Learning Approach, Journal Of Information Science And Engineering 22, 37-387 (200). [] D.B.Anuradha, G.Prabhaker Reddy, J.S.N.Murthy Direct Inverse Neural Network Control of A Continuous Stirred Tank Reactor (CSTR) Proceedings of the International MultiConference of Engineers and Computer Scientists 2009 Vol II IMECS 2009, March 8-20, 2009, Hong Kong. [] Tarun Varshney, Ruchi Varshney, Satya Sheel ANN Based IMC Scheme for CSTR International Conference on Advances in Computing, Communication and Control, ICAC3 2009, Pages 3-. [] Yonghong Tan, Xuanju Dang, Feng Liang, Chun-Yi Su Dynamic Wavelet Neural Network for Nonlinear Dynamic System Identification, Proceedings of IEEE International Conference on Control Applications Anchorage, Alaska, USA September 2-27, 2000, Pages 2-2. [7] Ehsan Hossaini-asl, Mehdi Shahbazian Nonlinear dynamic system control using wavelet neural network based on sampling theory, IEEE International Conference on Systems, Man, and Cybernetics San Antonio, TX, USA October -, 2009, Pages 02-07. [8] Hui Li, Chen Guo, Hongzhang Jin Design of Adaptive Inverse Mode Wavelet Neural Network Controller of Fin Stabilizer, IEEE International Conference on Neural Networks and Brain, 200, Volume 3, Pages 7-78. [9] Hensen, M.A. and Seborg, D.E., Nonlinear Process Control, Prentice Hall, 997.