Abstract
In this work, we propose a technique to combine bottom-up segmentation, in the form of SLIC superpixels, with sliding window detectors such as Deformable Part Models (DPMs). The merit of our approach lies in "cleaning up" the low-level HOG features by exploiting the spatial support of SLIC superpixels. This can be understood as using segmentation to split the feature variation into object-specific and background changes. Rather than committing to a single segmentation, we use a large pool of SLIC superpixels and combine them in a scale-, position-, and object-dependent manner to build soft segmentation masks. These masks are computed efficiently for every candidate window during training and detection. We use these masks to construct enhanced, background-invariant features to train DPMs. On the PASCAL VOC 2007 dataset, our approach outperforms the standard DPM in 17 out of 20 classes, yielding an average increase of 1.7% AP. Additionally, we demonstrate the robustness of this approach by extending it to dense SIFT descriptors for large displacement optical flow.
Introduction
Traditional object detection often relies on a "sliding window" approach, where a classifier like a Deformable Part Model (DPM) evaluates thousands of rectangular boxes across an image. While effective, this method has a fundamental flaw: objects are rarely perfect rectangles. When a detector evaluates a candidate window for a "cat" or a "table," the rectangular bounding box inevitably includes background clutter—such as grass or furniture. These background signals "creep into" the low-level features (like HOG), increasing data variability and making it harder for the classifier to distinguish the object from its environment.
Previous attempts to integrate image segmentation were often too computationally expensive for sliding window applications or acted as a rigid front-end that might prematurely discard objects. This work addresses these issues by introducing a fast, "segmentation-aware" feature enhancement process.
Methodology
The proposed approach combines bottom-up superpixel generation with top-down detection hypotheses. Instead of a single rigid segmentation, the method utilizes a pool of SLIC superpixels generated at multiple scales to create dynamic, soft foreground masks.
Soft Mask Generation
For every candidate detection window, the system identifies superpixels containing the window's center. These are ranked based on their fit to the bounding box using Intersection over Union (IoU). The top-ranked superpixels are averaged to create an "affinity measure," indicating the likelihood that a specific HOG block belongs to the object rather than the background. This affinity is passed through a sigmoid function, controlled by a "segmentation hardness" parameter ($\lambda$), to create a soft mask.
Feature Enhancement
The original HOG features are split into two channels: a figure-HOG (weighted by the mask) and a background-HOG (the remainder). To handle categories where the center might be empty space (e.g., bicycles), an $\alpha$ parameter blends these segmentation-aware features with standard HOG features. This process is efficient enough to be performed on the fly during both training and detection for every root and part filter in a DPM.
Experimental Results
PASCAL VOC 2007
The primary evaluation was conducted on the PASCAL VOC 2007 benchmark. The segmentation-aware DPM outperformed the standard DPM in 17 out of 20 classes, achieving an average increase of 1.7% in Average Precision (AP), improving from 32.0% to 33.7%. Qualitative analysis shows that the masks successfully suppress background clutter, allowing HOG filters to focus on the object's intrinsic shape.
Optical Flow
The method was also extended to dense SIFT descriptors for large-displacement optical flow, evaluated on the Berkeley Motion Dataset. The approach matched the performance of state-of-the-art segmentation-aware descriptors while being significantly faster to compute.
Discussion and Conclusion
The core insight of this work is that segmentation should be used to "clean" input signals for classifiers rather than just finding boundaries. By using soft masks instead of binary cuts, the model remains robust to superpixel boundary errors.
However, the method relies on a "center heuristic," assuming the object occupies the center of the bounding box. This can fail for highly non-convex objects. Future work could involve learning the "hardness" and "blending" parameters per-instance rather than per-category, and exploring alternative superpixel methods to further improve spatial support at low computational costs.
Summary updated