Learning Deep Structured Active Contours End-to-End

Diego Marcos, Devis Tuia, Benjamin Kellenberger, Lisa Zhang, Min Bai, Renjie Liao, Raquel Urtasun

Extracting precise building footprints from aerial imagery is a fundamental task in remote sensing and urban planning. While modern Convolutional Neural Networks (CNNs) excel at object localization, they often produce "blobby" segmentations that lack the sharp geometric properties of man-made structures. This research presents Deep Structured Active Contours (DSAC), a framework that marries the feature-extraction power of deep learning with the geometric constraints of classical Active Contour Models (ACMs).

The Geometric Precision Gap

Standard CNN outputs typically result in rounded corners and fused building masses, failing to capture the straight walls and sharp angles characteristic of architecture. Buildings have specific geometric properties that pixel-wise classification often ignores. DSAC addresses this by integrating "snakes" (ACMs) directly into a deep learning pipeline, allowing the model to learn local geometric priors—such as where to be stiff and where to be flexible.

Methods: Deep Structured Active Contours

The core of DSAC is the integration of ACMs into the neural network's training loop. Unlike traditional ACMs that rely on global constants, DSAC employs a CNN (utilizing a Hypercolumn-style architecture) to predict four spatially varying maps that guide contour evolution:

  • Data term ($D$): Indicates likely boundary locations based on image features.
  • Length/Membrane ($\alpha$): Penalizes the total length of the contour.
  • Curvature/Thin plate ($\beta$): Controls stiffness. By learning $\beta$ locally, the model can be stiff along straight walls but flexible at corners, preventing the "rounding" effect.
  • Balloon term ($\kappa$): Provides an automated "inflation" force to push the contour toward edges, reducing sensitivity to the initial polygon size.
The DSAC architecture integrates a CNN for parameter prediction with an ACM for contour evolution, trained end-to-end using a Structured SVM loss.

The framework is trained end-to-end using a Structured SVM (SSVM) loss. This allows the error from the final predicted polygon to be backpropagated through the ACM optimization process to the CNN weights. This ensures the predicted energy maps are optimized specifically for the final polygonal inference task rather than just pixel-wise accuracy.

Experimental Results

The model was evaluated on three distinct benchmarks: Vaihingen (high-resolution aerial), Bing Huts (low-resolution rural), and TorontoCity (large-scale urban).

On the high-resolution Vaihingen dataset, DSAC improved the Intersection-over-Union (IoU) from a 0.78 baseline to 0.84. In the challenging Bing Huts dataset, which features low contrast and significant label noise, the model reduced the area estimation error (RMSE) from 23.9 m² to 13.4 m², demonstrating its ability to capture the "true" size of buildings better than standard CNNs.

Visual comparison showing the evolution from an initial polygon (blue) to the final DSAC result (yellow) against the ground truth (green).

Furthermore, on the TorontoCity dataset, DSAC was used to refine the outputs of the Deep Watershed Transform (DWT). It successfully improved upon the previous state-of-the-art, establishing itself as a robust refinement module for existing instance segmentation pipelines.

Conclusion and Future Work

DSAC demonstrates that combining classical geometric priors with modern deep learning leads to significantly more accurate and usable building footprints. While the current iteration requires an initial seed (either a manual click or a rough mask from another model), it provides a powerful solution for high-precision mapping. Future research may focus on dynamic vertex complexity, allowing the model to automatically adjust the number of polygon points based on the architectural complexity of the target building.

Summary updated

BibTeX
@inproceedings{marcos2018learning,
  author = {Diego Marcos and Devis Tuia and Benjamin Kellenberger and Lisa Zhang and Min Bai and Renjie Liao and Raquel Urtasun},
  title = {{Learning Deep Structured Active Contours End-to-End}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=Sy-jKkzO-r},
}
Figure