Expert Systems Part 2 IE 469 Manufacturing Systems 469 صنع نظم التصنيع.

Slides:



Advertisements
Similar presentations
Representations for KBS: Uncertainty & Decision Support
Advertisements

Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
1 Inferences with Uncertainty Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson Copyright 1998, Prentice Hall, Upper Saddle.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Transportation Problem (TP) and Assignment Problem (AP)
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
CSC 123 Systems Analysis & Design
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
Activity relationship analysis
Chapter 4 Probability and Probability Distributions
Intelligent systems Lecture 6 Rules, Semantic nets.
Final Exam: May 10 Thursday. If event E occurs, then the probability that event H will occur is p ( H | E ) IF E ( evidence ) is true THEN H ( hypothesis.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Numerical Algorithms Matrix multiplication
Chapter 12: Expert Systems Design Examples
Reliability of Disk Systems. Reliability So far, we looked at ways to improve the performance of disk systems. Next, we will look at ways to improve the.
Chapter 9 Describing Process Specifications and Structured Decisions
Whole Genome Alignment using Multithreaded Parallel Implementation Hyma S Murthy CMSC 838 Presentation.
Review of Matrix Algebra
Lecture 05 Rule-based Uncertain Reasoning
Kendall & KendallCopyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 9 Kendall & Kendall Systems Analysis and Design, 9e Process Specifications.
Chapter 5 Normalization Transparencies © Pearson Education Limited 1995, 2005.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Computer Integrated Manufacturing CIM
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
THE MODEL OF ASIS FOR PROCESS CONTROL APPLICATIONS P.Andreeva, T.Atanasova, J.Zaprianov Institute of Control and System Researches Topic Area: 12. Intelligent.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
Normalization Transparencies
Pairwise Sequence Alignment. The most important class of bioinformatics tools – pairwise alignment of DNA and protein seqs. alignment 1alignment 2 Seq.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Facility Design-Week 8 BASIC ALGORITHMS FOR THE LAYOUT PROBLEM
Yaomin Jin Design of Experiments Morris Method.
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
SINGULAR VALUE DECOMPOSITION (SVD)
Lecture 5 Normalization. Objectives The purpose of normalization. How normalization can be used when designing a relational database. The potential problems.
Chapter 10 Normalization Pearson Education © 2009.
Uncertainty Management in Rule-based Expert Systems
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
International Conference on Fuzzy Systems and Knowledge Discovery, p.p ,July 2011.
Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.
Refined Online Citation Matching and Adaptive Canonical Metadata Construction CSE 598B Course Project Report Huajing Li.
Today Graphical Models Representing conditional dependence graphically
ELEC692 VLSI Signal Processing Architecture Lecture 12 Numerical Strength Reduction.
Copyright © 2011 Pearson Education Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall & Kendall Global Edition 9.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
Artificial Intelligence: Applications
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
Logical Database Design and the Rational Model
School of Computing Clemson University Fall, 2012
5 Systems of Linear Equations and Matrices
REASONING WITH UNCERTANITY
Potter’s Wheel: An Interactive Data Cleaning System
Artificial Intelligence (CS 370D)
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
Chapter 14 Normalization – Part I Pearson Education © 2009.
Describing Process Specifications and Structured Decisions
Discrete Math 2 Shortest Path Using Matrix
Chapter 11 Describing Process Specifications and Structured Decisions
MACHINE GROUPING IN CELLULAR MANUFACTURING With Reduction Of Material Handling As the Objective 19/04/2013 lec # 25 & 26.
Trees-2, Graphs Data Structures with C Chpater-6 Course code: 10CS35
Agenda Review Lecture Content: Shortest Path Algorithm
Software Testing and QA Theory and Practice (Chapter 5: Data Flow Testing) © Naik & Tripathy 1 Software Testing and Quality Assurance Theory and Practice.
Presentation transcript:

Expert Systems Part 2 IE 469 Manufacturing Systems 469 صنع نظم التصنيع

Uncertainty in Rule Bases Uncertainty in KBS can be caused by the problem with the data. Data might be missing or unavailable. Data might be present but unreliable or ambiguous due to measurement errors The representation of the data may be imprecise or inconsistent. Data may just be user’s best guess. Data may be based on default and the defaults may have exception Uncertainty may caused by the represented knowledge since it might be Represent best guesses of the experts that are based on plausible or statistical associations they have observed. Not be appropriate in all situations (may have indeterminate applicability)

Four approaches Bayesian approach, Certainty factor, Dempster-Sharper theory of evidence, Fuzzy Sets and Fuzzy logics Certainty Factor Varies slightly in its implementation Certainty factor c ∈ (0, 1) The formulas for calculating certainty factors Rule 1 IFEVIDENCE THENHYPOTHESYS(CF) CF(D 1 )=CF(R 1 )=CF(A 1 AND B 1 ) = min{C A1, C B1 } IF A 1 AND B 1 THEN D 1 CF(A 1 )=C A1, CF(B 1 )=C B1

Rule2 Rule 3 CF(D 2 )=CF(R 2 )=CF(A 2 OR B 2 ) = max{C A2, C B2 } IF A 2 OR B 2 THEN D 2 CF(D 1 )= min{C A1, C B1 } c IF A 1 AND B 1 THEN D 1 CF=c

Rule 4 Two production rules: CF(D 2 )= max{C A2, C B2 } c IF A 2 OR B 2 THEN D 2 CF=c CF(R1, R2)= c1+c2-c1*c2 = c1+c2(1-c1) Rule 1: IF A 1 AND B 1 THEN D 1 CF=c1 Rule 2: IF A 2 OR B 2 THEN D 2 CF=c2

Three production rules: CF(R1, R2, R3)= CF(R1, R2) + CF(R3) [1-CF(R1, R3)]

Knowledge-Based Systems (Knowledge Consistency)

Requirement Why is the knowledge consistency needed? Elicitation of production rules is a difficult step in building a knowledge-based system Errors associated with knowledge elicitation result in various inconsistencies and redundancies among production rules. This is especially likely to happen while developing large knowledge bases, in particular when the knowledge is elicited form multiple sources

C(R i ) = condition clause of production rule A(R i ) = action part of a production rule Production Rule IF C(R i ) THEN A(R i ) A rule base consists of a number of production rules R i  Example IF machine M 1 is available AND tool t 4 is loaded in tool magazine T 3 THEN release part p 6 for processing on machine M 1 C(R 1 ) A(R 1 )

1.Static anomalies Detected without inferenceing rules 2.Inference (dynamic) anomalies Identified during the inference process Knowledge Anomalies - Liebowitz and Desalvo[1989]

Static Anomalies Type 1 (Potential Conflict) Two rules with different conditions results identical actions –C(R i ) ≠ C(R j ), A(R i ) = A(R j ) Type 2 (Potential Conflict) Two rules with identical conditions results different actions –C(R i ) = C(R j ), A(R i ) ≠ A(R j ) Type 3 (Redundancy) Two rules with identical conditions results identical actions –C(R i ) = C(R j ), A(R i ) = A(R j ) Type 4 (Subsumption) Two rules with identical conditions, but one contains additional elements in the actions clauses –C(R i ) = C(R j ), A(R i ) ⊂ A(R j )

Inference Anomalies Type 5 (Cycle) Set of production rules forms a cycle –A(R 1 ) ⊆ C(R 2 ) ⊆ A(R 3 ) … ⊆ A(R n ) ⊆ C(R 1 ) Type 6 (Unreachable Action) In the backward inferencing, the action of a rule is neither a part of the possible query nor a part of the condition of another rule. Type 7 (Dead-End-Query) In the backward inferencing, the query does not match an action of one of the rules in the rule base Type 8 (Dead-End-Condition) To satisfy the condition of a rule in the backward inferencing, the condition must be askable or matched by a conclusion of one of the rules in the rule base

1.Detection of Static Anomaly  Detection with Simple Action Clause  Detection with Compound Condition & Action Clauses

Incidence Matrix 6 production rules R1, …, R6 representation Bipartite graph Incidence Matrix More suitable for computer applications, especially for large-scale knowledge bases ‘*’ Indicates the incidence of a condition-action clause

Detection with Simple Action Clause (1) R2, R5 : type3 redundancy (identical) R3, R6 : type1 anomaly (different conditions, identical actions) R1, R4 : type1 anomaly (different conditions, identical actions) CI algorithm

 CI (Clustering identification) Algorithm Detection with Simple Action Clause (2)

Detection with Simple Action Clause (3) CI algorithm example *** 2 ** 3 ** 4 ** 5 ** 6 * 7 **** Iteration 1 0. Set iteration number 1. Select any row i of incidence matrix and draw horizontal line h i through it 2. For each asterisk crossed by a horizontal line h i, draw a vertical line v j 3. For each asterisk crossed once by a vertical line v i, draw a horizontal line v j 4. Repeat 2, 3 until there are no more crossed- once asterisks, all crossed-twice asterisks form condition & action clause group 5. Transform the matrix by removing rows and columns corresponding to the group in 4 CC-1 = {1, 5, 7} AC-1 = {2, 3, 5, 8}

Detection with Simple Action Clause (4) ** 3 ** 4 ** 6 * 47 3 * 6 ** *** 5 *** 7 **** 2 ** 4 ** 3 ** 6 * 6. If matrix = 0, stop; otherwise set k=k+1 and goto step 1 Iteration 2Iteration 3 Final decomposition result

Detection with Compound Condition & Action Clauses (1) More than one element linked by AND and/or OR connector A Incidence Matrix is defined as follows ; a ij = * for the first element in clause j of rule i AND 2 for the second AND element in clause j of rule i OR 2 for the second OR element in clause j of rule i AND 3 for the third AND element in clause j of rule i OR 3 for the third OR element in clause j of rule i. AND k for the k th AND element in clause j of rule i OR k for the k th OR element in clause j of rule i R1 : IF C1 AND D1 THEN A5 AND A1 R2 : IF C2 AND D2 THEN A3 AND A7 AND A6 R3 : IF C3 AND D3 THEN A2 AND A4

Detection with Compound Condition & Action Clauses (2) R3, R6 : type2 anomaly (identical conditions, different actions) R1, R4 : type1 anomaly (different conditions, identical actions) R2, R5 : type1 anomaly (different conditions, similar actions) CI algorithm

Detection with Compound Condition & Action Clauses (3) Similarity measure The alternative approach of CI algorithm When an ideal decomposition (block diagonal structure) of an incidence matrix does not occur e i = P i1 AND P i2 AND … AND P if AND P i,f+1 AND … AND P in’ e j = Q j1 AND Q j2 AND … AND Q ig AND Q i,g+1 OR … OR Q jn’’ [e j ] = Q j[1] AND Q j[2] AND … AND Q i[g] AND Q i,[g+1] OR … OR Q j[n’’] e i = P i1 AND P i2 AND … AND P if AND P i,f+1 AND … AND P in’ Arranging the elements in the second clause

Detection with Compound Condition & Action Clauses (4)   (e ik, e j[k] ) K=1 n n S (e i, e j ) =  (e ik, e j[k] ) = 1 for P ik = Q j[k] 1 for op_P ik = op_Q j[k], k=2, …, n 0 otherwise n= max {n’, n’’} e ik = k th element of clause e i e j[k] = k th element of clause [e j ] op_P ik = logical operator and element that follows that operator

Detection with Compound Condition & Action Clauses (5) Similarity measure example e 1 = A 1 AND A 2 AND A 3 OR A 4 OR A 5 OR A 6 OR A 7 e 2 = A 3 AND A 1 AND A 2 AND A 5 OR B 1 AND A 8 AND A 7 [e 2 ] = A 1 AND A 2 AND A 3 AND A 5 OR B 1 AND A 7 AND A 8 s (e 1, e 2 ) = = 3 7 e 1 = A 1 AND A 2 AND A 3 OR A 4 OR A 5 OR A 6 OR A 7

Similarity measure and anomaly detection If s [C(R i, R j )] < 1 and s [A(R i, R j )] = 1, then type 1 anomaly exists ( different conditions, identical actions ) If s [C(R i, R j )] = 1 and s [A(R i, R j )] < 1, then type 2 anomaly exists ( identical conditions, different actions ) If s [C(R i, R j )] = 1 and s [A(R i, R j )] = 1, then type 3 anomaly exists ( identical conditions, identical actions ) Similarity measure pro & con Pro : can also be used to detect other types of anomalies Con : consider only two rules at a time, cf) clustering approach Detection with Compound Condition & Action Clauses (6)

2.Detection of Inference Anomaly  AND/OR Graph  Adjacency matrix

AND/OR Graph R1 : IF c1 OR c2 THEN a1 R2 : IF c7 AND a1 THEN A2 R3 : IF c3 AND c4 OR c5 THEN a3 R4 : IF a3 AND c6 THEN a4 R5 : IF a2 THEN c4 R6 : IF a4 AND c6 THEN a3 + R1 : IF c1 OR c2 THEN a1 R2 : IF c7 AND a1 THEN A2 R3 : IF c3 AND c4 OR c5 THEN a3 R4 : IF a3 AND c6 THEN a4

Adjacency Matrix b ij = + : if A(R i ) ⊆ C(R j ) 0 : no relationship between rules R i and R j exists  Example

Inference (Dynamic) Anomalies The order in which the production rules can be fired is R1, R2, R5, R3, R4 The element (R4, R6) in the upper diagonal indicates that there exists a cycle between rules R4 and R6 Triangularization algorithm