Multivariate Time Series Imputation with Variational Autoencoders

Vincent Fortuin, Gunnar Rätsch, Stephan Mandt

Abstract

Multivariate time series with missing values are common in areas such as healthcare and finance, and have grown in number and complexity over the years. This raises the question whether deep learning methodologies can outperform classical data imputation methods in this domain. However, naive applications of deep learning fall short in giving reliable confidence estimates and lack interpretability. We propose a new deep sequential latent variable model for dimensionality reduction and data imputation. Our modeling assumption is simple and interpretable: the high dimensional time series has a lower-dimensional representation which evolves smoothly in time according to a Gaussian process. The non-linear dimensionality reduction in the presence of missing data is achieved using a VAE approach with a novel structured variational approximation. We demonstrate that our approach outperforms several classical and deep learning-based data imputation methods on high-dimensional data from the domains of computer vision and healthcare, while additionally improving the smoothness of the imputations and providing interpretable uncertainty estimates.

Introduction

In critical domains like healthcare and finance, multivariate time series are frequently incomplete. Missing values arise from sensor failures, irregular clinical testing, or cost-saving measures. Effective imputation requires a model to simultaneously exploit correlations across different variables (e.g., heart rate and blood pressure) and temporal dynamics (the continuity of physical processes over time).

Existing solutions often struggle with this dual requirement. Classical statistical methods like standard Gaussian Processes (GPs) do not scale well to high-dimensional data. Conversely, standard deep learning models, such as basic Variational Autoencoders (VAEs), often treat time steps as independent, failing to capture the inherent smoothness of real-world temporal data.

Methodology: The GP-VAE Framework

To address these limitations, we propose GP-VAE, a framework that integrates a Gaussian Process prior directly into the latent space of a VAE. This architecture allows the model to map incomplete, high-dimensional observations into a smooth, low-dimensional latent representation.

Architecture sketch and graphical model of the proposed GP-VAE.

Key Technical Innovations

  • Latent GP Prior: Unlike standard VAEs that assume independent latent variables, GP-VAE assumes latent representations evolve according to a GP. This forces the model to learn hidden states that change smoothly over time.
  • Cauchy Kernel: To account for multi-scale dynamics—where some features fluctuate rapidly while others change slowly—we utilize a Cauchy kernel. This provides better flexibility than the standard Radial Basis Function (RBF) kernel.
  • Structured Variational Inference: Standard GPs suffer from $O(T^3)$ computational complexity. We implement a structured variational approximation using a bidiagonal precision matrix, reducing complexity to $O(T)$. This enables efficient training on long time series.
  • Amortized Inference: The model employs a Convolutional Neural Network (CNN) encoder to map incomplete data into latent GP parameters, facilitating fast end-to-end learning.

Experiments and Results

We evaluated GP-VAE against several baselines, including standard VAEs and HI-VAEs, across three datasets: Healing MNIST (rotating digits with 60% missing pixels), SPRITES (animated character sequences), and the Physionet 2012 Challenge (ICU records with 80% missingness).

Performance and Stability

GP-VAE significantly outperformed existing deep learning methods in terms of Mean Squared Error (MSE) and Negative Log-Likelihood (NLL). Qualitatively, the model produced much smoother and more visually consistent reconstructions. While baseline models often resulted in "flickering" or unstable sequences, GP-VAE maintained temporal coherence.

Qualitative comparison of imputation results on Healing MNIST and SPRITES. GP-VAE produces smoother, more accurate reconstructions than standard VAE baselines.

Interpretable Uncertainty

On real-world medical data from Physionet, GP-VAE achieved competitive performance (AUROC of 0.730) while providing a crucial advantage: interpretable uncertainty estimates. By providing confidence intervals for its imputations, the model allows practitioners to understand the reliability of the filled-in data, which is vital for clinical decision-making.

Conclusion

GP-VAE offers a robust solution for multivariate time series imputation by decoupling complex observation dynamics from temporal logic. By applying a GP in the latent space, the model achieves high accuracy and temporal smoothness while remaining computationally efficient. Future work may involve exploring global GP priors to share statistical strength across datasets or specialized kernels for rhythmic, periodic data.

Summary updated

BibTeX
@inproceedings{fortuin2020multivariate,
  author = {Vincent Fortuin and Gunnar Rätsch and Stephan Mandt},
  title = {{Multivariate Time Series Imputation with Variational Autoencoders}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=ci8kfBjK2u7},
}
Figure