End-to-End Trainable Deep Active Contour Models for Automated Image Segmentation: Delineating Buildings in Aerial Imagery

Ali Hatamizadeh, Debleena Sengupta, Demetri Terzopoulos

Abstract

Automated delineation of building boundaries in aerial imagery is a critical task for urban planning and disaster response. While Convolutional Neural Networks (CNNs) excel at object localization, they often struggle to produce sharp, geometrically precise boundaries. Conversely, classical Active Contour Models (ACMs) provide high boundary fidelity but require manual initialization and parameter tuning. This paper introduces Trainable Deep Active Contours (TDACs), an end-to-end differentiable framework that integrates CNNs with ACMs. By predicting pixel-wise energy parameters, the CNN "steers" a level-set contour to accurately capture building geometries. TDAC achieves state-of-the-art results on the Vaihingen and Bing Huts datasets, demonstrating significant improvements in both intersection-over-union (IoU) and boundary accuracy.

Introduction

Delineating buildings in satellite or aerial imagery is vital for modern geospatial applications. Standard CNN architectures, such as U-Net or Mask R-CNN, are highly effective at identifying building locations. However, their reliance on downsampling and convolutional filters often results in "blobby" or imprecise boundaries that fail to capture sharp corners and straight edges.

Active Contour Models, or "snakes," offer a mathematical alternative by evolving a curve to minimize an energy functional, effectively "snapping" to image edges. Despite their precision, traditional ACMs are not autonomous; they are sensitive to initialization and require manual tuning of global parameters. The TDAC framework addresses these limitations by making the ACM evolution process a differentiable layer within a neural network, allowing for fully automated, high-precision segmentation.

Methodology

The TDAC framework achieves an intimate integration of deep learning and geometric modeling through several key innovations.

Framework Architecture

The system utilizes an encoder-decoder CNN backbone. Instead of outputting a final binary mask, the CNN is trained to predict three intermediate 2D maps: an initialization map ($\phi_0$) and two parameter maps ($\lambda_1, \lambda_2$) that locally control the foreground and background energy terms of the ACM.

Overview of the TDAC framework architecture.

Differentiable ACM Layer and Eulerian Formulation

The core of TDAC is the implementation of level-set evolution equations as a differentiable layer. This allows the final boundary error to be backpropagated through the contour evolution process and into the CNN backbone. Unlike Lagrangian "snakes" that use discrete points, TDAC employs an Eulerian (level-set) approach. The contour is represented as the zero-level set of a higher-dimensional function $\phi(x, y)$. This formulation allows the model to naturally handle topological changes, such as splitting or merging, enabling the simultaneous segmentation of multiple buildings.

Visualization of the Eulerian level-set method.

Experimental Evaluation

The model was evaluated on two distinct benchmarks: Vaihingen, featuring high-resolution aerial images with multiple building instances, and Bing Huts, a challenging dataset with low spatial resolution and minimal contrast between buildings and their surroundings.

Results

TDAC established new state-of-the-art (SOTA) performance on both datasets. On the Vaihingen dataset, it achieved an mIoU of 91.10%, significantly outperforming Mask R-CNN (79.42%). On the low-contrast Bing Huts dataset, TDAC reached 80.39% mIoU. Notably, the "BoundF" metric confirmed that TDAC provides superior boundary fidelity compared to standard CNN-based segmentations, proving that the contour refinement captures fine-grained details that standard filters miss.

Conclusion

TDAC successfully bridges the gap between the representational power of CNNs and the geometric precision of ACMs. By utilizing local parameter maps and an Eulerian formulation, the model provides a robust, end-to-end trainable solution for complex image segmentation tasks. While the iterative nature of the ACM layer introduces some computational overhead, the gains in boundary accuracy make it a compelling choice for applications requiring high-fidelity geospatial data.

Summary updated

BibTeX
@inproceedings{hatamizadeh2020end,
  author = {Ali Hatamizadeh and Debleena Sengupta and Demetri Terzopoulos},
  title = {{End-to-End Trainable Deep Active Contour Models for Automated Image Segmentation: Delineating Buildings in Aerial Imagery}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58610-2\_43},
}
Figure