Building Real-time Awareness of Out-of-distribution in Trajectory Prediction for Autonomous Vehicles
Tongfe Guo, Taposh Banerjee, Rui Liu, Lili Su
TL;DR
This work tackles real-time OOD in autonomous-vehicle trajectory prediction by recasting reliability monitoring as a quickest change-point detection problem. It leverages CUSUM, supported by Gaussian-mixture models for pre- and post-change errors, and explores complete, partial, and unknown-knowledge regimes, including a robust shift-based variant for worst-case scenarios. Through experiments on ApolloScape, NGSIM, and NuScenes with two state-of-the-art predictors, the authors demonstrate that CUSUM-based detectors—especially the full-knowledge variant (CUSUM Mix)—achieve the fastest, most reliable detection with controlled false alarms, even for deceptive OOD scenes. The results highlight the practical potential of online OOD awareness to enable timely safety interventions in AV systems, with implications for safer handoffs and adaptive control. The approach combines theoretical guarantees from change-point detection with domain-specific modeling of trajectory prediction errors to deliver a scalable, real-time safety mechanism.
Abstract
Accurate trajectory prediction is essential for the safe operation of autonomous vehicles in real-world environments. Even well-trained machine learning models may produce unreliable predictions due to discrepancies between training data and real-world conditions encountered during inference. In particular, the training dataset tends to overrepresent common scenes (e.g., straight lanes) while underrepresenting less frequent ones (e.g., traffic circles). In addition, it often overlooks unpredictable real-world events such as sudden braking or falling objects. To ensure safety, it is critical to detect in real-time when a model's predictions become unreliable. Leveraging the intuition that in-distribution (ID) scenes exhibit error patterns similar to training data, while out-of-distribution (OOD) scenes do not, we introduce a principled, real-time approach for OOD detection by framing it as a change-point detection problem. We address the challenging settings where the OOD scenes are deceptive, meaning that they are not easily detectable by human intuitions. Our lightweight solutions can handle the occurrence of OOD at any time during trajectory prediction inference. Experimental results on multiple real-world datasets using a benchmark trajectory prediction model demonstrate the effectiveness of our methods.
