Abstract
Predicting large-scale, multidimensional time series is a critical task in modern spatiotemporal data analysis. However, traditional models often struggle with high dimensionality, complex dependencies, and pervasive missing data. This paper presents Bayesian Temporal Factorization (BTF), a framework that integrates low-rank matrix/tensor factorization with Vector Autoregressive (VAR) processes. By placing the VAR process on latent temporal factors, BTF achieves scalability and robustness. A fully Bayesian approach allows for automatic hyperparameter tuning and probabilistic forecasting via MCMC inference. Evaluations on diverse real-world datasets demonstrate that BTF significantly outperforms state-of-the-art methods in both data imputation and multi-step prediction.
Introduction
The proliferation of sensing technologies has led to an explosion of multidimensional time series data. From traffic monitoring systems to environmental sensor networks, researchers are tasked with modeling thousands of variables simultaneously. Three primary challenges hinder this effort: scalability, complex spatiotemporal dependencies, and missing data. Classical Vector Autoregression (VAR) models, while powerful for small systems, become computationally intractable as the number of variables grows. Moreover, real-world data is frequently incomplete, and traditional "impute then predict" pipelines often propagate errors.
The BTF Framework
The core innovation of Bayesian Temporal Factorization is the integration of low-rank factorization with temporal modeling in a unified probabilistic framework.
Low-Rank Factorization
BTF decomposes the high-dimensional observation matrix or tensor into a set of low-rank latent factors. For a tensor $\mathcal{Y} \in \mathbb{R}^{M \times N \times T}$, it is approximated by the product of factor matrices $U$, $V$, and $X$, representing different dimensions such as spatial locations and time.
Latent Temporal Dynamics
Unlike previous models that assume independent temporal evolution for each factor, BTF applies a VAR process directly to the latent temporal factors ($X$). This allows the model to capture the "co-evolution" of different latent patterns, which is crucial for representing complex real-world dynamics. This approach significantly reduces the parameter space while capturing complex cross-correlations between latent patterns.
Probabilistic Graphical Model and Inference
The framework is implemented as a fully Bayesian model. By using conjugate priors such as Gaussian-Wishart and Gamma distributions, the model automatically learns the noise levels and regularization strengths from the data, eliminating the need for manual hyperparameter tuning.
Inference is conducted using Markov Chain Monte Carlo (MCMC) methods, specifically Gibbs sampling. This approach yields a full posterior distribution for the predictions, enabling uncertainty quantification—a vital feature for risk-sensitive applications like traffic management.
Experimental Evaluation
The authors evaluated BTF on six diverse real-world datasets, including Guangzhou Traffic Speed, Hangzhou Metro Flow, Seattle Freeway Speed, London Movement Speed (Uber data), NYC Taxi Trips, and Pacific Surface Temperature.
Key Results
BTF (including its matrix variant BTMF and tensor variant BTTF) consistently achieved superior performance compared to baselines such as TRMF, BPMF, and HaLRTC.
- Imputation: In scenarios with up to 60% missing data, BTF maintained the lowest Mean Absolute Percentage Error (MAPE) and Root Mean Square Error (RMSE). It proved particularly robust to "non-random" missingness, such as full-day sensor blackouts.
- Prediction: In multi-step rolling predictions, BTF significantly outperformed non-probabilistic models. On the Guangzhou dataset, BTMF's accuracy remained high over extended horizons, whereas other models' errors escalated rapidly.
Discussion and Future Work
A key insight from this work is that modeling latent factors with a Vector AR process is superior to independent AR processes, as it captures the interdependencies between different latent structures. Furthermore, the probabilistic nature of the model provides practical utility by offering confidence intervals for its forecasts.
While highly effective, the current BTF framework requires manual specification of the latent rank. Future research could explore automatic rank determination. Additionally, incorporating explicit spatial priors, such as graph-based constraints reflecting physical distances between sensors, could further enhance the model's predictive power.
Conclusion
Bayesian Temporal Factorization offers a robust and scalable solution for multidimensional time series analysis. By unifying low-rank factorization with latent VAR processes in a Bayesian framework, it effectively addresses the challenges of high dimensionality and missing data in modern spatiotemporal applications.
Summary updated