SlideShare uma empresa Scribd logo
1 de 26
Data Mining:
   Concepts and Techniques
                        — Chapter 8 —
                 8.2 Mining time-series data


                 Jiawei Han and Micheline Kamber
                 Department of Computer Science
           University of Illinois at Urbana-Champaign
                      www.cs.uiuc.edu/~hanj
      ©2006 Jiawei Han and Micheline Kamber. All rights reserved.
April 18, 2013            Data Mining: Concepts and Techniques
                                                       1
April 18, 2013   Data Mining: Concepts and Techniques
                                              2
Chapter 8. Mining Stream, Time-
       Series, and Sequence Data

      Mining data streams

      Mining time-series data
      Mining sequence patterns in
      transactional databases

      Mining sequence patterns in biological
      data

April 18, 2013     Data Mining: Concepts and Techniques
                                                3
Time-Series and Sequential Pattern
                   Mining

       Regression and trend analysis—A
        statistical approach
       Similarity search in time-series analysis
       Sequential Pattern Mining
       Markov Chain
       Hidden Markov Model

April 18, 2013       Data Mining: Concepts and Techniques
                                                  4
Mining Time-Series Data
       Time-series database
           Consists of sequences of values or events changing
            with time
           Data is recorded at regular intervals
           Characteristic time-series components
             
                 Trend, cycle, seasonal, irregular
       Applications
           Financial: stock price, inflation
           Industry: power consumption
           Scientific: experiment results
          Meteorological: precipitation
April 18, 2013           Data Mining: Concepts and Techniques
                                                      5
   A time series can be illustrated as a time-series graph
     which describes a point moving with the passage of time
April 18, 2013          Data Mining: Concepts and Techniques
                                                     6
Categories of Time-Series Movements
     Categories of Time-Series Movements
          Long-term or trend movements (trend curve): general direction in
           which a time series is moving over a long interval of time
          Cyclic movements or cycle variations: long term oscillations about
           a trend line or curve
            
                e.g., business cycles, may or may not be periodic
          Seasonal movements or seasonal variations
            
                i.e, almost identical patterns that a time series appears to
                follow during corresponding months of successive years.
          Irregular or random movements
     Time series analysis: decomposition of a time series into these four
      basic movements
          Additive Modal: TS = T + C + S + I
          Multiplicative Modal: TS = T × C × S × I
April 18, 2013                  Data Mining: Concepts and Techniques
                                                             7
Estimation of Trend
                       Curve

       The freehand method
           Fit the curve by looking at the graph
           Costly and barely reliable for large-scaled data mining
       The least-square method
           Find the curve minimizing the sum of the squares of
            the deviation of points on the curve from the
            corresponding data points
       The moving-average method

April 18, 2013             Data Mining: Concepts and Techniques
                                                        8
Moving Average

       Moving average of order n



           Smoothes the data
           Eliminates cyclic, seasonal and irregular movements
           Loses the data at the beginning or end of a series
           Sensitive to outliers (can be reduced by weighted
            moving average)

April 18, 2013            Data Mining: Concepts and Techniques
                                                       9
Trend Discovery in Time-Series (1):
        Estimation of Seasonal Variations
      Seasonal index
           Set of numbers showing the relative values of a variable during
            the months of the year
           E.g., if the sales during October, November, and December are
            80%, 120%, and 140% of the average monthly sales for the whole
            year, respectively, then 80, 120, and 140 are seasonal index
            numbers for these months
      Deseasonalized data
           Data adjusted for seasonal variations for better trend and cyclic
            analysis
           Divide the original monthly data by the seasonal index numbers
            for the corresponding months

April 18, 2013                Data Mining: Concepts and Techniques
                                                           10
Seasonal Index
                              160



      Seasonal Index
                              140
                              120
                              100
                               80
                               60
                               40
                               20
                                0
                                    1   2   3    4    5    6   7      8   9   10   11   12
                                                           Month




                                                Raw data from
                                                http://www.bbk.ac.uk/mano
                                                p/man/docs/QII_2_2003%2
                                                0Time%20series.pdf




April 18, 2013   Data Mining: Concepts and Techniques
                                              11
Trend Discovery in Time-Series
                    (2)

      Estimation of cyclic variations
          If (approximate) periodicity of cycles occurs, cyclic
           index can be constructed in much the same manner as
           seasonal indexes
      Estimation of irregular variations
          By adjusting the data for trend, seasonal and cyclic
           variations
      With the systematic analysis of the trend, cyclic, seasonal,
       and irregular components, it is possible to make long- or
       short-term predictions with reasonable quality

April 18, 2013            Data Mining: Concepts and Techniques
                                                       12
Time-Series & Sequential Pattern
                     Mining

       Regression and trend analysis—A
        statistical approach
       Similarity search in time-series analysis
       Sequential Pattern Mining
       Markov Chain
       Hidden Markov Model

April 18, 2013       Data Mining: Concepts and Techniques
                                                  13
Similarity Search in Time-Series
                    Analysis
     Normal database query finds exact match
     Similarity search finds data sequences that differ only
      slightly from the given query sequence
     Two categories of similarity queries
        Whole matching: find a sequence that is similar to the

          query sequence
        Subsequence matching: find all pairs of similar

          sequences
     Typical Applications
        Financial market

        Market basket data analysis

        Scientific databases

        Medical diagnosis


April 18, 2013           Data Mining: Concepts and Techniques
                                                      14
Data Transformation

       Many techniques for signal analysis require the data to
        be in the frequency domain
       Usually data-independent transformations are used
           The transformation matrix is determined a priori
             
                 discrete Fourier transform (DFT)
                discrete wavelet transform (DWT)
       The distance between two signals in the time domain is
        the same as their Euclidean distance in the frequency
        domain

April 18, 2013              Data Mining: Concepts and Techniques
                                                         15
Discrete Fourier Transform




     DFT does a good job of concentrating energy in the first
      few coefficients
     If we keep only first a few coefficients in DFT, we can
      compute the lower bounds of the actual distance
     Feature extraction: keep the first few coefficients (F-index)
      as representative of the sequence

April 18, 2013           Data Mining: Concepts and Techniques
                                                      16
DFT (continued)
     Parseval’s Theorem
                    n−1               n−1

                   ∑| xt |2 =∑ X f |2
                    t =0
                              |
                                      f =0

     The Euclidean distance between two signals in the time
      domain is the same as their distance in the frequency
      domain
     Keep the first few (say, 3) coefficients underestimates the
      distance and there will be no false dismissals!
        n                             3

       ∑ | S[t ] − Q[t ] | ≤ ε ⇒ ∑ | F (S )[ f ] − F (Q)[ f ] | ≤ ε
       t =0
                           2

                                     f =0
                                                              2



April 18, 2013                 Data Mining: Concepts and Techniques
                                                            17
Multidimensional Indexing in Time-Series

     Multidimensional index construction
         Constructed for efficient accessing using the first few
          Fourier coefficients
     Similarity search
         Use the index to retrieve the sequences that are at
          most a certain small distance away from the query
          sequence
         Perform post-processing by computing the actual
          distance between sequences in the time domain and
          discard any false matches

April 18, 2013            Data Mining: Concepts and Techniques
                                                       18
Subsequence Matching
     Break each sequence into a set of
      pieces of window with length w
   Extract the features of the

      subsequence inside the window
   Map each sequence to a “trail” in

      the feature space
   Divide the trail of each sequence

      into “subtrails” and represent each
      of them with minimum bounding
      rectangle
   Use a multi-piece assembly

      algorithm to search for longer
      sequence matches
April 18, 2013             Data Mining: Concepts and Techniques
                                                        19
Analysis of Similar Time Series




April 18, 2013   Data Mining: Concepts and Techniques
                                              20
Enhanced Similarity Search
                Methods
     Allow for gaps within a sequence or differences in offsets
      or amplitudes
   Normalize sequences with amplitude scaling and offset

      translation
   Two subsequences are considered similar if one lies within

      an envelope of ε width around the other, ignoring outliers
   Two sequences are said to be similar if they have enough

      non-overlapping time-ordered pairs of similar
      subsequences
   Parameters specified by a user or expert: sliding window

      size, width of an envelope for similarity, maximum gap,
      and matching fraction
April 18, 2013            Data Mining: Concepts and Techniques
                                                       21
Steps for Performing a Similarity
                    Search

     Atomic matching
         Find all pairs of gap-free windows of a small length that
          are similar
     Window stitching
         Stitch similar windows to form pairs of large similar
          subsequences allowing gaps between atomic matches
     Subsequence Ordering
         Linearly order the subsequence matches to determine
          whether enough similar pieces exist

April 18, 2013            Data Mining: Concepts and Techniques
                                                       22
Similar Time Series Analysis

           VanEck International Fund   Fidelity Selective Precious Metal and Mineral Fund




            Two similar mutual funds in the different fund group


April 18, 2013                 Data Mining: Concepts and Techniques
                                                            23
Query Languages for Time
                   Sequences
     Time-sequence query language
          Should be able to specify sophisticated queries like
      Find all of the sequences that are similar to some sequence in class
      A, but not similar to any sequence in class B
          Should be able to support various kinds of queries: range queries,
           all-pair queries, and nearest neighbor queries
     Shape definition language
          Allows users to define and query the overall shape of time
           sequences
          Uses human readable series of sequence transitions or macros
          Ignores the specific details
            
                E.g., the pattern up, Up, UP can be used to describe
                increasing degrees of rising slopes
            
                Macros: spike, valley, etc.
April 18, 2013                  Data Mining: Concepts and Techniques
                                                             24
References on Time-Series & Similarity
                       Search

     R. Agrawal, C. Faloutsos, and A. Swami. Efficient similarity search in sequence
      databases. FODO’93 (Foundations of Data Organization and Algorithms).
     R. Agrawal, K.-I. Lin, H.S. Sawhney, and K. Shim. Fast similarity search in the presence
      of noise, scaling, and translation in time-series databases. VLDB'95.
     R. Agrawal, G. Psaila, E. L. Wimmers, and M. Zait. Querying shapes of histories.
      VLDB'95.
     C. Chatfield. The Analysis of Time Series: An Introduction, 3rd ed. Chapman & Hall, 1984.
     C. Faloutsos, M. Ranganathan, and Y. Manolopoulos. Fast subsequence matching in
      time-series databases. SIGMOD'94.
     D. Rafiei and A. Mendelzon. Similarity-based queries for time series data. SIGMOD'97.
     Y. Moon, K. Whang, W. Loh. Duality Based Subsequence Matching in Time-Series
      Databases, ICDE’02
     B.-K. Yi, H. V. Jagadish, and C. Faloutsos. Efficient retrieval of similar time sequences
      under time warping. ICDE'98.
     B.-K. Yi, N. Sidiropoulos, T. Johnson, H. V. Jagadish, C. Faloutsos, and A. Biliris. Online
      data mining for co-evolving time sequences. ICDE'00.
     Dennis Shasha and Yunyue Zhu. High Performance Discovery in Time Series:
      Techniques and Case Studies, SPRINGER, 2004
April 18, 2013                     Data Mining: Concepts and Techniques
                                                                25
April 18, 2013   Data Mining: Concepts and Techniques
                                              26

Mais conteúdo relacionado

Mais procurados

What Is DATA MINING(INTRODUCTION)
What Is DATA MINING(INTRODUCTION)What Is DATA MINING(INTRODUCTION)
What Is DATA MINING(INTRODUCTION)Pratik Tambekar
 
Data miningppt378
Data miningppt378Data miningppt378
Data miningppt378nitttin
 
Data mining-2
Data mining-2Data mining-2
Data mining-2Nit Hik
 
Data Mining: Concepts and techniques: Chapter 13 trend
Data Mining: Concepts and techniques: Chapter 13 trendData Mining: Concepts and techniques: Chapter 13 trend
Data Mining: Concepts and techniques: Chapter 13 trendSalah Amean
 
Data Mining Concepts and Techniques
Data Mining Concepts and TechniquesData Mining Concepts and Techniques
Data Mining Concepts and TechniquesPratik Tambekar
 
Data Mining: Concepts and Techniques (3rd ed.) — Chapter _04 olap
Data Mining:  Concepts and Techniques (3rd ed.)— Chapter _04 olapData Mining:  Concepts and Techniques (3rd ed.)— Chapter _04 olap
Data Mining: Concepts and Techniques (3rd ed.) — Chapter _04 olapSalah Amean
 
Chapter 08 Data Mining Techniques
Chapter 08 Data Mining Techniques Chapter 08 Data Mining Techniques
Chapter 08 Data Mining Techniques Houw Liong The
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsDataminingTools Inc
 
Introduction to Datamining Concept and Techniques
Introduction to Datamining Concept and TechniquesIntroduction to Datamining Concept and Techniques
Introduction to Datamining Concept and TechniquesSơn Còm Nhom
 
Data Mining Concepts
Data Mining ConceptsData Mining Concepts
Data Mining ConceptsDung Nguyen
 
Odam: Open Data, Access and Mining
Odam: Open Data, Access and MiningOdam: Open Data, Access and Mining
Odam: Open Data, Access and MiningDaniel JACOB
 
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...Salah Amean
 

Mais procurados (20)

02 Data Mining
02 Data Mining02 Data Mining
02 Data Mining
 
Data mining
Data miningData mining
Data mining
 
03 data mining : data warehouse
03 data mining : data warehouse03 data mining : data warehouse
03 data mining : data warehouse
 
Introduction to Data Mining
Introduction to Data MiningIntroduction to Data Mining
Introduction to Data Mining
 
What Is DATA MINING(INTRODUCTION)
What Is DATA MINING(INTRODUCTION)What Is DATA MINING(INTRODUCTION)
What Is DATA MINING(INTRODUCTION)
 
Data miningppt378
Data miningppt378Data miningppt378
Data miningppt378
 
Data mining-2
Data mining-2Data mining-2
Data mining-2
 
Data Mining: Concepts and techniques: Chapter 13 trend
Data Mining: Concepts and techniques: Chapter 13 trendData Mining: Concepts and techniques: Chapter 13 trend
Data Mining: Concepts and techniques: Chapter 13 trend
 
Data Mining Concepts and Techniques
Data Mining Concepts and TechniquesData Mining Concepts and Techniques
Data Mining Concepts and Techniques
 
Data Mining: Concepts and Techniques (3rd ed.) — Chapter _04 olap
Data Mining:  Concepts and Techniques (3rd ed.)— Chapter _04 olapData Mining:  Concepts and Techniques (3rd ed.)— Chapter _04 olap
Data Mining: Concepts and Techniques (3rd ed.) — Chapter _04 olap
 
Chapter 08 Data Mining Techniques
Chapter 08 Data Mining Techniques Chapter 08 Data Mining Techniques
Chapter 08 Data Mining Techniques
 
Lecture - Data Mining
Lecture - Data MiningLecture - Data Mining
Lecture - Data Mining
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlations
 
Data mining 1
Data mining 1Data mining 1
Data mining 1
 
Introduction to Datamining Concept and Techniques
Introduction to Datamining Concept and TechniquesIntroduction to Datamining Concept and Techniques
Introduction to Datamining Concept and Techniques
 
Data Mining Concepts
Data Mining ConceptsData Mining Concepts
Data Mining Concepts
 
Odam: Open Data, Access and Mining
Odam: Open Data, Access and MiningOdam: Open Data, Access and Mining
Odam: Open Data, Access and Mining
 
Data Mining Overview
Data Mining OverviewData Mining Overview
Data Mining Overview
 
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
 
3. mining frequent patterns
3. mining frequent patterns3. mining frequent patterns
3. mining frequent patterns
 

Semelhante a Chapter - 8.2 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber

Using timeseries extraction the mining.ppt
Using timeseries extraction the mining.pptUsing timeseries extraction the mining.ppt
Using timeseries extraction the mining.pptjohnsaida3101
 
D.M time series analysis
D.M time series analysisD.M time series analysis
D.M time series analysisTanishq Soni
 
20IT501_DWDM_PPT_Unit_V.ppt
20IT501_DWDM_PPT_Unit_V.ppt20IT501_DWDM_PPT_Unit_V.ppt
20IT501_DWDM_PPT_Unit_V.pptPalaniKumarR2
 
Ijsrdv1 i2039
Ijsrdv1 i2039Ijsrdv1 i2039
Ijsrdv1 i2039ijsrd.com
 
Fast Sequential Rule Mining
Fast Sequential Rule MiningFast Sequential Rule Mining
Fast Sequential Rule Miningijsrd.com
 
Data mining introduction
Data mining introductionData mining introduction
Data mining introductionBasma Gamal
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Data Mining Application and Trends
Data Mining Application and TrendsData Mining Application and Trends
Data Mining Application and TrendsVijayasankariS
 
20IT501_DWDM_U5.ppt
20IT501_DWDM_U5.ppt20IT501_DWDM_U5.ppt
20IT501_DWDM_U5.pptSamPrem3
 
Jewei Hans & Kamber Chapter 8
Jewei Hans & Kamber  Chapter 8Jewei Hans & Kamber  Chapter 8
Jewei Hans & Kamber Chapter 8Houw Liong The
 
Review Over Sequential Rule Mining
Review Over Sequential Rule MiningReview Over Sequential Rule Mining
Review Over Sequential Rule Miningijsrd.com
 
TIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSISTIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSISLibcorpio
 
Chapter 13. Trends and Research Frontiers in Data Mining.ppt
Chapter 13. Trends and Research Frontiers in Data Mining.pptChapter 13. Trends and Research Frontiers in Data Mining.ppt
Chapter 13. Trends and Research Frontiers in Data Mining.pptSubrata Kumer Paul
 
PREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHOD
PREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHODPREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHOD
PREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHODAM Publications
 

Semelhante a Chapter - 8.2 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber (20)

Using timeseries extraction the mining.ppt
Using timeseries extraction the mining.pptUsing timeseries extraction the mining.ppt
Using timeseries extraction the mining.ppt
 
D.M time series analysis
D.M time series analysisD.M time series analysis
D.M time series analysis
 
20IT501_DWDM_PPT_Unit_V.ppt
20IT501_DWDM_PPT_Unit_V.ppt20IT501_DWDM_PPT_Unit_V.ppt
20IT501_DWDM_PPT_Unit_V.ppt
 
Ijsrdv1 i2039
Ijsrdv1 i2039Ijsrdv1 i2039
Ijsrdv1 i2039
 
Time series.ppt
Time series.pptTime series.ppt
Time series.ppt
 
Data Mining
Data MiningData Mining
Data Mining
 
Demand forecasting
Demand forecastingDemand forecasting
Demand forecasting
 
Ac26185187
Ac26185187Ac26185187
Ac26185187
 
Fast Sequential Rule Mining
Fast Sequential Rule MiningFast Sequential Rule Mining
Fast Sequential Rule Mining
 
Data mining introduction
Data mining introductionData mining introduction
Data mining introduction
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Data Mining Application and Trends
Data Mining Application and TrendsData Mining Application and Trends
Data Mining Application and Trends
 
Aa31163168
Aa31163168Aa31163168
Aa31163168
 
Data mininng trends
Data mininng trendsData mininng trends
Data mininng trends
 
20IT501_DWDM_U5.ppt
20IT501_DWDM_U5.ppt20IT501_DWDM_U5.ppt
20IT501_DWDM_U5.ppt
 
Jewei Hans & Kamber Chapter 8
Jewei Hans & Kamber  Chapter 8Jewei Hans & Kamber  Chapter 8
Jewei Hans & Kamber Chapter 8
 
Review Over Sequential Rule Mining
Review Over Sequential Rule MiningReview Over Sequential Rule Mining
Review Over Sequential Rule Mining
 
TIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSISTIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSIS
 
Chapter 13. Trends and Research Frontiers in Data Mining.ppt
Chapter 13. Trends and Research Frontiers in Data Mining.pptChapter 13. Trends and Research Frontiers in Data Mining.ppt
Chapter 13. Trends and Research Frontiers in Data Mining.ppt
 
PREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHOD
PREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHODPREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHOD
PREDICTION OF STORM DISASTER USING CLOUD MAP-REDUCE METHOD
 

Mais de error007

Chapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kambererror007
 
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kambererror007
 
Chapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & Kambererror007
 
Chapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & Kambererror007
 
Chapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kambererror007
 
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kambererror007
 

Mais de error007 (6)

Chapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
 
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
 
Chapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 8.3 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
 
Chapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 7 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
 
Chapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 4 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
 
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & KamberChapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
Chapter - 6 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber
 

Último

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 

Último (20)

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 

Chapter - 8.2 Data Mining Concepts and Techniques 2nd Ed slides Han & Kamber

  • 1. Data Mining: Concepts and Techniques — Chapter 8 — 8.2 Mining time-series data Jiawei Han and Micheline Kamber Department of Computer Science University of Illinois at Urbana-Champaign www.cs.uiuc.edu/~hanj ©2006 Jiawei Han and Micheline Kamber. All rights reserved. April 18, 2013 Data Mining: Concepts and Techniques 1
  • 2. April 18, 2013 Data Mining: Concepts and Techniques 2
  • 3. Chapter 8. Mining Stream, Time- Series, and Sequence Data Mining data streams Mining time-series data Mining sequence patterns in transactional databases Mining sequence patterns in biological data April 18, 2013 Data Mining: Concepts and Techniques 3
  • 4. Time-Series and Sequential Pattern Mining  Regression and trend analysis—A statistical approach  Similarity search in time-series analysis  Sequential Pattern Mining  Markov Chain  Hidden Markov Model April 18, 2013 Data Mining: Concepts and Techniques 4
  • 5. Mining Time-Series Data  Time-series database  Consists of sequences of values or events changing with time  Data is recorded at regular intervals  Characteristic time-series components  Trend, cycle, seasonal, irregular  Applications  Financial: stock price, inflation  Industry: power consumption  Scientific: experiment results  Meteorological: precipitation April 18, 2013 Data Mining: Concepts and Techniques 5
  • 6. A time series can be illustrated as a time-series graph which describes a point moving with the passage of time April 18, 2013 Data Mining: Concepts and Techniques 6
  • 7. Categories of Time-Series Movements  Categories of Time-Series Movements  Long-term or trend movements (trend curve): general direction in which a time series is moving over a long interval of time  Cyclic movements or cycle variations: long term oscillations about a trend line or curve  e.g., business cycles, may or may not be periodic  Seasonal movements or seasonal variations  i.e, almost identical patterns that a time series appears to follow during corresponding months of successive years.  Irregular or random movements  Time series analysis: decomposition of a time series into these four basic movements  Additive Modal: TS = T + C + S + I  Multiplicative Modal: TS = T × C × S × I April 18, 2013 Data Mining: Concepts and Techniques 7
  • 8. Estimation of Trend Curve  The freehand method  Fit the curve by looking at the graph  Costly and barely reliable for large-scaled data mining  The least-square method  Find the curve minimizing the sum of the squares of the deviation of points on the curve from the corresponding data points  The moving-average method April 18, 2013 Data Mining: Concepts and Techniques 8
  • 9. Moving Average  Moving average of order n  Smoothes the data  Eliminates cyclic, seasonal and irregular movements  Loses the data at the beginning or end of a series  Sensitive to outliers (can be reduced by weighted moving average) April 18, 2013 Data Mining: Concepts and Techniques 9
  • 10. Trend Discovery in Time-Series (1): Estimation of Seasonal Variations  Seasonal index  Set of numbers showing the relative values of a variable during the months of the year  E.g., if the sales during October, November, and December are 80%, 120%, and 140% of the average monthly sales for the whole year, respectively, then 80, 120, and 140 are seasonal index numbers for these months  Deseasonalized data  Data adjusted for seasonal variations for better trend and cyclic analysis  Divide the original monthly data by the seasonal index numbers for the corresponding months April 18, 2013 Data Mining: Concepts and Techniques 10
  • 11. Seasonal Index 160 Seasonal Index 140 120 100 80 60 40 20 0 1 2 3 4 5 6 7 8 9 10 11 12 Month Raw data from http://www.bbk.ac.uk/mano p/man/docs/QII_2_2003%2 0Time%20series.pdf April 18, 2013 Data Mining: Concepts and Techniques 11
  • 12. Trend Discovery in Time-Series (2)  Estimation of cyclic variations  If (approximate) periodicity of cycles occurs, cyclic index can be constructed in much the same manner as seasonal indexes  Estimation of irregular variations  By adjusting the data for trend, seasonal and cyclic variations  With the systematic analysis of the trend, cyclic, seasonal, and irregular components, it is possible to make long- or short-term predictions with reasonable quality April 18, 2013 Data Mining: Concepts and Techniques 12
  • 13. Time-Series & Sequential Pattern Mining  Regression and trend analysis—A statistical approach  Similarity search in time-series analysis  Sequential Pattern Mining  Markov Chain  Hidden Markov Model April 18, 2013 Data Mining: Concepts and Techniques 13
  • 14. Similarity Search in Time-Series Analysis  Normal database query finds exact match  Similarity search finds data sequences that differ only slightly from the given query sequence  Two categories of similarity queries  Whole matching: find a sequence that is similar to the query sequence  Subsequence matching: find all pairs of similar sequences  Typical Applications  Financial market  Market basket data analysis  Scientific databases  Medical diagnosis April 18, 2013 Data Mining: Concepts and Techniques 14
  • 15. Data Transformation  Many techniques for signal analysis require the data to be in the frequency domain  Usually data-independent transformations are used  The transformation matrix is determined a priori  discrete Fourier transform (DFT)  discrete wavelet transform (DWT)  The distance between two signals in the time domain is the same as their Euclidean distance in the frequency domain April 18, 2013 Data Mining: Concepts and Techniques 15
  • 16. Discrete Fourier Transform  DFT does a good job of concentrating energy in the first few coefficients  If we keep only first a few coefficients in DFT, we can compute the lower bounds of the actual distance  Feature extraction: keep the first few coefficients (F-index) as representative of the sequence April 18, 2013 Data Mining: Concepts and Techniques 16
  • 17. DFT (continued)  Parseval’s Theorem n−1 n−1 ∑| xt |2 =∑ X f |2 t =0 | f =0  The Euclidean distance between two signals in the time domain is the same as their distance in the frequency domain  Keep the first few (say, 3) coefficients underestimates the distance and there will be no false dismissals! n 3 ∑ | S[t ] − Q[t ] | ≤ ε ⇒ ∑ | F (S )[ f ] − F (Q)[ f ] | ≤ ε t =0 2 f =0 2 April 18, 2013 Data Mining: Concepts and Techniques 17
  • 18. Multidimensional Indexing in Time-Series  Multidimensional index construction  Constructed for efficient accessing using the first few Fourier coefficients  Similarity search  Use the index to retrieve the sequences that are at most a certain small distance away from the query sequence  Perform post-processing by computing the actual distance between sequences in the time domain and discard any false matches April 18, 2013 Data Mining: Concepts and Techniques 18
  • 19. Subsequence Matching  Break each sequence into a set of pieces of window with length w  Extract the features of the subsequence inside the window  Map each sequence to a “trail” in the feature space  Divide the trail of each sequence into “subtrails” and represent each of them with minimum bounding rectangle  Use a multi-piece assembly algorithm to search for longer sequence matches April 18, 2013 Data Mining: Concepts and Techniques 19
  • 20. Analysis of Similar Time Series April 18, 2013 Data Mining: Concepts and Techniques 20
  • 21. Enhanced Similarity Search Methods  Allow for gaps within a sequence or differences in offsets or amplitudes  Normalize sequences with amplitude scaling and offset translation  Two subsequences are considered similar if one lies within an envelope of ε width around the other, ignoring outliers  Two sequences are said to be similar if they have enough non-overlapping time-ordered pairs of similar subsequences  Parameters specified by a user or expert: sliding window size, width of an envelope for similarity, maximum gap, and matching fraction April 18, 2013 Data Mining: Concepts and Techniques 21
  • 22. Steps for Performing a Similarity Search  Atomic matching  Find all pairs of gap-free windows of a small length that are similar  Window stitching  Stitch similar windows to form pairs of large similar subsequences allowing gaps between atomic matches  Subsequence Ordering  Linearly order the subsequence matches to determine whether enough similar pieces exist April 18, 2013 Data Mining: Concepts and Techniques 22
  • 23. Similar Time Series Analysis VanEck International Fund Fidelity Selective Precious Metal and Mineral Fund Two similar mutual funds in the different fund group April 18, 2013 Data Mining: Concepts and Techniques 23
  • 24. Query Languages for Time Sequences  Time-sequence query language  Should be able to specify sophisticated queries like Find all of the sequences that are similar to some sequence in class A, but not similar to any sequence in class B  Should be able to support various kinds of queries: range queries, all-pair queries, and nearest neighbor queries  Shape definition language  Allows users to define and query the overall shape of time sequences  Uses human readable series of sequence transitions or macros  Ignores the specific details  E.g., the pattern up, Up, UP can be used to describe increasing degrees of rising slopes  Macros: spike, valley, etc. April 18, 2013 Data Mining: Concepts and Techniques 24
  • 25. References on Time-Series & Similarity Search  R. Agrawal, C. Faloutsos, and A. Swami. Efficient similarity search in sequence databases. FODO’93 (Foundations of Data Organization and Algorithms).  R. Agrawal, K.-I. Lin, H.S. Sawhney, and K. Shim. Fast similarity search in the presence of noise, scaling, and translation in time-series databases. VLDB'95.  R. Agrawal, G. Psaila, E. L. Wimmers, and M. Zait. Querying shapes of histories. VLDB'95.  C. Chatfield. The Analysis of Time Series: An Introduction, 3rd ed. Chapman & Hall, 1984.  C. Faloutsos, M. Ranganathan, and Y. Manolopoulos. Fast subsequence matching in time-series databases. SIGMOD'94.  D. Rafiei and A. Mendelzon. Similarity-based queries for time series data. SIGMOD'97.  Y. Moon, K. Whang, W. Loh. Duality Based Subsequence Matching in Time-Series Databases, ICDE’02  B.-K. Yi, H. V. Jagadish, and C. Faloutsos. Efficient retrieval of similar time sequences under time warping. ICDE'98.  B.-K. Yi, N. Sidiropoulos, T. Johnson, H. V. Jagadish, C. Faloutsos, and A. Biliris. Online data mining for co-evolving time sequences. ICDE'00.  Dennis Shasha and Yunyue Zhu. High Performance Discovery in Time Series: Techniques and Case Studies, SPRINGER, 2004 April 18, 2013 Data Mining: Concepts and Techniques 25
  • 26. April 18, 2013 Data Mining: Concepts and Techniques 26