Abstract
Glass poses a significant challenge for autonomous systems because its transparency and reflections often deceive standard computer vision models. This paper introduces GDNet, a specialized neural network designed to detect glass by leveraging large-scale contextual cues. Supported by the first large-scale Glass Detection Dataset (GDD) containing nearly 4,000 real-world images, GDNet achieves state-of-the-art performance, outperforming 18 existing methods and providing a critical safety layer for robotic navigation.
The Problem: Why AI is "Blind" to Glass
While humans can usually spot a glass door by looking for subtle reflections or frame boundaries, most AI vision systems fail to perceive it. Standard depth estimation sensors often see right through glass, and instance segmentation models typically detect the objects behind the glass rather than the glass surface itself.
The challenge lies in the fact that glass has no fixed appearance; it adopts the color and texture of its background. Reflections can be weak, and boundaries are often nearly invisible. Failing to detect glass can lead to serious real-world consequences, such as robots or drones colliding with windows and glass walls.
Methodology: GDNet and Contextual Integration
The authors propose GDNet (Glass Detection Network), built on a ResNeXt-101 backbone. The core innovation is the Large-field Contextual Feature Integration (LCFI) module.
Large-field Contextual Feature Integration (LCFI)
Because glass is transparent, it cannot be detected by looking at the glass itself; the model must analyze the relationship between the glass region and the surrounding environment. To achieve this, GDNet requires a massive receptive field to identify distant cues like door handles or color shifts. The LCFI module uses spatially separable convolutions—a vertical (k x 1) followed by a horizontal (1 x k) convolution—to efficiently capture this broad context without the high computational cost of large square kernels.
Multi-Scale and Attention Mechanisms
GDNet integrates four LCFI blocks with varying kernel sizes and dilation rates to capture both fine details and broad environmental context. An attention mechanism uses high-level scene features to guide low-level features toward potential glass regions. The model is trained using a hybrid loss function that combines Binary Cross-Entropy (BCE), Intersection over Union (IoU), and a specialized Edge Loss to focus on subtle boundaries.
The Glass Detection Dataset (GDD)
To train and evaluate GDNet, the authors created the Glass Detection Dataset (GDD), the first of its kind at this scale. It includes 3,916 high-quality images with manually labeled masks, covering 2,827 indoor scenes (offices, bathrooms, malls) and 1,089 outdoor scenes. The dataset encompasses a wide variety of glass types, including windows, doors, mirrors, and glass partitions.
Key Results and Performance
GDNet significantly outperformed 18 state-of-the-art methods originally designed for semantic segmentation, salient object detection, and mirror detection. On the GDD test set, GDNet achieved an IoU of 87.63% and a Balance Error Rate (BER) of 5.62. For comparison, the next best method (MirrorNet) had a BER of 7.67, while standard models like PSPNet performed much worse (BER of 8.79).
Qualitatively, GDNet can serve as a preprocessing step to correct other vision tasks. For example, it can help depth-sensing cameras recognize that a "far away" object is actually behind a nearby glass pane, preventing potential collisions.
Limitations and Future Work
Despite its success, GDNet still struggles in extremely complex scenes where context is insufficient or the glass is perfectly clean and frameless. Future research will focus on improving detection in these extreme cases, exploring motion parallax in video sequences, and integrating the model into real-time robotic navigation systems for field testing.
Summary updated