Knowledge Representation

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

1 Knowledge Representation Introduction KR and Logic.
First-Order Logic Chapter 8.
Knowledge Representation
Artificial Intelligence Knowledge Representation
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
CSE & CSE6002E - Soft Computing Winter Semester, 2011 Key Ideas of Knowledge Representation Ontology Ontological Engineering FOL and Categories.
Knowledge Representation
For Monday Finish chapter 12 Homework: –Chapter 13, exercises 8 and 15.
Knowledge Representation AIMA 2 nd Ed. Chapter 10.
1 Berendt: Advanced databases, first semester 2008, 1 Advanced databases – Conceptual modelling.
For Friday Finish chapter 10 No homework (get started on program 2)
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Knowledge Representation COMP 151 March 28, 2007 Based slides by B.J. Dorr as modified by Tom Lenaerts.
Semantics For the Semantic Web: The Implicit, the Formal and The Powerful Amit Sheth, Cartic Ramakrishnan, Christopher Thomas CS751 Spring 2005 Presenter:
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
Dr. Samy Abu Nasser Faculty of Engineering & Information Technology Artificial Intelligence.
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
Of 39 lecture 2: ontology - basics. of 39 ontology a branch of metaphysics relating to the nature and relations of being a particular theory about the.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
1 Chapter 10 Knowledge Representation. 2 KR previous chapters: syntax, semantics, and proof theory of propositional and first-order logic Chapter 10:
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
An Introduction to Description Logics (chapter 2 of DLHB)
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
1 CS 2710, ISSP 2160 The Situation Calculus KR and Planning Some final topics in KR.
1 CS 2710, ISSP 2610 Chapter 12 Knowledge Representation.
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?
Knowledge Representation. Keywordsquick way for agents to locate potentially useful information Thesaurimore structured approach than keywords, arranging.
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
For Monday after Spring Break Finish chapter 12 Homework –Chapter 12, exercise 7.
1 CS 2710, ISSP 2160 Chapter 12, Part 1 Knowledge Representation.
Lecture 8-2CS250: Intro to AI/Lisp What do you mean, “What do I mean?” Lecture 8-2 November 18 th, 1999 CS250.
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.
Knowledge Representation. So far... The previous chapters described the technology for knowledge-based agents: – the syntax, semantics, and proof theory.
Artificial Intelligence Knowledge Representation.
1 CS 2710, ISSP 2160 Chapter 12 Knowledge Representation.
Knowledge Representation Part I Ontology Jan Pettersen Nytun Knowledge Representation Part I, JPN, UiA1.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
First-Order Logic Knowledge Representation
ece 720 intelligent web: ontology and beyond
ece 627 intelligent web: ontology and beyond
Knowledge Representation
Ontology From Wikipedia, the free encyclopedia
Knowledge Representation
Knowledge Representation
Artificial Intelligence (CS 370D)
Knowledge Representation
Learning and Knowledge Acquisition
Relational Algebra 461 The slides for this text are organized into chapters. This lecture covers relational algebra, from Chapter 4. The relational calculus.
Planning in Answer Set Programming
The Situation Calculus KR and Planning Some final topics in KR
Introduction to Situation Calculus
KNOWLEDGE REPRESENTATION
Artificial Intelligence I: knowledge repre- sentation
Knowledge and reasoning – second part
Chapter 11 user support.
Knowledge Representation I (Propositional Logic)
Artificial Intelligence Chapter 21. The Situation Calculus
Artificial Intelligence I: knowledge repre- sentation
Knowledge Representation
Deniz Beser A Fundamental Tradeoff in Knowledge Representation and Reasoning Hector J. Levesque and Ronald J. Brachman.
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
Habib Ullah qamar Mscs(se)
Presentation transcript:

Knowledge Representation Chapter 12

Outline Ontological engineering Categories and objects Actions, situations and events The internet shopping world Reasoning systems for categories Reasoning with default information Truth maintenance systems

Ontology An ontology consists of a set of concepts, axioms, and relationships that describe a domain of interest. Ontological Engineering Create more general and flexible representations - Concepts like actions, time, physical object and beliefs - Operates on a bigger scale than K.E.

Upper ontology Limited to concepts that are meta, generic, abstract and philosophical, and therefore are general enough to address (at a high level) a broad range of domain areas. Provides a structure and a set of general concepts upon which domain specific ontologies (e.g. medical, financial, engineering, etc.) could be constructed.

In an ontology, what do we need to express? Categories, Measures, Composite objects, Time, Space, Change, Events, Processes, Physical Objects, Substances, Mental Objects, Beliefs

Categories and objects KR requires the organization of objects into categories Interaction at the level of the object Reasoning at the level of categories Categories play a role in predictions about objects Based on perceived properties Category = set of its members

Category organization Relation = inheritance: All instances of food are edible, fruit is a subclass of food and apples is a subclass of fruit then an apple is edible. Defines a taxonomy

FOL and categories An object is a member of a category MemberOf(BB,Basketballs) A category is a subclass of another category SubsetOf(Basketballs,Balls) All members of a category have some properties  x (MemberOf(x,Basketballs)  Round(x)) All members of a category can be recognized by some properties  x (Orange(x)  Round(x)  Diameter(x)=9.5in  MemberOf(x,Balls)  MemberOf(x,BasketBalls)) A category as a whole has some properties MemberOf(sheeps,DomesticatedSpecies)

Relations between categories Two or more categories are disjoint if they have no members in common: Disjoint(s)( c1,c2 c1  s  c2  s  c1 ¹ c2  Intersection(c1,c2) ={}) Example: Disjoint({animals, vegetables}) A set of s categories constitutes an exhaustive decomposition of a category c if all members of the set c are covered by categories in s: E.D.(s,c)  ( i i  c   c2 c2  s  i  c2) ExhaustiveDecomposition({Americans, Canadians, Mexicans},NorthAmericans).

Relations between categories A partition is a disjoint exhaustive decomposition: Partition(s,c)  Disjoint(s)  E.D.(s,c) Example: Partition({Males,Females},Persons) Is ({Americans,Canadians, Mexicans},NorthAmericans) a partition? Categories can be defined by providing necessary and sufficient conditions for membership  x Bachelor(x)  Male(x)  Adult(x)  Unmarried(x)

Natural kinds Many categories have no clear-cut definitions (chair, bush, book). Tomatoes: sometimes green, red, yellow, black, mostly round. One solution: category Typical(Tomatoes)  x, x  Typical(Tomatoes)  Red(x)  Spherical(x) We can write down useful facts about categories without providing exact definitions

Physical composition One object may be part of another: PartOf(Bucharest,Romania) PartOf(Romania,EasternEurope) PartOf(EasternEurope,Europe) The PartOf predicate is transitive (and irreflexive), so we can infer that PartOf(Bucharest,Europe) More generally:  x PartOf(x,x)  x,y,z PartOf(x,y)  PartOf(y,z)  PartOf(x,z)

Physical composition Often characterized by structural relations among parts. E.g. Biped(a) 

Measurements Objects have height, mass, cost, .... Values that we assign to these are measures Some measures have no scale: Beauty, Difficulty, etc. Most important aspect of measures: is that they are orderable. Don't care about the actual numbers. (An apple can have deliciousness .9 or .1.)

Actions, events and situations Reasoning about outcome of actions is central to KB-agent. How can we keep track of locations in FOL? Representing time by situations (states resulting from the execution of actions). Situation calculus

Actions, events and situations Situation calculus: Actions are logical terms Situations are logical terms consiting of The initial situation I All situations resulting from the action on a situation Result(a,s) Fluents are functions and predicates that vary from one situation to the next. E.g. Holding(G1, S0) Eternal predicates are also allowed E.g. Gold(G1)

Actions, events and situations Results of action sequences are determined by the individual actions. Projection task: an SC agent should be able to deduce the outcome of a sequence of actions. Planning task: find a sequence that achieves a desirable effect

Actions, events and situations

Describing change Simple Situation calculus requires two axioms to describe change: Possibility axiom: when is it possible to do the action At(Agent,x,s)  Adjacent(x,y)  Poss(Go(x,y),s) Effect axiom: describe changes due to action Poss(Go(x,y),s)  At(Agent,y,Result(Go(x,y),s)) What stays the same? Frame problem: how to represent all things that stay the same? Frame axiom: describe non-changes due to actions At(o,x,s)  (o  Agent)  Holding(o,s)  At(o,x,Result(Go(y,z),s))

Representational frame problem If there are F fluents and A actions then we need A*F frame axioms to describe other objects are stationary unless they are held. We write down the effect of each actions Solution; describe how each fluent changes over time Successor-state axiom: Pos(a,s)  (At(Agent,y,Result(a,s))  (a = Go(x,y))  (At(Agent,y,s)  a  Go(y,z)) Note that next state is completely specified by current state. Each action effect is mentioned only once.

Other problems How to deal with secondary (implicit) effects? If the agent is carrying the gold and the agent moves then the gold moves too Ramification problem Extensions: Event calculus (when actions have a duration)

The internet shopping world A Knowledge Engineering example An agent that helps a buyer to find product offers on the internet. IN = product description (precise or precise) OUT = list of webpages that offer the product for sale. Environment = WWW Percepts = web pages (character strings) Extracting useful information required

The internet shopping world Find relevant product offers RelevantOffer(page,url,query)  Relevant(page, url, query)  Offer(page) Write axioms to define Offer(x) Find relevant pages: Relevant(x,y,z) ? Start from an initial set of stores What is a relevant category? What are relevant connected pages? Require rich category vocabulary Synonymy and ambiguity Retrieve pages: GetPage(url) Compare offers (information extraction)

Reasoning systems for categories How to organize and reason with categories? Semantic networks Visualize knowledge-base Efficient algorithms for category membership inference Description logics Formal language for constructing and combining category definitions Efficient algorithms to decide subset and superset relationships between categories.

Semantic Networks Logic vs. semantic networks Many variations All represent individual objects, categories of objects and relationships among objects Allows for inheritance reasoning Female persons inherit all properties from person Similar to OO programming Inference of inverse links SisterOf vs. HasSister

Semantic network example

Reasoning with Default Information A form of common sense reasoning - Assume information is complete - Answer set programming is a form of default reasoning, which is also closely related to constraint programming

cs101,cs102,cs103,ee101 RDB: Course(cs,101),course(cs,102),course(cs,103),course(ee,101). Count * from course CWA UNA تکمیل کلارک course(d,n)⟷ [d,n]=[cs,101] ⋁ …⋁[d,n]=[ee,101].

Truth maintenance systems Using default status (same as default info in CWA) [e.g. p is false iff can’t prove it] Many of the inferences have default status rather than being absolutely certain Inferred facts can be wrong and need to be retracted = BELIEF REVISION. Assume KB contains sentence P and we want to execute TELL(KB, P) To avoid contradiction: RETRACT(KB,P) But what about sentences inferred from P? Truth maintenance systems are designed to handle these complications.

Summary Complex KR problems require the construction of an ontology to express categories, time, actions, belief, etc. A good KR system is general enough to represent the domain knowledge of the underlying problem, and specific enough to allow efficient computation.