End-to-End Deep Convolutional Active Contours for Image Segmentation

Ali Hatamizadeh, Debleena Sengupta, Demetri TerzopoulosarXiv 2019

Abstract

This paper introduces Deep Convolutional Active Contours (DCAC), a framework that integrates the Active Contour Model (ACM) as a differentiable layer within a Convolutional Neural Network (CNN). By combining the feature learning capabilities of CNNs with the geometric refinement of ACMs, DCAC enables end-to-end training for precise image segmentation. The model automatically learns contour initialization and spatially varying parameters, achieving state-of-the-art results in building segmentation from aerial imagery, particularly in low-contrast and complex boundary scenarios.

Introduction

Image segmentation—the task of delineating objects in an image—has traditionally been approached from two distinct perspectives. Active Contour Models (ACMs) use physics-based principles to evolve curves toward object boundaries, excelling at capturing geometric detail but often requiring manual initialization and parameter tuning. Conversely, Convolutional Neural Networks (CNNs) are powerful at learning features from data but can struggle with precise boundary localization and require massive, perfectly annotated datasets. The DCAC framework bridges this gap by implementing a fully differentiable Eulerian ACM within a CNN architecture, allowing for joint optimization of both components from scratch.

The DCAC Framework

The core of the DCAC architecture consists of a CNN backbone and a differentiable ACM layer. The CNN backbone, utilizing an encoder-decoder structure with dilated residual blocks, predicts three critical components: a generalized distance transform for automatic contour initialization and two per-pixel parameter maps ($\lambda_1$ and $\lambda_2$).

The DCAC Framework architecture, showing the CNN backbone predicting initialization and parameter maps for the differentiable contour propagation layer.

These maps control the local "forces" acting on the contour, allowing the model to apply different pressures to different parts of the curve based on local image context. The ACM layer is implemented using a level-set formulation with differentiable approximations (such as smoothed Heaviside functions), enabling error backpropagation from the final segmentation mask through the contour evolution steps to update the CNN's weights.

Experimental Evaluation

The authors evaluated DCAC on two challenging aerial image datasets for building instance segmentation:

  • Vaihingen: High-resolution images featuring complex building shapes often located at image edges.
  • Bing Huts: Low-resolution, low-contrast images where buildings are difficult to distinguish from the surrounding soil.

Key Insights and Results

A major innovation of DCAC is the transition from global constants to spatial parameter maps. By learning these maps, the CNN effectively "sets the stage" for the ACM, providing the specific local parameters needed for optimal refinement. Furthermore, by training the CNN to predict a distance transform, the model solves the classical ACM initialization problem, avoiding the local minima that plague manual setups.

Visualization of the DCAC internal outputs: (a) Input image, (b) Learned distance transform for initialization, (c) $\lambda_1$ map, and (d) $\lambda_2$ map.

DCAC established a new state-of-the-art for building segmentation, outperforming the previous leading model (DSAC) by 7.5% mIoU on the Vaihingen dataset and by 21% on the Bing Huts dataset. Using the "BoundF" metric, DCAC demonstrated a significant advantage in capturing sharp corners and precise edges compared to standard architectures like U-Net or ResNet. The model also proved robust in segmenting objects cut off by image boundaries.

Conclusion and Future Work

DCAC represents a significant advancement in end-to-end trainable geometric models. While iteratively solving the partial differential equations (PDEs) for contour evolution is computationally more expensive than a standard CNN forward pass, the resulting gains in boundary precision and robustness are substantial. Future work may focus on applying this framework to other domains, such as medical imaging, and automating the remaining manual hyperparameters like the length penalty.

Summary updated

BibTeX
@misc{hatamizadeh2019end,
  author = {Ali Hatamizadeh and Debleena Sengupta and Demetri Terzopoulos},
  title = {{End-to-End Deep Convolutional Active Contours for Image Segmentation}},
  year = {2019},
  eprint = {1909.13359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.13359},
}
Figure