© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.

Slides:



Advertisements
Similar presentations
Expert System Seyed Hashem Davarpanah
Advertisements

Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
© 2002 Franz J. Kurfess Expert System Examples 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
© 2002 Franz J. Kurfess Logic and Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Rule Based Systems Michael J. Watts
© 2002 Franz J. Kurfess Expert System Design 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
COMP 4200: Expert Systems Dr. Christel Kemke
1 © Franz J. Kurfess Constrained Access Franz J. Kurfess Cal Poly SLO Computer Science Department.
Introduction to Expert Systems
© 2005 Franz J. Kurfess Expert System Examples 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
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.
1 Lecture 34 Introduction to Knowledge Representation & Expert Systems Overview  Lecture Objective  Introduction to Knowledge Representation  Knowledge.
© Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© Franz J. Kurfess Introduction CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2002 Franz J. Kurfess Approximate Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
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.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
© 2001 Franz J. Kurfess Introduction 1 CPE/CSC 580: Knowledge Management Dr. Franz J. Kurfess Computer Science Department Cal Poly.
EXPERT SYSTEMS Part I.
Chapter 1: Introduction to Expert Systems
Chapter 1: Introduction to Expert Systems
Building Knowledge-Driven DSS and Mining Data
© 2002 Franz J. Kurfess References 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
© 2001 Franz J. Kurfess Introduction 1 CPE/CSC 580: Knowledge Management Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems (sections 2.7, 2.8,
Sepandar Sepehr McMaster University November 2008
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Introduction to Expert Systems. 2 Objectives Learn the meaning of an expert system Understand the problem domain and knowledge domain Learn the advantages.
Copyright R. Weber INFO 629 Concepts in Artificial Intelligence Expert Systems Fall 2004 Professor: Dr. Rosina Weber.
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition.
IDDS: Rules-based Expert Systems
School of Computer Science and Technology, Tianjin University
CSE & CSE6002E - Soft Computing Winter Semester, 2011 Expert Systems Introduction to Expert Systems Production Systems Architecture Applications.
CPE/CSC 481: Knowledge-Based Systems
Expert Systems An Introduction to Expert Systems and CLIPS by Charles Weddle.
Introduction to Artificial Intelligence and Soft Computing
Assoc. Prof. Abdulwahab AlSammak. Course Information Course Title: Artificial Intelligence Instructor : Assoc. Prof. Abdulwahab AlSammak
Introduction to knowledge-base intelligent systems (Expert Systems) دكترمحسن كاهاني
Intro to Computation and AI Dr. Jill Fain Lehman School of Computer Science Lecture 6: December 4, 1997.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
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.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Expert System Seyed Hashem Davarpanah University of Science and Culture.
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
Decision Support and Business Intelligence Systems (9 th Ed., Prentice Hall) Chapter 12: Artificial Intelligence and Expert Systems.
Artificial Intelligence
Artificial Intelligence
CHAPTER 1 Introduction BIC 3337 EXPERT SYSTEM.
CPE/CSC 481: Knowledge-Based Systems
Introduction Characteristics Advantages Limitations
Chapter 9. Rules and Expert Systems
Artificial Intelligence (AI)
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Artificial Intelligence
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Artificial Intelligence introduction(2)
Introduction to Artificial Intelligence and Soft Computing
Expert Systems.
CPE/CSC 481: Knowledge-Based Systems
Chapter 9. Rules and Expert Systems
Presentation transcript:

© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly

© 2002 Franz J. Kurfess Introduction 2 Course Overview u Introduction u Knowledge Representation u Semantic Nets, Frames, Logic u Reasoning and Inference u Predicate Logic, Inference Methods, Resolution u Reasoning with Uncertainty u Probability, Bayesian Decision Making u Expert System Design u ES Life Cycle u CLIPS Overview u Concepts, Notation, Usage u Pattern Matching u Variables, Functions, Expressions, Constraints u Expert System Implementation u Salience, Rete Algorithm u Expert System Examples u Conclusions and Outlook

© 2002 Franz J. Kurfess Introduction 3 Overview Introduction u Motivation u Objectives u What is an Expert System (ES)? u knowledge, reasoning u General Concepts and Characteristics of ES u knowledge representation, inference, knowledge acquisition, explanation u ES Technology u ES Tools u shells, languages u ES Elements u facts, rules, inference mechanism u Important Concepts and Terms u Chapter Summary

© 2002 Franz J. Kurfess Introduction 4 Logistics u Introductions u Course Materials u textbooks (see below) u lecture notes u PowerPoint Slides will be available on my Web page u handouts u Web page u u Term Project u Lab and Homework Assignments u Exams u Grading

© 2002 Franz J. Kurfess Introduction 5 Textbooks u Required  [Giarratano & Riley 1998] Joseph Giarratano and Gary Riley. Expert Systems - Principles and Programming. 3 rd ed., PWS Publishing, Boston, MA, 1998  Recommended for additional reading  [Awad 1996] Elias Awad. Building Expert Systems - Principles, Procedures, and Applications. West Publishing, Minneapolis/St. Paul, MN,  [Durkin 1994] John Durkin. Expert Systems - Design and Development. Prentice Hall, Englewood Cliffs, NJ,  [Jackson, 1999] Peter Jackson. Introduction to Expert Systems. 3 rd ed., Addison-Wesley,  [Russell & Norvig 1995] Stuart Russell and Peter Norvig, Artificial Intelligence - A Modern Approach. Prentice Hall, 1995.

© 2002 Franz J. Kurfess Introduction 6 Bridge-In

© 2002 Franz J. Kurfess Introduction 7 Pre-Test

© 2002 Franz J. Kurfess Introduction 8 Motivation

© 2002 Franz J. Kurfess Introduction 9 Objectives

© 2002 Franz J. Kurfess Introduction 10 Evaluation Criteria

© 2002 Franz J. Kurfess Introduction 11 What is an Expert System (ES)?  relies on internally represented knowledge to perform tasks  utilizes reasoning methods to derive appropriate new knowledge  usually restricted to a specific problem domain  some systems try to capture common-sense knowledge  General Problem Solver (Newell, Shaw, Simon)  Cyc (Lenat)

© 2002 Franz J. Kurfess Introduction 12 Definitions “Expert System”  a computer system that emulates the decision- making ability of a human expertin a restricted domain [Giarratano & Riley 1998][Giarratano & Riley 1998]  Edward Feigenbaum  “An intelligent computer program that uses knowledge and inference procedures to solve problems that are difficult enough to require significant human expertise for their solutions.” [Giarratano & Riley 1998][Giarratano & Riley 1998]  the term knowledge-based system is often used synonymously

© 2002 Franz J. Kurfess Introduction 13 Main Components of an ES Knowledge Base Inference Engine Expertise Facts / Information

© 2002 Franz J. Kurfess Introduction 14 ES Components  knowledge base  contains essential information about the problem domain  often represented as facts and rules  inference engine  mechanism to derive new knowledge from the knowledge base and the information provided by the user  often based on the use of rules

© 2002 Franz J. Kurfess Introduction 15 General Concepts and Characteristics of ES  knowledge representation  suitable for storing and processing knowledge in computers  inference  mechanism that allows the generation of new conclusions from existing knowledge in a computer  knowledge acquisition  transfer of knowledge from humans to computers  sometimes knowledge can be acquired directly from the environment  machine learning  explanation  illustrates to the user how and why a particular solution was generated

© 2002 Franz J. Kurfess Introduction 16 [Dieng et al. 1999] Development of ES Technology  strongly influenced by cognitive science and mathematics  the way humans solve problems  formal foundations, especially logic and inference  production rules as representation mechanism  IF … THEN type rules  reasonably close to human reasoning  can be manipulated by computers  appropriate granularity  knowledge “chunks” are manageable both for humans and for computers

© 2002 Franz J. Kurfess Introduction 17 Rules and Humans  rules can be used to formulate a theory of human information processing (Newell & Simon)  rules are stored in long-term memory  temporary knowledge is kept in short-term memory  sensory input or thinking triggers the activation of rules  activated rules may trigger further activation  a cognitive processor combines evidence from currently active rules  this model is the basis for the design of many rule- based systems  also called production systems

© 2002 Franz J. Kurfess Introduction 18 Early ES Success Stories  DENDRAL  identification of chemical constituents  MYCIN  diagnosis of illnesses  PROSPECTOR  analysis of geological data for minerals  discovered a mineral deposit worth $100 million  XCON/R1  configuration of DEC VAX computer systems  saved lots of time and millions of dollars

© 2002 Franz J. Kurfess Introduction 19 The Key to ES Success  convincing ideas  rules, cognitive models  practical applications  medicine, computer technology, …  separation of knowledge and inference  expert system shell  allows the re-use of the “machinery” for different domains  concentration on domain knowledge  general reasoning is too complicated

© 2002 Franz J. Kurfess Introduction 20 When to Use ESs  expert systems are not suitable for all types of domains and tasks  conventional algorithms are known and efficient  the main challenge is computation, not knowledge  knowledge cannot be captured easily  users may be reluctant to apply an expert system to a critical task

© 2002 Franz J. Kurfess Introduction 21 ES Tools  ES languages  higher-level languages specifically designed for knowledge representation and reasoning  SAIL, KRL, KQML  shells  an ES development tool/environment where the user provides the knowledge base

© 2002 Franz J. Kurfess Introduction 22 ES Elements  knowledge base  inference engine  working memory  agenda  explanation facility  knowledge acquisition facility  user interface

© 2002 Franz J. Kurfess Introduction 23 ES Structure Knowledge Base Inference Engine Working Memory User Interface Knowledge Acquisition Facility Explanation Facility Agenda

© 2002 Franz J. Kurfess Introduction 24 Rule-Based ES  knowledge is encoded as IF … THEN rules  these rules can also be written as production rules  the inference engine determines which rule antecedents are satisfied  the left-hand side must “match” a fact in the working memory  satisfied rules are placed on the agenda  rules on the agenda can be activated (“fired”)  an activated rule may generate new facts through its right- hand side  the activation of one rule may subsequently cause the activation of other rules

© 2002 Franz J. Kurfess Introduction 25 Example Rules IF … THEN Rules Rule: Red_Light IFthe light is red THENstop Rule: Green_Light IFthe light is green THENgo antecedent (left-hand-side) consequent (right-hand-side) Production Rules the light is red ==> stop the light is green ==> go antecedent (left-hand-side) consequent (right-hand-side)

© 2002 Franz J. Kurfess Introduction 26 MYCIN Sample Rule Human-Readable Format IF the stain of the organism is gram negative AND the morphology of the organism is rod AND the aerobiocity of the organism is gram anaerobic THEN the there is strongly suggestive evidence (0.8) that the class of the organism is enterobacteriaceae MYCIN Format IF(AND (SAME CNTEXT GRAM GRAMNEG) (SAME CNTEXT MORPH ROD) (SAME CNTEXT AIR AEROBIC) THEN (CONCLUDE CNTEXT CLASS ENTEROBACTERIACEAE TALLY.8) [Durkin 94, p. 133]

© 2002 Franz J. Kurfess Introduction 27 Inference Engine Cycle  describes the execution of rules by the inference engine  conflict resolution  select the rule with the highest priority from the agenda  execution  perform the actions on the consequent of the selected rule  remove the rule from the agenda  match  update the agenda  add rules whose antecedents are satisfied to the agenda  remove rules with non-satisfied agendas  the cycle ends when no more rules are on the agenda, or when an explicit stop command is encountered

© 2002 Franz J. Kurfess Introduction 28 Forward and Backward Chaining  different methods of rule activation  forward chaining (data-driven)  reasoning from facts to the conclusion  as soon as facts are available, they are used to match antecedents of rules  a rule can be activated if all parts of the antecedent are satisfied  often used for real-time expert systems in monitoring and control  examples: CLIPS, OPS5  backward chaining (query-driven)  starting from a hypothesis (query), supporting rules and facts are sought until all parts of the antecedent of the hypothesis are satisfied  often used in diagnostic and consultation systems  examples: EMYCIN

© 2002 Franz J. Kurfess Introduction 29 Foundations of Expert Systems Rule-Based Expert Systems Knowledge BaseInference Engine Rules Pattern Matching Facts Rete Algorithm Markov Algorithm Post Production Rules Conflict Resolution Action Execution

© 2002 Franz J. Kurfess Introduction 30 Post Production Systems  production rules were used by the logician Emil L. Post in the early 40s in symbolic logic  Post’s theoretical result  any system in mathematics or logic can be written as a production system  basic principle of production rules  a set of rules governs the conversion of a set of strings into another set of strings  these rules are also known as rewrite rules  simple syntactic string manipulation  no understanding or interpretation is required  also used to define grammars of languages  e.g. BNF grammars of programming languages

© 2002 Franz J. Kurfess Introduction 31 Markov Algorithms  in the 1950s, A. A. Markov introduced priorities as a control structure for production systems  rules with higher priorities are applied first  allows more efficient execution of production systems  but still not efficient enough for expert systems with large sets of rules

© 2002 Franz J. Kurfess Introduction 32 Rete Algorithm  developed by Charles L. Forgy in the late 70s for CMU’s OPS (Official Production System) shell  stores information about the antecedents in a network  in every cycle, it only checks for changes in the networks  this greatly improves efficiency

© 2002 Franz J. Kurfess Introduction 33 ES Advantages  economical  lower cost per user  availability  accessible anytime, almost anywhere  response time  often faster than human experts  reliability  can be greater than that of human experts  no distraction, fatigue, emotional involvement, …  explanation  reasoning steps that lead to a particular conclusion  intellectual property  can’t walk out of the door

© 2002 Franz J. Kurfess Introduction 34 ES Problems  limited knowledge  “shallow” knowledge  no “deep” understanding of the concepts and their relationships  no “common-sense” knowledge  no knowledge from possibly relevant related domains  “closed world”  the ES knows only what it has been explicitly “told”  it doesn’t know what it doesn’t know  mechanical reasoning  may not have or select the most appropriate method for a particular problem  some “easy” problems are computationally very expensive  lack of trust  users may not want to leave critical decisions to machines

© 2002 Franz J. Kurfess Introduction 35 Reference [Dieng et al. 1999]  [Dieng et al. 1999] [Dieng et al. 1999]  [Giarratano & Riley 1998] [Giarratano & Riley 1998]

© 2002 Franz J. Kurfess Introduction 36 Reference [Sommerville 01] [Sommerville 01]  [Sommerville 01]

© 2002 Franz J. Kurfess Introduction 37 Post-Test

© 2002 Franz J. Kurfess Introduction 38 Evaluation u Criteria

© 2002 Franz J. Kurfess Introduction 39 References  [Altenkrüger & Büttner] Doris Altenkrüger and Winfried Büttner. Wissensbasierte Systems - Architektur, Enwicklung, Echtzeit-Anwendungen. Vieweg Verlag,  [Awad 1996] Elias Awad. Building Expert Systems - Principles, Procedures, and Applications. West Publishing, Minneapolis/St. Paul, MN,  [Bibel 1993] Wolfgang Bibel with Steffen Hölldobler and Torsten Schaub. Wissensrepräsentation und Inferenz - Eine grundlegende Einführung. Vieweg Verlag,  [Durkin 1994] John Durkin. Expert Systems - Design and Development. Prentice Hall, Englewood Cliffs, NJ,  [Giarratano & Riley 1998] Joseph Giarratano and Gary Riley. Expert Systems - Principles and Programming. 3 rd ed., PWS Publishing, Boston, MA, 1998  [Jackson, 1999] Peter Jackson. Introduction to Expert Systems. 3 rd ed., Addison- Wesley,  [Russell & Norvig 1995] Stuart Russell and Peter Norvig, Artificial Intelligence - A Modern Approach. Prentice Hall, 1995.

© 2002 Franz J. Kurfess Introduction 40 Important Concepts and Terms  natural language processing  neural network  predicate logic  propositional logic  rational agent  rationality  Turing test  agent  automated reasoning  belief network  cognitive science  computer science  hidden Markov model  intelligence  knowledge representation  linguistics  Lisp  logic  machine learning  microworlds

© 2002 Franz J. Kurfess Introduction 41 Summary Chapter-Topic

© 2002 Franz J. Kurfess Introduction 42