An RNN-Based IMM Filter Surrogate

Stefan Becker, Ronny Hug, Wolfgang Hübner, Michael Arens

Predicting where a pedestrian will be in the next second is a high-stakes game for autonomous vehicles and robot navigation. Traditionally, engineers have relied on the Interacting Multiple Model (IMM) filter—a robust Bayesian framework that juggles multiple motion hypotheses (like "walking at a constant speed" vs. "stopping"). However, IMM filters are notoriously "fiddly," requiring manual tuning of transition matrices.

In this paper, researchers from Fraunhofer IOSB propose the RNN-IMM, a deep learning surrogate that mimics the logic of the IMM filter while learning the complex transitions of human movement directly from data.

TL;DR

The authors present an RNN-based encoder-decoder model that acts as a functional replacement for the classic Interacting Multiple Model (IMM) filter. By learning motion dynamics and "mode probabilities" implicitly, the model achieves significantly higher accuracy in pedestrian trajectory forecasting than traditional Bayesian filters without the need for hand-tuned transition matrices.

What Problem Does This Paper Address?

Pedestrian movement is erratic. A person might be walking at a constant velocity one moment and come to a dead stop the next. Traditional filters, like the Kalman filter, usually assume a single type of motion (e.g., constant velocity). The IMM filter improves on this by running several filters in parallel and weighting their outputs based on how well they explain the observed data.

The catch? To make an IMM filter work, you have to manually define a Transition Probability Matrix (TPM)—essentially a "guess" at how likely a pedestrian is to switch from walking to stopping. This is hard-coded engineering that doesn't always capture the nuances of real-world behavior. The authors aim to replace this manual overhead with a Recurrent Neural Network (RNN) that learns these dynamics and provides a multi-modal prediction of the future.

Methods

The authors propose an RNN-encoder-decoder architecture designed to function as a "filter surrogate."

  1. The Encoder: This stage processes the history of observed positions and coordinate offsets (velocities). It performs two critical tasks:
  2. Filtering: It de-noises the current position estimate.
  3. Mode Estimation: It outputs "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.
  4. The Decoder: Taking the filtered position and a "context vector" (the learned maneuver encoding), the decoder predicts a distribution of future positions. It uses a Mixture Density Layer (MDL) to output a Gaussian Mixture Model, allowing it to represent multiple possible future paths.
  5. 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

The evaluation is conducted on synthetic data designed to reflect prototypical pedestrian maneuvers.

  • Why Synthetic? Real-world datasets like the Daimler path prediction dataset often lack enough samples of specific, isolated maneuvers (e.g., exactly 23 sequences for certain motion types) to train deep networks effectively.
  • Real-World Grounding: The synthetic agents were sampled using parameters (like preferred walking speed and observation noise) derived from the Daimler dataset to ensure the simulation remained realistic.

Key Insights and Ideas

  • Implicit vs. Explicit Transitions: Unlike the IMM filter, which requires an explicit Markov chain for state transitions, the RNN-IMM learns these transitions implicitly. It "sees" the deceleration in the hidden states and adjusts its mode probabilities automatically.
  • Generalization via Offsets: The authors found that modeling motion in terms of offsets (velocities) rather than absolute coordinates makes it much easier for the network to generalize across different starting positions and scenes.
  • Retaining Interpretability: By forcing the encoder to output mode probabilities, the authors keep the "black box" of the RNN somewhat interpreable. An engineer can look at the $\alpha^t$ values and see exactly when the model thinks a pedestrian has started to stop.

Key Results

The RNN-IMM was compared against a standard IMM filter (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: In a 1-second prediction horizon (16 time steps), the RNN-IMM achieved an FDE of 0.0517m, compared to 0.1862m for the traditional IMM filter.
  • Maneuver Capture: Qualitative analysis showed that the RNN-IMM was much faster at "capturing" the change in dynamics when a pedestrian began to decelerate, whereas the traditional IMM filter lagged behind due to its fixed transition parameters.

Limitations and Future Work

  • Synthetic Reliance: While the results are promising, the model was primarily validated on synthetic data. The authors acknowledge that real-world performance may vary.
  • Lack of Environmental Context: The current model only looks at the pedestrian's coordinates. It doesn't "see" the sidewalk, crosswalks, or other obstacles that heavily influence human path selection.
  • Additional Cues: The authors suggest that future iterations could incorporate "point kinematics" like head orientation, body tilt, or gaze, which are often early indicators of a change in motion before the actual coordinates change.

Summary updated

BibTeX
@inproceedings{becker2019rnn,
  author = {Stefan Becker and Ronny Hug and Wolfgang Hübner and Michael Arens},
  title = {{An RNN-Based IMM Filter Surrogate}},
  booktitle = {Scia},
  year = {2019},
  doi = {10.1007/978-3-030-20205-7\_32},
}
Figure