🤖 AI Summary
Existing pedestrian trajectory prediction methods often neglect environmental constraints, leading to predicted trajectories that frequently collide with static obstacles. To address this, we propose the Environment Collision Avoidance Module (ECAM), the first approach to introduce contrastive learning into environment-aware trajectory prediction. ECAM explicitly models spatial relationships between pedestrians and obstacles via an environment attention mechanism, obstacle-distance-aware encoding, and multi-scale spatial constraint modeling. Designed as a plug-and-play module, ECAM integrates seamlessly with existing backbone networks without architectural modifications. Evaluated on the ETH/UCY benchmark, ECAM reduces the environment collision rate of state-of-the-art methods by 40–50%, significantly enhancing the physical plausibility, safety, and feasibility of predicted trajectories.
📝 Abstract
Human trajectory forecasting is crucial in applications such as autonomous driving, robotics and surveillance. Accurate forecasting requires models to consider various factors, including social interactions, multi-modal predictions, pedestrian intention and environmental context. While existing methods account for these factors, they often overlook the impact of the environment, which leads to collisions with obstacles. This paper introduces ECAM (Environmental Collision Avoidance Module), a contrastive learning-based module to enhance collision avoidance ability with the environment. The proposed module can be integrated into existing trajectory forecasting models, improving their ability to generate collision-free predictions. We evaluate our method on the ETH/UCY dataset and quantitatively and qualitatively demonstrate its collision avoidance capabilities. Our experiments show that state-of-the-art methods significantly reduce (-40/50%) the collision rate when integrated with the proposed module. The code is available at https://github.com/CVML-CFU/ECAM.