Learning Representations for Incomplete Time Series Clustering

Qianli Ma, Chuxin Chen, Sen Li, Garrison W. Cottrell

Abstract

Real-world time-series data frequently suffers from missing values, complicating downstream tasks like clustering. Traditional approaches employ a two-stage "impute-then-cluster" strategy, which often leads to sub-optimal results as the imputation process is decoupled from the clustering objective. We present CRLI (Clustering Representation Learning on Incomplete time-series data), an end-to-end framework that jointly optimizes missing value imputation and clustering. By integrating an adversarial strategy for realistic data generation and a soft K-means objective for latent space shaping, CRLI produces "cluster-friendly" representations. Experimental results on diverse real-world and synthetic datasets demonstrate that CRLI significantly outperforms existing state-of-the-art methods.

Introduction

Time-series data in domains such as healthcare and finance is notoriously incomplete due to sensor failures, missed appointments, or communication errors. Most clustering algorithms require complete datasets, forcing researchers into a two-stage pipeline: first filling gaps (imputation) and then clustering the result. This decoupling is fundamentally flawed; the imputation step is "blind" to the clustering goal, allowing errors to propagate and lead to sub-optimal cluster assignments.

The CRLI Framework

CRLI addresses this by treating imputation and clustering as a unified task. The architecture, shown in Figure 1, consists of two parallel branches that share information to ensure the final representations are optimized for grouping.

The CRLI architecture features an upper imputation branch with a Bi-RNN and Discriminator, and a lower representation branch for joint clustering optimization.

Joint Optimization Strategy

The model utilizes a multi-part loss function to balance data fidelity with clustering utility:

  1. Imputation Branch: A bidirectional Recurrent Neural Network (Bi-RNN) acts as a generator to predict missing values. An adversarial discriminator ($L_{adv}$) ensures these imputations match the distribution of observed data, preventing "hallucinations."
  2. Representation Branch: Hidden states from the Bi-RNN are mapped into a latent space via a fully connected layer.
  3. Clustering Objective: A soft K-means loss ($L_{k-means}$) encourages latent representations to form distinct, separable clusters.

By training these components together, CRLI finds imputed values that not only look realistic but also make the resulting sequences more distinguishable for the clustering task.

Experimental Evaluation

The framework was evaluated against state-of-the-art (SOTA) baselines, including two-stage methods (e.g., BRITS or GAIN followed by DEC) and one-stage models like VaDER. Testing spanned 8 real-world datasets (medical, gene expression, social) and 20 synthetic datasets from the UCR archive.

Key Results

CRLI achieved the best Rand Index (RI) on 6 out of 8 real-world datasets, maintaining a superior average rank of 2.0 compared to VaDER (10.8) and various two-stage methods.

t-SNE visualizations demonstrate that CRLI (f) produces significantly tighter and more distinct clusters compared to baseline methods.

As illustrated in Figure 2, qualitative analysis via t-SNE visualizations confirms that CRLI creates much tighter clusters with larger inter-class margins. A key insight is the "cluster-friendly" nature of the imputation: the model prioritizes accuracy in sub-sequences critical for class differentiation while allowing more flexibility in less important regions to maximize cluster separation.

Conclusion

CRLI demonstrates that joint optimization of imputation and representation learning is superior to decoupled strategies. By leveraging adversarial training and a clustering-oriented latent objective, the model effectively handles missing data while producing highly separable representations. Future work will focus on handling non-random missingness and improving the scalability of bidirectional RNNs for extremely long sequences.

Summary updated

BibTeX
@inproceedings{ma2021learning,
  author = {Qianli Ma and Chuxin Chen and Sen Li and Garrison W. Cottrell},
  title = {{Learning Representations for Incomplete Time Series Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i10.17070},
}
Figure