Introduction to Expert Systems

Slides:



Advertisements
Similar presentations
Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
Advertisements

Chapter 1: Introduction to Expert Systems
EXPERT SYSTEMS AND KNOWLEDGE REPRESENTATION Ivan Bratko Faculty of Computer and Info. Sc. University of Ljubljana.
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
Introduction to Expert System Chapter 11. Rule-Based AI 2013/5/2 1.
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Artificial Intelligence Lecture No. 16
Chapter 12: Expert Systems Design Examples
Intelligent Systems and Soft Computing
Expert System Human expert level performance Limited application area Large component of task specific knowledge Knowledge based system Task specific knowledge.
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Chapter 1: 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.
© Franz J. Kurfess Introduction 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.
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.
Chapter 1: Introduction to Expert Systems
Chapter 1: Introduction to Expert Systems
Chapter 1: Introduction to Expert Systems
Sepandar Sepehr McMaster University November 2008
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
Introduction to Expert Systems. 2 Objectives Learn the meaning of an expert system Understand the problem domain and knowledge domain Learn the advantages.
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.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition.
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition Original by Course Technology Modified by Ramin Halavati.
School of Computer Science and Technology, Tianjin University
Expert Systems An Introduction to Expert Systems and CLIPS by Charles Weddle.
 Architecture and Description Of Module Architecture and Description Of Module  KNOWLEDGE BASE KNOWLEDGE BASE  PRODUCTION RULES PRODUCTION RULES 
CSE (c) S. Tanimoto, 2002 Expert Systems 1 Expert Systems Outline: Various Objectives in Creating Expert Systems Integration of AI Techniques into.
ARTIFICIAL INTELLIGENCE DR. ABRAHAM AI a field of computer science that is concerned with mechanizing things people do that require intelligent.
Principles of Information Systems, Sixth Edition Specialized Business Information Systems Chapter 11.
Chapter 13 Artificial Intelligence and Expert Systems.
Introduction to knowledge-base intelligent systems (Expert Systems) دكترمحسن كاهاني
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.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition Original by Course Technology Modified by Ramin Halavati.
1. 2 Decision Support and Expert Systems سيستم ‌ هاي خبره و تصميم ‌ يار Lecturer: A. Rabiee Rabiee.iauda.ac.ir.
Of An Expert System.  Introduction  What is AI?  Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES.
Abdul Rahim Ahmad MITM 613 Intelligent System Chapter 10: Tools.
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.
Knowledge Engineering. Review- Expert System 3 Knowledge Engineering The process of building an expert system: 1.The knowledge engineer establishes a.
1 Chapter 13 Artificial Intelligence and Expert Systems.
Artificial Intelligence: Applications
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
Chapter 1: Introduction to Expert Systems
Introduction to Knowledge-based Systems
Chapter 1: Introduction to Expert Systems
Advanced AI Session 2 Rule Based Expert System
Intelligent Systems and Soft Computing
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Architecture Components
Knowledge Representation
النظم الخبيرة Expert Systems (ES)
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Artificial Intelligence introduction(2)
Expert Systems.
CPE/CSC 481: Knowledge-Based Systems
Chapter 1: Introduction to Expert Systems
Presentation transcript:

Introduction to Expert Systems

What is an expert system? “An expert system is a computer system that emulates, or acts in all respects, with the decision-making capabilities of a human expert.” Professor Edward Feigenbaum Stanford University

Expert System Main Components Knowledge base – obtainable from books, magazines, knowledgeable persons, etc. Inference engine – draws conclusions from the knowledge base Expert Systems: Principles and Programming, Fourth Edition

Figure 1.2 Basic Functions of Expert Systems Expert Systems: Principles and Programming, Fourth Edition

Problem Domain vs. Knowledge Domain An expert’s knowledge is specific to one problem domain – medicine, finance, science, engineering, etc. The expert’s knowledge about solving specific problems is called the knowledge domain. The problem domain is always a superset of the knowledge domain. Expert Systems: Principles and Programming, Fourth Edition

Figure 1.3 Problem and Knowledge Domain Relationship Expert Systems: Principles and Programming, Fourth Edition

Representing the Knowledge The knowledge of an expert system can be represented in a number of ways, including IF-THEN rules: IF you are hungry THEN eat Expert Systems: Principles and Programming, Fourth Edition

Knowledge Engineering The process of building an expert system: The knowledge engineer establishes a dialog with the human expert to elicit knowledge. The knowledge engineer codes the knowledge explicitly in the knowledge base. The expert evaluates the expert system and gives a critique to the knowledge engineer. Expert Systems: Principles and Programming, Fourth Edition

Development of an Expert System Expert Systems: Principles and Programming, Fourth Edition

The Role of AI An algorithm is an ideal solution guaranteed to yield a solution in a finite amount of time. When an algorithm is not available or is insufficient, we rely on artificial intelligence (AI). Expert system relies on inference – we accept a “reasonable solution.” Expert Systems: Principles and Programming, Fourth Edition

Shallow and Deep Knowledge It is easier to program expert systems with shallow knowledge than with deep knowledge. Shallow knowledge – based on empirical and heuristic knowledge. Deep knowledge – based on basic structure, function, and behavior of objects. Expert Systems: Principles and Programming, Fourth Edition

Early Expert Systems DENDRAL – used in chemical mass spectroscopy to identify chemical constituents MYCIN – medical diagnosis of illness DIPMETER – geological data analysis for oil PROSPECTOR – geological data analysis for minerals XCON/R1 – configuring computer systems Expert Systems: Principles and Programming, Fourth Edition

Table 1.3 Broad Classes of Expert Systems Expert Systems: Principles and Programming, Fourth Edition

Problems with Algorithmic Solutions Conventional computer programs generally solve problems having algorithmic solutions. Algorithmic languages include C, Java, and C#. Classic AI languages include LISP and PROLOG. Expert Systems: Principles and Programming, Fourth Edition

Considerations for Building Expert Systems Can the problem be solved effectively by conventional programming? Is there a need and a desire for an expert system? Is there at least one human expert who is willing to cooperate? Can the expert explain the knowledge to the knowledge engineer can understand it. Is the problem-solving knowledge mainly heuristic and uncertain? Expert Systems: Principles and Programming, Fourth Edition

Languages, Shells, and Tools Expert system languages are post-third generation. Procedural languages (e.g., C) focus on techniques to represent data. More modern languages (e.g., Java) focus on data abstraction. Expert system languages (e.g. CLIPS) focus on ways to represent knowledge. Expert Systems: Principles and Programming, Fourth Edition

Expert systems Vs conventional programs I Expert Systems: Principles and Programming, Fourth Edition

Expert systems Vs conventional programs II Expert Systems: Principles and Programming, Fourth Edition

Expert systems Vs conventional programs III Expert Systems: Principles and Programming, Fourth Edition

Elements of an Expert System User interface – mechanism by which user and system communicate. Exploration facility – explains reasoning of expert system to user. Working memory – global database of facts used by rules. Inference engine – makes inferences deciding which rules are satisfied and prioritizing. Expert Systems: Principles and Programming, Fourth Edition

Elements Continued Agenda – a prioritized list of rules created by the inference engine, whose patterns are satisfied by facts or objects in working memory. Knowledge acquisition facility – automatic way for the user to enter knowledge in the system bypassing the explicit coding by knowledge engineer. Knowledge Base – includes the rules of the expert system Expert Systems: Principles and Programming, Fourth Edition

Production Rules Knowledge base is also called production memory. Production rules can be expressed in IF-THEN pseudocode format. In rule-based systems, the inference engine determines which rule antecedents are satisfied by the facts. Expert Systems: Principles and Programming, Fourth Edition

Figure 1.6 Structure of a Rule-Based Expert System Expert Systems: Principles and Programming, Fourth Edition

Rule-Based ES Expert Systems: Principles and Programming, Fourth Edition

Example Rules Expert Systems: Principles and Programming, Fourth Edition

Inference Engine Cycle Expert Systems: Principles and Programming, Fourth Edition

Foundation of Expert Systems Expert Systems: Principles and Programming, Fourth Edition

General Methods of Inferencing Forward chaining (data-driven)– reasoning from facts to the conclusions resulting from those facts – best for prognosis, monitoring, and control. Examples: CLIPS, OPS5 Backward chaining (query driven)– reasoning in reverse from a hypothesis, a potential conclusion to be proved to the facts that support the hypothesis – best for diagnosis problems. Examples: MYCIN Expert Systems: Principles and Programming, Fourth Edition

Production Systems Rule-based expert systems – most popular type today. Knowledge is represented as multiple rules that specify what should/not be concluded from different situations. Forward chaining – start w/facts and use rules do draw conclusions/take actions. Backward chaining – start w/hypothesis and look for rules that allow hypothesis to be proven true. Expert Systems: Principles and Programming, Fourth Edition

Forward/Backward Chaining Forward chaining – primarily data-driven. Backward chaining – primarily goal driven. Expert Systems: Principles and Programming, Fourth Edition

Post Production System Basic idea – any mathematical / logical system is simply a set of rules specifying how to change one string of symbols into another string of symbols. 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. Basic limitation – lack of control mechanism to guide the application of the rules. Expert Systems: Principles and Programming, Fourth Edition

Markov Algorithm An ordered group of productions applied in order or priority to an input string. If the highest priority rule is not applicable, we apply the next, and so on. An efficient algorithm for systems with many rules. Termination on (1) last production not applicable to a string, or (2) production ending with period applied Can be applied to substrings, beginning at left Expert Systems: Principles and Programming, Fourth Edition

Markov Algorithm Expert Systems: Principles and Programming, Fourth Edition

Procedural Paradigms Algorithm – method of solving a problem in a finite number of steps. Procedural programs are also called sequential programs. The programmer specifies exactly how a problem solution must be coded. Expert Systems: Principles and Programming, Fourth Edition

Figure 1.8 Procedural Languages Expert Systems: Principles and Programming, Fourth Edition

Imperative Programming Also known as statement-oriented During execution, program makes transition from the initial state to the final state by passing through series of intermediate states. Provide rigid control and top-down-design. Not efficient for directly implementing expert systems. Expert Systems: Principles and Programming, Fourth Edition

Functional Programming Function-based (association, domain, co-domain); f: S T Not much control Bottom-up combine simple functions to yield more powerful functions. Mathematically a function is an association or rule that maps members of one set, the domain, into another set, the codomain. e.g. LISP and Prolog Expert Systems: Principles and Programming, Fourth Edition

Nonprocedural Paradigms Do not depend on the programmer giving exact details how the program is to be solved. Declarative programming – goal is separated from the method to achieve it. Object-oriented programming – partly imperative and partly declarative – uses objects and methods that act on those objects. Inheritance – (OOP) subclasses derived from parent classes. Expert Systems: Principles and Programming, Fourth Edition

Figure 1.9 Nonprocedural Languages Expert Systems: Principles and Programming, Fourth Edition

What are Expert Systems? Can be considered declarative languages: Programmer does not specify how to achieve a goal at the algorithm level. Induction-based programming – the program learns by generalizing from a sample. Expert Systems: Principles and Programming, Fourth Edition