Expert System Seyed Hashem Davarpanah University of Science and Culture.

Slides:



Advertisements
Similar presentations
Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
Advertisements

CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Logic Use mathematical deduction to derive new knowledge.
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
Logic.
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
Inferences The Reasoning Power of Expert Systems.
Expert System Shells - Examples
B. Ross Cosc 4f79 1 Forward chaining backward chaining systems: take high-level goal, and prove it by reducing it to a null goal - to reduce it to null,
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Intelligent systems Lecture 6 Rules, Semantic nets.
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Rule Based Systems Michael J. Watts
Chapter 12: Expert Systems Design Examples
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Knowledge Base Systems
Introduction to 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.
Lecture 04 Rule Representation
Case Based Reasoning Melanie Hanson Engr 315. What is Case-Based Reasoning? Storing information from previous experiences Using previously gained knowledge.
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.
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
EXPERT SYSTEMS Part I.
Introduction • Artificial intelligence: science of enabling computers to behave intelligently • Knowledge-based system (or expert system): a program.
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
Building Knowledge-Driven DSS and Mining Data
Artificial Intelligence CSC 361
Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems (sections 2.7, 2.8,
THE MODEL OF ASIS FOR PROCESS CONTROL APPLICATIONS P.Andreeva, T.Atanasova, J.Zaprianov Institute of Control and System Researches Topic Area: 12. Intelligent.
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.
© C. Kemke Reasoning and Inference 1 COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Katanosh Morovat.   This concept is a formal approach for identifying the rules that encapsulate the structure, constraint, and control of the operation.
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
13: Inference Techniques
IDDS: Rules-based Expert Systems
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.
CSE & CSE6002E - Soft Computing Winter Semester, 2011 Expert Systems Introduction to Expert Systems Production Systems Architecture Applications.
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,
Logical Agents Logic Propositional Logic Summary
CSE (c) S. Tanimoto, 2002 Expert Systems 1 Expert Systems Outline: Various Objectives in Creating Expert Systems Integration of AI Techniques into.
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
ES component and structure Dr. Ahmed Elfaig The production system or rule-based system has three main component and subcomponents shown in Figure 1. 1.Knowledge.
1 Defining a Problem as a State Space 1. Define a state space that contains all the possible configurations of the relevant objects. 2. Specify one (or.
CS62S: Expert Systems Based on: The Engineering of Knowledge-based Systems: Theory and Practice, A. J. Gonzalez and D. D. Dankel.
1 Knowledge Acquisition and Learning by Experience – The Role of Case-Specific Knowledge Knowledge modeling and acquisition Learning by experience Framework.
KNOWLEDGE BASED SYSTEMS
Artificial Intelligence
Forward and Backward Chaining
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Logic and Reasoning 1 Sentences and the Real World  syntax  describes the principles for constructing and combining sentences  e.g. BNF grammar for.
Artificial Intelligence Knowledge Representation.
Artificial Intelligence: Applications
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
Summary for final exam Agent System..
Knowledge Representation Techniques
Fuzzy Logic and Approximate Reasoning
Introduction to Expert Systems Bai Xiao
Architecture Components
Knowledge Representation
Knowledge Representation
Habib Ullah qamar Mscs(se)
Presentation transcript:

Expert System Seyed Hashem Davarpanah University of Science and Culture

Reasoning in Expert Systems knowledge representation in Expert Systems knowledge representation in Expert Systems shallow and deep reasoning shallow and deep reasoning forward and backward reasoning forward and backward reasoning alternative inference methods alternative inference methods metaknowledge metaknowledge

Expert performance depends on expert knowledge! Experts and Expert Systems Human Experts achieve high performance because of extensive knowledge concerning their field Human Experts achieve high performance because of extensive knowledge concerning their field Generally developed over many years Generally developed over many years

Types of Knowledge Knowledge Representation in XPS can include: conceptual knowledge conceptual knowledge terminology, domain-specific terms terminology, domain-specific terms derivative knowledge derivative knowledge conclusions between facts conclusions between facts causal connections causal connections causal model of domain causal model of domain procedural knowledge procedural knowledge guidelines for actions guidelines for actions

Knowledge Modeling in XPS Knowledge Modeling Technique in XPS mostly rule-based systems (RBS) mostly rule-based systems (RBS) rule system models elements of knowledge formulated independently as rules rule system models elements of knowledge formulated independently as rules rule set is easy to expand rule set is easy to expand often only limited ‘deep’ knowledge, i.e. no explicit coherent causal or functional model of the domain often only limited ‘deep’ knowledge, i.e. no explicit coherent causal or functional model of the domain

Shallow and Deep Reasoning shallow reasoning shallow reasoning also called “experiential reasoning” also called “experiential reasoning” aims at describing aspects of the world heuristically aims at describing aspects of the world heuristically short inference chains short inference chains complex rules complex rules deep reasoning deep reasoning also called causal reasoning also called causal reasoning aims at building a model that behaves like the “real thing” aims at building a model that behaves like the “real thing” long inference chains long inference chains simple rules that describe cause and effect relationships simple rules that describe cause and effect relationships

General Technology of XPS Knowledge + Inference core of XPS core of XPS Most often Rule-Based Systems (RBS) Most often Rule-Based Systems (RBS) other forms: Neural Networks, Case-Based Reasoning other forms: Neural Networks, Case-Based Reasoning

General Technology of XPS Case-based reasoning (CBR), broadly construed, is the process of solving new problems based on the solutions of similar past problems. Case-based reasoning (CBR), broadly construed, is the process of solving new problems based on the solutions of similar past problems. An auto mechanic who fixes an engine by recalling another car that exhibited similar symptoms is using case-based reasoning. An auto mechanic who fixes an engine by recalling another car that exhibited similar symptoms is using case-based reasoning.mechanicenginecarmechanicenginecar

Rule-Based Expert Systems Work with a set of facts describing the current world state a set of facts describing the current world state a set of rules describing the expert knowledge a set of rules describing the expert knowledge inference mechanisms for combining facts and rules in reasoning inference mechanisms for combining facts and rules in reasoning

Inference Engine Agenda Knowledge Base (rules) Explanation Facility User Interface Knowledge Acquisition Facility Working Memory (facts)

Architecture of Rule-Based XPS 1 Knowledge-Base / Rule-Base stores expert knowledge as “condition-action-rules” (or: if-then- or premise-consequence-rules) stores expert knowledge as “condition-action-rules” (or: if-then- or premise-consequence-rules) objects or frame structures are often used to represent concepts in the domain of expertise, e.g. “club” in the golf domain. objects or frame structures are often used to represent concepts in the domain of expertise, e.g. “club” in the golf domain. Working Memory stores initial facts and generated facts derived by the inference engine stores initial facts and generated facts derived by the inference engine additional parameters like the “degree of trust” in the truth of a fact or a rule (  certainty factors) or probabilistic measurements can be added additional parameters like the “degree of trust” in the truth of a fact or a rule (  certainty factors) or probabilistic measurements can be added

Architecture of Rule-Based XPS 2 Inference Engine matches condition-part of rules against facts stored in Working Memory (pattern matching); matches condition-part of rules against facts stored in Working Memory (pattern matching); rules with satisfied condition are active rules and are placed on the agenda; rules with satisfied condition are active rules and are placed on the agenda; among the active rules on the agenda, one is selected (see conflict resolution, priorities of rules) as next rule for among the active rules on the agenda, one is selected (see conflict resolution, priorities of rules) as next rule for execution (“firing”) – consequence of rule can add new facts to Working Memory, modify facts, retract facts, and more execution (“firing”) – consequence of rule can add new facts to Working Memory, modify facts, retract facts, and more

Architecture of Rule-Based XPS 3 Inference Engine + additional components might be necessary for other functions, like calculation of certainty values, calculation of certainty values, determination of priorities of rules determination of priorities of rules and conflict resolution mechanisms, and conflict resolution mechanisms, a truth maintenance system (TMS) if reasoning with defaults and beliefs is requested a truth maintenance system (TMS) if reasoning with defaults and beliefs is requested

Architecture of Rule-Based XPS 3 A truth maintenance system, or TMS, is a knowledge representation method for representing both beliefs and their dependencies. A truth maintenance system, or TMS, is a knowledge representation method for representing both beliefs and their dependencies.knowledge representationknowledge representation The name truth maintenance is due to the ability of these systems to restore consistency. The name truth maintenance is due to the ability of these systems to restore consistency. It is also termed as a belief revision system, a truth maintenance system maintains consistency between old believed knowledge and current believed knowledge in the knowledge base (KB) through revision. It is also termed as a belief revision system, a truth maintenance system maintains consistency between old believed knowledge and current believed knowledge in the knowledge base (KB) through revision. If the current believed statements contradict the knowledge in KB, then the KB is updated with the new knowledge. If the current believed statements contradict the knowledge in KB, then the KB is updated with the new knowledge.

Rule-Based Systems - Example ‘Grades’ - Rules to determine ‘grade’ 1. study  good_grade 2. not_study  bad_grade 3. sun_shines  go_out 4. go_out  not_study 5. stay_home  study 6. awful_weather  stay_home

Example ‘Grades’ 1. study  good_grade 2. not_study  bad_grade 3. sun_shines  go_out 4. go_out  not_study 5. stay_home  study 6. awful_weather  stay_home Q1: If the weather is awful, do you get a good or bad grade? Q2: When do you get a good grade? Rule-Base to determine the ‘grade’:

Forward and Backward Reasoning forward reasoning  Facts are given. What is the conclusion? A set of known facts is given (in WM); apply rules to derive new facts as conclusions (forward chaining of rules) until you come up with a requested final goal fact. backward reasoning  Hypothesis (goal) is given. Is it supported by facts? A hypothesis (goal fact) is given; try to derive it based on a set of given initial facts using sub-goals (backward chaining of rules) until goal is grounded in initial facts.

1.study  good_grade 2.not_study  bad_grade 3.sun_shines  go_out 4.go_out  not_study 5.stay_home  study 6.awful_weather  stay_home Example ‘Grades’ forward reasoningrule chain given fact: awful_weather 6,5,1 backward reasoning hypothesis/goal: good_grade 1,5,6

good grade Example ‘Grades’ – Reasoning Tree bad grade not studystudy go outstay home sun shinesawful weather

Example – Grades Working MemoryAgenda awful weatherRule 6 Select and apply Rule 6 awful weather stay home Rule 5 Select and apply Rule 5

Example – Grades Working MemoryAgenda Select and apply Rule 1 awful weather stay home study Rule 1 awful weather stay home study good grade empty DONE!

Forward vs. Backward Chaining Forward ChainingBackward Chaining diagnosisconstruction data-drivengoal-driven (hypothesis) bottom-up reasoningtop-down reasoning find possible conclusions supported by given facts find facts that support a given hypothesis antecedents (LHS) control evaluation consequents (RHS) control evaluation

Alternative Reasoning Methods Theorem Proving Theorem Proving emphasis on mathematical proofs and correctness, not so much on performance and ease of use emphasis on mathematical proofs and correctness, not so much on performance and ease of use Probabilistic Reasoning Probabilistic Reasoning integrates probabilities into the reasoning process integrates probabilities into the reasoning process Certainty Factors Certainty Factors Express subjective assessment of truth of fact or rule Express subjective assessment of truth of fact or rule Fuzzy Reasoning Fuzzy Reasoning allows the use of vaguely defined predicates and rules allows the use of vaguely defined predicates and rules

Metaknowledge deals with “knowledge about knowledge” deals with “knowledge about knowledge” e.g. reasoning about properties of knowledge representation schemes, or inference mechanisms e.g. reasoning about properties of knowledge representation schemes, or inference mechanisms usually relies on higher order logic usually relies on higher order logic in (first order) predicate logic, quantifiers are applied to variables in (first order) predicate logic, quantifiers are applied to variables second-order predicate logic allows the use of quantifiers for function and predicate symbols second-order predicate logic allows the use of quantifiers for function and predicate symbols may result in substantial performance problems may result in substantial performance problems CLIPS uses meta-knowledge to define itself, i.e. CLIPS constructs, classes, etc. - in a bootstrapping form CLIPS uses meta-knowledge to define itself, i.e. CLIPS constructs, classes, etc. - in a bootstrapping form