BuildMapper: A Fully Learnable Framework for Vectorized Building Contour Extraction

Shiqing Wei, Tao Zhang, Shunping Ji, Muying Luo, Jianya GongISPRS 2022 · DOI

Abstract

Deep learning based methods have significantly boosted the study of automatic building extraction from remote sensing images. However, delineating vectorized and regular building contours like a human does remains very challenging, due to the difficulty of the methodology, the diversity of building structures, and the imperfect imaging conditions. In this paper, we propose BuildMapper, the first end-to-end learnable building contour extraction framework. BuildMapper directly and efficiently delineates building polygons by combining a learnable contour initialization module with a contour evolution module that performs both vertex deformation and reduction. Extensive experiments on the WHU-Mix, WHU, and CrowdAI datasets demonstrate that BuildMapper achieves state-of-the-art performance, reaching human-level delineation quality at real-time speeds.

Introduction: The Vectorization Challenge

Extracting building footprints from remote sensing imagery is a cornerstone of GIS, urban planning, and disaster management. Traditionally, deep learning models treat this as a semantic segmentation task—labeling every pixel as "building" or "background." While effective, this approach produces "zigzagged," irregular boundaries that require complex, empirical post-processing (like the Douglas-Peucker algorithm or manual regularization) to become usable vector maps.

Existing contour-based methods attempt to regress polygon vertices directly but often struggle with rigid priors, static supervision (fixed vertex pairing), and over-smoothing. These limitations often result in rounded corners rather than the sharp, structured edges characteristic of human-made structures. BuildMapper addresses these issues by introducing a fully learnable pipeline that mimics the human process of drawing polygons.

The BuildMapper Framework

BuildMapper introduces a fully learnable pipeline consisting of two primary stages designed to replace traditional hand-tuned post-processing.

Comparison of BuildMapper's stages: (a) Input, (b) Vectorized Output, (c) Binary Mask, (d) Initialization.

Contour Initialization Module

Instead of using a generic geometric shape (like an octagon), this module predicts a building's center point and regresses a set of initial offsets. This creates a "best-guess" starting polygon based on deep image features, allowing the model to adapt to the massive diversity of building architectures, such as L-shaped or U-shaped structures.

Contour Evolution & Reduction

The initial polygon is iteratively refined using a lightweight 1D-convolutional encoder that aggregates vertex information. A key innovation is the vertex classification head, which identifies essential "corners" and prunes redundant vertices. This allows the model to "learn" what a human considers a meaningful corner, resulting in clean, structured vectors.

Dynamic Matching Loss (DML)

To solve the problem of static vertex correspondence, the authors introduced a Dynamic Matching Loss. Unlike static pairing, DML dynamically calculates the distance between predicted vertices and the nearest points on the ground-truth boundary. This allows the network to focus on the overall shape rather than arbitrary vertex indexing, preventing "harmful" gradients during training.

Datasets and Benchmarks

The study utilizes three major benchmarks to verify the framework's robustness:

  1. WHU Aerial Building Dataset: High-resolution (0.2m) imagery from New Zealand.
  2. CrowdAI Mapping Challenge: A massive satellite imagery dataset.
  3. WHU-Mix (vector): A newly introduced large-scale dataset created by the authors. It contains over 754,000 buildings from diverse global sources, all manually corrected and converted into high-quality vector formats to support contour-based research.

Performance and Results

BuildMapper achieves a superior balance of speed and accuracy. On the WHU dataset, it achieved 78.5 Mask AP and 72.8 Boundary AP, outperforming both classic segmentation models (like Mask R-CNN) and specialized contour models.

High-quality vectorized building footprints generated by BuildMapper.

The framework runs at 22.4 FPS on an RTX 3090, making it viable for large-scale production environments. In a rigorous qualitative test, 84.2% of the buildings extracted from the WHU dataset reached the "manual delineation level," meaning the predicted vectors were virtually indistinguishable from those drawn by human experts.

Conclusion and Future Work

BuildMapper represents a significant step forward in automated cartography. By replacing empirical post-processing with a fully learnable vertex evolution module, it produces high-quality, structured building footprints directly from raw imagery. While the current model faces challenges with hollow buildings (courtyards) and heavy occlusion, future work will focus on directly initializing corner vertices and their topological connections to further streamline the vectorization process.

Summary updated

BibTeX
@inproceedings{wei2022buildmapper,
  author = {Shiqing Wei and Tao Zhang and Shunping Ji and Muying Luo and Jianya Gong},
  title = {{BuildMapper: A Fully Learnable Framework for Vectorized Building Contour Extraction}},
  booktitle = {ISPRS},
  year = {2022},
  doi = {10.1016/j.isprsjprs.2023.01.015},
}
Figure