TY - JOUR
T1 - BestNeighbor
T2 - efficient evaluation of kNN queries on large time series databases
AU - Levchenko, Oleksandra
AU - Kolev, Boyan
AU - Yagoubi, Djamel Edine
AU - Akbarinia, Reza
AU - Masseglia, Florent
AU - Palpanas, Themis
AU - Shasha, Dennis
AU - Valduriez, Patrick
N1 - Publisher Copyright:
© 2020, Springer-Verlag London Ltd., part of Springer Nature.
PY - 2021/2
Y1 - 2021/2
N2 - This paper presents parallel solutions (developed based on two state-of-the-art algorithms iSAX and sketch) for evaluating k nearest neighbor queries on large databases of time series, compares them based on various measures of quality and time performance, and offers a tool that uses the characteristics of application data to determine which algorithm to choose for that application and how to set the parameters for that algorithm. Specifically, our experiments show that: (i) iSAX and its derivatives perform best in both time and quality when the time series can be characterized by a few low-frequency Fourier Coefficients, a regime where the iSAX pruning approach works well. (ii) iSAX performs significantly less well when high-frequency Fourier Coefficients have much of the energy of the time series. (iii) A random projection approach based on sketches by contrast is more or less independent of the frequency power spectrum. The experiments show the close relationship between pruning ratio and time for exact iSAX as well as between pruning ratio and the quality of approximate iSAX. Our toolkit analyzes typical time series of an application (i) to determine optimal segment sizes for iSAX and (ii) when to use Parallel Sketches instead of iSAX. Our algorithms have been implemented using Spark, evaluated over a cluster of nodes, and have been applied to both real and synthetic data. The results apply to any databases of numerical sequences, whether or not they relate to time.
AB - This paper presents parallel solutions (developed based on two state-of-the-art algorithms iSAX and sketch) for evaluating k nearest neighbor queries on large databases of time series, compares them based on various measures of quality and time performance, and offers a tool that uses the characteristics of application data to determine which algorithm to choose for that application and how to set the parameters for that algorithm. Specifically, our experiments show that: (i) iSAX and its derivatives perform best in both time and quality when the time series can be characterized by a few low-frequency Fourier Coefficients, a regime where the iSAX pruning approach works well. (ii) iSAX performs significantly less well when high-frequency Fourier Coefficients have much of the energy of the time series. (iii) A random projection approach based on sketches by contrast is more or less independent of the frequency power spectrum. The experiments show the close relationship between pruning ratio and time for exact iSAX as well as between pruning ratio and the quality of approximate iSAX. Our toolkit analyzes typical time series of an application (i) to determine optimal segment sizes for iSAX and (ii) when to use Parallel Sketches instead of iSAX. Our algorithms have been implemented using Spark, evaluated over a cluster of nodes, and have been applied to both real and synthetic data. The results apply to any databases of numerical sequences, whether or not they relate to time.
KW - Distributed querying
KW - Filtering
KW - Fourier coefficients
KW - Frequency analysis
KW - Parallel indexing
KW - Time series
UR - http://www.scopus.com/inward/record.url?scp=85096061259&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85096061259&partnerID=8YFLogxK
U2 - 10.1007/s10115-020-01518-4
DO - 10.1007/s10115-020-01518-4
M3 - Article
AN - SCOPUS:85096061259
SN - 0219-1377
VL - 63
SP - 349
EP - 378
JO - Knowledge and Information Systems
JF - Knowledge and Information Systems
IS - 2
ER -