Abstract
Forecasting driving behavior or other sensor measurements is an essential component of autonomous driving systems. Often real-world multivariate time series data is hard to model because the underlying dynamics are nonlinear and the observations are noisy. In addition, driving data can often be multimodal in distribution, meaning that there are distinct predictions that are likely, but averaging can hurt model performance. To address this, we propose the Switching Recurrent Kalman Network (SRKN) for efficient inference and prediction on nonlinear and multi-modal time-series data. The model switches among several Kalman filters that model different aspects of the dynamics in a factorized latent state. We empirically test the resulting scalable and interpretable deep state-space model on toy data sets and real driving data from taxis in Porto. In all cases, the model can capture the multimodal nature of the dynamics in the data.
Introduction
Predicting the future trajectory of a vehicle is a fundamental challenge in autonomous driving. It requires navigating two primary hurdles: non-linearity and multimodality. Real-world movement rarely follows simple linear paths, and at critical junctures—such as a fork in the road or an obstacle—there are often multiple plausible futures.
Traditional models like Kalman Filters excel at handling noise in linear systems but struggle with non-linearity. Conversely, deep learning models like Recurrent Neural Networks (RNNs) handle non-linearity well but often fall into the "mean trap," producing a single, blurred average prediction that fails to represent any realistic outcome. The Switching Recurrent Kalman Network (SRKN) addresses these issues by combining the mathematical rigor of Kalman Filters with the flexibility of deep learning, specifically designed to capture multimodal trajectories without mode averaging.
Methodology
SRKN extends the Recurrent Kalman Network (RKN) by introducing a switching mechanism that selects from a bank of linear transition models.
Architecture and Switching
The model maps high-dimensional observations (e.g., images) into a lower-dimensional latent space using an encoder. This latent state is factorized into components representing current state (position) and auxiliary dynamics (velocity). Instead of a single transition matrix, SRKN maintains a bank of $K$ linear transition matrices. A Gated Recurrent Unit (GRU) tracks the system's history and outputs weights for these matrices via a softmax layer. This allows the model to "switch" behaviors—for instance, transitioning from a "straight-line" mode to a "right-turn" mode based on the observed history.
Variational Inference
The model is trained using a modified Evidence Lower Bound (ELBO). To prevent mode collapse and ensure the model commits to distinct paths, the authors introduced a specific prediction loss term. This term encourages the switching variable to favor the specific mode that best explains subsequent observations, effectively resolving the "mode averaging" problem during inference.
Experimental Evaluation
The authors evaluated SRKN across three benchmarks:
- 2D Synthetic Data: A toy dataset with four distinct modes used to verify switching point identification.
- Synthetic Car Trajectories: Sequences of $24 \times 24$ pixel images showing a "car" moving through a grid, testing high-dimensional visual processing.
- Porto Taxi Dataset: A real-world dataset of trajectories from 442 taxis in Porto, Portugal, representing complex urban driving.
Results and Discussion
SRKN demonstrated a superior ability to capture multimodal distributions compared to standard RKNs and other deep state-space baselines.
On the synthetic image task, SRKN outperformed models like VRNN and DMM in multi-step prediction accuracy and Wasserstein distance. In the Porto Taxi dataset, SRKN showed significant improvements in long-term predictive power over the standard RKN. While it remained competitive with state-of-the-art Variational Dynamic Mixtures (VDM), it offered the added benefit of a more interpretable, linear-transition-based structure.
Conclusion
The Switching Recurrent Kalman Network provides a scalable and interpretable solution for modeling complex, multimodal time-series data. By leveraging a bank of Kalman filters and a recurrent switching mechanism, it avoids the pitfalls of mode averaging. While the current reliance on locally linear transitions in latent space may limit its ability to "memorize" highly complex maps, it serves as a robust foundation for future work incorporating explicit environmental constraints.
Summary updated