ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.

Slides:



Advertisements
Similar presentations
Expert System Seyed Hashem Davarpanah
Advertisements

FT228/4 Knowledge Based Decision Support Systems
Object-Oriented Programming Basics Prof. Ankur Teredesai, Computer Science Department, RIT.
Enhanced/Extended Relationship-Diagram
Frame-based expert systems
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
Frame-Based Expert Systems
Frame Based Expert System
© Negnevitsky, Pearson Education, Introduction, or what is a frame? Introduction, or what is a frame? Frames as a knowledge representation technique.
Knowledge Representation. Essential to artificial intelligence are methods of representing knowledge. A number of methods have been developed, including:
CPSC 322 Introduction to Artificial Intelligence November 5, 2004.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE Massimo Poesio LECTURE 4: Semantic Networks and Description Logics.
Knowledge Engineering
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
Artificial Intelligence Lecture No. 12 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Object-Oriented Analysis and Design
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
Chapter 14 (Web): Object-Oriented Data Modeling
Object-Oriented Databases
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Knowledge Representation
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
Frame-based expert systems
Modelling classes Drawing a Class Diagram. Class diagram First pick the classes –Choose relevant nouns, which have attributes and operations. Find the.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Frame-Based Representation Frame: stereotypical knowledge knowledge of some concept. Bird Frame Name Properties CLASS FRAME Tweety Frame Name Properties.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
سید ضیاء الدین البرزی زیر نظر جناب دکتر حلاوتی.  One common methods used for representing knowledge in an expert systems.  How a FB experts system uses.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Knowledge Representation
Frames and semantic networks, page 1 CSI 4106, Winter 2005 A brief look at semantic networks A semantic network is an irregular graph that has concepts.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 A Student Guide to Object- Orientated Systems Chapter 4 Objects and Classes: the basic concepts.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
Early Work Masterman: 100 primitive concepts, 15,000 concepts Wilks: Natural Language system using semantic networks Shapiro: Propositional calculus based.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Lectures on Artificial Intelligence – CS435 Conceptual Graphs
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
Design Model Lecture p6 T120B pavasario sem.
Semantic Nets, Frames, World Representation CS – W February, 2004.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CSCI-383 Object-Oriented Programming & Design Lecture 10.
1 Lectures on Artificial Intelligence (CS 364) 1 Khurshid Ahmad Professor of Artificial Intelligence Centre for Knowledge Management September 2001.
State Modeling. Events An event is an occurrence at a point in time, such as user depresses left button or.
Knowledge Representation
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
INFO 629 Dr. R. Weber Copyright R. Weber Knowledge representation methods Knowledge bases, case bases, databases.
Chapter 16 UML Class Diagrams 1CS6359 Fall 2012 John Cole.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
Knowledge Representation
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
Definition and Technologies Knowledge Representation.
16 April 2011 Alan, Edison, etc, Saturday.. Knowledge, Planning and Robotics 1.Knowledge 2.Types of knowledge 3.Representation of knowledge 4.Planning.
Module 5 Other Knowledge Representation Formalisms
KNOWLEDGE REPRESENTATION
Knowledge Representation Techniques
Artificial Intelligence
Object-Oriented Programming Basics
Knowledge Representation
Knowledge Representation
Artificial Intelligence (CS 370D)
Conceptual Graphs Graph Structure
Semantic Nets and Frames
Entity-Relationship (E-R) Modeling
Presentation transcript:

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information Technology Institute of Applied Computer Systems Department of Systems Theory and Design KNOWLEDGE REPRESENTATION SCHEMAS

Knowledge Representation Schemas Logical schemas –First-order logic –Higher-order logic Procedural schemas –Rule-based systems Network schemas –Semantic networks –Conceptual graphs Structured schemas –Frames –Scripts

Semantic Networks Definition: Semantic network (Quillian, 1967) is a knowledge representation schema that captures knowledge as a graph. The nodes denote objects or concepts, their properties and corresponding values. The arcs denote relationships between the nodes. Both nodes and arcs are generally labelled (arcs have weights).

Example of Semantic Network headanimal part of bird is a fly travel feathers covering fish is a wings part of ostrich is a walk travel penguin travel is a color has value brown canary color has value yellow sound sing robin covering skin is a sound swim travel tweety is a color white has value color has value red opus is a

Semantic Networks Typical relationships –IS-A –PART-OF –HAS –VALUE –LINGUISTIC

Semantic Networks Typical relationships (continued) –IS-A Supertype – type (superclass – class) Type – subtype (class – subclass) Subtype – instance (subclass – instance) –PART-OF Supertype – type (superclass – class) Type – subtype (class – subclass)

Semantic Networks Typical relationships (continued) –HAS Object – property –VALUE Property – value –LINGUISTIC Examples: likes, owns, travel, made of, …

Semantic Networks NETWORK EXTENSION –Addition of new nodes and their relationships –Three ways of node addition: Similar object More specific object More general object

Semantic Networks REASONING –Query node –Answer search Answer localization at the query node Path construction following labels of arcs

Semantic Networks INHERITANCE –Definition: Inheritance is a process by which the local information of a superclass node is assumed by a class node, a subclass node, and an instance node

Semantic Networks INHERITANCE (continued) –“+” 1) Provides a natural tool for representing taxonomically structured knowledge. 2) Provides economical means of expressing properties common to a class of objects. 3) Reduces the size of a knowledge base. 4) Provides more compact code –“–” 1) Exception handling by local priority. 2) Additional workload of knowledge engineer who must decide at which node to define common properties

Conceptual Graphs DEFINITION: A conceptual graph (John Sowa, 1984) is a finite, connected, bipartite graph The nodes of the graph denote either concepts or conceptual relations Conceptual graphs do not use labelled arcs; instead the conceptual relation nodes represent relations between concepts Concepts can only have arcs to conceptual relations, and vice versa Concepts are represented as boxes and conceptual relations as ellipses

Conceptual Graphs Concept nodes represent: 1.Concrete concepts (objects), for instance, cat, telephone, book, etc. These concepts are characterised by our ability to form an image of them in our minds. Concrete concepts include generic concepts such as cat or book along with concepts of specific cats and books 2.Abstract concepts, for instance, beauty, loyalty, and love that do not correspond to images in our minds

Conceptual Graphs Conceptual relation nodes indicate a relation involving one or more concepts. Some special relation nodes, namely, agent, recipient, object, experiencer, are used to link a subject and the verb Conceptual graphs can represent relations of any arity A relation of arity n is represented by a conceptual relation node having n arcs

Example of Conceptual Graph person: john agent eat object soup instrument hand part

Conceptual Graphs Each conceptual graph represents a single proposition Knowledge base contains a set of conceptual graphs Graphs may be arbitrary complex but must be finite

Frame Based Systems The term frame is coined by Minsky in Frame is a static data structure used to represent stereotypical information about some concept. Frame is like a template that contains generic information about some concept that you could refer to for describing a given instance of the concept.

Frame Based Systems A frame has: –Name – frame identification information. –Slots with labels describing the attributes and possible values for each attribute.

Frame Based Systems The slots contain: –Frame identification information –Relationship of this frame to other frames –Frame default information (slot values that are taken to be true when no evidence to the contrary has been found) –New instance information (slots may be left unspecified) –Procedural information (procedural code may be attached to the slot) –Descriptors of requirements for frame match

Frame Based Systems ATTRIBUTES –STATIC –DYNAMIC VALUES –NUMERIC –SYMBOLIC –BOOLEAN

Frame Based Systems Sources of attribute values : –Initialize –Database –Procedure –Expert System –User –Inheritance –Other Frame (object)

Frame Based Systems CLASS Definition: Class is a collection of objects that share some common properties (attributes). A class frame contains –A descriptive name of the concept –A set of attributes that are characteristic of all its associated objects –Attribute values that considered common to these objects It may contain: 1) An explicit reference to all of its associated subclasses; 2) Information describing the behaviour of the concept.

Frame Based Systems SUBCLASSES Definition: Subclasses are classes that represent subsets of higher level classes. Three kinds of class relationships: –Generalization – “Kind of” relationship –Aggregation – “Part of” relationship –Association – “Semantic” relationship

Frame Based Systems INSTANCE Definition: Instance is a specific object from a class of objects. AN INSTANCE FRAME –Describes A specific object from its related class. –Contains All of the characteristics of the class frame as well as a specific information (specific features and property values).

Example of Frame Based System superclass: vehicle reg. number producer model owner truck class: vehicle reg. number producer model owner tonnage part ofbasket car class: vehicle reg. number producer model owner number of doors4 horse-power John’s car class: car reg. numberLV97 producerBMW model520 ownerJohn number of doors2 horse-power150 basket dimensions2*3*1.5 materialtin John age22 length of driving2

Frame Based Systems INHERITANCE Definition: Inheritance is the process by which the characteristics of a parent frame are assumed by its child frame. Note: In general, a child frame will inherit information from its parents, grandparents, great- grandparents, etc. MULTIPLE INHERITANCE An object could inherit information from more than one parent (in this case objects relate to different worlds)

Frame Based Systems INHERITANCE Practical value: –Easier coding of the system –Easier modification of information in a frame (adding new property to the class frame it will be inherited automatically by all of its instances) Potential problem: exception handling –Any frame that is an exception from the norm, that is, the frame has some property value unique to itself, this value must be explicitly encoded in the frame.

Frame Based Systems FACETS Definition: A facet is an extended knowledge about a frame’s property. Facets provide additional control over property value and the operation of the system.

Frame Based Systems A facet extends the information in the following ways: –TYPE – Defines a type of value that can be associated with the property –DEFAULT – Defines a default value, i.e., an initial value for the property –CONSTRAINT – Defines the allowable value

Frame Based Systems –MINIMUM CARDINALITY – Establishes min number of values –MAXIMUM CARDINALITY – Establishes max number of values –IF-NEEDED – Specifies action to be taken if the property’s value is needed –IF-CHANGED – Specifies action to be taken if the property’s value is changed

Frame Based Systems METHODS (1) Definition: Method is a procedure attached to an object, that will be executed whenever requested. An IF-NEEDED method is written in order to obtain the property’s value only when it is needed. IF-NEEDED facet executes some method only when it is needed (method acts like a demon).

Frame Based Systems METHODS (2) An IF-CHANGED method is written in order to change an object’s property value, access database, etc. IF-CHANGED facet executes some method that performs some function in the event the property's value changes. Methods designed to perform both operations can be inherited.

Example of Methods Temperature sensors Name UnknownCritical Value Unknown ValueUnknown StatusUnknown Get-Value (Self.Name) IF Self.Status = Alert THEN Sound-Alert Value If-Needed Method Status If-Changed Method IF Self.Value > Self.Critical Value THEN Self.Status = Alert Value If-Changed Method

Frame Based Systems COMMUNICATION BETWEEN OBJECTS (1) Interobject communication using facets –Using facet methods objects can communicate with one another. A change to only one property value may cause a series of changes in a number of objects (frame system is dynamic!). Objects can influence the property values in other objects, or even itself.

Frame Based Systems COMMUNICATION BETWEEN OBJECTS (2) Message passing Definition: Message passing is a signal to an object to which the object responds by executing a method. –Sending messages involves using a function: (SEND message-name, object-name, arguments)