NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Interpretable Spectral Variational AutoEncoder (ISVAE) for time series clustering

Óscar Jiménez Rama, Fernando Moreno-Pino, David Ramírez, Pablo M. OlmosarXiv 2023

Abstract

The best encoding is the one that is interpretable in nature. In this work, we introduce a novel model that incorporates an interpretable bottleneck-termed the Filter Bank (FB)-at the outset of a Variational Autoencoder (VAE). This arrangement compels the VAE to attend on the most informative segments of the input signal, fostering the learning of a novel encoding ${f_0}$ which boasts enhanced interpretability and clusterability over traditional latent spaces. By deliberately constraining the VAE with this FB, we intentionally constrict its capacity to access broad input domain information, promoting the development of an encoding that is discernible, separable, and of reduced dimensionality. The evolutionary learning trajectory of ${f_0}$ further manifests as a dynamic hierarchical tree, offering profound insights into cluster similarities. Additionally, for handling intricate data configurations, we propose a tailored decoder structure that is symmetrically aligned with FB's architecture. Empirical evaluations highlight the superior efficacy of ISVAE, which compares favorably to state-of-the-art results in clustering metrics across real-world datasets.

Introduction

Time series clustering is essential for fields like finance, healthcare, and climate science, but it faces two major hurdles: high dimensionality and the "black box" nature of deep learning. Standard approaches often use Variational AutoEncoders (VAEs) to compress signals into a low-dimensional latent space ($z$). While effective at capturing patterns, these latent spaces are usually uninterpretable—a researcher can't easily look at a latent vector and understand which physical characteristics of the signal caused the grouping. Furthermore, the processes of learning embeddings and performing clustering are often decoupled, leading to sub-optimal results. The Interpretable Spectral Variational AutoEncoder (ISVAE) aims to bridge this gap by creating a model where the architecture itself is aligned with the goal of interpretable, signal-based clustering.

Methodology

The core innovation of ISVAE is the Filter Bank (FB), which acts as an interpretable bottleneck at the very beginning of the VAE pipeline.

High-level architecture of the ISVAE model featuring the Filter Bank bottleneck.

Spectral Transformation and Filter Bank

Instead of raw time-domain samples, the model operates on the Discrete Cosine Transform (DCT) of the signal. The input passes through a bank of $L$ Gaussian spectral filters. Each filter has a learnable central frequency ($f_0$).

Detailed architecture of the Filter Bank (FB) bottleneck showing the sequential attention mechanism.

Crucially, these filters are learned via a sequential attention mechanism. Each successive branch in the FB "removes" the influence of previous filters, forcing the model to discover diverse and non-redundant frequency bands. The VAE core only receives the filtered representation ($f_0$), which compels the Filter Bank to identify the most informative spectral segments necessary for reconstruction.

Decoder Architectures

The authors propose two decoder architectures to handle varying data complexity:

  • Vanilla Decoder: A standard dense network, suitable for simpler datasets.
  • Attentive Decoder: A symmetrical structure that utilizes a global "averaged periodogram" of the dataset to assist in reconstructing signals in complex, noisy environments.

Results and Discussion

The model was evaluated on a mix of synthetic and real-world benchmarks, including Human Activity Recognition (HAR) and Social Distancing Alert (SoDA) datasets. ISVAE consistently outperformed baselines, including standard VAEs and K-means applied to raw Time/DCT data. On the Supervised HAR dataset, ISVAE achieved a V-score of ~0.81-0.83, significantly higher than the standard Vanilla VAE (~0.60). Furthermore, an "Extended Configuration" augmenting $f_0$ with band energy further improved performance without increasing training time.

Interpretability and Latent Space

A key finding is that the $f_0$ (frequency) space is significantly more "clusterable"—more spherical and better separated—than the traditional $z$ latent space. During training, the way filters allocate themselves to different classes resembles a dynamic hierarchical tree. The model first identifies broad global frequencies shared by many groups and then progressively "branches out" to find local frequencies that distinguish specific activities. This allows for a natural balance between learning general characteristics and unique signal signatures without explicit supervision.

Conclusion

The ISVAE introduces a novel "Filter Bank" bottleneck that forces a VAE to learn time series clusters based on specific, human-readable frequency bands. By operating in the spectral domain and using an unsupervised attention mechanism, it creates a highly discriminative feature space that outperforms traditional deep clustering methods. Future work will focus on extending the model to handle multi-dimensional sensor fusion and automating hyperparameter selection for filter counts and bandwidths.

Summary updated

BibTeX
@misc{rama2023interpretable,
  author = {Óscar Jiménez Rama and Fernando Moreno-Pino and David Ramírez and Pablo M. Olmos},
  title = {{Interpretable Spectral Variational AutoEncoder (ISVAE) for time series clustering}},
  year = {2023},
  eprint = {2310.11940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11940},
}
Figure