Clustering Trend Data Time-Series through Segmentation of FFT-decomposed Signal Constituents

Daniyal Kazempour, Anna Beer, Oliver Schrüfer, Thomas Seidl

Abstract

Time-series clustering often relies on coarse global models that fail to capture nuanced periodic behaviors. This paper presents a method for clustering time-series by decomposing signals into their periodic constituents using Fast Fourier Transforms (FFT). By extracting dominant sine waves and applying novel distance metrics—including phase-shift and amplitude-weighted measures—the approach identifies hidden semantic similarities in seasonal and high-frequency data. Evaluation on Google Trends datasets demonstrates superior logical grouping compared to traditional regression-based methods.

Introduction

Time-series clustering is vital across diverse domains, yet standard techniques frequently use reductive representations like single regression models or simple correlations. These "blunt instruments" often miss critical periodic influences. For instance, search terms like "fitness" and "healthy eating" may differ in overall volume but share a distinct "New Year’s resolution" spike. Traditional methods might group unrelated annual events simply because they share a frequency, ignoring the specific timing (phase) of peaks. This research addresses the need for a more granular comparison based on the underlying periodic "DNA" of signals.

Methods

The proposed framework deconstructs time-series into constituent signals. First, the Fast Fourier Transform (FFT) converts the signal from the time domain to the frequency domain. From this, the top $k$ strongest constituents (sine waves) are extracted, characterized by amplitude, frequency, phase-shift, and vertical shift.

Decomposition of a time-series signal into its constituent periodic components.

To cluster these constituents, three distance metrics were developed:

  1. MinCT-dist: Links series sharing at least one common periodic influence.
  2. Phase-shift distance: Compares alignment across common frequency intervals.
  3. Normalized amplitude-weighted phase-shift distance: Weights phase differences by the product of their amplitudes, ensuring dominant periodicities (like major seasonal spikes) are prioritized while still allowing for fine-grained comparison of smaller fluctuations.

Results and Discussion

The method was evaluated using Google Trends data, including a 10-keyword seasonal dataset (e.g., "turkey," "fireworks") and a 16-keyword high-frequency dataset. The constituent-based approach showed significant qualitative improvements over regression models. For example, it successfully clustered "fireworks" with "sunburn" (summer peaks) and "fitness" with "healthy eating" (January peaks), whereas standard regression often produced nonsensical groupings.

Hierarchical clustering results showing semantic groupings of search terms based on constituent distances.

In high-frequency data, the weighted phase-shift metric revealed intuitive clusters like "Weather" and "Outdoor Pool," or "Sunburn" and "Beer Garden." These results underscore that the phase-shift (the timing of the peak) is often more semantically informative than raw amplitude for understanding human behavior patterns.

Conclusion

While promising, this work-in-progress requires further automation for parameter selection (specifically $k$) and optimization for computational efficiency when handling large tensors. Future validation across other domains, such as finance or sensor networks, will be essential to establish the broader utility of constituent-based clustering.

Summary updated

BibTeX
@inproceedings{kazempour2019clustering,
  author = {Daniyal Kazempour and Anna Beer and Oliver Schrüfer and Thomas Seidl},
  title = {{Clustering Trend Data Time-Series through Segmentation of FFT-decomposed Signal Constituents}},
  booktitle = {LWDA},
  year = {2019},
}
Figure