1 Knowledge Based Systems (CM0377) Lecture 10 (Last modified 19th March 2001)

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

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.
The CLIPS Programming Tool History of CLIPS –Influenced by OPS5 and ART –Implemented in C for efficiency and portability –Developed by NASA, distributed.
Expert System Shells - Examples
Conflict Resolution  what to do if there is more than 1 matching rule in each inference cycle? match WM with LHS of rules select one rule (conflict resolution)
Samad Paydar Ferdowsi University of Mashhad.  C Language Integrated Production System (CLIPS)  A tool for building expert systems  An expert system.
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,
1 01/12/2011Knowledge-Based Systems, Paula Matuszek Intro to CLIPS Paula Matuszek CSC 9010, Spring, 2011.
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Introduction to Expert System Chapter 11. Rule-Based AI 2013/5/2 1.
Chapter 7: Introduction to CLIPS
Intelligent systems Lecture 6 Rules, Semantic nets.
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
Artificial Intelligence CAP492
1 Pertemuan 6 RULE-BASED SYSTEMS Matakuliah: H0383/Sistem Berbasis Pengetahuan Tahun: 2005 Versi: 1/0.
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.
© C. Kemke Control 1 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.
Jess Presentation by Chun Ping Wang. What is Jess? Jess is an expert system shell made for java. Rete pattern algorithm. Purpose. –Jess is best use for.
CS 561, Session 25 1 Introduction to CLIPS Overview of CLIPS Facts Rules Rule firing Control techniques Example.
Artificial Intelligence CSC 361
Intro to Jess The Java Expert System Shell By Jason Morris Morris Technical Solutions.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
1 Programming a Knowledge Based Application. 2 Overview.
Chapter 7: Introduction to CLIPS Expert Systems: Principles and Programming, Fourth Edition.
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
Knowledge based Humans use heuristics a great deal in their problem solving. Of course, if the heuristic does fail, it is necessary for the problem solver.
Expert Systems An Introduction to Expert Systems and CLIPS by Charles Weddle.
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Inferencing in rule-based systems: forward and backward chaining.
Notes for Week 11 Term project evaluation and tips 3 lectures before Final exam Discussion questions for this week.
1 Knowledge Based Systems (CM0377) Introductory lecture (Last revised 28th January 2002)
Artificial Intelligence Lecture No. 19 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Chapter 9. Rules and Expert Systems Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Of An Expert System.  Introduction  What is AI?  Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES.
Mostly adopted from Jason Morris notes (Morris Technical Solutions)
Artificial Intelligence
Forward and Backward Chaining
1 Ch 17: Alternative Decision-Support Systems. 2 What is an expert system? ‘The modeling, within a computer, of expert knowledge in a given domain, such.
Intelligent systems Lecture 11 Tools for development of Expert Systems.
The CLIPS Expert System Shell Dr Nicholas Gibbins
Artificial Intelligence: Applications
Summary for final exam Agent System..
Intelligent Systems JESS constructs.
Advanced AI Session 2 Rule Based Expert System
Chapter 9. Rules and Expert Systems
Introduction to Expert Systems Bai Xiao
Chapter 7: Introduction to CLIPS
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Forward Chaining DFS can supply compatible bindings for forward chaining.
بسم الله الرحمن الرحیم آموزش نرم افزار CLIPS
Jess Knowledge, Influence, Behavior
Chapter 9. Rules and Expert Systems
Presentation transcript:

1 Knowledge Based Systems (CM0377) Lecture 10 (Last modified 19th March 2001)

2 Expert Systems One very important kind of knowledge- based system is the expert system. May be defined, briefly, as: –Tool for dealing with problems normally requiring involvement of a human expert, professional or specialist. Often able to (partially) justify its behaviour.

3 BCS ES specialist group definition ‘An expert system is regarded as the embodiment within a computer of a knowledge-based component, from an expert skill, in such a form that the system can offer intelligent advice or take an intelligent decision about a processing function. A desirable additional characteristic, which many would consider fundamental, is the capability of the system, on demand, to justify its own line of reasoning in a manner directly intelligible to the enquirer. The style adopted to attain these characteristics is rule-based programming.’

4 (One) basic expert system structure

5 Production rules Rule-Based Expert Systems very common. A Production Rule has form: if then Normally Production Rules work in conjunction with working memory. Thus: – test the state of the working memory; and change it.

6 Forward/backward chaining Consider: IF there’s a knock on going over a bump AND there is nothing loose in the boot THEN the problem is a worn-out ball joint If the 2 conditions are satisfied, then deduce the conclusion.

7 Forward/backward chaining Can invoke this rule in forward chaining mode, i.e. knowing conditions are true, infer conclusion. Alternatively, suppose you want to prove problem is a worn out ball joint. True if both conditions true; try to establish truth of these conditions—backward chaining. Forward chaining (data-driven reasoning): rule 'fired' when conditions are true; Backward chaining (goal-directed reasoning): rule which can deduce what we're trying to deduce is chosen and conditions checked.

8 What is a production system? (Forward-chaining system) Defined by: –Set of production rules. Condition-action pairs. –Working memory. Description of current state of world in a reasoning process. –Recognise-act cycle.

9 The recognise-act cycle 1Match conditions of all rules against elements in WM 2If >1 rule could fire, decide which to apply (conflict resolution) 3Apply the rule, perhaps amending WM, then repeat from (1)

10 Jess - an expert system shell Later we’ll learn how to implement a forward chaining inference engine in Prolog, but this time we’ll consider JESS (“Java Expert System Shell”): –Implemented in Java –Closely related to OPS5 and CLIPS –Forward chaining –Uses special technique (Rete algorithm) for efficiency (also to be covered later) –Can interface to and from Java if desired

11 Running Jess Type: java -classpath /opt/jess jess.Main.clp Manuals, etc., available at: It’s much more sophisticated than we have time to see here!

12 Example Diagnosis of computer fault: If the mains light isn’t on then conclude that the user should plug it in(!) If the machine boots but crashes then try reinstalling the operating system If it still crashes after reinstallation of OS, take it to a specialist service station If it doesn’t crash after reinstallation of OS, then maybe fixed: keep an eye on it

13 The Jess program (deftemplate stage (slot value )) (deftemplate mains_light_on (slot value)) (deftemplate boots (slot value)) (deftemplate crashes (slot value)) (ctd.)

14 The Jess program (ctd.) (defrule start => (assert (stage (value 1))) (printout t "Is the mains light on?") (assert (mains_light_on (value (readline)))) (printout t "Does it boot?") (assert (boots (value (readline)))) (printout t "Does it crash later?") (assert (crashes (value (readline)))) ) (ctd.)

15 The Jess program (ctd.) (defrule idiot_check (stage (value 1)) (mains_light_on (value "no")) => (printout t "Your problem is that your computer isn't plugged in!" crlf) ) (ctd.)

16 The Jess program (ctd.) (defrule try_reinstalling (boots (value "yes")) ?cr <- (crashes (value "yes")) ?st <- (stage (value 1)) => (printout t "Try reinstalling the operating system" crlf) (printout t "Now does it crash?") (retract ?st ?cr) (assert (crashes (value (readline)))) (assert (stage (value 2))) ) (ctd.)

17 The Jess program (ctd.) (defrule dunno (stage (value 2)) (crashes (value "yes")) => (printout t "Take it to a specialist service centre" crlf)) (defrule watch_it (stage (value 2)) (crashes (value "no")) => (printout t "Let's hope you've fixed it. Keep an eye on it." crlf)) (reset) (run)

18 Main features used Templates for working memory elements Rules where LHS is matched against working memory and RHS is the action to ‘fire’ if LHS is satisfied The ‘assignments’ are actually assigning temporary variables to the index numbers of WMEs, so that they can be retracted