# Real-Time Human Trajectory Prediction from RGB-D for Mobile Robots Using Bi-Mamba

Robotics.world

> Mobile robots that share space with people need to know where those people will be a few seconds from now. Most learned trajectory predictors are trained on clean, smoothed benchmark data, but on a…

**arXiv**: 2610.33916 · Preprint · not peer-reviewed

**Published**: 2026-10-24

**Authors**: Basheer Al-Tawil, Magnus Jung, Ayoub Al-Hamadi

## In plain words

Mobile robots that share space with people need to know where those people will be a few seconds from now.

## Key results

- **Benchmark accuracy.** On ETH/UCY, TrajMamba reaches an average ADE of 0.29 m and FDE of 0.51 m, the lowest error across all five scenes among the eight baselines compared.
- **Model size.** 262K parameters, small enough for embedded deployment; the paper states it runs in real time on "modest hardware" and on the Jetson Orin, though specific latency or frame-rate figures are not reported in the provided content.

## AI summary

## Overview

**Research area:** Robotics and computer vision — specifically short-term human motion forecasting from an onboard RGB-D camera for mobile robot navigation.

**Technical level:** Intermediate. Readers should be comfortable with sequence models (RNNs, transformers) and basic camera geometry; the Mamba/state-space formalism is explained in the paper with explicit equations.

**Scope:** The paper proposes TrajMamba, a 262K-parameter bidirectional Mamba–GRU model for predicting a person's short-term 3D trajectory from RGB-D input, trained and deployed through one identical perception pipeline, and validated on ETH/UCY plus a live TIAGo robot with an onboard NVIDIA Jetson Orin.

## What This Paper Is About

Mobile robots that share space with people need to know where those people will be a few seconds from now. Most learned trajectory predictors are trained on clean, smoothed benchmark data, but on a real robot they are fed noisy estimates coming from a pose detector and a depth sensor — the authors call this mismatch the "train-deploy pipeline gap." The goal is to eliminate that gap by design: use the exact same pose-extraction, depth back-projection, and smoothing code in training and inference, and pair it with a model small and fast enough to run on a robot's onboard computer.

## Key Contributions

1. **TrajMamba**, a lightweight bidirectional Mamba-GRU architecture for real-time human trajectory prediction with approximately 262K parameters.
2. **A pipeline-consistent strategy**: the same MediaPipe pose extraction, depth back-projection, Kalman/EMA filtering, windowing, and normalization code is shared across training, testing, and live robot operation, with normalization statistics stored inside the checkpoint.
3. **Benchmark evaluation** on ETH/UCY under the leave-one-scene-out protocol with deterministic (K = 1) predictions, compared against eight established methods, plus a separate RGB-D dataset (RGB-D Bonn Person Tracking) processed through the full sensor pipeline.
4. **A real-time deployment** on a PAL Robotics TIAGo robot with a head-mounted RGB-D camera, running the entire pipeline onboard an NVIDIA Jetson Orin, released as an open-source ROS2 package with training code and checkpoints.

## Main Findings

- **Benchmark accuracy:** On ETH/UCY, TrajMamba reaches an average ADE of 0.29 m and FDE of 0.51 m, the lowest error across all five scenes among the eight baselines compared.
- **Scene-level results (ADE/FDE in meters):** ETH 0.55/0.85, UNIV 0.31/0.58, ZARA1 0.22/0.38, ZARA2 0.17/0.31, HOTEL 0.20/0.43.
- **Strongest baselines:** STGAT at 0.40/0.77 average and Social-STGCNN at 0.44/0.75 average; the improvement is described as consistent rather than scene-specific.
- **Model size:** 262K parameters, small enough for embedded deployment; the paper states it runs in real time on "modest hardware" and on the Jetson Orin, though specific latency or frame-rate figures are not reported in the provided content.
- **Qualitative behaviour:** On mostly straight motion (Zara1, Zara2, Hotel) predictions closely follow ground truth. On ETH and UNIV, where people turn within the horizon, the model gets the initial direction right but "rounds off" the turn, predicting a gentler curve than what actually happens — attributed to committing to a single trajectory rather than sampling multiple futures.
- **Pipeline design effect:** The authors argue that sharing one processing path removes the distribution shift between training inputs and live sensor inputs; no ablation isolating the size of that effect is reported in the provided content.
- **On-robot behaviour:** Live overlays show correct prediction across three motion patterns relative to the robot — right-to-left, left-to-right, and approaching the camera.
- **Stated limitation:** The system currently tracks several people but predicts each one independently, with no modelling of social interaction between them.

## Methodology in Plain English

**One pipeline, two phases.** The central engineering decision is that a single software module handles sensor data in training, testing, and on the robot. It does five things:

1. **Pair up color and depth frames.** Each color image is matched to the depth image with the closest timestamp, provided the gap is at most 20 ms — a threshold chosen to mirror the live RealSense camera's streaming behavior.
2. **Find the person's hip.** Every color frame goes to MediaPipe PoseLandmarker in video mode, which gives temporal smoothing for free. The left hip (landmark 23) and right hip (landmark 24) are averaged and scaled by image width and height to get a hip-center pixel.
3. **Convert pixel to 3D.** Rather than trusting a single depth pixel, the system takes a 7×7 patch around the hip pixel, throws away zeros (invalid readings), and takes the median, scaled to meters by dividing by the standard TUM factor of 5000. A standard pinhole back-projection then produces 3D coordinates using the RealSense intrinsics (fx = 384.4, fy = 384.4, cx = 321, cy = 231).
4. **Smooth the signal.** A per-axis 1D Kalman filter with a constant-velocity model (process noise q = 10⁻³, measurement noise r = 10⁻²) removes sensor noise, followed by an exponential moving average with α = 0.35 to damp remaining high-frequency wobble.
5. **Window and normalize.** Trajectories are downsampled by a factor of 3, dropping from roughly 30 Hz to roughly 10 Hz. Sliding windows span 50 frames — 20 observed plus 30 predicted, i.e. a 2 s observation and a 3 s prediction horizon — and each window is shifted so its first frame sits at the origin, forcing the model to learn relative motion.

**What the network does.** The model works in velocity space: input is the frame-to-frame difference of hip positions, standardized per axis with training-set statistics. A linear layer plus layer normalization embeds each 3D velocity into a higher-dimensional token. These tokens pass through stacked bidirectional Mamba blocks. Each block runs the sequence forward and backward, then blends the two using a learned per-channel gate followed by layer normalization. Inside each block is Mamba's selective S6 mechanism, where the step size and the input/output matrices are computed from the data itself, the step size is kept positive through softplus, and the recurrence is discretized with a zero-order hold; the state matrix is initialized from the HiPPO spectrum and refined during training. The final encoder state initializes a GRU decoder through a tanh layer, and is re-fed as input at every decoding step so each prediction is conditioned on the full observation; a two-layer MLP with dropout turns each GRU output into a predicted future velocity, which is integrated back into positions.

**Training.** AdamW with learning rate 3×10⁻⁴, weight decay 10⁻⁴, β = (0.9, 0.98), a cosine-annealing-with-warm-restarts schedule (T₀ = 30, T_mult = 2, η_min = 10⁻⁶), up to 150 epochs. The loss combines a Huber term (δ = 0.1) with an L₁ penalty weighted at 0.1 on normalized velocities. Gradients are clipped to a maximum norm of 1.0. Light augmentation (velocity scaling of ±10% and axis flips) is applied to the training split only. The split is 85/15 with a fixed seed of 42.

**Data.** The RGB-D Bonn Person Tracking dataset was recorded indoors with an Asus Xtion Pro Live at roughly chest height, close to a mobile robot's viewpoint; the raw sequence used contains 580 RGB and 580 depth frames, which after pose extraction, smoothing, and downsampling yield 145 trajectory windows, split into 124 for training and 21 for validation. On ETH/UCY the protocol is leave-one-scene-out with T_obs = 8 and T_pred = 12; positions are read directly from benchmark annotations, so the RGB-D pose/depth/filtering stage does not apply there, but velocity computation, standardization, prediction, and integration are unchanged. Errors are reported in meters on integrated positions.

## Why This Matters

**Impact on research.** The paper names and attacks a specific, usually ignored weakness in the field: reported accuracy on clean benchmark annotations does not transfer to the noisy estimates a robot actually sees. Demonstrating that a shared perception-and-preprocessing path, plus a compact non-transformer sequence model, can top ETH/UCY at 0.29 m ADE / 0.51 m FDE with only 262K parameters is a useful data point that raw model capacity is not the bottleneck for short-horizon prediction.

**Real-world applications:**

- **Service and logistics robots** navigating corridors, hospitals, or warehouses where people move unpredictably and collision avoidance must be decided in milliseconds.
- **Collaborative industrial cells** where a robot arm or mobile platform must anticipate a co-worker's approach to schedule safe, non-disruptive motion.
- **Assistive and elder-care robotics** where a companion platform needs to predict whether a person is walking toward it or away before adjusting its own path.
- **Crowd-facing kiosks and delivery fleets** where a forward-facing RGB-D camera is the only sensor available and social-consistency of predicted paths matters for acceptance.

**Industry relevance.** The system runs on commodity hardware (a TIAGo platform with a Jetson Orin), uses off-the-shelf components (Intel RealSense, MediaPipe), and ships as an open-source ROS2 package with training code and checkpoints — the practical combination that shortens the path from paper to product for robot vendors.

## Future Directions

- **Modelling social interaction.** The authors state that multiple people are currently tracked but predicted independently; conditioning each prediction on neighbours' positions and velocities is the stated next step.
- **Integration into social-aware navigation.** The plan is to feed TrajMamba's predictions into a navigation stack so the robot can anticipate human motion and move safely through crowded shared spaces.
- **Handling turns and multimodal futures.** The qualitative analysis shows the model rounds off sharp turns because it commits to a single trajectory; handling genuinely multimodal motion without abandoning the single-trajectory efficiency is an open problem the paper highlights rather than solves.
- **Reported but unquantified real-time performance.** The paper claims real-time operation on the Jetson Orin but the provided content does not report per-frame latency, throughput, or a comparison against the RNN and transformer baselines on the same embedded hardware — measurements that would make the deployment claim checkable.

## Target Audience

Robotics researchers and engineers working on human-aware navigation and human–robot interaction, particularly those deploying learned perception on embedded hardware; practitioners interested in state-space models as a lightweight alternative to transformers or RNNs for short-sequence forecasting; and computer-vision researchers studying the gap between benchmark trajectory data and real sensor streams. Graduate students with some background in sequence modelling will find it accessible, and roboticists looking for a ready-to-run ROS2 baseline will find the released package directly useful.

## Authors’ abstract

Predicting the short-term future trajectory of a person from RGB-D cameras is a key capability for mobile robots navigating in dynamic and human populated environment. The key challenge to deploying learned predictors on real robots is the train-deploy pipeline gap. Training data are often prepared with an idealized, smoothed ground truth, whereas at inference, the model is fed noisy estimates from pose detectors and depth sensors. The model is therefore evaluated on an…

[The full abstract on arXiv](https://arxiv.org/abs/2610.33916)

[Read the original paper](https://arxiv.org/abs/2610.33916)

## Related papers

- [Real-Time Disturbance-Aware Koopman Model Predictive Control for Quadrotors in Spatially Varying Winds](https://robotics.world/paper/real-time-disturbance-aware-koopman-model-predictive-control-for-2610.27414) 2026-10-20 · cs.RO · Key terms of the title in common
- [A Practical Causal Framework for Autonomous Mobile Robots: From Simulation to Real-World Human Environments](https://robotics.world/paper/a-practical-causal-framework-for-autonomous-mobile-robots-from-2611.04027) 2026-11-02 · cs.RO · Key terms of the title in common
- [Hierarchical Residual Policy Learning for Real-World Mobile Manipulation with Sparse Human Guidance](https://robotics.world/paper/hierarchical-residual-policy-learning-for-real-world-mobile-2610.20607) 2026-10-14 · cs.RO · Key terms of the title in common
- [Budget-aware Correspondence-driven View Selection for Real-time 3D Perception of Mobile Robots](https://robotics.world/paper/budget-aware-correspondence-driven-view-selection-for-real-time-3d-2611.11809) 2026-11-09 · cs.RO · Key terms of the title in common
- [FAME-QP: A GPU-Accelerated Quadratic-Programming Solver for Real-Time Model Predictive Control](https://robotics.world/paper/fame-qp-a-gpu-accelerated-quadratic-programming-solver-for-real-time-2611.13766) 2026-11-10 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/real-time-human-trajectory-prediction-from-rgb-d-for-mobile-robots-2610.33916
