Abstract
Predicting pedestrian trajectories is critical for the safety of autonomous systems. While traditional Interacting Multiple Model (IMM) filters offer a robust Bayesian framework for handling multiple motion hypotheses, they require labor-intensive manual tuning of transition matrices. This paper introduces the RNN-IMM, a deep learning surrogate that learns complex motion dynamics and mode transitions directly from data. By mimicking the logic of the IMM filter within an encoder-decoder architecture, the proposed model achieves significantly higher accuracy in trajectory forecasting without the need for hand-coded parameters.
Introduction
In the realm of autonomous vehicles and robotics, predicting human movement is a high-stakes challenge. Pedestrians are inherently erratic, often switching between constant velocity walking and sudden stops. Traditionally, engineers have relied on the Interacting Multiple Model (IMM) filter to manage these diverse motion hypotheses. However, the performance of an IMM filter is heavily dependent on a manually defined Transition Probability Matrix (TPM), which often fails to capture the nuances of real-world behavior.
Problem Statement: The Challenge of Erratic Motion
Standard filters, such as the Kalman filter, typically assume a single motion model. The IMM filter improves upon this by running multiple filters in parallel and weighting their outputs based on how well they explain observed data. Yet, the "fiddly" nature of tuning these transitions remains a significant bottleneck.
Researchers from Fraunhofer IOSB propose replacing this manual overhead with a Recurrent Neural Network (RNN) that implicitly learns these dynamics, providing a multi-modal prediction of future paths.
Methods: The RNN-IMM Architecture
The authors propose an RNN-encoder-decoder architecture designed to function as a functional surrogate for the IMM filter.
1. The Encoder
The encoder processes historical positions and coordinate offsets (velocities) to perform two key tasks:
- Filtering: De-noising the current position estimate.
- Mode Estimation: Outputting mode probabilities ($\alpha^t$), which represent the likelihood of specific maneuvers (e.g., straight walking vs. stopping). This directly mimics the weighting mechanism of a classic IMM filter.
2. The Decoder
The decoder utilizes the filtered position and a learned "context vector" (maneuver encoding) to predict a distribution of future positions. It employs a Mixture Density Layer (MDL) to output a Gaussian Mixture Model, enabling the representation of multiple potential future trajectories.
3. Joint Training
The model is trained using a multi-part loss function that simultaneously optimizes for maneuver classification (cross-entropy), current position filtering (MSE), and future trajectory prediction (negative log-likelihood).
Datasets and Real-World Grounding
The model was evaluated on synthetic data designed to reflect prototypical pedestrian maneuvers. Synthetic data was necessary because real-world datasets, such as the Daimler path prediction dataset, often lack a sufficient number of isolated maneuver samples for effective deep network training. To ensure realism, synthetic agents were sampled using parameters derived from the Daimler dataset, including preferred walking speeds and observation noise.
Key Insights
- Implicit Transitions: Unlike the IMM filter's explicit Markov chain, the RNN-IMM learns transitions implicitly by observing changes in hidden states.
- Generalization via Offsets: Modeling motion via offsets (velocities) rather than absolute coordinates enhances the network's ability to generalize across different scenes.
- Retaining Interpretability: By forcing the encoder to output explicit mode probabilities, the model maintains a degree of interpretability, allowing engineers to observe when the model detects a change in maneuver.
Results
The RNN-IMM was compared against standard IMM filters (using Constant Velocity and Constant Acceleration models), individual Kalman filters, and linear interpolation.
- Accuracy: The RNN-IMM significantly outperformed all baselines in Final Displacement Error (FDE).
- Responsiveness: For a 1-second prediction horizon (16 time steps), the RNN-IMM achieved an FDE of 0.0517m, a substantial improvement over the 0.1862m achieved by the traditional IMM filter.
- Maneuver Capture: Qualitative analysis indicated that the RNN-IMM is much faster at detecting changes in dynamics, such as deceleration, compared to the lagging response of traditional filters.
Conclusion and Future Work
While the RNN-IMM shows great promise, its current reliance on synthetic data and lack of environmental context (e.g., sidewalks, obstacles) are areas for future improvement. The authors suggest that incorporating additional cues like head orientation, body tilt, or gaze could further enhance prediction accuracy by providing early indicators of motion changes before they manifest in coordinate shifts.
Summary updated