Docsity

Knowledge Representation - Lecture Notes | CSCI 561, Study notes of Computer Science

Partial preview of the text

Download Knowledge Representation - Lecture Notes | CSCI 561 and more Study notes Computer Science in PDF only on Docsity!

Knowledge Representation

Introduction to Artificial Intelligence

Hadi Moradi [email protected]

Last Lecture^ „

Planning

Components of Expert Systems

The Expert System^ The Expert System

Knowledge

Base

User

Workstation

ExpertAdvice

User InterfacePrograms

User InterfacePrograms

InferenceInferenceEngineEngineProgramProgram

Expert System DevelopmentExpert System Development

Workstation

KnowledgeEngineering

KnowledgeKnowledgeAcquisitionAcquisitionProgramProgram

Expert and/or Knowledge Engineer

Knowledge Engineer

„^

Populates KB with facts and relations „^

Must study and understand domain to pick importantobjects and relationships „^

Main steps:^ „

Identify the task „ Assemble the relevant knowledge „ Decide on vocabulary of predicates, functions & constants „ Encode general knowledge about domain „ Encode description of specific problem instance „ Pose queries to inference procedure and get answers

Main Steps

Assemble the relevant knowledge: „

Gather information

„^

Select relevant information:

„^

VLSI example: „^

Low frequency: no need to consider stray capacitance „^

High frequency: need to consider stray capacitance

„^

Sleeping students example:

Main Steps

Decide on vocabulary of predicates, functions& constants „

Knowledge engineering style „^

Programming style „^

Pit as an object or a unary predicate on square? „^

Agent’s orientation as function or predicate?

„^

Known as

ontology

Main Steps

Encode description of specific probleminstance „

Write simple atomic sentences already part ofthe ontology.

„^

Example: Wumpus world

Main Steps

Pose queries to inference procedure and getanswers „

Actually use it.

„^

Note: in the first tries, you may get wronganswers on the test data.

Debug the knowledge base. „

Unanswerable queries: „^

Missing axioms „^

Weak axioms

Knowledge engineering vs.programming

Less work: just specify objects and relationshipsknown to be true, but leave it to the inferenceengine to figure out how to solve a problem usingthe known facts.

Properties of good knowledgebases „^

Expressive „^

Concise „^

Unambiguous „^

Context-insensitive „^

Effective „^

Correct „^

Trade-offs: e.g., sacrifice some correctness if it

enhances brevity.

Pitfall: design KB for humanreaders

„

KB should be designed primarily forinference procedure!

„

e.g.,

VeryLongName predicates:

BearOfVerySmallBrain(Pooh) does not allow

inference procedure to infer that Pooh is abear, an animal, or that he has a very smallbrain, …

In other words:BearOfVerySmallBrain(pooh) = x(pooh)

Pitfall: design KB for humanreaders

BearOfVerySmallBrain(Pooh) = x(pooh)Rather, use:Bear(Pooh) ∀^

b, Bear(b)

Animal(b)

∀^

a, Animal(a)

PhysicalThing(a)

[^ See AIMA pp. 220-221 for full example

]

Ontology^ „

Collection of concepts and inter-relationships

„

Widely used in the database communityto “translate” queries and conceptsfrom one database to another, so thatmultiple databases can be usedconjointly (database federation)

OntologyExample

Khan & McLeod, 2000