RoIPoly: Vectorized building outline extraction using vertex and logit embeddings

Weiqin Jiao, Hao Cheng, George Vosselman, Claudio PerselloISPRS 2024

Abstract

Extracting clean, vectorized building footprints from satellite imagery is a persistent challenge in computer vision. Traditional segmentation-based methods often produce jagged edges and require extensive post-processing, while end-to-end sequence models struggle with vertex redundancy and small building accuracy. We present RoIPoly, an end-to-end framework that leverages RoI-constrained attention and learnable logit embeddings to extract high-quality polygons. By focusing on specific Regions of Interest and integrating classification scores into vertex queries, RoIPoly achieves state-of-the-art performance, particularly on small buildings, while significantly reducing computational overhead.

Introduction

The extraction of building footprints from aerial or satellite images is critical for applications ranging from urban planning to disaster response. Current methodologies generally fall into two categories: segmentation-based approaches that convert pixel masks into polygons, and end-to-end models that predict vertex sequences directly. Segmentation methods are often slow and produce unrealistic, jagged edges. Conversely, sequence-based models frequently suffer from "vertex redundancy"—predicting excessive points at corners—and struggle to distinguish small buildings from background noise. RoIPoly addresses these limitations by introducing a "clean" end-to-end architecture that eliminates the need for post-processing.

Methodology

RoIPoly introduces three key innovations to the Transformer-based polygon prediction pipeline:

RoI Query-based Attention

To mitigate the noise and computational cost of global attention, RoIPoly employs an object detector to define a "Building Bounding Box." Using RoIAlign, the model crops features for specific buildings, forcing the attention mechanism to focus solely on relevant geometric structures. This approach reduces computational complexity from quadratic to linear and is particularly effective for small buildings that are often lost in large-scale imagery.

Visualization of RoI-constrained attention across various building geometries, demonstrating how the model focuses on structural vertices.

Learnable Logit Embeddings

A common issue in vertex prediction is the generation of "fake" or redundant vertices. RoIPoly introduces "logit embeddings" that incorporate classification scores directly into the vertex query using Adaptive Layer Norm (adaLN). This allows the model to learn which vertices are valid during the interaction process, acting as a conditional signal that prioritizes refinement for high-confidence queries and ignores padding.

Ordering-based Matching

Traditional models often use Euclidean distance for matching predicted vertices to ground truth, which can lead to self-intersecting or "twisted" polygons. RoIPoly utilizes an index-based matching system that follows the building's contour, ensuring the predicted sequence maintains correct geometric ordering.

Experimental Results

The researchers evaluated RoIPoly on the CrowdAI Mapping Challenge and the Structured3D indoor dataset.

Performance and Efficiency

On the CrowdAI dataset, RoIPoly achieved a new benchmark of 83.6 AP using a Swin-Base backbone. Most significantly, the model improved Average Precision for small buildings ($AP_S$) from 54.3% to 74.2%, a substantial leap over previous state-of-the-art models like HiSup. Furthermore, the RoI-constrained attention mechanism reduced FLOPs from 64.2G to 29.3G compared to global attention methods.

Detailed attention heatmap illustrating the precision of vertex localization within a single building's Region of Interest.

Generalization

The model also demonstrated strong cross-domain generalizability when tested on the Structured3D dataset, successfully reconstructing indoor floorplans despite being primarily designed for satellite imagery.

Conclusion and Future Work

RoIPoly represents a significant advancement in vectorized building extraction, offering a clean, efficient, and highly accurate end-to-end solution. While the model excels at small-to-medium structures, future work will focus on improving the resolution of RoI feature maps for complex skyscrapers and developing mechanisms for inter-RoI communication to resolve alignment issues in shared boundaries, such as adjacent rooms in floorplans.

Summary updated

BibTeX
@misc{jiao2024roipoly,
  author = {Weiqin Jiao and Hao Cheng and George Vosselman and Claudio Persello},
  title = {{RoIPoly: Vectorized building outline extraction using vertex and logit embeddings}},
  year = {2024},
  eprint = {2407.14920},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14920},
}
Figure