Abstract
Contour detection has been a fundamental component in many image segmentation and object detection systems. Most previous work utilizes low-level features such as texture or saliency to detect contours and then use them as cues for a higher-level task such as object detection. However, we claim that recognizing objects and predicting contours are two mutually related tasks. Contrary to traditional approaches, we show that we can invert the commonly established pipeline: instead of detecting contours with low-level cues for a higher-level recognition task, we exploit object-related features as high-level cues for contour detection.
Introduction
In classical computer vision, contour detection is typically treated as a "bottom-up" task. The standard pipeline involves finding edges first, grouping them into shapes, and finally identifying objects. However, this approach frequently struggles with "noise"—such as complex textures or shadows—that present as edges but do not represent actual object boundaries.
DeepEdge flips this traditional script by proposing that recognizing an object and finding its contours are two sides of the same coin. If a system understands the high-level geometry of a "tiger" or a "chair," it should be significantly better at distinguishing the object's true boundary from internal textures. The challenge addressed in this work is how to effectively "lift" high-level features from a deep network and apply them to the precise, pixel-level task of contour detection.
The DeepEdge Architecture
The DeepEdge architecture is designed to bridge the gap between high-level object recognition and low-level edge detection through three main pillars:
- Feature Extraction (The KNet): The model leverages the first five convolutional layers of "KNet" (the landmark AlexNet architecture), pre-trained on ImageNet for object classification. These layers are kept fixed, acting as a sophisticated feature extractor that already "understands" complex shapes and object parts.
- Multi-Scale Processing: To capture both local detail and global context, the model extracts patches around candidate edge points (identified by a Canny detector) at four different scales. These patches are resized and passed through the KNet layers in parallel to ensure the network sees both the immediate edge and the surrounding object context.
- The Bifurcated Sub-Network: Features from all scales are fed into two independent branches. The Classification Branch is trained to predict a binary "is this a contour?" label, excelling at high recall. The Regression Branch is trained to predict the fraction of human annotators who agreed a point was a contour, mimicking human reasoning to achieve high precision.
To refine the output, the authors employ a specialized pooling scheme combining max, average, and "center" pooling. Center pooling is particularly critical, as the candidate edge is always located at the center of the input patch.
Key Insights: Why Top-Down Works
The research yields several significant insights into the nature of computer vision tasks. First, the authors demonstrate that high-level features (specifically from Layers 4 and 5 of a CNN) are actually more useful for contour detection than low-level ones. Layer 4, which encodes object parts, provides the necessary context to identify true boundaries while ignoring internal textures like the stripes on a zebra.
Furthermore, the model treats human labeler disagreement as a valuable signal rather than noise. By learning the probability of an edge based on human consensus through the regression branch, the model becomes much more selective and precise. Finally, the multi-scale approach allows the network to confirm that a line is part of a larger, coherent object boundary rather than just a local change in contrast.
Experimental Results
The model was evaluated on the BSDS500 (Berkeley Segmentation Data Set), the gold standard for contour detection, which contains 500 images with multiple human-drawn ground truth annotations.
At the time of publication, DeepEdge achieved a state-of-the-art F-score of 0.753, outperforming previous leaders such as N4-fields and MCG. Notably, at low recall levels, the model achieves nearly 100% precision, indicating that when the model is highly confident, it is almost certainly correct. Qualitatively, the model is superior at ignoring internal object textures while maintaining strong, clean lines for the actual silhouette of the subject.
Conclusion and Future Directions
While DeepEdge represents a significant leap forward, it faces certain limitations. The original implementation is computationally expensive, requiring roughly 60,000 forward passes per image. Future work may involve interpolating feature maps to reduce this to just a few passes. Additionally, because the model makes predictions point-by-point, adding a global optimization step—such as Conditional Random Fields (CRFs)—could improve the "connectedness" of detected contours. Finally, while the sub-networks are trained, the KNet layers remain fixed; future iterations could involve end-to-end fine-tuning specifically for the contour detection task.
Summary updated