A Tri-Layer Plugin to Improve Occluded Detection

Guanqi Zhan, Weidi Xie, Andrew Zisserman

In the complex, three-dimensional environments of the real world, objects are rarely seen in their entirety. A chair might be tucked under a table, or a pedestrian might be partially hidden behind a parked car. While humans intuitively understand that these objects continue to exist behind their "occluders," modern computer vision systems often struggle, either missing hidden parts (under-segmentation) or accidentally including the blocking object in their predictions (over-segmentation).

Researchers from the Visual Geometry Group (VGG) at Oxford and Shanghai Jiao Tong University have introduced a lightweight "plugin" module designed to help two-stage object detectors, such as Mask R-CNN, master the art of seeing through clutter by explicitly modeling spatial relationships.

The Tri-Layer Plugin Architecture

The core innovation is a tri-layer modeling approach that moves beyond simple binary mask prediction. Instead of just predicting a mask for the target object, the detection head is tasked with predicting three distinct layers: the target, the occluder (the object in front), and the occludee (the object behind).

The tri-layer modeling approach decomposes an input image into occludee, target, and occluder layers to better understand spatial relationships.

By concatenating the features of these three layers, the model gains the necessary context to refine the target's boundaries. This approach treats occlusion as a relationship rather than an isolated noise factor. Interestingly, the researchers found that the model doesn't need to know the specific class of the occluder (e.g., "table" vs. "car") to benefit; simply identifying that something is blocking the view is sufficient.

Iterative Refinement and Feature Weighting

Occluded objects often present as fragmented or "separated" masks—for example, a car seen through the slats of a fence. A standard initial bounding box might only capture one visible fragment. To address this, the plugin employs two additional strategies:

  1. Iterative Box Adjustment: The system performs a second pass, using the initial mask prediction to "stretch" or adjust the bounding box to cover the full estimated extent of the object.
  2. RoI Feature Re-weighting: To prevent the model from being distracted by the occluder, the system uses the predicted mask from the first iteration to weight the features, directing the model's attention toward pixels likely belonging to the target.

Data and Benchmarking

Because most standard datasets only label the visible parts of objects, the authors developed a scalable pipeline to generate training data. They used amodal completion to guess the full shapes of objects in the COCO dataset and depth estimation to determine occlusion order. This resulted in two new evaluation benchmarks: Occluded COCO (partially hidden but connected shapes) and Separated COCO (visible parts split into disconnected islands).

Example of an original image and its corresponding ground truth (GT) mask for an occluded object, illustrating the challenge of amodal segmentation.

Key Results and Performance

The plugin demonstrated consistent improvements across various backbones (Swin-T, Swin-S, and Swin-B):

  • Accuracy: On the standard COCO benchmark, adding the plugin to a Swin-T + Mask R-CNN baseline improved BBox mAP by 2.5 points and Mask mAP by 1.4 points.
  • Recall: The most significant gains occurred in difficult cases. On "Separated COCO," recall improved by nearly 3%, and on "Occluded COCO," it increased by over 3%.
  • Generalization: Despite being trained on COCO, the model outperformed specialized state-of-the-art methods on the KINS dataset, achieving 68.5 mIoU.

Conclusion and Future Directions

While the tri-layer plugin significantly improves detection in cluttered scenes, it is currently optimized for two-stage detectors. Adapting this logic to single-stage architectures like YOLO or Transformer-based models like DETR remains a goal for future research. Additionally, incorporating temporal context from video frames could further help disambiguate complex occlusions in dynamic environments.

Summary updated

BibTeX
@inproceedings{zhan2022tri,
  author = {Guanqi Zhan and Weidi Xie and Andrew Zisserman},
  title = {{A Tri-Layer Plugin to Improve Occluded Detection}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=-jFkHX13Cj},
}
Figure