Numerical Methods in A.I.: Fuzzy Logic

Slides:



Advertisements
Similar presentations
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Advertisements

Fuzzy Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
Lecture 4 Fuzzy expert systems: Fuzzy logic
EE357 Control System I - Lec B2 (2010W) - Introduction.
Fuzzy Logic and its Application to Web Caching
Lecture 2: Systems Engineering
Fuzzy Logic CSE-435: A Presentation on Presented by Osama Ahmed Khan Dr. Hector Munoz-Avila.
Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer.
Fuzzy Expert System Fuzzy Logic
AI TECHNIQUES Fuzzy Logic (Fuzzy System). Fuzzy Logic : An Idea.
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 Expert Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.
Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser.
GATE Reactive Behavior Modeling Fuzzy Logic (GATE-561) Dr.Çağatay ÜNDEĞER Instructor Middle East Technical University, GameTechnologies Bilkent University,
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.
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 Expert System.
Fuzzy Logic Samson Okoh Engr 315 Fall Introduction  Brief History  How it Works –Basics of Fuzzy Logic  Rules –Step by Step Approach of Fuzzy.
Fuzzy Medical Image Segmentation
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
COMP 578 Fuzzy Sets in Data Mining Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University.
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
Fuzzy Logic Dave Saad CS498. Origin Proposed as a mathematical model similar to traditional set theory but with the possibility of partial set membership.
Introduction What is Fuzzy Logic? HOW DOES FL WORK? Differences between Classical set (crisps) and Fuzzy set theory Example 1 Example 2 Classifying Houses.
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
Fuzzy Logic Mark Strohmaier CSE 335/435.
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.
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.
9/3/2015Intelligent Systems and Soft Computing1 Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what.
Soft computing Lecture 5
Fuzzy Logic. Lecture Outline Fuzzy Systems Fuzzy Sets Membership Functions Fuzzy Operators Fuzzy Set Characteristics Fuzziness and Probability.
CSNB234 ARTIFICIAL INTELLIGENCE
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
FUZZY LOGIC 1.
Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Chapter 13 Fuzzy Logic 1. Handling Uncertainty Probability-based approach and Bayesian theory Certainty factor and evidential reasoning Fuzzy logic 2.
AI Fuzzy Systems. History, State of the Art, and Future Development Sde Seminal Paper “Fuzzy Logic” by Prof. Lotfi Zadeh, Faculty in Electrical.
CSCI1600: Embedded and Real Time Software Lecture 28: Verification I Steven Reiss, Fall 2015.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Fuzzy Sets and Logic Sarah Spence Adams Discrete Mathematics.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
Fuzzy Logic.
Aisha Iqbal (CT-084) Kanwal Hakeem (CT-098) Tehreem Mushtaq (CT-078) Talha Syed (CT-111)
Fuzzy Logic 1. Introduction Form of multivalued logic Deals reasoning that is approximate rather than precise The fuzzy logic variables may have a membership.
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
Lecture 4 Fuzzy expert systems: Fuzzy logic n Introduction, or what is fuzzy thinking? n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy.
Inexact Reasoning 2 Session 10
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
Inexact Reasoning 2 Session 10
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Artificial Intelligence Fuzzy Logic Systems
Meaning of “fuzzy”, Definition of Fuzzy Logic
Fuzzy Logic and Fuzzy Sets
Dr. Unnikrishnan P.C. Professor, EEE
Intelligent Systems and Soft Computing
Meaning of “fuzzy”, Definition of Fuzzy Logic
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy Logic Bai Xiao.
06th October 2005 Dr Bogdan L. Vrusias
Meaning of “fuzzy”, Definition of Fuzzy Logic
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
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:

Numerical Methods in A.I.: Fuzzy Logic By: Hoo Wai Lam WEK070049 Lim Chern Hong WEK070063

Introduction – Fuzzy Logic Fuzzy Logic is a problem-solving control system methodology that lends itself to implementation in systems ranging from simple, small, embedded micro-controllers to large, networked, multi-channel PC or workstation-based data acquisition and control systems. Provides a simple way to arrive at a definite conclusion based upon vague, ambiguous, imprecise, noisy, or missing input information. Can be implemented in hardware, software, or a combination of both. (from: http://www.seattlerobotics.org/Encoder/mar98/fuz/flindex.html)

Introduction – Fuzzy Logic Fields applying theory of fuzzy sets and fuzzy logic : taxonomy; topology; linguistics; logic; automata theory; game theory; pattern recognition; medicine; law; decision support; Information retrieval; etc. Recent fuzzy machines that have been developed: automatic train control; tunnel digging machinery; washing machines; rice cookers; vacuum cleaners; air conditioners, etc.

Introduction – Fuzzy Logic Fuzzy logic makes understanding using knowledge that is imprecise rather than precise possible. There are many decision-making and problem-solving task which are too complex to be understood quantitatively Fuzzy set theory generate decisions by resembling human reasoning in its use of approximate information and uncertainty with the help of natural language processing. It was specifically designed to mathematically represent uncertainty and vagueness using mathematical approach and dealing with the imprecision intrinsic to many problems by designing formalized fuzzy-logic-based tools.

Introduction – Fuzzy Logic “As the complexity of a system increases, it becomes more difficult and eventually impossible to make a precise statement about its behavior, eventually arriving at a point of complexity where the fuzzy logic method born in humans is the only way to get at the problem.” (Originally identified and set forth by Lotfi A. Zadeh, Ph.D., University of California, Berkeley) http://www.fuzzy-logic.com/

Literature Review Fuzzy logic, or multi-valued logic, was introduced in the 1930s by Jan Lukasiewicz, a Polish philosopher. introduced logic that extended the range of truth values to all real numbers in the interval between 0 and 1, compared to classical logic which operates with only two values: 1 (true) and 0 (false). This implies an inexact reasoning technique called possibility theory. For example, the possibility that a man 181 cm tall is really tall might be set to a value of 0.86. It is likely that the man is tall.

Literature Review In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”. extended the work on possibility theory into a formal system of mathematical logic introduced fuzzy logic to represent and manipulate fuzzy terms by applying natural language.

Literature Review The term fuzzy logic is used in two senses: Narrow sense Fuzzy logic is a branch of fuzzy set theory, which deals with the representation and inference from knowledge. Unlike other logical systems, it deals with imprecise or uncertain knowledge. Broad Sense: fuzzy logic is synonymous to fuzzy set theory

Literature Review The fuzzy logic analysis and control method: First Step: Receive inputs, measurements or other assessment of conditions existing in the system we wish to analyze or control. Second step: Processing all inputs according to "If-Then" rules. Third step: Averaging and weighting the resulting outputs into one output decision or signal which decides what to do or tells a controlled system what to do. (Modified from www.fuzzy-logic.com)

Literature Review (Modified from www.fuzzy-logic.com)

Presentation of Core Idea

Why Fuzzy Logic? Robust – It does not require precise, noise free inputs Can be tweaked easily to improve or drastically alter system performance. Not limited to a few inputs and one or two control outputs FL can control nonlinear systems

How is FL used? Define the control objectives and criteria Determine the input and output Using the rule-based structure of FL, break the control problem down into series of IF X AND Y THEN Z rules. Create FL membership functions that define the meaning (value) of Input / Output terms use in the rules. Create the necessary pre- and post- processing Test the system, evaluate the result.

Fuzzy logic is not logic that is fuzzy, but logic that is used to describe fuzziness. Fuzzy logic is the theory of fuzzy sets, sets that calibrate vagueness. Fuzzy logic is based on the idea that all things admit of degrees. Temperature, height, speed, distance, beauty – all come on a sliding scale. The motor is running really hot. Tom is a very tall guy.

Mathematics Part in Fuzzy Logic Will use logic function (e.g. AND OR function and truth values) Set Matrices Mathematical graphical representation Mathematical Inferencing Methods (e.g. MAX-MIN, MAX-DOT, MAX-PRODUCT, AVERAGING, ROOT-SUM-SQUARE)

Example Step1 :Define the control objectives and criteria Following questions will help you to make to achieve the goal of this steps. What am I trying to control? What do I have to do to control the system? What kind of response do I need? What are the possible (probable) system failure modes?

Example Step1: Define the control objectives and criteria A temperature controller with an electric heating element and a variable-speed cooling fan

Example Step1 :Define the control objectives and criteria What am I trying to control? Temperature What do I have to do to control the system? To determine the command (target) temperature and room temperature. Find the error and error dot for FL engine. What kind of response do I need? To Heat / To cool / No change to the system What are the possible (probable) system failure modes?

Example Step2: Determine the input and output For this example, we are going to use error and error dot as our input for the FL engine to do decision. Input1: Error = the value of cmd – temp (e.g 10°C - 15°C = -5°C) Input2: Error dot = rate-of-change-of-error Error: + = too cold - = too hot Error dot: + = getting hotter - = getting cooler

Example Step2: Determine the input and output For this example, we can use: "N" = "negative" error or error-dot input level "Z" = "zero" error or error-dot input level "P" = "positive" error or error-dot input level And output: "H" = "Heat" output response “NC" = "No Change" to current output "C" = "Cool" output response

Example Step2: Determine the input and output DEFINITIONS: INPUT#1: ("Error", positive (P), zero (Z), negative (N)) INPUT#2: ("Error-dot", positive (P), zero (Z), negative (N)) CONCLUSION: ("Output", Heat (H), No Change (NC), Cool (C)) INPUT#1 System Status Error = Command temp-Feedback temp P=Too cold (+), Z=Just right(0), N=Too hot(-) INPUT#2 System Status Error-dot = d(Error)/dt P=Getting hotter(+) Z=Not changing(0) N=Getting colder(-) OUTPUT Conclusion & System Response Output H = Call for heating NC = Don't change anything C = Call for cooling

Example Step3: Using the rule-based structure of FL, break the control problem down into series of IF X AND Y THEN Z rules. terms like "IF (process is too cool) AND (process is getting colder) THEN (add heat to the process)" or "IF (process is too hot) AND (process is heating rapidly) THEN (cool the process quickly)"

Example Make it to 3X3 Matrices Form

Example For step 4-6…. Create FL membership functions that define the meaning (value) of Input / Output terms use in the rules. Create the necessary pre- and post- processing Test the system, evaluate the result.

Coming Soon !!! 

Exercise Building a fuzzy logic speed control system: Parts needed: (1) IBM or compatible personal computer equipped to run Microsoft Quick BASIC.   IBM is a registered trademark of IBM Corporation.   Microsoft and Quick BASIC are registered trademarks of Microsoft, Inc. (2) Controller. (3) Signal conditioner (transistor amplifier to adjust levels as needed). (4) Transistor - 2N3053. (5) DC motor, 1.5 V to 3.0 V, 100 ma., 1100 Rpm to 3300 Rpm, and compatible generator. (Adopted from www.fuzzy-logic.com)

Exercise

Exercise Step 1: Determine the control system input. Examples:   The temperature is the input for your home air conditioner control system.   Speed of the car is the input for your cruise control. In our case, input is the speed in rpm of the DC motor, for which we are going to regulate the speed.

Exercise Step 2: Determine the control system output. For a home air conditioner, the output is the opening and closing of the switch that turns the fan and compressor on and off.   For a car's cruise control, the output is the adjustment of the throttle that causes the car to return to the target speed. In our case, we have just one control output.   This is the voltage connected to the input of the transistor controlling the motor.

Exercise Step 3: Determine the target set point value for example 70 degrees F for your home temperature, or 60 Miles per hour for your car. In our case, the target set point is 2,420 Rpm.

Exercise Step 4: Choose word descriptions for the status of input and output. For a steam engine project, example input: Positive Big Positive Medium Positive Small Almost No Error Negative Small Negative Medium Negative Big

Exercise In our cases, the input can be: Descriptions And, for output: Too slow About right Too fast And, for output: Speed up Not much change needed Slow down

Exercise The rules will be: Rule 1: Rule 2: Rule 3: If the motor is running too slow, then speed it up. Rule 2: If motor speed is about right, then not much change is needed. Rule 3: If motor speed is to fast, then slow it down.

Exercise Step 5: Associate the above inputs and outputs as causes and effect with a Rules Chart Step 6: Derive results in the following regarding voltage to the speed controller Step 7: Determine the output, that is the voltage that will be sent from the controller/signal conditioner/transistor to the speed controlled motor.   Step 8: The next step is to draw "effect" (output determining) triangles with their height "h" determined by the values obtained in Step 7

Exercise Derived results (Step 6): If speed is about right then not much change needed in voltage to the speed controller. If speed is too slow then increase voltage to the speed controller to speed up. If speed is too fast then decrease voltage to the speed controller to slow down.