knowledge n knowledge is a collection of specialized facts, procedures and judgment rules high low...

95
Knowledge Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstracti on Quantity Knowledge Informatio n Data

Upload: edmund-hunt

Post on 12-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Knowledge is a collection of specialized

facts, procedures and judgment rules

High

Low

Degree of Abstraction

Quantity

Knowledge

Information

Data

Page 2: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Sources

Documented (books, manuals, etc.)

Undocumented (in people's minds)– From people, from machines

Knowledge Acquisition from Databases

Knowledge Acquisition Via the Internet

Page 3: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Levels Shallow knowledge (surface) Deep knowledge

Can implement a computerized representation that is deeper than shallow knowledge

Special knowledge representation methods (semantic networks and frames) to allow the implementation of deeper-level reasoning (abstraction and analogy): important expert activity

Represent objects and processes of the domain of expertise at this level

Relationships among objects are important

Page 4: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Major Categories of Knowledge

Declarative Knowledge

Procedural Knowledge

Metaknowledge

Page 5: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Declarative Knowledge

Descriptive Representation of Knowledge

Expressed in a factual statement

Shallow

Important in the initial stage of knowledge acquisition

Page 6: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Procedural Knowledge Considers the manner in which things

work under different sets of circumstances– Includes step-by-step sequences and

how-to types of instructions– May also include explanations– Involves automatic response to stimuli– May tell how to use declarative

knowledge and how to make inferences

Page 7: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Descriptive knowledge relates to a specific object. Includes information about the meaning, roles, environment, resources, activities, associations and outcomes of the object

Procedural knowledge relates to the procedures employed in the problem-solving process

Page 8: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Metaknowledge

Knowledge about Knowledge

In ES, Metaknowledge refers to knowledge about the operation of knowledge-based systems

Its reasoning capabilities

Page 9: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Modeling

The knowledge model views knowledge acquisition as the construction of a model of problem-solving behavior-- a model in terms of knowledge instead of representations

Can reuse models across applications

Page 10: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Representation Logical representation – first order predicate

calculus, Prolog, declarative knowledge Procedural representation – a set of instructions

for solving a problem, such as a production system

Network representation – knowledge is in a graph structure, such as conceptual dependency and conceptual graphs we will study in this chapter

Structured representation – an extension of networks, such as scripts or frames we will study in this chapter

Page 11: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Group Work

What type of knowledge representation would be appropriate to contain a rules to generate the following sequences

Page 12: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Group Work What type of knowledge representation would be

appropriate to solve “analogy” problems?

Page 13: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Representation

Once acquired, knowledge must be organized for use

Page 14: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Introduction

A good knowledge representation naturally represents the problem domain

An unintelligible knowledge representation is wrong

Most artificial intelligence systems consist of: – Knowledge Base – Inference Mechanism (Engine)

Page 15: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Base – Forms the system's intelligence

source – Inference mechanism uses to

reason and draw conclusions

Inference mechanism: Examines the knowledge base to answer questions, solve problems or make decisions within the domain

Page 16: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Many knowledge representation schemes– Can be programmed and stored in

memory– Are designed for use in reasoning

Major knowledge representation schemas:– Production rules– Frames

Page 17: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Representation in Logic and

Other Schemas General form of any logical process

Inputs (Premises)

Premises used by the logical process to create the output, consisting of conclusions (inferences)

Facts known true can be used to derive new facts that are true

Page 18: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Symbolic logic: System of rules and procedures that permits the drawing of inferences from various premises

Basic Forms of Computational Logic – Propositional logic (or propositional

calculus) – Predicate logic (or predicate

calculus)

Page 19: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Propositional Logic

A proposition is a statement that is either true or false

Once known, it becomes a premise that can be used to derive new propositions or inferences

Rules are used to determine the truth (T) or falsity (F) of the new proposition

Page 20: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Symbols represent propositions, premises or conclusionsStatement: A = The mail carrier comes

Monday through Friday. Statement: B = Today is Sunday.Conclusion: C = The mail carrier will not

come today.

Propositional logic: limited in representing real-world knowledge

Page 21: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Predicate Calculus

Predicate logic breaks a statement down into component parts, an object, object characteristic or some object assertion

Predicate calculus uses variables and functions of variables in a symbolic logic statement

Predicate calculus is the basis for Prolog (PROgramming in LOGic)

Prolog Statement Examples– comes_on(mail_carrier, monday).– likes(jay, chocolate).

(Note - the period “.” is part of the statement)

Page 22: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Lists

Written Series of Related Items

Normally used to represent hierarchical knowledge where objects are grouped, categorized or graded according to– Rank or – Relationship

Page 23: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Decision Tables(Induction Table)

Knowledge Organized in a Spreadsheet Format

Attribute List

Conclusion List

Different attribute configurations are matched against the conclusion

Page 24: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Decision Trees Related to tables

Similar to decision trees in decision theory

Can simplify the knowledge acquisition process

Knowledge diagramming - very natural

Page 25: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

O-A-V Triplet Objects, Attributes and Values

O-A-V Triplet

Objects may be physical or conceptual

Attributes are the characteristics of the objects

Values are specific measures of the attributes

Page 26: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Representative O-A-V Items

Object Attributes Values

House Bedrooms 2, 3, 4, etc.

House Color Green, white, brown,etc.

Admission to auniversity

Grade-point average 3.0, 3.5, 3.7, etc.

Inventory control Level of inventory 14, 20, 30, etc.

Bedroom Size 9 X 10, 10 X 12, etc.

Page 27: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Default Logic

Deals with uncertainties Incomplete information

Page 28: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Maps

Visual representation Cognitive maps

Page 29: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Semantic Networks Semantics nets were introduced by Quilian in the late 1960s

for representing knowledge as a network of associations

• By following links, simple questions can be answered

• Studies with human recall supported this model

Page 30: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Semantic Networks

Graphic Depiction of Knowledge

Nodes and Links Showing Hierarchical Relationships Between Objects

Nodes: Objects

Arcs: Relationships– is-a – has-a

Page 31: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Semantic networks can show inheritance

Semantic Nets - visual representation of relationships

Can be combined with other representation methods

Page 32: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Semantic Network Example

Joe

Boy

Kay

Woman

Food

HumanBeing

School

Hasa child

NeedsGoes to

Is a

Is a

Is a

Is a

Page 33: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Conceptual Graphs Graph Structure

– Finite, connected, bipartite– Arcs are not labeled– Conceptual relation nodes are introduced between

concepts– The bipartite nature of the graph means concepts can

only link to conceptual relations and vice versa– In drawings, concepts are shown in boxes and

conceptual relations in ellipses Concepts may be concrete (dog, child, etc.) or

abstract (love, beauty, etc.)

Page 34: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Arity of Relations Examples of 1-ary, 2-ary, and 3-ary relations

Page 35: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Graph of a Sentence

“Mary gave John the book”

– As in conceptual dependency, the verb plays a central role in the structure

– The verb “give” in this sentence has an agent, an object, and a recipient

Page 36: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Group Work What does the following conceptual graph represent

Page 37: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Types and Individuals In the first case, the

type is dog and the individual is “emma”

A specific but unnamed dog is given a unique number (#)

An alternative representation is to use a dog specified by a # and add a conceptual relation for a name

Page 38: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Three Names “Her name was McGill and she called herself Lil, but

everyone knew her as Nancy” (song lyric)

• Who was the artist? What was the name of the song?

Page 39: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Itchy Dog

If the same, unspecified individual is present in two or more nodes, a variable can be introduced that may eventually be bound to the same value

• What is the English sentence for this structure?

Page 40: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Type Lattice Concepts often form a

lattice of types, such as a class golden retriever a type of dog, a type of carnivore, a type of animal, and so forth

is a supertype of all types, is the absent type

Answering queries about a pair of concepts may involve finding the minimum common supertype

Page 41: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Generalization and Specialization

A concept node can be replaced with a restriction

Page 42: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Join of Concepts If two graphs contain

an identical node, they can be joined together by having only one copy of the identical node

Join is a form of restriction since the resultant graph is more specific than the original graphs

Page 43: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Simplification A join may

result in duplicate information

The simply operation allows the removal of duplication information

Page 44: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Inheritance Inheritance is a form of generalization Generalization does not guarantee that the resultant graph is

true even if the original graphs are true

Page 45: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Propositional Nodes

“Tom believes that Jane likes pizza”

• The verb believes takes a propositional node as its object

Page 46: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

“There are no pink dogs” In some cases a propositional node may stand alone,

as seen here:

• This is similar to modal logics that introduce a level of believability, such as necessary, probably, possible, or other levels, such as negative shown here

Page 47: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Group Work What does the following conceptual graph represent

Page 48: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Conceptual Graphs and Logic Conceptual graphs are equivalent to

predicate calculus in expressive power

• Here is an algorithm to change a conceptual graph into a predicate calculus expression

Page 49: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Production Rules

Condition-Action Pairs– IF this condition (or premise or

antecedent) occurs,– THEN some action (or result, or

conclusion, or consequence) will (or should) occur

– IF the stop light is red AND you have stopped, THEN a right turn is OK

Page 50: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Each production rule in a knowledge base represents an autonomous chunk of expertise

When combined and fed to the inference engine, the set of rules behaves synergistically

Rules can be viewed as a simulation of the cognitive behavior of human experts

Rules represent a model of actual human behavior

Page 51: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Forms of Rules

IF premise, THEN conclusion– IF your income is high, THEN your

chance of being audited by the IRS is high

Conclusion, IF premise– Your chance of being audited is

high, IF your income is high

Page 52: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Inclusion of ELSE– IF your income is high, OR your deductions are

unusual, THEN your chance of being audited by the IRS is high, OR ELSE your chance of being audited is low

More Complex Rules– IF credit rating is high AND salary is more than

$30,000, OR assets are more than $75,000, AND pay history is not "poor," THEN approve a loan up to $10,000, and list the loan in category "B.”

– Action part may have more information: THEN

"approve the loan" and "refer to an agent"

Page 53: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge and Inference Rules

Common Types of Rules Knowledge rules, or declarative rules, state all the

facts and relationships about a problem

Inference rules, or procedural rules, advise on how to solve a problem, given that certain facts are known

Inference rules contain rules about rules (metarules)

Knowledge rules are stored in the knowledge base

Inference rules become part of the inference engine

Page 54: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Advantages of Rules

Easy to understand (natural form of knowledge)

Easy to derive inference and explanations

Easy to modify and maintain

Easy to combine with uncertainty

Rules are frequently independent

Page 55: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Complex knowledge requires many rules

Builders like rules (hammer syndrome)

Search limitations in systems with many rules

Limitations of Rules

Page 56: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Characteristics of Rule Representation

First Part Second Part

Names Premise Antecedent Situation IF

ConclusionConsequenceActionTHEN

Nature Conditions, similar to declarativeknowledge

Resolutions, similarto proceduralknowledge

Size Can have many IFs Usually oneconclusion

Statements

AND statements All conditions mustbe true for aconclusion to be true

OR statements If any of the ORstatement is true, theconclusion is true

Page 57: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Frames

Definitions and Overview

Frame: Data structure that includes all the knowledge about a particular object

Knowledge organized in a hierarchy for diagnosis of knowledge independence

Form of object-oriented programming for AI and ES.

Each Frame Describes One Object Special Terminology

Page 58: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Frames (2)

Frames, like scripts, are used in stereotypical situations– When a new situation is encountered, a frame

may be recalled from memory– The frame provides a complete framework– Details may vary from situation to situation– Frames can provide default values– Frames can be arranged in a hierarchy

Page 59: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Frames and NLP

Much of the inference required for NLP involves making assumptions about what is typically true about a situation

Encode this stereotypical information in a frame Looks like themes, but on a higher level of

abstraction

Page 60: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Frame Terminology

Default Instantiation

Demon Master frame

Facet Object

Hierarchy offrames

Range

If added Slot

If needed Value (entry)

Instance of

Page 61: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Components of a Frame

Page 62: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Frame for a Hotel Room

Page 63: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Frame Capabilities

Ability to clearly document information about a domain model; for example,a plant's machines and their associated attributes

Related ability to constrain the allowable values that an attribute can take on

Modularity of information, permitting ease of system expansion andmaintenance

More readable and consistent syntax for referencing domain objects in therules

Platform for building a graphic interface with object graphics

Mechanism that will allow us to restrict the scope of facts considered duringforward or backward chaining

Access to a mechanism that supports the inheritance of information down aclass hierarchy

Page 64: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Inheritance - 1

A hierarchy for birds

Page 65: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Inheritance - 2

Multiple inheritance for “Opus”

Page 66: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Inheritance - 3

A new class to resolve ambiguity

Page 67: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Transitivity of Subclasses

Fixing one problem– Penguins don’t fly– Introduce a flightless

bird class Results in other

problems– If subclasses are

transitive, we infer a penguin is a bird

– This adds an extra link that introduces problems with multiple inheritance

Flightless bird is introduced to handle an exception

Page 68: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

A Summary of Frames

Frames organize knowledge into structures Frames are recalled on an as needed basis Procedures can be attached to frames where the

procedure may process one of the slots in the frame in some way, such as detecting changes

Frames support class inheritance Frames can supply default knowledge In essence, frames extended semantic networks

by providing organization and structure

Page 69: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

A means of identifying common situations in a particular domain

A means of generating expectations

– We precompile information, rather than recomputing from first principles. Elements include

Entry Conditions: These must be satisfied before events in the script can occur Props: Slots representing objects involved in events Roles: Persons involved in the eventsTracks: Variations on the script. Different tracks may share components of the same script. Scenes: The sequence of events that occur. Events are represented in conceptual dependency form.

Scripts

Page 70: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Travel by plane:

– Roles: Actor, Clerk, Source, Destination, Airport,

Ticket, Money, Airplane

– Constraints: Person(Actor), Value(Money,

Price(Ticket)), . . .

– Preconditions: Owns(Actor, Money), At(Actor, Source)

– Effects: not(Owns(Actor, Money)), not(At(Actor,

Source)), At(Actor, Destination)

– Decomposition:

• GoTo(Actor, Airport)

• BuyTicket(Actor, Clerk, Money, Ticket),. . .

Scripts

Page 71: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

The Restaurant Script

Page 72: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

The Robbery Script

Page 73: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Advantages and DisadvantagesAdvantages of Scripts: Ability to predict events. A single coherent interpretation may be build

up from a collection of observations.

Disadvantages: Less general than frames. May not be suitable to represent all kinds of

knowledge.

Page 74: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Group Work

Write a “shopping” script– What are the major activities– Once you have listed the major activities, a

subgroup will be asked to detail the steps in each activity

Page 75: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Basic Conceptual Dependency Relations

Page 76: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Additional Notation

Page 77: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

The Primitive Actions

Page 78: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Two Example Sentences

Page 79: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Group Work

Diagram the sentence:John took a plane to New York.

Diagram the sentence:John wondered who ate the cheese.

Page 80: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

SomeMoreExamples

Page 81: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Issues in Knowledge Representation We have examined several ways to represent

knowledge– Predicate calculus– Procedural, as in an expert system– Network, as in semantic nets, conceptual dependency

and conceptual graphs– Structured, as in frames and scripts

Particular problems arise with each type, we examine problems with more recent types– Hierarchies and inheritance – Exceptions

Page 82: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Considerations for Evaluating a Knowledge

Representation Naturalness, uniformity and

understandability

Degree to which knowledge is explicit (declarative) or embedded in procedural code

Modularity and flexibility of the knowledge base

Efficiency of knowledge retrieval and the heuristic power of the inference procedure

Page 83: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

No single knowledge representation method is ideally suited by itself for all tasks

Multiple knowledge representations: each tailored to a different subtask

Production Rules and Frames works well in practice

Object-Oriented Knowledge Representations– Hypermedia

Page 84: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Multiple KnowledgeRepresentations

Rules + Frames Others

Knowledge Representation Must Support

Acquiring knowledge Retrieving knowledge Reasoning

Page 85: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

ExperimentalKnowledge

Representations Cyc

NKRL

Spec-Charts Language

Page 86: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

The Cyc System Attempt to represent a substantial amount

of common sense knowledge Bold assumptions: intelligence needs a

large amount of knowledge Need a large knowledge base Cyc over time is developing as a repository

of a consensus reality - the background knowledge possessed by a typical U.S. resident

There are some commercial applications based on portions of Cyc

Page 87: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

NKRL

Narrative Knowledge Representational Language (NKRL)

Standard, language-independent description of the content of narrative textual documents

Can translate natural language expressions directly into a meaningful set of templates that represent the knowledge

Page 88: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Interchange Format (KIF)

To Share Knowledge and Interact

Page 89: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

The Spec-Charts Language

Based on Conceptual Graphs: to Define Objects and Relationships

Restricted Form of Semantic Networks

Evolved into the Commercial Product - STATEMATE

Page 90: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Representation and

the Internet Hypermedia documents to encode knowledge

directly Hyperlinks Represent Relationships MIKE (Model-based and Incremental Knowledge

Engineering Formal model of expertise: KARL Specification

Language Semantic networks: Ideally suited for

hypermedia representation Web-based Distributed Expert System (Ex-W-

Pert System) for sharing knowledge-based systems and groupware development

Page 91: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Knowledge Representation and NLP Quilian, an early researcher in semantic nets,

suggested they could be the basis of natural language understanding

• Graphs proved to be too general and additional standardization of structure had to be introduced, as in conceptual dependency and conceptual graphs

Page 92: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Representing Uncertainty:An Overview

Dealing with Degrees of Truth, Degrees of Falseness in ES

Uncertainty

– When a user cannot provide a definite answer

– Imprecise knowledge

– Incomplete information

Page 93: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Several Approaches Related to Mathematical and Statistical Theories

Bayesian Statistics

Dempster and Shafer's Belief Functions

Fuzzy Sets

Uncertainty

Page 94: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Uncertainty in AI

Approximate Reasoning, Inexact Reasoning

Page 95: Knowledge n Knowledge is a collection of specialized facts, procedures and judgment rules High Low Degree of Abstraction Quantity Knowledge Information

Relevant Information is Deficient

in One or More Information is partial Information is not fully reliable Representation language is inherently imprecise Information comes from multiple sources and it

is conflicting Information is approximate Non-absolute cause-effect relationships exist

Can include probability in the rules IF the interest rate is increasing, THEN the price

of stocks will decline (80% probability)