NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Physics-based Differentiable Depth Sensor Simulation

Benjamin Planche, Rajat Vikram Singh

TL;DR

This paper introduces a novel differentiable simulation pipeline for depth sensors (DDS) that bridges the gap between synthetic and real-world depth data. By enabling gradient-based optimization of sensor and scene parameters, DDS generates highly realistic synthetic depth scans that significantly improve the performance of deep learning models for various recognition tasks, outperforming existing simulation and domain adaptation methods.

What Problem Does This Paper Address?

Modern computer vision applications heavily rely on deep neural networks trained on large, labeled datasets. However, acquiring and annotating such datasets for real-world scenarios is costly and time-consuming. While significant progress has been made in simulating realistic color images for training, the simulation of depth sensors, particularly structured-light depth sensors, has lagged behind. Existing depth simulation methods often require extensive domain knowledge, fail to generalize to new sensors or scenes, or produce "perfect" scans that lack the noise and artifacts present in real-world data, leading to poor performance when models trained on them are deployed. This paper addresses this gap by proposing a differentiable simulation pipeline that can accurately model depth sensor physics and be optimized for specific sensors and scenes, thereby generating more realistic synthetic data for training robust depth-based recognition models.

Methods

The core of the proposed system is a Differentiable Depth Sensor Simulation (DDS) pipeline. It combines physics-based 3D rendering with custom differentiable algorithms to mimic the behavior of structured-light depth sensors. Key components include:

  • Differentiable Ray-Tracing: Leverages existing techniques to simulate light transport and pattern projection onto 3D scenes. This module is designed to be differentiable with respect to scene and sensor parameters.
  • Soft Shadow Mapping: A novel procedure to model shadow-related capture failures, which are common in depth sensors due to occlusions. This is implemented as a differentiable function.
  • Differentiable Stereo Block-Matching: A continuous implementation of the classic stereo block-matching algorithm is proposed to infer disparity maps from stereo signals. This module is optimized for efficiency and differentiability, allowing for gradient-based optimization of parameters like the softargmax temperature.
  • Optional Noise and Post-Processing: The pipeline can incorporate statistical noise models and learnable post-processing modules (e.g., convolutional layers) to further enhance realism and compensate for unmodelled phenomena.

The differentiability of the entire pipeline allows for end-to-end optimization using gradient descent, enabling the system to learn missing sensor parameters or adapt to specific scene properties.

Datasets

The paper utilizes the following datasets for training and evaluation:

  • LineMOD Dataset: Used for training and evaluating depth-based instance classification and pose estimation. The cropped version of this dataset was used.
  • 2D-3D-Semantic Dataset: Used for training and evaluating depth-based semantic segmentation. This dataset provides reconstructed 3D models of indoor scenes, allowing for the generation of synthetic scans aligned with real ones.
  • Microsoft Kinect V1 Sensor Data: Used as a reference for realism studies and noise modeling.
  • Matterport Pro2 Sensor Data: Used for qualitative comparisons of simulated scans against real data.
  • Middlebury Stereo Dataset: Used to demonstrate the standalone application of the differentiable block-matching algorithm for stereo color image depth estimation.

Key Insights and Ideas

  • Differentiability is Key for Realism: By making the entire depth sensor simulation pipeline differentiable, the system can be optimized to match real-world sensor characteristics and scene properties, leading to significantly more realistic synthetic data.
  • Bridging the Realism Gap for Depth: Unlike color image simulation, depth sensor simulation has been underexplored. DDS effectively closes this gap, providing synthetic data that is more valuable for training robust depth-based recognition models.
  • Unsupervised Optimization for Sensor Adaptation: The ability to optimize sensor parameters (like noise models, pattern characteristics) and scene parameters (like object poses) unsupervisedly is a significant advantage, allowing DDS to adapt to new sensors and environments without requiring manual tuning.
  • Combining Simulation with Domain Adaptation: The paper demonstrates that DDS can be seamlessly integrated with domain adaptation techniques, further boosting performance, especially when combined with online data augmentation.
  • Beyond Simulation: A 3D-to-2.5D Transformer: The differentiable nature of DDS positions it as a powerful tool that can act as a transformer within larger computer vision pipelines, mapping 3D scene information to realistic 2.5D depth representations.

Key Results

  • Improved Recognition Performance: Models trained with DDS achieved significantly better performance on real-world depth-based tasks (classification, pose estimation, semantic segmentation) compared to those trained with previous simulation tools or domain adaptation methods. For instance, in semantic segmentation on the 2D-3D-Semantic dataset, DDS-trained models achieved accuracy on par with or exceeding models trained on real data.
  • Realistic Synthetic Scans: DDS generates synthetic depth scans that exhibit realistic noise, quantization, and stereo block-mismatching artifacts, closely resembling real sensor data.
  • Competitive Performance with Domain Adaptation: Off-the-shelf DDS performed comparably to existing simulation tools, and when optimized, it outperformed them and even some GAN-based domain adaptation techniques, especially in scenarios with limited real data.
  • Effective Optimization: The paper shows that DDS can effectively optimize scene parameters (e.g., object pose) to reduce sensor error and sensor parameters (e.g., light pattern) to improve accuracy for specific scenes.
  • Efficiency: The differentiable nature allows for optimization with a fraction of the parameters required by some domain adaptation methods, leading to faster convergence.

Limitations and Future Work

  • Block-Matching Robustness: While DDS's differentiable block-matching is an improvement, it can still be less robust to block skewing than multi-pass methods used in other simulations, especially with highly tilted surfaces. The authors suggest exploring more advanced block-matching strategies.
  • Computational Footprint: While optimized, rendering realistic depth scans can still be computationally intensive, though this can be mitigated by offline rendering.
  • Scene Parameter Optimization Complexity: Optimizing scene parameters for realism can be computationally expensive and requires careful framing and constraints to avoid exploding complexity, especially for complex real-life scenes. This is suggested as a direction for future work.
  • Unspecified Phenomena: While DDS can learn to compensate for some unmodelled phenomena, there might be complex, sensor-specific issues that require further investigation.

Summary updated

BibTeX
@inproceedings{planche2021physics,
  author = {Benjamin Planche and Rajat Vikram Singh},
  title = {{Physics-based Differentiable Depth Sensor Simulation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01412},
}
Figure