Neuro-Fyzzy Methods for Modeling and Identification Part 2 : Examples Presented by: Ali Maleki.

Slides:



Advertisements
Similar presentations
Pat Langley Computational Learning Laboratory Center for the Study of Language and Information Stanford University, Stanford, California
Advertisements

Slides from: Doug Gray, David Poole
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.

Chapter 6 Sampling and Sampling Distributions
Polynomial Regression and Transformations STA 671 Summer 2008.
Hazırlayan NEURAL NETWORKS Least Squares Estimation PROF. DR. YUSUF OYSAL.
280 SYSTEM IDENTIFICATION The System Identification Problem is to estimate a model of a system based on input-output data. Basic Configuration continuous.
PART 7 Constructing Fuzzy Sets 1. Direct/one-expert 2. Direct/multi-expert 3. Indirect/one-expert 4. Indirect/multi-expert 5. Construction from samples.
Development of Empirical Models From Process Data
Data Mining CS 341, Spring 2007 Lecture 4: Data Mining Techniques (I)
Matlab Fuzzy Toolkit Example
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
Classification of Instruments :
Lecture 24 Introduction to state variable modeling Overall idea Example Simulating system response using MATLAB Related educational modules: –Section 2.6.1,
1 PREDICTION In the previous sequence, we saw how to predict the price of a good or asset given the composition of its characteristics. In this sequence,
Fuzzy Rule-based Models *Neuro-fuzzy and Soft Computing - J.Jang, C. Sun, and, E. Mizutani, Prentice Hall 1997.
Ranga Rodrigo April 5, 2014 Most of the sides are from the Matlab tutorial. 1.
What are Neuro-Fuzzy Systems A neuro-fuzzy system is a fuzzy system that uses a learning algorithm derived from or inspired by neural network theory to.
Hybrid intelligent systems:
Neuro-fuzzy Systems Xinbo Gao School of Electronic Engineering Xidian University 2004,10.
Modeling and Identification
Chapter 11 Simple Regression
NUMERICAL EXAMPLE APPENDIX A in “A neuro-fuzzy modeling tool to estimate fluvial nutrient loads in watersheds under time-varying human impact” Rafael Marcé.
Hybrid intelligent systems:
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
TS Modeling Based on GMDH and Its application Changzheng He Dept. of Management Science, Sichuan University of P.R.China.
Extraction of Fetal Electrocardiogram Using Adaptive Neuro-Fuzzy Inference Systems Khaled Assaleh, Senior Member,IEEE M97G0224 黃阡.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
© Negnevitsky, Pearson Education, Lecture 11 Neural expert systems and neuro-fuzzy systems Introduction Introduction Neural expert systems Neural.
October 13, MATLAB Fuzzy Logic Toolbox Intelligent Control.
RAČUNARSKI ALGORITMI U BIOINFORMATICI
Computacion Inteligente Least-Square Methods for System Identification.
FUZZY CLUSTERING AND ANFIS 2009/  Underfitting : M51 demolm2  Overfitting: M51: demolm3  ANFIS  ANFIS GUI  Example1 (training data: clusterdemo.dat)
Fuzzy Inference (Expert) System
Mobile Robot Navigation Using Fuzzy logic Controller
FUZZY LOGIC 1.
INVENTORY CONTROL AS IDENTIFICATION PROBLEM BASED ON FUZZY LOGIC ALEXANDER ROTSHTEIN Dept. of Industrial Engineering and Management, Jerusalem College.
1 11 Simple Linear Regression and Correlation 11-1 Empirical Models 11-2 Simple Linear Regression 11-3 Properties of the Least Squares Estimators 11-4.
Chapter 5: Business Intelligence: Data Warehousing, Data Acquisition, Data Mining, Business Analytics, and Visualization DECISION SUPPORT SYSTEMS AND BUSINESS.
SYSTEMS Identification Ali Karimpour Assistant Professor Ferdowsi University of Mashhad Reference: “System Identification Theory For The User” Lennart.
ANFIS (Adaptive Network Fuzzy Inference system)
Interval Type-2 Fuzzy T-S Modeling For A Heat Exchange Process On CE117 Process Trainer Proceedings of 2011 International Conference on Modelling, Identification.
Prof. dr Zikrija Avdagić, dipl.ing.el. ANFIS Editor GUI ANFIS Editor GUI.
Chapter 7 Point Estimation of Parameters. Learning Objectives Explain the general concepts of estimating Explain important properties of point estimators.
MUNICIPALITIES CLASSIFICATION BASED ON FUZZY RULES
Chapter 8: Adaptive Networks
Matlab Tutorial for State Space Analysis and System Identification

Data Mining and Decision Support
Chapter 2-OPTIMIZATION G.Anuradha. Contents Derivative-based Optimization –Descent Methods –The Method of Steepest Descent –Classical Newton’s Method.
Authors : Chun-Tang Chao, Chi-Jo Wang,
Dynamic Neural Network Control (DNNC): A Non-Conventional Neural Network Model Masoud Nikravesh EECS Department, CS Division BISC Program University of.
PMS RI 2010/2011 Prof. dr Zikrija Avdagić, dipl.ing.el. ANFIS Editor GUI ANFIS Editor GUI.
Fuzzy Logic Fuzzy Control Solution: Homework 7.
Computacion Inteligente Least-Square Methods for System Identification.
Introduction of Fuzzy Inference Systems By Kuentai Chen.
The article written by Boyarshinova Vera Scientific adviser: Eltyshev Denis THE USE OF NEURO-FUZZY MODELS FOR INTEGRATED ASSESSMENT OF THE CONDITIONS OF.
A Presentation on Adaptive Neuro-Fuzzy Inference System using Particle Swarm Optimization and it’s Application By Sumanta Kundu (En.R.No.
A PID Neural Network Controller
VIDYA PRATISHTHAN’S COLLEGE OF ENGINEERING, BARAMATI.
Chapter 12 Case Studies Part B. Control System Design.
MATLAB Fuzzy Logic Toolbox
Feature Selection for Pattern Recognition
Time lag between stimulus
Dr. Unnikrishnan P.C. Professor, EEE
Masoud Nikravesh EECS Department, CS Division BISC Program
Hybrid intelligent systems:
Chapter 12 Analyzing Semistructured Decision Support Systems
Presentation transcript:

Neuro-Fyzzy Methods for Modeling and Identification Part 2 : Examples Presented by: Ali Maleki

Presentation Agenda Introduction Tools for Fuzzy Identification and Modelling MATLAB – Fuzzy Logic Toolbox – ANFIS Fuzzy Modeling and Identification Toolbox Examples : Example 1: Hair Dryer Example 2: Static Function Example 3: Neutralization Process

Introduction Control Systems Competion Environment requirements Energy and material costs Demand for robust, fault-tolerant systems Extra needs for Effective process modeling techniques Conventional modeling? Lack precise and formal knowledg about the system Strongly nonlinear behavior, High degree of uncertainty, Time varying characteristics

Introduction (cont.) Solution: Neuro-fuzzy modeling A powerful tool which can facilitate the effective development of models by combining information from different source: Empirical models Heuristics Data Neuro-fuzzy models Describe systems by means of fuzzy if-then rules Represented in a network structure Apply algorithms from the area of Neural Networks

Zero-order TS fuzzy model Typical membership function Input-output equation Introduction (cont.)

System identification steps: Structure identification Parameter estimation choice of the model’s structure determines the flexibility of the model in the approximation of (unknown) systems model with a rich structure can approximate more complicated functions, but, will have worse generalization properties Good generalization means that a model fitted to one data set will also perform well on another data set from the same process.

Tools for Fuzzy Modeling & Identification Fuzzy Modelling and Identification Toolbox Develped by R. Babuska Installation Version 3.03, April 2001 Fuzzy Logic Toolbox for MATLAB Version 2.1.3, June 2004

Fuzzy Modeling and Identification Toolbox

Fuzzy Modeling and Identification Toolbox (cont.)

FMSIM function: Simulate a MIMO input-output fuzzy model Fuzzy Modeling and Identification Toolbox (cont.)

Structure of FM (fmstruct function): Fuzzy Modeling and Identification Toolbox (cont.)

Structure of FM (fmstruct function): Fuzzy Modeling and Identification Toolbox (cont.)

plotmfs function: Plot membership functions rms function: Root mean square between two signals vaf function: Percentile variance accounted for (VAF) between two signals Fuzzy Modeling and Identification Toolbox (cont.)

MATLAB - Fuzzy Toolbox anfis function: Training routine for Sugeno-type FIS anfisedit function: Open the ANFIS Editor GUI genfis1 function: Generate an FIS structure from data without data clustering genfis2 function: Generate an FIS structure from data using subtractive clustering

MATLAB - Fuzzy Toolbox (cont.) ANFIS Editor GUI

Example 1 : Hair Dryer (Fuzzy Logic Toolbox) Nonlinear dynamical system identification With use of ANFIS function in the Fuzzy Logic Toolbox Data set was obtained from a laboratory device called Feedback's Process Trainer PT 326, L. Ljung, "System Identification, Theory for the User", Prentice- Hall, 1987 – Chapter 17 The device's function is like a hair dryer: Input u(k) : Voltage over the mesh of resistor wires Output y(k) : Outlet air temperature

Input u(k) : Binary random signal shifting between 3.41 and 6.41 V Output y(k) : Outlet air temperature Sampling Time : 0.08 sec Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Linear ARX model: y(k)+a 1 *y(k-1)+...+a m *y(k-m)=b 1 *u(k-d)+...+b n *u(k-d-n+1) a i and b j are linear parameters to be determined by least-squares methods This structure is exactly specified by three integers [m, n, d] Remind: System Identification : structure selection + parameter estimation Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Remove the means from the data The data set was divided into a training set and a checking set Training data set : (k = 1 to 300) Checking data set : (k = 301 to 600) An exhaustive search was performed to find the best combination [m, n, d] each of the integer is allowed to changed from 1 to 10 independently Run through all different models: V = arxstruc(ze, zv, struc(1:10, 1:10, 1:10)); Find the best model: nn = selstruc(V, 0); The best ARX model : [m, n, d] = [5, 10, 2] Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Training RMSE = Checking RMSE = Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Advantage of ARX model: Rapid model structure selection Rapid parameter identification The performance in the above plots appear to be satisfactory. If a better performance level is desired, we might want to resort to a nonlinear model. Neuro-fuzzy modeling approach, ANFIS Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Use ANFIS for system identification: First step: input selection To determine which variables should be the input arguments to an ANFIS model. For simplicity, we suppose that there are 10 input candidates y(k-1), y(k-2), y(k-3), y(k-4), u(k-1), u(k-2), u(k-3), u(k-4), u(k-5), u(k-6) Two approaches for input selection: Sequential search Exhaustive search Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Sequential search for input selection: can be done by the function seqsrch =27 Selected inputs : y(k-1), u(k-3), and u(k-4) Training RMSE = Checking RMSE = Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Exhaustive search on all possible combinations of the input candidates Can be done by function exhsrch We want to selects 3 inputs from 10 candidates, therefore, the total number of ANFIS models is Fortunately, for dynamical system identification, we do know that the inputs should not come from either of the following two sets of input candidates exclusively: Y = {y(k-1), y(k-2), y(k-3), y(k-4)} U = {u(k-1), u(k-2), u(k-3), u(k-4), u(k-5), u(k-6)} A reasonable guess: two inputs from Y and one from U Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Exhaustive search Selected inputs : y(k-1), y(k-2), u(k-3) Training RMSE = Checking RMSE = Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

ARX model Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

ANFIS model Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Comparision If fast modeling is the goal, then ARX is the right choice, If precision is the utmost concern, then we can go for ANFIS that is designed for nonlinear modeling and higher precision Example 1 : Hair Dryer (Fuzzy Logic Toolbox) (cont.)

Example 2 - Static Function ANFIS model with linear consequent function Number of rules: five rules Construction of initial model: Gustafson-Kessel algorithm Fit of the function with initial model – local models - membership functions

Example 2 - Static Function (cont.) this initial model can easily be interpreted in terms of the local behavior It is reasonably accurate (RMS= ) ANFIS method, 100 learning epochs anfis function of the MATLAB Fuzzy Logic Toolbox Fit of the function with fine-tuned model, local models, membership functions

RMS error is about 23 times better than the initial model Initial modelFine-tuned model RMS error = RMS error = Example 2 - Static Function (cont.)

after learning, the local models are much further from the true local description of the function Initial modelFine-tuned model Fine-tuned model are thus less accurate in describing the system locally Example 2 - Static Function (cont.)

Example 3 – pH Neutralization Process Neutralization tank Effluent stream Acid Buffer Base Influent streams Neutralization tank pH in the tank Acid flowrate = cte Buffer flowrate = cte Base stream flowrate

Example 3 - pH Neutralization Process (cont.) Identification and validation data sets: Simulating the model by Hall and Seborg for random change of the influent base stream flow rate N = 499 samples with the sampling time of 15 s. The process is approximated as a first–order discrete-time NARX model

Membership functions Befor training After training Example 3 - pH Neutralization Process (cont.)

Rules: Initial Rules: Fine Tuned Rules: after 1000 epochs of hybrid learning using the ANFIS function of the MATLAB Fuzzy Logic Toolbox Example 3 - pH Neutralization Process (cont.)

Overtraining Problem: Comparision of RMS ERROR befor and after training Prediction befor and after training Example 3 - pH Neutralization Process (cont.)

References [1] Robert Babuska, “Neuro-Fuzzy Methods for Modeling and Identification”, Recent Advances in Intelligent Paradigms and Application, Springer- Verilag, 2002 [2] Robert Babuska, “Fuzzy Modeling and Identification Toolbox User’s Guide - For Use with MATLAB”, [3] MathWorks Inc., “Fuzzy Logic Toolbox – Users Guide – Version 2”, [4] L. Ljung, “System Identification, Theory for the User”, Prentice-Hall, 1987.

THANK YOU VERY MUCH For your Attention Presented by: Ali Maleki

Introduction - appendix Types of fuzzy models: (depending on the structure of if-then rules) Mamdani Model IF D 1 is low and D 2 is high THEN D is medium Takagi-Sugeno Model IF D 1 is low and D 2 is high THEN D=k (zero- order) IF D 1 is low and D 2 is high THEN D=0.7D D (first- order)