Chapter 1: 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
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.
Supporting Business Decisions Expert Systems. Expert system definition Possible working definition of an expert system: –“A computer system with a knowledge.
Becerra-Fernandez, et al. -- Knowledge Management 1/e -- © 2004 Prentice Hall Chapter 7 Technologies to Manage Knowledge: Artificial Intelligence.
Rule Based Systems Michael J. Watts
Chapter 12: Expert Systems Design Examples
Rule Based Systems Alford Academy Business Education and Computing
Expert System Human expert level performance Limited application area Large component of task specific knowledge Knowledge based system Task specific knowledge.
Chapter 11 Artificial Intelligence and Expert Systems.
Introduction to Expert Systems
Chapter 1: Introduction to Expert Systems
Artificial Intelligence
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.
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
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.
© 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.
Chapter 1: Introduction to Expert Systems
Chapter 1: Introduction to Expert Systems
MSIS 110: Introduction to Computers; Instructor: S. Mathiyalakan1 Specialized Business Information Systems Chapter 11.
“Get outa here!”.
Building Knowledge-Driven DSS and Mining Data
McGraw-Hill/Irwin ©2005 The McGraw-Hill Companies, All rights reserved ©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin.
Sepandar Sepehr McMaster University November 2008
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Rule-Based Expert Systems. Expert Systems  Acknowledge that computers do not posses general knowledge (common sense)  Attempt to train computer in a.
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.
An Introduction to Artificial Intelligence and Knowledge Engineering N. Kasabov, Foundations of Neural Networks, Fuzzy Systems, and Knowledge Engineering,
11 C H A P T E R Artificial Intelligence and Expert Systems.
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.
Course Instructor: K ashif I hsan 1. Chapter # 2 Kashif Ihsan, Lecturer CS, MIHE2.
School of Computer Science and Technology, Tianjin University
Expert Systems An Introduction to Expert Systems and CLIPS by Charles Weddle.
Fundamentals of Information Systems, Third Edition2 Principles and Learning Objectives Artificial intelligence systems form a broad and diverse set of.
Introduction to Artificial Intelligence and Soft Computing
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) دكترمحسن كاهاني
Neural Network Basics Anns are analytical systems that address problems whose solutions have not been explicitly formulated Structure in which multiple.
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.
 Negnevitsky, Pearson Education, Introduction, or what is knowledge? Knowledge is a theoretical or practical understanding of a subject or a domain.
Artificial Intelligence: Research and Collaborative Possibilities a presentation by: Dr. Ernest L. McDuffie, Assistant Professor Department of Computer.
Of An Expert System.  Introduction  What is AI?  Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES.
Artificial Intelligence
Expert System Seyed Hashem Davarpanah University of Science and Culture.
ITEC 1010 Information and Organizations Chapter V Expert Systems.
Artificial Intelligence, simulation and modelling.
Survey on Expert System Seung Jun Lee Dept. of Nuclear and Quantum Engineering KAIST Mar 3, 2003.
Artificial Intelligence: Applications
Artificial Intelligence
What is cognitive psychology?
Chapter 1: Introduction to Expert Systems
Advanced AI Session 2 Rule Based Expert System
CHAPTER 1 Introduction BIC 3337 EXPERT SYSTEM.
Introduction Characteristics Advantages Limitations
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Architecture Components
Knowledge Representation
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Artificial Intelligence
Artificial Intelligence introduction(2)
Expert Systems.
Chapter 1: Introduction to Expert Systems
Presentation transcript:

Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition Original by Course Technology Modified by Hamidreza Mahini (hamidreza.mahini@gmail.com)

Objectives Learn the meaning of an expert system Understand the problem domain and knowledge domain Learn the advantages of an expert system Understand the stages in the development of an expert system Examine the general characteristics of an expert system Expert Systems: Principles and Programming, Fourth Edition

Objectives Examine earlier expert systems which have given rise to today’s knowledge-based systems Explore the applications of expert systems in use today Examine the structure of a rule-based expert system Learn the difference between procedural and nonprocedural paradigms What are the characteristics of artificial neural systems Expert Systems: Principles and Programming, Fourth Edition

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 Systems: Principles and Programming, Fourth Edition

Fig 1.1 Areas of Artificial Intelligence Expert Systems: Principles and Programming, Fourth Edition

Expert system technology may include: Special expert system languages – CLIPS Programs Hardware designed to facilitate the implementation of those systems Expert Systems: Principles and Programming, Fourth Edition

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

Advantages of Expert Systems Increased availability Reduced cost Reduced danger Performance Multiple expertise Increased reliability Expert Systems: Principles and Programming, Fourth Edition

Advantages Continued Explanation Fast response Steady, unemotional, and complete responses at all times Intelligent tutor Intelligent database 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

Uncertainty Both human experts and expert systems must be able to deal with uncertainty. 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

Limitations of Expert Systems Typical expert systems cannot generalize through analogy to reason about new situations in the way people can. A knowledge acquisition bottleneck results from the time-consuming and labor intensive task of building an expert system. Expert Systems: Principles and Programming, Fourth Edition

Development of Expert Systems Rooted from Cognitive Studies: How does human process information Newell/Simon Model (General Problem Solver) (Ernst & Newell, 1969; Newell & Simon, 1972) Long Term Memory: IF-Then Rules Short Term Memory: Current Facts Inference Engine/Conflict Resolution Expert Systems: Principles and Programming, Fourth Edition

Rule Examples IF the car doesn’t run and the fuel gauge reads empty THEN fill the gas tank. IF there is flame, THEN there is a fire. IF there is smoke, THEN there may be a fire. IF there is a siren, THEN there may be a fire. Expert Systems: Principles and Programming, Fourth Edition

Expert Knowledge Base Knowledge / Expert Knowledge Book Rules / Heuristics and Experiences (secrets!) Experts usually score almost similar to novices in brand new problems. Chess Rules / Chess Master Patterns 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

Expert Systems Applications and Domains Expert Systems: Principles and Programming, Fourth Edition

Considerations for Building Expert Systems Can the problem be solved effectively by conventional programming? Ill-Structured Problems / Rigid Control Is the domain well-bounded? Headache: Neurochemistry, biochemistry, chemistry, molecular biology, physics, yoga, exercise, stress management, psychiatry, … Is there a need and a desire for an expert system? The Traffic Light Example Expert Systems: Principles and Programming, Fourth Edition

Considerations for Building Expert Systems Is there at least one human expert who is willing to cooperate? Their faults may be revealed. Their secrets are revealed. They have different ideas. Can the expert explain the knowledge to the knowledge engineer can understand it. How do you move your finger? Medicine Is the problem-solving knowledge mainly heuristic and uncertain? If not, why expert system? Expert Systems: Principles and Programming, Fourth Edition

Expert Systems Languages, Shells, and Tools Conventional computer programs generally solve problems having algorithmic solutions. Tight interwoven of data and knowledge results in rigid flow control. More advance languages limit the usage, but are easier for the limited area. 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

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! Expert Systems: Principles and Programming, Fourth Edition

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

An Example from MYCIN IF THEN The site of the culture is blood and The identity of the organism is not known with certainty, and The stain of the organism is griming and The morphology of the organism is rod, and The patient is seriously burned. THEN There is a weakly suggestive evidence (.4) that the identity of the organism is pseudomonas. Expert Systems: Principles and Programming, Fourth Edition

An Example from XCON/R1 IF THEN The current context is assigning devices to Unibus modules, and There is an unassigned dual-port disk drive, and The type of controller it requires is known, and There are two such controllers, neither of which has any devices assigned to it, and The number of devices that these controllers can support is known, THEN Assign the disk drive to each of the controllers, and Note that the two controllers have been associated and each supports one drive. Expert Systems: Principles and Programming, Fourth Edition

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

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

Main Inference Engine Cycle While Not DONE If there are active rules, Conflict Resolution. Else DONE. Act Match Check for Halt End of While Accept a new user command. Expert Systems: Principles and Programming, Fourth Edition

Why rule based systems? Expert Systems: Principles and Programming, Fourth Edition

Mathematical Roots of Rule Based Systems Post Production Systems Markov Algorithm Rete Algorithm 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. Basic limitation – lack of control mechanism to guide the application of the rules. Expert Systems: Principles and Programming, Fourth Edition

Post Production System (Cont.) 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. The Markov algorithm terminates if either: The last production is not applicable to a string A production that ends with a period is applied Expert Systems: Principles and Programming, Fourth Edition

Markov Algorithm (Cont.) Expert Systems: Principles and Programming, Fourth Edition

Rete Algorithm Functions like a net – holding a lot of information. Much faster response times and rule firings can occur compared to a large group of IF-THEN rules which would have to be checked one-by-one in conventional program. Takes advantage of temporal redundancy and structural similarity. Drawback is high memory space requirements. Expert Systems: Principles and Programming, Fourth Edition

Foundation of modern rule based expert systems Expert Systems: Principles and Programming, Fourth Edition

Programming Paradigms Procedural (sequential) Functional/Imperative None Procedural 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

Imperative Programming Focuses on the concept of modifiable store – variables and assignments. During execution, program makes transition from the initial state to the final state by passing through series of intermediate states. Provide for top-down-design. Not efficient for directly implementing expert systems. 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

Nonprocedural Languages Expert Systems: Principles and Programming, Fourth Edition

Artificial Neural Systems In the 1980s, a new development in programming paradigms appeared called artificial neural systems (ANS). Based on the way the brain processes information. Models solutions by training simulated neurons connected in a network. ANS are found in face recognition, medical diagnosis, games, and speech recognition. Expert Systems: Principles and Programming, Fourth Edition

Biological Neuron Expert Systems: Principles and Programming, Fourth Edition

Synapse concept Hebb’s Rule: The synapse resistance to the incoming signal can be changed during a "learning" process [1949] Hebb’s Rule: If an input of a neuron is repeatedly and persistently causing the neuron to fire, a metabolic change happens in the synapse of that particular input to reduce its resistance Expert Systems: Principles and Programming, Fourth Edition

Neuron Processing Element Expert Systems: Principles and Programming, Fourth Edition

A Back-Propagation Net Expert Systems: Principles and Programming, Fourth Edition

Figure 1.12 Hopfield Artificial Neural Net Expert Systems: Principles and Programming, Fourth Edition

ANS Characteristics ANS is similar to an analog computer using simple processing elements connected in a highly parallel manner. Processing elements perform Boolean / arithmetic functions in the inputs Key feature is associating weights w/each element. Expert Systems: Principles and Programming, Fourth Edition

Advantages of ANS Storage is fault tolerant Quality of stored image degrades gracefully in proportion to the amount of net removed. Nets can extrapolate and interpolate from their stored information. Nets have plasticity. Excellent when functionality is needed long-term w/o repair in hostile environment – low maintenance. Expert Systems: Principles and Programming, Fourth Edition

Disadvantage of ANS No Explanation Facility. Requires a lot of examples for training. The training result can not be (easily) analyzed. Expert Systems: Principles and Programming, Fourth Edition

MACIE An inference engine called MACIE (Matrix Controlled Inference Engine) uses ANS knowledge base. Designed to classify disease from symptoms into one of the known diseases the system has been trained on. MACIE uses forward chaining to make inferences and backward chaining to query user for additional data to reach conclusions. Expert Systems: Principles and Programming, Fourth Edition

Summary During the 20th Century various definitions of AI were proposed. In the 1960s, a special type of AI called expert systems dealt with complex problems in a narrow domain, e.g., medical disease diagnosis. Today, expert systems are used in a variety of fields. Expert systems solve problems for which there are no known algorithms. Expert Systems: Principles and Programming, Fourth Edition

Summary Continued Expert systems are knowledge-based – effective for solving real-world problems. Expert systems are not suited for all applications. Future advances in expert systems will hinge on the new quantum computers and those with massive computational abilities in conjunction with computers on the Internet. Expert Systems: Principles and Programming, Fourth Edition