Abstract
Measuring similarity between multivariate time series (MTS) is a fundamental challenge in machine learning, particularly when data is incomplete. This paper introduces the Time Series Cluster Kernel (TCK), a robust, unsupervised ensemble-based method for learning similarities in MTS. By utilizing a forest of Gaussian Mixture Models (GMMs) where missing data is analytically integrated out, TCK avoids the pitfalls of traditional imputation methods. The resulting kernel is positive semi-definite and demonstrates exceptional robustness to missing values and hyperparameter choices, outperforming state-of-the-art methods like Dynamic Time Warping (DTW) and Learned Pattern Similarity (LPS) in incomplete data scenarios.
Introduction
In domains ranging from healthcare to finance, data often arrives as multivariate time series riddled with missing values. Standard similarity measures, such as DTW, were primarily designed for univariate data and struggle with multivariate dependencies and missingness. The common workaround—imputing missing values—often introduces noise and bias. Furthermore, many existing kernels require intensive hyperparameter tuning, which is difficult in unsupervised settings.
To address these issues, researchers from UiT The Arctic University of Norway and Universidad Rey Juan Carlos developed TCK. The goal was to create a "set-it-and-forget-it" kernel that captures both local and global structures in the data while remaining naturally robust to noise and missingness.
Methodology
The TCK framework is built on an ensemble strategy rather than a single optimized model. The process follows a specific pipeline to construct the kernel:
- Base Probabilistic Model: The core components are diagonal covariance GMMs augmented with informative prior distributions (MAP-EM). A key advantage of GMMs is that missing data can be "analytically integrated out," allowing the model to ignore missing segments rather than guessing their values.
- Ensemble Construction: To ensure robustness, the authors fit hundreds of "weak" GMMs. Each model is initialized with different random subsets of data, attributes, time segments, and varying numbers of clusters.
- Kernel Formation: For each time series, the ensemble provides a "posterior assignment" (the probability of belonging to various clusters). The TCK is then formed by taking the inner product of these assignments across the entire ensemble.
Mathematically, TCK is proven to be a valid positive semi-definite (psd) kernel, making it compatible with standard kernel-based tools like Support Vector Machines (SVMs) and Kernel PCA.
Experimental Results
The authors evaluated TCK against synthetic VAR(1) models and 18 diverse UCR/UCI benchmark datasets. Key findings include:
- Superiority in Missing Data: In synthetic tests with up to 50% missing data, TCK’s classification accuracy remained remarkably stable (dropping only from ~99% to ~95%), whereas competitors like Global Alignment Kernels (GAK) and DTW saw significant performance degradation.
- Competitive Performance on Complete Data: On 18 benchmarks with full data, TCK achieved the highest accuracy in 8 cases, matching or closely following LPS and GAK.
- Enhanced Visualization: Using Kernel PCA with TCK produced cleaner, more distinct clusters in 2D space compared to standard linear PCA, which often resulted in overlapping data points.
- Scalability: Despite the ensemble's complexity, the approach is "embarrassingly parallelizable," allowing it to remain competitive in runtime for high-dimensional datasets like PEMS (963 attributes).
Conclusion
TCK provides a powerful, unsupervised solution for learning similarities in multivariate time series without the need for imputation. Its ensemble-based design offers inherent robustness to hyperparameters and missingness. While the $O(T^3)$ complexity of GMM mean updates can be demanding for very long sequences, future work may address this by exploring more complex covariance structures or replacing GMMs with Hidden Markov Models (HMMs) to better capture temporal transitions. TCK holds significant promise for applications in specialized domains like clinical Electronic Health Records, where missing data is a persistent challenge.
Summary updated