Chapter 6 Representing Knowledge Using Rules 323-670 Artificial Intelligence ดร. วิภาดา เวทย์ประสิทธิ์ ภาควิชาวิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์ มหาวิทยาลัยสงขลานครินทร์

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

I Am I Am by Heather I am intelligent and athletic I wonder what 6 th grade is like I hear wings flapping I see birds flying in the sky I want a dog of.
Indexing DNA Sequences Using q-Grams
ICE1341 Programming Languages Spring 2005 Lecture #6 Lecture #6 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
UNIT spelling SOFT C – HARD C.
1 Grammars and Parsing Allen ’ s Chapters 3, Jurafski & Martin ’ s Chapters 8-9.
AI Defined Textbook definition:
Artificial Intelligence. AIM Turing –The Turing Machine (a universal computing machine) –Bletchley (Bombe) –The Turing test for AI –Arrested for homosexuality,
Using Rules Chapter 6. 2 Logic Programming (Definite) logic program: A  B 1, B 2, …, B m program clause (Horn) head body  A 1, A 2, …, A n goal clause.
1 AI - Introduction Bertil Ekdahl
1 Chapter 3 Knowledge Representation AI & ESChapter 3 2 Knowledge Representation Semantic Network Network Representation Conceptual Graph Frame.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
CS147 - Terry Winograd - 1 Lecture 14 – Agents and Natural Language Terry Winograd CS147 - Introduction to Human-Computer Interaction Design Computer Science.
1 Pertemuan 8 Representing Knowledge Using Rules Matakuliah: T0264/Inteligensia Semu Tahun: 2005 Versi: 1.
CPSC 322 Introduction to Artificial Intelligence November 10, 2004.
CMSC 723 / LING 645: Intro to Computational Linguistics September 8, 2004: Monz Regular Expressions and Finite State Automata (J&M 2) Prof. Bonnie J. Dorr.
Conversational Agent 1.Two layers: Dialogue manager and Conversational agent. 2.Rule-Based Translator (ELIZA and PARRY) 3. Layer one: Dialogue Manager.
Pattern matching and unification ובקיצור - עליזה יעל נצר בינה מלאכותית מכללת אשקלון.
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
CS 4705 Regular Expressions and Automata in Natural Language Analysis CS 4705 Julia Hirschberg.
CS120: Lecture 17 MP Johnson Hunter
CHA2555 Week2: Knowledge Representation, Logic and Prolog Lee McCluskey First term:
Using Decision Procedures for Program Verification Christopher Lynch Clarkson University.
CPSC 433 Artificial Intelligence CPSC 433 : Artificial Intelligence Tutorials T01 & T02 Andrew “M” Kuipers note: please include.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
The Personal Narrative Speech
Intelligence & Artificial Intelligence You must have a pre-prepared sentence or two to spout about what is a description of intelligence.. And what is.
Spring 2007W. Rhett Davis with minor modification by Dean Brock UNCA ECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 7: Design Example,
1 CSC 550: Introduction to Artificial Intelligence Spring 2004 AI programs  Eliza  knowledge representation  pattern-matching  Predicate Calculus 
Chapter 8 High-Level Programming Languages (modified by Erin Chambers)
Chapter 6.7 Determinants. In this chapter all matrices are square; for example: 1x1 (what is a 1x1 matrix, in fact?), 2x2, 3x3 Our goal is to introduce.
Artificial Intelligence PSY 152 5/17/2007. Preliminary Questions Will this material be on the test? –Yes. Is this material in the textbook? –No. Will.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
April 2008Historical Perspectives on NLP1 Historical Perspectives on Natural Language Processing Mike Rosner Dept Artificial Intelligence
What is Intelligence? Let’s try to define intelligence Definition (Merriam Webster): –Capacity for learning, reasoning, understanding and similar forms.
Production Systems A production system is –a set of rules (if-then or condition-action statements) –working memory the current state of the problem solving,
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
1 Human-Computer Interaction Web Interface & Natural Language.
1 Artificial Intelligence Introduction. 2 What is AI? Various definitions: Building intelligent entities. Getting computers to do tasks which require.
CS 100Lecture 281 CS100J Lecture 27 n Previous Lecture –Interfaces –Comparable –Reflection –super –Re-Reading: n Lewis & Loftus, Section 5.5 n Savitch,
Logic Programming Module 2AIT202 Website Lecturer: Dave Sharp Room: AG15
Artificial Intelligence Programming in Prolog Lecture 1: An Introduction 23/09/04.
Artificial Intelligence Knowledge Representation.
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
CIS2326 Week2: Logic and Prolog Lee McCluskey First term:
Lecture 2CSE Intro to Cognitive Science1 The Turing Test: Simulating Intelligence.
Oral English Foreign Language Class Hello Class Hello, Ms. Vellon.
Introduction to Prolog. Outline What is Prolog? Prolog basics Prolog Demo Syntax: –Atoms and Variables –Complex Terms –Facts & Queries –Rules Examples.
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
Sight Words.
Some Common Interview Questions Exposed Lynn D’Angelo-Bello The Center for Career & Professional Development.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Forward and Backward Chaining
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
1 Pertemuan 8 Representing Knowledge Using Rules Matakuliah: T0264/Inteligensia Semu Tahun: Juli 2006 Versi: 2/1.
1 CSC103: Introduction to Computer and Programming Lecture No 17.
Artificial Intelligence Knowledge Representation.
Definition and Technologies Knowledge Representation.
Review for Test 2 Chapters 5 (start at 5.4), 6.1, , 12, 13, 15.1, Python.
Introduction to Artificial Intelligence
Apostrophes ‘ Why do we have them? When should they be used? Test your
Critical Thinking Critical Thinking is an integrated way of examining information, ideas and proposals. It Involves: Using intelligence and knowledge.
Knowledge Representation
AI Defined Textbook definition:
Knowledge Representation and Inference
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
A User study on Conversational Software
I can tell the products of 6’s facts
Why choose a Certified Residential Specialist®?
INFORMATION RETRIEVAL
Presentation transcript:

Chapter 6 Representing Knowledge Using Rules Artificial Intelligence ดร. วิภาดา เวทย์ประสิทธิ์ ภาควิชาวิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์ มหาวิทยาลัยสงขลานครินทร์

Artificial Intelligence Lecture 19Page 2 Representations  procedural representation  declarative representation man(Marcus) man(Caesar) person(Cleopatra) X : man(X) -> person(X) ? y person(y) y = Cleopatra y = Marcus y = Caesar

Artificial Intelligence Lecture 19Page 3 Logic Programming  x : pet(x)  small(x)  apartmentpet(x)  x : cat(x)  dog(x)  pet(x)  x : poodle(x)  dog(x)  small(x) poodle(fluffy) A Representation in Logic Figure 6.1: Declarative and a Procedural Representation apartmentpet (X) :- pet (X), small (X). pet (X) :- cat (X). pet (X) :- dog (X). dog (X) :- poodle (X). small (X) :- poodle (X). poodle (fluffy). A Representation in PROLOG Fact Rules

Artificial Intelligence Lecture 19Page 4 Matching 1. Indexing : problems: 1. need large number of rules 2. the precondition of rule is not always obvious 2. Matching with variables problems: many-many match problem many rules are matched against many elements in the state description simultaneously. son(X,Y) son(Y,Z) :- grandson(X,Z) 3. Complex and approximate matching

Artificial Intelligence Lecture 19Page 5 Indexing

Artificial Intelligence Lecture 19Page 6 Complex Indexing their precondition approximately match the current situation -> ELIZA Person: Men are all alike. ELIZA: In what way? Person: They’re always bugging us about somethings or other. ELIZA: Can you think of a specific example? Person: Well, my boyfriend made you come here. ELIZA: Your boyfriend made you come here. Person: He says I’m depressed much of the time. ELIZA: I am sorry to hear you depressed. Person: It’s true. I am unhappy. ELIZA: Do you think coming here will help you not to be unhappy? Person: I need some help, that much seems certain. ELIZA: What would it mean to you if you got some help? Person: Perhaps I could learn to get along with my mother. ELIZA Tell me more about your family. Figure 6.6: A Bit of a Dialogue with ELIZA

Artificial Intelligence Lecture 19Page 7 Complex Indexing (X me Y)  (X you Y) (I remember X)  (Why do remember X just now?) (My {family-member} is Y)  (Who else in you family is Y?) (X {family-member} Y)  (Tell me more about your family) Figure 6.7: Some ELIZA-like rules

Artificial Intelligence Lecture 19Page 8 Conflict Resolution 1.Preference based on Rules generalization of rules specific rule (higher priority) Bird can fly Penquin cannot fly. 2.Preference based on Objects based on important object (ELIZA) I : semantic significant everybody : rarely use 3.Preference based on States based on heuristic function

Artificial Intelligence Lecture 19Page 9 Control Knowledge  Knowledge about which parts are most likely to find the goal state.  Knowledge about which rules to apply in a given situation.  Knowledge about the order in which to pursue subgoals.  Knowledge about useful sequence of rules to apply. 1. Long term memory -> Rules 2. Short term memory -> Working memory

Artificial Intelligence Lecture 19Page 10 Control Knowledge Under conditions A and B, Rules that do {not} mention X { at all, in their left-hand side. in their right-hand side.} Will {definitely be useless, probably be useless … probably be especially useful definitely be especially useful} Figure 6.8: Syntax for a Control Rule [Davis, 1980]

Artificial Intelligence Lecture 19Page 11 End Chapter 6