Abstract
This paper introduces the Temporal Kernelized Autoencoder (TKAE), a deep learning architecture designed to compress incomplete multivariate time series (MTS) into fixed-length vectors. By combining recurrent neural networks (RNNs) with a novel "kernel alignment" loss, the model learns robust representations that preserve underlying data relationships even when up to 90% of the values are missing. Experimental results across healthcare and synthetic datasets demonstrate that TKAE significantly outperforms standard autoencoders and traditional dimensionality reduction techniques in classification and anomaly detection tasks.
Introduction
Multivariate time series—data streams with multiple variables evolving over time—are critical in fields like healthcare and finance. However, they present two major challenges for machine learning: variable sequence lengths and prevalent missing data due to sensor failure or irregular sampling. Standard tools like PCA or basic Autoencoders (AEs) typically require fixed-length inputs and pre-processing via imputation. Such imputation can introduce bias or destroy information inherent in the pattern of missingness. The authors propose TKAE to learn compressed representations directly from raw, incomplete sequences without requiring prior imputation.
Methodology: The TKAE Architecture
The TKAE architecture integrates recurrent neural networks with a specialized similarity prior to handle temporal dependencies and missingness simultaneously.
Core Components
- The Encoder: A stacked bidirectional RNN (using GRU or LSTM cells) processes sequences in both forward and backward directions. This captures the full temporal context, squashing the history into a single, fixed-size bottleneck vector ($z$).
- The Decoder: A stacked RNN attempts to reconstruct the original sequence from the bottleneck vector $z$, minimizing reconstruction error.
- Kernel Alignment: This is the model's primary innovation. Alongside standard reconstruction loss, the authors introduce a Kernel Alignment cost ($L_k$). They utilize the Time series Cluster Kernel (TCK)—an algorithm designed to calculate similarities between time series with missing values—as a prior. The model is trained to ensure the dot products of the learned representations ($z$) align with the similarities defined by the TCK, forcing the latent space to respect the data's true underlying structure.
Experimental Setup
The model was evaluated on a diverse set of benchmarks:
- Standard Repositories: UCI/UCR datasets including ECG, Libras, and Japanese Vowels.
- Medical Data: Electronic Health Records (EHR) for surgical site infection prediction and Physionet ECG data for Atrial Fibrillation detection.
- Synthetic Data: Sequences generated via Ordinary Differential Equations (ODEs) to test varying frequencies and lengths.
Key Results and Discussion
Robustness to Missing Data
A critical finding is the model's stability under extreme missingness. In experiments with the Japanese Vowels dataset, while a standard Temporal Autoencoder's (TAE) performance plummeted as missingness increased, the TKAE remained remarkably stable.
As shown in the figure above, even with 90% of the data missing, TKAE maintains high classification accuracy, whereas the standard TAE's performance drops significantly. This suggests that by aligning the latent space with the TCK, the model "inherits" the kernel's inherent ability to handle missing values.
Performance Benchmarks
- Classification: On the EHR medical dataset, TKAE achieved an accuracy of 89.9% and an F1 score of 80.2, outperforming PCA, standard AEs, and other state-of-the-art RNN architectures.
- Anomaly Detection: In detecting Atrial Fibrillation, TKAE achieved the highest Area Under the Curve (AUC of 0.732), proving its utility for identifying out-of-distribution samples in medical contexts.
Conclusion and Future Work
TKAE provides a powerful framework for representation learning on messy, real-world time series data. While effective, the authors note that RNNs are computationally intensive and can struggle with very long sequences (e.g., $T > 200$) due to vanishing gradients. Future research may explore integrating attention mechanisms or alternative kernel types to further enhance the compactness and robustness of the learned representations.
Summary updated