Deep Active Contours

Christian Rupprecht, Elizabeth Huaroc, Maximilian Baust, Nassir NavabarXiv 2016

Introduction

Image segmentation often faces a trade-off between semantic accuracy and computational efficiency. While modern Convolutional Neural Networks (CNNs) like U-Net provide high accuracy, they typically require processing the entire image at a fixed resolution, which is computationally expensive for large images or specific object segmentation. Traditional active contours (snakes) offer an interactive and flexible alternative but often fail due to reliance on hand-crafted features like image gradients that struggle with background clutter.

This paper introduces "Deep Active Contours," a framework that integrates the semantic power of CNNs with the efficiency of active contours. By training a lightweight CNN to predict boundary directions from local patches along an evolving curve, the method achieves high-quality segmentation that scales with the object's perimeter rather than the total image area.

Methodology

The core of the approach is an iterative curve update process. Instead of a global pixel-wise classification, the system focuses exclusively on the boundary.

Patch Extraction and Vector Prediction

At discrete points $C_k$ along the current contour, $64 \times 64$ image patches $P_k$ are extracted. These patches are aligned with the contour's outer normal $\eta_k$ to ensure rotation invariance. A lightweight CNN then processes these patches to predict a 2D vector $\nu_k$ pointing toward the nearest true object boundary.

Local patch extraction and boundary vector prediction along the contour.

CNN Architecture

The regression model is inspired by AlexNet but significantly more compact. It consists of four convolutional layers followed by two fully connected layers, outputting the predicted displacement vector. This lightweight design allows the model to be trained from scratch in under two hours on consumer-grade hardware.

Evolution and Regularization

The predicted vectors form a flow field that pushes and pulls the contour. To handle potential outliers or noisy predictions from the CNN, the authors apply Sobolev-type regularization. This mathematical smoothing acts as a shock absorber, ensuring the curve remains stable and robust even when local network predictions are inaccurate.

Evaluation and Results

The method was evaluated on the PASCAL VOC 2012 dataset and the STACOM Left Ventricle Challenge to demonstrate its versatility across general and medical imaging tasks.

  • PASCAL VOC 2012: The model demonstrated high precision, with boundary distance errors under 2 pixels in most cases. Over 80% of predicted vectors were within 45 degrees of the ground truth across various object categories.
  • STACOM MRI: In medical imaging, the Deep Active Contour outperformed traditional Sobolev active contour baselines, achieving median DICE scores between 0.90 and 0.93, compared to the baseline's 0.88-0.89.

Discussion and Insights

A key advantage of this method is its logarithmic complexity relative to the object's area, as it only processes pixels along the 1D contour. This makes it highly efficient for high-resolution imagery. Furthermore, the network appears to learn deeper object structures; by aggregating boundary "votes," the authors observed the network identifying internal 3D edges, such as windshields, rather than just 2D silhouettes.

While robust to occlusions and background clutter, the current implementation struggles with extremely fine details (e.g., thin animal limbs) due to the $64 \times 64$ patch resolution. Future work involves exploring coarse-to-fine strategies and multi-class networks to further enhance detail recovery and versatility.

Summary updated

BibTeX
@misc{rupprecht2016deep,
  author = {Christian Rupprecht and Elizabeth Huaroc and Maximilian Baust and Nassir Navab},
  title = {{Deep Active Contours}},
  year = {2016},
  eprint = {1607.05074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.05074},
}
Figure