Introduction
In fields like finance, healthcare, and energy, data often takes the form of continuous curves—such as a stock’s intraday price path or a household's daily power consumption. These are known as Functional Time Series (FTS). Forecasting becomes particularly challenging with high-dimensional FTS, where hundreds of these curves evolve simultaneously over time.
Traditional statistical methods struggle here because they typically assume linear and Markovian dynamics, meaning the future depends only on the immediate past in a simple way. Conversely, modern deep learning models like LSTMs or Transformers excel at capturing complexity but act as "black boxes," making it difficult to understand why a prediction was made or how different variables relate. The Deep Functional Factor Model (DF2M) bridges this gap, combining flexible Bayesian nonparametrics with powerful deep learning to forecast high-dimensional FTS while remaining highly explainable.
Methods: The DF2M Architecture
DF2M is a hybrid model that decomposes complex data into interpretable components using three main pillars:
- The Indian Buffet Process (IBP): A Bayesian nonparametric approach that automatically determines the number of "latent factors" (hidden underlying trends) needed to represent the data. It ensures the model is sparse, meaning each factor only affects a few observed variables.
- Multi-task Gaussian Process (MTGP): This component handles the infinite-dimensional nature of the curves and the correlations between different tasks.
- Deep Temporal Kernels: Instead of using a standard kernel to measure similarity between time points, DF2M employs deep neural networks (LSTMs, GRUs, or Attention mechanisms) to construct the kernel. This allows the model to learn non-linear and non-Markovian dependencies, effectively looking back across the entire history to find complex patterns.
To make this computationally feasible for large datasets, the authors developed a Sparse Variational Inference algorithm using "inducing points," which prevents computational explosion.
Datasets and Evaluation
The model was evaluated on four diverse, real-world datasets, which are challenging due to their high dimensionality and often small number of time observations ($n < 50$):
- Japanese Mortality: Age-specific mortality rates for 47 prefectures (1975–2017).
- Energy Consumption: Half-hourly energy curves for 40 London households.
- Global Mortality: Mortality data across 32 different countries.
- Stock Intraday: High-frequency price trajectories for S&P 100 stocks (45 trading days).
Key Insights and Results
DF2M consistently outperformed standard deep learning models (like standalone LSTMs or Transformers) across almost all datasets in terms of Mean Absolute Prediction Error (MAPE) and Mean Squared Prediction Error (MSPE).
- Explainability via Factorization: Unlike standard RNNs, DF2M decomposes the data into latent factors. These factors can be plotted to reveal smooth, interpretable trends over time, such as a steady decline in mortality rates.
- The Power of Deep Kernels: By embedding neural networks inside a Gaussian Process kernel, DF2M achieves the rigorous uncertainty quantification of Bayesian methods alongside the pattern-recognition power of deep learning.
- Non-Markovian Flexibility: DF2M’s deep kernel can aggregate information from the entire historical sequence, crucial for data with long-term cycles or "memory."
- Adaptability: On the Energy Consumption and Global Mortality datasets, the DF2M-LSTM variant performed exceptionally well. However, for the noisier "Stock Intraday" data, a simpler linear version (DF2M-LIN) performed better, highlighting the framework's flexibility.
Limitations and Future Work
A primary limitation of the current model is its reliance on simple spatial kernels, which might neglect intricate, fine-grained relationships within a single observation curve. Future research directions include developing more sophisticated spatial kernels to capture intra-curve dynamics, exploring how the model handles non-stationary data with abrupt changes (change-point detection), and scaling the model further for even higher-dimensional "big data" scenarios.
Summary updated