Skip to main content
QUICK REVIEW

[Paper Review] Efficient Retrieval of Similar Time Sequences Using DFT

Davood Rafiei, Alberto O. Mendelzon|ArXiv.org|Sep 18, 1998
Time Series Analysis and ForecastingComputer Science13 references113 citations
TL;DR

This paper proposes accelerating similarity retrieval in time series databases by leveraging the symmetry of Discrete Fourier Transform (DFT) coefficients: since the last few coefficients are complex conjugates of the first few and carry equivalent energy, they can be used in distance computation without storage in the index. This reduces search time by over 50%, with experiments confirming 61–77% performance gains on real and synthetic data.

ABSTRACT

We propose an improvement of the known DFT-based indexing technique for fast retrieval of similar time sequences. We use the last few Fourier coefficients in the distance computation without storing them in the index since every coefficient at the end is the complex conjugate of a coefficient at the beginning and as strong as its counterpart. We show analytically that this observation can accelerate the search time of the index by more than a factor of two. This result was confirmed by our experiments, which were carried out on real stock prices and synthetic data.

Motivation & Objective

  • Address the performance bottleneck in similarity retrieval for large time series databases.
  • Improve upon existing DFT-based indexing methods that only use the first few Fourier coefficients.
  • Leverage the inherent symmetry of DFT coefficients to eliminate redundant computation without sacrificing accuracy.
  • Demonstrate that using both first and last coefficients in distance computation accelerates search while maintaining correctness.
  • Provide analytical and empirical validation of performance gains across diverse data workloads.

Proposed method

  • Exploit the mathematical property that for real-valued time series, the DFT coefficient at index f is the complex conjugate of the coefficient at index n−f, and both have equal magnitude.
  • Use the last few DFT coefficients in distance computation, even though they are not stored in the index, due to their symmetry and equal energy contribution.
  • Compute the Euclidean distance between time series in the frequency domain using both the first k and last k coefficients, relying on Parseval’s theorem to preserve distance equivalence.
  • Apply the symmetry property to reduce the number of distance computations needed during query processing, effectively halving the computational load.
  • Integrate the method into existing DFT-based indexing structures (e.g., R-trees) without modifying index storage, only query logic.
  • Use the maximum amplitude of the first non-zero DFT coefficient as a normalization factor to standardize thresholds across sequences.

Experimental results

Research questions

  • RQ1Can the symmetry of DFT coefficients be exploited to reduce search time in similarity retrieval without increasing index storage?
  • RQ2To what extent does using both the first and last DFT coefficients improve query performance compared to using only the first coefficients?
  • RQ3How does the performance gain vary with different query thresholds and data characteristics?
  • RQ4Does the theoretical speedup predicted by symmetry analysis hold under real-world workloads with real stock prices and synthetic data?
  • RQ5How do the performance improvements scale with varying numbers of sequences, sequence lengths, and number of DFT coefficients?

Key findings

  • The proposed method reduces search time by 61–77% across all experimental workloads, with the highest gains observed in range and all-pair queries.
  • For a threshold of 0.5×MaxAmp, query selectivity was reduced by 53–64%, and search time by 70–74%, confirming the analytical prediction of over 50% speedup.
  • On stock price data with 1067 sequences of length 128, the method achieved a 66–72% reduction in search time for range queries when using 2 DFT coefficients.
  • With sequence length increased to 512, the method reduced range query time by 73–77%, exceeding the analytical estimate due to reduced CPU time in distance computation.
  • The performance improvement is robust across varying numbers of sequences (100 to 1067) and DFT coefficient counts (1 to 4), consistently yielding 60–70% speedup.
  • The method maintains correctness because the energy and Euclidean distance are preserved under DFT due to Parseval’s theorem, ensuring no false negatives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.