EgoEnv: Human-centric environment representations from egocentric video

Tushar Nagarajan, Santhosh Kumar Ramakrishnan, Ruta Desai, James Hillis, Kristen Grauman

When we move through our homes, we don't just see what’s directly in front of us. We have a persistent "mental map" of our environment—we know the fridge is behind us and the sink is to our left, even if we aren't looking at them. Current AI models for egocentric (first-person) video, however, suffer from "tunnel vision." They typically process short, 1-2 second clips in isolation, remaining detached from the underlying 3D physical space.

In their paper EgoEnv, researchers from UT Austin and FAIR (Meta) propose a way to bridge this gap by learning environment-aware representations that link video clips to their broader physical context.

TL;DR

EgoEnv learns to represent the 3D environment surrounding a camera-wearer by training models in simulation to predict (potentially unseen) local surroundings. These environment-aware features significantly improve performance on real-world tasks like room prediction and episodic memory retrieval, achieving state-of-the-art results on the Ego4D Natural Language Queries (NLQ) challenge.

What Problem Does This Paper Address?

Standard video understanding models are great at recognizing immediate actions (e.g., "cutting an onion") but struggle with tasks that require spatial reasoning (e.g., "where did I leave my keys?"). This is because they lack a sense of the persistent environment.

In egocentric video, the camera is constantly moving, and objects of interest are often out of view. To truly understand human activity, a model needs to ground the video in its 3D context. However, supervising such a model is difficult: how do you get ground-truth labels for what is behind a person in a real-world YouTube video?

Figure 1: Main idea. Video models trained on short egocentric clips capture a narrow, instantaneous view of human activity (e.g., cutting an onion at the counter) without considering the broader context to which the activity is tied (e.g., the pan to the left to cook the onions, the fridge further behind to store leftovers). We propose to ground video in its underlying 3D environment by learning representations that are predictive of their surroundings, thereby enhancing standard clip-based models with complementary environment information.

Methods

The authors propose a two-stage approach that leverages the power of simulation to provide perfect environmental "omniscience" during training.

  1. Defining the "Local Environment State": The researchers define a target task: predicting the set of objects and their rough distances in four cardinal directions (front, back, left, right) relative to the camera-wearer at any given time.
  2. Simulation-to-Real Pretraining: They use the Habitat simulator with photo-realistic HM3D scenes to generate thousands of video walkthroughs. Because it's a simulation, they have perfect ground truth for every object's location and the agent's exact pose.
  3. Implicit Pose Embeddings: Recognizing that real-world camera poses are noisy, they train a transformer to learn implicit pose embeddings directly from video sequences. This allows the model to relate different frames spatially without needing perfect SLAM at test time.
  4. Environment Memory: A transformer encoder-decoder architecture aggregates visual information across a video to build an "environment memory." This memory is then queried to produce the EgoEnv feature, which can be dropped into existing video models to provide spatial context.
Figure 3: The EgoEnv model framework, showing how pose embeddings and visual features are encoded into an environment memory.

Datasets

  • Pre-training (Simulation): HM3D (15k walkthroughs in 900 scenes) was used to learn the core environment representations.
  • Evaluation (Simulation): Matterport3D (MP3D) served as a test-bed for generalization to new simulated environments.
  • Evaluation (Real-World): The model was tested on HouseTours (YouTube house tours) and Ego4D (a massive dataset of daily human activities).

Key Insights and Ideas

  • Predicting the Unseen is a Powerful Signal: By forcing the model to predict what is behind or beside the camera, it learns the "natural statistics" of indoor layouts (e.g., if you see a stove, there’s likely a sink nearby).
  • Simulation Transfers to Reality: Despite being trained entirely on simulated "agent" walkthroughs, the EgoEnv features successfully generalized to messy, "in-the-wild" human videos.
  • Context Matters Most for "Hard" Frames: The authors found that EgoEnv provides the biggest boost when the immediate video frame is ambiguous—such as when a person is facing a blank wall or moving quickly between rooms.

Key Results

The EgoEnv features were evaluated on two main tasks: ROOMPRED (identifying the room category) and NLQ (finding a specific moment in a long video based on a text query).

  • State-of-the-Art: EgoEnv achieved 1st place on the public Ego4D NLQ leaderboard at the time of submission (and currently ranks 3rd).
  • Consistency: On the HouseTours dataset, EgoEnv features improved room prediction accuracy significantly, especially on "hard" instances where standard scene classification models (like PlacesCNN) failed.
  • Robustness: The model outperformed baselines that had access to privileged information, such as ground-truth camera poses at inference time.
Figure 6: Accuracy on the ROOMPRED task. EgoEnv (red line) consistently outperforms baselines, particularly as the difficulty of the instances increases.

Limitations and Future Work

While EgoEnv is a major step forward, the authors note several areas for improvement:

  • Static vs. Dynamic: The current simulation training assumes a static environment. In the real world, people move objects, which can break the "mental map."
  • 2D vs. 3D: The local state is currently defined in a 2D top-down sense. Incorporating full 3D information (like height and volume) could lead to even richer representations.
  • Sim-to-Real Gap: There is still a performance gap between videos that closely match the training scenarios (indoor navigation) and "in-the-wild" activities like gardening or outdoor sports.

For more details, check out the project page.

Summary updated

BibTeX
@inproceedings{nagarajan2023egoenv,
  author = {Tushar Nagarajan and Santhosh Kumar Ramakrishnan and Ruta Desai and James Hillis and Kristen Grauman},
  title = {{EgoEnv: Human-centric environment representations from egocentric video}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=rybsHQ4DXy},
}
Figure