arXiv(opens in a new tab)Computer ScienceApr 2015Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:1504.06375

Holistically-Nested Edge Detection

Saining Xie, Z. Tu

Abstract

We develop a new edge detection algorithm that addresses two important issues in this long-standing vision problem: (1) holistic image training and prediction; and (2) multi-scale and multi-level feature learning. Our proposed method, holistically-nested edge detection (HED), performs image-to-image prediction by means of a deep learning model that leverages fully convolutional neural networks and deeply-supervised nets. HED automatically learns rich hierarchical representations (guided by deep supervision on side responses) that are important in order to resolve the challenging ambiguity in edge and object boundary detection. We significantly advance the state-of-the-art on the BSD500 dataset (ODS F-score of .782.782) and the NYU Depth dataset (ODS F-score of .746.746), and do so with an improved speed (0.40.4s per image) that is orders of magnitude faster than some recent CNN-based edge detection algorithms.

1 Introduction

In this paper, we address the problem of detecting edges and object boundaries in natural images. This problem is both fundamental and of great importance to a variety of computer vision areas ranging from traditional tasks such as visual saliency, segmentation, object detection/recognition, tracking and motion analysis, medical imaging, structure-from-motion and 3D reconstruction, to modern applications like autonomous driving, mobile computing, and image-to-text analysis. It has been long understood that precisely localizing edges in natural images involves visual perception of various “levels” [18, 27]. A relatively comprehensive data collection and cognitive study [28] shows that while different subjects do have somewhat different preferences regarding where to place the edges and boundaries, there was nonetheless impressive consistency between subjects, e.g. reaching F-score 0.800.80 in the consistency study [28].

Figure

Figure 1: Illustration of the proposed HED algorithm. In the first row: (a) shows an example test image in the BSD500 dataset [28]; (b) shows its corresponding edges as annotated by human subjects; (c) displays the HED results. In the second row: (d), (e), and (f), respectively, show side edge responses from layers 22, 33, and 44 of our convolutional neural networks. In the third row: (g), (h), and (i), respectively, show edge responses from the Canny detector [4] at the scales σ=2.0\sigma=2.0, σ=4.0\sigma=4.0, and σ=8.0\sigma=8.0. HED shows a clear advantage in consistency over Canny.

The history of computational edge detection is extremely rich; we now highlight a few representative works that have proven to be of great practical importance. Broadly speaking, one may categorize works into a few groups such as I: early pioneering methods like the Sobel detector [20], zero-crossing [27, 37], and the widely adopted Canny detector [4]; methods driven by II: information theory on top of features arrived at through careful manual design, such as Statistical Edges [22], Pb [28], and gPb [1]; and III: learning-based methods that remain reliant on features of human design, such as BEL [5], Multi-scale [30], Sketch Tokens [24], and Structured Edges [6]. In addition, there has been a recent wave of development using Convolutional Neural Networks that emphasize the importance of automatic hierarchical feature learning, including N4N^{4}-Fields [10], DeepContour [34], DeepEdge [2], and CSCNN [19]. Prior to this explosive development in deep learning, the Structured Edges method (typically abbreviated SE) [6] emerged as one of the most celebrated systems for edge detection, thanks to its state-of-the-art performance on the BSD500 dataset [28] (with, e.g., F-score of .746.746) and its practically significant speed of 2.52.5 frames per second. Recent CNN-based methods [10, 34, 2, 19] have demonstrated promising F-score performance improvements over SE. However, there still remains large room for improvement in these CNN-based methods, in both F-score performance and in speed — at present, time to make a prediction ranges from several seconds [10] to a few hours [2] (even when using modern GPUs).

Here, we develop an end-to-end edge detection system, holistically-nested edge detection (HED), that automatically learns the type of rich hierarchical features that are crucial if we are to approach the human ability to resolve ambiguity in natural image edge and object boundary detection. We use the term “holistic”, because HED, despite not explicitly modeling structured output, aims to train and predict edges in an image-to-image fashion. With “nested”, we emphasize the inherited and progressively refined edge maps produced as side outputs — we intend to show that the path along which each prediction is made is common to each of these edge maps, with successive edge maps being more concise. This integrated learning of hierarchical features is in distinction to previous multi-scale approaches [40, 41, 30] in which scale-space edge fields are neither automatically learned nor hierarchically connected. Figure 1 gives an illustration of an example image together with the human subject ground truth annotation, as well as results by the proposed HED edge detector (including the side responses of the individual layers), and results by the Canny edge detector [4] with different scale parameters. Not only are Canny edges at different scales not directly connected, they also exhibit spatial shift and inconsistency.

The proposed holistically-nested edge detector (HED) tackles two critical issues: (1) holistic image training and prediction, inspired by fully convolutional neural networks [26], for image-to-image classification (the system takes an image as input, and directly produces the edge map image as output); and (2) nested multi-scale feature learning, inspired by deeply-supervised nets [23], that performs deep layer supervision to “guide” early classification results. We find that the favorable characteristics of these underlying techniques manifest in HED being both accurate and computationally efficient.

Figure

Figure 2: Illustration of different multi-scale deep learning architecture configurations: (a) multi-stream architecture; (b) skip-layer net architecture; (c) a single model running on multi-scale inputs; (d) separate training of different networks; (e) our proposed holistically-nested architectures, where multiple side outputs are added.

References (34)

  • Contour detection and hierarchical image segmentation
  • Deepedge: A multi-scale bifurcated deep network for top-down contour detection
  • Multiscale convolutional neural networks for vision–based classification of cells
  • Supervised learning of edges and object boundaries
  • Fast edge detection using structured forests
  • Ecological statistics of gestalt laws for the perceptual organization of contours
  • Learning hierarchical features for scene labeling
  • Efficient graph-based image segmentation
  • N4-fields: Neural network nearest neighbor fields for image transforms (opens arXiv in a new tab)
  • Perceptual organization and recognition of indoor scenes from rgb-d images
  • Learning rich features from rgb-d images for object detection and segmentation
  • Oriented edge forests for boundary detection (opens arXiv in a new tab)
  • Hypercolumns for object segmentation and fine-grained localization
  • Putting objects in perspective
  • Recovering occlusion boundaries from a single image
  • Boundary detection benchmarking: Beyond f-measures
  • Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex
  • Visual boundary prediction: A deep neural prediction network and quality dissection
  • Statistical edge detection: Learning and evaluating edge cues
  • Sketch tokens: A learned mid-level representation for contour and object detection
  • Nonparametric scene parsing via label transfer
  • Fully convolutional networks for semantic segmentation
  • Theory of edge detection
  • Learning to detect natural image boundaries using local brightness, color, and texture cues
  • Multi-scale deep learning for gesture detection and localization
  • Discriminatively trained sparse code gradients for contour detection
  • Statistics of natural images: Scaling in the woods
  • Convolutional neural networks applied to house numbers digit classification
  • Deepcontour: A deep convolutional feature learned by positive-sharing loss for contour detection draft version
  • Indoor segmentation and support inference from rgbd images
  • Very deep convolutional networks for large-scale image recognition
  • On edge detection
  • Neural mechanisms of form and motion processing in the primate visual system
  • Scaling theorems for zero crossings

Cited by (1)