SlideShare a Scribd company logo
Case Based Reasoning
Mohammad Amawi 1
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.
Mohammad Amawi 2
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
Mohammad Amawi 3
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
Mohammad Amawi 4
CBR Cycle
Mohammad Amawi 5
R4 Cycle
REUSE
propose solutions
from retrieved cases
REVISE
adapt and repair
proposed solution
CBR
RETAIN
integrate in
case-base
RETRIEVE
find similar
problems
Mohammad Amawi 6
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)
Mohammad Amawi 7
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
Mohammad Amawi 8
Technical
Diagnosis of
Car Faults
Mohammad Amawi 9
Problem to be solved
Mohammad Amawi 10
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
PPPP
P
P
P
X
Mohammad Amawi 11
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: brake light does not work
• Car: Ford Fiesta
• Year: 1997
• Battery: 9.2v
• Headlights: undamaged
• Headlight Switch: ?
Feature Value
New
Mohammad Amawi 12
• 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
CaseCaseCaseCaseCaseCaseCaseCase1
Similar?
Mohammad Amawi 13
Similarity Computation for case 1
Figure Credit: R. Bergmann, University of Kaiserslautern
Mohammad Amawi 14
Similarity Computation for case 2
Figure Credit: R. Bergmann, University of Kaiserslautern
Mohammad Amawi 15
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
Mohammad Amawi 16
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
12.6 13.6 12.6 6.7.9 .1
Mohammad Amawi 17
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
Mohammad Amawi 18
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
Mohammad Amawi 19
CBR Resources
• Books
– I. Watson. Applying Knowledge Management: Techniques For
Building Corporate Memories. Morgan Kaufmann, 2003.
– I. Watson. Applying Case-Based Reasoning: Techniques for
Enterprise Systems. Morgan Kaufmann, 1997.
• CBR on the web
– http://groups.yahoo.com/group/case-based-reasoning/
• CBR Commercial Solutions
– Orenge from www.empolis.com
– Kaidara Adviser from (www.kaidara.com)
– eGain (www.egain.com)
• Customer Service & Contact Centre Software
• CBR Tools in our School
– CBR-Works from www.empolis.com
– ReCall from www.isoft.fr
– Weka from www.cs.waikato.ac.nzMohammad Amawi 20

More Related Content

What's hot

Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Planning
PlanningPlanning
Planning
ahmad bassiouny
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
Amar Jukuntla
 
Lecture 26 local beam search
Lecture 26 local beam searchLecture 26 local beam search
Lecture 26 local beam search
Hema Kashyap
 
Hill climbing
Hill climbingHill climbing
Hill climbing
Mohammad Faizan
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
Mayank Jain
 
Ga
GaGa
Lecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceLecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial Intelligence
Kodok Ngorex
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
Megha Sharma
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Karthik Sankar
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
Syed Ahmed
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
Animesh Chaturvedi
 
Genetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceGenetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial Intelligence
Sinbad Konick
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
arunsingh660
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
zamakhan
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
Tajim Md. Niamat Ullah Akhund
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
Asst.prof M.Gokilavani
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
Sajan Sahu
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
Greedy Algorithm
Greedy AlgorithmGreedy Algorithm
Greedy Algorithm
Waqar Akram
 

What's hot (20)

Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Planning
PlanningPlanning
Planning
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
Lecture 26 local beam search
Lecture 26 local beam searchLecture 26 local beam search
Lecture 26 local beam search
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
Ga
GaGa
Ga
 
Lecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceLecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial Intelligence
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
Genetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceGenetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial Intelligence
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
Greedy Algorithm
Greedy AlgorithmGreedy Algorithm
Greedy Algorithm
 

Recently uploaded

4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Kaxil Naik
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens""Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
sameer shah
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
y3i0qsdzb
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
wyddcwye1
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
taqyea
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
mkkikqvo
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
ElizabethGarrettChri
 

Recently uploaded (20)

4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens""Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
 

Case based reasoning

  • 2. 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. Mohammad Amawi 2
  • 3. 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 Mohammad Amawi 3
  • 4. 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 Mohammad Amawi 4
  • 6. R4 Cycle REUSE propose solutions from retrieved cases REVISE adapt and repair proposed solution CBR RETAIN integrate in case-base RETRIEVE find similar problems Mohammad Amawi 6
  • 7. 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) Mohammad Amawi 7
  • 8. 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 Mohammad Amawi 8
  • 10. Problem to be solved Mohammad Amawi 10
  • 11. 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 PPPP P P P X Mohammad Amawi 11
  • 12. 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: brake light does not work • Car: Ford Fiesta • Year: 1997 • Battery: 9.2v • Headlights: undamaged • Headlight Switch: ? Feature Value New Mohammad Amawi 12
  • 13. • 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 CaseCaseCaseCaseCaseCaseCaseCase1 Similar? Mohammad Amawi 13
  • 14. Similarity Computation for case 1 Figure Credit: R. Bergmann, University of Kaiserslautern Mohammad Amawi 14
  • 15. Similarity Computation for case 2 Figure Credit: R. Bergmann, University of Kaiserslautern Mohammad Amawi 15
  • 16. 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 Mohammad Amawi 16
  • 17. 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 12.6 13.6 12.6 6.7.9 .1 Mohammad Amawi 17
  • 18. 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 Mohammad Amawi 18
  • 19. 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 Mohammad Amawi 19
  • 20. CBR Resources • Books – I. Watson. Applying Knowledge Management: Techniques For Building Corporate Memories. Morgan Kaufmann, 2003. – I. Watson. Applying Case-Based Reasoning: Techniques for Enterprise Systems. Morgan Kaufmann, 1997. • CBR on the web – http://groups.yahoo.com/group/case-based-reasoning/ • CBR Commercial Solutions – Orenge from www.empolis.com – Kaidara Adviser from (www.kaidara.com) – eGain (www.egain.com) • Customer Service & Contact Centre Software • CBR Tools in our School – CBR-Works from www.empolis.com – ReCall from www.isoft.fr – Weka from www.cs.waikato.ac.nzMohammad Amawi 20