Composite Pattern Matching in Time Series

Similar documents
Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

Factorising FACTORISING.

CS 491G Combinatorial Optimization Lecture Notes

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Lecture 6: Coding theory

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

The DOACROSS statement

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

MCH T 111 Handout Triangle Review Page 1 of 3

I 3 2 = I I 4 = 2A

Now we must transform the original model so we can use the new parameters. = S max. Recruits

ANALYSIS AND MODELLING OF RAINFALL EVENTS

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

The Stirling Engine: The Heat Engine

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

Lecture 2: Cayley Graphs

Momentum and Energy Review

Lecture Notes No. 10

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS 360 Exam 2 Fall 2014 Name

Iowa Training Systems Trial Snus Hill Winery Madrid, IA

Statistics in medicine

Review Topic 14: Relationships between two numerical variables

Linear Algebra Introduction

Learning Partially Observable Markov Models from First Passage Times

Technology Mapping Method for Low Power Consumption and High Performance in General-Synchronous Framework

Algebra 2 Semester 1 Practice Final

F / x everywhere in some domain containing R. Then, + ). (10.4.1)

2.4 Theoretical Foundations

6.5 Improper integrals

Monochromatic Plane Matchings in Bicolored Point Set

Appendix A: HVAC Equipment Efficiency Tables

Engr354: Digital Logic Circuits

Section 2.3. Matrix Inverses

Algorithm Design and Analysis

1 This diagram represents the energy change that occurs when a d electron in a transition metal ion is excited by visible light.

SIMPLE NONLINEAR GRAPHS

Part 4. Integration (with Proofs)

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

Lecture 11 Binary Decision Diagrams (BDDs)

Computing all-terminal reliability of stochastic networks with Binary Decision Diagrams

CHEM1611 Answers to Problem Sheet 9

Finite State Automata and Determinisation

APPROXIMATION AND ESTIMATION MATHEMATICAL LANGUAGE THE FUNDAMENTAL THEOREM OF ARITHMETIC LAWS OF ALGEBRA ORDER OF OPERATIONS

SOME INTEGRAL INEQUALITIES FOR HARMONICALLY CONVEX STOCHASTIC PROCESSES ON THE CO-ORDINATES

Ranking Generalized Fuzzy Numbers using centroid of centroids

Section 2.1 Special Right Triangles

Algorithm Design and Analysis

Coding Techniques. Manjunatha. P. Professor Dept. of ECE. June 28, J.N.N. College of Engineering, Shimoga.

Identifying and Classifying 2-D Shapes

Section 4.4. Green s Theorem

Estimation of Sequence Components using Magnitude Information

T b a(f) [f ] +. P b a(f) = Conclude that if f is in AC then it is the difference of two monotone absolutely continuous functions.

Meta-Activity Recognition: A Wearable Approach for Logic Cognition-based Activity Sensing

CIT 596 Theory of Computation 1. Graphs and Digraphs

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005

Estimation of Global Solar Radiation in Onitsha and Calabar Using Empirical Models

Analysis of Temporal Interactions with Link Streams and Stream Graphs

Thermal energy 2 U Q W. 23 April The First Law of Thermodynamics. Or, if we want to obtain external work: The trick of using steam

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

Implication Graphs and Logic Testing

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

New centroid index for ordering fuzzy numbers

Generalization of 2-Corner Frequency Source Models Used in SMSIM

Compression of Palindromes and Regularity.

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES

Subsequence Automata with Default Transitions

10.7 Assessment criteria for the individual investigation

Ling 3701H / Psych 3371H: Lecture Notes 9 Hierarchic Sequential Prediction

TIME-VARYING AND NON-LINEAR DYNAMICAL SYSTEM IDENTIFICATION USING THE HILBERT TRANSFORM

Equivalent fractions have the same value but they have different denominators. This means they have been divided into a different number of parts.

Alpha Algorithm: A Process Discovery Algorithm

Applied. Grade 9 Assessment of Mathematics. Multiple-Choice Items. Winter 2005

Calculus Cheat Sheet. Integrals Definitions. where F( x ) is an anti-derivative of f ( x ). Fundamental Theorem of Calculus. dx = f x dx g x dx

Ch. 2.3 Counting Sample Points. Cardinality of a Set

Chapter 8 Roots and Radicals

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Arrow s Impossibility Theorem

COMPARISON OF DIFFERENT APPROXIMATIONS OF FUZZY NUMBERS

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Let s divide up the interval [ ab, ] into n subintervals with the same length, so we have

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

Nondeterministic Automata vs Deterministic Automata

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS

Dorf, R.C., Wan, Z. T- Equivalent Networks The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000

Total score: /100 points

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

Exam 1 Study Guide. Differentiation and Anti-differentiation Rules from Calculus I

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW

Solutions to Problem Set #1

Symmetrical Components 1

Transcription:

Composite Pttern Mthing in Time Series Asif Slekin, 1 M. Mustfizur Rhmn, 1 n Rihnul Islm 1 1 Deprtment of Computer Siene n Engineering, Bnglesh University of Engineering n Tehnology Dhk-1000, Bnglesh slekin@gmil.om Astrt For lst few yers mny reserh hve een tken ple to reognize vrious meningful ptterns from time series t. These reserhes re se on reognizing si time series ptterns. Most of these works use templte se, rule se n neurl network se tehniques to reognize si ptterns. But in time series there exist mny omposite ptterns omprise of simple si ptterns. In this pper we propose two novel pprohes of reognizing omposite ptterns from time series t. In our propose pproh we use omintion of templte se n rule se pprohes n neurl network n rule se pprohes to reognize these omposite ptterns. Inex Terms Pttern reognition, Rule se pproh, Neurl network, Templte se pproh,composite pttern I. INTRODUCTION There is wie rnge of pplitions in lmost every omin where time series t is eing generte. For exmple, ily?ututions of the stok mrket, tres proue y omputer luster, meil n iologil experimentl oservtions, reings otine from sensor networks, position uptes of moving ojets in lotion-se servies, et, re ll represente in time series. Consequently, there is n enormous interest in nlysing (inluing query proessing n mining) time series t, whih hs resulte in lrge numer of works on new methoologies for inexing, lssifying, lustering, n summrizing time series t. Stok mrket prie flutution lso genertes time series t. Tehnil nlysts n trers lim ertin stok mrket time series pttern n shpes le to profitle tre opportunity. For lst few yers mny reserh hve een onute to reognize meningful ptterns from time series t. We fin tht mny omposite ptterns whih frequently ourre in the time series n e forme y simply omining simple si time series ptterns. As fr we re onerne tht the urrent sttes of the rt re not yet onerne out this emerging omposite. In this pper we hve worke with six si ptterns illustrte in Fig-1 n the omposite ptterns generte from these six si ptterns. Sientists hve een use templte se pprohes, He n Shouler Reverse He n Shouler Fig. 1. Tripple Top Reverse Tripple Top Doule Top Reverse Doule Top Six si ptterns for stok t. rule se pprohes n neurl network se pprohes to reognize ptterns from time series t. In this pper we hve propose two novel pprohes to reognize omposite pttern from time series t. We pply vrile size sliing winow on time series t n extrt fetures from it. In our first pproh we use Spermns rnk orreltion oeffiient to reognize preferre ptterns n use rule sets to provie more ury in lssifition proess. In seon pproh we use neurl network s lssifier of vrious preferre ptterns in time series n lso use rule sets to enhne the ury of pttern reognition. II. PREVIOUS WORK Severl pprohes hve een evelope to extrting meningful ptterns from time series. Two mjor pprohes for pttern reognition in stok time series re templte se n rule se pprohes [1],[2]. In pst few yers mny pproh lso fouse on pplition of ANNs to stok mrket preition [3],[4]. Reent reserh tens re using hyriize pprohes for pttern reognition in stok time series. Tsihet l. [7] use omintion of the rule-se tehnique n ANN to preit the iretion of the stok n prie 500 stok inex futures on ily sis. Shtky et l. [5] suggeste iviing time series t sequene into meningful susequene n Ds et l. [6] introue fixe length winow to segment time series into susequenes n time series ws then represente y the primitive shpe ptterns tht were forme. Chung et l. [8] introue Time series pttern mthing se on Pereptully Importnt Point (PIP) ientifition. PIP lgorithm is se on pturing the flutution of the sequene n 978-1-4673-4836-2/12/$31.00 2012 IEEE 173

ientifying the highly flutute points s PIPs. Zhng et l.[9] introue omintion of templte se n rule se pprohes for pttern mthing in stok time series. Their pproh propose flexile online ptternmthing sheme se on fixe size sliing winow, whih is involve in the whole mthing proess, inluing oth in feture point extrtion n pttern mthing. Zhng et l.[9] use PIP onept, introue y Chung et l. [8] for feture point extrtion from the time series t within sliing winow.sine the urrent sttes of the rt re not yet onerne out this emerging omposite ptterns,in this pper we hve propose two novel pprohes to reognize omposite pttern from time series t. III. COMPOSITE PATTERN MATCHING APPROACHES In this setion we will give rief esription out two propose omposite pttern mthing pprohes. As shown in Fig.1 eh pproh hs three steps. Both of this pproh is se on vrile size sliing winow. On the first step, we extrt the feture points from time series t in vrile length sliing winow. The feture point extrtion metho is se on fining Pereptully Importnt Points (PIP)[8] from time series t. On the next step, for our first pproh we reognize omposite ptterns se on Spermns Rnk Correltion Coeffiient. For our seon pproh we propose pttern mthing sheme relying on neurl network where the inputs of the network re the normlize PIP points. On the thir step for oth of our pprohes we use the rule sets to improve the ility of ientifying ptterns n istinguish them more effetively. In oth of our pprohes we try to mth si pttern in sliing winow whih hs fixe initil length n we will use the nottion of primry winow length for this fixe winow length throughout the pper. However if we fil to fin ny si pttern in primry winow, then we inrese the winow length inrementlly to threshol vlue. But if the length of winow rehes to tht threshol vlue n no preferre si pttern is mthe in tht winow then we move the sliing winow to the next rw t where the length of the sliing winow is set equl to primry winow length gin. However, if mth is foun in tht sliing winow, then we move leftmost sie of sliing winow over the rw t epening on whih si pttern is mthe n the length of the sliing winow is set equl to primry winow length. If ny preferre si pttern is mthe for this new sliing winow, omposite pttern is foun. This omposite pttern is onstitute y these two si mthe ptterns. A. Feture extrtion A time series is olletion of oservtions of wellefine t items otine through repete mesurements over time. for exmple Stok time series is urve where x-oorinte represents the tring ys while the y-oorinte the losing pries. Time series sequene ontins lrge numer of time points. So, it is ostly n time onsuming to nlyze the ptterns from the time series iretly. A simple n effiient metho is neee for representtion or pproximtion of the time series sequene. Chung et l. [8] introue Time series pttern mthing se on Pereptully Importnt Point (PIP). In our pproh PIP is use for feture point extrtion. The PIP lgorithm is se on fining the flutution of the sequene n tkes these highly flutute points s PIPs. Initilly, the first two PIPs re efine s the first n lst point of input sequene (P ) where input sequene (P ) is tully the time series t within sliing winow(sw). The next PIP will e the point in P with mximum istne D to the first two PIPs. The fourth PIP will e the point in input sequene P with mximum istne D to its two jent PIPs. In this wy we extrt the PIPs from the input sequene P where the numer of PIPs(N) is user efine n we will ll this series s extrte series(sp). Chung et l. [8] pplie ifferent forms of mximum istne D n foun tht tht it ws effiient n effetive to extrt the feture points when D ws perpeniulr istne etween the test point n the line onneting the two jent PIPs. Hene, perpeniulr istne is use s D in PIP lgorithm. The pseuo oe of extrting Pereptully Importnt Point (PIP) is stte elow: 1: proeure EXTRACTING PERCEPTUALLY IMPOR- TANT POINTS(P [1 : n]) Input sequene (P[1:n]) of stok time series 2: SP[1] P [1] The first point of input sequene 3: SP[N] P [N] The lst point of input sequene 4: repet 5: Selet P [i] with mximum perpeniulr istne 6: PD to the jent PIP points in P 7: SP[j] P [i] 8: until j = N 9: en proeure B. Rule Sets For Bsi Ptterns In Spermns rnk se si pttern reognition pproh, there is loss of informtion when the t re onverte to rnks. Also in our pproh of si pttern reognition using neurl network hs some error. So, we efine set of rules for eh si ptterns. These rules esrie the si ptterns more expliitly. Using rule-se metho we n eliminte the error ours in rnk se n neurl network se tehniques, s this pproh istinguishe eh pttern more urtely. 978-1-4673-4836-2/12/$31.00 2012 IEEE 174

Suh s in He n Shoulers pttern mplitue ifferene etween two shoulers will e elow 15%. In our pproh if potentil si pttern is mthe s output either from neurl network se or rnk se pproh, we pply previously efine rules on extrte PIP series of tht winow. The preefine rules for six si ptterns re stte elow. He & Shoulers Pttern SP[2] SP[6] <15% SP[4] is the top most point SP[2] n SP[6] must e the seon n thir top point SP[1] n SP[7] must e the lowest two points He & Shoulers Pttern (Reverse) SP[2] SP[6] <15% SP[4] is the lowest point SP[2] n SP[6] must e the seon n thir lowest point. SP[1] n SP[7] must e the highest two points Doule Top Pttern(UP) Differene etween the top two points < 15% SP[3] n SP[5] re the top two points. SP[2] is higher thn SP[1] SP[6] is higher thn SP[7] Doule Top Pttern(DOWN) Differene etween the top two points < 15% SP[3] n SP[5] re lowest two points. SP[2] is lower thn SP[1] SP[6] is lower thn SP[7] Triple Tops Pttern(UP) Mx( SP[2] SP[4], SP[2] SP[6], SP[4] SP[6] ) < 15% Sp[2],sp[4], sp[6] must e three highest points Triple Tops Pttern(DOWN) Mx( SP[2] SP[4], SP[2] SP[6], SP[4] SP[6] ) < 15% Sp[2],sp[4], sp[6] must e three lowest points C. Pttern reognition se on Spermns rnk orreltion oeffiient The Spermn rnk orreltion oeffiient is nonprmetri tehnique whih evlute the egree of orreltion etween two vriles. This tehnique works on the rnks of the time series t rther thn the rw time series t. In our first pproh we onvert the extrte feture points SP[1 : n] from eh sliing winow into rnk vlues. In Tle I rnk onversion for eh of the si ptterns is shown. Eh of the six preferre si ptterns in Fig-1 hs preefine rnk vlues. Converte rnk vlues from eh sliing winow is then ompre with the rnk vlues of eh preferre si ptterns. As in (1) we lulte the Spermns Correltion Coeffiient etween rnk vlues of preferre si ptterns n the onverte rnk vlues from sliing winow. Here where i is the ifferene etween rnks for eh x i, y i t pir, n n is numer of t pirs. γ =1 6 n i=1 2 i n(n 2 1) (1) For preferre si pttern, If vlue of γ is more then threshol vlue then rule sets for tht preferre si pttern is pplie on SP[1 : n] vlues of sliing winow. If this SP[1 : n] vlues psse the rule sets, tht preferre si pttern is onsiere to e mthe in this sliing winow. D. Pttern reognition using lssifition neurl network In vrious time series sequene t points vry extensively. For exmple in stok time series the vrine of prie of extrte PIPs will epen upon vrious prmeters of rel stok mrket. Hene we normlize the prie of PIPs into uniform intervl ([0, 1]) to eliminte the influenes use y this vrine. Suppose extrte PIP series SP[1 : N]. SP[i] is the highest prie point n SP[j] is the lowest prie point in stok time series. Then SP hight = SP[i] SP[j]. We get the normlize extrte series SN[1 : N], where for every k =1to N, SN[k] =(SP[k] SP[j])/SP hight. In our propose pproh we investigte the six (6) kins of si ptterns of time series. Our pproh is proess of lssifition using three-lyer feeforwr neurl network, whose inputs re extrte normlize series SN[1:N] efine in setion III-A. n outputs will e the preefine si pttern shown in Fig-1. A three-lyer feeforwr neurl network is typilly ompose of one input lyer, one output lyer n one hien lyers. In the input lyer, eh neuron orrespons to feture; while in the output lyer, eh neuron orrespons to preefine si pttern. Clssifition proess strts with trining the neurl network with group of trining smples. Every trining smple elongs to ertin preefine si pttern. Then the testing smples re use to test the performne of the trine network. For input feture vetor the est output woul e output vetor with ll elements s zero, exept one orresponing to whih si pttern the input smple elongs to. But, ue to lssifition errors some smple input oul not give the expete output. In our experiment, if ny output neuron of network gives more thn threshol perent similrity, then tht lss of si pttern is the potentil mth for input smple. In our pprohes primry winow length is W 0.Both 978-1-4673-4836-2/12/$31.00 2012 IEEE 175

TABLE I RANK OF BASIC PATTERNS Ptterns Pttern Figure Position Rnk Nme Orer 6 2 5 1 4 3 He n He n Shouler [6241 [6.5 2.5 Shouler 537] 4.5 1 4.5 2.5 ] 6.5] 1 2 Doule Doule Top [6413 [6.5 4.5 Top 257] 1.5 3 1.5 4.5 ] 6.5] 7 3 4 5 7 1 2 3 4 5 6 7 Triple Tripple Top [6142 [6.5 2 Top 537] 4.5 2 4.52] 6.5] 1 3 4 5 6 Reverse 7 Reverse He n Shouler [1537 [1.5 5.5 He n 462] 3.5 7 3.5 5.5 ] Shouler 1.5] 1 2 3 4 5 6 7 Reverse Reverse Tripple Top [1536 [1.5 6 Triple 472] 3.5 6 3.56] Top 1.5] 1 2 2 3 4 5 6 7 Reverse Reverse Doule Top [1365 [1.5 3.5 Doule 742] 6.5 5 6.5 3.5 ] Top 1.5] 6 of our Spermns rnk orreltion oeffiient pproh n neurl network se pproh strts with pplying W = W 0 length sliing winow SW[1 : W ] on time series t S[1 : n]. Then we extrt feture points SP[1 : n]. For Spermns rnk orreltion oeffiient pproh we extrt rnk vlues from sliing winow SW. Then we ompre the rnk vlues extrte from eh sliing winow with the preefine rnk vlues of eh of the preferre si ptterns. If Spermns rnk orreltion oeffiient γ for ny of the preferre si pttern is more then threshol vlue then the orresponing input time series within the sliing winow (SW) is the potentil si mthe pttern. For our neurl network se pproh we extrt normlize feture points SN[1 : N] from sliing winow SW.Then we pply SN[1 : N] s input vetor of trine neurl network. If ny of the six (6) output neurons gives lssifition ury more thn user efine threshol in perentge (i.e. 90 perent), then the orresponing input time series within the sliing winow (SW) is the potentil si mthe pttern. After tht, for oth of our pprohes we pply previously efine rules in setion III-B on SP[1 : N] of tht sliing winow for potentil si pttern. If SP[1 : N] n pss these rules, then we onsier preefine si pttern is foun n then we move leftmost sie of winow over the rw t epening on whih si preferre pttern is mthe. If we fin He n Shouler or Reverse He n Shouler or Tripple Top or Reverse Tripple Top pttern we move leftmost sie of the winow over the rw t to the thir extrte point SP[3] of SP[1 : N] n the length of the winow is set equl to primry winow length. If we fin Doule Top or Reverse Doule Top pttern, we move leftmost sie of winow over the rw t to the fourth extrte point SP[4] of SP[1 : N] n the length of the winow is set equl to primry winow length. If ny preferre si pttern is mthe for this new sliing winow, omposite pttern is foun. However if we fil to fin ny pttern in primry winow, then we inrese the winow length inrementlly to threshol vlue. But if the length of winow rehes to tht threshol vlue n no preferre pttern is foun in tht winow then we move the winow to the next rw t where the length of the winow is set equl to primry winow length W 0. Then the sme proess will e gin pplie on the new winow. This will ontinue until the en of the Stok time series S. In Fig-2() for winow etween the points n we fin He n Shouler pttern. Hene move leftmost sie of winow over the rw t to the thir extrte point SP[3] whih is point. For winow etween the points n we fin Tripple Top pttern. These 978-1-4673-4836-2/12/$31.00 2012 IEEE 176

() He n Shouler n Tripple top omposite pttern () Reverse He n Shouler (e) Two Reverse tripple (f) Fig. 2. n Reverse Tripple Top omposite pttern () Doule Top n Tripple Top omposite pttern top omposite pttern () Tripple top n He n Shouler omposite pttern Reverse trippe top n Reverse He n Shouler omposite pttern Some exmple of omposite ptterns. two ptterns onstitute He n Shouler n Tripple top omposite pttern. Also in Fig-2() for winow etween the points n we fin Doule Top pttern. Hene move leftmost sie of winow over the rw t to the fourth extrte point SP[4] whih is point. For winow etween the points n we fin Tripple Top pttern. These two ptterns onstitute Doule Top n Tripple top omposite pttern. The pseuo oe of overll pproh of omposite pttern reognition is stte elow: 1: proeure COMPOSITE PATTERN MATCHING ON SLIDING WINDOW(S[1 : n]) full time series t 2: Set primry Winow With, W 0 3: Set Winow With, W = W 0 4: Threshol Winow Size W t 5: Set the numer of feture points extrte from 6: time series within sliing winow, N 7: repet 8: Apply sliing winows on S[1 : n] to extrt 9: feture points SP[1 : N] 10: For neurl network se pproh extrt 11: normlize feture points SN[1 : N], within 12: sliing winow, SW[1 : W ] 13: 14: Apply normlize feture points SN[1 : N] 15: s inputs of neurl network n hek the 6 16: outputs. If ny of the output gives more thn 17: 90% mth, then this pttern lss is 18: onsiere s potentil mthe pttern 19: (MP). 20: 21: For rnk se pproh extrt 22: rnk vlues from feture points SP[1 : N], 23: within sliing winow, SW[1 : W ] 24: If Spermns rnk orreltion oeffiient 25: with ny of the preferre si pttern is 26: more then threshol vlue then this si 27: pttern lss isonsiere s potentil 28: mthe pttern (MP). 29: 30: Chek whether SP[1 : N] n pss the 31: efine rules for MP pttern. 32: if pttern mth foun then 33: Move the winow epening on whih 34: si pttern is mthe with winow 35: withw = W 0 36: if If ny si pttern mthe for this 37: winow then 38: A omposite pttern is mthe 39: en if 40: else if winow with W<W t then 41: Inrese the winow with, 42: W = W + next rw t 43: else if winow with W equl W t then 44: Move the winow with 45: step=next rw t SW[1] 46: en if 47: until finish the time series S 48: en proeure IV. EXPERIMENTAL RESULT In this setion we present the experimentl results tht we onute on our propose pproh. We hve implemente our lgorithm in MATLAB n run extensive simultion on PC with Intel ore i5 proessor with lok spee 2.3GHz n 4 GB memory. We hve uploe our oe, whih is pulily ville to ess, t [12]. We hve performe extensive experiments n ompre our two propose pprohes. We run experiments on two rel stok prie tset nmely Dow Jones Inustril Averge [10] (20904 t points) n Generl Eletri Compny (GE) [11] (12691 t points). Aoring to the experiment on oth tsets, winow length of 15 to 20 t gives the est results for our oth pprohes. A. Neurl network n rule se pproh For trining the neurl network we prtition the tset of oth [10] n [11] tset into trining n testing tset. For tset [10] the trining tset ontins first 19000 points n rest of the t elongs to testing tset. Similrly,we prtition first 10000 points of tset [11] s trining tset n rest of the t s testing tset. We trin neurl network using vrious numer of neurons in hien lyer n vrious numer of itertion on trining t n then pply our neurl network n rule se pproh with vrile winow length with initil winow length of 15 t n inrese winow length y one rw t until winow length rehe the threshol Winow Length of 20 t on test t. Numer of omposite ptterns foun from Dtset [11] for using vrious numer of hien lyer n vrious numer of itertion is shown in Fig-4. From Dtset [10] for trining fee-forwr neurl network of 40 neurons in hien lyer n 4500 itertion on trining t we fin highest verge of 25 ptterns. An From Dtset [11] for trining fee-forwr neurl network of 35 neurons in hien 978-1-4673-4836-2/12/$31.00 2012 IEEE 177

30 25 COMPARISON BETWEEN TWO APPROACH se on vrile length sliing winow. Our hyri pprohes n effiiently reognize omposite ptterns. In Neurl network n rule se pproh Numer of omposite ptterns 20 15 10 5 0 Dow Jones Inustril Averge Generl Eletri Compny Dt set Numer of Composite ptterns 30 20 10 0 30 35 40 Numer of hien lyer neuron 50 60 5000 4500 4000 3500 3000 Numer of itertion Fig. 3. Comprison of two pprohes. On the left neurl network se pproh n on the right rnk se pproh TABLE II ERROR OF TWO APPROACHES(IN PERCENTAGE) Stok Time Neurl network n Rnk se n Series Rule se Rule se Dow Jones 6.5 13 Inustril Averge Generl 7.6 19.2 Eletri Compny lyer n 3500 itertion on trining t we fin highest verge of 28 ptterns. B. Spermns rnk se n rule se pproh In this omposite pttern reognition pproh we extrt seven (7) feture points from eh sliing winow. In this pproh initil winow length of sliing winow is 15 t n inrese winow length y one rw t until winow length rehe the threshol Winow Length of 20 t on test t. From test tset of Dtset [10] using this Spermns rnk se n rule se pproh we fin 20 omposite ptterns n from test tset of Dtset [11] using this Spermns rnk se n rule se pproh we fin 21 omposite ptterns Fig-3 epits omprison of the numer of omposite ptterns foun using our vrious pprohes. Atul numer of Composite pttern in [10] Dtset is 23 n tul numer of Composite pttern in [11] Dtset is 26. Tle II epits the error of our propose two pprohes. V. CONCLUSIONS In this pper we introue omposite ptterns n propose two hyri omposite pttern mthing pproh Fig. 4. Composite ptterns foun in Dtset of Generl Eletri Compny using neurl network pproh this pper we work with si six ptterns n omposite ptterns originte from them. There re severl more si ptterns n vrious omposite struture n e generte from them. In future work n e one to reognize these severl other ptterns using these hyri pprohes. REFERENCES [1] C. L. Osler, n P. H. K. Chng, He n Shoulers: Not Just Flky Ptternl, Stff Report No.4, Feerl Reserve Bnk of New York. [2] F. Collopy, n J. S. Armstrong, Rule-se foresting:development n vlition of n expert systems pproh to omining time series extrpoltions, Mngement Siene, vol. 38, pp. 1394-1414, Otoer 1992. [3] H. Ahmi, Testility of the ritrge priing theory y neurl networks, in Proeeings of the Interntionl Conferene on Neurl Networks, Sn Diego, CA, 1990, pp. 385393. [4] J.H. Choi, M.K. Lee, M.W. Rhee, Tring S& P 500 stok inex futures using neurl network, in Proeeings of the Annul Interntionl Conferene on Arti-il Intelligene Applitions on Wll Street, New York, 1995, pp. 63-72. [5] H. Shtky, S. B. Zonik, Approximte queries n representtions for lrge t sequenes, in Proeeings of Interntionl Conferene on Dt Engineering, Los Almitos, CA: IEEE Computer Soiety Press, 1996, pp. 536-545. [6] G. Ds, K. I. Lin,H. Mnnil, Rule isovery from time series, in Proeeings of the ACM SIGKDD Interntionl Conferene on Knowlege Disovery n Dt Mining, 1998, pp. 16-22. [7] R. Tsih, Y. Hsu, C.C. Li, Foresting S&P 500 stok inex futures with hyri AI system, Deision Support Systems., vol. 23, pp. 161-174, June. 1998. [8] T. C. Fu, F. L. Chung, R. Luk, n C. Ng, Stok time series pttern mthing: Templte-se vs. rule-se pprohes, Engineering Applitions of Artifiil Intelligene., vol. 20(3), pp. 347-364, April 2007. [9] Z. Zhng, J. Jing, X. Liu, R. Lu, H. Wng, R. Zhng, A Rel Time Hyri Pttern Mthing Sheme for Stok Time Series, in Pro. ADC2010, 2010. [10] http://finne.yhoo.om/q/hp?s=ˆ DJI+Historil+Pries; Lst esse : June 25, 2012, 1 m GMT. [11] http://finne.yhoo.om/q/hp?s=ge+historil+pries; Lst esse : June 25, 2012, 1 m GMT. [12] https://gist.githu.om/3207395; Lst esse : June 25, 2012, 1mGMT. 978-1-4673-4836-2/12/$31.00 2012 IEEE 178