TL;DR
Segmenting glass and mirrors is notoriously difficult because they lack a unique visual appearance, instead reflecting or transmitting their surroundings. This paper introduces a novel deep learning framework that separately identifies and then fuses internal and external boundary features, mimicking how humans perceive transparent surfaces to achieve state-of-the-art segmentation results.
What Problem Does This Paper Address?
In computer vision, semantic segmentation—the task of labeling every pixel in an image—usually relies on an object's consistent texture or color. Glass and mirrors break this rule. A glass window might look like the brick wall behind it, and a mirror looks exactly like whatever it’s reflecting. This makes detection a major safety hurdle for autonomous robots and vacuum cleaners.
While recent research has shifted focus toward identifying the boundaries of glass objects, most methods treat the boundary as a single, uniform entity. The authors argue this is insufficient. They observe that the "internal" boundary (refractions and reflections just inside the edge) and the "external" boundary (the physical frame or the transition to the background) provide distinct and varying clues depending on the object. For example, a glass cup has strong internal refractions but a faint external edge, while a window has a very prominent external frame.
Methods
The authors propose a network based on the DeepLabV3+ architecture, enhanced by two novel modules:
- Internal-External Boundary Attention Module (IEBAM): This module explicitly separates the learning of internal and external boundary features. By subtracting internal boundary noise from the main "body" features of the object, it creates a cleaner representation of the glass surface. The IEBAM architecture separates internal and external boundary learning.
- Fused Boundary Attention Module (FBAM): Since different objects rely more heavily on either internal or external cues, FBAM uses a sigmoid-based weighting mechanism to adaptively fuse these features. It then uses this reinforced boundary information as a "query" in a global attention mechanism to refine the final segmentation mask. The FBAM module adaptively fuses boundary features and applies global attention.
- Decomposed Contour Loss: To train the model effectively, they developed a new loss function that assigns higher weights to pixels closer to the boundaries, recognizing that these areas contain the most critical information for identifying glass.
The overall pipeline connects these modules in a cascaded fashion to the backbone network. The complete proposed pipeline connecting IEBAM and FBAM to a DeepLabV3+ backbone.
Datasets
The model was evaluated on six major public benchmarks:
- Glass Segmentation: Trans10k (the largest at 10,000+ images), GDD, GSD, and GSD-S.
- Mirror Segmentation: MSD and PMD.
Key Insights and Ideas
- Boundary Asymmetry: The core "aha moment" is that internal and external boundaries aren't just two sides of the same line; they represent different physical phenomena (refraction vs. framing) and carry different levels of importance depending on the object type.
- Human-Centric Design: The architecture is explicitly designed to mimic human perception, which tends to identify salient boundary features first to define a potential glass region before looking for subtle internal reflections.
- Proximity Matters: By using a "decomposed contour loss," the authors proved that pixels immediately adjacent to the boundary are significantly more informative for the network than pixels in the center of a large glass pane.
Key Results
The proposed method achieved state-of-the-art (SOTA) performance across all six datasets, outperforming previous specialized models like EBLNet and TransLab.
- Trans10k: Achieved a Mean Intersection over Union (mIoU) of 90.79%, a significant lead over the baseline.
- Mirror Detection (MSD): Reached an mIoU of 81.48%, outperforming SOTA mirror detection models.
- Ablation Studies: Removing the IEBAM module caused a significant drop in performance (over 5% mIoU on Trans10k), proving that the separation of boundary features is the primary driver of their success.
Limitations and Future Work
The authors noted that in datasets like GDD, which feature many extreme close-ups or oblique angles, boundaries are often missing from the frame entirely. While their method still improved results in these cases by focusing on whatever boundary fragments were available, the reliance on boundaries remains a potential bottleneck for "boundary-less" glass scenes. Future work might involve better integrating global semantic context for cases where edges are completely occluded.
Summary updated