Lecture 20. Recap The main components of an ES are –Knowledge Base (LTM) –Working Memory (STM) –Inference Engine (Reasoning)

Slides:



Advertisements
Similar presentations
Rule-based representation
Advertisements

CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
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.
Forward Chaining and Backward Chaining. Inference Engine cycles via a match-fire procedure Knowledge Base Database Fact:A isx MatchFire Fact:B isy Rule:
Inferences The Reasoning Power of Expert Systems.
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Rule Based Systems Michael J. Watts
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.
 Negnevitsky, Pearson Education, Lecture 2 Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation.
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
Designing A KBS Rulebase Expert System Uncertainty Management
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.
EXPERT SYSTEMS Part I.
Inferencing using forward- and backward-chaining.
Building Knowledge-Driven DSS and Mining Data
ES: Expert Systems n Knowledge Base (facts, rules) n Inference Engine (software) n User Interface.
Artificial Intelligence CSC 361
© Negnevitsky, Pearson Education, Lecture 2 Introduction, or what is knowledge? Introduction, or what is knowledge? Rules as a knowledge representation.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
INTELLIGENT SYSTEMS Rule based systems 1. Aims of session To understand  Basic principles  Forward chaining  Problems with rule-based systems  Backward.
IDDS: Rules-based Expert Systems
Introduction to Expert Systems. Other Resources Handout at ECE Office.
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.
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 
MNF IT-272 Kunstig intelligens - høst 2002 Forelesning 6. Emner: Kunnskapsintensiv problemløsning - kunnskapbaserte systemer, ekspertsystemer Regelbaserte.
Knowledge and Expert Systems
Lecture 18.
Rule-Based Expert System Aziz Kustiyo Departemen Ilmu Komputer FMIPA IPB 2011.
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.
Chapter 4: Inference Techniques
1 Intelligent Systems and Control Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation technique n The.
 Negnevitsky, Pearson Education, Introduction, or what is knowledge? Knowledge is a theoretical or practical understanding of a subject or a domain.
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
Forward and Backward Chaining
Expert System Seyed Hashem Davarpanah University of Science and Culture.
1 Chapter 13 Artificial Intelligence and Expert Systems.
Expert System / Knowledge-based System Dr. Ahmed Elfaig 1.ES can be defined as computer application program that makes decision or solves problem in a.
Artificial Intelligence: Applications
Lecture 19. Recap Human Expert vs. Expert System Why Expert Systems? –Increase Availability –Reduce Cost –Permanence –Expertise drawn from multiple sources.
EA C461 Artificial Intelligence
Knowledge and Expert Systems
Advanced AI Session 2 Rule Based Expert System
Expert Systems 6/3/2018.
Artificial Intelligence, P.I
Chapter 9. Rules and Expert Systems
Rule-based expert systems
Introduction to Expert Systems Bai Xiao
Architecture Components
Knowledge Representation
CS62S: Expert Systems Based on:
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Artificial Intelligence
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
Chapter 9. Rules and Expert Systems
08th September 2005 Dr Bogdan L. Vrusias
Presentation transcript:

Lecture 20

Recap The main components of an ES are –Knowledge Base (LTM) –Working Memory (STM) –Inference Engine (Reasoning)

Lecture Summary Explanation Facility Characteristics of Expert Systems Inference Mechanisms –Forward Chaining –Backward Chaining

Explanation Facility Module of an expert system, that allows transparency of operation, by providing the an explanation of how it reached the conclusion. In the above example, how does the expert system draw the conclusion that Ali likes Ahmed?

Explanation Knowledge Base Rule 1: IF father (X, Y) AND father (X, Z) THEN brother (Y, Z) Rule 2: IF father (X, Y) THEN payTuition (X, Y) Rule 3: IF brother (X, Y) THEN like (X, Y) Working Memory father (M.Tariq, Ali) father (M.Tariq, Ahmed) brother (Ali, Ahmed) payTuition (M.Tariq, Ali) payTuition (M.Tariq,Ahmed) like (Ali, Ahmed) How?

Characteristics of an Expert System Separates Knowledge From Control –Knowledge Base, Working Memory and Inference Engine –Comparison to traditional programs that mix a program’s knowledge and control. –Separation allows changes to the knowledge to be independent of changes in control and vice versa.

Characteristics of an Expert System Possesses Expert Knowledge –Embodies expertise of human expert Focuses Expertise –The larger the domain, the more complex the expert system becomes –E.g. Car Diagnosis Expert (more easily handled if we make separate ES components for engine problems, electricity problems, etc.)

Characteristics of an Expert System Reasons with Symbols (KR) Reasons Heuristically Permits Inexact Reasoning Is Limited to Solvable Problems Thrives on Reasonable Complexity Makes Mistakes

Programming vs Knowledge Engineering Conventional Programming –Sequential, three step process: Design, Code, Debug Knowledge Engineering –The process of building an expert system –Assessment, knowledge acquisition, design, testing, documentation and maintainace. Major differences –Conventional programming focuses on solution –ES programming focuses on problem. –You don’t just program an ES and consider it ‘built’. It grows as you add new knowledge –Once framework is made, addition of knowledge dictates growth of ES.

People Involved in an Expert System Project Domain Expert –‘A person who posses the skill and knowledge to solve a specific problem in a manner superior to others’ Durkin –For out purposes, an expert should have: Expert Knowledge in the given domain Good Communication Skills Availability Readiness to co-operate Knowledge Engineer –‘A person who designs, builds and tests an Expert System’ Durkin –Plays key role. Identifies, acquires and encodes knowledge. End-user

Inference Strategies Forward Chaining Backward Chaining

Forward Chaining How does a doctor go about diagnosing a patient. –Asks for symptoms –Infers diagnosis from symptoms Data-driven approach Forward Chaining: “Inference strategy that begins with a set of known facts, derives new facts using rules whose premises match the known facts, and continues this process until a goal sate is reached or until no further rules have premises that match the known or derived facts. This approach is similar to modus ponens.

Doctor Example Rules –Rule 1 IFThe patient has deep cough AND We suspect an infection THENThe patient has Pneumonia –Rule 2 IFThe patient’s temperature is above 100 THEN Patient has fever –Rule 3 IF The patient has been sick for over a fortnight AND The patient has a fever THENWe suspect an infection

Doctor example Case facts: –Patients temperature= 103 –Patient has been sick for over a month –Patient has violent coughing fits Approach –Add facts to working memory (WM) –Take each rule in turn and check to see if any of its premises match the facts in the WM –When matches found for all premises of a rule, place the conclusion of the rule in WM. –Repeat this process till no more facts can be added.

Doctor Example First Pass Temp= 103 Sick for a month Coughing fits Unknown1, 2 Suspect infection Temp= 103 Sick for a month Coughing fits Patient has fever True, fire rule2, 1 Temperature>100 Temp= 103 Sick for a month Coughing fits True1, 1 Deep cough Working MemoryStatusRule, premise

Doctor Example Second Pass Temp= 103 Sick for a month Coughing fits Patient has fever True3, 1 Sick for over fortnight Temp= 103 Sick for a month Coughing fits Patient has fever Infection True, fire3, 2 Patient has fever Temp= 103 Sick for a month Coughing fits Patient has fever Unknown1, 2 Suspect infection Temp= 103 Sick for a month Coughing fits Patient has fever True1, 1 Deep cough Working MemoryStatusRule, premise

Doctor Example Third Pass Temp= 103 Sick for a month Coughing fits Patient has fever Infection Pneumonia True, fire1, 2 Suspect infection Temp= 103 Sick for a month Coughing fits Patient has fever Infection True1, 1 Deep cough Working MemoryStatusRule, premise Now no more facts can be added to the WM. Diagnosis: Patient has Pneumonia

Issues The forward chaining inference engine infers all possible facts from the given facts Has no way of distinguishing between important and unimportant facts. Therefore, equal time spent on trivial evidence as well as crucial facts

Conflict Resolution When happens when the premises of two rules match the given fact. Which should be fired? If we fire both, they may add conflicting facts. E.g –IF you are bored AND you have no cash THEN go to a friend’s place –IF you are bored AND you have a credit card THEN go watch a movie