Knowledge based Agents

Similar documents
Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Artificial Intelligence. Propositional logic

Inference in Propositional Logic

Advanced Topics in LP and FP

Logical Agent & Propositional Logic

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Logical Agents (I) Instructor: Tsung-Che Chiang

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Learning Goals of CS245 Logic and Computation

Logical Agent & Propositional Logic

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Intelligent Agents. Pınar Yolum Utrecht University

Logic: Propositional Logic (Part I)

Logic and Inferences

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

Propositional Logic: Review

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Logical Agents. Outline

Artificial Intelligence Chapter 7: Logical Agents

Proof Methods for Propositional Logic

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Deliberative Agents Knowledge Representation I. Deliberative Agents

Propositional logic II.

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Logical Agents. Chapter 7

Propositional Logic Part 1

Logical Agents. September 14, 2004

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

CS 380: ARTIFICIAL INTELLIGENCE

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Deductive Systems. Lecture - 3

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Introduction to Intelligent Systems

Introduction to Intelligent Systems

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

Inference Methods In Propositional Logic

CS 771 Artificial Intelligence. Propositional Logic

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

22c:145 Artificial Intelligence

Language of Propositional Logic

Artificial Intelligence Knowledge Representation I

Logical agents. Chapter 7. Chapter 7 1

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Class Assignment Strategies

Artificial Intelligence

Artificial Intelligence

Inference Methods In Propositional Logic

7. Logical Agents. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Knowledge base. Models and Planning. Russell & Norvig, Chapter 7.

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Propositional Logic: Logical Agents (Part I)

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Propositional Reasoning

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Agents that reason logically

CS 730/730W/830: Intro AI

Propositional Logic: Methods of Proof. Chapter 7, Part II

CS 7180: Behavioral Modeling and Decision- making in AI

Natural Deduction for Propositional Logic

Propositional Logic: Methods of Proof (Part II)

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Logical agents. Chapter 7. Chapter 7 1

CSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9

Agenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World

Propositional and First-Order Logic

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

Propositional Logic: Methods of Proof (Part II)

TDT4136 Logic and Reasoning Systems

CS 188: Artificial Intelligence Spring 2007

Kecerdasan Buatan M. Ali Fauzi

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz )

02 Propositional Logic

CS:4420 Artificial Intelligence

Revised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1

Propositional Logic: Models and Proofs

Inference in first-order logic

Introduction to Artificial Intelligence. Logical Agents

Logic. proof and truth syntacs and semantics. Peter Antal

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Propositional Logic: Logical Agents (Part I)

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Logical Agents. Santa Clara University

Propositional Logic. Spring Propositional Logic Spring / 32

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

Propositional Resolution Introduction

AI Programming CS S-09 Knowledge Representation

Transcription:

Knowledge based Agents Shobhanjana Kalita Dept. of Computer Science & Engineering Tezpur University Slides prepared from Artificial Intelligence A Modern approach by Russell & Norvig

Knowledge Based Agents Agents that can form representations of the would, use a process of inference to derive new representations about the world, and use these new representations to deduce what to do Knowledge representation and reasoning In partially observable environments, a knowledge-based agent In partially observable environments, a knowledge-based agent can combine general knowledge with current percepts to infer hidden aspects of the current state prior to selecting actions E.g. A doctor using knowledge and experience to infer disease, understanding natural language, etc Problem-solving agents use knowledge that is very specific and inflexible

Knowledge Based Models Data, Information, Knowledge Data: Unprocessed facts Information: Interpreted data so that it has some meaning Knowledge: Combination of various information using logical reason/inference Symbol-system hypothesis: Knowledge can be captured as symbol-structures and intelligent behavior can be achieved through manipulation (reasoning/inference) of such symbolstructures Red: represents the colour red my_car: represents my car Red(my_car): represents the colour of my car is red

Knowledge Based Models Inference is the process of deriving new knowledge from existing knowledge The set of existing knowledge is called the knowledge-base (KB) of the agent. Set of sentences A sentence represents some assertion/truth of the world in a knowledge representation language Examples, Questions Answers Statements Inference Mechanism Learning Mechanism Knowledge Base

Knowledge Base A knowledge base contains facts/information about the world using a knowledge representation language Abi is an elephant (specific knowledge/facts) All elephants are grey in colour (general knowledge/rules) Elephants are mammals (general knowledge/rules) Inference: Abi is a mammal Question: Is Abi red in color? Answer: No

KR language A KR language should be able to Represent adequately the knowledge for the problem (representational adequacy) Use proper syntax that has clear and precise semantics Reason on that knowledge, drawing new conclusions Example: Propositional Logic Predicate Logic/ First Order Logic

Propositional Logic: Syntax Propositional Logic allows knowledge to be represented in the form symbols in the simplest manner Syntax: Atomic sentences corresponding to some assertion in a possible world or model, are assigned a single propositional symbol Such atomic sentences are also called propositions that can be either true or false A = Abi is an elephant B = Abi is pink in colour Complex sentences are constructed from atomic sentences using logical connectives

PL: Logical Connectives Syntax: Logical Connectives (not): A literal is either an atomic sentence (a positive literal) or a negated atomic sentence (a negative literal). E.g.: A, B etc (and): Several literals can be combined with an and operator to form a conjunction. In order for a conjunction to be true, all of its literals have to be true. E.g. A B (or): Several literals can be combined with an and operator to form a conjunction. In order for a conjunction to be true, all of its literals have to be true. E.g. A B (implies): An implication (or conditional) of the form P Q says that if its premise/antecedent (P) is true then its conclusion/consequent(q) must be true. Implications are similar to if-then rule. E.g. A B (bi-conditional): A biconditional P Q is true if P Q is true and Q P is true

PL: Well-formed Formulae The formal grammar of propositional logic that describes what type of sentences are valid/well-formed:

PL: Semantics A model fixes the truth value - true or false - for every proposition symbol The semantics for propositional logic specify how to compute the truth value of any atomic/complex sentence, given a model The rules for computing the truth value when using connectives The rules for computing the truth value when using connectives is specified using truth tables

PL: Inference A Knowledge Base is a conjunction of atomic/complex sentence The aim of logical inference is to decide whether KB α (KB entails α ) for some sentence α If the set of statements in the KB is true given some model than α will always be true for that model An inference algorithm that derives only entailed sentences is called sound An inference algorithm that can derive any sentence that is entailed is called complete A sentence is satisfiable if it is true in some model. KB α if and only if the sentence (KB α ) is unsatisfiable. Proof by refutation or proof by contradiction is often used to answer questions in knowledge based systems

PL: Reasoning or Inference Rules The following inference rules can be used to prove that KB α, for some sentence α Proof by refutation: This is done by showing KB α is unsatisfiable Rule Premise Conclusion Modus Ponens A, A B B And Introduction A, B A B And Elimination A B A Double Negation A A Unit Resolution A B, B A Resolution A B, B C A C

PL: Resolution Refutation In order to prove some sentence α is True (entailed by a KB), an inference mechanism called resolution refutation is used. Convert all rules in the KB to Conjunctive Normal Form (CNF): write every rule in KB as a conjunction of disjunctions Due to And Elimination, each conjunctive part can be treated as a sentence in the KB Negate the desired conclusion (α) and convert to CNF Apply resolution rule until either The rule cannot be applied anymore indicating that α cannot be proved Derive a FALSE i.e. a contradiction is derived indicating α is not true

PL: Resolution Refutation Example: Converting to CNF (p q) (p r) ((p q) (p r)) ((p r) (p q)) ( (p q) (p r)) ( (p r) (p q)) ((p q) ( p r)) ((p r) ( p q)) (((p p) ( q p)) r) (((p p) ( r p)) q) ( q p r) ( r p q) ( q p r) and ( r p q) are clauses By And Elimination ( q p r) and ( r p q) are part of the KB

PL: Resolution Refutation Given a KB: p q r q Convert KB and α to CNF KB: p q r q α: p r Include α to the KB KB: p q r q p r To prove (α): p r Apply resolution wherever possible α: (p r )

PL: Resolution Refutation p q p q r q r r CONTRADICTION: Therefore α is unsatisfiable, that is: KB α