+ All Categories
Home > Documents > MNFIT272 - Høst 2002, Leksjon 7

MNFIT272 - Høst 2002, Leksjon 7

Date post: 08-Jan-2016
Category:
Upload: stacy
View: 18 times
Download: 0 times
Share this document with a friend
Description:
MNFIT272 - Høst 2002, Leksjon 7. Case-basert resonnering Planlegging. Case-Based Reasoning Motivation:. From. cognitive science:. •. A theory of understanding,. problem solving and learning. in human beings. •. From. knowledge-based systems:. - PowerPoint PPT Presentation
48
1 MNFIT272 - Høst 2002, Leksjon 7 Case-basert resonnering Planlegging
Transcript
Page 1: MNFIT272 - Høst 2002, Leksjon 7

1

MNFIT272 - Høst 2002, Leksjon 7

• Case-basert resonnering

• Planlegging

Page 2: MNFIT272 - Høst 2002, Leksjon 7

2

Case-Based Reasoning

Motivation:

• From cognitive science:

A theory of understanding, problem solving and learning in human beings. • From knowledge-based systems: Deficiency of purely generalization-based methods for intelligent computer programs.

Page 3: MNFIT272 - Høst 2002, Leksjon 7

3

KBS - Development trends

Control Knowledge

Heuristic Rules

Specific Cases

Deep Knowledge

Page 4: MNFIT272 - Høst 2002, Leksjon 7

4

RE

TA

IN

Problem

General Knowledge

Past Cases

Suggested Solution

REVISE

Tested/ Repaired Case

Confirmed Solution

Solved Case

New Case

New Case

Retrieved Case

RE

US

E

The CBR Cycle

LearnedCase

RETRIEVE

Page 5: MNFIT272 - Høst 2002, Leksjon 7

5

problem solving and learning from experience

retrieve reuse retain

identify features

initially match

collect descriptors

enfer descriptors

interpret problem

calculate similarity

explain similarity

follow direct indexes

search general knowledge

search index structure

copy

revise

copy solution

modify solution method

modify solution

evaluate in real world

extract

index

integrate extract relevant descriptors

update general knowledge

extract solutions

adjust indexes

determine indexes

rerun problem

generalize indexes

extract solution method

adapt

evaluate in model

search

select

extract justifications

evaluate by teacher

evaluate solution

repair fault

case-based reasoning

use selection criteria

elaborate explanations

self- repair

user- repair

copy solution method

Page 6: MNFIT272 - Høst 2002, Leksjon 7

6

Case-based approaches • Instance-based reasoning/learning • Memory-based reasoning/learning • Case-based reasoning/learning (typical) • Analogical reasoning/learning

Page 7: MNFIT272 - Høst 2002, Leksjon 7

7

Instance-based methods

• Motivated by classical machine learning research • Addresses classification tasks • A concept (class) is defined by its set of exemplars: Concept space = Instance space + Similarity metric • Representation is attribute-value pairs • Knowledge-poor method • 'IBL' framework (Kibler&Aha) contains - Similarity function - Classification function - Concept decsription updater

Page 8: MNFIT272 - Høst 2002, Leksjon 7

8

IBL algorithms - Experiment (Kibler&Aha 87)

• Three learning algorithms compared:

- Proximity:Retain all new examples

- Growth:Retain only examples that werenot correctly classified

- Shrink:Start with all examples, removethose correctly classified by others

Page 9: MNFIT272 - Høst 2002, Leksjon 7

9

Test Results

Page 10: MNFIT272 - Høst 2002, Leksjon 7

10

Memory-Based Reasoning

• Motivated by parallel computer architectures • Adds parallelity to instance-based approach • Computes distance between input and all exisiting instances • Best match algorithm takes constant time • Syntax-based: Trades knowledge for 'brute' power RETRIEVE: 1. Count feature occurences; this determines relevant features. 2. Generate similarity metric from counts 3. Calculate dissimilarities 4. Find best matches

Page 11: MNFIT272 - Høst 2002, Leksjon 7

11

MBR-talk (Stanfill&Waltz 86)

• Learns to pronounce english words • A word is represented in a 9-letter window ****file* f + ***file** A 1 **file*** l - *file**** - - • Compared to NET-talk

Page 12: MNFIT272 - Høst 2002, Leksjon 7

12

Experiment - 4438 words in database - 100 new words in test set MBR-talk Dictionary evaluation: • Correct phonemes: 86 % of cases • Correct word 43 % of cases Human judgement of word pronounciation: • Good: 47% Net-talk After 30.000 trials: • Correct phonemes: 78 % of cases

Page 13: MNFIT272 - Høst 2002, Leksjon 7

13

Japan

• Massive parallel computation

• Explores memory-based reasoning and neural networks, aimed at integration

• Testing of Central limit theorem:- Inaccuracy and noise in data has a

Gaussian distribution over large data setsLaw of large numbers:- The peak in a data distribution gets narrower as the size of the data set increases

(H. Kitano et. al. 93)

Page 14: MNFIT272 - Høst 2002, Leksjon 7

14

DmDialog- MBR for natural language understanding

Page 15: MNFIT272 - Høst 2002, Leksjon 7

15

Analogy-based methods

• Motivated by psychological research • Reuse of cross-domain cases • Emphasis on Reuse, not Retrieval • Computationally complex problem

Page 16: MNFIT272 - Høst 2002, Leksjon 7

16

Example

Page 17: MNFIT272 - Høst 2002, Leksjon 7

17

Relations vs. attributes

Page 18: MNFIT272 - Høst 2002, Leksjon 7

18

Case-based methods (in a 'typical' sense) • Motivated by learning for problem solving, rather than for general concept definitions. • Typically uses some background knowledge in its Retrieval, Reuse, and/or Learning methods. • A range of different approaches distinguished by - task and domain type addressed - memory organization (case storage, indexes) - case retrieval, reuse, and learning method

Page 19: MNFIT272 - Høst 2002, Leksjon 7

19

CBR - History

Theoretical: Schank/Abelson 77: Scripts Rissland 80: Precedents in legal reasoning Schank 82: Dynamic memory, MOPs Carbonell 83: Transform./Derivational analogy Kolodner 83: Episodic memory Schank 86: Explanation patterns Richter 90: Similarity and uncertainty

Some systems: Lebowitz 80: IPP - nat. language Kolodner 83: CYRUS - info retrieval Simpson 85: MEDIATOR - negotiation Hammon 86: CHEF - cooking planning Sycara 87: PERSUADER - negotiation Ashley/Rissland 87: HYPO - law interpret. Bareiss/Porter 88: PROTOS - medicaldiagnosis Koton 89: CASEY - medical diagnosis Goel/Chandra 89: KRITIK - mechanical design Hinrichs/Kolodner 91: JULIA - meal planning Aamodt 91: CREEK - mud diagnosis Leake/Schank 92: ACCEPTER - explaining Lopez/Plaza 93: BOLERO - medical diagnosis Althoff/Wess/Richter 93 : PATDEX - technical diagnosis Oehlmann/Sleeman94: IULIAN - discovery, planning Esprit-project -95 INRECA - CBR and induction

excerpt

Page 20: MNFIT272 - Høst 2002, Leksjon 7

20

Transformational and Derivational ”analogy”(J. Carbonell 83)

- Transformational

Page 21: MNFIT272 - Høst 2002, Leksjon 7

21

- Derivational

Page 22: MNFIT272 - Høst 2002, Leksjon 7

22

Problem areas • Memory organization - case structure - index structure - integration of general domain knowledge

• Retrieval - use of indexes - feature relevance - similarity assessment - use of general knowledge - use of previous cases

• Reuse - transfer of solution - adaptation of solution - transfer (and adaptation) of solution method

• Learning - feature extraction - as separate cases vs. splitted up - index learning - generalization - forgetting

Page 23: MNFIT272 - Høst 2002, Leksjon 7

23

Memory organization • Case representation formalism - attribute-value sets

PROTOS, CASEY - structured representations

CHEF • Flat (or almost flat) index structures - feature-case (or via category)

PROTOS • Hierarchical index structures - dynamic episodic memory CYRUS, CASEY

Page 24: MNFIT272 - Høst 2002, Leksjon 7

24

Dynamic Memory(Scank & Kolodner 83)

Page 25: MNFIT272 - Høst 2002, Leksjon 7

25

Example

Page 26: MNFIT272 - Høst 2002, Leksjon 7

26

Retrieval • Indexing method • Indexing vocabulary • Index selection • Retrieval algortihm • Matching

Page 27: MNFIT272 - Høst 2002, Leksjon 7

27

Indexing method • Context independent indexing - feature relevance a statistic measure

- global similarity assessment - knowledge-poor - learning: relevance matrix • Context dependent indexing - feature relevance

- local similarity assessment - usually knowledge-intensive - learning: feature relevance, vocabulary

Page 28: MNFIT272 - Høst 2002, Leksjon 7

28

Index vocbulary • Purpose: Recall most useful cases - depends on tasks, domain characteristics • Indexes may come from - observed features - derived (inferred) features

• Good indexes are - predictive - discriminatory - appropriately abstract

• Defining a vocabulary is done by - examining previous cases

- a thorough analysis of domain and task

Page 29: MNFIT272 - Høst 2002, Leksjon 7

29

Index selection

• What should be indexed? - solutions - successful results - failed results • Index selection methods - predefined indexes - select from a predefined set (or sets) - discrimination hierarchy - balanced, statistical critera - biased, context-dependant criteria - explanation-based

Page 30: MNFIT272 - Høst 2002, Leksjon 7

30

Matching • After or during retrieval • Numeric matching function - predefined index set - dynamically selected index set

- select highest number (nearest neighbour) • Heuristic matching - take first acceptable - select best in set

Page 31: MNFIT272 - Høst 2002, Leksjon 7

31

The ”knowledge-intensiveness” scale of CBR

• No explicit gen. knowledge• A lot of cases• A case is a data record

• Simple case structures• Global similarity metric• No adaptation• Learning is simple storage

• Substantial gen. knowledge• Not very many cases• A case is a user experience

• Complex case structures• Sim. assessm. is an explanation• Knowledge-based aptation• Knowledge-based learning

CREEK

IBL/IBRMBR

Page 32: MNFIT272 - Høst 2002, Leksjon 7

32

Data intensive - Knowledge poor- A case is a data record- Similarity asessment based on simple metric

Knowledge intensive - Data Poor- A case is a user experience- Similarity asessment is an explanation process

Both knowledge and data intensive- Multiple case contents- Multiple similarity asessment methods

CBR methodsThe Data-- Knowledge Dimension

Page 33: MNFIT272 - Høst 2002, Leksjon 7

33

CREEK

• Case-based reasoning in open and weak theory domains; diagnosis problems (appl.: oil-well drilling, medicine) • Problem description is problem solving goal, solution constraints, and list of findings Solution is (one or more) diagnoses and repairs • Knowledge types are - case memory of findings to solutions, indexed by relevant findings; cross-case indexes to neighbouring cases and between diagnosis and treatments - general domain knowledge as deep relationships or heuristiv rules - all knowledge integrated into a single semantic network of concepts and relations - each concept and each relation explicitly represented as frames

Page 34: MNFIT272 - Høst 2002, Leksjon 7

34

thing

case039

case112

case76

generic concepts

cases

domain conceptsgenera

CreekL Knowledge Types

l

Page 35: MNFIT272 - Høst 2002, Leksjon 7

35

thing

domain-object

case

car

case#54van

electrical-fault

battery-fault

engine-test

engine

test-procedure

engine-fault

turning-of

-ignition-key

test-step

battery-low

starter-motor

engine-turns

diagnostic-case

diagnosis

solved

diagnostic-hypothesis

wheel

vehicle

transportation

hsc

hp

hsc

hschsc

hsc

hsc

hi

hi

hp

hp

hphp

case-of

status-of

hd

has-status

possible-status-of

tested-by

has-function

tested-by

batteryinstance-of

has-fault

hsc

tested-by

hsc

test-for

test-for

has-fault

goal

find-faultfind-treatment

hschsc

hsc

hsc

hsc

has-state

observed-finding

subclass-of

car-fault

fuel-system

fuel-system-fault

hsc

hp

has-fault

has-outputdescribed-in

part-of

hsc

electrical

-system

broken-carburettor-membranehsc

hschas-fault

has-engine-status

hi

hd

starter-motor-turns

N-DD-234567

has-electrical-status

finding

subclass-ofsubclass-of

subclass-of

hsc

hp

- has subclass- has-instance- has-part- has-descriptor

Tangled CreekL Network

Page 36: MNFIT272 - Høst 2002, Leksjon 7

36

case#54instance-of value car-starting-case diagnostic-casehas-task value find-car-starting-faulthas-status value solvedof-car value N-DD-234567has-fault value carburettor-valve-stuckhas-fault-explanation value

has-repair value replace-carburettor-membranehas-electrical-status value battery-low starter-motor-turnshas-engine-status value engine-turns engine-does-not firehas-ignition-status value spark-plugs-okhas-weather-condition value low-temperature sunny has-driving-history value hard-driving

carburettor-valve-stuck causes too-rich-gas-mixture-in-sylinder causes no-chamber-ignition causes engine-does-not-fire

Page 37: MNFIT272 - Høst 2002, Leksjon 7

37

fuel-system-fault observable-state

too-rich-gas-mixture-in-cylinder

carburettor

carburettor-valve-stuck

no-chamber-ignition

engine-does-not-fire

water-in-gas-mixture

water-in-gas-tank

fuel-system

carburettor -fault

enigne-turns

carburettor-valve-faultobserved-finding

hschsc

hp

hi

hi

hi

causes

hsc has-fault

hsc

has-fault condensation-in-gas-tank

Explanation Structure

hsc = has-subclasshi = has-instance

hsc

causes causes

causes

causes

causes

causes+bni

hi

Page 38: MNFIT272 - Høst 2002, Leksjon 7

38

• Retrieve - context focusing by spreading activation in the semantic netowrk, followed by - index retrieval of possible cases, followed by - explanation-driven selection of best match

• Reuse - attempts to copy solution from matched case - explanation-driven adaptation, by combining explanantion of retrieved case with general domain model

• Revise - user evaluates and gives feedback - case status info kept and used in case selection and reuse

• Retain - attempts to merge the two cases - stores relevant findings, sucessful and failed solutions, and their explanations - updating the strength of indexes

CREEK

Page 39: MNFIT272 - Høst 2002, Leksjon 7

39

CBR systems development

• Two basic approaches: - bottom-up from data - top-down knowledge modeling How to combine the two is the big issue. • For a particular application, a breakdown of knowledge and information into case- specific and general is needed. There has to be a number of cases available. • Knowledge acquisition problem is in general still hard. KA methodologies needs to incorporate the 'case view'.

Page 40: MNFIT272 - Høst 2002, Leksjon 7

40

Help Desk Applications

• General help and advice, fault finding, maintenance, manual browsing, ... • Primary CBR application type so far • Facilitates the retrieval of similar past cases, and leaves the reuse of cases to the user • Data and information get grouped according to the problem situations where they occurred. • Market potential due to service costs, complexity of equipment, job instability, training of personell, ... • Learing ability in CBR enables capturing of new experience as a 'rutine operation'.

Page 41: MNFIT272 - Høst 2002, Leksjon 7

41

Potential problems

• Capturing expertise is difficult. CBR helps solving some problems but also introduces some. • Building case bases from exisiting data bases is difficult. Data mining methods may help. • Methods for sustained learning are not welll developed yet. • Many cases are often needed for sufficient coverage of domain. General knowledge may help here. • Development tools are only 1. generation

Page 42: MNFIT272 - Høst 2002, Leksjon 7

42

A stepwise approach

• Start by viewing cases as information, i.e. to be interpreted and reasoned with by the user. This enables information that normally is scattered and fragmented to be retrieved on the basis of previous situations where it was created or used. • Once the manual reuse of cases has been tested, additional reasoning and learning capabilities should be added.

Page 43: MNFIT272 - Høst 2002, Leksjon 7

43

Some applications • CLAVIER (Lockheed) - Autoclave loading • CaseLine (British Airways) - Aircraft maintenance and fault finding • PRISM (Chase Manhattan Bank) - Telex classifier and router • 'Valve assistant' (General Dynamics) - Pipeline valve selection • SMART (Compaq) - Compaq products diagnosis • SQUAD (NEC Corp) - Management of SW quality control knowledge • QDES (Nippon Steel) - Design reuse

Page 44: MNFIT272 - Høst 2002, Leksjon 7

44

Some commercial tools • KATE-CBR (Acknosoft) • ART-Enterprise (Brightware) • ESTEEM (Esteem Software Inc.) • Easy Reasoner (Haley Enterprise) • CasePower (Inductive Solutions) • ReMind (Intelligent Appl. /Cognitive Systems) • CasePoint (Inference) • ReCall (ISoft) • CBR-Works (TechInno) • ...

Page 45: MNFIT272 - Høst 2002, Leksjon 7

45

Planlegging i blokk-verdenen

• Blokk-verdenen er en enkel modell, ofte benyttet for å diskutere generelle prinsipper for problemløsning i interaksjon med den 'utenforliggende' verden.

• Vanlig representasjon: En form for predikatlogikk- ofte referert til som STRIPS deklarasjoner og operatorer.

• Planlegging betraktes som tilstandsrom-søking:

- Det fins en beskrivelse av mulige tilstander- Det fins et sett av operatorer som er istand til å produsere nye tilstander- Operatorene benyttes for å søke etter en vei fra start- til slutt-tilstanden (mål-tilstanden)- En plan er settet av operatorer langs en slik vei.

Page 46: MNFIT272 - Høst 2002, Leksjon 7

46

Planlegging, generelt

• En plan er en sekvens av aksjoner

• Søkeromeet kan bli meget komplekst

- en aksjon kan være avhengig av at en annen er eller ikke er utført

- må ta med endrindringer aksjoner medfører i den virkelig verden

• "The frame problem"er problemet med å ta hensyn til ting som ikkeendres etter at en aksjon (et trinn i en plan) er utført

- et hovedproblem innen AI planlegging, og spesielt i forbindelse med planlegging av robot-aksjoner

Page 47: MNFIT272 - Høst 2002, Leksjon 7

47

Planleggingsproblemer, i tillegg:

• Generering av mulig planer

• Rette opp igjen en mislykket plan, spesielt hvis noe uforutsett inntreffer

• Lære av å ha løst et planleggingsproblem

- generalisere en plan

- lage makro-operatorer

- lagre og gjenbruke tidligere konkrete planer

Page 48: MNFIT272 - Høst 2002, Leksjon 7

48

STRIPS

• Planleggingssystem utviklet for enkle robot-aksjoner

• Operatorer lagres som

- et sett av forhåndsbetingelser- en add liste som beskriver nye tilstander etter at operatoren er anvendt- en delete liste som beskriver tilstander som ikke lenger holder etter at operatoren er anvendt

• Lærer ved å forme makro-operatorer

• Løser konflikterende del-mål ved hjelp av en triangel-tabell


Recommended