Knowledge Representation & Production Rule Systems SEEM

Similar documents
MYCIN. The MYCIN Task

Rule-based Expert Systems

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

Study and Analysis of MYCIN expert system

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

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

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

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

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

Software Maintenance

Introduction to Simulation

LEGO MINDSTORMS Education EV3 Coding Activities

The Evolution of Random Phenomena

Knowledge-Based - Systems

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

Proof Theory for Syntacticians

CS 598 Natural Language Processing

A Version Space Approach to Learning Context-free Grammars

Focus of the Unit: Much of this unit focuses on extending previous skills of multiplication and division to multi-digit whole numbers.

Language properties and Grammar of Parallel and Series Parallel Languages

Abstractions and the Brain

Rule Chaining in Fuzzy Expert Systems

have to be modeled) or isolated words. Output of the system is a grapheme-tophoneme conversion system which takes as its input the spelling of words,

Computerized Adaptive Psychological Testing A Personalisation Perspective

Name: Class: Date: ID: A

Major Lessons from This Work

Causal Link Semantics for Narrative Planning Using Numeric Fluents

Operational Knowledge Management: a way to manage competence

Cognitive Modeling. Tower of Hanoi: Description. Tower of Hanoi: The Task. Lecture 5: Models of Problem Solving. Frank Keller.

Concept Acquisition Without Representation William Dylan Sabo

Bachelor Class

GACE Computer Science Assessment Test at a Glance

How to analyze visual narratives: A tutorial in Visual Narrative Grammar

Modeling user preferences and norms in context-aware systems

Continuing Competence Program Rules

Stacks Teacher notes. Activity description. Suitability. Time. AMP resources. Equipment. Key mathematical language. Key processes

Planning with External Events

Innovative Methods for Teaching Engineering Courses

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

Integrating Meta-Level and Domain-Level Knowledge for Task-Oriented Dialogue

What is a Mental Model?

Module Title: Managing and Leading Change. Lesson 4 THE SIX SIGMA

On-Line Data Analytics

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

2/15/13. POS Tagging Problem. Part-of-Speech Tagging. Example English Part-of-Speech Tagsets. More Details of the Problem. Typical Problem Cases

SYLLABUS- ACCOUNTING 5250: Advanced Auditing (SPRING 2017)

ELA/ELD Standards Correlation Matrix for ELD Materials Grade 1 Reading

Correspondence between the DRDP (2015) and the California Preschool Learning Foundations. Foundations (PLF) in Language and Literacy

Executive Guide to Simulation for Health

Mathematics process categories

The College Board Redesigned SAT Grade 12

Large Kindergarten Centers Icons

TCC Jim Bolen Math Competition Rules and Facts. Rules:

An Experimental Comparison of Knowledge Representation Schemes

SOFTWARE EVALUATION TOOL

QuickStroke: An Incremental On-line Chinese Handwriting Recognition System

Candidates must achieve a grade of at least C2 level in each examination in order to achieve the overall qualification at C2 Level.

The Impact of the Multi-sensory Program Alfabeto on the Development of Literacy Skills of Third Stage Pre-school Children

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

Lecture 1: Basic Concepts of Machine Learning

Detecting English-French Cognates Using Orthographic Edit Distance

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

Neuro-Symbolic Approaches for Knowledge Representation in Expert Systems

E-Teaching Materials as the Means to Improve Humanities Teaching Proficiency in the Context of Education Informatization

Course Law Enforcement II. Unit I Careers in Law Enforcement

Tap vs. Bottled Water

Medical Complexity: A Pragmatic Theory

Loughton School s curriculum evening. 28 th February 2017

Grammars & Parsing, Part 1:

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

A General Class of Noncontext Free Grammars Generating Context Free Languages

Transfer Learning Action Models by Measuring the Similarity of Different Domains

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

An extended dual search space model of scientific discovery learning

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

Rendezvous with Comet Halley Next Generation of Science Standards

STT 231 Test 1. Fill in the Letter of Your Choice to Each Question in the Scantron. Each question is worth 2 point.

The Strong Minimalist Thesis and Bounded Optimality

Replies to Greco and Turner

Chapter 9 The Beginning Teacher Support Program

Multi-sensory Language Teaching. Seamless Intervention with Quality First Teaching for Phonics, Reading and Spelling

Multiple Intelligences 1

AQUA: An Ontology-Driven Question Answering System

Level 6. Higher Education Funding Council for England (HEFCE) Fee for 2017/18 is 9,250*

writing good objectives lesson plans writing plan objective. lesson. writings good. plan plan good lesson writing writing. plan plan objective

AN EXAMPLE OF THE GOMORY CUTTING PLANE ALGORITHM. max z = 3x 1 + 4x 2. 3x 1 x x x x N 2

English Policy Statement and Syllabus Fall 2017 MW 10:00 12:00 TT 12:15 1:00 F 9:00 11:00

A Correlation of. Grade 6, Arizona s College and Career Ready Standards English Language Arts and Literacy

5. UPPER INTERMEDIATE

Full text of O L O W Science As Inquiry conference. Science as Inquiry

A Pipelined Approach for Iterative Software Process Model

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

Intermediate Algebra

Document number: 2013/ Programs Committee 6/2014 (July) Agenda Item 42.0 Bachelor of Engineering with Honours in Software Engineering

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

Natural Language Processing. George Konidaris

ACADEMIC POLICIES AND PROCEDURES

Copyright Corwin 2015

P. Belsis, C. Sgouropoulou, K. Sfikas, G. Pantziou, C. Skourlas, J. Varnas

BSP !!! Trainer s Manual. Sheldon Loman, Ph.D. Portland State University. M. Kathleen Strickland-Cohen, Ph.D. University of Oregon

Transcription:

Knowledge Representation & Production Rule Systems SEEM 5750 1

Introduction Knowledge representation (KR) is as significant a factor in determining the success of a system as the software that uses the knowledge KR is of major importance in expert systems for two reasons: Expert systems are designed for a certain type of knowledge representation based on rules of logic called inferences KR is important as it affects the development, efficiency, speed, and maintenance of the system SEEM 5750 2

The meaning of knowledge Two special types of knowledge a priori a posteriori A priori knowledge comes before and is independent of knowledge from the senses is considered to be universally true and cannot be denied without contradiction examples of a priori knowledge: logic statements, mathematical laws, and the knowledge possessed by teenagers The opposite of a priori knowledge is knowledge derived from the senses: a posteriori knowledge since sensory experience may not always be reliable, a posteriori knowledge can be denied on the basis of new knowledge without the necessity of contradictions SEEM 5750 3

The meaning of knowledge SEEM 5750 4

The meaning of knowledge As an example: 137178766832525156430015 Without knowledge, this entire sequence appears to be noise if it is known that this sequence is meaningful, then the sequence is data Certain knowledge may transform data into information For example, the following algorithm processes the data to yield information: Group the numbers by twos. Ignore any two-digit numbers less than 32. Substitute the ASCII characters for the two-digit numbers. Application of this algorithm to the previous 24 numbers yields the information: GOLD 438+ SEEM 5750 5

The meaning of knowledge Now knowledge can be applied to this information: IF gold is less than 500 and the price is rising (+) THEN buy gold SEEM 5750 6

Knowledge Acquisition iti Knowledge engineer An AI specialist responsible for the technical side of developing an expert system. The knowledge engineer works closely with the domain expert to capture the expert s knowledge in a knowledge base Knowledge engineering (KE) The engineering discipline in which knowledge is integrated into computer systems to solve complex problems normally requiring a high level of human expertise SEEM 5750 7

Production Systems Represent knowledge in terms of multiple rules that specify what should be or should not be concluded in different situations. A rule-based system consists of IF-THEN rules, facts, and an interpreter Rules are popular for a number of reasons: Modular nature easy to encapsulate knowledge and expand the expert system by incremental development Explanation facilities By keeping track of which rules have fired, an explanation facility can present tthe chain of reasoning that tled dto a certain conclusion. Similarity to the human cognitive process SEEM 5750 8

Post production systems Production systems were first used in symbolic logic by Post who originated the name. The basic idea of Post was that any mathematical or logic system is simply a set of rules specifying how to change one string of symbols into another set of symbols. Given an input string, the antecedent, a production rule could produce a new string, the consequent. SEEM 5750 9

Post production systems A production rule could be: Antecedent Consequent person has fever take aspirin In terms of the IF-THEN notation as: IF person has fever THEN take aspirin The production rules can also have multiple antecedents person has fever AND fever is greater than 102 see doctor SEEM 5750 10

Post production systems A Post production system consists of a group of production rules (1) car won't start check battery (2) car won't start check gas (3) check battery AND battery bad replace battery (4) check gas AND no gas fill gas tank SEEM 5750 11

Post production systems The rules could have been written in any order (4) check gas AND no gas fill gas tank (2) car won't start check gas (1) car won't start check battery (3) check battery AND battery bad replace l battery The basic limitation is lack of a control strategy to guide the application of the rules Therefore, although they were useful in laying part of the foundation of expert systems, they are not adequate. SEEM 5750 12

Markov Algorithms A Markov algorithm is an ordered group of productions that are applied in order of priority to an input string It terminates if either, (I) the last production is not applicable to a string or, (2) a production that ends with a period is applied, For example, suppose the system consists of the single rule: AB HIJ input string GABKAB produces the new string GHIJKAB the production now applies to the new string, the final result is GHIJKHIJ SEEM 5750 13

Markov Algorithms ^ represents the null string A ^ deletes all occurrences of the character A Lowercase letters a, b, c, x, y, z represent single-character variables AxB BxA Reverse the characters A and B, where x is any single character An example of a Markov algorithm that moves the first letter of an input string to the end The rules are ordered d in terms of highest h priority it (I), next highest h (2), and so forth SEEM 5750 14

Markov Algorithms The following rules can move the first letter to the end. The rules are prioritized in the order that they are entered: (x and y are single-character variable; αis a special punctuation) (1) αxy yαx Input string: Execution Trace (2) αx xα ABC (3) α ^ (4) ^ α Rule Success / Failure String 1 F ABC 2 F ABC 3 F ABC 4 S αabc 1 S BαAC 1 S BCαA 1 F BCαA 2 S BCAα 1 F BCAα 2 F BCAα 3 S BCA SEEM 5750 15

The Rete Algorithm Markov algorithm is very inefficient for systems with many rules A solution is the Rete Algorithm The Rete Algorithm functions like a net in holding a lot of information much faster response times and rule firings can occur compared to a large group of IF-THEN rules which must be checked one by one in a conventional program The Rete Algorithm is a very fast pattern-matcher that obtains its speed by storing information about the rules in a network in memory SEEM 5750 16

Rule-based Systems Consider the problem of deciding to cross a street The productions for the two rules are the light is red -> stop the light is green -> go An equivalent pseudo code IF-THEN format as: Rule: Red_light IF IF the light is red THEN stop Rule: Green_light IF IF The light is green THEN go SEEM 5750 17

Rule-based Systems Each rule is identified by a name. Following the name is the IF part of the rule Between the IF and THEN part of the rule is called by various names such as the antecedent, conditional part, pattern part, or left-hand-side (LHS) The individual condition: the light is green is called a conditional element or a pattern SEEM 5750 18

Rule-based Systems The following are some examples of rules from the classic systems: MYCIN system for diagnosis i of meningitis iti and bacteremia (bacterial infections) 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 gramneg, and The morphology of the organism is rod, and The patient has been seriously burned THEN There is weakly suggestive evidence (.4) that the identity of the organism is pseudomonas SEEM 5750 19

Rule-based Systems XCON/Rl for configuring DEC VAX computer systems 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 SEEM 5750 20

Rule Inference Two general methods of inferencing used forward chaining backward chaining Other methods used means-ends analysis, problem reduction, backtracking, plan-generatetest, hierarchical planning and the least commitment principle, and constraint handling Forward chaining is reasoning from facts to the conclusions resulting from those facts Backward chaining involves reasoning in reverse from a hypothesis, a potential conclusion to be proved, to the facts that support the hypothesis SEEM 5750 21

Rule Inference CLIPS is designed for forward chaining, PROLOG performs backward chaining The choice of inference engine depends on the type of problem Diagnostic problems are better solved with backward chaining Prognosis, monitoring, and control are better done by forward chaining A rule whose patterns are all satisfied is said to be activated or instantiated. Multiple activated rules may be on the agenda at the same time, the inference engine must then select one rule for firing SEEM 5750 22

Rule Inference Following the THEN part of a rule is a list of actions to be executed when the rule fires the consequent or right-hand side (RHS) The inference engine operates in recognize-act cycles will repeatedly execute a group of tasks until certain criteria cause execution to cease SEEM 5750 23

Rule Inference Conflict resolution, act, match, and check for halt: WHILE not done Conflict Resolution: If there are activations, then select the one with highest priority, else done. Act: Sequentially perform the actions on the RHS of the selected activation. Re-move the activation that has just fired from the agenda. Match: Update the agenda by checking if the LHS of any rules are satisfied. If so, activate them. Remove activations if the LHS of their rules are no longer satisfied. Check for Halt: If a halt action is performed or break command given, then done. END-WHILE Accept a new user command SEEM 5750 24