Abstract
Active stereo systems, such as the Intel RealSense, are critical for robotics and augmented reality due to their ability to estimate depth in textureless environments via infrared (IR) pattern projection. Despite the success of deep learning in passive stereo, active stereo has largely relied on handcrafted algorithms due to the scarcity of ground-truth depth data. We introduce ActiveStereoNet (ASN), the first end-to-end deep learning architecture designed specifically for active stereo. By employing a self-supervised training pipeline with novel loss functions, ASN achieves a subpixel precision of 0.03 pixels (1/30th of a pixel) and operates in real-time at 60Hz.
Introduction
Active stereo cameras project a pseudo-random IR pattern onto a scene to provide artificial texture, enabling depth estimation on surfaces like blank walls. While passive stereo has benefited from deep learning, active stereo faces unique challenges: illumination bias (where closer objects appear brighter), local minima in optimization due to high-frequency dot patterns, and complex occlusions. Furthermore, obtaining dense ground-truth depth for real-world IR scenes is technically challenging, limiting the use of supervised learning.
ActiveStereoNet addresses these issues by treating depth estimation as a self-supervised learning problem, eliminating the need for ground-truth data while outperforming traditional geometric methods.
Methodology
The ASN architecture utilizes a two-stage approach: a low-resolution cost volume for initial disparity estimation followed by a residual refinement network to recover high-frequency details and sharp edges. The core innovation lies in its self-supervised training pipeline, which incorporates physical priors of active illumination.
Self-Supervised Training Pipeline
- Weighted Local Contrast Normalization (WLCN): To mitigate illumination bias caused by the inverse square law of light, WLCN normalizes IR images locally. This ensures the network focuses on the projected pattern rather than absolute brightness.
- Adaptive Support Weights (ASW): To handle the "spiky" optimization landscape of IR dots, the loss is aggregated over a window using ASW. This technique prevents blurring across depth discontinuities, preserving object boundaries.
- Invalidation Network: A dedicated sub-network predicts a confidence mask to identify occlusions and invalid regions. By enforcing left-right consistency as a hard constraint, the model learns to ignore unmatchable pixels instead of producing "flying pixel" artifacts.
Experimental Results
The model was evaluated using a combination of 10,000 real-world IR pairs from office environments and 10,000 synthetic frames with simulated Kinect-style patterns.
- Precision and Quality: ASN achieved a subpixel disparity precision of 0.03 pixels, an order of magnitude improvement over traditional handcrafted methods (typically 0.1–0.2 pixels). Qualitatively, ASN produces significantly cleaner depth maps with fewer artifacts compared to standard sensor firmware.
- Performance: Inference takes approximately 15ms per frame on an NVIDIA Titan X, enabling real-time 60Hz operation.
- Generalization: The model generalizes effectively to unseen complex scenes, including those with people and foliage, despite being trained primarily on indoor office data.
Conclusion
ActiveStereoNet demonstrates that deep learning can be both more robust and more precise than traditional geometric descriptors for active stereo. By integrating physical constraints into a self-supervised loss, the system overcomes the lack of ground-truth data and sets a new state-of-the-art for real-time depth sensing. Future work will explore the integration of semantic cues to further improve the reconstruction of thin structures and transparent surfaces.
Summary updated