1 Knowledge Representation Introduction KR and Logic.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms Inference in propositional.
Artificial Intelligence
Inference in First-Order Logic
Addition Facts
CS4026 Formal Models of Computation Part II The Logic Model Lecture 1 – Programming in Logic.
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Artificial Intelligence in the 21 st Century S. Lucci / D. Kopec Chapter 5: Logic in Artificial Intelligence 1.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Addition 1’s to 20.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Logic Use mathematical deduction to derive new knowledge.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Logic.
Knowledge Representation
Knowledge Representation
Knowledge Representation Methods
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
1 CA 208 Logic Logic Prof. Josef van Genabith Textbooks:  The Essence of Logic, John Kelly, Prentice Hall, 1997  Prolog Programming, Third Edition, Ivan.
Knowledge Representation I (Propositional Logic) CSE 473.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
Knoweldge Representation & Reasoning
Let remember from the previous lesson what is Knowledge representation
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College, London © Simon Colton.
Knowledge Engineering Second Term Fourth Year 1. Data, Information and Knowledge Data: Data is unprocessed facts and figures without any added interpretation.
Pattern-directed inference systems
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.
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
Propositional Logic Predicate Logic
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
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.
Artificial Intelligence Knowledge Representation.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Lecture 14. Recap Problem Solving GA Simple GA Examples of Mutation and Crossover Application Areas.
Artificial Intelligence Logical Agents Chapter 7.
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.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Knowledge Representation Techniques
Chapter 7. Propositional and Predicate Logic
Propositional Logic Session 3
The Propositional Calculus
Knowledge Representation
Knowledge Representation
Knowledge Representation
Knowledge Representation and Inference
Logic Use mathematical deduction to derive new knowledge.
Back to “Serious” Topics…
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
CSNB234 ARTIFICIAL INTELLIGENCE
ece 720 intelligent web: ontology and beyond
Logical and Rule-Based Reasoning Part I
Habib Ullah qamar Mscs(se)
Presentation transcript:

1 Knowledge Representation Introduction KR and Logic

2 Introduction Assumption of (traditional) AI work is that: Knowledge may be represented as symbol structures (essentially, complex data structures) representing bits of knowledge (objects, concepts, facts, rules, strategies..). E.g., red represents color red. car1 represents my car. red(car1) represents fact that my car is red. Intelligent behavior can be achieved through manipulation of symbol structures

3 Knowledge representation languages Knowledge representation languages have been designed to facilitate this. Rather than use general C++/Java data structures, use special purpose formalisms. A KR language should allow you to: represent adequately the knowledge you need for your problem (representational adequacy) do it in a clear, precise and natural way. allow you to reason on that knowledge, drawing new conclusions.

4 Representational adequacy Consider the following facts: John believes no-one likes sprouts. Most children believe in Santa. John will have to finish his assignment before he can start working on his project. Can all be represented as a string! But hard then to manipulate and draw conclusions. How do we represent these formally in a way that can be manipulated in a computer program? Some notations/languages only allow you to represent certain things. Time, beliefs, uncertainty, all hard to represent.

5 Well-defined syntax/semantics Knowledge representation languages should have precise syntax and semantics. You must know exactly what an expression means in terms of objects in the real world. Representation of facts in World Real World New conclusions Real World Computer Map to KR language Map back to real world Inference

6 Well defined syntax/semantics Suppose we have decided that red1 refers to a dark red color, car1 is my car, car2 is another.. Syntax of language will tell you which of following is legal: red1(car1), red1 car1, car1(red1), red1(car1 & car2)? Semantics of language tells you exactly what an expression means - e.g., Pred(Arg) means that the property referred to by Pred applies to the object referred to by Arg. E.g., property dark red applies to my car.

7 A natural representation scheme? Also helpful if our representation scheme is quite intuitive and natural for human readers! Could represent the fact that my car is red using the notation: xyzzy ! Zing where xyzzy refers to redness, Zing refers to by car, and ! used in some way to assign properties. But this wouldnt be very helpful..

8 Inferential Adequacy Representing knowledge not very interesting unless you can use it to make inferences: Draw new conclusions from existing facts. If its raining John never goes out + Its raining today so.. Come up with solutions to complex problems, using the represented knowledge. Inferential adequacy refers to how easy it is to draw inferences using represented knowledge. Representing everything as natural language strings has good representational adequacy and naturalness, but very poor inferential adequacy.

9 Inferential Efficiency You may be able, in principle, to make complex deductions given knowledge represented in a sophisticated language. But it may be just too inefficient. Generally the more complex the possible deductions, the less efficient will be the reasoner. Need representation and inference system sufficient for the task, without being hopelessly inefficient.

10 Requirements for KR language: Summary Representational Adequacy Clear syntax/semantics Inferential adequacy Inferential efficiency Naturalness In practice no one language is perfect, and different languages are suitable for different problems.

11 Main KR Approaches Logic Frames/Semantic Networks/Objects Rule-based systems

12 Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which supports sound inference. Independent of domain of application. Different logics exist, which allow you to represent different kinds of things, and which allow more or less efficient inference. propositional logic, predicate logic, temporal logic, modal logic, description logic.. But representing some things in logic may not be very natural, and inferences may not be efficient. More specialized languages may be better..

13 Propositional logic In general a logic is defined by syntax: what expressions are allowed in the language. Semantics: what they mean, in terms of a mapping to real world proof theory: how we can draw new conclusions from existing statements in the logic. Propositional logic is the simplest..

14 Propositional Logic: Syntax Symbols (e.g., letters, words) are used to represent facts about the world, e.g., P represents the fact Andrew likes chocolate Q represents the fact Andrew has chocolate These are called atomic propositions Logical connectives are used to represent and:, or:, if-then:, not:. Statements or sentences in the language are constructed from atomic propositions and logical connectives. P Q Andrew likes chocolate and he doesnt have any. P Q If Andrew likes chocolate then Andrew has chocolate

15 Propositional Logic: Semantics What does it all mean? Sentences in propositional logic tell you about what is true or false. P Q means that both P and Q are true. P Q means that either P or Q is true (or both) P Q means that if P is true, so is Q. This is all formally defined using truth tables. X Y X v Y T T T T F T F T T F F F We now know exactly what is meant in terms of the truth of the elementary propositions when we get a sentence in the language (e.g., P => Q v R).

16 Proof Theory How do we draw new conclusions from existing supplied facts? We can define inference rules, which are guaranteed to give true conclusions given true premises. For propositional logic useful one is modus ponens: If A is true and A=> B is true, then conclude B is true. A, A B B

17 Proof Theory and Inference So, let P mean It is raining, Q mean I carry my umbrella. If we know that P is true, and P => Q is true.. We can conclude that Q is true. Note that certain expressions are equivalent think about P => Q and P v Q.

18 More complex rules of inference Other rules of inference can be used, e.g.,: This is essentially the resolution rule of inference, used in Prolog. Consider: What can we conclude? A v B, B v C A v C sunny v raining raining v umbrella

19 Proof Suppose we want to try and prove that a certain proposition is true, given some sentences that are true. It turns out that the resolution rule is sufficient to do this. We put all the sentences into a standard or normal form (replacing A => B with A v B) There is then a standard procedure that lets you determine if the proposition in question is true.

20 Summary Intelligent systems require that we have Knowledge formally represented New inferences/conclusions possible. Formal languages have been developed to support knowledge representation. One important one is the use of logic - very general purpose way to formally represent truths about the world, and draw sound conclusions from these.