• No results found

A Comparative Study of Sequential Pattern Mining Algorithms

N/A
N/A
Protected

Academic year: 2022

Share "A Comparative Study of Sequential Pattern Mining Algorithms"

Copied!
8
0
0

Loading.... (view fulltext now)

Full text

(1)

Kalpesh A Kshatriya

, IJRIT 120 International Journal of Research in Information Technology (IJRIT) International Journal of Research in Information Technology (IJRIT) International Journal of Research in Information Technology (IJRIT) International Journal of Research in Information Technology (IJRIT)

www.ijrit.comwww.ijrit.com www.ijrit.comwww.ijrit.com ISSN 2001-5569

A Comparative Study of Sequential Pattern Mining Algorithms

1Kalpesh A Kshatriya, 2Narendra C. Chauhan, 3Kirti J. Sharma,

1PG Scholar , Computer Engineering Deptt.

BVM Engineerig College, Vallabh Vidhyanagar, Anand, India

2Deptt. of Information Technology, A D Patel Institute of Technology, New VallabhVidyanagar, Anand, India

3Computer Engineering Deptt. BVM Engineering College Vallabh Vidyanagar, Anand, India

1[email protected], 2[email protected]

3[email protected]

Abstract

Data mining is the process of extracting knowledge, often previously unknown from large quantities of data [17].

We can do many different tasks by using data mining such as classification, clustering, association rule mining, sequential pattern mining, etc. Sequential pattern mining is the method of finding interesting sequential patterns among the large database [1]. Several efficient algorithms are developed for sequential pattern mining which are broadly classified into Apriori based and Pattern growth based algorithms [11,12]. One of the drawback of apriori based algorithms like AprioriAll and GSP is that lots of candidate sequences are generated which is computationally inefficient [7]. These drawbacks of apriori based algorithms are solved by the pattern growth based algorithms like FreeSpan, PrefixSpan, etc [7]. A comparative study of some sequential pattern mining algorithms is done in this paper with reference to some features that are supported by these algorithms.

Keywords: Sequential pattern mining, sequence database, Data mining, Apriori, Pattern-growth.

1. Introduction

Sequential pattern mining is the method of finding interesting sequential patterns among the large databases. It also finds out frequent subsequences as patterns from a sequence database. Large amount of data are being collected and stored in many industries and they are interested in finding the sequential patterns from their database. Sequential

(2)

Kalpesh A Kshatriya

, IJRIT 121

pattern mining have many applications including, the analysis of customer purchase patterns, web-access patterns, disease treatments, finding telephone calling patterns, analysis of DNA sequences etc [17,14,16].

The rest of the paper is structured as follows. In section 2, basic concept of sequential pattern mining is discussed.

Section 3 describes Apriori based algorithms for sequence pattern mining. Section 4 describes pattern growth based algorithms. Section 5 address the comparison of sequential pattern mining algorithms based on different features Section 6 concludes the discussion of our study.

2. Basic Concept of Sequential Pattern Mining

In this section, basic concepts and the formulation of sequential pattern mining problem is explained. Let us consider D be a database of customer transactions, I= {I1,I2,...,Im} be a set of m distinct attributes called items. A sequence is an ordered list of itemsets. A sequence S is denoted by <s1,s2,...,sl>, where Si is an itemsets, i.e. Si ⊆ I. Si is also called an element of the sequence. Since an element is a set, and the order of it’s items is not important. Length of a sequence is the number of instance of items in that sequence [8]. A sequence α = <a1 a2 ... an> is called subsequence of the β = <b1 b2 ... bn> and denoted α ⊆ β, if there exist integers 1 ≤ j1 < j2 < ... < jn ≤ m such that a1⊆bj1, a2⊆bj2, ..., an⊆bjn. Sequence α is also called the super sequence of β [17]. For example, if α=<{a b}, d>

and β=<{a b c}, {b e}, {d e}, a> where a,b,c,d and e are items then α is a subsequence of β. A sequence α is called a frequent sequence pattern in sequence database S, if the number of tuples in S that contain α is greater than or equal to a given positive integer γ, called support threshold, or minimum support, i.e. support(α) ≥ γ [8]. The problem of sequential pattern mining is to find the complete set of frequent sequential patterns in a sequence database for a given minimum support threshold. Previous investigation done in the field of sequential pattern mining shows that the algorithms for sequential pattern mining are broadly divided into two section Apriori based algorithms and the Pattern growth based algorithms[12]. There are different features of these two categories of algorithms, we first inspect these features and then discuss some of the algorithms from these category.

3. Apriori-Based algorithms

Apriori-based Sequential Pattern mining was first proposed in [1] termed AprioriAll algorithm set the ground for engender the algorithms that are largely depends on the apriori property[3] and uses the Apriori-generate join scheme to produce candidate sequences. The apriori property says that “any sub-pattern of a frequent pattern must be frequent” [3]. It is also delineate as antimonotonic, in that if the sequence cannot gratify the minimum support value, all of its super sequences will also let down the test.

3.1 Key-features of Apriori-Based Algorithm

The key features of Apriori-Based algorithms are as follows [8]:

3.1.1 Breadth-first search

Apriori-based algorithms are delineate as breadth-first(level-wise) search algorithms because in breadth-first search algorithms all k-sequences are constructed together in each kth iteration of the algorithm as they traverse the search space.

3.1.2 Generate-and-test

Like in the apriori algorithm [3] frequent patterns are generated one item at a time the same concept of apriori algorithm are used for the generation of candidate sequences one item at a time in the apriori based sequential pattern mining algorithms and tested versus the minimum support. Algorithms that build upon this feature generate large number of candidate sequences, waste a lot of memory in the initial stage of mining.

(3)

Kalpesh A Kshatriya

, IJRIT 122

3.1.3 Multiple scans of database

The sequential pattern mining algorithms that depends on the apriori algorithm in that we know large number of candidates are generated at each stage to prune large number of candidates we required to scan database multiple times which requires a lot of processing time.

3.2 AprioriAll

Sequential pattern mining was first proposed in [1]. If we have the customer transaction database with three attributes customer-id, transaction-time and purchased items, the problem of mining sequential pattern is to find the maximal sequences from all frequent sequences that satisfies the minimum support value. There are five steps in the AprioriAll algorithm - sort phase, itemsets phase, transformation phase, sequence phase and maximal phase [1,10].

In sort phase the database is sorted with customer-id as the major key and transaction time as the minor key and after that the database is converted into the sequence database. In the itemsets phase the database is scanned to obtain frequent 1-sequences and also large 1-itemset. The set of itemsets is then mapped to a set of contiguous integers. In transformation phase the sequence database is transformed into set of sequence database by those large itemsets.

Now if the sequence database does not contain any large itemsets, then that sequence is not carry in the transformed sequence. In the sequence phase multi-passes are performed over the database to found the sequential pattern [10].

This phase is somewhat similar to the candidate generation and test step of the apriori algorithm [3]. In the AprioriAll algorithm we first found the frequent 1-sequences from the transformed database and this frequent1- sequence becomes the seed set for finding the frequent 2-sequences and the process will carryout up to the point when no more frequent sequences generation are possible. After the sequence phase we see that lots of frequent sequences are generated so to reduce this huge number of frequent sequences we are only interested in the maximal sequences [1,10]. The sequences are called maximal sequences if s is not contained in any other sequence [1]. One of the drawback of AprioriAll algorithm was that it generates lots of candidate sequences so it is very time consuming process to prune the candidate sequences [7].

3.3 Generalized Sequential Pattern (GSP)

GSP [2] is an Apriori based algorithm for sequential pattern mining. GSP executes a multiple passes over the database for finding the sequential pattern. In the first pass all 1-sequences are found. From this frequent 1- sequence, a set of candidate 2-sequences are founded and where another pass is done on the database to found the support of the candidate 2-sequences. Now, the frequent 2-sequnces forms the seed for the generation of candidate 3-sequnces and then by scanning the database frequent 3-sequences are found and the process is repeated until no more candidate sequences can be generated.

3.4 Apriori-GST

Apriori-GST is the combination of generalized suffix tree (GST) index and modified apriori algorithm that uses the GST index for calculating the support of a candidate [19]. The Apriori-GST is an Apriori-like algorithm because it uses the Apriori candidate generation mechanism. Compare to AprioriAll and GSP which requires multiple scan of database for calculating the support of candidate sequences Apriori-GST uses GST index for this which avoids multiple scan of database [19].

3.5 SPADE

SPADE algorithm was described in [4] and it is based on the search-space partitioning feature, where the database is represented in vertical layout format [4,8]. SPADE uses the equivalence classes to partition the search space, for sequential pattern mining [4]. The database or the search space for support counting is represented in lattice structure. These large search space or lattice is divided into sub-lattice for efficient processing of finding the

(4)

Kalpesh A Kshatriya

, IJRIT 123

frequent sequential patterns. SPADE uses an id-list concept which can be viewed as the atoms to construct support counts for larger sequences.

3.6 SPAM

The SPAM algorithm is described in [5]. SPAM uses a vertical bitmap representation of the database, and depth-first traversal of the search space with various pruning scheme for efficient support counting [5,8,11]. A vertical bitmap for each item in the database is constructed while scanning the database for the first time. The algorithm uses a lexicographic sequence lattice which allows the candidate to be generated in one of two ways: sequence extended using an S-step process and itemsets extended using an I-step process. SPAM traverses the sequence lattice in depth- first search manner and counts the support of each sequence-extended or item set extended candidates against minimum support recursively [5]. If the support of a certain candidate sequence s is less than minimum support there is no need to repeat depth-first search on s by the apriori property [3]. Final candidate sequence in S-step process is obtained by first transforming the first sequence and then performing the bitwise AND operation between this transformed bitmap and bitmap of the item to be extended. In I-step no transformation is done only the bitwise AND operation is done between the sequence bitmap and the items bitmap. The difference between the SPAM and SPADE is that instead of bitwise operation SPADE uses the temporal joins for founding the sequence [8].

4. Pattern-Growth Based Algorithms

Promptly after the apriori-Based approaches in the mid-1990s, the pattern growth approaches appear in the decade of 2000 onwards as a solution to the issue of generate-and-test [6,7]. The crucial feeling is to avert the candidate generation step, and to target the search on restricted portion of the original database. The search space partitioning factor shows an essential role in pattern-growth. Approximately every pattern-growth algorithm starts by making a representation of the database to be mined, then suggests a way to partition the search space, and generates as less candidate sequences as possible by expanding on the previously mined frequent sequences, and employing the Apriori property as the search space is being traversed recursively seeing for frequent sequences [8]. FreeSpan [6]

and PrefixSpan [7] are the two algorithms started using projected database approach latter being the most influencing.

4.1 Key-features of Pattern-Growth Algorithms

The key features of Pattern-Growth based algorithms are as follows [8,11,12]:

4.1.1 Candidate sequence pruning

Pattern-growth algorithms try to use a data structure that permits them to prune candidate sequences early in the mining process. Pattern-growth algorithms that can prune candidate sequences early in the mining process have a smaller search space.

4.1.2 Depth-first search

As we know in the breadth-first search algorithms we have to construct all k-sequences together in each kth iteration which requires a lot of search space. So multiple scanning is required to prune large number of candidates. On the other hand depth-first search of the search space produces a big variation in performance, and also helps in early pruning of candidate sequences. The main reason for this achievement is due to the fact that depth-first search uses much less memory, more directed search space, and thus less candidate sequences are generated compare to the breadth-first search based algorithms.

(5)

Kalpesh A Kshatriya

, IJRIT 124

4.1.3 Search Space Partitioning

This feature is used for efficient memory management. In this approach the search space is divided and allows mining of the each partition in parallel for faster processing. One of the search space partitioning technique was projected database approach [6,7] in the projected database approach the sequence database is divided into smaller database based on frequent 1-sequences. Then, all the projected database based on the prefix are mined for the sequential pattern recursively [7].

4.1.4 Prefix-Growth

Sequential pattern mining algorithms that relies on projected database approach first finds the frequent k-sequences usually frequent 1-sequences. Then this frequent 1-sequence is used as a prefix and this prefix is used to generate the projected database [7]. Then this projected database is recursively mined for finding the frequent sequences [7]. The benefit of this approach is to reduce the amount of memory required [8].

4.1.5 Tree Projection

Tree projection usually leads to the pattern-growth algorithms. Tree projection algorithms usually implement a physical tree data structure of the search-space [8]. Then this tree data structure is traversed either in breadth-first or in depth-first manner for searching a frequent sequence. WAP-mine algorithm uses the WAP-tree structure [20]

while FS-Miner uses the FS-tree structure [21] for mining sequential patterns.

4.2 FreeSpan

This algorithm was proposed in [6] with the aim of reducing the huge number of candidate sequences generated by apriori based algorithms [6,8]. This algorithm first found the frequent 1-sequences from the sequence database which requires one pass over the sequence database the list of frequent 1-sequences are known as f-list. After finding the f-list a lower triangular matrix of the item in f-list is constructed. From this matrix which is known as the S-matrix we found the frequent 2-sequences. Now to construct the S-matrix one more database scan is required.

After founding the length 2-frequent sequences annotations on repeating items and annotations on projected database are derived which are used to found the frequent sequences with length more than two without referring to the S-matrix. The rest of sequential patterns with length more than two are generated based on the annotation for item-repeating patterns and projected database. For a projected database whose annotation contains exactly three items, the sequential patterns associated with this projected database are obtained directly by scanning of this projected database. The projected database whose annotation contains more than three items, to found the sequential patterns associated with this projected database again we construct the frequent item matrix and recursively mine its frequent sequential pattern. The major cost of FreeSpan is the computation and creation of the projected database [7,8,11].

4.3 PrefixSpan

This algorithm Constitute on the basis of FreeSpan algorithm [8]. This algorithm examines only the prefix subsequences and projects only their corresponding postfix subsequences into projected database. As like in the FreeSpan algorithm first step is to found the frequent 1-sequences then these 1-sequences are used as the prefix to construct the prefix projected database. Now the frequent sequences with length two or more are found from the projected database in a recursive manner. One of the advantage of PrefixSpan is that no candidate sequences need to be generated that do not exit in a projected database [8,11]. One of the drawbacks of PrefixSpan is the construction of projected database in level-by-level manner which is overcome by using the bi-level projection [8]. PrefixSpan search the complete set of sequential pattern by using the divide-and-conquer strategy and enormously reduces the effort of candidate subsequence generation [11].

(6)

Kalpesh A Kshatriya

, IJRIT 125

4.4 FS-Miner

FS-Miner is influenced by FP-tree [22] and ISM [8] and it is a tree projection pattern growth algorithm that is somewhat similar to WAP-mine [20] and supports incremental and interactive mining. The importance of FS-Miner is that it starts mining directly with 2-subsequences from the second scan of the database which is also the last scan of the database. This is possible because FS-Miner uses the compressed representation of FS-tree, which uses the header table of edges also known as links [8].

5. Comparative Study of Some Sequential Pattern Mining Algorithms

Comparison of sequential pattern mining algorithms is done on the basis of various features supported by these algorithms some of the features are discussed below. Table 1 shows the different features supported by different algorithms [8, 9, 11, 12].

5.1 Statistical vs. Incremental Database

In sequential pattern mining when the database are static for mining frequent sequential patterns it is known as static mining. Incremental mining always associate with all data mining techniques, because all the databases are renovated over time. It is essential in sequential pattern mining because our sequence data is always changing with time. For example the sequential data of some departmental stores are updated every day with a new element. The algorithms for sequential mining are listed in table1 are not applicable in this situation so researcher are trying to find some algorithms that are more efficient for incremental mining.

5.2 Apriori-Based vs. Pattern-growth Based

Apriori-based algorithms are dependent on the apriori property [3] and use the apriori-generate join scheme to produce candidate sequences. The apriori property says that “any sub-pattern of a frequent pattern must be frequent”

[3]. Pattern-growth algorithms avert the candidate generation step, and target the search on restricted portion of the original database. The search space partitioning factor shows an essential role in pattern-growth.

5.3 BFS-Based vs. DFS-Based Approach

In a BFS based algorithms level-by-level search can be conducted to find the sequential patterns. In this approach all k-sequences are constructed together in each kth iteration of the algorithm as they traverse the search space. On the other hand in DFS approach all sub arrangements on a path must be explored before moving to the next one.

5.4 Top-down vs. Bottom-up search

In top-down approach subset of sequential patterns can be mined by the corresponding set construction of projected database and mining each recursively from top to bottom. On the other hand in bottom-up approach every single frequent sequences are itemized.

Table1 Comparative Study of some Sequential Pattern Mining Algorithms AprioriAll GSP Apriori-

GST

SPADE SPAM FreeSpan PrefixSpan FS- Miner

Statical database        

Incremental database 

Apriori Based     

Pattern Growth Based

 

BFS-Based  

(7)

Kalpesh A Kshatriya

, IJRIT 126

DFS-Based     

Prefix growth 

Vertical Database format

 

Search Space

partitioning

  

Bottom-Up search    

Top-Down search  

Tree-Projection 

6. Conclusion

This paper has presented a comparative study of some sequential pattern mining algorithms based on the two approaches of sequential pattern mining namely Apriori based and Pattern-Growth based. Different algorithms support different features like apriori-base, pattern-growth, BFS, DFS which have been discussed in the paper. From the study, it has been observed that one major drawback of apriori based algorithms like AprioriAll and GSP is that by this algorithm lots of candidate sequences are generated which requires a lot of time for pruning. This adds much computational expenses to the algorithm. This drawback of such Apriori based algorithms are reduced by pattern- growth based algorithms which mostly focus on the search space partitioning by projected database approach. It has been observed from the study that PrefixSpan is one of the popular algorithms for sequential pattern mining because there is no candidate generation process like in Apriori-Based algorithms.

7. References

1. Agrawal, R.; Srikant, R., "Mining sequential patterns," Proceedings of the Eleventh International Conference on Data Engineering, 1995. , vol., no., pp.3,14, 6-10 Mar 1995 doi: 10.1109/ICDE.1995.380415.

2. Srikant, R.; Agrawal R., “Mining sequential patterns: Generalizations and performance improvements”, Proceedings of the 5th International Conference Extending Database Technology, 1996, 1057, 3-17.

3. Agrawal, R,; Srikant, R., “Fast Algorithms for Mining Association Rules,” Proceedings of the International Conference Very Large Data Bases (VLDB ’94), pp. 487-499, Sept. 1994.

4. Zaki, Mohammed J. "SPADE: An efficient algorithm for mining frequent sequences." Machine learning 42, no. 1-2 (2001): 31-60.

5. Ayres J.; Jason F.;, Johannes G.; Tomi Y. "Sequential pattern mining using a bitmap representation." In Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 429-435. ACM, 2002.

6. Han, J.; Jian P.; Behzad M.; Qiming C.; Umeshwar D.; Mei-Chun H. "FreeSpan: frequent pattern- projected sequential pattern mining." In Proceedings of the sixth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 355-359. ACM, 2000.

7. Pei, Jian, Helen Pinto, Qiming Chen, Jiawei Han, Behzad Mortazavi-Asl, Umeshwar Dayal, and Mei-Chun Hsu. "Prefixspan: Mining sequential patterns efficiently by prefix-projected pattern growth." 29th International Conference on Data Engineering (ICDE), pp. 0215-0215. IEEE Computer Society, 2001.

8. NIZAR R. MABROUKEH ; C. I. EZEIFE, “A Taxonomy of Sequential Pattern Mining Algorithms”, ACM Computing Surveys, Vol. 43, No. 1, Article 3, Publication date: November 2010.

9. Boghey, R.; Singh, S., "Sequential Pattern Mining: A Survey on Approaches," International Conference on Communication Systems and Network Technologies (CSNT),, vol., no., pp.670,674, 6-8 April 2013

(8)

Kalpesh A Kshatriya

, IJRIT 127

10. Zhao, Qiankun,; Sourav S. Bhowmick. "Sequential pattern mining: A survey." ITechnical Report CAIS

Nayang Technological University Singapore (2003): 1-26.

11. Slimani, Thabet, and Amor Lazzez. "Sequential Mining: Patterns and Algorithms Analysis." arXiv preprint arXiv: 1311.0350 (2013).

12. Chetna C.; Amit T.; Amit G.; “Sequential Pattern Mining: Survey and Current Research Challenges”, International Journal of Soft Computing and Engineering (IJSCE) ISSN: 2231-2307, Volume-2, Issue-1, March 2012.

13. Sitanggang, I.S.; Husin, N.A.; Agustina, A.; Mahmoodian, N., "Sequential pattern mining on library transaction data," International Symposium in Information Technology (ITSim), vol.1, no., pp.1,4, 15-17 June 2010.

14. Pei, Jian, "Mining sequential patterns by pattern-growth: The PrefixSpan approach." Knowledge and Data Engineering, IEEE Transactions on 16.11 (2004): 1424-1440.

15. Antunes, Cláudia, and A. Oliveira. "Sequential pattern mining algorithms: trade-offs between speed and memory." (2004).

16. Masseglia, Florent, Maguelonne Teisseire, Pascal Poncelet. "Sequential Pattern Mining." (2009): 1800- 1805.

17. Han, Jiawei, Micheline Kamber, and Jian Pei. Data mining: concepts and techniques. Morgan kaufmann, 2006.

18. Pujari, Arun K. Data mining techniques. Universities press, 2001.

19. TANASA,D. “Web usage mining: contributions to inter sites logs preprocessing and sequential pattern extraction with low support.” Ph.D. dissertation, Universite De Nice Sophia-Antipolis.

20. Pei, Jian, Jiawei Han, Behzad Mortazavi-Asl, and Hua Zhu. "Mining access patterns efficiently from web logs." In Knowledge Discovery and Data Mining. Current Issues and New Applications, pp. 396-407.

Springer Berlin Heidelberg, 2000.

21. El-Sayed, Maged, Carolina Ruiz, and Elke A. Rundensteiner. "FS-Miner: efficient and incremental mining of frequent sequence patterns in web logs." In Proceedings of the 6th annual ACM international workshop on Web information and data management, pp. 128-135. ACM, 2004.

22. Han, Jiawei, Jian Pei, Yiwen Yin, and Runying Mao. "Mining frequent patterns without candidate generation: A frequent-pattern tree approach." Data mining and knowledge discovery 8, no. 1 (2004): 53- 87.

References

Related documents

In fact, Big data is term refer to huge data sets, have high Velocity , high Volume and high Variety and complex structure with the difficulties of management , analyzing,

Journal of Behavioral Sciences, Vol. )تلاپ يرکسا( لماوع هنماد بیش رادومن عوههمجم رد 3 روکذههم لههماع 21 / 61 نیههیبت ار سناههیراو دههصرد یههم لودههج رد .درههک 9

After suturing, our suggested in- cision and fourth incision are not visible from direct front view of the neck and torso except at the right shoulder and inguinal region

METZELAAR (1928) and STEELE (1928) have studied brown in relation to red (recessive red of COLE), and have found that brownxred matings may throw blacks and browns, as well

This paper proposes a tolerant control for the open- circuit fault of the outer switches in three-level rectifiers (both 3L-NPC and T-type topologies) used in

Due to the fast growing world population and reduction of scarce resources, the attentions of nations have been shifted to the marine related resources as

The variation of gain with fiber length is shown in figure (2.a) for different pump powers having a constant signal input power and erbium doping density. The

The results obtained from this study showed that fish meal can be replaced partially with blood meal at 10% inclusion level which differs from the report of [3] who