Abstract
Heterogeneous Relational Kernel Learning (HRKL) extends the "Automatic Statistician" framework to handle diverse collections of time series. By repurposing intermediate search results—specifically the Bayesian Information Criterion (BIC) scores—as interpretable embeddings, HRKL enables high-performance clustering and anomaly detection with minimal computational overhead.
Introduction
Gaussian Processes (GPs) are a cornerstone of time-series analysis, valued for their ability to model underlying structures like seasonality and trends through kernels. While frameworks like the Automatic Bayesian Covariance Discovery (ABCD) excel at finding optimal kernels for individual series, scaling this to collections of time series presents a significant challenge. Existing relational methods often assume homogeneity, forcing a single model onto a potentially "mixed bag" of data. HRKL addresses this by efficiently discovering sub-populations and outliers within heterogeneous datasets.
The HRKL Framework
The core innovation of HRKL lies in its "waste not, want not" philosophy. During the standard greedy search for an optimal kernel grammar (e.g., combining Periodic, Linear, and Squared Exponential kernels), most intermediate results are discarded. HRKL instead captures the Bayesian Information Criterion (BIC) for every kernel evaluated against every time series in the dataset.
This process generates a BIC History Matrix, where each row represents a time series and each column represents a specific kernel structure. By standardizing this matrix, the authors create an interpretable embedding space. Unlike the "black box" embeddings of deep learning, each dimension in HRKL corresponds to a human-readable structural property, such as "periodicity" or "linear trend." Clustering is then performed using Cosine distance and HDBSCAN, focusing on structural similarity rather than mere magnitude.
Experimental Evaluation
The authors validated HRKL across synthetic and real-world datasets to test its clustering and anomaly detection capabilities.
Synthetic Benchmarking
A synthetic dataset of 60 series was generated, comprising six distinct classes: sine waves, linear trends, random noise, step functions, and wavelets.
On this data, HRKL achieved a V-measure of 0.836, significantly outperforming traditional baselines like Dynamic Time Warping (0.553) and k-Shape (0.507).
Real-World Applications: Google Trends and Gait Analysis
In a study of Google Trends data, HRKL successfully grouped search terms based on their temporal behavior. For instance, it correctly clustered "Zika" and "Rubio"—terms characterized by transient spikes—while separating them from seasonal terms like "Summer."
Furthermore, using stride interval data from the PhysioNet Gait dataset, HRKL demonstrated perfect anomaly detection (1.0 score) in identifying "corrupted" series, outclassing methods like SAX BoP which struggled to differentiate noise from legitimate biological variation.
Key Insights
- Computational Efficiency: Saving BIC values adds only 0.07% to the total computation time, making the embedding effectively "free."
- Structural Focus: The use of Cosine distance ensures that the model groups series based on their underlying generative process rather than their scale.
- Interpretability: The dimensions of the embedding space are mathematically defined kernel structures, allowing for automated hypothesis generation.
Conclusion and Future Work
HRKL provides a robust, interpretable, and computationally efficient method for analyzing heterogeneous time-series collections. While currently limited by the $O(n^3)$ complexity of GP fitting and the scope of the kernel grammar, future work aims to automate the generation of natural-language reports to explain the unique characteristics of discovered sub-populations.
Summary updated