Rule-Based Expert Systems. Expert Systems  Acknowledge that computers do not posses general knowledge (common sense)  Attempt to train computer in a.

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

EXPERT SYSTEMS AND KNOWLEDGE REPRESENTATION Ivan Bratko Faculty of Computer and Info. Sc. University of Ljubljana.
Expert Systems Reasonable Reasoning An Ad Hoc approach.
1 Rule Based Systems Introduction to Production System Architecture.
Expert Systems Reasonable Reasoning An Ad Hoc approach.
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.
Frame-based expert systems
Supporting Business Decisions Expert Systems. Expert system definition Possible working definition of an expert system: –“A computer system with a knowledge.
B. Ross Cosc 4f79 1 Frames Knowledge bases can be enhanced by using principles from frame knowledge representation (similar to object orientation) This.
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
Frame-Based Expert Systems
Frame Based Expert System
© Negnevitsky, Pearson Education, Introduction, or what is a frame? Introduction, or what is a frame? Frames as a knowledge representation technique.
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,
Intelligent systems Lecture 6 Rules, Semantic nets.
Knowledge Engineering
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Rule Based Systems Michael J. Watts
Artificial Intelligence Lecture No. 16
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.
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
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.
Building Knowledge-Driven DSS and Mining Data
Frame-based expert systems
Artificial Intelligence CSC 361
Sepandar Sepehr McMaster University November 2008
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
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.
13: Inference Techniques
 Knowledge Acquisition  Machine Learning. The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition.
Production Systems A production system is –a set of rules (if-then or condition-action statements) –working memory the current state of the problem solving,
School of Computer Science and Technology, Tianjin University
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 
Knowledge Representation
CSE (c) S. Tanimoto, 2002 Expert Systems 1 Expert Systems Outline: Various Objectives in Creating Expert Systems Integration of AI Techniques into.
Overview Of Expert System Tools Expert System Tools : are all designed to support prototyping. Prototype : is a working model that is functionally equivalent.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Finite State Machines (FSM) OR Finite State Automation (FSA) - are models of the behaviors of a system or a complex object, with a limited number of defined.
 Negnevitsky, Pearson Education, Introduction, or what is knowledge? Knowledge is a theoretical or practical understanding of a subject or a domain.
Artificial Intelligence
Forward and Backward Chaining
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
EXPERT SYSTEMS GROUP F.
Artificial Intelligence: Applications
Expert Systems By James Jennings Introduction  What is an Expert system?  expert system is a computer system that emulates the decision-making ability.
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
Maestro AI Vision and Design Overview Definitions Maestro: A naïve Sensorimotor Engine prototype. Sensorimotor Engine: Combining sensory and motor functions.
Advanced AI Session 2 Rule Based Expert System
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Architecture Components
Expert Systems by Melinda Smith - c  .
Artificial Intelligence (CS 370D)
Knowledge Representation and Inference
Presentation transcript:

Rule-Based Expert Systems

Expert Systems  Acknowledge that computers do not posses general knowledge (common sense)  Attempt to train computer in a “limited domain”  Experts have deep, often complex knowledge, but generally for a limited domain

Can A Computer Do What an Expert Does?  Limited domain  The system has a finite, and relatively small number of things it needs to “know” about.  The processing might be complex, but computers are good at that.  Can the expert knowledge be extracted?  Knowledge Engineers do the extracting  Experts provide their knowledge  Programmers encoded the knowledge into an “expert system.”

Some History  In the early to mid 1980’s the desire to build “expert systems” was very high in the US and elsewhere.  Japanese 5 th generation computing project  AI researchers aggressively recruited by industry  Expert systems were considered by many to be “the next big thing.”

Overstatement of Capabilities  The results of several expert systems were oversold.  Prospector didn’t really discover millions of dollars worth of Molybdenum.  The originators of the system never made this claim, but despite their efforts to stop it, the story is repeated to this day.

Frequently Cited Examples of Expert Systems  MYCIN  Infectious blood disease diagnosis  Dendral  Analyzed mass-spectra (chemistry)  PROSPECTOR  Geological analysis  R1  Configure a VAX computer

Expert knowledge can be difficult to extract  Experts often do not really know how they do things themselves. Although the expert can perform the tasks, he/she does not necessarily have access to the mechanism used.  Experts have reasons to be uncooperative in the process of disseminating their expertise.  Experts often disagree on both processes and conclusions.  The process might require judgment that is not easily codified.

Rule-based Expert Systems  Sets of IF-THEN rules are established to codify expert knowledge.  If then  If then  Antecedents can be combined using logical operators  If and or then  If and or then  IF “3 enemy stones in a row” AND NOT “3 friendly stones in a row” NOT “3 friendly stones in a row” Then “place a stone in the row with 3 enemy stones.”

Knowledge Engineers  Tasked with working with the expert to extract expertise and codify in a set of rules.  Has training in the development of expert systems, but not necessarily in the application domain.  Know the capabilities of the technology and knows how to apply it.

Expert System Shells  Separate the mechanisms for making inference from the rule base  Facilitate the entry of rules by non- programmers  Provide reuse for what would otherwise be redundant code across expert systems

Expert System Components  Inference Engine  Forward or Backward-chaining  Conflict resolution algorithms  Rule-base  IF-THEN rules  Database  Current state on which IF-THEN rules are applied.  Explanation Facilities  An important advantage rule-based expert systems hold over other types of AI

Inference Engines  Forward-chaining  Submit current data to all rules  Rules make conclusions, which in turn, generate new data  “Inference Chains” result from initial data and the data generated in conclusions.  Backward-chaining  Try to prove a conclusion by working backwards from ways to prove it.

Forward-chaining Example (A,B,E, and D are given)  If Y and D then Z  If X and B and E then Y  If A then X  If C then L  If L and M then N A D B X E Y Z Example from Negnevitsky C L

Backward Chaining  Prolog uses backward chaining  Work backward from the goal.  Check rules that can provided the desired goal.

Backward Chaining Example  If Y and D then Z  If X and B and E then Y  If A then X  If C then L  If L and M then N A D B E C ZY D X B E

Forward or Backward Chaining?  What do experts use?  Are we trying to prove a particular hypothesis?  Backward chaining  Are we trying to find all possible conclusions?  Forward chaining  What does the rule set look like?  Could be either one or a combination of both.

Conflict Resolution  What happens when two rules provide conflicting conclusions?  If it has feathers then it is a bird  If it can’t fly then it is not a bird  What if has feathers, but can’t fly?

Conflict Resolution Methods  Use rule-order as an implied priority  The first rule to provide an answer is used.  Assign a priority to each rule, the rule with the higher priority is sustained.  Longest Matching Strategy uses the rule with the most specific information.  If it cannot fly and has feathers then it is a bird.  Certainty-based conflict resolution  Measures of certainty are provided for data and rules. Most certain rule is sustained.

Frame-based Expert Systems  Frame  Marvin Minsky (1975)  Frame-based Expert Systems utilize frames to encapsulate data and methods about an entity.  Frames are similar to objects, but the data types and processing methods are quite different.

Frames  A frame is a data structure with typical knowledge about a particular object or concept [Negnevitsky].  Frame is a collection of attributes called “slots”  Example slots for a truck  Engine size  Number of wheels  Slots consists of attribute/value pairs called facets  Value/18  Default Value/4  Range/[3-18]  User Query/”Enter the number of wheels:”

Demons  Slots or facets can contain procedures that are executed with the data is accessed or changed  When_Changed demon is executed when new information is placed in a slot.  Might include forward chaining or backward chaining rules  When_Needed demon is executed when information is read from a slot  Might include code to read sensors or try to prove a goal

Inheritance  Frames can inherit from other frames.  Frame implicitly contains all the slots contained in the inherited frame unless the frame overrides the slot with its own definition.  Inheritance is established with the “IS-A” relationship  In frames, inheritance is principally used to provide default values, rather than structure and methods.

Other Frame Relationships  Aggregation (a-part-of)  An engine is a-part-of a car  A spark plug is a-part-of an engine  Association (Other semantic relationships)  Examples  Ownership (computer has-owner Joe)  Uses (dentist uses drill)  Location (Joe is-near theDesk)

No Limits on Relationships  Frame can employ multiple inheritance  Frame can have any number of relationships  Relationships can be of any type that is useful.

Interactions of Frames and Rules  Different frame-based systems use different mechanisms.  Rules are often invoked by demons. Some systems allow different rule sets to be applied to different frames

Why Use Frames?  In large systems, frames can provide the system the capability to find relevant information quickly.  Making inferences from the most relevant information can provide greater efficiency and allow searches to be constrained.  Relationships between frames can be provided at a relatively low cost.

Advantages of Expert Systems  Provide an explanation capability  What rules fired to provide the conclusion?  Why other conclusions were not made.  For simple domains, the rule-base might be simple and easy to verify and validate.  The system might use a method similar to what the expert uses.  Expert system shells provide a means to build simple systems without programming

Disadvantages of Expert Systems  When the number of rules is large, the effect of adding new rules can be difficult to assess.  Expert knowledge is not usually easily codified into rules.  Expert often lack access to their own analysis mechanisms.  Validation/Verification of large systems is very difficult.  Track record does not seem to contain many successes. Relatively high-risk to implement.