 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.

Slides:



Advertisements
Similar presentations
Expert System Seyed Hashem Davarpanah
Advertisements

Logic Programming Automated Reasoning in practice.
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Semantic Networks and Frames
Alternate Representational Methods CS 531: LUMS Lahore Dr. M M Awais Frames Graphical Representation: Semantic Nets.
Knowledge Representation
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
Knowledge representation 2. Knowledge Representation using structured objects.
Frame-Based Expert Systems
CPSC 322 Introduction to Artificial Intelligence November 5, 2004.
Representations One of the major distinctions between ordinary software and AI is the need to represent domain knowledge (or other forms of worldly knowledge)
1 Knowledge Representation We’ve discussed generic search techniques. Usually we start out with a generic technique and enhance it to take advantage of.
For Friday Finish chapter 10 No homework (get started on program 2)
CSM6120 Introduction to Intelligent Systems Knowledge representation.
Intelligent systems Lecture 6 Rules, Semantic nets.
Cognitive - knowledge.ppt © 2001 Laura Snodgrass, Ph.D.1 Knowledge Structure of semantic memory –relationships among concepts –organization of memory –memory.
14th September 2006 Dr Bogdan L. Vrusias
Chapter 7 Knowledge Terms: concept, categorization, prototype, typicality effect, object concepts, rule-governed, exemplars, hierarchical organization,
INTRODUCTION TO ARTIFICIAL INTELLIGENCE Massimo Poesio LECTURE 4: Semantic Networks and Description Logics.
Knowledge Engineering
Organization of Semantic Memory The study of Collins & Quillian (1969):Collins & Quillian (1969): The authors were interested in the organization of semantic.
1 Lecture 35 Brief Introduction to Main AI Areas (cont’d) Overview  Lecture Objective: Present the General Ideas on the AI Branches Below  Introduction.
PSY 369: Psycholinguistics Mental representations II.
Lahore University of Management Sciences, Lahore, Pakistan Dr. M.M. Awais- Computer Science Department Lecture 6 Knowledge Representation Non-Formal Method.
Knowledge representation 1. The importance of knowledge representation l Contrary to the beliefs of early workers in AI, experience has shown that Intelligent.
Knowledge information that is gained and retained what someone has acquired and learned organized in some way into our memory.
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
Lecture 10 – Semantic Networks 1 Two questions about knowledge of the world 1.How are concepts stored? We have already considered prototype and other models.
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.
Knowledge Representation Semantic Network dan Frame.
Semantic Memory Psychology Introduction This is our memory for facts about the world This is our memory for facts about the world How do we know.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
Artificial Intelligence LECTURE 2 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
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.
Artificial Intelligence Knowledge Representation.
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.
Semantic Nets, Frames, World Representation CS – W February, 2004.
1 Knowledge Representation (continue). 2 Knowledge Representation Logic isn’t the only method of representing knowledge. There are other methods which.
1 Lectures on Artificial Intelligence (CS 364) 1 Khurshid Ahmad Professor of Artificial Intelligence Centre for Knowledge Management September 2001.
1 How is knowledge stored? Human knowledge comes in 2 varieties: Concepts Concepts Relations among concepts Relations among concepts So any theory of how.
For Friday Read Chapter 11, sections 1 and 2 Homework: –Chapter 10, exercises 1 and 5.
Knowledge Representation. Keywordsquick way for agents to locate potentially useful information Thesaurimore structured approach than keywords, arranging.
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?
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
Organization of Semantic Memory Typical empirical testing paradigm: propositional verification task – rt to car has four wheels vs. car is a status symbol.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
Semantic Memory Psychology Introduction This is our memory for facts about the world How do we know that the capital of Viet Nam is Hanoi How is.
Verbal Representation of Knowledge
Artificial Intelligence Knowledge Representation.
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.
Module 5 Other Knowledge Representation Formalisms
Knowledge Representation
Knowledge Representation Techniques
Artificial Intelligence
Knowledge Representation
KNOWLEDGE REPRESENTATION
Weak Slot-and-Filler Structures
Knowledge Representation
Semantic Nets and Frames
How is knowledge stored?
Presentation transcript:

 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large amount of real-world - probably domain-specific - knowledge.  Humans almost always tackle difficult real- world problems by using their resources of knowledge - "experience", "training" etc.

 Production rules  Formal logic, and languages based on it (e.g. PROLOG)  Structured objects:  Semantic nets (or networks)  Frames, and object-orientated programming, which was derived from frames  Other similar objects, such as Scripts

 Structured objects are:  knowledge representation formalisms whose components are essentially similar to the nodes and arcs found in graphs.  in contrast to production rules and formal logic.  an attempt to incorporate certain desirable features of human memory organisation into knowledge representations.

 The entities with which we reason can be grouped into categories.  Categories may be divided into sub-categories.  The hierarchical structure of these categories is called taxonomy.  Taxonomic knowledge can be represented by first-order logic, or more conveniently by semantic nets.

 Devised by Quillian in 1968, as a model of human memory.  The technique offered the possibility that computers might be made to use words in something like the way humans did, following the failure of early machine-translators.  Organisation of semantic nets.

 knowledge is represented as a collection of concepts, represented by nodes (shown as boxes in the diagram), connected together by relationships, represented by arcs (shown as arrows in the diagram).

 certain arcs - particularly isa arcs - allow inheritance of properties.  This permits the system to "know" that a Ford Escort has four wheels because it is a type of car, and cars have four wheels.

 inheritance provides cognitive economy, but there is a storage-space / processing-time trade-off.  This means that, if you adopt this technique, you will use less storage space than if you don't, but your system will take longer to find the answers to questions.

 a semantic net should make a distinction between types and tokens. This is why the diagram above uses “instance_of” arcs as well as “isa” arcs.  Individual instances of objects have a token node.  Categories of objects have a type node.  There is always at least one type node above a token node. The information needed to define an item is (normally) found attached to the type nodes above it.

 So far, this is just a diagram - not a knowledge base. But it can be converted into a knowledge base.

13 is_a(sammy,goldfish). is_a(goldfish,freshwater_fish). … has(fish,fins). has(fish,scales). … Etc. Each arrow on the semantic net becomes a Prolog clause.

% defining operators. :- op(500, xfx, isa). :- op(500,xfx, instance_of). :- op(500,xfx, covered_by). :- op(500,xfx, travels_by). :- op(500,xfx, colour). :- op(500,xfx, travels). :- op(500,fx, is). :- op(600,xfx, a). :- op(600,xfx, an). :- op(700, xf, ?). :- op(500,fx, what). :- op(600, xfx, is).

:- op(650, xfx, what). :- op(650, xfx, how). ostrich isa bird. penguin isa bird. canary isa bird. robin isa bird. bird isa animal. fish isa animal. opus instance_of penguin. tweety instance_of canary. canary colour yellow.

robin colour red. tweety colour white. penguin travels_by walking. ostrich travels_by walking. bird travels_by flying. fish travels_by swimming. bird covered_by feathers. animal covered_by skin.

inherit(A isa C):- A isa C. inherit(A isa C):- A instance_of D, inherit(D isa C). inherit(A isa C):- A isa D, inherit(D isa C). is X a Y :- inherit(X isa Y). is X an Y:- inherit(X isa Y).

inherit(A colour C):- A colour C. inherit(A colour C):- (A instance_of D ; A isa D), inherit(D colour C). what_colour A :- inherit(A colour C), nl, write(A), write(' is '), write(C).

inherit(A covered_by C):- A covered_by C. inherit(A covered_by C):- (A instance_of D ; A isa D), inherit(D covered_by C). A covers:- inherit(A covered_by C), nl, write(A), write(' is covered by '), write(C).

 This is a program, written in Prolog, which contains all the knowledge represented in the diagram above, together with a mechanism for finding information by inheritance, and a rudimentary natural language interface.

 It can answer questions like is tweety an animal ? (it answers “yes”) what colour is tweety ? (it answers “white”) opus is covered_by what ? ( it answers “feathers”) and so on.

 It could have been written in C++ or Java (although it would have been much harder), or any other present-day high-level language.

 Problems with semantic nets  logical inadequacy - vagueness about what types and tokens really mean.  heuristic inadequacy – finding a specific piece of information could be chronically inefficient.  trying to establish negation is likely to lead to a combinatorial explosion.  "spreading activation" search is very inefficient, because it is not knowledge-guided.

 Attempted improvements  building search heuristics into the network.  more sophisticated logical structure, involving partitioning.  these improvements meant that the formalism’s original simplicity was lost.

 Developments of the semantic nets idea:  psychological research into whether human memory really was organised in this way.  used in the knowledge bases in certain expert systems.  special-purpose languages have been written to express knowledge in semantic nets.

27 The frame system mimics the human style of knowledge organisation by creating a structure consisting of slots that are filled with specific instances of data. For example we could organise the information about a wooden table as follows: In some cases a slot may hold a default value which will be assumed unless an alternative value is specified. In the Table frame, the default value for the number of legs is 4, but this could be changed (for example a larger table might have 6 legs)

28 The values stored in slots are often pointers to other frames Frames allow facts to be retrieved directly Frames may be linked to form a hierarchy that allows properties to be inherited

29 As Nellie is an instance of elephant, she inherits the properties of elephants, so we can also say that Nellie is large and grey. Elephants, in turn, are a subclass of mammals, so we can say that Nellie has a head, and is an animal, by a process of multiple inheritance. We could represent the same knowledge in the form of frames, as above: (note: these 3 frames represent only parts of the semantic net) Terminology: Subclass and has-part are called slots. Animal and head are the slot values.