For Friday Finish chapter 10 No homework (get started on program 2)

Slides:



Advertisements
Similar presentations
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
Advertisements

Artificial Intelligence Knowledge Representation
Logic Programming Automated Reasoning in practice.
Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Default Reasoning the problem: in FOL, universally-quantified rules cannot have exceptions –  x bird(x)  can_fly(x) –bird(tweety) –bird(opus)  can_fly(opus)
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Converting formulas into a normal form Consider the following FOL formula stating that a brick is an object which is on another object which is not a pyramid,
WFSX programming Prolog programming style, but with the WFSX semantics Requires: –A new proof procedure (different from SLDNF), complying with WFS, and.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
Knowledge Representation
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
1 Knowledge Representation We’ve discussed generic search techniques. Usually we start out with a generic technique and enhance it to take advantage of.
Knowledge Representation and Reasoning (KR): A vibrant subfield of AI Jia You.
For Monday Finish chapter 12 Homework: –Chapter 13, exercises 8 and 15.
Knowledge Representation Formalization of facts about the real world Used for reasoning Ad-hoc or systematic? Comprehensiveness Completeness Ease of use.
For Monday Take home exam due Exam 1. For Wednesday Read chapter 10, sections 1-2 Prolog Handout 4.
CSM6120 Introduction to Intelligent Systems Knowledge representation.
Cs774 (Prasad)L7Negation1 Negation by Failure
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
For Friday Read “lectures” 1-5 of Learn Prolog Now: prolog-now/
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
1 Reasoning in Uncertain Situations 8a 8.0Introduction 8.1Logic-Based Abductive Inference 8.2Abduction: Alternatives to Logic 8.3The Stochastic Approach.
Knowledge Representation & Reasoning.  Introduction How can we formalize our knowledge about the world so that:  We can reason about it?  We can do.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
KNOWLEDGE REPRESENTATION, REASONING AND DECLARATIVE PROBLEM SOLVING Chitta Baral Arizona State University Tempe, AZ
NONMONOTONIC LOGIC AHMED SALMAN MALIK. OVERVIEW Monotonic Logic Nonmonotonic Logic Usage and Applications Comparison with other forms of logic Related.
For Wednesday Read chapter 12, sections 3-5 Program 2 progress due.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
For Wednesday Read chapter 10 Prolog Handout 4. Exam 1 Monday Take home due at the exam.
Alternative representations: Semantic networks
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
Logical Agents Logic Propositional Logic Summary
Temporal Reasoning and Planning in Medicine Frame-Based Representations and Description Logics Yuval Shahar, M.D., Ph.D.
For Wednesday Read “lectures” 7-10 of Learn Prolog Now Chapter 9, exs 4 and 6. –6 must be in Horn clause form Prolog Handout 2.
Structured Knowledge Chapter 7. 2 Logic Notations Does logic represent well knowledge in structures?
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
Semantic Nets, Frames, World Representation CS – W February, 2004.
1 CS 2710, ISSP 2610 Chapter 12 Knowledge Representation.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
For Friday Read Homework: –Chapter 10, exercise 22 I strongly encourage you to tackle this together. You may work in groups of up to 4 people.
Uncertainty in AI. Birds can fly, right? Seems like common sense knowledge.
Knowledge Representation
For Friday Read Chapter 11, sections 1 and 2 Homework: –Chapter 10, exercises 1 and 5.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
For Monday after Spring Break Finish chapter 12 Homework –Chapter 12, exercise 7.
For Monday Exam 1 is Monday Takehome due Prolog Handout 3 due.
1 CS 2710, ISSP 2160 Chapter 12, Part 1 Knowledge Representation.
For Friday No reading Prolog Handout 2. Homework.
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 Frame Theory A vague paradigm - to organize knowledge in high-level structures “A Framework for Representing Knowledge” - Minsky, 1974 Knowledge is encoded.
Definition and Technologies Knowledge Representation.
1 CS 2710, ISSP 2160 Chapter 12 Knowledge Representation.
Limitations of First-Order Logic
Knowledge Representation
For Friday No reading Prolog handout 3 Chapter 9, exercises 9-11.
For Wednesday Read “lectures” 7-10 of Learn Prolog Now:
Knowledge Representation
Knowledge Representation
Weak Slot-and-Filler Structures
Logical reasoning systems
Logical reasoning systems
Presentation transcript:

For Friday Finish chapter 10 No homework (get started on program 2)

Counting Loops Definition of sum/3 sum(Begin, End, Sum) :- sum(Begin, End, Begin, Sum). sum(X, X, Y, Y). sum(Begin, End, Sum1, Sum) :- Begin < End, Next is Begin + 1, Sum2 is Sum1 + Next, sum(Next, End, Sum2, Sum).

The Cut (!) A way to prevent backtracking. Used to simplify and to improve efficiency.

Negation Can’t say something is NOT true Use a closed world assumption Not simply means “I can’t prove that it is true”

Dynamic Predicates A way to write self-modifying code, in essence. Typically just storing data using Prolog’s built-in predicate database. Dynamic predicates must be declared as such.

Using Dynamic Predicates assert and variants retract –Fails if there is no clause to retract retractall –Doesn’t fail if no clauses

Knowledge Representation Issue of what to put in to the knowledge base. What does an agent need to know? How should that content be stored?

Ontology What is an ontology? Why does it matter? What is the difference between a general- purpose ontology and a domain-specific ontology?

Issue 1: Categories Why are categories important? Identifying categories. Predicates or objects? Important terms: –Inheritance –Taxonomy

Categories Membership Subset or subclass Disjoint categories Exhaustive Decomposition Partitions of categories

Other Issues Physical composition Measurement Individuation –Count nouns vs. mass nouns –Intrinsic properties vs. extrinsic properties

Issue 2: Change When an agent performs actions, the situation the agent is in changes. Sometimes need to reason about the situation. Planning

Axioms for Actions Can we do the action? What changes? What stays the same? –The frame problem

An Answer Identify changes to the situation and assume everything else remains the same. Effect axioms become lists of changes.

More than One Agent Keep track of events rather than situations. Have to deal with intervals of time. Have to deal with processes. How do processes differ from discrete events? Objects and their relation to events.

Issue 3: Belief Turning propositions into objects: reification. What is this and why is it necessary? What is the issue of referential transparency vs. referential opaqueness? Special rules for handling belief: –If I believe something, I believe that I believe it. –Need to still provide a way to indicate that two names refer to the same thing.

Knowledge and Belief How are they related? Knowing whether something is true Knowing what

Semantic Networks Use graphs to represent concepts and the relations between them. Simplest networks are ISA hierarchies Must be careful to make a type/token distinction: Garfield isa Cat Cat(Garfield) Cat isa Feline  x (Cat (x)  Feline(x)) Restricted shorthand for a logical representation.

Semantic Nets/Frames Labeled links can represent arbitrary relations between objects and/or concepts. Nodes with links can also be viewed as frames with slots that point to other objects and/or concepts.

First Order Representation Rel(Alive,Animals,T) Rel(Flies,Animals,F) Birds  Animals Mammals  Animals Rel(Flies,Birds,T) Rel(Legs,Birds,2) Rel(Legs,Mammals,4) Penguins  Birds Cats  Mammals Bats  Mammals Rel(Flies,Penguins,F) Rel(Legs,Bats,2) Rel(Flies,Bats,T) Opus  Penguins Bill  Cats Pat  Bats Name(Opus,"Opus") Name(Bill,"Bill") Friend(Opus,Bill) Friend(Bill,Opus) Name(Pat,"Pat")

Inheritance Inheritance is a specific type of inference that allows properties of objects to be inferred from properties of categories to which the object belongs. –Is Bill alive? –Yes, since Bill is a cat, cats are mammals, mammals are animals, and animals are alive. Such inference can be performed by a simple graph traversal algorithm and implemented very efficiently. However, it is basically a form of logical inference  x (Cat(x)  Mammal(x))  x (Mammal(x)  Animal(x))  x (Animal(x)  Alive(x)) Cat(Bill) |- Alive(Bill)

Backward or Forward Can work either way Either can be inefficient Usually depends on branching factors

Semantic of Links Must be careful to distinguish different types of links. Links between tokens and tokens are different than links between types and types and links between tokens and types.

Link Types

Inheritance with Exceptions Information specified for a type gives the default value for a relation, but this may be over­ridden by a more specific type. –Tweety is a bird. Does Tweety fly? Birds fly. Yes. –Opus is a penguin. Does Opus fly? Penguin's don't fly. No.

Multiple Inheritance If hierarchy is not a tree but a directed acyclic graph (DAG) then different inheritance paths may result in different defaults being inherited. Nixon Diamond

Nonmonotonicity In normal monotonic logic, adding more sentences to a KB only entails more conclusions. if KB |- P then KB  {S} |- P Inheritance with exceptions is not monotonic (it is nonmonotonic) –Bird(Opus) –Fly(Opus)? yes –Penguin(Opus) –Fly(Opus)? no

Nonmonotonic logics attempt to formalize default reasoning by allow default rules of the form: –If P and concluding Q is consistent, then conclude Q. –If Bird(X) then if consistent Fly(x)

Defaults with Negation as Failure Prolog negation as failure can be used to implement default inference. fly(X) :­ bird(X), not(ab(X)). ab(X) :­ penguin(X). ab(X) :­ ostrich(X). bird(opus). ? fly(opus). Yes penguin(opus). ? fly(opus). No