Sparse Depth Completion with Semantic Mesh Deformation Optimization

Bing Zhou, Matias Aiskovich, Sinem Güven KayaarXiv 2021

Abstract

Sparse depth measurements are widely available in many applications such as augmented reality, visual inertial odometry and robots equipped with low cost depth sensors. Although such sparse depth samples work well for certain applications like motion tracking, a complete depth map is usually preferred for broader applications, such as 3D object recognition, 3D reconstruction and autonomous driving. Despite the recent advancements in depth prediction from single RGB images with deeper neural networks, the existing approaches do not yield reliable results for practical use. In this work, we propose a neural network with post-optimization, which takes an RGB image and sparse depth samples as input and predicts the complete depth map. We make three major contributions to advance the state-of-the-art: an improved backbone network architecture named EDNet, a semantic edge-weighted loss function and a semantic mesh deformation optimization method. Our evaluation results outperform the existing work consistently on both indoor and outdoor datasets, and it significantly reduces the mean average error by up to 19.5% under the same settings of 200 sparse samples on NYU-Depth-V2 dataset.

Introduction

Depth sensing is a cornerstone of modern computer vision, powering technologies from augmented reality (AR) to autonomous navigation. While high-end LiDAR sensors provide dense and accurate depth information, their high cost often limits their deployment. Conversely, monocular RGB cameras and low-cost sparse sensors are more accessible but leave significant gaps in spatial data. The task of sparse depth completion aims to bridge this gap by generating a dense, accurate depth map from a standard RGB image and a limited set of sparse depth "anchor" points.

Existing Convolutional Neural Network (CNN) approaches often struggle with this task. They frequently produce blurry object boundaries and fail to strictly adhere to the high-precision sparse input, often treating these points as mere suggestions rather than hard constraints. This paper introduces a hybrid framework that combines a custom neural architecture with geometric post-optimization to address these shortcomings.

Proposed Methodology

The proposed system utilizes a three-stage approach to achieve high-fidelity depth completion.

1. EDNet Architecture

The backbone of the system is EDNet, a fully convolutional encoder-decoder network. Drawing inspiration from EfficientNet, the encoder employs a "compound scaling" strategy—optimizing network width, depth, and resolution simultaneously. This allows the model to capture fine-grained features necessary for depth estimation without the prohibitive computational cost of larger models.

2. Semantic Edge-Weighted Loss

Standard depth loss functions often treat all pixels equally, leading to "bleeding" artifacts where depth values from foreground objects spill into the background. To mitigate this, the authors utilize a pre-trained semantic segmentation network to identify object boundaries. A higher weight ($\alpha$) is applied to the loss at these semantic edges during training, forcing the network to learn sharp transitions between distinct objects.

3. Semantic Mesh Deformation (SMD)

The core innovation is the Semantic Mesh Deformation (SMD) post-optimization step. This process leverages the insight that while CNNs are excellent at predicting local shapes, they often struggle with absolute global positioning.

Overview of the depth completion pipeline: (a) RGB input, (b) sparse depth samples, (c) ground truth, (d) CNN prediction, (e) error map, and (f) final mesh representation.

The SMD process involves:

  • Segmentation: The predicted depth map is partitioned into individual objects based on semantic masks.
  • Mesh Generation: Each segment is converted into a 3D mesh using Delaunay triangulation.
  • Deformation: An "as-rigid-as-possible" (ARAP) deformation is applied. The predicted object shapes act as flexible "skins" that are deformed to align perfectly with the sparse ground-truth anchor points. This corrects the absolute 3D position of objects while preserving the realistic local geometry predicted by the CNN.

Experimental Results

The model was rigorously evaluated on the NYU-Depth-V2 (indoor) and KITTI (outdoor) datasets.

  • NYU-Depth-V2 Performance: In a highly sparse setting of only 200 samples, the method achieved a Mean Average Error (MAE) of 0.107m, representing a 19.5% improvement over the previous state-of-the-art (0.133m).
  • KITTI Performance: On the outdoor KITTI dataset, the approach maintained superior performance across various sample densities, achieving an RMSE of approximately 3.1m with 500 sparse samples.
  • Visual Quality: Qualitative analysis confirms that the SMD approach produces significantly sharper object boundaries and eliminates the "halo" effects common in pure CNN-based methods.

Conclusion

By combining the shape-prediction capabilities of deep learning with the geometric precision of mesh deformation, this work sets a new standard for sparse depth completion. The use of semantic information as a guide for both loss functions and geometric optimization ensures that the resulting depth maps are not only numerically accurate but also structurally consistent with the real world. Future work will explore making the mesh deformation step differentiable to enable end-to-end training of the entire pipeline.

Summary updated

BibTeX
@misc{zhou2021sparse,
  author = {Bing Zhou and Matias Aiskovich and Sinem Güven Kaya},
  title = {{Sparse Depth Completion with Semantic Mesh Deformation Optimization}},
  year = {2021},
  eprint = {2112.05498},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.05498},
}
Figure