SEMANTIC LABELING OF STRUCTURAL ELEMENTS IN BUILDINGS BY FUSING RGB AND DEPTH IMAGES IN AN ENCODER-DECODER CNN FRAMEWORK

Dorota Iwaszczuk, Zoltán Koppányi, Nima Ajam Gard, B. Zha, Charles Toth, Alper Yılmaz2018

Abstract

In the last decade, the demand for accurate indoor scene modeling has surged across applications like emergency response, maintenance, and autonomous navigation. Distinguishing structural elements (walls, floors, ceilings) from movable objects (chairs, tables) is a critical task typically addressed via semantic labeling. While Convolutional Neural Networks (CNNs) are the state-of-the-art for this task, effectively integrating depth information remains an active area of research. This study explores an encoder-decoder CNN architecture that fuses depth maps with RGB images by manipulating the HSV color space. Specifically, we propose replacing the 'Value' (brightness) channel with depth (HSD) and optionally transforming this back to RGB ($R_dG_dB_d$). Our results on the Stanford 2D-3D-S dataset demonstrate that these fusion techniques improve global accuracy and boundary precision, particularly for structural components, achieving up to 92.1% global accuracy.

Introduction

Semantic labeling involves assigning a class label to every pixel in an image. In indoor environments, this is challenging due to complex lighting, occlusions, and the visual similarity between different functional elements (e.g., a door vs. a wall section). While RGB data provides rich texture information, it lacks geometric context. Depth sensors provide this missing dimension, but incorporating a fourth "D" channel into standard 3-channel CNN architectures often increases computational overhead and complicates the use of pre-trained weights. This paper investigates a method to embed depth into a 3-channel format to leverage existing network architectures efficiently.

Methodology

The core of our approach is the use of an encoder-decoder CNN, specifically SegNet, which is optimized for pixel-level labeling. To incorporate depth without increasing the input dimensionality, we developed two fusion strategies:

  1. Fusion F1 (HSD): The RGB image is converted to the HSV (Hue, Saturation, Value) color space. The 'Value' channel, which represents brightness and is often susceptible to lighting noise, is replaced with a normalized depth map (D).
  2. Fusion F2 ($R_dG_dB_d$): The HSD image is transformed back into the RGB color space. This embeds depth information across all three color channels, creating an input that maintains the statistical distribution of natural images, making it highly compatible with networks pre-trained on datasets like ImageNet.
Encoder-decoder CNN architecture for semantic labeling.

The network architecture consists of a series of convolutional layers for feature extraction (encoder) followed by upsampling and convolutional layers to restore the original image resolution for pixel-wise classification (decoder). To handle missing data, depth maps were pre-processed using inpainting techniques.

Comparison of input modalities: (a) RGB, (b) Depth, (c) HSD fusion, and (d) $R_dG_dB_d$ fusion.

Experimental Results

We evaluated our methods using the Stanford 2D-3D-Semantics Dataset (2D-3D-S), which includes 13 classes. To handle the inherent class imbalance (where walls and floors dominate the pixel count), we applied median frequency balancing during training.

Input Type Global Accuracy Mean IoU
RGB (Baseline) 90.9% 81.2%
HSD (Fusion F1) 91.4% 82.0%
$R_dG_dB_d$ (Fusion F2) 92.1% 83.2%
RGBD (4-channel) 93.6% 86.3%

Our investigation shows that fusing RGB and depth significantly improves semantic labeling. While the 4-channel RGBD approach achieved the highest accuracy, the $R_dG_dB_d$ method provided a substantial improvement over the RGB baseline without increasing the number of network parameters. Notably, the Intersection over Union (IoU) scores improved, indicating that depth information is particularly effective at refining object boundaries and structural elements.

Conclusion

This research demonstrates that color-space fusion is an effective way to integrate depth into semantic labeling tasks. By replacing the brightness channel with depth, we provide the network with a more stable geometric signal. The $R_dG_dB_d$ approach, in particular, leverages the benefits of depth while remaining compatible with standard 3-channel CNN architectures. Future work will explore dual-branch architectures to further close the performance gap with 4-channel inputs while maintaining training efficiency.

Summary updated

Abstract

In the last decade, we have observed an increasing demand for indoor scene modeling in various applications, such as mobility inside buildings, emergency and rescue operations, and maintenance. Automatically distinguishing between structural elements of buildings, such as walls, ceilings, floors, windows, doors etc., and typical objects in buildings, such as chairs, tables and shelves, is particularly important for many reasons, such as 3D building modeling or navigation. This information can be generally retrieved through semantic labeling. In the past few years, convolutional neural networks (CNN) have become the preferred method for semantic labeling. Furthermore, there is ongoing research on fusing RGB and depth images in CNN frameworks. For pixel-level labeling, encoder-decoder CNN frameworks have been shown to be the most effective. In this study, we adopt an encoder-decoder CNN architecture to label structural elements in buildings and investigate the influence of using depth information on the detection of typical objects in buildings. For this purpose, we have introduced an approach to combine depth map with RGB images by changing the color space of the original image to HSV and then substitute the V channel with the depth information (D) and use it utilize it in the CNN architecture. As further variation of this approach, we also transform back the HSD images to RGB color space and use them within the CNN. This approach allows for using a CNN, designed for three-channel image input, and directly comparing our results with RGB-based labeling within the same network. We perform our tests using the Stanford 2D-3D-Semantics Dataset (2D-3D-S), a widely used indoor dataset. Furthermore, we compare our approach with results when using four-channel input created by stacking RGB and depth (RGBD). Our investigation shows that fusing RGB and depth improves results on semantic labeling; particularly, on structural elements of buildings. On the 2D- 3D-S dataset, we achieve up to 92.1 % global accuracy, compared to 90.9 % using RGB only and 93.6 % using RGBD. Moreover, the scores of Intersection over Union metric have improved using depth, which shows that it gives better labeling results at the boundaries.
BibTeX
@inproceedings{iwaszczuk2018semantic,
  author = {Dorota Iwaszczuk and Zoltán Koppányi and Nima Ajam Gard and B. Zha and Charles Toth and Alper Yılmaz},
  title = {{SEMANTIC LABELING OF STRUCTURAL ELEMENTS IN BUILDINGS BY FUSING RGB AND DEPTH IMAGES IN AN ENCODER-DECODER CNN FRAMEWORK}},
  booktitle = {˜The},
  year = {2018},
  doi = {10.5194/isprs-archives-xlii-1-225-2018},
}
Figure