Artificial Intelligence Lecture No. 12 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.

Slides:



Advertisements
Similar presentations
Expert System Seyed Hashem Davarpanah
Advertisements

Artificial Intelligence
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
Frame-based expert systems
B. Ross Cosc 4f79 1 Frames Knowledge bases can be enhanced by using principles from frame knowledge representation (similar to object orientation) This.
Knowledge Representation
Knowledge Representation
Modeling Main issues: What do we want to build How do we write this down ©2008 John Wiley & Sons Ltd. vliet.
So What Does it All Mean? Geospatial Semantics and Ontologies Dr Kristin Stock.
Frame-Based Expert Systems
CPSC 322 Introduction to Artificial Intelligence November 5, 2004.
Semantic Nets, Frames, World Representation. Knowledge Representation as a medium for human expression An intelligent system must have KRs that can be.
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.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. slide 1 CS 125 Introduction to Computers and Object- Oriented Programming.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. slide 1 CS 125 Introduction to Computers and Object- Oriented Programming.
Knowledge Representation
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
Basic Concepts The Unified Modeling Language (UML) SYSC System Analysis and Design.
Semantic Networks The idea behind a semantic network is that knowledge is often best understood as a set of concepts that are related to one another. The.
Knowledge Representation Techniques Lecture Module - 15.
Knowledge Representation
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
1 Semantic Web Semantic Web DL Relationships with other Formalisms Habib Rostami.
Knowledge Representation Semantic Network dan Frame.
Artificial Intelligence Lecture No. 28 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Knowledge representation
Artificial Intelligence 4. Knowledge Representation Course V231 Department of Computing Imperial College, London © Simon Colton.
Artificial Intelligence Lecture No. 29 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Alternative representations: Semantic networks
Object-Oriented Software Development F Software Development Process F Analyze Relationships Among Objects F Class Development F Class Design Guidelines.
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 LECTURE 2 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
Artificial Intelligence Lecture No. 11
Temporal Reasoning and Planning in Medicine Frame-Based Representations and Description Logics Yuval Shahar, M.D., Ph.D.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CMSC 471 Spring 2014 Class #22 Thursday, April 17 Knowledge Representation Professor Marie desJardins,
UML Class Diagram Trisha Cummings. What we will be covering What is a Class Diagram? Essential Elements of a UML Class Diagram UML Packages Logical Distribution.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
Semantic Nets, Frames, World Representation CS – W February, 2004.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
OilEd An Introduction to OilEd Sean Bechhofer. Topics we will discuss Basic OilEd use –Defining Classes, Properties and Individuals in an Ontology –This.
Basic Concepts of Object Orientation Object-Oriented Analysis CIM2566 Bavy LI.
1 Lectures on Artificial Intelligence (CS 364) 1 Khurshid Ahmad Professor of Artificial Intelligence Centre for Knowledge Management September 2001.
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?
C++ Inheritance Data Structures & OO Development I 1 Computer Science Dept Va Tech June 2007 © McQuain Generalization versus Abstraction Abstraction:simplify.
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
Reasoning Systems For Categories By Franklyn O. Reasoning Systems For Categories Categories are the primary building blocks of any large-scale knowledge.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
Of 29 lecture 15: description logic - introduction.
Artificial Intelligence Knowledge Representation.
Knowledge Representation
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 Techniques
Artificial Intelligence
Main issues: • What do we want to build • How do we write this down
ece 720 intelligent web: ontology and beyond
Knowledge Representation
Artificial Intelligence (CS 370D)
UML Class Diagrams: Basic Concepts
KNOWLEDGE REPRESENTATION
Weak Slot-and-Filler Structures
Semantic Nets and Frames
Presentation transcript:

Artificial Intelligence Lecture No. 12 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology (CIIT) Islamabad, Pakistan.

Summary of Previous Lecture Using FOL Knowledge engineering in FOL Knowledge Transfer of knowledge Types of knowledge Organizing the Knowledge Frames

Today’s Lecture Organizing the Knowledge Knowledge Representation using Frames Inheritance in Frames Semantic network Common kinds of semantic networks Semantic Networks Advantages/disadvantages

Organizing the Knowledge Representing the knowledge – Frames – Semantic Networks – Rules – Propositional and Predicate Logic

Knowledge Representation using Frames ● Frames are more structured form of packaging knowledge, − used for representing objects, concepts etc. ● Frames are organized into hierarchies or network of frames. ● Lower level frames can inherit information from upper level frames in network. ● Nodes are connected using links viz., − subc (links two class frames, one of which is subclass of other e.g., science_faculty class is ako of faculty class), − is_a ( connects a particular instance of a class frame e.g., Renuka is_a science_faculty) − a_part_of (connects two class frames one of which is contained in other e.g., faculty class is_part_of department class). − Property link of semantic net is replaced by SLOT fields.

Cont… ● A frame may have any number of slots needed for describing object. e.g., − faculty frame may have name, age, address, qualification etc as slot names. ● Each frame includes two basic elements : slots and facets. − Each slot may contain one or more facets (called fillers) which may take many forms such as:  value (value of the slot),  default (default value of the slot),  range (indicates the range of integer or enumerated values, a slot can have),  demons (procedural attachments such as if_needed, if_deleted, if_added etc.) and  other (may contain rules, other frames, semantic net or any type of other information).

Frame Network - Example

Detailed Representation of Frame Network

Description of Frames ● Each frame represents either a class or an instance. ● Class frame represents a general concept whereas instance frame represents a specific occurrence of the class instance. ● Class frame generally have default values which can be redefined at lower levels. ● If class frame has actual value facet then decedent frames can not modify that value. ● Value remains unchanged for subclasses and instances.

Inheritance in Frames ● Suppose we want to know nationality or phone of an instance-frame frame13. ● These information are not given in this frame. ● Search will start from frame13 in upward direction till we get our answer or have reached root frame. ● The frames can be easily represented in prolog by choosing predicate name as frame with two arguments. ● First argument is the name of the frame and second argument is a list of slot - facet pair.

Features of Frame Representations Frames can support values more naturally than semantic nets (e.g. the value 25) Frames can be easily implemented using object-oriented programming techniques. Demons allow for arbitrary functions to be embedded in a representation. But a price is paid in terms of efficiency, generality, and modularity! Inheritance can be easily controlled.

Fig 7.12Part of a frame description of a hotel room. “Specialization” indicates a pointer to a superclass. (Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009) Frames Example

Frames Advantages Frames add power and clarity by allowing complex objects to be represented as a single frame. Frames provide an easier framework to organize information hierarchically. Frames allow for procedural attachment which runs a demon (piece of code) as a result of another action in the KB. frames support class inheritance.

Semantic network A semantic network or net is a graph structure for representing knowledge in patterns of interconnected nodes and arcs. Computer implementations of semantic networks were first developed for artificial intelligence and machine translation, but earlier versions have long been used in philosophy, psychology, and linguistics. The Giant Global Graph of the Semantic Web is a large semantic network (Berners-Lee et al. 2001; Hendler & van Harmelen 2008).

What is common to all semantic networks is a declarative graphic representation that can be used to represent knowledge and support automated systems for reasoning about the knowledge. Some versions are highly informal, but others are formally defined systems of logic.

Semantic Networks Define objects in terms of their association with other objects e.g. snow, white, snowman, ice, slippery. Represent knowledge as a graph: Concepts at lower levels inherit characteristics from their parent concepts. Concepts Relations

Six most common kinds of semantic networks: 1: Definitional networks: Emphasize the subtype or is-a relation between a concept type and a newly defined subtype. The resulting network, also called a generalization or subsumption hierarchy, supports the rule of inheritance for copying properties defined for a supertype to all of its subtypes. Since definitions are true by definition, the information in these networks is often assumed to be necessarily true.

2: Assertional networks: Are designed to assert propositions. Unlike definitional networks, the information in an assertional network is assumed to be contingently true, unless it is explicitly marked with a modal operator. Some assertional netwoks have been proposed as models of the conceptual structures underlying natural language semantics.

3: Implicational networks: Use implication as the primary relation for connecting nodes. They may be used to represent patterns of beliefs, causality, or inferences. Implicational networks emphasize implication, they are capable of expressing all the Boolean connectives by allowing a conjunction of inputs to a propositional node and a disjunction of outputs.

4: Executable networks: Include some mechanism, such as marker passing or attached procedures, which can perform inferences, pass messages, or search for patterns and associations. Executable semantic networks contain mechanisms that can cause some change to the network itself. The simplest networks with attached procedures are dataflow graphs, which contain passive nodes that hold data and active nodes that take data from input nodes and send results to output nodes.

5: Learning networks: Build or extend their representations by acquiring knowledge from examples. The new knowledge may change the old network by adding and deleting nodes and arcs or by modifying numerical values, called weights, associated with the nodes and arcs. The purpose of learning, both from a natural and an AI standpoint, is to create modifications that enable the system to respond more effectively within its environment.

6: Hybrid networks: Combine two or more of the previous techniques, either in a single network or in separate, but closely interacting networks. Systems are usually called hybrids if their component languages have different syntax... The most widely used hybrid of multiple network notations is the Unified Modeling Language (UML), which was by designed by three authors... who merged their competing notations.

Semantic Networks Well designed semantic networks are a form of logic. memberOf(femalePersons, mary) female Persons memberOf mary

Fig 7.2Network representation of properties of snow and ice (From: Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009) Semantic Networks Example

Semantic Networks Example female Persons memberOf mary male Persons memberOf john mammals subsetOf Persons subsetOf sisterOf legs 2 hasMother legs 1

Semantic Networks Inference Mechanism Inheritance – e.g. Persons by default have 2 legs. How many legs does Mary have? John? Use of Inverse Links (through reification) – e.g. hasSister(p, s) and sisterOf(s, p) hasSister inverseOf sisterOf

Semantic Networks Example female Persons memberOf mary male Persons memberOf john mammals subsetOf Persons subsetOf sisterOf legs 2 hasMother legs 1 hasSister

Simple semantic nets Nodes are labeled with names (nouns). Arcs are labeled with relationships. Special link label "isa" means "is a". Show membership or subset relationships

In any case, we can use our high-level data abstraction, the directed graph, to make these relationships a bit more visual. For example, from the bird definitions, we can construct the following abstraction: vertebrate ^ | is-a has-part | / wings / reproduction | / egg-laying | / body-temp | / warm-blooded bird--< no. of legs ^ ^ ^ \ / | \ \ covering is-a / | \ \ feathers / | \ \ movement color / | \ \ flight yellow canary size / | is-a \ is-a small -----/ | \ movement | ostrich run movement | \ size swim penguin \ big

Semantic Networks Advantages Simple and transparent inference processes. Ability to assign default values for categories. Ability to include procedural attachment.

Semantic Networks Disadvantages Simple query language may be too limiting to express complex queries. Does not represent full FOL since it does not provide means to use negation, disjunction, and existential quantification. n-ary functions must be mapped onto binary functions.

Semantic Networks Much of this work has been done in the arena of natural language. First implementation in machine translation in the early 60s. Quillian’s dictionary (late 1960s): – Planes contain single word definitions. – Words are defined in terms of other words in a semantic network format. – Program used definitions to find relationships between pairs of words. (e.g. comfort and cry produce sad)

Comparative Summary Semantic nets can easily represent inheritance and exceptions, but are not well-suited for representing negation, disjunction, preferences, conditionals, and cause/effect relationships. Frames allow arbitrary functions (demons) and typed inheritance. Implementation is a bit more cumbersome.

Summery of Today’s Lecture Organizing the Knowledge Knowledge Representation using Frames Inheritance in Frames Semantic network Common kinds of semantic networks Semantic Networks Advantages/disadvantages