Taking visual motion prediction to new heightfields

Sébastien Ehrhardt, Aron Monszpart, Niloy J. Mitra, Andrea VedaldiCVIU 2017 · DOI

Abstract

While the basic laws of Newtonian mechanics are well understood, explaining a physical scenario still requires manually modeling the problem with suitable equations and estimating the associated parameters. In order to be able to leverage the approximation capabilities of artificial intelligence techniques in such physics related contexts, researchers have handcrafted the relevant states, and then used neural networks to learn the state transitions using simulation runs as training data. Unfortunately, such approaches are unsuited for modeling complex real-world scenarios, where manually authoring relevant state spaces tend to be tedious and challenging. In this work, we investigate if neural networks can implicitly learn physical states of real-world mechanical processes only based on visual data while internally modeling non-homogeneous environment and in the process enable long-term physical extrapolation. We develop a recurrent neural network architecture for this task and also characterize resultant uncertainties in the form of evolving variance estimates. We evaluate our setup to extrapolate motion of rolling ball(s) on bowls of varying shape and orientation, and on arbitrary heightfields using only images as input. We report significant improvements over existing image-based methods both in terms of accuracy of predictions and complexity of scenarios; and report competitive performance with approaches that, unlike us, assume access to internal physical states.

Introduction

Predicting object motion is a fundamental requirement for both biological and artificial intelligence. While classical Newtonian mechanics provides the theoretical framework for these predictions, applying it to real-world scenarios is challenging. Traditional approaches typically require a handcrafted pipeline: segmenting the scene, estimating physical properties like mass and friction, and numerically integrating equations.

This process often fails in complex, non-homogeneous environments, such as a ball rolling over an irregular, rocky surface (a "heightfield"). Manually modeling every curve of such terrain is impractical. This research explores whether a neural network can implicitly learn physical laws and environmental geometry directly from pixel data, bypassing the need for explicit modeling.

Methodology

The proposed framework utilizes a recurrent neural network (RNN) consisting of three primary modules designed to handle spatial information effectively.

The proposed recurrent neural network architecture featuring Encoder, Transition, and Decoder maps.
  1. Encoder Map ($\phi_{enc}$): Processes a sequence of initial frames (typically 4) to produce a distributed tensor representation. Unlike vector-based models, this 3D grid (H x W x Channels) preserves spatial layout, allowing the network to map physical properties to specific locations.
  2. Transition Map ($\phi_{trans}$): A convolutional sub-network that evolves the internal state. It learns how object features interact with the local environment to predict subsequent states.
  3. Decoder Map ($\phi_{dec}$): Translates the hidden state back into observable physical quantities, such as coordinates.

The researchers developed two variants: DispNet for deterministic position regression, and ProbNet, which outputs a probability distribution. ProbNet captures uncertainty, which naturally increases during long-term extrapolation. For multi-object scenarios, a symmetric interaction module aggregates features from all objects to handle collisions implicitly.

Experimental Setup and Datasets

The model was rigorously evaluated across synthetic and real-world datasets:

  • Synthetic Bowls: Spheres rolling in hemispherical and ellipsoidal bowls.
  • Synthetic Heightfields: Complex 3D surfaces generated using Perlin noise to simulate irregular terrain.
  • Roll4Real: Real-world video data of balls on flat surfaces, bowls, and 3D-printed heightfields.
Visualization of the synthetic environments: (a) ellipsoidal bowl, (b) heightfield generated with Perlin noise, and (c) the simulation setup.

Key Insights

  • Distributed Representations: Spatial tensor representations significantly outperform compressed vectors for physical prediction. By preserving spatial context, the network can "remember" terrain features like hills or dips even after an object has passed them.
  • Implicit Physics Learning: The network successfully accounts for gravity, momentum, and friction without explicit formulas. It also handles multi-ball collisions by observing visual interactions.
  • Auxiliary Tasks: Predicting angular velocity (spin) as an auxiliary task improves positional accuracy. This forces the network to develop a more robust internal model of the underlying physics.
  • Uncertainty Modeling: ProbNet's variance estimation makes the system more robust, correctly identifying regions of high ambiguity in the ball's trajectory.

Results

The proposed model demonstrates superior performance in complex scenarios:

  • Accuracy: On the challenging Heightfield task, the model (PosNet) achieved a pixel error of 6.8, significantly better than the Neural Physics Engine's (NPE) 10.9.
  • Extrapolation: After observing only 4 frames, the model accurately predicts trajectories for up to 40 frames, even on irregular surfaces.
  • Generalization: The multi-object architecture successfully predicts collision outcomes for two and three balls without an explicit collision engine.
  • Real-world Robustness: On the Roll4Real dataset, the model performed competitively with state-of-the-art methods that require ground-truth physical states.

Conclusion

This work demonstrates that neural networks can learn to predict complex motion in non-homogeneous environments directly from video. While predictions eventually drift over very long horizons—a common trait in chaotic systems—the use of spatial tensors and uncertainty modeling provides a powerful path forward for visual physics engines. Future work will focus on object-agnostic representations and handling a variable number of interacting objects.

Summary updated

BibTeX
@article{ehrhardt2017taking,
  author = {Sébastien Ehrhardt and Aron Monszpart and Niloy J. Mitra and Andrea Vedaldi},
  title = {{Taking visual motion prediction to new heightfields}},
  journal = {Comput. Vis. Image Underst.},
  year = {2017},
  doi = {10.1016/j.cviu.2019.02.005},
}
Figure