Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser.

Slides:



Advertisements
Similar presentations
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
Advertisements

AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Fuzzy Inference and Defuzzification
Logic.
CLASSICAL LOGIC and FUZZY LOGIC. CLASSICAL LOGIC In classical logic, a simple proposition P is a linguistic, or declarative, statement contained within.
Chapter 14.7 Russell & Norvig. Fuzzy Sets  Rules of thumb frequently stated in “fuzzy” linguistic terms. John is tall. If someone is tall and well-built.
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.
Fuzzy Sets and Fuzzy Logic Chapter 12 M. Tim Jones See also
CPE/CSC 481: Knowledge-Based Systems
© C. Kemke Approximate Reasoning 1 COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
© Franz J. Kurfess Approximate Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Fuzzy Expert System.
Fuzzy Logic.
1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Approximate Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Fuzzy Medical Image Segmentation
Chapter 18 Fuzzy Reasoning.
Let remember from the previous lesson what is Knowledge representation
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.
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.
Ming-Feng Yeh General Fuzzy Systems A fuzzy system is a static nonlinear mapping between its inputs and outputs (i.e., it is not a dynamic system).
Introduction to Fuzzy Logic Control
Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems (sections 2.7, 2.8,
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
Fuzzy Logic. Lecture Outline Fuzzy Systems Fuzzy Sets Membership Functions Fuzzy Operators Fuzzy Set Characteristics Fuzziness and Probability.
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Expert Systems. 2 Motivation On vagueness “Everything is vague to a degree you do not realise until you have tried to make it precise.” Bertrand.
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
A Probabilistic Quantifier Fuzzification Mechanism: The Model and Its Evaluation for Information Retrieval Felix Díaz-Hemida, David E. Losada, Alberto.
Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
Theory and Applications
Fuzzy Inference Systems. Fuzzy inference (reasoning) is the actual process of mapping from a given input to an output using fuzzy logic. The process involves.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Chapter 13 Fuzzy Logic 1. Handling Uncertainty Probability-based approach and Bayesian theory Certainty factor and evidential reasoning Fuzzy logic 2.
Chapter 6 - Basic Similarity Topics
AI Fuzzy Systems. History, State of the Art, and Future Development Sde Seminal Paper “Fuzzy Logic” by Prof. Lotfi Zadeh, Faculty in Electrical.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
1 Lecture 4 The Fuzzy Controller design. 2 By a fuzzy logic controller (FLC) we mean a control law that is described by a knowledge-based system consisting.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
Fuzzy Relations( 關係 ), Fuzzy Graphs( 圖 形 ), and Fuzzy Arithmetic( 運算 ) Chapter 4.
Dinner for Two. Fuzzify Inputs Apply Fuzzy Operator.
Fuzzy Logic for Social Simulation using NetLogo UNIVERSITY OF BURGOS UNIVERSITY OF VALLADOLID UNIVERSITY OF WESTERN AUSTRALIA Marcos Almendres, Luis R.
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
REASONING WITH UNCERTANITY
CPE/CSC 481: Knowledge-Based Systems
Fuzzy Logic and Approximate Reasoning
Artificial Intelligence
Fuzzy Logic and Fuzzy Sets
Artificial Intelligence and Adaptive Systems
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
CLASSICAL LOGIC and FUZZY LOGIC
Dr. Unnikrishnan P.C. Professor, EEE
FUZZIFICATION AND DEFUZZIFICATION
Dr. Unnikrishnan P.C. Professor, EEE
Introduction to Fuzzy Set Theory
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser

Approximate Reasoning 2 Overview Approximate Reasoning u Motivation u Objectives u Approximate Reasoning u Variation of Reasoning with Uncertainty u Commonsense Reasoning u Fuzzy Logic u Fuzzy Sets and Natural Language u Membership Functions u Linguistic Variables u Important Concepts and Terms u Chapter Summary

Approximate Reasoning 3 Motivation u reasoning for real-world problems involves missing knowledge, inexact knowledge, inconsistent facts or rules, and other sources of uncertainty u while traditional logic in principle is capable of capturing and expressing these aspects, it is not very intuitive or practical u explicit introduction of predicates or functions u many expert systems have mechanisms to deal with uncertainty u sometimes introduced as ad-hoc measures, lacking a sound foundation

Approximate Reasoning 4 Objectives u be familiar with various approaches to approximate reasoning u understand the main concepts of fuzzy logic u fuzzy sets u linguistic variables u fuzzification, defuzzification u fuzzy inference u evaluate the suitability of fuzzy logic for specific tasks u application of methods to scenarios or tasks u apply some principles to simple problems

Approximate Reasoning 5 Approximate Reasoning u inference of a possibly imprecise conclusion from possibly imprecise premises u useful in many real-world situations u one of the strategies used for “common sense” reasoning u frequently utilizes heuristics u especially successful in some control applications u often used synonymously with fuzzy reasoning u although formal foundations have been developed, some problems remain

Approximate Reasoning 6 Approaches to Approximate Reasoning u fuzzy logic u reasoning based on possibly imprecise sentences u default reasoning u in the absence of doubt, general rules (“defaults) are applied u default logic, nonmonotonic logic, circumscription u analogical reasoning u conclusions are derived according to analogies to similar situations

Approximate Reasoning 7 Advantages of Approximate Reasoning u common sense reasoning u allows the emulation of some reasoning strategies used by humans u concise u can cover many aspects of a problem without explicit representation of the details u quick conclusions u can sometimes avoid lengthy inference chains

Approximate Reasoning 8 Problems of Approximate Reasoning u nonmonotonicity u inconsistencies in the knowledge base may arise as new sentences are added u sometimes remedied by truth maintenance systems u semantic status of rules u default rules often are false technically u efficiency u although some decisions are quick, in general such systems are very slow v especially when truth maintenance is used

Approximate Reasoning 9 Fuzzy Logic u approach to a formal treatment of uncertainty u relies on quantifying and reasoning through natural language u linguistic variables v used to describe concepts with vague values u fuzzy qualifiers v a little, somewhat, fairly, very, really, extremely u fuzzy quantifiers v almost never, rarely, often, frequently, usually, almost always v hardly any, few, many, most, almost all

Approximate Reasoning 10 Fuzzy Sets u categorization of elements x i into a set S u described through a membership function  (s) :x  [0,1] v associates each element x i with a degree of membership in S: 0 means no, 1 means full membership v values in between indicate how strongly an element is affiliated with the set

Approximate Reasoning 11 Fuzzy Set Example membership height (cm) shortmedium tall

Approximate Reasoning 12 Fuzzy vs. Crisp Set membership height (cm) short medium tall

Approximate Reasoning 13 Possibility Measure u degree to which an individual element x is a potential member in the fuzzy set S Poss{x  S} u combination of multiple premises with possibilities u various rules are used u a popular one is based on minimum and maximum v Poss(A  B) = min(Poss(A),Poss(B)) v Poss(A  B) = max(Poss(A),Poss(B))

Approximate Reasoning 14 Possibility vs.. Probability u possibility refers to allowed values u probability expresses expected occurrences of events u Example: rolling dice u X is an integer in U = {2,3,4,5,6,7,8,9,19,11,12} u probabilities p(X = 7) = 2*3/36 = 1/6 7 = 1+6 = 2+5 = 3+4 u possibilities Poss{X = 7} = 1 the same for all numbers in U

Approximate Reasoning 15 Fuzzification u the extension principle defines how a value, function or set can be represented by a corresponding fuzzy membership function u extends the known membership function of a subset to a specific value, or a function, or the full set function f: X  Y membership function  A for a subset A  X extension  f(A) ( f(x) ) =  A (x) [Kasabov 1996]

Approximate Reasoning 16 Fuzzification Example u function f(x) = (x-1) 2 u known samples for membership function “about 2” u membership function of f(“about 2”) x f(x) “about 2” x 1234 f(x) 0149 f (“about 2”) [Kasabov 1996]

Approximate Reasoning 17 Defuzzification u converts a fuzzy output variable into a single-value variable u widely used methods are u center of gravity (COG) v finds the geometrical center of the output variable u mean of maxima v calculates the mean of the maxima of the membership function [Kasabov 1996]

Approximate Reasoning 18 Fuzzy Logic Translation Rules u describe how complex sentences are generated from elementary ones u modification rules u introduce a linguistic variable into a simple sentence v e.g. “John is very tall” u composition rules u combination of simple sentences through logical operators v e.g. condition (if... then), conjunction (and), disjunction (or) u quantification rules u use of linguistic variables with quantifiers v e.g. most, many, almost all u qualification rules u linguistic variables applied to truth, probability, possibility v e.g. very true, very likely, almost impossible

Approximate Reasoning 19 Fuzzy Probability u describes probabilities that are known only imprecisely u e.g. fuzzy qualifiers like very likely, not very likely, unlikely u integrated with fuzzy logic based on the qualification translation rules v derived from Lukasiewicz logic

Approximate Reasoning 20 Fuzzy Inference Methods u how to combine evidence across fuzzy rules u Poss(B|A) = min(1, (1 - Poss(A)+ Poss(B))) v implication according to Max-Min inference u also Max-Product inference and other rules u formal foundation through Lukasiewicz logic v extension of binary logic to infinite-valued logic

Approximate Reasoning 21 Fuzzy Inference Rules u principles that allow the generation of new sentences from existing ones u the general logical inference rules (modus ponens, resolution, etc) are not directly applicable u examples u entailment principle u compositional rule X,Y are elements F, G, R are relations X is F F  G X is G X is F (X,Y) is R Y is max(F,R)

Approximate Reasoning 22 Example Fuzzy Reasoning 1 u bank loan decision case problem u represented as a set of two rules with tables for fuzzy set definitions  fuzzy variables CScore, CRatio, CCredit, Decision  fuzzy values high score, low score, good_cc, bad_cc, good_cr, bad_cr, approve, disapprove Rule 1: If (CScore is high) and (CRatio is good_cr) and (CCredit is good_cc) then (Decision is approve) Rule 2: If (CScore is low) and (CRatio is bad_cr) or (CCredit is bad_cc) then (Decision is disapprove ) [Kasabov 1996]

Approximate Reasoning 23 Example Fuzzy Reasoning 2 u tables for fuzzy set definitions [Kasabov 1996] CScore high low CCredit good_cc bad_cc CRatio good_cc bad_cc Decision approve disapprove

Approximate Reasoning 24 Advantages and Problems of Fuzzy Logic u advantages u foundation for a general theory of commonsense reasoning u many practical applications u natural use of vague and imprecise concepts u hardware implementations for simpler tasks u problems u formulation of the task can be very tedious u membership functions can be difficult to find u multiple ways for combining evidence u problems with long inference chains u efficiency for complex tasks

Approximate Reasoning 25 Important Concepts and Terms u approximate reasoning u common-sense reasoning u crisp set u default reasoning u defuzzification u extension principle u fuzzification u fuzzy inference u fuzzy rule u fuzzy set u fuzzy value u fuzzy variable u imprecision u inconsistency u inexact knowledge u inference u inference mechanism u knowledge u linguistic variable u membership function u non-monotonic reasoning u possibility u probability u reasoning u rule u uncertainty

Approximate Reasoning 26 Summary Approximate Reasoning u attempts to formalize some aspects of common- sense reasoning u fuzzy logic utilizes linguistic variables in combination with fuzzy rules and fuzzy inference in a formal approach to approximate reasoning u allows a more natural formulation of some types of problems u successfully applied to many real-world problems u some fundamental and practical limitations v semantics, usage, efficiency