Introduction to Knowledge-bases

Slides:



Advertisements
Similar presentations
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Advertisements

Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
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.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
CS 460, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
Knoweldge Representation & Reasoning
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 5 Dr Souham Meshoul CAP492.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
Pattern-directed inference systems
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
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.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
지식표현 Agent that reason logically
CSE LOGIC1 Propositional Logic An “adventure game” example Thinking?
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
Wumpus World 1 Wumpus and 1 pile of gold in a pit-filled cave Starts in [1,1] facing right - Random cave Percepts: [smell, breeze, gold, bump, scream]
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Artificial Intelligence Logical Agents Chapter 7.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Propositional Logic: Logical Agents (Part I)
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
Propositional Logic.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 CS121 – Winter 2003.
Computer Science cpsc322, Lecture 20
Knowledge and reasoning – second part
Propositional Logic Session 3
Knowledge Representation
EA C461 – Artificial Intelligence Logical Agent
Learning and Knowledge Acquisition
Artificial Intelli-gence 1: logic agents
Logical Agents Chapter 7 Selected and slightly modified slides from
Artificial Intelligence: Logic agents
Logical Agents Chapter 7.
CSE 4705 Artificial Intelligence
CSE 4705 Artificial Intelligence
Artificial Intelligence
Artificial Intelligence: Logic agents
Knowledge and reasoning – second part
Back to “Serious” Topics…
Logical Agents Chapter 7.
Logical Agents Chapter 7.
Logical Agents Chapter 7 How do we reason about reasonable decisions
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Computer Science cpsc322, Lecture 20
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
CMSC 471 Fall 2011 Class #10 Tuesday, October 4 Knowledge-Based Agents
Problems in AI Problem Formulation Uninformed Search Heuristic Search
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Introduction to Knowledge-bases Knowledge-base Agent Representation, Reasoning and Logic Propositional Logic Syntax & Semantics Inferencing Example: Wumpus World A Propositional logic Knowledge-based Agent for the Wupus World CPSC 533 AI - Knowledge-bases

Knowledge-base Agent Sentences Knowledge Representation Language Background Knowledge KB tell ask/result agent percept Describing a KB... What it knows Knowledge level Logical level How it knows Implementation level Knowledge implementation CPSC 533 AI - Knowledge-bases

Knowledge-base Agent Sentences Knowledge Representation Language Background Knowledge KB sentences inference engine tell ask/result agent percept Describing a KB... What it knows Knowledge level Logical level How it knows Implementation level Knowledge implementation CPSC 533 AI - Knowledge-bases

Representation, Reasoning & Logic Knowledge Representation Languages Express knowledge in a computer-tractable manner. Are described in terms of: Syntax: Configurations to represent sentences. Semantics: Determines sentences meaning. Logic: Language with well-defined syntax and semantics. Inferencing inferencing a agent x sentences x+a sentences world y facts y+d facts CPSC 533 AI - Knowledge-bases

Representation, Reasoning & Logic Inferencing (cont) Process where true sentences are generated, based on existing ones. Characteristics: Process: Truth-preserving / Sound. Sentences: Entailed. sentences entailed sentence Proof Completeness For an Inference Process to be “sound”, it has to comply with the inferencing semantical rules of a language (a.k.a. proof theory) CPSC 533 AI - Knowledge-bases

Representation, Reasoning & Logic Semantics Sentences do not have a meaning: they need to be interpreted. “The sky is blue” vs. “The bird is in the cage”. Characteristics of sentences: Valid: True under all interpretations. Satisfiable: True under some interpretations. Un-satisfiable: False in all worlds. Logics CPSC 533 AI - Knowledge-bases

Propositional Logic Syntax Constants: True, False Symbols: P, Q, ... () Connectives: BNF sentence à atomic_sentence | complex_sentence atomic_sentence à TRUE | FALSE | P | Q | ... complex_sentence à ( sentence ) | sentence connective sentence | Øsentence connective à Ù | Ú | Þ | Û CPSC 533 AI - Knowledge-bases

“A sentence has a meaning derived from its parts.” Propositional Logic Semantics Constants: True = True, False = False Symbols: Not valid, but satisfiable. “A sentence has a meaning derived from its parts.” Truth tables CPSC 533 AI - Knowledge-bases

Propositional Logic Inference Rules a entails b a Modus-Ponens b And-Elimination And-Introduction Or-Introduction Double-Negation Elimination Unit Resolution Resolution a b a Þ b, a b a1 Ù a2 Ù ... Ù an ai a1 , a2 , ... , an a1 Ù a2 Ù ... Ù an ai a1 Ú a2 Ú ... Ú an ØØa a a Ú b, Øb a Ø a Þ b, b Þ g Ø a Þ g CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 òòò Stench Wumpus » Breeze Pit Gold Gold Hunter D start CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 1 2 3 4 » òòò òòò » » » òòò OK » » D OK p - Pit w - Wumpus CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 1 2 3 4 » òòò òòò » » » òòò p? OK » » p? p - Pit w - Wumpus CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 1 2 3 4 » òòò òòò » » » òòò p? OK » » p? p - Pit w - Wumpus CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 1 2 3 4 » òòò òòò » » w! » òòò OK » » D p! p - Pit w - Wumpus CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 1 2 3 4 » òòò òòò » » w! OK » òòò OK » » D p! p - Pit w - Wumpus CPSC 533 AI - Knowledge-bases

Propositional Logic (example) Wumpus World 1 2 3 4 1 2 3 4 » òòò p? òòò » » w! p? » òòò OK » » D p! p - Pit w - Wumpus CPSC 533 AI - Knowledge-bases

Propositional Logic (example) A Propositional logic KB Agent for the Wumpus World 1 2 3 4 » òòò ØS1,1 ØS2,1 S1,2 ØB1,1 B2,1 ØB1,2 R1 : ØS1,1 Þ ØW1,1 Ù ØW1,2 Ù ØW2,1 R2 : ØS2,1 Þ ØW1,1 Ù ØW2,1 Ù ØW2,2 Ù ØW3,1 R3 : ØS1,2 Þ ØW1,1 Ù ØW1,2 Ù ØW2,2 Ù ØW1,3 R4 : S1,2 Þ W1,1 Ú W1,2 Ú W2,2 Ú W1,3 òòò » » 1,3 » òòò 1,2 » » 1,1 2,1 3,1 CPSC 533 AI - Knowledge-bases

Propositional Logic (example) A Propositional logic KB Agent for the Wumpus World 1) Modus Ponens on ØS1,1 and R1 ØW1,1 Ù ØW1,2 Ù ØW2,1 2) And-Elimination ØW1,1 ØW1,2 ØW2,1 3) Modus Ponens on ØS2,1 and R2 ØW1,1 Ù ØW2,1 Ù ØW2,2 Ù ØW3,1 4) And-Elimination ØW1,1 ØW2,1 ØW2,2 ØW3,1 5) Modus Ponens on S1,2 and R4 W1,1 Ú W1,2 Ú W2,2 Ú W1,3 6) Unit Resolution W1,2 Ú W2,2 Ú W1,3 7) Unit Resolution W2,2 Ú W1,3 8) Unit Resolution W1,3 ØS1,1 ØS2,1 S1,2 ØB1,1 B2,1 ØB1,2 R1 : ØS1,1 Þ ØW1,1 Ù ØW1,2 Ù ØW2,1 R2 : ØS2,1 Þ ØW1,1 Ù ØW2,1 Ù ØW2,2 Ù ØW3,1 R3 : ØS1,2 Þ ØW1,1 Ù ØW1,2 Ù ØW2,2 Ù ØW1,3 R4 : S1,2 Þ W1,1 Ú W1,2 Ú W2,2 Ú W1,3 Goal: W1,3 CPSC 533 AI - Knowledge-bases