Chapter 1: Introduction to Expert Systems

Similar documents
Knowledge based expert systems D H A N A N J A Y K A L B A N D E

MYCIN. The MYCIN Task

Rule-based Expert Systems

Knowledge-Based - Systems

MYCIN. The embodiment of all the clichés of what expert systems are. (Newell)

Study and Analysis of MYCIN expert system

Software Maintenance

Lecture 1: Basic Concepts of Machine Learning

FUZZY EXPERT. Dr. Kasim M. Al-Aubidy. Philadelphia University. Computer Eng. Dept February 2002 University of Damascus-Syria

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

Abstractions and the Brain

MASTER OF SCIENCE (M.S.) MAJOR IN COMPUTER SCIENCE

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

MINISTRY OF EDUCATION

POLA: a student modeling framework for Probabilistic On-Line Assessment of problem solving performance

What is a Mental Model?

Modeling user preferences and norms in context-aware systems

Maximizing Learning Through Course Alignment and Experience with Different Types of Knowledge

Feature-oriented vs. Needs-oriented Product Access for Non-Expert Online Shoppers

GACE Computer Science Assessment Test at a Glance

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1

Proposal of Pattern Recognition as a necessary and sufficient principle to Cognitive Science

Learning Methods for Fuzzy Systems

AGENDA LEARNING THEORIES LEARNING THEORIES. Advanced Learning Theories 2/22/2016

Neuro-Symbolic Approaches for Knowledge Representation in Expert Systems

CONCEPT MAPS AS A DEVICE FOR LEARNING DATABASE CONCEPTS

Operational Knowledge Management: a way to manage competence

EXPERT SYSTEMS IN PRODUCTION MANAGEMENT. Daniel E. O'LEARY School of Business University of Southern California Los Angeles, California

Accelerated Learning Online. Course Outline

Laboratorio di Intelligenza Artificiale e Robotica

A Comparison of the Rule and Case-based Reasoning Approaches for the Automation of Help-desk Operations at the Tier-two Level

On Human Computer Interaction, HCI. Dr. Saif al Zahir Electrical and Computer Engineering Department UBC

Lecture 1: Machine Learning Basics

Circuit Simulators: A Revolutionary E-Learning Platform

The Conversational User Interface

EECS 571 PRINCIPLES OF REAL-TIME COMPUTING Fall 10. Instructor: Kang G. Shin, 4605 CSE, ;

Seminar - Organic Computing

University of Groningen. Systemen, planning, netwerken Bosman, Aart

A Genetic Irrational Belief System

Commanding Officer Decision Superiority: The Role of Technology and the Decision Maker

Computerized Adaptive Psychological Testing A Personalisation Perspective

Android App Development for Beginners

Learning Disability Functional Capacity Evaluation. Dear Doctor,

LEGO MINDSTORMS Education EV3 Coding Activities

Consultation skills teaching in primary care TEACHING CONSULTING SKILLS * * * * INTRODUCTION

A Case Study: News Classification Based on Term Frequency

Exploration. CS : Deep Reinforcement Learning Sergey Levine

Effectiveness of Electronic Dictionary in College Students English Learning

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

On-Line Data Analytics

Rover Races Grades: 3-5 Prep Time: ~45 Minutes Lesson Time: ~105 minutes

A Version Space Approach to Learning Context-free Grammars

A student diagnosing and evaluation system for laboratory-based academic exercises

Introduction to Forensics: Preventing Fires in the First Place. A Distance Learning Program Presented by the FASNY Museum of Firefighting

The College Board Redesigned SAT Grade 12

Accelerated Learning Course Outline

Rendezvous with Comet Halley Next Generation of Science Standards

Emergency Management Games and Test Case Utility:

Innovative Methods for Teaching Engineering Courses

Major Lessons from This Work

Specification and Evaluation of Machine Translation Toy Systems - Criteria for laboratory assignments

CPMT 1347 Computer System Peripherals COURSE SYLLABUS

QuickStroke: An Incremental On-line Chinese Handwriting Recognition System

Computer Organization I (Tietokoneen toiminta)

Lecture 2: Quantifiers and Approximation

Intelligent Agents. Chapter 2. Chapter 2 1

Copyright Corwin 2015

Rule Chaining in Fuzzy Expert Systems

Artificial Neural Networks written examination

Timeline. Recommendations

Unit 3. Design Activity. Overview. Purpose. Profile

SCORING KEY AND RATING GUIDE

Laboratorio di Intelligenza Artificiale e Robotica

MARKETING MANAGEMENT II: MARKETING STRATEGY (MKTG 613) Section 007

Grade 4. Common Core Adoption Process. (Unpacked Standards)

AUTOMATED TROUBLESHOOTING OF MOBILE NETWORKS USING BAYESIAN NETWORKS

Data Structures and Algorithms

AQUA: An Ontology-Driven Question Answering System

A Neural Network GUI Tested on Text-To-Phoneme Mapping

Self Study Report Computer Science

DIGITAL GAMING & INTERACTIVE MEDIA BACHELOR S DEGREE. Junior Year. Summer (Bridge Quarter) Fall Winter Spring GAME Credits.

A Pipelined Approach for Iterative Software Process Model

CS 598 Natural Language Processing

Speech Recognition at ICSI: Broadcast News and beyond

Software Development: Programming Paradigms (SCQF level 8)

Planning with External Events

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

New Paths to Learning with Chromebooks

CLASSIFICATION OF PROGRAM Critical Elements Analysis 1. High Priority Items Phonemic Awareness Instruction

South Carolina English Language Arts

Grade 8: Module 4: Unit 1: Lesson 11 Evaluating an Argument: The Joy of Hunting

Radius STEM Readiness TM

Evolution of Symbolisation in Chimpanzees and Neural Nets

Breaking the Habit of Being Yourself Workshop for Quantum University

SARDNET: A Self-Organizing Feature Map for Sequences

TU-E2090 Research Assignment in Operations Management and Services

Tap vs. Bottled Water

Agent-Based Software Engineering

An OO Framework for building Intelligence and Learning properties in Software Agents

GENERAL SERVICES ADMINISTRATION Federal Acquisition Service Authorized Federal Supply Schedule Price List. Contract Number: GS-00F-063CA

Transcription:

Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition Original by Course Technology Modified by Ramin Halavati (halavati@ce.sharif.edu)

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 2

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 3

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 4

Fig 1.1 Areas of Artificial Intelligence 5

Expert system technology may include: Special expert system languages CLIPS Programs Hardware designed to facilitate the implementation of those systems 6

Expert System Main Components Knowledge base obtainable from books, magazines, knowledgeable persons, etc. Inference engine draws conclusions from the knowledge base 7

Figure 1.2 Basic Functions of Expert Systems 8

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. 9

Figure 1.3 Problem and Knowledge Domain Relationship 10

Advantages of Expert Systems Increased availability Reduced cost Reduced danger Performance Multiple expertise Increased reliability 11

Advantages Continued Explanation Fast response Steady, unemotional, and complete responses at all times Intelligent tutor Intelligent database 12

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 13

Knowledge Engineering The process of building an expert system: 1. The knowledge engineer establishes a dialog with the human expert to elicit knowledge. 2. The knowledge engineer codes the knowledge explicitly in the knowledge base. 3. The expert evaluates the expert system and gives a critique to the knowledge engineer. 14

Development of an Expert System 15

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. 16

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. 17

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. 18

Development of Expert Systems Rooted from Cognitive Studies: How does human process information Newell/Simon Model (GPS) Long Term Memory: IF-Then Rules Short Term Memory: Current Facts Inference Engine/Conflict Resolution 19

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. 20

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 21

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 22

Expert Systems Applications and Domains 23

Considerations for Building Expert Systems Can the problem be solved effectively by conventional programming? Ill-Structured Problems / Rigid Control Is the domain well bound? 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 24

Considerations for Building Expert Systems Is there at least one human expert who is willing to cooperate? Their faults may b 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? 25

Expert Systems Languages, Shells, and Tools Conventional computer programs generally solve problems having algorithmic solutions. Tight interweaving of data and knowledge results in rigid control flow control. More advance languages limit the usage, but are easier for the limited area. 26

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. 27

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. 28

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! 29

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. 30

An Example from MYCIN IF 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 gramnegm 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 pesudomonas. 31

An Example from XCON/R1 IF 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. 32

Structure of a Rule-Based Expert System 33

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 34

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. 35

Mathematical Roots of Rule Based Systems Post Production Systems Markov Algorithm Rete Algorithm 36

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. 37

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. 38

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. 39

Programming Paradigms Procedural (sequential) Functional/Imperative None Procedural 40

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. 41

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. 42

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. 43

Nonprocedural Languages 44

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. 45

Neuron Processing Element 46

A Back-Propagation Net 47

Figure 1.12 Hopfield Artificial Neural Net 48

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. 49

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. 50

Disadvantage of ANS No Explanation Facility. Requires a lot of examples for training. The training result can not be (easily) analyzed. 51

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. 52

Summary During the 20 th 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. 53

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. 54