Chapter 2: The Representation of Knowledge Expert Systems: Principles and Programming, Fourth Edition Original by Course Technology Modified by Ramin Halavati.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Logic Programming Automated Reasoning in practice.
Logic Use mathematical deduction to derive new knowledge.
Logic.
Knowledge Representation
Knowledge Representation
Knowledge Representation. Essential to artificial intelligence are methods of representing knowledge. A number of methods have been developed, including:
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Chapter 3: Methods of Inference
Let remember from the previous lesson what is Knowledge representation
Chapter 3: Methods of Inference Expert Systems: Principles and Programming, Fourth Edition.
Chapter 2: The Representation of Knowledge
Chapter 2: The Representation of Knowledge Expert Systems: Principles and Programming, Fourth Edition.
Adapted from Discrete Math
Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.
Chapter 3: Methods of Inference
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Methods of Inference. 2 Objectives Learn the definitions of trees, lattices, and graphs Learn about state and problem spaces Learn about AND-OR trees.
Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College, London © Simon Colton.
MATH 224 – Discrete Mathematics
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
Logic in Computer Science - Overview Sep 1, 2011 POSTECH 박성우.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
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.
Structured Knowledge Chapter 7. 2 Logic Notations Does logic represent well knowledge in structures?
Copyright © Curt Hill Mathematical Logic An Introduction.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Machine Learning Chapter 5. Artificial IntelligenceChapter 52 Learning 1. Rote learning rote( โรท ) n. วิถีทาง, ทางเดิน, วิธีการตามปกติ, (by rote จากความทรงจำ.
DISCRETE COMPUTATIONAL STRUCTURES
Copyright © Cengage Learning. All rights reserved.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Chapter 2: The Representation of Knowledge
Knowledge Representation
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
1 Logic Notations Frege’s Begriffsschrift (concept writing) : assert P not P if P then Q for every x, P(x) P P Q P P(x) x.
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
Knowledge Representation
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
CS104:Discrete Structures Chapter 2: Proof Techniques.
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.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Artificial Intelligence Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Chapter 1 Logic and proofs
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Knowledge Representation Techniques
Presented By S.Yamuna AP/CSE
Chapter 3: Methods of Inference
Chapter 7. Propositional and Predicate Logic
Knowledge Representation
The Representation of Knowledge 1 Session 3
Artificial Intelligence
Chapter 3: Methods of Inference
Knowledge Representation
Lecture 2 Propositional Logic
Propositional Logic and Methods of Inference
KNOWLEDGE REPRESENTATION
A Brief Summary for Exam 1
Weak Slot-and-Filler Structures
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
CSNB234 ARTIFICIAL INTELLIGENCE
Semantic Nets and Frames
Foundations of Discrete Mathematics
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Habib Ullah qamar Mscs(se)
Presentation transcript:

Chapter 2: The Representation of Knowledge Expert Systems: Principles and Programming, Fourth Edition Original by Course Technology Modified by Ramin Halavati

Expert Systems: Principles and Programming, Fourth Edition2 Objectives Introduce the study of logic Learn the difference between formal logic and informal logic Learn the meaning of knowledge and how it can be represented Learn about semantic nets Learn about object-attribute-value triples

Expert Systems: Principles and Programming, Fourth Edition3 Objectives Continued See how semantic nets can be translated into Prolog Explore the limitations of semantic nets Learn about schemas Learn about frames and their limitations Learn how to use logic and set symbols to represent knowledge

Expert Systems: Principles and Programming, Fourth Edition4 Objectives Continued Learn about propositional and first order predicate logic Learn about quantifiers Explore the limitations of propositional and predicate logic

Expert Systems: Principles and Programming, Fourth Edition5 What is the study of logic? Logic is the study of making inferences – given a set of facts, we attempt to reach a true conclusion. An example of informal logic is a courtroom setting where lawyers make a series of inferences hoping to convince a jury / judge. Formal logic (symbolic logic) is a more rigorous approach to proving a conclusion to be true / false.

Expert Systems: Principles and Programming, Fourth Edition6 Why is Logic Important We use logic in our everyday lives – “should I buy this car”, “should I seek medical attention”. People are not very good at reasoning because they often fail to separate word meanings with the reasoning process itself. Semantics refers to the meanings we give to symbols.

Expert Systems: Principles and Programming, Fourth Edition7 The Goal of Expert Systems We need to be able to separate the actual meanings of words with the reasoning process itself. We need to make inferences w/o relying on semantics. We need to reach valid conclusions based on facts only.

Expert Systems: Principles and Programming, Fourth Edition8 Knowledge vs. Expert Systems Knowledge representation is key to the success of expert systems. Expert systems are designed for knowledge representation based on rules of logic called inferences. Knowledge affects the development, efficiency, speed, and maintenance of the system.

Expert Systems: Principles and Programming, Fourth Edition9 Arguments in Logic An argument refers to the formal way facts and rules of inferences are used to reach valid conclusions. The process of reaching valid conclusions is referred to as logical reasoning.

Expert Systems: Principles and Programming, Fourth Edition10 How is Knowledge Used? Knowledge has many meanings – data, facts, information. How do we use knowledge to reach conclusions or solve problems? Heuristics refers to using experience to solve problems – using precedents. Expert systems may have hundreds / thousands of micro- precedents to refer to.

Expert Systems: Principles and Programming, Fourth Edition11 Epistemology Epistemology is the formal study of knowledge. Concerned with nature, structure, and origins of knowledge.

Expert Systems: Principles and Programming, Fourth Edition12 Categories of Epistemology PhilosophyA priori A posterioriProcedural DeclarativeTacit

Expert Systems: Principles and Programming, Fourth Edition13 A Priori Knowledge “That which precedes” Independent of the senses Universally true Cannot be denied without contradiction

Expert Systems: Principles and Programming, Fourth Edition14 A Posteriori Knowledge “That which follows” Derived from the senses Now always reliable Deniable on the basis of new knowledge w/o the necessity of contradiction

Expert Systems: Principles and Programming, Fourth Edition15 Procedural Knowledge Knowing how to do something: Fix a watch Install a window Brush your teeth Ride a bicycle

Expert Systems: Principles and Programming, Fourth Edition16 Declarative Knowledge Knowledge that something is true or false Usually associated with declarative statements

Expert Systems: Principles and Programming, Fourth Edition17 Tacit Knowledge Unconscious knowledge Cannot be expressed by language E.g., knowing how to walk, breath, etc.

Expert Systems: Principles and Programming, Fourth Edition18 The Pyramid of Knowledge

Expert Systems: Principles and Programming, Fourth Edition19 Knowledge Types Example Group numbers by twos. Ignore any two-digit number less than 32. Substitute the rest by ASCII equivalent GOLD 438+ If price less than 500 and rising, buy.

Expert Systems: Principles and Programming, Fourth Edition20 Metaknowledge Metaknowledge is knowledge about knowledge and expertise. –Ex. Emotions In an expert system, an ontology is the metaknowledge that describes everything known about the problem domain. Wisdom is the metaknowledge of determining the best goals of life and how to obtain them.

Expert Systems: Principles and Programming, Fourth Edition21 Knowledge Representation Techniques Rules Semantic nets Frames Scripts Logic Conceptual graphs

Expert Systems: Principles and Programming, Fourth Edition22 Productions (Rules) Meta Language, BNF, Pars Tree, … Finite State Machines Hidden Markov Models

Expert Systems: Principles and Programming, Fourth Edition23 Semantic Nets Rooted from Human Associative Memory A classic representation technique for propositional information Propositions – a form of declarative knowledge, stating facts (true/false) Propositions are called “atoms” – cannot be further subdivided. Semantic nets consist of nodes (objects, concepts, situations) and arcs (relationships between them).

Expert Systems: Principles and Programming, Fourth Edition24 Two Types of Nets

Expert Systems: Principles and Programming, Fourth Edition25 Common Types of Links IS-A – relates an instance or individual to a generic class A-KIND-OF – relates generic nodes to generic nodes

Expert Systems: Principles and Programming, Fourth Edition26 Semantic Net Example Living Organism Plant Animal isa ako Fly Swim Penguin Eagle Sparrow walk Cat family Morris Locomotion Eats House CatsMice rodents Fred Mammal … Bird … Locomotion Eats

Expert Systems: Principles and Programming, Fourth Edition27 Semantic Net Example Dog db ako Bite assailant Mail-carrier m ako victim “The dog bit the mail carrier”

Expert Systems: Principles and Programming, Fourth Edition28 Semantic Net Example Johng Give agent Book b ako object Mary beneficiary give(John, Mary, book) “John gives Mary a book”

Expert Systems: Principles and Programming, Fourth Edition29 Semantic Net Example Mammal Person Owen Nose RedLiverpool isa ako has-part uniform color team

Expert Systems: Principles and Programming, Fourth Edition30 Semantic Net Example Dog db ako Bite assailant Mail-carrier m ako victim “Every dog has bitten a mail-carrier” g GS ako form 

Expert Systems: Principles and Programming, Fourth Edition31 Object-Attribute-Value Triple One problem with semantic nets is lack of standard definitions for link names (IS-A, AKO, etc.). The OAV triplet can be used to characterize all the knowledge in a semantic net.

Expert Systems: Principles and Programming, Fourth Edition32 PROLOG and Semantic Nets UniformColor(Owen,Red). Team(Owen, Liverpool) AKO(Owen, Person). HasPart(Person, Nose) ISA(Person, Mammal) Mammal Person Owen Nose RedLiverpool isa ako has-part uniform color team

Expert Systems: Principles and Programming, Fourth Edition33 Problems with Semantic Nets To represent definitive knowledge, the link and node names must be rigorously defined. A solution to this is extensible markup language (XML) and ontologies. Problems also include combinatorial explosion of searching nodes. –Ex. What’s the name of Pluto planet’s football team? Inability to define knowledge the way logic can, and heuristic inadequacy.

Expert Systems: Principles and Programming, Fourth Edition34 Schemata Knowledge Structure – an ordered collection of knowledge – not just data. Semantic Nets – are shallow knowledge structures – all knowledge is contained in nodes and links. Schema is a more complex knowledge structure than a semantic net. In a schema, a node is like a record which may contain data, records, and/or pointers to nodes.

Expert Systems: Principles and Programming, Fourth Edition35 Frames One type of schema is a frame (or script – time- ordered sequence of frames). Frames are useful for simulating commonsense knowledge. Semantic nets provide 2-dimensional knowledge; frames provide 3-dimensional. Frames represent related knowledge about narrow subjects having much default knowledge.

Expert Systems: Principles and Programming, Fourth Edition36

Expert Systems: Principles and Programming, Fourth Edition37 Figure 2.8 A Car Frame

Expert Systems: Principles and Programming, Fourth Edition38 Frame Examples ONE/MORE GOOD FRAME SAMPLES

Expert Systems: Principles and Programming, Fourth Edition39 Frame Examples Animals Alive Flies T F Birds Legs Flies 2 T Mammals Legs 4 Penguins Flies F CatsBats Legs Flies 2 T Opus Name Friend Opus Bill Name Friend Bill Pat Name Pat instance isa

Expert Systems: Principles and Programming, Fourth Edition40 Frames Continued A frame is a group of slots and fillers that defines a stereotypical object that is used to represent generic / specific knowledge. Commonsense knowledge is knowledge that is generally known. Prototypes are objects possessing all typical characteristics of whatever is being modeled. Problems with frames include allowing unrestrained alteration / cancellation of slots.

Expert Systems: Principles and Programming, Fourth Edition41 Logic and Sets Knowledge can also be represented by symbols of logic. Logic is the study of rules of exact reasoning – inferring conclusions from premises. Automated reasoning – logic programming in the context of expert systems.

Expert Systems: Principles and Programming, Fourth Edition42 Forms of Logic Earliest form of logic was based on the syllogism – developed by Aristotle. Syllogisms – have two premises that provide evidence to support a conclusion. Example: –Premise:All cats are climbers. –Premise:Garfield is a cat. –Conclusion:Garfield is a climber.

Expert Systems: Principles and Programming, Fourth Edition43 Venn Diagrams Venn diagrams can be used to represent knowledge. Universal set is the topic of discussion. Subsets, proper subsets, intersection, union, contained in, and complement are all familiar terms related to sets. An empty set (null set) has no elements.

Expert Systems: Principles and Programming, Fourth Edition44 Figure 2.13 Venn Diagrams

Expert Systems: Principles and Programming, Fourth Edition45 Propositional Logic Formal logic is concerned with syntax of statements, not semantics. Syllogism: All goons are loons. Zadok is a goon. Zadok is a loon. The words may be nonsense, but the form is correct – this is a “valid argument.”

Expert Systems: Principles and Programming, Fourth Edition46 Boolean vs. Aristotelian Logic Existential import – states that the subject of the argument must have existence. “All elves wear pointed shoes.” – not allowed under Aristotelian view since there are no elves. Boolean view relaxes this by permitting reasoning about empty sets.

Expert Systems: Principles and Programming, Fourth Edition47 Figure 2.14 Intersecting Sets

Expert Systems: Principles and Programming, Fourth Edition48 Boolean Logic Defines a set of axioms consisting of symbols to represent objects / classes. Defines a set of algebraic expressions to manipulate those symbols. Using axioms, theorems can be constructed. A theorem can be proved by showing how it is derived from a set of axioms.

Expert Systems: Principles and Programming, Fourth Edition49 Other Pioneers of Formal Logic Whitehead and Russell published Principia Mathematica, which showed a formal logic as the basis of mathematics. Gödel proved that formal systems based on axioms could not always be proved internally consistent and free from contradictions.

Expert Systems: Principles and Programming, Fourth Edition50 Features of Propositional Logic Concerned with the subset of declarative sentences that can be classified as true or false. We call these sentences “statements” or “propositions”. Paradoxes – statements that cannot be classified as true or false. Open sentences – statements that cannot be answered absolutely.

Expert Systems: Principles and Programming, Fourth Edition51 Features Continued Compound statements – formed by using logical connectives (e.g., AND, OR, NOT, conditional, and biconditional) on individual statements. Material implication – p  q states that if p is true, it must follow that q is true. Biconditional – p  q states that p implies q and q implies p.

Expert Systems: Principles and Programming, Fourth Edition52 Features Continued Tautology – a statement that is true for all possible cases. Contradiction – a statement that is false for all possible cases. Contingent statement – a statement that is neither a tautology nor a contradiction.

Expert Systems: Principles and Programming, Fourth Edition53 Truth Tables

Expert Systems: Principles and Programming, Fourth Edition54 Universal Quantifier The universal quantifier, represented by the symbol  means “for every” or “for all”. (  x) (x is a rectangle  x has four sides) The existential quantifier, represented by the symbol  means “there exists”. (  x) (x – 3 = 5) Limitations of predicate logic – most quantifier.

Expert Systems: Principles and Programming, Fourth Edition55 Summary We have discussed: –Elements of knowledge –Knowledge representation –Some methods of representing knowledge Fallacies may result from confusion between form of knowledge and semantics. It is necessary to specify formal rules for expert systems to be able to reach valid conclusions. Different problems require different tools.