Effectiveness of Freq Pat Mining

Similar documents
Apriori Algorithm. 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke

Mining Frequent Patterns without Candidate Generation

Chapter 6: Basic Concepts: Association Rules. Basic Concepts: Frequent Patterns. (absolute) support, or, support. (relative) support, s, is the

Frequent Pattern Mining

Chapter 7: Frequent Itemsets and Association Rules

DATA MINING II - 1DL460

Frequent Pattern Mining. Based on: Introduction to Data Mining by Tan, Steinbach, Kumar

Frequent Pattern Mining

BCB 713 Module Spring 2011

Chapter 4: Mining Frequent Patterns, Associations and Correlations

Frequent Pattern Mining S L I D E S B Y : S H R E E J A S W A L

CLOSET+:Searching for the Best Strategies for Mining Frequent Closed Itemsets

Association rules. Marco Saerens (UCL), with Christine Decaestecker (ULB)

Data Mining for Knowledge Management. Association Rules

Association Rules. A. Bellaachia Page: 1

Which Null-Invariant Measure Is Better? Which Null-Invariant Measure Is Better?

Data Mining Part 3. Associations Rules

Chapter 4: Association analysis:

Basic Concepts: Association Rules. What Is Frequent Pattern Analysis? COMP 465: Data Mining Mining Frequent Patterns, Associations and Correlations

Association Pattern Mining. Lijun Zhang

Mining Association Rules in Large Databases

Data Mining: Concepts and Techniques. (3 rd ed.) Chapter 7

Market baskets Frequent itemsets FP growth. Data mining. Frequent itemset Association&decision rule mining. University of Szeged.

1. Interpret single-dimensional Boolean association rules from transactional databases

CS490D: Introduction to Data Mining Prof. Walid Aref

Data Mining: Concepts and Techniques. (3 rd ed.) Chapter 6

Association Rule Mining

Chapter 6: Association Rules

CS570 Introduction to Data Mining

CSE 5243 INTRO. TO DATA MINING

CHAPTER 8. ITEMSET MINING 226

Lecture Topic Projects 1 Intro, schedule, and logistics 2 Data Science components and tasks 3 Data types Project #1 out 4 Introduction to R,

Pattern Lattice Traversal by Selective Jumps

Roadmap. PCY Algorithm

Decision Support Systems

Data Mining Techniques

What Is Data Mining? CMPT 354: Database I -- Data Mining 2

ANU MLSS 2010: Data Mining. Part 2: Association rule mining

PFPM: Discovering Periodic Frequent Patterns with Novel Periodicity Measures

Data Warehousing and Data Mining. Announcements (December 1) Data integration. CPS 116 Introduction to Database Systems

Data Warehousing & Mining. Data integration. OLTP versus OLAP. CPS 116 Introduction to Database Systems

Performance and Scalability: Apriori Implementa6on

OPTIMISING ASSOCIATION RULE ALGORITHMS USING ITEMSET ORDERING

H-Mine: Hyper-Structure Mining of Frequent Patterns in Large Databases. Paper s goals. H-mine characteristics. Why a new algorithm?

EFIM: A Fast and Memory Efficient Algorithm for High-Utility Itemset Mining

Data Mining: Concepts and Techniques. (3 rd ed.) Chapter 6

Data Mining: Concepts and Techniques. Chapter 5. SS Chung. April 5, 2013 Data Mining: Concepts and Techniques 1

Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques. Chapter 5

Chapter 6: Mining Association Rules in Large Databases

Scalable Frequent Itemset Mining Methods

Data Mining: Concepts and Techniques. Chapter 5 Mining Frequent Patterns. Slide credits: Jiawei Han and Micheline Kamber George Kollios

Fundamental Data Mining Algorithms

Chapter 13, Sequence Data Mining

FP-Growth algorithm in Data Compression frequent patterns

Data Mining: Concepts and Techniques. (3 rd ed.) Chapter 6

Advance Association Analysis

Induction of Association Rules: Apriori Implementation

Information Management course

Association Rule Discovery

APPLYING BIT-VECTOR PROJECTION APPROACH FOR EFFICIENT MINING OF N-MOST INTERESTING FREQUENT ITEMSETS

Association Rule Mining: FP-Growth

Association Rule Mining (ARM) Komate AMPHAWAN

Nesnelerin İnternetinde Veri Analizi

CSE 5243 INTRO. TO DATA MINING

Information Management course

CSE 5243 INTRO. TO DATA MINING

Mining Frequent Patterns without Candidate Generation: A Frequent-Pattern Tree Approach

Building Roads. Page 2. I = {;, a, b, c, d, e, ab, ac, ad, ae, bc, bd, be, cd, ce, de, abd, abe, acd, ace, bcd, bce, bde}

PADS: A Simple Yet Effective Pattern-Aware Dynamic Search Method for Fast Maximal Frequent Pattern Mining

Association Rule Discovery

Data Warehousing and Data Mining

Keywords: Mining frequent itemsets, prime-block encoding, sparse data

Chapter 5, Data Cube Computation

Association Rules Apriori Algorithm

Knowledge Discovery in Databases II Winter Term 2015/2016. Optional Lecture: Pattern Mining & High-D Data Mining

On Canonical Forms for Frequent Graph Mining

Ascending Frequency Ordered Prefix-tree: Efficient Mining of Frequent Patterns

DATA MINING II - 1DL460

ExAnte: Anticipated Data Reduction in Constrained Pattern Mining

WIP: mining Weighted Interesting Patterns with a strong weight and/or support affinity

Association Analysis: Basic Concepts and Algorithms

DATA MINING II - 1DL460

Association Rule Mining

Unsupervised learning: Data Mining. Associa6on rules and frequent itemsets mining

Data Mining: Concepts and Techniques. What Is Frequent Pattern Analysis? Basic Concepts: Frequent Patterns and Association Rules

Mining Association Rules in Large Databases

Data Mining: Concepts and Techniques. Why Data Mining? What Is Data Mining? Chapter 5

Association Rule Learning

Data Mining: Foundation, Techniques and Applications

A Two-Phase Algorithm for Fast Discovery of High Utility Itemsets

Frequent Item Sets & Association Rules

On Frequent Itemset Mining With Closure

Knowledge Discovery in Databases

Data Mining: Concepts and Techniques. Chapter Mining sequence patterns in transactional databases

CLOLINK: An Adapted Algorithm for Mining Closed Frequent Itemsets

Hiding Sensitive Frequent Itemsets by a Border-Based Approach

Parallel Bifold: Large-Scale Parallel Pattern Mining with Constraints

AN IMPROVISED FREQUENT PATTERN TREE BASED ASSOCIATION RULE MINING TECHNIQUE WITH MINING FREQUENT ITEM SETS ALGORITHM AND A MODIFIED HEADER TABLE

A NOVEL ALGORITHM FOR MINING CLOSED SEQUENTIAL PATTERNS

Transcription:

Effectiveness of Freq Pat Mining Too many patterns! A pattern a 1 a 2 a n contains 2 n -1 subpatterns Understanding many patterns is difficult or even impossible for human users Non-focused mining A manager may be only interested in patterns involving some items (s)he manages A user is often interested in patterns satisfying some constraints Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 1

Itemset Lattice ABCD ABC ABD ACD BCD AB AC BC AD BD CD Tid transaction 10 ABD 20 ABC 30 AD 40 ABCD 50 CD Min_sup=2 A B C D {} Length Frequent itemsets 1 A, B, C, D 2 AB, AC, AD, BC, BD, CD 3 ABC, ABD, ACD Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 2

Max-Patterns ABCD ABC ABD ACD BCD AB AC BC AD BD CD A B C D Tid transaction 10 ABD 20 ABC 30 AD 40 ABCD 50 CD Min_sup=2 {} Length Frequent itemsets 1 A, B, C, D 2 AB, AC, AD, BC, BD, CD 3 ABC, ABD Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 3

Borders and Max-patterns Max-patterns: borders of frequent patterns Any subset of max-pattern is frequent Any superset of max-pattern is infrequent Cannot generate rules ABCD ABC ABD ACD BCD AB AC BC AD BD CD A B C D Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 4 {}

MaxMiner: Mining Max-patterns Tid Items Potential max- 1st scan: find frequent items A, B, C, D, E 2nd scan: find support for AB, AC, AD, AE, ABCDE BC, BD, BE, BCDE CD, CE, CDE, DE, patterns Since BCDE is a max-pattern, no need to check BCD, BDE, CDE in later scan Bayardo, SIGMOD 98 10 A,B,C,D,E 20 B,C,D,E, 30 A,C,D,F Min_sup=2 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 5

Patterns and Support Counts ABCD ABC:2 ABD:2 ACD BCD AB:3 AC:2 BC:2 AD:3 BD:2 CD:2 A:4 B:4 C:3 D:4 Tid transaction 10 ABD 20 ABC 30 AD 40 ABCD 50 CD Min_sup=2 {} Len Frequent itemsets 1 A:4, B:4, C:3, D:4 2 AB:3, AC:2, AD:3, BC:3, BD:2, CD:2 3 ABC:2, ABD:2 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 6

Frequent Closed Patterns For frequent itemset X, if there exists no item y not in X s.t. every transaction containing X also contains y, then X is a frequent closed pattern acdf is a frequent closed pattern Concise rep. of freq pats TID Can generate non-redundant rules Reduce # of patterns and rules N. Pasquier et al. In ICDT 99 Min_sup=2 Items 10 a, c, d, e, f 20 a, b, e 30 c, e, f 40 a, c, d, f 50 c, e, f Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 7

CLOSET for Frequent Closed Patterns Flist: list of all freq items in support asc. 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 PHM 00 Min_sup=2 TID Items 10 a, c, d, e, f 20 a, b, e 30 c, e, f 40 a, c, d, f 50 c, e, f Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 8

The CHARM Method Use vertical data format: t(ab)={t1, T12, } Derive closed pattern based on vertical intersections t(x)=t(y): X and Y always happen together t(x) t(y): transaction having X always has Y Use diffset to accelerate mining Only keep track of difference of tids t(x)={t1, T2, T3}, t(xy )={T1, T3} Diffset(Xy, X)={T2} Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 9

Closed and Max-patterns Closed pattern mining algorithms can be adapted to mine max-patterns A max-pattern must be closed Depth-first search methods have advantages over breadth-first search ones Why? Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 10

Condensed Freq Pattern Base Practical observation: in many applications, a good approximation on support count could be good enough Support=10000 à Support in range 10000 ± 1% Making frequent pattern mining more realistic A small deviation has a minor effect on analysis Condensed FP-base leads to more effective mining Computing a condensed FP-base may lead to more efficient mining Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 11

Condensed FP-base Mining Compute a condensed FP-base with a guaranteed maximal error bound. Given: a transaction database, a user-specified support threshold, and a user-specified error bound Find a subset of frequent patterns & a function Determine whether a pattern is frequent Determine the support range Pei et al. ICDM 02 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 12

An Example Support threshold: min_sup = 1 Error bound: k = 2 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 13

Another Base Support threshold: min_sup = 1 Error bound: k = 2 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 14

Approximation Functions NOT unique Different condensed FP-bases have different approximation function Optimization on space requirement The less space required, the better compression effect compression ratio Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 15

Constraint-based Data Mining Find all the patterns in a database autonomously? The patterns could be too many but not focused! Data mining should be interactive User directs what to be mined Constraint-based mining User flexibility: provides constraints on what to be mined System optimization: push constraints for efficient mining Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 16

Constraints in Data Mining Knowledge type constraint classification, association, etc. Data constraint using SQL-like queries find product pairs sold together in stores in New York Dimension/level constraint in relevance to region, price, brand, customer category Rule (or pattern) constraint small sales (price < $10) triggers big sales (sum >$200) Interestingness constraint strong rules: support and confidence Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 17

Constrained Mining vs. Search Constrained mining vs. constraint-based search Both aim at reducing search space Finding all patterns vs. some (or one) answers satisfying constraints Constraint-pushing vs. heuristic search An interesting research problem on integrating both Constrained mining vs. DBMS query processing Database query processing requires to find all Constrained pattern mining shares a similar philosophy as pushing selections deeply in query processing Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 18

Optimization Mining frequent patterns with constraint C Sound: only find patterns satisfying the constraints C Complete: find all patterns satisfying the constraints C A naïve solution Constraint test as a post-processing More efficient approaches Analyze the properties of constraints Push constraints as deeply as possible into frequent pattern mining Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 19

Anti-Monotonicity Anti-monotonicity 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 Itemset ab violates C So does every superset of ab TDB (min_sup=2) TID Transaction 10 a, b, c, d, f 20 b, c, d, f, g, h 30 a, c, d, e, f 40 c, e, f, g Item Profit a 40 b 0 c -20 d 10 e -30 f 30 g 20 h -10 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 20

Anti-monotonic Constraints Constraint v S S V S V min(s) v min(s) v max(s) v max(s) v count(s) v count(s) v sum(s) v ( a S, a 0 ) sum(s) v ( a S, a 0 ) range(s) v range(s) v avg(s) θ v, θ { =,, } support(s) ξ support(s) ξ Antimonotone No no yes no yes yes no yes no yes no yes no convertible yes no Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 21

TDB (min_sup=2) Monotonicity Monotonicity 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 TID Transaction 10 a, b, c, d, f 20 b, c, d, f, g, h 30 a, c, d, e, f 40 c, e, f, g Item Profit a 40 b 0 c -20 d 10 e -30 f 30 g 20 h -10 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 22

Monotonic Constraints Constraint v S S V S V min(s) v min(s) v max(s) v max(s) v count(s) v count(s) v sum(s) v ( a S, a 0 ) sum(s) v ( a S, a 0 ) range(s) v range(s) v avg(s) θ v, θ { =,, } support(s) ξ support(s) ξ Monotone yes yes no yes no no yes no yes no yes no yes convertible no yes Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 23

Converting Tough Constraints Convert tough constraints into antimonotone or monotone by properly ordering items Examine C: avg(s.profit) 25 Order items in value-descending order <a, f, g, d, b, h, c, e> If an itemset afb violates C So does afbh, afb* It becomes anti-monotone! TDB (min_sup=2) TID Transaction 10 a, b, c, d, f 20 b, c, d, f, g, h 30 a, c, d, e, f 40 c, e, f, g Item Profit a 40 b 0 c -20 d 10 e -30 f 30 g 20 h -10 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 24

Convertible Constraints Let R be an order of items Convertible anti-monotone If an itemset S violates a constraint C, so does every itemset having S as a prefix w.r.t. R Ex. avg(s) v w.r.t. item value descending order Convertible monotone If an itemset S satisfies constraint C, so does every itemset having S as a prefix w.r.t. R Ex. avg(s) v w.r.t. item value descending order Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 25

Strongly Convertible Constraints avg(x) 25 is convertible anti-monotone w.r.t. item value descending order R: <a, f, g, d, b, h, c, e> 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 : <e, c, h, b, d, g, f, a> 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 Item Profit a 40 b 0 c -20 d 10 e -30 f 30 g 20 h -10 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 26

Convertible Constraints Constraint Convertible anti-monotone Convertible monotone Strongly convertible avg(s), v Yes Yes Yes median(s), v Yes Yes Yes sum(s) v (items could be of any value, v 0) sum(s) v (items could be of any value, v 0) sum(s) v (items could be of any value, v 0) sum(s) v (items could be of any value, v 0) Yes No No No Yes No No Yes No Yes No No Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 27

Can Apriori Handle Convertible Constraint? A convertible, not monotone nor antimonotone 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! Item Value a 40 b 0 c -20 d 10 e -30 f 30 g 20 h -10 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 28

Mining With Convertible Constraints C: avg(s.profit) 25 List of items in every transaction in value descending order R: <a, f, g, d, b, h, c, e> C is convertible anti-monotone w.r.t. R Scan transaction DB once remove infrequent items Item h in transaction 40 is dropped Itemsets a and f are good TDB (min_sup=2) TID Transaction 10 a, f, d, b, c 20 f, g, d, b, c 30 a, f, d, c, e 40 f, g, h, c, e Item Profit a 40 f 30 g 20 d 10 b 0 h -10 c -20 e -30 Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 29

To-Do List Reach Sections 6.2.6 and 7.3 Understand the concepts of max-patterns, closed patterns Understand the ideas and major techniques in constrained frequent itemset mining Jian Pei: CMPT 741/459 Frequent Pattern Mining (3) 30