COPILOT: Human-Environment Collision Prediction and Localization from Egocentric Videos

Boxiao Pan, Bokui Shen, Davis Rempe, Despoina Paschalidou, Kaichun Mo, Yanchao Yang, Leonidas J. Guibas

Abstract

The ability to forecast human-environment collisions from egocentric observations is vital to enable collision avoidance in applications such as VR, AR, and wearable assistive robotics. In this work, we introduce the challenging problem of predicting collisions in diverse environments from multi-view egocentric videos captured from body-mounted cameras. Solving this problem requires a generalizable perception system that can classify which human body joints will collide and estimate a collision region heatmap to localize collisions in the environment. To achieve this, we propose a transformer-based model called COPILOT to perform collision prediction and localization simultaneously, which accumulates information across multi-view inputs through a novel 4D space-time-viewpoint attention mechanism. To train our model and enable future research on this task, we develop a synthetic data generation framework that produces egocentric videos of virtual humans moving and colliding within diverse 3D environments. This framework is then used to establish a large-scale dataset consisting of 8.6M egocentric RGBD frames. Extensive experiments show that COPILOT generalizes to unseen synthetic as well as real-world scenes. We further demonstrate COPILOT outputs are useful for downstream collision avoidance through simple closed-loop control.

Introduction

As we move toward a world of immersive Augmented Reality (AR), Virtual Reality (VR), and wearable assistive robotics like exoskeletons, the risk of "blind" collisions increases significantly. A VR user might inadvertently walk into a wall, or an exoskeleton might fail to prevent a user from tripping over low-lying furniture. Existing solutions often rely on pre-scanned 3D maps or external tracking systems, which are impractical for "in-the-wild" use. Predicting collisions from a user's own perspective is inherently difficult because the system must simultaneously interpret user intent and complex environmental geometry from cameras that are themselves in motion.

Methodology: The COPILOT Framework

We present COPILOT (COllision PredIction and LOcalization Transformer), a novel framework designed to predict and localize collisions using only egocentric video. The core innovation is a 4D Space-Time-Viewpoint Attention mechanism. While standard video transformers typically process spatial and temporal dimensions, COPILOT adds a "viewpoint" dimension to handle inputs from multiple body-mounted cameras (e.g., head, wrists, knees).

The COPILOT framework: Multi-view egocentric inputs are processed through 4D attention to predict joint-specific collisions and localize them via spatial heatmaps.

The model alternates between two attention modes:

  1. Space-Viewpoint Attention: Integrates information across different cameras at the same moment to understand the 3D structure of the environment.
  2. Space-Time Attention: Tracks how objects and body parts move over a temporal window to predict future trajectories.

The architecture branches into a Prediction Branch, which identifies which of 10 major body joints are at risk, and a Localization Branch, which generates a spatial heatmap highlighting risky regions in the environment.

Data Generation and Training

Real-world data of human-environment collisions is rare and difficult to annotate. To overcome this, the researchers developed a massive synthetic pipeline using 100 high-quality 3D scans from the Matterport3D and Gibson datasets. Realistic human walking paths were generated using HuMoR, a generative motion model, resulting in a dataset of 8.6 million egocentric RGBD frames. Each frame is automatically annotated with ground-truth collision labels and spatial heatmaps, providing a robust foundation for training.

Examples of the diverse synthetic environments and virtual human motions used to train the COPILOT model.

Key Results and Insights

Extensive testing shows that COPILOT generalizes remarkably well to unseen synthetic and real-world scenes, such as cluttered office environments. Key findings include:

  • Multi-task Synergy: Training the model to localize collisions (via heatmaps) actually improves its ability to predict if a collision will occur. The spatial task forces the model to learn a deeper understanding of scene geometry.
  • Distributed Perception: While a single head-mounted camera is useful, adding cameras to the knees and wrists significantly boosts accuracy by revealing obstacles (like low stools) that might be occluded from the head's perspective.
  • Performance: COPILOT achieved over 84% accuracy in unseen synthetic environments. The model operates in real-time, with a single-view version processing frames in just 0.02 seconds.
  • Collision Avoidance: In closed-loop simulations, a simple controller using COPILOT’s outputs successfully steered virtual humans away from obstacles, avoiding 29% to 35% of potential collisions.

Conclusion

COPILOT demonstrates the feasibility of real-time collision prediction and localization from egocentric video. Future work will focus on "scene-aware" motion synthesis to better mimic human reactive behavior and developing more sophisticated AI-driven evasive maneuvers that utilize per-joint collision data to enhance the safety of assistive robotics and immersive technologies.

Summary updated

BibTeX
@inproceedings{pan2023copilot,
  author = {Boxiao Pan and Bokui Shen and Davis Rempe and Despoina Paschalidou and Kaichun Mo and Yanchao Yang and Leonidas J. Guibas},
  title = {{COPILOT: Human-Environment Collision Prediction and Localization from Egocentric Videos}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=-DDsVam4Xc5},
}
Figure