FUZZY LOGIC 1.

Slides:



Advertisements
Similar presentations
FUNCTION FITTING Student’s name: Ruba Eyal Salman Supervisor:
Advertisements

Fuzzy Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
Slides from: Doug Gray, David Poole

Affinity Set and Its Applications Moussa Larbani and Yuh-Wen Chen.
Fuzzy Logic and its Application to Web Caching
Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer.
Fuzzy Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
FUZZY LOGIC Shane Warren Brittney Ballard. OVERVIEW What is Fuzzy Logic? Where did it begin? Fuzzy Logic vs. Neural Networks Fuzzy Logic in Control Systems.
Soft computing Lecture 6 Introduction to neural networks.
Simple Neural Nets For Pattern Classification
Fuzzy Logic Based on a system of non-digital (continuous & fuzzy without crisp boundaries) set theory and rules. Developed by Lotfi Zadeh in 1965 Its advantage.
Fuzzy Inference System Learning By Reinforcement Presented by Alp Sardağ.
Introduction to Neural Network Justin Jansen December 9 th 2002.
Fuzzy Medical Image Segmentation
Theoretical & Industrial Design of Aerofoils P M V Subbarao Professor Mechanical Engineering Department An Objective Invention ……
Neural Networks Primer Dr Bernie Domanski The City University of New York / CSI 2800 Victory Blvd 1N-215 Staten Island, New York 10314
Fuzzy Logic Dave Saad CS498. Origin Proposed as a mathematical model similar to traditional set theory but with the possibility of partial set membership.
Neural Networks (NN) Ahmad Rawashdieh Sa’ad Haddad.
Neural Networks Lab 5. What Is Neural Networks? Neural networks are composed of simple elements( Neurons) operating in parallel. Neural networks are composed.
Introduction What is Fuzzy Logic? HOW DOES FL WORK? Differences between Classical set (crisps) and Fuzzy set theory Example 1 Example 2 Classifying Houses.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
Fuzzy Logic BY: ASHLEY REYNOLDS. Where Fuzzy Logic Falls in the Field of Mathematics  Mathematics  Mathematical Logic and Foundations  Fuzzy Logic.
Fuzzy Logic. Priyaranga Koswatta Mundhenk and Itti, 2007.
Hybrid intelligent systems:
FUZZY LOGIC Babu Appat. OVERVIEW What is Fuzzy Logic? Where did it begin? Fuzzy Logic vs. Neural Networks Fuzzy Logic in Control Systems Fuzzy Logic in.
Integrating Neural Network and Genetic Algorithm to Solve Function Approximation Combined with Optimization Problem Term presentation for CSC7333 Machine.
Management in complexity The exploration of a new paradigm Complexity in computing and AI Walter Baets, PhD, HDR Associate Dean for Innovation and Social.
1 Artificial Neural Networks Sanun Srisuk EECP0720 Expert Systems – Artificial Neural Networks.
An Introduction to Artificial Intelligence and Knowledge Engineering N. Kasabov, Foundations of Neural Networks, Fuzzy Systems, and Knowledge Engineering,
IE 585 Introduction to Neural Networks. 2 Modeling Continuum Unarticulated Wisdom Articulated Qualitative Models Theoretic (First Principles) Models Empirical.
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Fuzzy Logic. WHAT IS FUZZY LOGIC? Definition of fuzzy Fuzzy – “not clear, distinct, or precise; blurred” Definition of fuzzy logic A form of knowledge.
Machine Learning Dr. Shazzad Hosain Department of EECS North South Universtiy
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Genetic Algorithm
Neuro-Fyzzy Methods for Modeling and Identification Part 2 : Examples Presented by: Ali Maleki.
Neural-Network-Based Fuzzy Logical Control and Decision System 主講人 虞台文.
ANFIS (Adaptive Network Fuzzy Inference system)
Prof. dr Zikrija Avdagić, dipl.ing.el. ANFIS Editor GUI ANFIS Editor GUI.
DATA MINING WITH CLUSTERING AND CLASSIFICATION Spring 2007, SJSU Benjamin Lam.
Neural Networks Presented by M. Abbasi Course lecturer: Dr.Tohidkhah.
PMS RI 2010/2011 Prof. dr Zikrija Avdagić, dipl.ing.el. ANFIS Editor GUI ANFIS Editor GUI.
Introduction of Fuzzy Inference Systems By Kuentai Chen.
LOAD FORECASTING. - ELECTRICAL LOAD FORECASTING IS THE ESTIMATION FOR FUTURE LOAD BY AN INDUSTRY OR UTILITY COMPANY - IT HAS MANY APPLICATIONS INCLUDING.
Aisha Iqbal (CT-084) Kanwal Hakeem (CT-098) Tehreem Mushtaq (CT-078) Talha Syed (CT-111)
The article written by Boyarshinova Vera Scientific adviser: Eltyshev Denis THE USE OF NEURO-FUZZY MODELS FOR INTEGRATED ASSESSMENT OF THE CONDITIONS OF.
COMPUTE INVERSE KINEMATICS IN A ROBOTIC ARM BY USING FUZZY LOGIC Subject: Robotics Applications Student: Bui Huy Tien Student ID: M961Y204.
DDMAC: Dynamic Delayed Medium Access Control (MAC) Protocol with Fuzzy Technique for Wireless Body Area Network By: Ido Polak Netanel Ring.
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
A Presentation on Adaptive Neuro-Fuzzy Inference System using Particle Swarm Optimization and it’s Application By Sumanta Kundu (En.R.No.
Introduction to Artificial Neural Network Session 1
Intro to Machine Learning
Soft Computing Introduction.
Feature Selection for Pattern Recognition
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Introduction to Soft Computing
Meaning of “fuzzy”, Definition of Fuzzy Logic
Fuzzy Logic and Fuzzy Sets
Dr. Unnikrishnan P.C. Professor, EEE
Dr. Unnikrishnan P.C. Professor, EEE
Meaning of “fuzzy”, Definition of Fuzzy Logic
Fuzzy Logic Colter McClure.
Dr. Unnikrishnan P.C. Professor, EEE
Hybrid intelligent systems:
Fuzzy Logic Bai Xiao.
Meaning of “fuzzy”, Definition of Fuzzy Logic
Fuzzy Logic Based on a system of non-digital (continuous & fuzzy without crisp boundaries) set theory and rules. Developed by Lotfi Zadeh in 1965 Its advantage.
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

FUZZY LOGIC 1

WHAT IS FUZZY LOGIC? Definition of fuzzy Definition of fuzzy logic Fuzzy – “not clear, distinct, or precise; blurred” Definition of fuzzy logic A form of knowledge representation suitable for notions that cannot be defined precisely, but which depend upon their contexts. 2

TRADITIONAL REPRESENTATION OF LOGIC Slow Fast Speed = 0 Speed = 1 bool speed; get the speed if ( speed == 0) { // speed is slow } else { // speed is fast 3

FUZZY LOGIC REPRESENTATION Slowest For every problem must represent in terms of fuzzy sets. What are fuzzy sets? [ 0.0 – 0.25 ] Slow [ 0.25 – 0.50 ] Fast [ 0.50 – 0.75 ] Fastest [ 0.75 – 1.00 ] 4

FUZZY LOGIC REPRESENTATION CONT. Slowest Slow Fast Fastest float speed; get the speed if ((speed >= 0.0)&&(speed < 0.25)) { // speed is slowest } else if ((speed >= 0.25)&&(speed < 0.5)) { // speed is slow else if ((speed >= 0.5)&&(speed < 0.75)) // speed is fast else // speed >= 0.75 && speed < 1.0 // speed is fastest 5

ORIGINS OF FUZZY LOGIC Traces back to Ancient Greece Lotfi Asker Zadeh ( 1965 ) First to publish ideas of fuzzy logic. Professor Toshire Terano ( 1972 ) Organized the world's first working group on fuzzy systems. F.L. Smidth & Co. ( 1980 ) First to market fuzzy expert systems. 6

FUZZY LOGIC VS. NEURAL NETWORKS How does a Neural Network work? Both model the human brain. Fuzzy Logic Neural Networks Both used to create behavioral systems. 7

FUZZY LOGIC IN CONTROL SYSTEMS Fuzzy Logic provides a more efficient and resourceful way to solve Control Systems. Some Examples Temperature Controller Anti – Lock Break System ( ABS ) 8

TEMPERATURE CONTROLLER The problem Change the speed of a heater fan, based off the room temperature and humidity. A temperature control system has four settings Cold, Cool, Warm, and Hot Humidity can be defined by: Low, Medium, and High Using this we can define the fuzzy set. 9

BENEFITS OF USING FUZZY LOGIC 10

FUZZY LOGIC IN OTHER FIELDS Business Hybrid Modeling Expert Systems 11

Predicting consumption of fuel in Automobiles. Application Predicting consumption of fuel in Automobiles.

Training Data

exhsrch(1, trn_data, chk_data, input_name); Partitioning Data Input Selection exhsrch(1, trn_data, chk_data, input_name); Train 6 ANFIS models, each with 1 inputs selected from 6 candidates... ANFIS model 1: Cylinder --> trn=4.6400, chk=4.7255 ANFIS model 2: Disp --> trn=4.3106, chk=4.4316 ANFIS model 3: Power --> trn=4.5399, chk=4.1713 ANFIS model 4: Weight --> trn=4.2577, chk=4.0863 ANFIS model 5: Acceler --> trn=6.9789, chk=6.9317 ANFIS model 6: Year --> trn=6.2255, chk=6.1693

Figure 1: Every input variable's influence on fuel consumption The left-most input variable in Figure 1 has the least error or in other words the most relevance with respect to the output.

input_index = exhsrch(2, trn_data, chk_data, input_name); Train 15 ANFIS models, each with 2 inputs selected from 6 candidates... ANFIS model 1: Cylinder Disp --> trn=3.9320, chk=4.7920 ANFIS model 2: Cylinder Power --> trn=3.7364, chk=4.8683 ANFIS model 3: Cylinder Weight --> trn=3.8741, chk=4.6764 ANFIS model 4: Cylinder Acceler --> trn=4.3287, chk=5.9625 ANFIS model 5: Cylinder Year --> trn=3.7129, chk=4.5946 ANFIS model 6: Disp Power --> trn=3.8087, chk=3.8594 ANFIS model 7: Disp Weight --> trn=4.0271, chk=4.6349 ANFIS model 8: Disp Acceler --> trn=4.0782, chk=4.4890 ANFIS model 9: Disp Year --> trn=2.9565, chk=3.3905 ANFIS model 10: Power Weight --> trn=3.9310, chk=4.2974 ANFIS model 11: Power Acceler --> trn=4.2740, chk=3.8738 ANFIS model 12: Power Year --> trn=3.3796, chk=3.3505 ANFIS model 13: Weight Acceler --> trn=4.0875, chk=4.0095 ANFIS model 14: Weight Year --> trn=2.7657, chk=2.9954 ANFIS model 15: Acceler Year --> trn=5.6242, chk=5.6481

Figure 2: All two input variable combinations and their influence on fuel consumption The results from exhsrch indicate that 'Weight' and 'Year' form the optimal combination of two input attributes. The training and checking errors are getting distinguished, indicating the outset of overfitting.

exhsrch(3, trn_data, chk_data, input_name); Train 20 ANFIS models, each with 3 inputs selected from 6 candidates...

Figure 3: All three input variable combinations and their influence on fuel consumption

Training the ANFIS model The function exhsrch only trains each ANFIS for a single epoch in order to be able to quickly find the right inputs. Now that the inputs are fixed, we can spend more time on ANFIS training (100 epochs). The genfis1 function generates an initial FIS from the training data, which is then finetuned by ANFIS to generate the final model. in_fismat = genfis1(new_trn_data, 2, 'gbellmf'); [trn_out_fismat trn_error step_size chk_out_fismatchk_error] = ... anfis(new_trn_data, in_fismat, [100 nan 0.01 0.5 1.5], [0,0,0,0], new_ch k_data, 1); ANFIS returns the error with respect to training data and checking data in the list of its output parameters. The plot of the errors provides useful information about the training process. [a, b] = min(chk_error); plot(1:100, trn_error, 'g-', 1:100, chk_error, 'r-', b, a, 'ko'); title('Training (green) and checking (red) error curve'); xlabel('Epoch numbers'); ylabel('RMS errors');

Figure 4: ANFIS training and checking errors

Analyzing the ANFIS Model The variable chk_out_fismat represents the snapshot of the ANFIS model at the minimal checking error during the training process. The input- output surface of the model is shown in the plot below. chk_out_fismat = setfis(chk_out_fismat, 'input', 1, 'name', 'Weight'); chk_out_fismat = setfis(chk_out_fismat, 'input', 2, 'name', 'Year'); chk_out_fismat = setfis(chk_out_fismat, 'output', 1, 'name', 'MPG');

% Generating the FIS output surface plot gensurf(chk_out_fismat); Figure 5: Input-Output surface for trained FIS

Limitations and Cautions We can see some spurious effects at the far-end corner of the surface. The elevated corner says that the heavier an automobile is, the more gas-efficient it will be. This is totally counter-intuitive, and it is a direct result from lack of data. plot(new_trn_data(:,1), new_trn_data(:, 2), 'bo', new_chk_data(:,1), new_chk_data(:, 2), 'rx'); xlabel('Weight'); ylabel('Year'); title('Training (o) and checking (x) data');

Figure 6: Weight vs Year plot showing lack of data in the upper-right corner This plot above shows the data distribution. The lack of training data at the upper right corner causes the spurious ANFIS surface mentioned earlier. Therefore the prediction by ANFIS should always be interpreted with the data distribution in mind.

It allows membership degrees to the variables. Fuzzy logic provides an alternative way to represent linguistic and subjective attributes of the real world in computing. It allows membership degrees to the variables. It is able to be applied to control systems and other applications in order to improve the efficiency and simplicity of the design process. 26

Different cases of each input’s fuzzy sets are evaluated according to if-then rules of the fuzzy system As a result of this operation, the optimum outputs are obtained much close to the target outputs

Neural networks are adaptive networks which are composed of simple elements operating in parallel These elements are inspired by biological nervous Systems Neural networks have been trained to perform complex functions in various fields of applications including pattern recognition, identification, classification, speech, vision and control systems