Towards Explainable Deep Clustering for Time Series Data

Udo Schlegel, Gabriel Marques Tavares, Thomas SeidlarXiv 2025 · DOI

Introduction

Deep clustering has emerged as a powerful technique for uncovering hidden patterns in complex, high-dimensional time series data. By combining the representative power of deep learning architectures—such as Autoencoders, Recurrent Neural Networks (RNNs), and Transformers—with traditional clustering objectives, researchers can group data that is otherwise too noisy or complex for manual analysis. However, these models often operate as "black boxes," providing little insight into why a particular data point was assigned to a specific cluster. In high-stakes domains like healthcare and finance, this lack of transparency is a significant barrier to adoption. This paper surveys the landscape of Explainable Deep Clustering (XDC) for time series, offering a roadmap toward more trustworthy and interpretable systems.

The Challenge of Unsupervised Explainability

Clustering is inherently difficult to explain because it is unsupervised; there are no ground-truth labels to validate the model's logic. In time series analysis, this challenge is compounded by two primary factors:

  1. Data Complexity: Time series data is high-dimensional and often non-intuitive in its raw form.
  2. The Unsupervised Gap: Defining a "good" explanation is mathematically challenging when the target clusters themselves are discovered by the model rather than predefined by humans.

A Taxonomy of Explainable Deep Clustering

The current research landscape can be categorized into a three-stage taxonomy based on when and how explainability is integrated into the clustering pipeline:

1. Pre-clustering Explainability

This approach focuses on transforming raw data into interpretable features before clustering begins. By using domain-specific features like frequency spectra or "shapelets" (small, representative snippets of a waveform), the resulting clusters are inherently linked to understandable physical phenomena.

2. In-clustering (Intrinsic) Explainability

Intrinsic models are designed to be interpretable by their very architecture. Key examples include:

  • Attention Mechanisms: These models use weights to highlight specific time steps or sensors that drive clustering decisions (e.g., DeTSEC).
  • Self-Organizing Maps (SOMs): By mapping high-dimensional data onto a 2D grid, SOM-based models like SOM-VAE allow users to visually navigate relationships between clusters and observe "patient trajectories" over time.

3. Post-hoc Explainability

Post-hoc methods apply a secondary "explainer" model to a pre-trained black-box cluster. Techniques like SHAP or LIME identify feature importance, while frameworks like CLAMP might train a simple decision tree to mimic the complex model's logic.

Summary of representative explainable deep clustering methods for time series data.

Key Insights and Domain Success

The survey reveals that while deep clustering is advancing, interpretability is often treated as an afterthought. A significant debate exists regarding attention mechanisms; while popular, high attention weights do not always correlate with the actual causal reasons for a cluster assignment.

Despite these challenges, XDC has seen significant success in healthcare, particularly in "phenotype discovery." For instance, interpretable clusters have helped clinicians identify new subtypes of diseases by analyzing ICU vital signs and EEG recordings. The tension between model performance and interpretability remains a persistent theme, as simpler models like those based on shapelets are highly readable but may miss the subtle nuances captured by deep Transformers.

Future Directions: A Roadmap to Trustworthy AI

The authors identify six critical opportunities for future research to bridge the gap between performance and transparency:

  • Intrinsic Interpretability: Moving beyond post-hoc explanations toward models that are transparent by design.
  • Faithfulness Metrics: Developing objective ways to measure how well an explanation reflects a model's internal logic.
  • Scalability: Adapting explainers to handle live data streams and massive datasets.
  • Domain-Specific Semantics: Tailoring explanations to the language of experts (e.g., medical or financial terminology).
  • Human-in-the-Loop: Integrating human feedback to refine and validate discovered patterns.
  • Mechanistic Interpretability: Understanding the role of individual neurons within the deep network.

Ultimately, the goal is to move toward "trustworthy-by-design" systems where AI-discovered patterns are both actionable and scientifically sound for human experts.

Summary updated

BibTeX
@misc{schlegel2025towards,
  author = {Udo Schlegel and Gabriel Marques Tavares and Thomas Seidl},
  title = {{Towards Explainable Deep Clustering for Time Series Data}},
  year = {2025},
  eprint = {2507.20840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20840},
}
Figure