The UNIVERSITY of Kansas EECS 800 Research Seminar Mining Biological Data Instructor: Luke Huan Fall, 2006.

Slides:



Advertisements
Similar presentations
Association Rules Mining
Advertisements

Data Mining Techniques Association Rule
Association Rule Mining. Mining Association Rules in Large Databases  Association rule mining  Algorithms Apriori and FP-Growth  Max and closed patterns.
ICDM'06 Panel 1 Apriori Algorithm Rakesh Agrawal Ramakrishnan Srikant (description by C. Faloutsos)
732A02 Data Mining - Clustering and Association Analysis ………………… Jose M. Peña FP grow algorithm Correlation analysis.
Effect of Support Distribution l Many real data sets have skewed support distribution Support distribution of a retail data set.
1 of 25 1 of 45 Association Rule Mining CIT366: Data Mining & Data Warehousing Instructor: Bajuna Salehe The Institute of Finance Management: Computing.
Rakesh Agrawal Ramakrishnan Srikant
Chapter 5: Mining Frequent Patterns, Association and Correlations
Data Mining: Concepts and Techniques (2nd ed.) — Chapter 5 —
732A02 Data Mining - Clustering and Association Analysis ………………… Jose M. Peña Association rules Apriori algorithm FP grow algorithm.
Association Rules Mining Part III. Multiple-Level Association Rules Items often form hierarchy. Items at the lower level are expected to have lower support.
Data Mining Association Analysis: Basic Concepts and Algorithms
Data Mining Association Analysis: Basic Concepts and Algorithms
1 Association Rule Mining Instructor Qiang Yang Slides from Jiawei Han and Jian Pei And from Introduction to Data Mining By Tan, Steinbach, Kumar.
Data Mining Association Analysis: Basic Concepts and Algorithms
1 Mining Association Rules in Large Databases Association rule mining Algorithms for scalable mining of (single-dimensional Boolean) association rules.
Data Warehousing/Mining 1 Data Warehousing/Mining Comp 150 DW Chapter 6: Mining Association Rules in Large Databases Instructor: Dan Hebert.
Association Analysis: Basic Concepts and Algorithms.
Mining Association Rules in Large Databases
Data Mining Association Analysis: Basic Concepts and Algorithms
Chapter 4: Mining Frequent Patterns, Associations and Correlations
EECS 800 Research Seminar Mining Biological Data
Frequent Pattern and Association Analysis (baseado nos slides do livro: Data Mining: C & T)
1 Association Rule Mining (II) Instructor: Qiang Yang Thanks: J.Han and J. Pei.
The UNIVERSITY of Kansas EECS 800 Research Seminar Mining Biological Data Instructor: Luke Huan Fall, 2006.
Association Analysis: Basic Concepts and Algorithms
1 1 Data Mining: Concepts and Techniques (3 rd ed.) — Chapter 6 — Jiawei Han, Micheline Kamber, and Jian Pei University of Illinois at Urbana-Champaign.
© Vipin Kumar CSci 8980 Fall CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance Computing Research Center Department of Computer.
Association Rule Mining. Mining Association Rules in Large Databases  Association rule mining  Algorithms Apriori and FP-Growth  Max and closed patterns.
Mining Association Rules in Large Databases. What Is Association Rule Mining?  Association rule mining: Finding frequent patterns, associations, correlations,
Constraint-based (Query-Directed) Mining Finding all the patterns in a database autonomously? — unrealistic! The patterns could be too many but not focused!
Ch5 Mining Frequent Patterns, Associations, and Correlations
Data Mining: Concepts and Techniques (3rd ed.) — Chapter 6 —
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Association Rule Mining III COMP Seminar GNET 713 BCB Module Spring 2007.
November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient.
June 4, 2016Data Mining: Concepts and Techniques1 Data Mining: Concepts and Techniques — Chapter 5 — Jiawei Han Department of Computer Science University.
Frequent Item Mining. What is data mining? =Pattern Mining? What patterns? Why are they useful?
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Association Analysis This lecture node is modified based on Lecture Notes for.
UNIT-5 Mining Association Rules in Large Databases LectureTopic ********************************************** Lecture-27Association rule mining Lecture-28Mining.
UNIT 4 December 5, 2015 Data Mining: Concepts and Techniques1.
1 Data Mining: Mining Frequent Patterns, Association and Correlations.
Mining Frequent Patterns. What Is Frequent Pattern Analysis? Frequent pattern: a pattern (a set of items, subsequences, substructures, etc.) that occurs.
Chapter 6: Mining Frequent Patterns, Association and Correlations
Mining Frequent Patterns, Association, and Correlations (cont.) Pertemuan 06 Matakuliah: M0614 / Data Mining & OLAP Tahun : Feb
Data Mining  Association Rule  Classification  Clustering.
The UNIVERSITY of KENTUCKY Association Rule Mining CS 685: Special Topics in Data Mining Spring 2009.
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
The UNIVERSITY of KENTUCKY Association Rule Mining CS 685: Special Topics in Data Mining.
Reducing Number of Candidates Apriori principle: – If an itemset is frequent, then all of its subsets must also be frequent Apriori principle holds due.
Data Mining Association Rules Mining Frequent Itemset Mining Support and Confidence Apriori Approach.
CS685 : Special Topics in Data Mining, UKY The UNIVERSITY of KENTUCKY Association Rule Mining CS 685: Special Topics in Data Mining Jinze Liu.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Association Rule Mining COMP Seminar BCB 713 Module Spring 2011.
CS685: Special Topics in Data Mining The UNIVERSITY of KENTUCKY Frequent Itemset Mining II Tree-based Algorithm Max Itemsets Closed Itemsets.
Reducing Number of Candidates
Data Mining Association Analysis: Basic Concepts and Algorithms
Association Rule Mining
Data Mining: Concepts and Techniques
Data Mining: Concepts and Techniques
What Is Frequent Pattern Analysis?
Association rule mining
Mining Association Rules
©Jiawei Han and Micheline Kamber
Association Rule Mining
Find Patterns Having P From P-conditional Database
Frequent-Pattern Tree
©Jiawei Han and Micheline Kamber
Association Rule Mining
Data Mining: Concepts and Techniques (3rd ed.) — Chapter 6 —
Presentation transcript:

The UNIVERSITY of Kansas EECS 800 Research Seminar Mining Biological Data Instructor: Luke Huan Fall, 2006

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide2 8/28/2006 Frequent Patterns Outline for today Maximal and Closed itemset mining Quantitative itemset mining Association and correlation Summary

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide3 8/28/2006 Frequent Patterns Frequent Pattern Analysis Finding inherent regularities in data What products were often purchased together?— Beer and diapers?! What are the subsequent purchases after buying a PC? What are the commonly occurring subsequences in a group of genes? What are the shared substructures in a group of effective drugs?

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide4 8/28/2006 Frequent Patterns What Is Frequent Pattern Analysis? Frequent pattern: a pattern (a set of items, subsequences, substructures, etc.) that occurs frequently in a data set Applications Identify motifs in bio-molecules DNA sequence analysis, protein structure analysis Identify patterns in micro-arrays Business applications: Market basket analysis, cross-marketing, catalog design, sale campaign analysis, etc.

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide5 8/28/2006 Frequent Patterns Data An item is an element (a literal, a variable, a symbol, a descriptor, an attribute, a measurement, etc) A transaction is a set of items A data set is a set of transactions A database is a data set Transaction-idItems bought 100f, a, c, d, g, I, m, p 200a, b, c, f, l,m, o 300b, f, h, j, o 400b, c, k, s, p 500a, f, c, e, l, p, m, n

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide6 8/28/2006 Frequent Patterns Association Rules Itemset X = {x 1, …, x k } Find all the rules X  Y with minimum support and confidence support, s, is the probability that a transaction contains X  Y confidence, c, is the conditional probability that a transaction having X also contains Y Let sup min = 50%, conf min = 50% Association rules: A  C (60%, 100%) C  A (60%, 75%) Customer buys diaper Customer buys both Customer buys beer Transaction- id Items bought 100f, a, c, d, g, I, m, p 200a, b, c, f, l,m, o 300b, f, h, j, o 400b, c, k, s, p 500a, f, c, e, l, p, m, n

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide7 8/28/2006 Frequent Patterns Apriori Algorithm A level-wise, candidate-generation-and-test approach (Agrawal & Srikant 1994) TIDItems 10a, c, d 20b, c, e 30a, b, c, e 40b, e Min_sup=2 ItemsetSup a2 b3 c3 d1 e3 Data base D 1-candidates Scan D ItemsetSup a2 b3 c3 e3 Freq 1-itemsets Itemset ab ac ae bc be ce 2-candidates ItemsetSup ab1 ac2 ae1 bc2 be3 ce2 Counting Scan D ItemsetSup ac2 bc2 be3 ce2 Freq 2-itemsets Itemset bce 3-candidates ItemsetSup bce2 Freq 3-itemsets Scan D

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide8 8/28/2006 Frequent Patterns DIC: Reduce Number of Scans ABCD ABC ABDACD BCD ABACBC AD BDCD A BCD {} Itemset lattice Once both A and D are determined frequent, the counting of AD can begin Once all length-2 subsets of BCD are determined frequent, the counting of BCD can begin Transactions 1-itemsets 2-itemsets … Apriori 1-itemsets 2-items 3-itemsDIC S. Brin R. Motwani, J. Ullman, and S. Tsur, 1997.

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide9 8/28/2006 Frequent Patterns Construct FP-tree from a Transaction Database {} f:4c:1 b:1 p:1 b:1c:3 a:3 b:1m:2 p:2m:1 Header Table Item frequency head f4 c4 a3 b3 m3 p3 min_support = 3 TIDItems bought (ordered) frequent items 100{f, a, c, d, g, i, m, p}{f, c, a, m, p} 200{a, b, c, f, l, m, o}{f, c, a, b, m} 300 {b, f, h, j, o, w}{f, b} 400 {b, c, k, s, p}{c, b, p} 500 {a, f, c, e, l, p, m, n}{f, c, a, m, p} 1.Scan DB once, find frequent 1-itemset (single item pattern) 2.Sort frequent items in frequency descending order, f-list 3.Scan DB again, construct FP-tree F-list=f-c-a-b-m-p

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide10 8/28/2006 Frequent Patterns Construct FP-tree from a Transaction Database {} A:4B:1 D:1 F:1 D:1B:3 C:3 E:2D:1 E:1F:2 Header Table Item frequency head fA4 cB4 aC3 bD3 mE3 pF3 min_support = 3 TIDItems bought (ordered) frequent items 100{f, a, c, d, g, i, m, p}{f, c, a, m, p} 200{a, b, c, f, l, m, o}{f, c, a, b, m} 300 {b, f, h, j, o, w}{f, b} 400 {b, c, k, s, p}{c, b, p} 500 {a, f, c, e, l, p, m, n}{f, c, a, m, p} 1.Scan DB once, find frequent 1-itemset (single item pattern) 2.Sort frequent items in frequency descending order, f-list 3.Scan DB again, construct FP-tree F-list=f-c-a-b-m-p

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide11 8/28/2006 Frequent Patterns An New Algebraic Frame: Set Enumeration Tree Subsets of I can be enumerated systematically I={a, b, c, d}  abcd abacadbcbdcd abcabdacdbcd abcd

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide12 8/28/2006 Frequent Patterns Borders of Frequent Itemsets Connected X and Y are frequent and X is an ancestor of Y implies that all patterns between X and Y are frequent  abcd abacadbcbdcd abcabdacdbcd abcd

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide13 8/28/2006 Frequent Patterns Projected Databases To find a child Xy of X, only X-projected database is needed The sub-database of transactions containing X Item y is frequent in X-projected database  abcd abacadbcbdcd abcabdacdbcd abcd

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide14 8/28/2006 Frequent Patterns Bottleneck of Frequent-pattern Mining Multiple database scans are costly Mining long patterns needs many passes of scanning and generates lots of candidates To find frequent itemset i 1 i 2 …i 100 # of scans: 100 # of Candidates: ( ) + ( ) + … + ( ) = = 1.27*10 30 ! Bottleneck: candidate-generation-and-test Can we avoid candidate generation?

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide15 8/28/2006 Frequent Patterns Closed and Maximal Patterns Solution: Mine closed patterns and max-patterns An itemset X is closed if X is frequent and there exists no super-pattern Y  X, with the same support as X (proposed by Pasquier, et ICDT’99) Closed pattern is a lossless compression of freq. patterns Reducing the # of patterns and rules An itemset X is maximal if X is frequent and there exists no super-pattern Y  X such that Y is frequent

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide16 8/28/2006 Frequent Patterns Closed Patterns and Max-Patterns Exercise. DB = {, } Min_sup = 1. What is the set of closed itemset? : 1 : 2 What is the set of max-pattern? : 1 What is the set of all patterns? !!

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide17 8/28/2006 Frequent Patterns 1 st scan: find frequent items A, B, C, D, E 2 nd scan: find support for AB, AC, AD, AE, ABCDE BC, BD, BE, BCDE CD, CE, CDE, DE, Since BCDE is a max-pattern, no need to check BCD, BDE, CDE in later scan R. Bayardo. Efficiently mining long patterns from databases. In SIGMOD’98 MaxMiner: Mining Max-patterns Potential max-patterns TidItems 10A,B,C,D,E 20B,C,D,E, 30A,C,D,F Min_sup=2

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide18 8/28/2006 Frequent Patterns CHARM: Mining by Exploring Vertical Data Format Vertical format: t(AB) = {T 11, T 25, …} tid-list: list of trans.-ids containing an itemset Deriving closed patterns based on vertical intersections t(X) = t(Y): X and Y always happen together t(X)  t(Y): transaction having X always has Y Using diffset to accelerate mining Only keep track of differences of tids t(X) = {T 1, T 2, T 3 }, t(XY) = {T 1, T 3 } Diffset (XY, X) = {T 2 } Eclat/MaxEclat (Zaki et VIPER(P. Shenoy et CHARM (Zaki &

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide19 8/28/2006 Frequent Patterns Example of Vertical Data Format

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide20 8/28/2006 Frequent Patterns Frequent, Closed and Maximal Itemsets

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide21 8/28/2006 Frequent Patterns Data Formats

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide22 8/28/2006 Frequent Patterns Mining Example {} {A,C,D,T,W} A {C,D,T,W} C {D,T,W}D {T,W} T {W}W AC {D,T,W} ACD {T,W} ACDT {W} ACDTW AD {TW}AT {W}AWCD {T,W} CDT {W} CDTW ACT {W}ACW ACDWACTW ADTADWATW ADTW CT {W}CWDT,W} DTW DWTW CDWCTW

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide23 8/28/2006 Frequent Patterns Tidset Intersections (example) AC D TW ACADATAW CDCTCWDTDWTW ACTACWATWCDWCTW ACTW

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide24 8/28/2006 Frequent Patterns Mining Frequent Closed Patterns: CLOSET Flist: list of all frequent items in support ascending order Flist: d-a-f-e-c Divide search space Patterns having d Patterns having d but no a, etc. Find frequent closed pattern recursively Every transaction having d also has cfa  cfad is a frequent closed pattern J. Pei, J. Han & R. Mao. CLOSET: An Efficient Algorithm for Mining Frequent Closed Itemsets", DMKD'00. Min_sup=2

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide25 8/28/2006 Frequent Patterns CLOSET+: Mining Closed Itemsets by Pattern-Growth Itemset merging: if Y appears in every occurrence of X, then Y is merged with X Sub-itemset pruning: if Y כ X, and sup(X) = sup(Y), X and all of X’s descendants in the set enumeration tree can be pruned Hybrid tree projection Bottom-up physical tree-projection Top-down pseudo tree-projection Item skipping: if a local frequent item has the same support in several header tables at different levels, one can prune it from the header table at higher levels Efficient subset checking

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide26 8/28/2006 Frequent Patterns Further Improvements of Mining Methods AFOPT (Liu, et KDD’03) A “push-right” method for mining condensed frequent pattern (CFP) tree Carpenter (Pan, et KDD’03) Mine data sets with small rows but numerous columns Construct a row-enumeration tree for efficient mining

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide27 8/28/2006 Frequent Patterns Mining Quantitative Associations Techniques can be categorized by how numerical attributes, such as age or salary are treated 1.Static discretization based on predefined concept hierarchies (data cube methods) 2.Dynamic discretization based on data distribution (quantitative rules, e.g., Agrawal & 3.Clustering: Distance-based association (e.g., Yang & one dimensional clustering then association 4.Deviation: (such as Aumann and Sex = female => Wage: mean=$7/hr (overall mean = $9)

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide28 8/28/2006 Frequent Patterns Static Discretization of Quantitative Attributes Discretized prior to mining using concept hierarchy. Numeric values are replaced by ranges. In relational database, finding all frequent k-predicate sets will require k or k+1 table scans. Data cube is well suited for mining. The cells of an n-dimensional cuboid correspond to the predicate sets. Mining from data cubes can be much faster. (income)(age) () (buys) (age, income)(age,buys)(income,buys) (age,income,buys)

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide29 8/28/2006 Frequent Patterns Quantitative Association Rules age(X,”34-35”)  income(X,”30-50K”)  buys(X,”high resolution TV”) Proposed by Lent, Swami and Widom ICDE’97 Numeric attributes are dynamically discretized Such that the confidence or compactness of the rules mined is maximized 2-D quantitative association rules: A quan1  A quan2  A cat Cluster adjacent association rules to form general rules using a 2D grid Example

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide30 8/28/2006 Frequent Patterns Interestingness Measure: Correlations (Lift) play basketball  eat cereal [40%, 66.7%] is misleading The overall % of students eating cereal is 75% > 66.7%. play basketball  not eat cereal [20%, 33.3%] is more accurate, although with lower support and confidence Measure of dependent/correlated events: lift BasketballNot basketballSum (row) Cereal Not cereal Sum(col.)

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide31 8/28/2006 Frequent Patterns Are lift and  2 Good Measures of Correlation? “Buy walnuts  buy milk [1%, 80%]” is misleading if 85% of customers buy milk Support and confidence are not good to represent correlations So many interestingness measures? (Tan, Kumar, MilkNo MilkSum (row) Coffeem, c~m, cc No Coffeem, ~c~m, ~c~c Sum(col.)m~m  DBm, c~m, cm~c~m~cliftall-confcoh 22 A , A , A , A

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide32 8/28/2006 Frequent Patterns Which Measures Should Be Used? lift and  2 are not good measures for correlations in large transactional DBs all-conf or coherence could be good measures Both all-conf and coherence have the downward closure property Efficient algorithms can be derived for mining (Lee et

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide33 8/28/2006 Frequent Patterns Mining Other Interesting Patterns Flexible support constraints (Wang et VLDB’02) Some items (e.g., diamond) may occur rarely but are valuable Customized sup min specification and application Top-K closed frequent patterns (Han, et ICDM’02) Hard to specify sup min, but top-k with length min is more desirable Dynamically raise sup min in FP-tree construction and mining, and select most promising path to mine

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide34 8/28/2006 Frequent Patterns Mining Multiple-Level Association Rules Items often form hierarchies Flexible support settings Items at the lower level are expected to have lower support Exploration of shared multi-level mining (Agrawal & Han & uniform support Milk [support = 10%] 2% Milk [support = 6%] Skim Milk [support = 4%] Level 1 min_sup = 5% Level 2 min_sup = 5% Level 1 min_sup = 5% Level 2 min_sup = 3% reduced support

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide35 8/28/2006 Frequent Patterns Multi-level Association: Redundancy Filtering Some rules may be redundant due to “ancestor” relationships between items. Example milk  wheat bread [support = 8%, confidence = 70%] 2% milk  wheat bread [support = 2%, confidence = 72%] We say the first rule is an ancestor of the second rule. A rule is redundant if its support is close to the “expected” value, based on the rule’s ancestor.

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide36 8/28/2006 Frequent Patterns Mining Multi-Dimensional Association Single-dimensional rules: buys(X, “milk”)  buys(X, “bread”) Multi-dimensional rules:  2 dimensions or predicates Inter-dimension assoc. rules (no repeated predicates) age(X,”19-25”)  occupation(X,“student”)  buys(X, “coke”) hybrid-dimension assoc. rules (repeated predicates) age(X,”19-25”)  buys(X, “popcorn”)  buys(X, “coke”) Categorical Attributes: finite number of possible values, no ordering among values — data cube approach Quantitative Attributes: numeric, implicit ordering among values — discretization, clustering, and gradient approaches

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide37 8/28/2006 Frequent Patterns Constraint-based (Query-Directed) Mining Finding all the patterns in a database autonomously? — unrealistic! The patterns could be too many but not focused! Data mining should be an interactive process User directs what to be mined using a data mining query language (or a graphical user interface) Constraint-based mining User flexibility: provides constraints on what to be mined System optimization: explores such constraints for efficient mining—constraint-based mining

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide38 8/28/2006 Frequent Patterns Constraints in Data Mining Knowledge type constraint: classification, association, etc. Data constraint — using SQL-like queries find product pairs sold together in stores in Chicago in Dec.’02 Dimension/level constraint in relevance to region, price, brand, customer category Rule (or pattern) constraint small sales (price $200) Interestingness constraint strong rules: min_support  3%, min_confidence  60%

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide39 8/28/2006 Frequent Patterns Constrained Mining vs. Constraint-Based Search Constrained mining vs. constraint-based search/reasoning Both are aimed at reducing search space Finding all patterns satisfying constraints vs. finding some (or one) answer in constraint-based search in AI Constraint-pushing vs. heuristic search It is an interesting research problem on how to integrate them Constrained mining vs. query processing in DBMS Database query processing requires to find all Constrained pattern mining shares a similar philosophy as pushing selections deeply in query processing

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide40 8/28/2006 Frequent Patterns Anti-Monotonicity in Constraint Pushing Anti-monotonicity When an intemset S violates the constraint, so does any of its superset sum(S.Price)  v is anti-monotone sum(S.Price)  v is not anti-monotone Example. C: range(S.profit)  15 is anti- monotone Itemset ab violates C So does every superset of ab TDB (min_sup=2) TIDTransaction 10a, b, c, d, f 20b, c, d, f, g, h 30a, c, d, e, f 40c, e, f, g ItemProfit a40 b0 c-20 d10 e-30 f30 g20 h-10

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide41 8/28/2006 Frequent Patterns Monotonicity for Constraint Pushing Monotonicity When an intemset S satisfies the constraint, so does any of its superset sum(S.Price)  v is monotone min(S.Price)  v is monotone Example. C: range(S.profit)  15 Itemset ab satisfies C So does every superset of ab TDB (min_sup=2) TIDTransaction 10a, b, c, d, f 20b, c, d, f, g, h 30a, c, d, e, f 40c, e, f, g ItemProfit a40 b0 c-20 d10 e-30 f30 g20 h-10

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide42 8/28/2006 Frequent Patterns Succinctness Succinctness: Given A 1, the set of items satisfying a succinctness constraint C, then any set S satisfying C is based on A 1, i.e., S contains a subset belonging to A 1 Idea: Without looking at the transaction database, whether an itemset S satisfies constraint C can be determined based on the selection of items min(S.Price)  v is succinct sum(S.Price)  v is not succinct Optimization: If C is succinct, C is pre-counting pushable

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide43 8/28/2006 Frequent Patterns The Apriori Algorithm — Example Database D Scan D C1C1 L1L1 L2L2 C2C2 C2C2 C3C3 L3L3 Price

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide44 8/28/2006 Frequent Patterns Naïve Algorithm: Apriori + Constraint Database D Scan D C1C1 L1L1 L2L2 C2C2 C2C2 C3C3 L3L3 Constraint: Sum{S.price} < 5 Price

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide45 8/28/2006 Frequent Patterns The Constrained Apriori Algorithm: Push an Anti-monotone Constraint Deep Database D Scan D C1C1 L1L1 L2L2 C2C2 C2C2 C3C3 L3L3 Constraint: Sum{S.price} < 5 Price

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide46 8/28/2006 Frequent Patterns The Constrained Apriori Algorithm: Push a Succinct Constraint Deep Database D Scan D C1C1 L1L1 L2L2 C2C2 C2C2 C3C3 L3L3 Constraint: min{S.price } <= 1 not immediately to be used Price

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide47 8/28/2006 Frequent Patterns Converting “Tough” Constraints Convert tough constraints into anti-monotone or monotone by properly ordering items Examine C: avg(S.profit)  25 Order items in value-descending order If an itemset afb violates C So does afbh, afb* It becomes anti-monotone! TDB (min_sup=2) TIDTransaction 10a, b, c, d, f 20b, c, d, f, g, h 30a, c, d, e, f 40c, e, f, g ItemProfit a40 b0 c-20 d10 e-30 f30 g20 h-10

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide48 8/28/2006 Frequent Patterns Strongly Convertible Constraints avg(X)  25 is convertible anti-monotone w.r.t. item value descending order R: If an itemset af violates a constraint C, so does every itemset with af as prefix, such as afd avg(X)  25 is convertible monotone w.r.t. item value ascending order R -1 : If an itemset d satisfies a constraint C, so does itemsets df and dfa, which having d as a prefix Thus, avg(X)  25 is strongly convertible TDB (min_sup=2) TIDTransaction 10a, b, c, d, f 20b, c, d, f, g, h 30a, c, d, e, f 40c, e, f, g ItemProfit a40 b0 c-20 d10 e-30 f30 g20 h-10

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide49 8/28/2006 Frequent Patterns Can Apriori Handle Convertible Constraint? A convertible, not monotone nor anti-monotone nor succinct constraint cannot be pushed deep into the an Apriori mining algorithm Within the level wise framework, no direct pruning based on the constraint can be made Itemset df violates constraint C: avg(X)>=25 Since adf satisfies C, Apriori needs df to assemble adf, df cannot be pruned But it can be pushed into frequent-pattern growth framework!

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide50 8/28/2006 Frequent Patterns Frequent-Pattern Mining: Research Problems Mining fault-tolerant frequent Patterns allows limited faults (insertion, deletion, mutation) Mining truly interesting patterns Surprising, novel, concise, … Theoretic foundation of patterns? For compress data? For classification analysis? Application exploration Pattern discovery in molecule structures Pattern discovery in bionetworks

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide51 8/28/2006 Frequent Patterns Summary Closed and maximal pattern discovery Quantitative association rules Find pattern with constraints

Mining Biological Data KU EECS 800, Luke Huan, Fall’06 slide52 8/28/2006 Frequent Patterns Ref: Basic Concepts of Frequent Pattern Mining (Association Rules) R. Agrawal, T. Imielinski, and A. Swami. Mining association rules between sets of items in large databases. SIGMOD'93. (Max-pattern) R. J. Bayardo. Efficiently mining long patterns from databases. SIGMOD'98. (Closed-pattern) N. Pasquier, Y. Bastide, R. Taouil, and L. Lakhal. Discovering frequent closed itemsets for association rules. ICDT'99. (Sequential pattern) R. Agrawal and R. Srikant. Mining sequential patterns. ICDE'95