Digital-Twin Losses for Lane-Compliant Trajectory Prediction at Urban Intersections
Organizations: * Chair of Robotics, Artificial Intelligence and Real-Time Systems Technical University of Munich, Munich, Germany · † BMW Group, Munich, Germany
Abstract
Accurate and safety-conscious trajectory prediction is a key technology for intelligent transportation systems, especially in V2X-enabled urban environments with complex multi-agent interactions. In this paper, we created a digital twin-driven V2X trajectory prediction pipeline that jointly leverages cooperative perception from vehicles and infrastructure to forecast multi-agent motion at signalized intersections. The proposed model combines a Bi-LSTM-based generator with a structured training objective consisting of a standard mean squared error (MSE) loss and a novel twin loss. The twin loss encodes infrastructure constraints, collision avoidance, diversity across predicted modes, and rule-based priors derived from the digital twin. While the MSE term ensures point-wise accuracy, the twin loss penalizes traffic rule violations, predicted collisions, and mode collapse, guiding the model toward scene-consistent and safety-compliant predictions. We train and evaluate our approach on real-world V2X data sent from the intersection to the vehicle and collected in urban corridors. In addition to standard trajectory metrics (ADE, FDE), we introduce ITS-relevant safety indicators, including infrastructure and rule violation rates. Experimental results demonstrate that the proposed training scheme significantly reduces critical violations while maintaining comparable prediction accuracy and real-time performance, highlighting the potential of digital twin-driven multi-loss learning for V2X-enabled intelligent transportation systems.
Figures & tables
| Split | Objects | 1s | 2s | 3s | 5s |
|---|---|---|---|---|---|
| Train | 15 843 | 971 668 | 921 277 | 876 418 | 797 690 |
| Val | 3 395 | 227 450 | 216 105 | 205 976 | 188 287 |
| Test | 3 396 | 187 587 | 176 715 | 166 958 | 149 939 |
| Total | 22 634 | 1 386 705 | 1 314 097 | 1 249 352 | 1 135 916 |
| Quantity | Range | Notes |
|---|---|---|
| History dx/dy (input) | … m | 2 s 50 km/h max |
| Future dx/dy (1 s) | … m | cumulative position |
| Future dx/dy (5 s) | … m | cumulative position |
| , | … m/s | not normalised |
| Lane distance / 100 | … | |
| Lane heading / | … |
| Variant | Extra losses | Description |
| Baseline | — | MSE only |
| Map_Loss | Lane proximity | |
| Collision_Loss | Batch repulsion | |
| Twin_All | Both digital-twin losses | |
| CV | (no training) | Constant velocity |
| KF-CA | (no training) | Kalman–Singer |
| Model | ADE | FDE | RMSE | NL-ADE |
|---|---|---|---|---|
| CV | 0.931 | 1.957 | 1.111 | 1.098 |
| KF-CA | 1.001 | 2.286 | 1.217 | 1.169 |
| Baseline | 0.548 | 1.107 | 0.643 | 0.642 |
| Map_Loss | 0.716 | 1.268 | 0.803 | 0.760 |
| Collision_Loss | 0.778 | 1.255 | 0.859 | 0.797 |
| Twin_All | 0.936 | 1.484 | 1.021 | 0.917 |
Multi-Agent Trajectory Prediction
Multi-Agent Trajectory Prediction forecasts the possible future paths of interacting people, vehicles, robots, or other agents.
See all 79 papers