Geo-Supervised Visual Depth Prediction

Xiaohan Fei, Alex Wong, Stefano Soatto

TL;DR

Predicting 3D depth from a single 2D image is an "impossible" task with infinite solutions. This paper introduces geo-supervision, a method that uses the direction of gravity (from inertial sensors) during training to enforce the physical reality that roads are flat and buildings are vertical, significantly improving the accuracy of monocular depth prediction models.

What Problem Does This Paper Address?

Estimating depth from a single image (monocular depth prediction) is a fundamental challenge in computer vision. Because a single 2D image can technically represent an infinite number of 3D configurations, AI models must rely heavily on "priors"—assumptions about how the world is shaped.

Most existing models use generic priors, like "neighboring pixels should have similar depths" (smoothness). However, these don't capture the structural "rules" of our world. The authors argue that gravity is a powerful, globally consistent reference that dictates the shape of almost everything we build (roads, floors, walls) and much of what we don't (trees). The challenge is how to mathematically inject this "sense of gravity" into a neural network so it learns to produce more physically plausible depth maps.

Methods

The core contribution is the Semantically Informed Geometric Loss (SIGL). This isn't a new neural network architecture, but rather a clever set of "rules" added to the loss function during the training phase.

  1. Semantic Guidance: The system uses a semantic segmentation network (PSPNet) to identify what is in the image. It groups pixels into categories like "flat" (roads, sidewalks), "construction" (buildings, fences), and "nature."
  2. Horizontal Plane Loss (LHP): For pixels labeled as "road," the model enforces a prior that their surface normals should align with the gravity vector. Mathematically, it minimizes the variance of 3D points when projected onto the direction of gravity.
  3. Vertical Plane Loss (LVP): For "buildings," the model assumes the surface normals are orthogonal to gravity. Since a wall can face any compass direction, the model samples multiple directions perpendicular to gravity to find the best fit.
  4. Geo-Supervision: During training, gravity data is pulled from IMUs (like the ones in your phone or a car's GPS/IMU unit).

Crucially, the semantic map and the IMU data are only needed during training. At test time, the network takes a simple RGB image and outputs a depth map, having already "learned" the geometric biases induced by gravity.

Datasets

  • KITTI: The gold standard for outdoor autonomous driving scenes.
  • CityScapes: Used for pre-training the semantic segmentation and depth modules.
  • Make3D: Used to test how well the model generalizes to completely new, unseen environments.
  • VISMA: An indoor dataset featuring challenging handheld camera motions (tilts and rotations) to test the model's robustness beyond simple forward-moving cars.

Key Insights and Ideas

  • Gravity as a "Free" Supervisor: Inertial sensors are cheap and ubiquitous. Using them to supervise vision models bridges the gap between pure "black box" learning and classical geometry.
  • Selective Application: The authors found that applying geometric priors blindly hurts performance. By using semantics, they only "force" the model to see a road as flat if it actually is a road.
  • Beyond Smoothness: Standard smoothness priors often "blur" the edges of objects. The gravity prior encourages sharp, planar surfaces where they naturally occur, leading to cleaner reconstructions of the built environment.

Key Results

The authors added their SIGL to several state-of-the-art (SOTA) baselines and saw consistent improvements:

  • KITTI Benchmark: On the "Eigen split," adding geo-supervision to the Godard et al. baseline improved the Absolute Relative (AbsRel) error from 0.148 to 0.139 (lower is better) and boosted the highest accuracy metric ($\delta < 1.25$) from 0.803 to 0.816.
  • Generalization: When a model trained on KITTI was tested on the Make3D dataset, the geo-supervised version outperformed the baseline, proving that the "rules of gravity" are universal and help models adapt to new locations.
  • Indoor Performance: On the VISMA dataset, their "OursVIO++" model significantly outperformed GeoNet, especially in scenes with extreme camera angles where traditional models often fail to understand the floor plane.

Limitations and Future Work

  • Semantic Dependency: The quality of the depth prediction is tethered to the quality of the semantic segmentation. If the model misidentifies a car as a building, it might apply the wrong geometric prior.
  • Complex Geometry: The current model focuses on horizontal and vertical planes. It doesn't help much with "nature" (trees/bushes) or "humans," as these don't have consistent orientations relative to gravity.
  • Learning the Bias: Currently, the researchers manually define which classes are horizontal or vertical. They suggest that future work could involve the network learning these geometric biases directly from the data without manual assignment.

Summary updated

BibTeX
@article{fei2019geo,
  author = {Xiaohan Fei and Alex Wong and Stefano Soatto},
  title = {{Geo-Supervised Visual Depth Prediction}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2019},
  doi = {10.1109/lra.2019.2896963},
}
Figure