IJRIT International Journal of Research in Information Technology, Volume 1, Issue 5, May 2013, Pg. 83-92

International Journal of Research in Information Technology (IJRIT)

www.ijrit.com

ISSN 2001-5569

Sequential Pattern Mining for Moving Objects in Sptio Sequence 1

1

Chirag Patel, 2 Kiran Amin

Pursuing M.Tech. – IT, Computer & Information Technology Department, U.V.Patel College of Engineering, Ganpat University, Gujarat, India. 2

Head of the Computer Department, U.V.Patel College of Engineering, Ganpat University, Gujarat, India. 1

[email protected] ,2 [email protected]

Abstract Sequential pattern mining discovers frequent sub sequences as patterns in a sequence database. A sequence database stores a number of records, where all records are sequences of ordered events, with or without concrete notions of time. An example sequence database is retail customer transactions. Spatial-temporal data mining (STDM) is the process of discovering interesting, useful and non-trivial patterns from large spatial or spatial-temporal datasets. For example, analysis of crime datasets may reveal frequent patterns such as partially ordered subsets of different crime types in the vicinity of bars. STDM is important for societal applications such as public safety and can help decision makers design important strategies for mitigating crime. In a typical public safety scenario, users provide several inputs including, a collection of crime reports, a suitable spatial or spatial-temporal neighbourhood definition and inter-stinginess thresholds. Given these inputs, STDM discovers patterns that satisfy the interstinginess criterion specified by the user. However, STDM in the context of public safety presents multiple challenges.

1. Introduction As we know, data are changing all the time; especially data on the web are highly dynamic. As time passes by, new datasets are inserted; old datasets are deleted while some other datasets are updated. It is obvious that time stamp is an important attribute of each dataset, also it is important in the process of data mining and it can give us more accurate and useful information. For example, association rule mining does not take the time stamp into account, the rule can be Buy A=) Buy B. If we take time stamp into account then we can get more accurate and useful rules such as: Buy A implies Buy B within a week, or usually people buy A every week [2, 3]. Many applications track the movement of mobile objects, which can be represented as sequences of time stamped locations. Given such a spatio-temporal series, we study the problem of discovering sequential patterns, which are Chirag Patel, IJRIT

83

Routes frequently followed by the object. Sequential pattern mining algorithms for transaction data are not directly applicable for this setting. The challenges to address are (i) the fuzziness of locations in patterns, and (ii) the identification of non-explicit pattern instances. In the case of spatial-temporal pattern queries for Moving Objects Databases the subjects of interest are movement patterns of objects, which may be people, animals, vehicles moving along the prescheduled routes (e.g., buses), vehicles whose movements are limited to the existing road infrastructure (e.g., cars), objects moving almost freely (e.g., ships, planes), etc. [1,4,5]. The spatial-temporal similarity of moving object trajectories on vehicular networks has many traffic related applications (e.g., ensuring traffic security, identification of traffic congestion, re-routing and service sharing). It also has implied applications in business (e.g., logistics, supply chain management and geo-marketing) [7]. The sequential pattern mining finds all Sub-sequences with frequencies lower than min support which is given by user. After that there have been a significant research work was done by various researchers on sequential pattern mining and defined number of algorithms not only for static data base Where data do not change over time but also for incremental data base where there will be new data arriving as the time goes by [10,11]. We propose an efficient algorithm that takes into account both spatial and temporal attributes to mine the frequent trajectory patterns. The proposed method comprises two phases. First, we scan the database once to generate a mapping graph and trajectory information lists (TI-lists). Then, we apply the proposed graph-based mining (GBM) algorithm to traverse the mapping graph and mine the frequent trajectory patterns in a depth-first search manner [1].

2. Description 2.1Sequential Pattern Mining Approach [3]

Sequential pattern mining has been intensively studied during recent years; there exists a great diversity of algorithms for sequential pattern mining. In this Section we first introduce some general and basic algorithms for sequential pattern mining, extensions of those algorithms for special purposes, such as multi-dimensional sequential pattern mining and incremental mining are covered later on. Also periodical pattern mining is elaborated as an extension of sequential pattern mining.

2.1.1 General Algorithms for Sequential Pattern Mining Most of the basic and earlier algorithms for sequential pattern mining are based on the Apriority property proposed in association rule mining [2], the property states that any sub-pattern of a frequent pattern must be frequent. Based on this heuristic, a series of Apriority-like algorithms have been proposed: AprioriAll, AprioriSome, Dynamic Some in [2] , GSP and SPADE. Later on another a series of data projection based algorithms were proposed, which includes Free Span and Prefix Span. SPADE is a lattice based algorithm, MEMISP is a memory indexing In order to make it easier for us to compare those algorithms we use the same sequential database, a sequential database from a supermarket, to explain how those algorithms work. This sequential data records the purchasing history of its customers over certain period of time. Suppose during the pre-process all those attributes that are not relevant or useful to our mining task are pruned, only those useful attributes are left as shown in Table I

Chirag Patel, IJRIT

84

Customer-id 1 1

Oct 23’ 02 Oct 28’ 02

Purchaseditems 30 90

2 2 2 3

Oct 18’ 02 Oct 21’ 02 Oct 27’ 02 Oct 15’ 02

10,20 30 40,60,70 30,50,70

4 4 4 5

Transaction-time

Oct 08’ 02 30 Oct 16’ 02 40,70 Oct 25’ 02 90 Oct 20’ 02 90 Table I Sorted Transaction Data

2.1.2 Apriority All Sequential pattern mining was first introduced in [2] by Agrawal, three Apriority based algorithms were proposed. Given the transaction database with three attributes customer-id, transaction-time and purchased-items, the mining process were decomposed into five phases according to the predefined support Threshold. Suppose the minimal support is 40%, in this case the minimal support count is 2, the result of large 1-itemsets is listed in Table II. Large Item sets Mapped To (30) 1 (40) 2 3 (70) (40,70) 4 (90) 5 Table II Large Item sets Min Supp=40%

2.1.2.1 Transformation Phase: The customer sequences are replaced by those large item sets they contain, all the large item sets are mapped into a series of integers to make the mining more efficient. At the end of this phase the original database is transformed into set of customer sequences represented by those large item-sets. 2.1.2.2 Sequence Phase: All frequent sequential patterns are generated from the trans-Formed sequential database. 2.1.2.3 Maximal Phase: Those sequential patterns that are contained in other super sequential patterns are pruned in this phase, since we are only interested in maximum sequential patterns. 2.1.2.4 Sort Phase: The original transaction database is sorted with customer-id as the major key and transaction time as the minor key; the result is set of customer sequences. Table I shows the sorted transaction data. 2.1.2.5 L-item sets Phase: The sorted database is scanned to obtain large 1-itemsets

Chirag Patel, IJRIT

85

2.1.3 GSP (Generalized Sequential

Pattern)

GSP is also an Apriority based algorithm for sequential pattern mining, however it integrates with time constraints and relaxes the definition of transaction, also it considers the knowledge of taxonomies. For time constraints, maximum gap and minimal gap are defined to specify the gap between any two adjacent transactions in the sequence. If the distance is not in the range between maximum gap and minimal gap then this two cannot be taken as two consecutive transactions in a sequence. This algorithm relaxes the definition of transaction by using a sliding window, which means if the distance between the maximal transaction time and the minimal transaction time of those items is no bigger than the sliding window those items can be taken as in the same transaction. The taxonomies is applied to generate multiple level sequential patterns. With those new factors sequential pattern mining can be defined as [2]: given a sequence data D, a taxonomy T, user-defined Min-gap and max-gap time constraints, a user-defined sliding window-size, to find all sequences whose support is greater than the user-defined minimum support. Like other algorithms GSP has two sub process: candidate pattern generation and frequent pattern generation.

2.1.4 Prefix Span Prefix Span is a more efficient algorithm for mining sequential patterns comparing with GSP and Apriority. Prefix Span is also capable of dealing very large database. Prefix Span mainly employs the method of database projection to make the database for next pass much smaller and con-sequent make the algorithm speedier, also in Prefix Span there is no need for candidate’s generation only recursively project the database according to their Prefix. Different projection methods were discussed for Prefix Span: level-by-level Projection, bi-level projection and pseudo projection

2.1.5 SPADE. SPADE is an algorithm proposed to find frequent sequences using efficient lattice search techniques and simple joins. All the sequences are discovered with only three passes over the database, it also decomposes the mining problem into smaller sub problems, which can be fitted in the main memory. SPADE outperforms Apriority All and GSP by a factor of two through experiments. In this approach, the sequential database is transformed into a vertical id-list database format, in which each id is associated with corresponding items and the time stamp. The vertical database of Table I is shown in Table III.

(30) SID TID 1 23 2 21 3 15 4 8

(90) SID TID 1 28 4 25 5 20

(70) SID TID 2 27 3 15 4 16

(40) SID TID 2 27 4 16

Table III Vertical Id-List

Chirag Patel, IJRIT

86

For item 30, there support count is 4; it occurs with SID 1, 2, 3 and 4 at TID 23, 21, 15 and 8 respectively. By scanning the vertical database, frequent 1-sequences can be generated with the minimum support. For the 2sequences, the original database for item 30, there support count is 4, it occurs with SID 1, 2, 3 and 4 at TID 23, 21, 15 and 8 respectively. By scanning the vertical database, frequent 1-sequences can be generated with the minimum support. For the 2-sequences, the original database is scanned again and the new vertical to horizontal database is created by grouping those items with SID and in increase order of TID. The result vertical to horizontal Database is shown in Table IV.

SID (Item, TID) Pairs 1 (30,23) (90,28) 2 (30,21) (40,27) (70,27) 3 (30,15) (70,15) 4 (30,8) (40,16) (70,16) 51 (90,20) Table IV Vertical to horizontal database

2.2 Spatial-temporal similarity matrix [7] The similarity process looks for objects moving through certain Points of Interest (POIs) and Times of Interest (TOIs). Trajectories are filtered based on spatial similarity, and similar trajectories are refined based on temporal distance.

2.2.1 Spatial similarity matrix based on POI The similarity measures between two vehicle trajectories in a constrained network incorporating concepts discussed by are introduced. Here, spatial similarity is measured based on three factors: (a) Common locations visited by two trajectories. (b) Structural similarity of locations in the trajectories. (c) Sequence similarity of trajectories.

2.2.1.1 Common POIs visited by two trajectories. Let Ti and Tj be two trajectories. A spatial similarity measure Simc (Ti, Tj), which attempts to incorporate common locations in trajectories, is introduced. This similarity matrix measures the number of common locations passed through during the two trajectories relative to the total number of locations in both trajectories.

Definition1. Let Ti and Tj be two trajectories. The spatial similarity measure between these two trajectories is defined based on the number of locations through which both of the trajectories pass.

Chirag Patel, IJRIT

87

Simc (Ti,Tj) =

Nu of loca. comm. to Ti & Tj Total nu of locations in Ti and Tj

The above similarity measure satisfies the following properties: (1) Simc (Ti, Tj) >= 0. (2) Simc (Ti, Tj) = Simc (Tj, Ti). (3) Simc (Ti, Tj) belongs to [0, 1].

Fig1:-Binary Encoding Scheme for road Location

2.2.1.2 Structural similarity Structural similarity measures how geographically close points are to each other. As in the binary encoding scheme, each location is coded as a binary string consisting of country (two bits), district (four bits), road (five bits) and relative road location (four bits), as shown in Fig 1. To measure structural similarity, each of these four binary strings is considered separately; for each bit string, weights are assigned from left to right in the order 1, 2, 3, and so on. Next, each corresponding bit of the two token strings is compared bit-by-bit from the beginning until the first pair of bits is different. The similarity between two token strings is defined as the sum of the weights of those matching tokens divided by the sum of the total weights.

Definition2. Let Pi and Pj be locations visited in trajectories Ti and Tj, respectively. The structural similarity of the two locations is defined as

Sims (Pi ,Pj)=

Sum of the weights of matching token strings Sum Of Total Weight

Chirag Patel, IJRIT

88

For example consider the bit string that represents district (four bits) information. P1 =0001 P2 =0010 The weight of each bit (from left to right) is 1, 2, 3 and 4. The weights of the matching locations 1 and 2 are taken because the first and second digits (from the left) match in P1 and P2. The structural similarity (district) of the two locations is

Simsd(P1, P2) =

(1+2)

= 0.3

(1+2+3+4)

If Simsc(Pi,Pj) , Simsd(Pi,Pj) , Simsr(Pi,Pj) and Simsl(Pi,Pj) are the structural similarity measures corresponding to country, district, road and road locations, respectively, between locations Pi, Pj, then the overall structural similarity is the average of these four similarity measures.

Sims(Pi,Pj)=

Simsc(Pi,Pj) + Simsd(Pi,Pj) + Simsr(Pi,Pj) + Simsl(Pi,Pj) 4

The above similarity measure satisfies the following properties (1) (2) (3) (4) (5)

Sims (Pi,Pj) >= 0. Sims (Pi,Pj) = Sims(Pj,Pi). Sims (Pi,Pj) belongs to [0,1]. Sims (Pi,Pj) = 0 When there is no Structural Similarity between Pi and Pj. Sims (Pi,Pj) =1 When two locations Pi and Pj are exactly same.

2.2.1.3 Sequence similarity of object locations. The above spatial similarity measures consider the number of common locations visited by two trajectories and the trajectories’ geographical neighbourhood as a measure of structural similarity. In the first spatial similarity method, only the percentage of common locations visited by each input trajectory with the query Trajectory (made by Points of Interest) is checked. As important individual locations are considered in POI, the sequence in Which these locations were visited by an input trajectory is also considered when finding the actual similarity. For example, in the field of security informatics, if the set of POIs contains strategic locations, the sequence of locations crossed by a moving car will also have to be considered to determine how a user trajectory matches with the query trajectory created with the given set of POIs. In this study, the original trajectory data are considered as a set of sequences and the sequence alignment method is used to measure the similarity between trajectories. The various principles used to match the sequences are shown below. Chirag Patel, IJRIT

89

(1) The location sequences can be shifted right or left to align as many pages as possible. For example, traj#1 includes a sequence of locations P1, P2, P3, and P4. Here, each location is represented by its corresponding bit string (as described previously).Suppose traj#2 includes a sequence of visiting locations P1, P2, P3, P4. The best matching between the two session sequences can be achieved by shifting traj#2 as follows:

Traj#1: P1, P2, P3, P4 Traj#2: _, P2, P3, P4 (2) Gaps can be inserted into the middle, beginning or end of a location sequence. These gaps allow a better matching to be achieved. For example, for the following two trajectory sessions, a gap in traj#2 allows the best matching to be achieved:

Traj#1: P1, P2, P3, P4 Traj#3: P1, P2, –, P4 (3) The number of identical locations is not simply counted during the alignment of session sequences. Instead, a scoring function based on the locations’ structural similarity measure is created. For each pair of locations, the scoring function gives a similarity score, where a higher score indicates a higher similarity between the locations. A scoring system to find the optimal matching should be used when dynamic programming techniques are used to compute the similarity between travelling locations. For each identical matching (i.e., a pair of locations with similarity 1.0), the similarity score is 20; for each mismatching (i.e., a pair of locations with similarity 0.0) or match a location with a gap, the similarity score is _10; thus, for a pair of locations with similarity Sims (Pi, Pj) belongs to [0, 1], the score for their matching is between _10 and 20. The following function can be used to find the similarity scoring function between locations Pi and Pj: Score = -10+30*Sims (Pi, Pj), Where 0<=Sims (Pi, Pj) <=1. Let T1=P1, P5, P7, P3, P6 and T2=P1, P5, P3, P6 After inserting gaps to achieve a better alignment of locations, the following is obtained: T1=P1, P5, P7, P3, P6 and T2=P1, P5, _, P3, P6.

The following matrix shows an example alignment and the determination of an optimal path and optimal score. The optimal path is shown in the arrows, and the circled score in the bottom right cell is the optimal score.

P1 P5 P3 P6

Chirag Patel, IJRIT

0 -10 -20 -30 -40

P1 -10 20 10 0 -10

P5 -20 10 40 30 20

P7 -30 0 30 30 20

P3 -40 -10 20 50 40

P6 -50 -20 10 40 70

90

One sequence is placed along the top of the matrix, and the other sequence is placed along the left side. There is a gap added to the start of each sequence, indicating the starting point of the matching. The process of finding the optimal matching between two sequences is actually finding an optimal path from the top left corner to the bottom right corner of the matrix. Any step in any path can only go right, down or diagonally. Every diagonal move corresponds to the matching of two locations. A move to the right corresponds to the insertion of a gap in the vertical sequence and matches a location in the horizontal sequence with a gap in the vertical sequence. A move down corresponds to the insertion of a gap in the horizontal sequence and matches a location in the vertical sequence with a gap in the horizontal sequence.

3. Conclusion We surveyed the list of existing association rule mining techniques. This investigation is prepared to our new project titled mining historical changes to web delta. The spatial-temporal similarity of moving object trajectories on vehicular networks has many traffic related applications (e.g., ensuring traffic security, identification of traffic congestion, re-routing and service sharing). It also has implied applications in business (e.g., logistics, supply chain management and geo-marketing). As a continuation, the authors plan to use the spatial-temporal similarity measures to extract semantic location and activity knowledge from GPS Traces, possibly augmented with other information, such as a list of visited websites, user behaviour patterns, environmental factors or energy aspects.

4. References [1] Anthony J.T. Lee “Mining frequent trajectory patterns in spatial–temporal databases”Information Sciences, Elsevier, 2009, PP.2218-2231. [2] Rakesh Agrawal, Ramakrishna Srikant “Mining Sequential Patterns”. [3] Qiankun Zhao, Sourav S. Bhowmick “Sequential Pattern Mining: A Survey” IEEE, Singapore, 2007. [4] Huiping Cao, Nikos Mamoulis, and David W. Cheung ”Mining Frequent Spatio-temporal Sequential Patterns”, Department of Computer Science, IEEE, 2005. [5] Marcin Gorawski, Paweł Jureczek, “A Proposal of Spatio-Temporal Pattern Queries”, IEEE, 2010 [6] NIZAR R. MABROUKEH and C. I. EZEIFE, “Taxonomy of Sequential Pattern Mining Algorithms”, ACM, 2010 [7] Sajimon Abraham, P. Sojan Lal, “Spatio-temporal similarity of network constrained moving object trajectories using sequence alignment of travel locations” Elsevier, 2010, PP.109-123. [8] YonSik Lee, Hyun KO, “Efficient STMPM (Spatio-Temporal Moving Pattern Mining) Using Moving Sequence Tree, IEEE, 2008. [9] Juyoung Kang and Hwan-Seung Yong, “Mining Spatio-Temporal Patterns in Trajectory Data”, Journal of Information Processing Systems, 2010.

Chirag Patel, IJRIT

91

[10] K.M.V.Madan Kumar, P.V.S.Srinivas and C.Raghavendra Rao, “Sequential Pattern Mining With Multiple Minimum Supports in Progressive Databases”, IJDMS, 2012 [11] Liying Cao, Xiaohui San, Yueling Zhao, Guifen Chen, “The application of the spatio-temporal data mining algorithm in maize yield prediction”, Elsevier, 2011.

Chirag Patel, IJRIT

92

Sequential Pattern Mining for Moving Objects in Sptio ...

IJRIT International Journal of Research in Information Technology, Volume 1, Issue 5, May 2013, ... 2 Head of the Computer Department, U.V.Patel College of Engineering, ... Given such a spatio-temporal series, we study the problem of discovering .... The similarity measures between two vehicle trajectories in a constrained ...

157KB Sizes 4 Downloads 255 Views

Recommend Documents

Sequential Pattern Mining for Moving Objects in Sptio ...
Spatial-temporal data mining (STDM) is the process of discovering interesting, useful and non-trivial patterns from large spatial or spatial-temporal datasets. For example, analysis of crime datasets may reveal frequent patterns such as partially ord

Margin-Closed Frequent Sequential Pattern Mining - Semantic Scholar
Jul 25, 2010 - Many scientific and business data sources are dy- namic and thus promising candidates for application of temporal mining methods. For an ...

Margin-Closed Frequent Sequential Pattern Mining - Semantic Scholar
Jul 25, 2010 - Temporal data mining exploits temporal information in data sources in .... sume that they are frequent, with some minimum support µ defined.

SEQUENTIAL k-NEAREST NEIGHBOR PATTERN ...
speech data into two classes. Hypothesis ... auto-regressive model coefficients. A step-size of ... define the SPR ϕ j for segment j and classes ω0 and ω1 as: ϕ0 = (n−n ... training scheme requires a priori knowledge of the class as- sociations

Mining Actionable Subspace Clusters in Sequential Data
such as astronomy, physics, geology, marketing, etc. ... Email: [email protected]. †School of Computer Engineering, Nanyang Technological University,.

Trajectory Pattern Mining - Springer Link
In addition, Internet map services (e.g. ... t1 t2 t3 t4 o1 ↗↗↘→ o2 ↗→→→ o3 ↗↘↗→. (a) raw trajectories ... move with the same motion azimuth ↗ at time t1.

Mining Sequential Patterns - Department of Computer Science
ta x onomies. W e call ip an ancestor ofqp ( andrp a descendant of)ip) if there is an ...... In Proc. of the A CM SIGMOD Conference on M a n a gement of D a t a, ...

REAL-TIME DETECTION OF MOVING OBJECTS IN A ...
Matching Algorithm and its LSI Architecture for Low. Bit-Rate Video Coding.” IEEE Transactions on Cir- cuits and Systems for Video Technology Vol. 11, No.

Vision substitution and moving objects tracking in 2 ...
Abstract. Vision substitution by electro-stimulation has been studied since the 60's. Camera pictures or movies encoded in gray levels are dis- played via an ...

A Hybrid Prediction Model for Moving Objects - University of Queensland
for a data mining process. ... measures. • We present a novel data access method, Trajectory Pat- ..... node has free space, pk is inserted into it, otherwise it splits.

A Hybrid Prediction Model for Moving Objects - University of Queensland
a shopping center currently (9:05 a.m.), it is unreasonable to predict what her ..... calls, hence, the computing time is significantly reduced. ..... an eight hour period. .... 24. 26. 28. 30. 32. 34. 36. 38. Eps. ( a ) number of patte rn s. Bike. C

Pattern Mining Model for Automatic Network Monitoring ...
Email: (zhiguo.qu, xiaojun.wang)@dcu.ie, [email protected] and [email protected] ... Keywords –Automatic network monitoring, Sequential pattern mining, Episode discovery. .... In response to matches of pattern prediction.

Activity Recognition Using Correlated Pattern Mining for ...
istics of the data, many existing activity recognition systems. [3], [4], [5], [6] ..... [14] L. J. Bain and M. Englehardt, Statistical Analysis of Reliability and. Life-testing ...

D2PM: Domain Driven Pattern Mining
Feb 28, 2011 - between discovered information and user expectations, trying to adapt ... The D2PM (Domain Driven Pattern Mining) project aims to extend that ...

Research on Moving Objects with Multimodal ... - FernUni Hagen
1.1 Motivation. Consider the .... We call it Generic Location as it can represent locations of moving .... Q1: Find all people walking through the city center area on ...

Recovery of the trajectories of multiple moving objects ...
A core difficulty is that these two problems are tightly intricate. ... of region tracking, techniques based on active contours [2] or level-sets [21] ... between techniques that use a prediction and adjustment mechanism ... evolution and of the rela

segmentation and tracking of static and moving objects ... - IEEE Xplore
ABSTRACT. In this paper we present a real-time object tracking system for monocular video sequences with static camera. The work flow is based on a pixel-based foreground detection system followed by foreground object tracking. The foreground detecti

Research on Moving Objects with Multimodal ... - FernUni Hagen
Database Systems for New Applications, Mathematics and Computer ..... development which is in order to give the answer for such .... for web application.

Frequent Pattern Mining Using Divide and Conquer ...
IJRIT International Journal of Research in Information Technology, Volume 1, Issue 4,April ... The implicit information within databases, mainly the interesting association ..... Computer Science, University of California at Irvine, CA, USA1998.

Frequent Pattern Mining over data streams
IJRIT International Journal of Research in Information Technology, Volume 1, Issue 5, May ... U.V.Patel College of Engineering, Ganpat University, Gujarat, India.