CPE/CSC 481: Knowledge-Based Systems

Slides:



Advertisements
Similar presentations
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Advertisements

Lecture 4 Fuzzy expert systems: Fuzzy logic
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Fuzzy Inference and Defuzzification
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 SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
CPE/CSC 481: Knowledge-Based Systems
Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser.
© 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.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
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.
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.
9/3/2015Intelligent Systems and Soft Computing1 Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what.
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.
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
“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.
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.
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.
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.
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.
Mathematical basics for general fuzzy systems
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Chapter 7. Propositional and Predicate Logic
Introduction to Fuzzy Logic and Fuzzy Systems
Chapter 8 : Fuzzy Logic.
Artificial Intelligence CIS 342
REASONING WITH UNCERTANITY
Fuzzy Logic and Approximate Reasoning
Artificial Intelligence
Fuzzy Logic and Fuzzy Sets
Artificial Intelligence and Adaptive Systems
Chap 3: Fuzzy Rules and Fuzzy Reasoning
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
Chapter 7. Propositional and Predicate Logic
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Fuzzy Inference Systems
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
Introduction to Fuzzy Set Theory
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

CPE/CSC 481: Knowledge-Based Systems Franz J. Kurfess Computer Science Department California Polytechnic State University San Luis Obispo, CA, U.S.A.

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

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

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

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

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

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

Problems of Approximate Reasoning non-monotonicity inconsistencies in the knowledge base may arise as new sentences are added sometimes remedied by truth maintenance systems semantic status of rules default rules often are false technically efficiency although some decisions are quick, such systems can be very slow especially when truth maintenance is used Franz Kurfess: Reasoning 13

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

Fuzzy Logic in Entertainment Franz Kurfess: Reasoning 15

Franz Kurfess: Reasoning Get Fuzzy Franz Kurfess: Reasoning 16

Franz Kurfess: Reasoning 17

Franz Kurfess: Reasoning Powerpuff Girls episode Fuzzy Logic: Beastly bumpkin Fuzzy Lumpkins goes wild in Townsville and only the Powerpuff Girls—with some help from a flying squirrel—can teach him to respect other people's property.  http://en.wikipedia.org/wiki/Fuzzy_Logic_(Powerpuff_Girls_episode) http://www.templelooters.com/powerpuff/PPG4.htm Franz Kurfess: Reasoning 18

Franz Kurfess: Reasoning Fuzzy Sets categorization of elements xi into a set S described through a membership function μ(s) : x → [0,1] associates each element xi with a degree of membership in S: 0 = no membership 1 = full membership values in between indicate how strongly an element is affiliated with the set Franz Kurfess: Reasoning 19

Franz Kurfess: Reasoning Fuzzy Set Example membership tall short medium 1 0.5 height (cm) 50 100 150 200 250 Franz Kurfess: Reasoning 20

Franz Kurfess: Reasoning Fuzzy vs. Crisp Set membership medium tall short 1 0.5 height (cm) 50 100 150 200 250 Franz Kurfess: Reasoning 21

Fuzzy Logic Temperature http://commons.wikimedia.org/wiki/File:Warm_fuzzy_logic_member_function.gif Franz Kurfess: Reasoning 22

Franz Kurfess: Reasoning Possibility Measure degree to which an individual element x is a potential member in the fuzzy set S Poss{x∈S} combination of multiple premises with possibilities various rules are used a popular one is based on minimum and maximum Poss(A ∧ B) = min(Poss(A),Poss(B)) Poss(A ∨ B) = max(Poss(A),Poss(B)) Franz Kurfess: Reasoning 23

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

Franz Kurfess: Reasoning Fuzzification extension principle defines how a value, function or set can be represented by a corresponding fuzzy membership function extends the known membership function of a subset to a specific value a function the full set function f: X → Y membership function μA for a subset A ⊆ X extension μf(A) ( f(x) ) = μA(x) Franz Kurfess: Reasoning [Kasabov 1996] 25

Franz Kurfess: Reasoning De-fuzzification converts a fuzzy output variable into a single- value variable widely used methods are center of gravity (COG) finds the geometrical center of the output variable mean of maxima calculates the mean of the maxima of the membership function Franz Kurfess: Reasoning [Kasabov 1996] 27

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

Franz Kurfess: Reasoning Fuzzy Probability describes probabilities that are known only imprecisely e.g. fuzzy qualifiers like very likely, not very likely, unlikely integrated with fuzzy logic based on the qualification translation rules derived from Lukasiewicz logic multi-valued logic Franz Kurfess: Reasoning 29

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

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

Example Fuzzy Reasoning 1 bank loan decision case problem 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 ) Franz Kurfess: Reasoning [Kasabov 1996] 32

Example Fuzzy Reasoning 2 tables for fuzzy set definitions CScore 150 155 160 165 170 175 180 185 190 195 200 high 0.2 0.7 1 low 0.8 0.5 CCredit 1 2 3 4 5 6 7 8 9 10 good_cc 0.7 0.3 bad_cc CRatio 0.1 0.3 0.4 0.41 0.42 0.43 0.44 0.45 0.5 0.7 1 good_cc bad_cc Decision 1 2 3 4 5 6 7 8 9 10 approve 0.3 0.7 disapprove Franz Kurfess: Reasoning [Kasabov 1996] 33

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

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

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

Franz Kurfess: Reasoning 39