Knowledge-Based Systems. Outline 1. Outline 2. Expert System. Page 1. Development of KB Systems. CI = Computational Intelligence.

Similar documents
Expert System. Knowledge-Based Systems. Page 1. Development of KB Systems. Knowledge base. Expert system = Structured computer program

COMP108 Algorithmic Foundations

(a) v 1. v a. v i. v s. (b)

Formal Concept Analysis

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018

Instructions for Section 1

Ch 1.2: Solutions of Some Differential Equations

Minimum Spanning Trees

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely

CS 461, Lecture 17. Today s Outline. Example Run

Planar Upward Drawings

Walk Like a Mathematician Learning Task:

Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.

Basic Polyhedral theory

CSC Design and Analysis of Algorithms. Example: Change-Making Problem

Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1

Junction Tree Algorithm 1. David Barber

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1.

Lecture 11 Waves in Periodic Potentials Today: Questions you should be able to address after today s lecture:

Fundamental Algorithms for System Modeling, Analysis, and Optimization

CONTINUITY AND DIFFERENTIABILITY

Present state Next state Q + M N

Constructive Geometric Constraint Solving

TOPIC 5: INTEGRATION

Paths. Connectivity. Euler and Hamilton Paths. Planar graphs.

HIGHER ORDER DIFFERENTIAL EQUATIONS

CS 241 Analysis of Algorithms

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12

1 Introduction to Modulo 7 Arithmetic

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

Problem solving by search

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem)

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V

Linear Algebra Existence of the determinant. Expansion according to a row.

Numbering Boundary Nodes

Chapter 16. 1) is a particular point on the graph of the function. 1. y, where x y 1

Last time: introduced our first computational model the DFA.

FSA. CmSc 365 Theory of Computation. Finite State Automata and Regular Expressions (Chapter 2, Section 2.3) ALPHABET operations: U, concatenation, *

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas

INTEGRALS. Chapter 7. d dx. 7.1 Overview Let d dx F (x) = f (x). Then, we write f ( x)

Abstract Interpretation: concrete and abstract semantics

, between the vertical lines x a and x b. Given a demand curve, having price as a function of quantity, p f (x) at height k is the curve f ( x,

AP Calculus BC Problem Drill 16: Indeterminate Forms, L Hopital s Rule, & Improper Intergals

12. Traffic engineering

CSCI Compiler Design

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp

A Simple Code Generator. Code generation Algorithm. Register and Address Descriptors. Example 3/31/2008. Code Generation

Engineering 323 Beautiful HW #13 Page 1 of 6 Brown Problem 5-12

First derivative analysis

0.1. Exercise 1: the distances between four points in a graph

Multipoint Alternate Marking method for passive and hybrid performance monitoring

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

Outline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem)

Section 10.4 Connectivity (up to paths and isomorphism, not including)

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs

MATHEMATICS FOR MANAGEMENT BBMP1103

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim.

1 Isoparametric Concept

UNCORRECTED SAMPLE PAGES 4-1. Naming fractions KEY IDEAS. 1 Each shape represents ONE whole. a i ii. b i ii

QUESTIONS BEGIN HERE!

Register Allocation. Register Allocation. Principle Phases. Principle Phases. Example: Build. Spills 11/14/2012

CIVL 8/ D Boundary Value Problems - Rectangular Elements 1/7

Lecture contents. Bloch theorem k-vector Brillouin zone Almost free-electron model Bands Effective mass Holes. NNSE 508 EM Lecture #9

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals

Multiple Faults: Modeling, Simulation and Test Λ

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2

EEO 401 Digital Signal Processing Prof. Mark Fowler

The Matrix Exponential

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems

Multi-Section Coupled Line Couplers

The Matrix Exponential

Weighted graphs -- reminder. Data Structures LECTURE 15. Shortest paths algorithms. Example: weighted graph. Two basic properties of shortest paths

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation.

CS200: Graphs. Graphs. Directed Graphs. Graphs/Networks Around Us. What can this represent? Sometimes we want to represent directionality:

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s?

On spanning trees and cycles of multicolored point sets with few intersections

CS September 2018

Garnir Polynomial and their Properties

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

Page 1. Question 19.1b Electric Charge II Question 19.2a Conductors I. ConcepTest Clicker Questions Chapter 19. Physics, 4 th Edition James S.

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review

Gradebook & Midterm & Office Hours

Theoretical Study on the While Drilling Electromagnetic Signal Transmission of Horizontal Well

Construction of asymmetric orthogonal arrays of strength three via a replacement method

QUESTIONS BEGIN HERE!

EXST Regression Techniques Page 1

NP-Completeness. CS3230 (Algorithm) Traveling Salesperson Problem. What s the Big Deal? Given a Problem. What s the Big Deal? What s the Big Deal?

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths.

Winter 2016 COMP-250: Introduction to Computer Science. Lecture 23, April 5, 2016

y = 2xe x + x 2 e x at (0, 3). solution: Since y is implicitly related to x we have to use implicit differentiation: 3 6y = 0 y = 1 2 x ln(b) ln(b)

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018

Homotopy perturbation technique

CS 361 Meeting 12 10/3/18

Register Allocation. How to assign variables to finitely many registers? What to do when it can t be done? How to do so efficiently?

Transcription:

Knowldg-Bsd Systms Andrw Kusik, Profssor 9 Smns Cntr Iow City, Iow - 7 ndrw-kusik@uiow.du http://www.in.uiow.du/~nkusik Tl: 9-9 Fx: 9-9 Outlin INTRODUCTION KNOWLEDGE REPRESENTATION - First-Ordr Logi - Prodution Ruls -Frms - Smnti Ntworks INFERENCE ENGINE - Bsi Rsoning Strtgis - Unrtinty in Rul Bss - Othr Srh Strtgis Outlin KNOWLEDGE ACQUISITION KNOWLEDGE CONSISTENCY - Grouping Ruls with Simpl Ation Cluss - Infrn Anomlis in Rul Bss SUMMARY Exprt Systms, Knowldg-Bsd Systms, nd CI Computtionl Intllign Progrms Knowldg-Bsd Systms Exprt Systms Exhibit intllignt bhvior by skillful pplition of huristis Mk domin knowldg xpliit nd sprt from th rst of th systm Apply xprt knowldg to diffiult, rl world problms CI = Computtionl Intllign Exprt Systm Dvlopmnt of KB Systms Knowldg bs Tool buildr Domin xprt Infrn Engin Exprt systm = Struturd omputr progrm KB systm building tool Knowldg nginr KB systm End-usr Dt http://www.z-xprt.om/ Clril Stff http://www.z-xprt.om/smpls.html Pg

Knowldg-Bsd Systm Usr Slting th right pplition is importnt! Knowldg bs Usr intrf modul Infrn ngin ES Shll Working mmory Knowldgquisition modul DM Softwr Exprts Knowldg Rprsnttion Mthods First-ordr logi Prodution ruls (inluding struturd prodution ruls) Frms Smnti ntworks IF (onditions) THEN (onlusions) EXAMPLE IF Prodution Ruls prt Pi is to b dispthd to mhin M tht is oupid by nothr prt Pj THEN hk vilbility of n ltrntiv mhin Mb Advntgs of Prodution Ruls Frms Th us of rul n b sily xplind to th systm usr Slot VALUE If-ddd produr Dvloprs nd usrs n modify som ruls without brking th ntir systm Slot VALUE If-rmovd produr Nw knowldg n b inorportd into th systm simply by dding nw ruls without onrn of how thy fit into th ovrll knowldg bs Slot VALUE If-ndd produr Pg

A frm is viwd hr s nstd ssoition list with numbr of lvls of mbdding: (Frm (slot (ft (dtum (lbl mssg... ) ) (dtum... )... ) (ft... )... )... ) (slot... ) Frm (Frz_MPS (AKO ($VALUE (Dmpning_mhnism))) (Mthod_to_lot_siz_MPS ($VALUE (Wgnr_Whitin_mthod))) (Plnning_horizon_lngth ($VALUE (N (unit: k multipl of nturl yl lngth)))) (Rplnning_frquny ($VALUE (R (unit: th numbr of priods btwn rplnning yl)))) (Frz_intrvl ($VALUE (P (unit: th proportion of th ovrll plnning horizon n tht rmins fixd in h plnning yl)))) (Plnning_informtion ($VALUE (Ordr_bsd)))) Smnti Ntwork Bsi Rsoning Strtgis Frz_MPS Frz_MPS ISA ISA Dmpning_mhnism Dmpning_mhnism Forwrd rsoning Bkwrd rsoning hs prmtr Pln_horizon vlu K Exmpl Ruls Bs: : IF b THEN Gol R: IF d THEN R: IF THEN http://www.xsys.om/ : IF b THEN Gol Infrn (And/OR) tr IF subssmbly subssmbly b r vilbl THEN initit th ssmbly pross Gol b R: IF d THEN IF prt prt d hv bn ssmbld THEN subssmbly is vilbl Ruls: : IF b THEN Gol R: IF d THEN R: IF THEN d Pg

b Gol : IF b THEN Gol R: IF d THEN R: IF THEN R: IF sunny, THEN hot insid R: IF hot insid humid, THEN us AC d d : IF us AC mny popl, THEN swith b on unit Gol Givn th fts: b, d, nd, driv gol Ruls: : IF b THEN Gol R: IF d THEN R: IF THEN Forwrd Rsoning b Gol fird R fird R fird Infrn tr d Exmpl: Forwrd Rsoning Givn Prts Dtrmin Assmbly Givn th gol, driv fts tht prov it Bkwrd Rsoning Ruls: : IF b THEN Gol R: IF d THEN R: IF THEN b Gol b is stisfid, whil is not R R d is stisfid, whil is not d is tru, is stisfid; thn th gol is stisfid Exmpl: Bkwrd Rsoning Rsoning Summry Forwrd rsoning Bkwrd rsoning Ruls: : IF b THEN Gol R: IF d THEN Givn Assmbly Dtrmin Prts R: IF THEN Infrn dirtion b Gol d Top-down infrn (Bkwrd rsoning) Infrn dirtion Bottom-up infrn (Forwrd rsoning) Pg

Unrtinty in Rul Bss Rul : IF A B THEN D Givn rtinty ftors: CF(A) = CA CF(B) = CB Th rtinty ftor of rul CF(D) = CF() = CF(A B) = min{cf(a), CF(B)} = min{ca, CB} Rul R: IF A OR B Th rtinty ftor of Rul R THEN D CF(D) = CF(R) = CF(A OR B) = mx{cf(a), CF(B)} = mx{ca, CB} C Rul R: IF A B THEN D CF = R.9 Crtinty ftor of R CF(D) = CF(R) = min{ca, CB} /OR tr with thr ruls A R.9.7 B Rul R: IF A OR B THEN D CF = Crtinty ftor of R CF(D) = CF(R) = mx{ca, CB} : IF F G THEN D R: IF D E THEN A R: IF A B THEN C D.8.9 E.8.9 F G Givn CF(F) =.8, CF(G) =.9, CF(E) =.9, nd CF(B) =.7 nd C frtinty ftors of ruls, R, nd R CF() =.8, CF(R) =.9, nd CF(R) =.9 Dtrmin Crtinty ftors of D, A, nd C CF(D) = min{cf(f), CF(G)}. CF() =.800 CF(A) = min{cf(d), CF(E)}. CF(R) =.0 CF(C) = min{cf(a), CF(B)}. CF(R) =.08 F D.8.8.9 A R G.9 R.9.9 E.7 B Givn two prodution ruls nd th orrsponding rtinty ftors: Rul : IF A B THEN D CF = Rul R: IF A OR B THEN D CF = Rlibility nlogy Th ombind vidn CF(, R) = - = ( - ) r r Pg

EXAMPLE: Combind Evidn Rul : IF th infltion rt is lss thn % THEN stok mrkt pris go up CF = = 0.7 Rul R: IF unmploymnt rt is lss thn 7% THEN stok mrkt pris go up CF = = 0. Th ombind vidn is omputd s follows: CF(, R) = - = 0.7 0. - 0. = 0.88 Optimiztion nd Knowldg-Bsd Systms Diffiultis in pplying optimiztion du to: Th dt my not b sily vilbl Modl s sop of pplibility my b limitd Humn xprtis might b rquird Algorithms r oftn not bl to provid optiml solutions bus of problms' omplxity Two Clsss of Knowldg-Bsd Systms Stnd-lon knowldg-bsd systms Tndm knowldg-bsd systms KNOWLEDGE ACQUISITION Typil knowldg quisition pross Knowldg-bsd subsystm Domin xprt Dt, problms, qustions Knowldg nginr Formlizd, struturd knowldg Modl nd lgorithm bs Knowldg, onpts, solutions Knowldg bs KNOWLEDGE ACQUISITION METHODS Knowldg Anomlis KB systm intrfs Protool nlysis Nurl ntworks Dt mining. Stti nomlis: Dttd without infrning ruls. Infrn (dynmi) nomlis: Idntifid during th infrn pross Pg

Stti Anomlis Infrn (Dynmi) Anomly Typ (potntil onflit) - Two ruls with diffrnt onditions produ th sm tion, i.., for C(Ri) C(Rj), A(Ri) = A(Rj) Typ (potntil onflit) - Two ruls with idntil onditions rsult in diffrnt tions, i.., for C(Ri) = C(Rj), A(Ri) A(Rj) Typ (yl) - St of prodution ruls forms yl. Typ (rdundny) - Two ruls with idntil onditions rsult th sm tion, i.., for C(Ri) = C(Rj), A(Ri) = A(Rj) Stti Anomlis Inidn Mtrix Rprsnttion Ruls with Simpl Ation Cluss R : C D R : C D R : C D R : C D R : C D R : C OR D Ation lus A A A Condition lus whr '' indits th inidn of ondition-tion lus Trnsformd Mtrix Condition lus R : C D R : C D R : C D R : C D R : C D R : C OR D Ation lus A A A Clustr Idntifition Algorithm Pg 7 7

Clustr Idntifition Algorithm Stp 0. St itrtion numbr k =. Stp. Slt row i of inidn mtrix [ij](k) nd drw horizontl lin hi through it ([ij](k) is rd: mtrix [ij] t itrtion k ). Stp. For h ntry of rossd by th horizontl lin hi drw vrtil lin vj. Stp. For h ntry of rossd-on by th vrtil lin vj drw horizontl lin hk. Stp. Rpt stps nd until thr r no mor rossd-on ntris of in [ij](k). All rossd-twi ntris in [ij](k) form row lustr RC-k nd olumn lustr CC-k. Stp. Trnsform th inidn mtrix [ij](k) into [ij](k) by rmoving rows nd olumns orrsponding to th horizontl nd vrtil lins drwn in stps through. Stp. If mtrix [ij](k) = 0 (whr 0 dnots mtrix with ll mpty lmnts ), stop; othrwis st k = k nd go to stp. Condition lus Inidn mtrix 7 Ation lus 7 8 7 7 8 Nxt Stp Dlt ll doubl-rossd lmnts 7 8 Rsultnt Mtrix 7 7 7 Pg 8 8

Itrtion Itrtion 7 v v 7 v v7 h h h h C- C- C- Finl Domposition Rsult 7 A- A- A- 8 7 Mtrix Clustring Givn th inidn mtrix Ation lus Condition lus R : C D R : C D R : C D R : C D R : C D R : C OR D Th Clustrd Mtrix (with thr nomlis) Ation lus A A A Condition lus Dttion of Anomlis Ruls with Compound Condition nd Ation Cluss Nottion for th first lmnt in lus j of rul numbr i for th sond ' lmnt ' in lus j of rul numbr i OR for th sond ' OR lmnt ' in lus j of rul numbr i for th third ' lmnt ' in lus j of rul numbr i OR for th third ' OR lmnt ' in lus j of rul numbr i ij =......... k for th k - th ' lmnt ' in lus j of rul numbr i OR k for th k - th ' OR lmnt ' in lus j of rul numbr i EXAMPLE: Dttion of Anomlis Considr six prodution ruls: : IF C D THEN A A R: IF C D THEN A A7 A R: IF C D THEN A A R: IF C D THEN A A R: IF E OR F THEN A7 A R: IF C D THEN A OR A Pg 9 9

Condition-Ation Clus Inidn Mtrix : IF C D THEN A A R: IF C D THEN A A7 A R: IF C D THEN A A R: IF C D THEN A A R: IF E OR F THEN A7 A R: IF C D THEN A OR A R : C D R : C D R : C D R : C D R : E OR F R : C D OR http://wombt.do.i..uk/foldo/foldo.gi?truthtbl A A A A A A A 7 R : C D R : C D R : C D R : C D R : C D R : E OR F Th Clustrd Mtrix A A A A A A A 7 OR Rmrks R : C D R : C D : C D R : C D R : C D R : E OR F A A A A A A A7 OR Prodution ruls R nd R r susptd of typ nomly Infrn Anomlis : IF THEN R: IF OR THEN /OR grphs Prodution ruls nd R r susptd of typ nomly R Prodution ruls R nd R show som similrity in thir tion luss, whil thir ondition luss diffr Considr Four Ruls : IF OR THEN R: IF 7 THEN R: IF OR THEN R: IF THEN Adding R: IF THEN R: IF THEN rsults in /OR grphs R R R R 7 R 7 R R R R R Pg 0 0

Inidn Mtrix for Ruls,..., R Inidn Mtrix for Ruls,..., R R R R R R 7 R R R R R R R R R R R R R R R 7 R R R R R Rsult Produd by th Tringulriztion Algorithm http://www.in.uiow.du/~nkusik/pross-modl.html R R R R R R R R R R A yl R 7 R R R R R R R R R R R R R Rmrks. Th ordr in whih th prodution ruls n b fird is, R, R, R, R.. Th lmnt (R, R) in th uppr digonl indits tht thr xist yl btwn ruls R nd R. R R Pg