Expert Systems Reasonable Reasoning An Ad Hoc approach.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

FT228/4 Knowledge Based Decision Support Systems
EXPERT SYSTEMS AND KNOWLEDGE REPRESENTATION Ivan Bratko Faculty of Computer and Info. Sc. University of Ljubljana.
Expert Systems Reasonable Reasoning An Ad Hoc approach.
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
1 Inferences with Uncertainty Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson Copyright 1998, Prentice Hall, Upper Saddle.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
Forward Chaining and Backward Chaining. Inference Engine cycles via a match-fire procedure Knowledge Base Database Fact:A isx MatchFire Fact:B isy Rule:
Inferences The Reasoning Power of Expert Systems.
Intelligent systems Lecture 6 Rules, Semantic nets.
Rule Based Systems Michael J. Watts
AI – CS364 Uncertainty Management 26 th September 2006 Dr Bogdan L. Vrusias
Chapter 12: Expert Systems Design Examples
Rule Based Systems Alford Academy Business Education and Computing
Chapter 11 Artificial Intelligence and Expert Systems.
1 5.0 Expert Systems Outline 5.1 Introduction 5.2 Rules for Knowledge Representation 5.3 Types of rules 5.4 Rule-based systems 5.5 Reasoning approaches.
CIS 430 ( Expert System ) Supervised By : Mr. Ashraf Yaseen Student name : Ziad N. Al-A’abed Student # : EXPERT SYSTEM.
Artificial Intelligence CAP492
1 Chapter 9 Rules and Expert Systems. 2 Chapter 9 Contents (1) l Rules for Knowledge Representation l Rule Based Production Systems l Forward Chaining.
Rules and Expert Systems
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
EXPERT SYSTEMS Part I.
Artificial Intelligence CSC 361
Sepandar Sepehr McMaster University November 2008
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.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
Artificial Intelligence Lecture 12. Knowledge-based problem solving  expert systems rule-based reasoning, heuristics  alternative approaches case-based.
Rule-Based Expert Systems. Expert Systems  Acknowledge that computers do not posses general knowledge (common sense)  Attempt to train computer in a.
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
Presented by Mohammad Saniee December 2, 2003
13: Inference Techniques
Copyright R. Weber INFO 629 Concepts in Artificial Intelligence Expert Systems Fall 2004 Professor: Dr. Rosina Weber.
Artificial Intelligence
School of Computer Science and Technology, Tianjin University
Knowledge based Humans use heuristics a great deal in their problem solving. Of course, if the heuristic does fail, it is necessary for the problem solver.
What Science Is and Is Not What is the goal of science?
Chapter 9: Rules and Expert Systems Lora Streeter.
 Architecture and Description Of Module Architecture and Description Of Module  KNOWLEDGE BASE KNOWLEDGE BASE  PRODUCTION RULES PRODUCTION RULES 
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
CSE (c) S. Tanimoto, 2002 Expert Systems 1 Expert Systems Outline: Various Objectives in Creating Expert Systems Integration of AI Techniques into.
Expert Systems.
Intro to Computation and AI Dr. Jill Fain Lehman School of Computer Science Lecture 6: December 4, 1997.
Reasoning about programs March CSE 403, Winter 2011, Brun.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Expert Systems. Expert systems Also known as ‘Knowledge-based systems’:  Computer programs that attempt to replicate the performance of a human expert.
AI Knowledge-Based Decision Support Expert Systems.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Artificial Intelligence
Forward and Backward Chaining
AD Lab Andrews-Dalkilic Data Exploration. AD Lab Outline Architecture What is Bioinformatics? Explore some bioinformatics problems and tools Talk about.
Expert System Seyed Hashem Davarpanah University of Science and Culture.
ITEC 1010 Information and Organizations Chapter V Expert Systems.
1 Chapter 13 Artificial Intelligence and Expert Systems.
Expert Systems Chapter Artificial IntelligenceChapter 82 Expert System p. 547 MYCIN (1976) see section 8.2 backward chaining + certainty factor.
Artificial Intelligence: Applications
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
Lecture 20. Recap The main components of an ES are –Knowledge Base (LTM) –Working Memory (STM) –Inference Engine (Reasoning)
KNOWLEDGE REPRESENTATION
Expert Systems by Melinda Smith - c  .
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
MYCIN  MYCIN was an early backward chaining expert system that used artificial intelligence to identify bacteria causing severe infections, such as bacteremia.
The Scientific Method.
EXPERT SYSTEMS AND KNOWLEDGE REPRESENTATION Ivan Bratko Faculty of Computer and Info. Sc. University of Ljubljana.
Presentation transcript:

Expert Systems Reasonable Reasoning An Ad Hoc approach

Problems with Logical Reasoning Brittleness: one axiom/fact wrong, system can prove anything (Correctness) Large proof spaces (Efficiency) “Probably” not representable (Representation) No notion of combining evidence Doesn’t provide confidence in conclusion.

Lecture Goals What is an expert system? How can they be built? When are they useful? General Architecture Validation: –How to know if they are right

Class News Quiz dates and homework dates updated: Extra day for probability hwk/quiz All homeworks must be typed

Expert System Attempt to model expert decision making in a limited domain Examples: medical diagnosis, computer configuration, machine fault diagnosis Requires a willing Expert Requires knowledge representable as rules –Doesn’t work for chess Preponderance of evidence for decision, not proof. (Civil law suits)

Why Bother? Reproduce Expertise: make available Record Expertise: experts die Combine expertise of many –Didn’t work Teach expertise –Didn’t work Expand application area of computers –What tasks can computers do?

Architecture Domain Knowledge as “if-then” rules Inference Engine –Backward chaining –Forward chaining Calculus for combining evidence –Construct all proofs, not just one Explanation Facility: can answer “why?”

MYCIN: rules, acquired from expert by interviewing. Blood disease diagnosis. Example rule: if stain of organism is gramneg and morphology is rod and aerobicity is aerobic then strongly suggestive (.8) that organism is enterocabateriacease. Rules matched well knowledge in domain: medical papers often present a few rules Rule = nugget of independent knowledge

Facts are not facts Morphology is rod requires microscopic evaluation. –Is a bean shape a rod? –Is an “S” shape a rod? Morphology is rod is assigned a confidence. All “facts” assigned confidences, from 0 to 1.

MYCIN: Shortliffe Begins with a few facts about patient –Required by physicians but irrelevant Backward chains from each possible goal (disease). Preconditions either match facts or set up new subgoals. Subgoals may involve tests. Finds all “proofs” and weighs them. Explains decisions and combines evidence Worked better than average physician. Never used in practice. Methodology used.

Examples and non-examples Soybean diagnosis –Expert codified knowledge in form of rules –System almost as good –When hundreds of rules, system seems reasonable. Autoclade placement –Expert but no codification Chess –Experts but no codification in terms of rules

Forward Chaining Interpreter Repeat –Apply all the rules to the current facts. –Each rule firing may add new facts Until no new facts are added. Comprehensible Trace of rule applications that lead to conclusion is explanation. Answers why.

Forward Chaining Example Facts: –F1: Ungee gives milk –F2: Ungee eats meat – F3: Ungee has hoofs Rules: –R1: If X gives milk, then it is a mammal –R2: If X is a mammal and eats meat, then carnivore. –R3: If X is a carnivore and has hoofs, then ungulate Easy to see: Ungee is ungulate.

Backward Chaining Start with Goal G1: is Ungee an ungulate? G1 matches conclusion of R3 Sets up premises as subgoals –G2: Ungee is carnivore –G3: Ungee has hoofs G3 matches fact F3 so true. G2 matches conclusion of R2. etc.

The good and the bad Forward chaining allows you to conclude anything Forward chaining is expensive Backward chaining requires known goals. Premises of backward chaining directs which facts (tests) are needed. Rule trace provides explanation.

Simple Confidence Calculus This will yield an intuitive degree of belief in system conclusion. To each fact, assign a confidence or degree of belief. A number between 0 and 1. To each rule, assign a rule confidence: also a number between 0 and 1.

Confidence of premise of a rule = –Minimum confidence of each condition –Intuition: strength of argument is weakest link Confidence in conclusion of a rule = –(confidence in rule premise)*(confidence in rule) Confidence in conclusion from several rules: r1,r2,..rm with confidences c1,c2,..cm = cm –Where y is 1- (1-x)*(1-y).

And now with confidences Facts: –F1: Ungee gives milk:.9 –F2: Ungee eats meat:.8 – F3: Ungee has hoofs:.7 Rules: –R1: If X gives milk, then it is a mammal:.6 –R2: If X is a mammal and eats meat, then carnivore:.5 –R3: If X has hoofs, then X is carnivore:.4

R1 with F1: Ungee is mammal. (F4) Confidence F4: C(F4) =.9*.6 =.54 R2 using F2 and F4 yields: Ungee is carnivore (F5). C(F5) from R2 = min(.54,.8)*.5 =.27 R3 using F3 conclude F5 from R3 C(F5) from R3 =.7*.4 =.28 C(F5) from R3 and R2 = 1 –(1-.28)*(1-.27) =.48

Problems and Counters-Arguments People forget to say the obvious Rules difficult to acquire (years) People don’t have stable or correct estimates of “confidence” Data insufficient to yield good estimate of true probabilities. But Feigenbaum: In the knowledge lies the power. Calculus/confidences not that important

AI Winter Expert Systems found useful –hundreds of successful systems Consultants and hype -> –Hundreds of unsucessful systems Remember: – needs an expert –Knowledge needs to be representable as rules Now on to Probability based approach