The Lernaean Hydra of Data Series Similarity Search: An Experimental Evaluation of the State of the Art

Karima Echihabi, Kostas Zoumpatianos, Themis Palpanas, Houda Benbrahim · DOI

TL;DR

This paper tackles the challenge of efficiently searching for similar data series in massive collections by providing the first comprehensive experimental evaluation of existing similarity search techniques. By standardizing terminology, reimplementing and optimizing algorithms, and conducting rigorous experiments on diverse datasets, the authors offer crucial insights into the strengths and weaknesses of various methods, guiding future research and practical applications.

What Problem Does This Paper Address?

In today's data-rich world, collections of data series (like time series, sensor readings, or financial data) are growing exponentially across numerous domains. A fundamental operation for analyzing these collections is similarity search: finding data series that are "close" to a given query series. While many algorithms have been proposed over the past two decades, there's a significant lack of comparative studies. This has led to confusion due to inconsistent terminology and a lack of clear understanding of which method performs best under different conditions. This paper aims to bridge this gap by providing a systematic, experimental evaluation of the state-of-the-art in data series similarity search, focusing on exact whole-matching queries.

Methods

The authors' approach is multi-faceted:

  • Standardized Terminology: They begin by formally defining various flavors of similarity search (e.g., k-NN, r-range, whole matching, subsequence matching) to establish a common language.
  • Algorithm Re-implementation and Optimization: To ensure a fair comparison, they reimplemented numerous existing algorithms in C/C++ (often from other languages like Java or C#) and applied consistent optimizations to their codebases, focusing on memory management and efficient distance calculations.
  • Comprehensive Experimental Framework: They designed a rigorous evaluation using a combination of synthetic and real-world datasets, carefully crafted query workloads of varying difficulty, and multiple hardware configurations (HDD and SSD).
  • Focus on Exact Whole Matching: The study specifically targets exact whole-matching similarity search, which is a common and fundamental use case.

Datasets

The paper utilizes a mix of synthetic and real-world datasets:

  • Synthetic Datasets: Generated using a random-walk process, intended to model stock market prices.
  • Real-World Datasets:
    • Seismic: From the IRIS Seismic Data Access archive, containing seismic instrument recordings.
  • Astro: Representing celestial objects.
  • SALD: Representing MRI data from neuroscience.
  • Deep1B: Extracted from a convolutional neural network for image processing.

The paper also makes all source codes, datasets, and query workloads publicly available to ensure reproducibility and establish a benchmark.

Key Insights and Ideas

  • The "Lernaean Hydra" Analogy: The title itself suggests the complexity and multifaceted nature of data series similarity search, with many different approaches and variations, much like the mythical Lernaean Hydra.
  • Implementation Matters: The authors emphasize that the choice of implementation language and optimization efforts can significantly impact performance, often more than theoretical differences between algorithms. Their C/C++ reimplementations generally outperformed original implementations.
  • Hardware is Crucial: The performance of algorithms can drastically change depending on the underlying hardware (HDD vs. SSD). Methods that rely heavily on random disk access (like ADS+) perform much better on SSDs, while sequential scan methods can be hindered by slow disk throughput on HDDs.
  • No Single Best Algorithm: The study reveals that there is no universal "best" algorithm. The optimal choice depends heavily on factors like dataset size, data series length, query workload characteristics (number of queries, difficulty), and hardware.
  • Summarization Quality vs. Time: While summarization techniques (like PAA, SAX, SFA, DFT) are key to efficient indexing, the quality of the summarization (e.g., tightness of lower bounds, pruning ratio) doesn't always directly correlate with execution time. Other factors like index structure and access patterns are equally important.

Key Results

  • Performance Trade-offs: Algorithms like ADS+ excel at indexing but can be slower for query answering, while DSTree is fast at querying but slower to index. VA+file and iSAX2+ show strong performance, especially for in-memory datasets and with SSDs.
  • Scalability: The paper provides detailed scalability analysis, showing how different methods perform as dataset size and data series length increase. Methods like M-tree and R*-tree struggle to scale to large datasets.
  • Disk Access Patterns: The number of sequential and random disk accesses is a critical indicator of performance. VA+file and ADS+ generally incur fewer random accesses, especially on SSDs.
  • Recommendations: The authors provide a decision matrix (Figure 10) to guide users in selecting the best method based on dataset characteristics (size, length), hardware, and query workload. For example, VA+file is recommended for in-memory long series, while DSTree is favored for disk-resident long series.

Limitations and Future Work

  • Focus on Exact Whole Matching: The study primarily focuses on exact whole-matching queries. The authors acknowledge that extending this evaluation to approximate methods, r-range queries, and subsequence matching is a crucial area for future work.
  • Parameter Tuning: The paper highlights the significant impact of parameter tuning (e.g., leaf size, buffer size, alphabet size) on algorithm performance, noting that optimal parameters often differ from those reported in original papers.
  • Hardware Specificity: While the study compares HDD and SSD, further investigation into other hardware configurations and their impact on algorithm performance would be beneficial.
  • Future Work: The authors plan to conduct experimental comparisons of approximate methods, r-range queries, and sub-sequence matching. They also suggest exploring optimization opportunities for algorithms like Stepwise and DSTree through parallelism and modern hardware exploitation.

Summary updated

BibTeX
@article{echihabi2018lernaean,
  author = {Karima Echihabi and Kostas Zoumpatianos and Themis Palpanas and Houda Benbrahim},
  title = {{The Lernaean Hydra of Data Series Similarity Search: An Experimental Evaluation of the State of the Art}},
  journal = {Proc. VLDB Endow.},
  year = {2018},
  doi = {10.14778/3282495.3282498},
}
Figure