Identification and Control of Nonlinear Systems using Soft Computing Techniques

Similar documents
Application of Neural Networks for Control of Inverted Pendulum

EEE 241: Linear Systems

ANN Control of Non-Linear and Unstable System and its Implementation on Inverted Pendulum

Neural Network Control of an Inverted Pendulum on a Cart

ROTARY INVERTED PENDULUM AND CONTROL OF ROTARY INVERTED PENDULUM BY ARTIFICIAL NEURAL NETWORK

Artificial Intelligence

Lecture 4: Feed Forward Neural Networks

Artificial Neural Network and Fuzzy Logic

COMPARISON OF DAMPING PERFORMANCE OF CONVENTIONAL AND NEURO FUZZY BASED POWER SYSTEM STABILIZERS APPLIED IN MULTI MACHINE POWER SYSTEMS

Data Mining Part 5. Prediction

Artificial Neural Network

EE04 804(B) Soft Computing Ver. 1.2 Class 2. Neural Networks - I Feb 23, Sasidharan Sreedharan

A COMPARATIVE ANALYSIS OF FUZZY BASED HYBRID ANFIS CONTROLLER FOR STABILIZATION AND CONTROL OF NON- LINEAR SYSTEMS

Artifical Neural Networks

Methods for Supervised Learning of Tasks

COGS Q250 Fall Homework 7: Learning in Neural Networks Due: 9:00am, Friday 2nd November.

Neural Networks. Chapter 18, Section 7. TB Artificial Intelligence. Slides from AIMA 1/ 21

Neural networks. Chapter 19, Sections 1 5 1

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

FUZZY SWING-UP AND STABILIZATION OF REAL INVERTED PENDULUM USING SINGLE RULEBASE

Artificial Neural Networks. Edward Gatt

Artificial Neural Networks. Historical description

ADAPTIVE NEURO-FUZZY INFERENCE SYSTEMS

Artificial Neural Network : Training

1. Introduction. 2. Artificial Neural Networks and Fuzzy Time Series

Using NEAT to Stabilize an Inverted Pendulum

ARTIFICIAL INTELLIGENCE. Artificial Neural Networks

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

Lecture 7 Artificial neural networks: Supervised learning

Modeling, Identification and Control of Cart-Pole System

Neural networks. Chapter 20. Chapter 20 1

Rainfall Prediction using Back-Propagation Feed Forward Network

Artificial neural networks

Artificial Neural Network and Adaptive Neuro Fuzzy Control of Direct Torque Control of Induction Motor for Speed and Torque Ripple Control

Ch.8 Neural Networks

International Journal of Advanced Research in Computer Science and Software Engineering

A Novel Activity Detection Method

Neural networks. Chapter 20, Section 5 1

Application of Artificial Neural Network for Short Term Load Forecasting

Prediction of Channel Diameter to Reduce Flow Mal Distribution in Radiators using ANN

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

Feedforward Neural Nets and Backpropagation

ECLT 5810 Classification Neural Networks. Reference: Data Mining: Concepts and Techniques By J. Hand, M. Kamber, and J. Pei, Morgan Kaufmann

Study of a neural network-based system for stability augmentation of an airplane

Computational Intelligence

HISTORY. In the 70 s vs today variants. (Multi-layer) Feed-forward (perceptron) Hebbian Recurrent

Artificial Neural Networks The Introduction

Introduction to Artificial Neural Networks

Design of Multivariable Neural Controllers Using a Classical Approach

Computational Intelligence Winter Term 2009/10

PROPORTIONAL-Integral-Derivative (PID) controllers

Computational Intelligence

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

A SEASONAL FUZZY TIME SERIES FORECASTING METHOD BASED ON GUSTAFSON-KESSEL FUZZY CLUSTERING *

Neural Networks and Fuzzy Logic Rajendra Dept.of CSE ASCET

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

A Soft Computing Approach for Fault Prediction of Electronic Systems

Digital Pendulum Control Experiments

Stabilization fuzzy control of inverted pendulum systems

Master of Engineering in Electronic Instrumentation and Control Engineering to THAPAR UNIVERSITY PATIALA (PUNJAB)

Neural Network Approach to Control System Identification with Variable Activation Functions

Implementation of Artificial Neural Network for Short Term Load Forecasting

HIGH PERFORMANCE ADAPTIVE INTELLIGENT DIRECT TORQUE CONTROL SCHEMES FOR INDUCTION MOTOR DRIVES

MODELLING AND REAL TIME CONTROL OF TWO CONICAL TANK SYSTEMS OF NON-INTERACTING AND INTERACTING TYPE

CS:4420 Artificial Intelligence

EE 16B Midterm 2, March 21, Name: SID #: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor:

CSE 352 (AI) LECTURE NOTES Professor Anita Wasilewska. NEURAL NETWORKS Learning

Artificial Neural Networks Examination, March 2004

An artificial neural networks (ANNs) model is a functional abstraction of the

Neural Networks Introduction

Master Recherche IAC TC2: Apprentissage Statistique & Optimisation

A Systematic and Simple Approach for Designing Takagi-Sugeno Fuzzy Controller with Reduced Data

Introduction to Natural Computation. Lecture 9. Multilayer Perceptrons and Backpropagation. Peter Lewis

Machine Learning. Boris

Bidirectional Representation and Backpropagation Learning

4.0 Update Algorithms For Linear Closed-Loop Systems

Design and Stability Analysis of Single-Input Fuzzy Logic Controller

Artificial Neural Networks Examination, June 2005

ARTIFICIAL INTELLIGENCE MODELLING OF STOCHASTIC PROCESSES IN DIGITAL COMMUNICATION NETWORKS

CSC242: Intro to AI. Lecture 21

A FUZZY NEURAL NETWORK MODEL FOR FORECASTING STOCK PRICE

Last update: October 26, Neural networks. CMSC 421: Section Dana Nau

DESIGNING FUZZY LOGIC CONTROLLER FOR INVERTED PENDULUM

A NEURAL FUZZY APPROACH TO MODELING THE THERMAL BEHAVIOR OF POWER TRANSFORMERS

Enhancing a Model-Free Adaptive Controller through Evolutionary Computation

Machine Learning and Data Mining. Multi-layer Perceptrons & Neural Networks: Basics. Prof. Alexander Ihler

Simple neuron model Components of simple neuron

Introduction to Neural Networks

A Boiler-Turbine System Control Using A Fuzzy Auto-Regressive Moving Average (FARMA) Model

Application of Neuro Fuzzy Reduced Order Observer in Magnetic Bearing Systems

Analysis of Multilayer Neural Network Modeling and Long Short-Term Memory

An application of the temporal difference algorithm to the truck backer-upper problem

Artificial Neural Networks

Modeling of Hysteresis Effect of SMA using Neuro Fuzzy Inference System

CS 4700: Foundations of Artificial Intelligence

ARTIFICIAL NEURAL NETWORK PART I HANIEH BORHANAZAD

Application of Artificial Neural Networks in Prediction of Compressive Strength of Concrete by Using Ultrasonic Pulse Velocities

Real Time wave forecasting using artificial neural network with varying input parameter

Fundamentals of Neural Networks

Neural networks (not in book)

Transcription:

International Journal of Modeling and Optimization, Vol. 1, No. 1, April 011 Identification and Control of Nonlinear Systems using Soft Computing Techniques Wahida Banu.R.S.D, ShakilaBanu.A and Manoj.D Abstract The inverted pendulum is a highly nonlinear and open-loop unstable system. This means that standard linear techniques cannot model the nonlinear dynamics of the system, Inverted pendulum system is often used as a benchmark for verifying the performance and effectiveness of a new control method because of the simplicities of the structure. In this paper an accurate model of the inverted pendulum system, a neural network controller and ANFIS (Adaptive Neuro-Fuzzy Inference System) controller to stabilize the system have been developed. A control law that removes some of the nonlinearities from the process and allows the process to exhibit its dynamics has been developed. This aids in stabilizing the nonlinear pendulum. The quality of the data input has also been improved, since only limited number of variables that can be measured accurately are included in the system identification Simulation results establishes that the proposed controller has good set point tracking and disturbance rejection properties. ( M + m) x + cx mlcosθθ + mlsinθθ = f ( t) (1) mlx cosθ + ( ml + I) θ + b θ + mglsinθ = 0 Where M is the mass of the cart, m is the mass of the pendulum, l is the length of the pendulum, f is the control force. Fig. Simulink Model of Nonlinear Control Law Index Terms Inverted Pendulum, Neural Network,ANFIS, Nonlinear system control. I. INTRODUCTION Inverted Pendulum System consists of an inverted pole hinged on a cart which is free to move in the x direction. In this Section, the dynamical equations of the system model in Simulink and basic controllers are developed. The system dynamical equations are derived using Lagrange Equations. Fig.1 Free Body Diagram of Inverted Pendulum System Fig.1is the free body diagram of inverted pendulum system. The system state equations are Manuscript received March 1, 011. Dr.R.S.D.WahidaBanu, Government Engineering College, Salem, Tamilnadu, India (email: rsdwb@yahoo.co.in). A.ShakilaBanu, SethuInstitute of technology, Kariapatti, Tamilnadu, India (email: banushakila_a@yahoo.co.in). D. Manoj, Sethu Institute of Technology, Kariapatti,Tamilnadu,India (email: manoje@gmail.com). 4 II. SIMULINK MODEL OF CONTROL LAW Developing a controller for the non-linear pendulum is more difficult. Linear control techniques such as the PID, full-state feedback will have no success in controlling the non-linear pendulum. A feedback linearization controller has been proposed by[1]-[] et.al., to control the non-linear pendulum system. Feedback linearization results in an improved linear closed loop system. Equations to 6 have been developed to describe control law for the inverted pendulum controller. The Equation 6 for u, based on Equations to 5, calculates the required force, u, to keep the pendulum stable. For accurate system identification the process has to be stable. f h1 = gsinθ 4l () h = cosθ 4l () l = sinθθ gsinθ fx 8 1 (4) 4 f = M + m 1 cos θ f = + + + [ ( θ θ ) θ ( ) ] (5) u h1 k1 d k c1 x xd cx f1 h

International Journal of Modeling and Optimization, Vol. 1, No. 1, April 011 Fig. Simulink Model of Nonlinear Control Law For the simulations M, m, l, g are set to numeric values namely: M = 1. Kg, m = 0.1 Kg, l = 0.4 m, g = 9.81 m/s, k1 = 5, k = 10,C1 = 1, C =.6. xd and qd are set to zero which are the initial position of the cart and angle of the pendulum respectively. The Simulink model of the control law is shown in Fig..The set-up of the non-linear pendulum with control law is as in Fig.4. (6) pulse along the axon to the next neuron. B. Types Of Learning & Structures Neural networks have main modes of learning operations, namely, supervised, reinforced and unsupervised learning. In supervised learning the output from the neural network is compared with a set of targets, The error signal is used to update the weights in the neural network. Reinforced learning is similar to supervised learning but no targets are specified. Unsupervised learning updates the weights based on the input data only. There are main types of structures namely, single layer feed forward, multi-layer feed forward and recurrent networks. C. Identification And Modelling Of Inverted Pendulum The most common method of neural network identification is called forward modeling. During training both the process and ANN receive the same input and outputs from the ANN and process are compared. This error signal is used to update the weights in the ANN. The pendulum system provides target values for the neural network. Feed-forward type of network will be used for identification. In order to provide a set of targets for the network to learn, the Simulink model with feedback control is used.fig.6 shows the supervised learning from inverted pendulum system with control law Fig.4 Nonlinear system with Control Law Closed loop pendulum angle obtained through MATLAB simulation is plotted in Fig.5. The closed loop response has been observed to be stable with the introduction of the control law. Fig.5 Closed Loop Response of Nonlinear System with Control Law III. MODELING OF INVERTED PENDULUM USING ARTIFICIAL NEURAL NETWORK A. Introduction To Artificial Neural Network (Ann) In order to understand the structure of artificial networks, the basic elements of the neuron should be understood. Neurons are the fundamental elements in the central nervous system. A neuron is made up of main parts -dendrites, cell body and axon. The dendrites receive signals from the neighboring neurons and send their signals to the body of the cell. The cell body contains the nucleus of the neuron. If the sum of the received signals is greater than a threshold value, the neuron fires by sending an electrical Fig.6 Simulink diagram for generation of neural targets D. Single-Output Identification Initially single-input single-output networks were developed, the input being the control force and the output pole angle. The first type of neural network to be developed is feed-forward. Using matlab it is possible to develop multi-layer perceptions (MLP).The matlab code creates a feed-forward network. The newff function allows a user to specify the number of layers, the number of neurons in the hidden layers and the activation functions used. These networks use the back-propagation learning rule to update the weights. The number of epochs for this example is set to 100. The learning rate of the network is also set. The train function adjusts the weights of the network, Fig.8 shows the training, testing and validation of the MLP.When the training is finished, the neural network is exported to Simulink using the gensim command.fig.7shows the neural network in simulink environment. Notice that the neural model and the process receive the same input signal. The quality of the neural model is tested by calculating the MSE(Mean Squared Error) The MSE gives a good indication of the accuracy of the model. The output from the model and process is plotted to compare the dynamics. 5

International Journal of Modeling and Optimization, Vol. 1, No. 1, April 011 networks. Fig.7 Comparison of actual model with neural model TABLE.1 SINGLE OUTPUT IDENTIFICATION RESULT Type of ANN. No. of Neurons in Epochs Mean Square Error Hidden layer FF 5 100 5.67e-005 FF 10 100 5.756e-005 FF 0 100 5.607e-005 FF 0 100 6.069 e-009 Fig.8 Validation Performance of neuron model Fig.9 Data s taken from the neural network Fig.11 Comparison of actual model with neural model The process and the neural model will receive the same input. The neural network is trained by presenting the 4 targets together at each time interval. The results obtained from MATLAB Simulink simulations are tabulated in Table.. TABLE. RESULTS OF FEED FORWARD NETWORKS Type of ANN. No. of Neurons in Epochs Mean Square Error Hidden layer FF 4 100 5.617e-005 FF 5 100 5.456e-005 FF 0 100 5.107e-005 FF 0 100 6.069 e-009 Fig.10 Training and testing data s for validation Fig.9 shows the training data s taken by the neural network for validation, increasing the number of hidden layer neurons allows for more complex functions to be modeled. It was expected that as the number of hidden neurons increased the more accurate the model would become. The MSE error is low and the neural model predicts the pendulum angle. The results in Table.1 indicate that increasing the number of hidden neurons improve the MSE between the model and the process. E. Multioutput Identification In Section.4 neural models have been for single-input single output systems with just the pendulum angle output. A neural network which models one input and 4 output states has been developed. Fig.11 shows the nonlinear pendulum. Multi-output system has been modeled using feed-forward IV. NEURAL NETWORK CONTROL A feed-forward neural network trained to imitate the controller with the control law developed in Section II. The four input and output data s were taken from the control law. The FF network has 50 neurons in the hidden layer. The activation functions in the hidden layer are tan-sigmoid and the output layer is a linear function. The neural network is trained to imitate the controller. Fig.1 Control law replaced by ANN control 6

International Journal of Modeling and Optimization, Vol. 1, No. 1, April 011 V. ANFIS CONTROL OF INVERTED PENDULUM ANFIS are a class of adaptive networks that are functionally equivalent to fuzzy inference systems.. ANFIS uses a hybrid learning algorithm [4]. The ANFIS-control is developed using supervised learning. The input and the targets were collected from the inverted pendulum with control law and stored in notepad in DAT format. Fig.16 Angular velocity response (0 hidden neurons) Fig.17 Angular velocity response (0 hidden neurons) Fig.1 Nonlinear pendulum model and the control law. Fig.18 Angular velocity response (5hidden neurons) Fig.14 Training and testing using ANFIS Fig.14 shows the training and testing of the inverted pendulum data set. Finally, the ANFIS structure is exported as FIS.The four inputs (y, y dot, theta, theta dot) signals are stored in matlab. The target for the ANFIS control is the output from the controller, The training data set is uploaded in the ANFIS editor, grid partition type FIS is selected with number of epochs given as 0, the ANFIS complete the training in two epochs, the obtained ANFIS is converted in to Fuzzy Inference System (FIS) and saved in workspace. The output from the model and process is plotted to compare the dynamics. As the number of hidden neurons increases the model provides higher accuracy. (Fig. 15-17) shows the process and model output with different number of hidden neurons. A. Inverted Pendulum Control Fig.18 illustrates the angle response of the inverted pendulum with control law which stabilizes the system with in 10 seconds. Fig. 19 shows the angle response of inverted pendulum using ANFIS control which stabilizes the system with in 7second. Fig.0 shows the angle response of the inverted pendulum with ANN control. This has failed to stabilize the system. Whereas ANFIS control produces better control strategy. Fig.15 Control law replaced by ANFIS control ANFIS controller replaces the control law and makes the system to stabilize with in 7 seconds, Fig.15 shows the inverted pendulum control using ANFIS in Simulink environment Fig.18 Angle response using control law VI. RESULTS AND DISCUSSIONS The quality of the neural model is tested by calculating the MSE (mean squared error). Fig.19 Angle response using ANFIS control 7

International Journal of Modeling and Optimization, Vol. 1, No. 1, April 011 Fig.0 Angle response using ANN control [] pp.15 16,000. [] M. I. H. Nour, J. Ooi,, and K. Y. Chan, Fuzzy Logic Control vs. Conventional PID Control of an Inverted Pendulum Robot, International Conference on Intelligent and Advanced Systems,pp. 09-14,007. [4] Mohandas K P and Suresh Paritala, Simulation of inverted pendulum using neural networks for identification, pp. 61-67, 006. [5] Mouloud A.Denai,Frank Palis and Abdelhafid Zeghbib, ANFIS based Modelling and Control of Non-linear Systems International Conference on Systems,Man and Cybernetics,pp.4-48,004. [6] A. Saifizul,,Z.Zainon, N.A Abu Osman,C.A. Azlan and, U.F.S Ungku Ibrahim, Intelligent Control for self erecting Inverted Pendulum Via Adaptive Neuro-fuzzy Inference System,pp. 1795-180, 006. VII. CONCLUSIONS Methods for applying ANN and ANFIS techniques for the identification and control of the inverted pendulum system has been presented in this paper. Before identification techniques could be tested, a model representing the inverted pendulum has been developed. One of the requirements for accurate identification is experimental input-output data that describes the dynamics of the system. For closed-loop identification system stabilizing feedback controllers have been developed for the nonlinear inverted pendulum []. A control law has been evolved to stabilize the nonlinear pendulum. The control law removes some of the nonlinearities from the process. Feed forward networks with a range of hidden layer neurons were tested. The Angular velocity for actual system and ANN model were compared. MSE obtained through the simulation is 6.069 e-009. Further refining of the model is in progress for improving the MSE to a lower value. In controlling the inverted pendulum system actual control law stabilizes the system in 10 seconds whereas ANFIS control stabilizes the inverted pendulum system with in 7 seconds. Thus it is concluded that ANFIS control will be a positive choice for the stabilization rather than the neural networks. REFERENCES [1] J. Yi, N. Yubazaki, S. Shimobano, Saga Hirosawa, Ukyo, Stabilization fuzzy control of inverted pendulum systems Artificial Intelligence in Engineering, R.S.D.Wahidabanu is presently professor and Head in the department of Electronics & Communication Engineering,GCE, Salem, India. She completed her PhD from Anna university, Chennai during 1994.Her research area of Interests include Artificial Intelligence, Computer protocols etc. 17 Scholars completed their Ph.D under her guidance and many students are being guided by her for doing PhD. She is a member of several Technical societies. She had published many papers in International and Indian Journals. A.ShakilaBanu is presently with the department of Instrumentation and control Engineering, Sethu Institute of Technology, Tamilnadu, India. She completed her master s degree in 004.Presently she is a research scholar pursuing her work in the field of Intelligent Controllers. She has published many papers in both national and International conferences. Her research areas and field of Interests include control system, process control and adaptive control etc. D.Manoj is presently with the department of Instrumentation and control Engineering, Sethu Institute of Technology, India.He had completed his PG degree in Thigarajar College of Engineering in 010. His fields of Interests include intelligent controllers and Soft computing Techniques. 8