Mining Time Series Data CS240B Notes by Carlo Zaniolo UCLA CS Dept A Tutorial on Indexing and Mining Time Series Data ICDM '01 The 2001 IEEE International.

Slides:



Advertisements
Similar presentations
Indexing Time Series Based on original slides by Prof. Dimitrios Gunopulos and Prof. Christos Faloutsos with some slides from tutorials by Prof. Eamonn.
Advertisements

SAX: a Novel Symbolic Representation of Time Series
Time Series II.
ECG Signal processing (2)
Kaushik Chakrabarti(Univ Of Illinois) Minos Garofalakis(Bell Labs) Rajeev Rastogi(Bell Labs) Kyuseok Shim(KAIST and AITrc) Presented at 26 th VLDB Conference,
Wavelets Fast Multiresolution Image Querying Jacobs et.al. SIGGRAPH95.
Principal Component Analysis Based on L1-Norm Maximization Nojun Kwak IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008.
Word Spotting DTW.
Relevance Feedback Retrieval of Time Series Data Eamonn J. Keogh & Michael J. Pazzani Prepared By/ Fahad Al-jutaily Supervisor/ Dr. Mourad Ykhlef IS531.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
15-826: Multimedia Databases and Data Mining
3D Shape Histograms for Similarity Search and Classification in Spatial Databases. Mihael Ankerst,Gabi Kastenmuller, Hans-Peter-Kriegel,Thomas Seidl Univ.
Mining Time Series.
HCI 530 : Seminar (HCI) Damian Schofield. HCI 530: Seminar (HCI) Transforms –Two Dimensional –Three Dimensional The Graphics Pipeline.
Multimedia DBs.
Indexing Time Series. Time Series Databases A time series is a sequence of real numbers, representing the measurements of a real variable at equal time.
Hongtao Cheng 1 Efficiently Supporting Ad Hoc Queries in Large Datasets of Time Sequences Author:Flip Korn H. V. Jagadish Christos Faloutsos From ACM.
Classification Dr Eamonn Keogh Computer Science & Engineering Department University of California - Riverside Riverside,CA Who.
Themis Palpanas1 VLDB - Aug 2004 Fair Use Agreement This agreement covers the use of all slides on this CD-Rom, please read carefully. You may freely use.
Efficient Similarity Search in Sequence Databases Rakesh Agrawal, Christos Faloutsos and Arun Swami Leila Kaghazian.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Jessica Lin, Eamonn Keogh, Stefano Loardi
Basic Concepts and Definitions Vector and Function Space. A finite or an infinite dimensional linear vector/function space described with set of non-unique.
Computing Sketches of Matrices Efficiently & (Privacy Preserving) Data Mining Petros Drineas Rensselaer Polytechnic Institute (joint.
Using Relevance Feedback in Multimedia Databases
E.G.M. PetrakisDimensionality Reduction1  Given N vectors in n dims, find the k most important axes to project them  k is user defined (k < n)  Applications:
A Multiresolution Symbolic Representation of Time Series
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
Fast multiresolution image querying CS474/674 – Prof. Bebis.
Spatial and Temporal Databases Efficiently Time Series Matching by Wavelets (ICDE 98) Kin-pong Chan and Ada Wai-chee Fu.
Indexing Time Series.
Time Series Data Analysis - II
Fast Subsequence Matching in Time-Series Databases Christos Faloutsos M. Ranganathan Yannis Manolopoulos Department of Computer Science and ISR University.
Pattern Matching with Acceleration Data Pramod Vemulapalli.
Exact Indexing of Dynamic Time Warping
Mining Time Series Data
Multimedia and Time-series Data
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Analysis of Constrained Time-Series Similarity Measures
Discovering the Intrinsic Cardinality and Dimensionality of Time Series using MDL BING HU THANAWIN RAKTHANMANON YUAN HAO SCOTT EVANS1 STEFANO LONARDI EAMONN.
Time Series Data Analysis - I Yaji Sripada. Dept. of Computing Science, University of Aberdeen2 In this lecture you learn What are Time Series? How to.
Disclosure risk when responding to queries with deterministic guarantees Krish Muralidhar University of Kentucky Rathindra Sarathy Oklahoma State University.
Multimedia Data DCT Image Compression
A Query Adaptive Data Structure for Efficient Indexing of Time Series Databases Presented by Stavros Papadopoulos.
Mining Time Series.
Semi-Supervised Time Series Classification & DTW-D REPORTED BY WANG YAWEN.
Identifying Patterns in Time Series Data Daniel Lewis 04/06/06.
Mingyang Zhu, Huaijiang Sun, Zhigang Deng Quaternion Space Sparse Decomposition for Motion Compression and Retrieval SCA 2012.
k-Shape: Efficient and Accurate Clustering of Time Series
Gene Clustering by Latent Semantic Indexing of MEDLINE Abstracts Ramin Homayouni, Kevin Heinrich, Lai Wei, and Michael W. Berry University of Tennessee.
2005/12/021 Content-Based Image Retrieval Using Grey Relational Analysis Dept. of Computer Engineering Tatung University Presenter: Tienwei Tsai ( 蔡殿偉.
2005/12/021 Fast Image Retrieval Using Low Frequency DCT Coefficients Dept. of Computer Engineering Tatung University Presenter: Yo-Ping Huang ( 黃有評 )
Exact indexing of Dynamic Time Warping
Indexing Time Series. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Data Mining Multimedia Databases Text databases Image and.
Accelerating Dynamic Time Warping Clustering with a Novel Admissible Pruning Strategy Nurjahan BegumLiudmila Ulanova Jun Wang 1 Eamonn Keogh University.
A Multiresolution Symbolic Representation of Time Series Vasileios Megalooikonomou Qiang Wang Guo Li Christos Faloutsos Presented by Rui Li.
NSF Career Award IIS University of California Riverside Eamonn Keogh Efficient Discovery of Previously Unknown Patterns and Relationships.
Fast Query-Optimized Kernel Machine Classification Via Incremental Approximate Nearest Support Vectors by Dennis DeCoste and Dominic Mazzoni International.
Intelligent Database Systems Lab Advisor : Dr. Hsu Graduate : Chien-Shing Chen Author : Jessica K. Ting Michael K. Ng Hongqiang Rong Joshua Z. Huang 國立雲林科技大學.
Feature learning for multivariate time series classification Mustafa Gokce Baydogan * George Runger * Eugene Tuv † * Arizona State University † Intel Corporation.
Dense-Region Based Compact Data Cube
Keogh, E. , Chakrabarti, K. , Pazzani, M. & Mehrotra, S. (2001)
Fast Subsequence Matching in Time-Series Databases.
Singular Value Decomposition and its applications
Fast multiresolution image querying
Supervised Time Series Pattern Discovery through Local Importance
Fast Approximate Query Answering over Sensor Data with Deterministic Error Guarantees Chunbin Lin Joint with Etienne Boursier, Jacque Brito, Yannis Katsis,
Objective of This Course
Scale-Space Representation for Matching of 3D Models
Presentation transcript:

Mining Time Series Data CS240B Notes by Carlo Zaniolo UCLA CS Dept A Tutorial on Indexing and Mining Time Series Data ICDM '01 The 2001 IEEE International Conference on Data Mining November 29, San Jose Dr Eamonn Keogh Computer Science & Engineering Department University of California - Riverside Riverside,CA With Slides from:

Introduction, Motivation Similarity Measures Properties of distance measures Preprocessing the data Time warped measures Indexing Time Series Dimensionality reduction Discrete Fourier Transform Discrete Wavelet Transform Singular Value Decomposition Piecewise Linear Approximation Symbolic Approximation Piecewise Aggregate Approximation Adaptive Piecewise Constant Approximation Summary, Conclusions Outline

What are Time Series? A time series is a collection of observations made sequentially in time. Note that virtually all similarity measurements, indexing and dimensionality reduction techniques discussed in this tutorial can be used with other data types.

Time Series are Ubiquitous Time Series are Ubiquitous! I People measure things... The presidents approval rating. Their blood pressure. The annual rainfall in Riverside. The value of their Yahoo stock. The number of web hits per second. … and things change over time. Thus time series occur in virtually every medical, scientific and businesses domain.

Time Series are Ubiquitous Time Series are Ubiquitous! II A random sample of 4,000 graphics from 15 of the world’s newspapers published from 1974 to 1989 found that more than 75% of all graphics were time series (Tufte, 1983).

Defining the similarity between two time series is at the heart of most time series data mining applications/tasks Thus time series similarity will be the primary focus of this tutorial. 10  s = 0.5 c = 0.3 Query Q (template) Time Series Similarity Classification Clustering Rule Discovery Query by Content

Why is Working With Time Series so Difficult? Part I 1 Hour of EKG data: w 1 Hour of EKG data: 1 Gigabyte. Typical Weblog w Typical Weblog: 5 Gigabytes per week. Space Shuttle Database w Space Shuttle Database: 158 Gigabytes and growing. Macho Database w Macho Database: 2 Terabytes, updated with 3 gigabytes per day. Answer: How do we work with very large databases? Since most of the data lives on disk (or tape), we need a representation of the data we can efficiently manipulate.

Why is Working With Time Series so Difficult? Part II The definition of similarity depends on the user, the domain and the task at hand. We need to be able to handle this subjectivity. Answer: We are dealing with subjective notions of similarity.

Why is working with time series so difficult? Part III Answer: Miscellaneous data handling problems. Differing data formats. Differing data formats. Differing sampling rates. Differing sampling rates. Noise, missing values, etc. Noise, missing values, etc.

Similarity Matching Problem: Flavors 1 Database C Query Q (template) Given a Query Q, a reference database C and a distance measure, find the C i that best matches Q C 6 is the best match. 1: Whole Matching

Similarity matching problem: flavor 2 Database C Query Q (template) Given a Query Q, a reference database C and a distance measure, find the location that best matches Q. 2: Subsequence Matching The best matching subsection. Note that we can always convert subsequence matching to whole matching by sliding a window across the long sequence, and copying the window contents.

After all that background we might have forgotten what we are doing and why we care! So here is a simple motivator and review.. You go to the doctor because of chest pains. Your ECG looks strange… You doctor wants to search a database to find similar ECGS, in the hope that they will offer clues about your condition... Two questions: How do we define similar? How do we search quickly?

Similarity is always subjective. (i.e. it depends on the application) zAll models are wrong, but some are useful… This slide was taken from: A practical Time-Series Tutorial with MATLAB—presented at ECLM PAKDD 2005, by Michalis Vlachos.

Distance functions Metric Euclidean Distance Correlation Triangle Inequality: d(x,z) ≤ d(x,y) + d(y,z) Assume: d(Q,bestMatch) = 20 and d(Q,B) =150 Then, since d(A,B)=20 d(Q,A) ≥ d(Q,B) – d(B,A) d(Q,A) ≥ 150 – 20 = 130 We do not need to get A from disk Non-Metric Time Warping LCSS: longest common sub-sequence

Preprocessing the data before distance calculations If we naively try to measure the distance between two “raw” time series, we may get very unintuitive results. This is because Euclidean distance is very sensitive to some distortions in the data. For most problems these distortions are not meaningful, and thus we can and should remove them. In the next 4 slides I will discuss the 4 most common distortions, and how to remove them. Offset Translation Amplitude Scaling Linear Trend Noise

Transformation I: Offset Translation Q = Q - mean(Q) C = C - mean(C) D(Q,C)

Transformation II: Amplitude Scaling Q = (Q - mean(Q)) / std(Q) C = (C - mean(C)) / std(C) D(Q,C)

Transformation III: Linear Trend After offset translation And amplitude scaling Removed linear trend The intuition behind removing linear trend is this. Fit the best fitting straight line to the time series, then subtract that line from the time series.

Transformation IIII: Noise Q = smooth(Q) C = smooth(C) D(Q,C) The intuition behind removing noise is this. Average each datapoints value with its neighbors.

A Quick Experiment to Demonstrate the Utility of Preprocessing the Data Clustered using Euclidean distance on the raw data Clustered using Euclidean distance on the raw data, after removing noise, linear trend, offset translation and amplitude scaling.

Summary of Preprocessing The “raw” time series may have distortions which we should remove before clustering, classification etc. Of course, sometimes the distortions are the most interesting thing about the data, the above is only a general rule. We should keep in mind these problems as we consider the high level representations of time series which we will encounter later (Fourier transforms, Wavelets etc). Since these representations often allow us to handle distortions in elegant ways.

Fixed Time Axis Sequences are aligned “one to one”. “ Warped” Time Axis Nonlinear alignments are possible. Dynamic Time Warping Note: We will first see the utility of DTW, then see how it is calculated.

Utility of Dynamic Time Warping: Example II, Data Mining Power-Demand Time Series. Each sequence corresponds to a week’s demand for power in a Dutch research facility in 1997 [van Selow 1999]. Monday Tuesday Wednesday Thursday Friday Saturday Sunday Wednesday was a national holiday

Hierarchical clustering with Euclidean Distance. The two 5-day weeks are correctly grouped. Note however, that the three 4-day weeks are not clustered together. Also, the two 3-day weeks are also not clustered together.

Hierarchical clustering with Dynamic Time Warping The two 5-day weeks are correctly grouped. The three 4-day weeks are clustered together. The two 3-day weeks are also clustered together.

Dynamic Time-Warping (how does it work?) The intuition is that we copy an element multiple times so as to achieve a better matching Euclidean distance: d = 1 T1 = [1, 1, 2, 2] | | | | T2 = [1, 2, 2, 2] Warping distance: d = 0 T1 = [1, 1, 2, 2] | | | T2 = [1, 2, 2, 2]

Computing the Dynamic Time Warp Distance I |n||n| |p||p| Note that the input sequences can be of different lengths Q C

Computing the Dynamic Time Warp Distance II |n||n| |p||p| Q C Every possible mapping from Q to C can be represented as a warping path in the search matrix. We simply want to find the cheapest one… Although there are exponentially many such paths, we can find one in only quadratic time using dynamic programming.

Time taken to create hierarchical clustering of power-demand time series Time taken to create hierarchical clustering of power-demand time series. Time to create dendrogram using Euclidean Distance 1.2 seconds Time to create dendrogram using Dynamic Time Warping 3.40 hours How to speed it up. Approach 1: Complexity is O(n 2 ). We can reduce it to O(n) simply by restricting the warping path. Approach 2: Approximate the time series with some compressed or downsampled representation, and do DTW on the new representation. Complexity of Time Warping

Fast Approximations to Dynamic Time Warp Distance II.. strong visual evidence to suggests it works well. Good experimental evidence the utility of the approach on clustering, classification and query by content problems also has been demonstrated. 1.3 sec 22.7 sec

Weighted Distance Measures I Weighting features is a well known technique in the machine learning community to improve classification and the quality of clustering. Intuition: For some queries different parts of the sequence are more important.

Note: In this example we are using a piecewise linear approximation of the data. We will learn more about this representation later. Relevance Feedback for Time Series The original query The weigh vector. Initially, all weighs are the same.

One by one the 5 best matching sequences will appear, and the user will rank them from between very bad (-3) to very good (+3) The initial query is executed, and the five best matches are shown (in the dendrogram)

Based on the user feedback, both the shape and the weigh vector of the query are changed. The new query can be executed. The hope is that the query shape and weights will converge to the optimal query. Two paper consider relevance feedback for time series. L Wu, C Faloutsos, K Sycara, T. Payne: FALCON: Feedback Adaptive Loop for Content-Based Retrieval. VLDB 2000:

Motivating Example Revisited... You go to the doctor because of chest pains. Your ECG looks strange… You doctor wants to search a database to find similar ECGS, in the hope that they will offer clues about your condition... Two questions: How do we define similar? How do we search quickly?

Indexing Time Series We have seen techniques for assessing the similarity of two time series. However we have not addressed the problem of finding the best match to a query in a large database... We need someway to index the data... A topics extensively discussed in topical literature that we will not discuss here for lack of time—also it might not be applicable to data streams Query Q Find shapes like this In this DB

Compression – Dimensionality Reduction Project all sequences into a new space, and search this space instead.

C An Example of a Dimensionality Reduction Technique … Raw Data The graphic shows a time series with 128 points. The raw data used to produce the graphic is also reproduced as a column of numbers (just the first 30 or so points are shown). n = 128

C Dimensionality Reduction (cont.) Fourier Coefficients … Raw Data We can decompose the data into 64 pure sine waves using the Discrete Fourier Transform (just the first few sine waves are shown). The Fourier Coefficients are reproduced as a column of numbers (just the first 30 or so coefficients are shown). Note that at this stage we have not done dimensionality reduction, we have merely changed the representation...

C An Example of a Dimensionality Reduction Technique III Truncated Fourier Coefficients C’ We have discarded of the data Fourier Coefficients … Raw Data … however, note that the first few sine waves tend to be the largest (equivalently, the magnitude of the Fourier coefficients tend to decrease as you move down the column). We can therefore truncate most of the small coefficients with little effect. n = 128 N = 8 C ratio = 1/16

C An Example of a Dimensionality Reduction Technique IIII Sorted Truncated Fourier Coefficients C’ Fourier Coefficients … Raw Data Instead of taking the first few coefficients, we could take the best coefficients This can help greatly in terms of approximation quality, but makes indexing hard (impossible?). Note this applies also to Wavelets

Keogh, Chakrabarti, Pazzani & Mehrotra KAIS 2000 Yi & Faloutsos VLDB 2000 Keogh, Chakrabarti, Pazzani & Mehrotra SIGMOD 2001 Agrawal, Faloutsos, &. Swami. FODO 1993 Faloutsos, Ranganathan, & Manolopoulos. SIGMOD 1994 Compressed Representations

Jean Fourier X X' Discrete Fourier Transform I Excellent free Fourier Primer Hagit Shatkay, The Fourier Transform - a Primer'', Technical Report CS , Department of Computer Science, Brown University, Basic Idea: Represent the time series as a linear combination of sines and cosines, but keep only the first n/2 coefficients. Why n/2 coefficients? Because each sine wave requires 2 numbers, for the phase (w) and amplitude (A,B).

Discrete Fourier Transform II Pros and Cons of DFT as a time series representation. Good ability to compress most natural signals. Fast, off the shelf DFT algorithms exist. O(nlog(n)). (Weakly) able to support time warped queries. Difficult to deal with sequences of different lengths. Cannot support weighted distance measures X X' Note: The related transform DCT, uses only cosine basis functions. It does not seem to offer any particular advantages over DFT.

Haar 0 Haar 1 Haar 2 Haar 3 Haar 4 Haar 5 Haar 6 Haar 7 X X' DWT Discrete Wavelet Transform I Alfred Haar Excellent free Wavelets Primer Stollnitz, E., DeRose, T., & Salesin, D. (1995). Wavelets for computer graphics A primer: IEEE Computer Graphics and Applications. Basic Idea: Represent the time series as a linear combination of Wavelet basis functions, but keep only the first N coefficients. Although there are many different types of wavelets, researchers in time series mining/indexing generally use Haar wavelets. Haar wavelets seem to be as powerful as the other wavelets for most problems and are very easy to code.

X = {8, 4, 1, 3} h 1 = 4 = mean(8,4,1,3) h 2 = 2 = mean(8,4) - h 1 h 3 = 2 = (8-4)/2 h 4 = -1 = (1-3)/2 h 1 = h 2 = 2 h 3 = 2 h 4 = -1 X = {8, 4, 1, 3} I have converted a raw time series X = {8, 4, 1, 3}, into the Haar Wavelet representation H = [4, 2, 2, 1] We can covert the Haar representation back to raw signal with no loss of information...

Haar 0 Haar 1 Haar 2 Haar 3 Haar 4 Haar 5 Haar 6 Haar 7 X X' DWT Discrete Wavelet Transform III Pros and Cons of Wavelets as a time series representation. Good ability to compress stationary signals. Fast linear time algorithms for DWT exist. Able to support some interesting non-Euclidean similarity measures. Works best if N is = 2 some_integer. Otherwise wavelets approximate the left side of signal at the expense of the right side. Cannot support weighted distance measures. Open Question: We have only considered one type of wavelet, there are many others. Are the other wavelets better for indexing? YES: I. Popivanov, R. Miller. Similarity Search Over Time Series Data Using Wavelets. ICDE NO: K. Chan and A. Fu. Efficient Time Series Matching by Wavelets. ICDE 1999 Obviously, this question still open...

X X' eigenwave 0 eigenwave 1 eigenwave 2 eigenwave 3 eigenwave 4 eigenwave 5 eigenwave 6 eigenwave 7 SVD Singular Value Decomposition Eugenio Beltrami Camille Jordan ( ) James Joseph Sylvester Basic Idea: Represent the time series as a linear combination of eigenwaves but keep only the first N coefficients. SVD is similar to Fourier and Wavelet approaches is that we represent the data in terms of a linear combination of shapes (in this case eigenwaves). SVD differs in that the eigenwaves are data dependent. SVD has been successfully used in the text processing community (where it is known as Latent Symantec Indexing ) for many years—but it is computationally expensive Good free SVD Primer Singular Value Decomposition - A Primer. Sonia Leach

X X' eigenwave 0 eigenwave 1 eigenwave 2 eigenwave 3 eigenwave 4 eigenwave 5 eigenwave 6 eigenwave 7 SVD Singular Value Decomposition (cont.) How do we create the eigenwaves? We have previously seen that we can regard time series as points in high dimensional space. We can rotate the axes such that axis 1 is aligned with the direction of maximum variance, axis 2 is aligned with the direction of maximum variance orthogonal to axis 1 etc. Since the first few eigenwaves contain most of the variance of the signal, the rest can be truncated with little loss.

X X' Piecewise Linear Approximation I Basic Idea: Represent the time series as a sequence of straight lines. Lines could be connected, in which case we are allowed N/2 lines If lines are disconnected, we are allowed only N/3 lines Personal experience on dozens of datasets suggest disconnected is better. Also only disconnected allows a lower bounding Euclidean approximation Each line segment has length left_height ( right_height can be inferred by looking at the next segment) Each line segment has length left_height right_height Karl Friedrich Gauss

X X' Piecewise Linear Approximation II How do we obtain the Piecewise Linear Approximation? Optimal Solution is O(n 2 N), which is too slow for data mining. A vast body on work on faster heuristic solutions to the problem can be classified into the following classes-- C Ratio denotes the compression ratio: Top-Down O(n 2 N) Bottom-Up O(n/ C Ratio ) Sliding Window O(n/ C Ratio ) Other (genetic algorithms, randomized algorithms, Bspline wavelets, MDL etc) Recent extensive empirical evaluation of all approaches suggest that Bottom-Up is the best approach overall.

X X' Piecewise Linear Approximation III Pros and Cons of PLA as a time series representation. Good ability to compress natural signals. Fast linear time algorithms for PLA exist. Able to support some interesting non-Euclidean similarity measures. Including weighted measures, relevance feedback, fuzzy queries… Already widely accepted in some communities (ie, biomedical) Not (currently) indexable by any data structure (but does allows fast sequential scanning).

X X' C U U C D C U D C U C D C U D U Symbolic Approximation Key: C = Constant U = Up D = Down Basic Idea: Convert the time series into an alphabet of discrete symbols. Use string indexing techniques to manage the data. Potentially an interesting idea, but all the papers thusfar are very ad hoc. Pros and Cons of Symbolic Approximation as a time series representation. Potentially, we could take advantage of a wealth of techniques from the very mature field of string processing. There is no known technique to allow the support of Euclidean queries. It is not clear how we should discretize the times series (discretize the values, the slope, shapes? How big of an alphabet? etc)

Piecewise Aggregate Approximation I X X' x1x1 x2x2 x3x3 x4x4 x5x5 x6x6 x7x7 x8x8 Given the reduced dimensionality representation we can calculate the approximate Euclidean distance as... Basic Idea: Represent the time series as a sequence of box basis functions. Note that each box is the same length. Independently introduced by two authors Keogh, Chakrabarti, Pazzani & Mehrotra, KAIS (2000) Byoung-Kee Yi, Christos Faloutsos, VLDB (2000)

Piecewise Aggregate Approximation II X X' X1X1 X2X2 X3X3 X4X4 X5X5 X6X6 X7X7 X8X8 Extremely fast to calculate As efficient as other approaches (empirically) Support queries of arbitrary lengths Can support any Minkowski metric Supports non Euclidean measures Supports weighted Euclidean distance Simple! Intuitive! If visualized directly, looks ascetically unpleasing. Pros and Cons of PAA as a time series representation.

Adaptive Piecewise Constant Approximation I X X Basic Idea: Generalize PAA to allow the piecewise constant segments to have arbitrary lengths. Note that we now need 2 coefficients to represent each segment, its value and its length Raw Data (Electrocardiogram) Adaptive Representation (APCA) Reconstruction Error 2.61 Haar Wavelet Reconstruction Error 3.27 DFT Reconstruction Error 3.11 The intuition is this, many signals have little detail in some places, and high detail in other places. APCA can adaptively fit itself to the data achieving better approximation.

Adaptive Piecewise Constant Approximation II X X The high quality of the APCA had been noted by many researchers. However it was believed that the representation could not be indexed because some coefficients represent values, and some represent lengths. However an indexing method was discovered! (SIGMOD 2001 best paper award) Unfortunately, it is non-trivial to understand and implement….

Adaptive Piecewise Constant Approximation X X Pros and Cons of APCA as a time series representation.Pros and Cons of APCA as a time series representation. Fast to calculate O(n). More efficient as other approaches (on some datasets). Support queries of arbitrary lengths. Supports non Euclidean measures. Supports weighted Euclidean distance. Support fast exact queries, and even faster approximate queries on the same data structure. Somewhat complex implementation. If visualized directly, looks ascetically unpleasing.

Conclusion This is just an introduction, with many unavoidable omissions: There are dozens of papers that offer new distance measures. Hidden Markov models do have a sound basis, but don’t scale well. Time series analysis remains a hot area of research and the most recent papers have not been discussed here.