Case Based Reasoning PKB - Antonie. Faced this situation before? Oops the car stopped. –What could have gone wrong? Aah.. Last time it happened, there.

Slides:



Advertisements
Similar presentations
Susan Craw Room SAS B18a Case Based Reasoning Advanced Knowledge Based Systems.
Advertisements

Lecture 3: CBR Case-Base Indexing
Case Based Reasoning Lecture 1: Introduction Professor Susan Craw
Lecture 2: CBR Case Retrieval
Lecture 5: Reuse, Adaptation and Retention
Heuristic Search techniques
Chapter 5: Introduction to Information Retrieval
ICT IGCSE Expert Systems.
Case Tools Trisha Cummings. Our Definition of CASE  CASE is the use of computer-based support in the software development process.  A CASE tool is a.
Rule Based Systems Michael J. Watts
Application of Inductive Learning and Case-Based Reasoning for Troubleshooting Industrial Machines - Michel Manago and Eric Auriol 컴퓨터공학과 신수용.
The Comparison of the Software Cost Estimating Methods
Artificial Intelligence MEI 2008/2009 Bruno Paulette.
Introduction To System Analysis and Design
Case-Based Reasoning, 1993, Ch11 Kolodner Adaptation method and Strategies Teacher : Dr. C.S. Ho Student : L.W. Pan No. : M Date : 1/7/2000.
CHEF (Hammond, 1987) CHEF is a case-based planner, which can output new recipes given particular ingredients and tastes. Recipes are viewed as plans. They.
SESSION 10 MANAGING KNOWLEDGE FOR THE DIGITAL FIRM.
Artificial Intelligence
Knowledge-based Systems
Case Based Reasoning Melanie Hanson Engr 315. What is Case-Based Reasoning? Storing information from previous experiences Using previously gained knowledge.
5/20/1999 Li-we Pan1 指導老師 : 陳錫明教授 學生:潘立偉 學號: M 日期: 5/20/1999 Myung-Kuk Park, Inbom Lee, Key-Mok Shon Expert Systems with Application 15(1998), p69~75.
Case-based Reasoning System (CBR)
Case-based reasoning.
EXPERT SYSTEMS Part I.
Intelligent Diagnosis Systems Meir Kalech. Course Outline 1. Intelligent diagnosis systems 2. Model-based diagnosis: basics and definitions 3. Resolution.
Case-Based Reasoning Ramon López de Mántaras Badia IIIA - CSIC
Instance Based Learning Bob Durrant School of Computer Science University of Birmingham (Slides: Dr Ata Kabán) 1.
Building Knowledge-Driven DSS and Mining Data
1 1 File Systems and Databases Chapter 1 Prof. Sin-Min Lee Dept. of Computer Science.
Sepandar Sepehr McMaster University November 2008
Strong Method Problem Solving.
Expert Systems Infsy 540 Dr. Ocker. Expert Systems n computer systems which try to mimic human expertise n produce a decision that does not require judgment.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Issues with Data Mining
CBR for Design Upmanyu Misra CSE 495. Design Research Develop tools to aid human designers Automate design tasks Better understanding of design Increase.
General Purpose Case-Based Planning. General Purpose vs Domain Specific (Case-Based) Planning General purpose: symbolic descriptions of the problems and.
 Knowledge Acquisition  Machine Learning. The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
Explanation Facility دكترمحسن كاهاني
Course Instructor: K ashif I hsan 1. Chapter # 2 Kashif Ihsan, Lecturer CS, MIHE2.
Case-based Reasoning A type of analogical reasoning
CS 682, AI:Case-Based Reasoning, Prof. Cindy Marling1 Chapter 3: Reasoning Using Cases In this chapter, we look at how cases are used to reason We’ve already.
Introduction To System Analysis and Design
Large-Scale Case-Based Reasoning: Opportunity and Questions David Leake School of Informatics and Computing Indiana University.
Rapid software development 1. Topics covered Agile methods Extreme programming Rapid application development Software prototyping 2.
1 Introduction to Software Engineering Lecture 1.
Case study of Several Case Based Reasoners Sandesh.
1 Instance Based Learning Ata Kaban The University of Birmingham.
Tutoring & Help System CSE-435 Nicolas Frantzen CSE-435 Nicolas Frantzen.
1 Chapter 3 1.Quality Management, 2.Software Cost Estimation 3.Process Improvement.
CS 682, AI:Case-Based Reasoning, Prof. Cindy Marling1 Chapter 11: Adaptation Methods and Strategies Adaptation is the process of modifying a close, but.
GPU-Accelerated Computing and Case-Based Reasoning Yanzhi Ren, Jiadi Yu, Yingying Chen Department of Electrical and Computer Engineering, Stevens Institute.
Uncertainty Management in Rule-based Expert Systems
Knowledge Learning by Using Case Based Reasoning (CBR)
Strategies for Distributed CBR Santi Ontañón IIIA-CSIC.
1 Knowledge Acquisition and Learning by Experience – The Role of Case-Specific Knowledge Knowledge modeling and acquisition Learning by experience Framework.
AI in Knowledge Management Professor Robin Burke CSC 594.
(c) R. Bergmann, University of Hildesheim UNIVERSITÄT H I L D E S H E I MH I L D E S H E I M Introduction to Case-Based Reasoning Prof.
Software Quality Assurance SOFTWARE DEFECT. Defect Repair Defect Repair is a process of repairing the defective part or replacing it, as needed. For example,
CS507 Information Systems. Lesson # 11 Online Analytical Processing.
RULES Patty Nordstrom Hien Nguyen. "Cognitive Skills are Realized by Production Rules"
Artificial Intelligence
Tutoring & Help Systems Deepthi Bollu for CSE495 10/31/2003.
Introduction Characteristics Advantages Limitations
3.3. Case-Based Reasoning (CBR)
K Nearest Neighbors and Instance-based methods
Taxonomy of Problem Solving and Case-Based Reasoning (CBR)
Case-Based Reasoning BY: Jessica Jones CSCI 446.
Lecture 6: Knowledge Application Systems
K.S. School of Business Management (MIS)
Presentation transcript:

Case Based Reasoning PKB - Antonie

Faced this situation before? Oops the car stopped. –What could have gone wrong? Aah.. Last time it happened, there was no petrol. –Is there petrol? Yes. –Oh but wait I remember the tyre was punctured (ban bocor) This is the normal thought process of a human when faced with a problem which is similar to a problem he/she had faced before.

How do we solve problems? By knowing the steps to apply –from symptoms/gejala to a plausible diagnosis But not always applying causal knowledge –sebab - akibat How does an expert solve problems? –uses same “book learning” as a novice –but quickly selects the right knowledge to apply Heuristic knowledge (“rules of thumb”) –“I don’t know why this works but it does and so I’ll use it again!” –difficult to elicit

So what? Reuse the solution experience when faced with a similar problem. This is Case Based Reasoning (CBR)! –memory-based problem-solving –re-using past experiences Experts often find it easier to relate stories about past cases than to formulate rules

What’s CBR? To solve a new problem by remembering a previous similar situation and by reusing information and knowledge of that situation Ex: Medicine –doctor remembers previous patients especially for rare combinations of symptoms Ex: Law –English/US law depends on precedence –case histories are consulted Ex: Management –decisions are often based on past rulings Ex: Financial –performance is predicted by past results

Definitions of CBR Case-based reasoning is […] reasoning by remembering - Leake, 1996 A case-based reasoner solves new problems by adapting solutions that were used to solve old problems - Riesbeck & Schank, 1989 Case-based reasoning is a recent approach to problem solving and learning […] - Aamodt & Plaza, 1994

History Roots of CBR is found in the works of Roger Shank on dynamic memory. Other trails into the CBR field has come from –Analogical reasoning –Problem solving and experimental learning within philosophy and psychology The first CBR system, CYRUS developed by Janet Kolodner at Yale university.

The Limitations of Rules The success of rule-based expert systems is due to several factors: –They can mimic some human problem-solving strategies –Rules are a part of everyday life, so people can relate to them However, a significant limitation is the knowledge elicitation bottleneck –Experts may be unable to articulate their expertise Heuristic knowledge is particularly difficult –Experts may be too busy…

CBR Cycle

R 4 Cycle REUSE propose solutions from retrieved casesREVISE adapt and repair proposed solution RETAIN integrate in case-baseRETRIEVE find similar problems

CBR System Components Case-base –database of previous cases (experience) Retrieval of relevant cases –index for cases in library –matching most similar case(s) –retrieving the solution(s) from these case(s) Adaptation of solution –alter the retrieved solution(s) to reflect differences between new case and retrieved case(s)

CBR Assumption(s) The main assumption is that: –Similar problems have similar solutions: e.g., an aspirin can be taken for any mild pain Two other assumptions: –The world is a regular place: what holds true today will probably hold true tomorrow (e.g., if you have a headache, you take aspirin, because it has always helped) –Situations repeat: if they do not, there is no point in remembering them (e.g., it helps to remember how you found a parking space near that restaurant)

Two big tasks of CBR Classification tasks (good for CBR) –Diagnosis - what type of fault is this? –Prediction / estimation - what happened when we saw this pattern before? Synthesis tasks (harder for CBR) –Engineering Design –Planning –Scheduling

Technical Diagnosis of Car Faults

Case Representation Flat feature-value list Object Oriented representation Graph representation The choice of representation is –Dependent on requirements of domain and task –Structure of already available case data

Problem to be solved

How CBR solves problems New problem can be solved by –retrieving similar problems –adapting retrieved solutions Similar problems have similar solutions ? S SS S S S S S S P P P P P P P P P X

CBR Knowledge Containers Cases –lesson to be learned –context in which lesson applies Description Language –features and values of problem/solution Retrieval Knowledge –features used to index cases –relative importance of features used for similarity Adaptation Knowledge –circumstances when adaptation is needed –alteration to apply

Corporate Memory Cases from database, archive,... Issues –case bias? coverage? –description language e.g. agreement on terms Case-base cannot contain all formulations –good coverage –prototypical and exceptional cases Opportunity for multiple sources –shared knowledge across companies

New Car Diagnosis Problem A new problem is a case without a solution part Not all problem features must be known –same for cases –Problem Symptom: brakelight does not work Car: Ford Fiesta Year: 1997 Battery: 9.2v Headlights: undamaged HeadlightSwitch: ? Feature Value New

Compare new problem to each case Select most similar Similarity is most important concept in CBR –When are two cases similar? –How are cases ranked according to similarity? Similarity of cases –Similarity for each feature Depends on feature values Retrieving A Car Diagnosis Case New Problem Case Case 1 Similar?

Similarity Computation for case 1 Figure Credit: R. Bergmann, University of Kaiserslautern

Similarity Computation for case 2 Figure Credit: R. Bergmann, University of Kaiserslautern

Similarity Measurement Purpose: To select the most relevant case Basic Assumption: Similar problems have similar solutions Similarity value between 0 and 1 are assigned for feature value pairs E.g.: Feature: Problem Front Light does not work Break Light does not work.8 Front Light does not work Engine doesn’t start.4

Similarity Measurement Feature: Battery Voltage Different features have different importance Two kinds of Similarity Measures –Local Similarity – similarity on feature level –Global Similarity - similarity on case or object level

Calculating Feature Similarity Distances between values of individual features –problem and case have values p and c for feature f –Distance for Numeric features d f (problem,case) = |p - c|/(max difference) –Distance for Symbolic features d f (problem,case)= 0 if p = c = 1 otherwise Similarity f (problem,case) = 1 - d Degree of similarity is between 0 and 1

Reuse Solution from Case 1 New Problem Symptom: brakelight does not work Car: Ford Fiesta Year: 1997 Battery: 9.2v Headlights: undamaged HeadlightSwitch: ? Problem Symptom: headlight does not work … Solution Diagnosis: headlight fuse blown Repair: replace headlight fuse –Solution to New Problem Diagnosis: headlight fuse blown Repair: replace headlight fuse –After Adaptation Diagnosis: brakelight fuse blown Repair: replace brakelight fuse Case 1

Matching strings exact match: two strings are similar if they are spelled the same way spelling check: compares the number of letters which are the same in two strings (Useful for strings consisting of one word only) word-count: counts the number of matching words of two cases. (Useful for strings consisting of several words).

Indexing: Why do we want an index? Efficiency –if similarity matching is computationally expensive Relevancy of cases for similarity matching Cases are pre- selected from case- base HighLow

What to index? Client Ref #: 64 Client Name: John Smith Address: 39 Union Street Tel: Photo: Age: 37 Occupation: IT Analyst Income: £ … Unindexed features Indexed features Case Features are: - Indexed - Unindexed

HighLow Decision Trees as an Index Solubility? Dose?? ? ? ? lowhigh <200>200

Re-Using Retrieved Solutions Single retrieved solution –Re-use this solution Multiple retrieved solutions –Vote/average of retrieved solutions Weighted according to –Ranking –Similarity Iterative retrieval –Solve components of the solution one at a time

How to Adapt the Solution Adaptation alters proposed solution: Null adaptation - copy retrieved solution –Used by CBR-Lite systems Manual or interactive adaptation –User adapts the retrieved solution (Adapting is easier than solving?) Automated adaptation –CBR system is able to adapt the retrieved solution –Adaptation knowledge required

Automated Adaptation Methods Substitution –change some part(s) of the retrieved solution –simplest and most common form of adaptation Transformation –alters the structure of the solution Generative –replays the method of deriving the retrieved solution on the new problem –most complex form of adaptation

Examples of Adaptation CHEF –CBR system to plan Szechuan recipes Hammond (1990) Substitution adaptation –substitute ingredients in the retrieved recipe to match the menu Retrieved recipe contains beef and broccoli New menu requires chicken and snowpeas Replace chicken for beef, snowpeas for broccoli Transformation adaptation –Add, change or remove steps in the recipe Skinning step added for chicken, not done for beef

Examples of Adaptation Car diagnosis example –Symptoms, faults and repairs for brake lights are analogous to those for headlight –Substitution: brake light fuse Planning example –Train journeys and flights are analogous –Transformation: flights need check-in step added

Retention What can be learned –New experience to be retained as new case –Representing the new case Contents of new case Indexing of new case Forgetting cases –For efficiency or because out of date –Deleting an old case Old is not necessarily bad Does it leave a gap?

Pros & Cons of CBR Advantages –solutions are quickly proposed derivation from scratch is avoided –domains do not need to be completely understood –cases useful for open-ended/ill-defined concepts –highlights important features Disadvantages –old cases may be poor –library may be biased –most appropriate cases may not be retrieved –retrieval/adaptation knowledge still needed

CBR Tool C4.5 Index K Nearest Neighbour Similarity Matching progress of retrieval Database Relevant Cases Most Similar Cases Vote Tcl for adaptation Gshadg hjshfd fhdjf hjkdhfs hjdshfl hfdjsfhdjs hjdhfl hsdfhl hd hdjsh hjsdkh hfds hhfkfd shk Gshadg hjshfd fhdjf hjkdhfs hjdshfl hfdjsfhdjs hjdhfl hsdfhl hd hdjsh hjsdkh hfds hhfkfd shk

CBR Resources Books –I. Watson. Applying Knowledge Management: Techniques For Building Corporate Memories. Morgan Kaufmann, –I. Watson. Applying Case-Based Reasoning: Techniques for Enterprise Systems. Morgan Kaufmann, CBR on the web – CBR Commercial Solutions –Orenge from –Kaidara Adviser from ( –eGain ( Customer Service & Contact Centre Software CBR Tools in our School –CBR-Works from –ReCall from –Weka from