Skip to Content
Remote SensingRemote Sensing
  • Article
  • Open Access

4 June 2026

21 Pages

RPAFormer: Building Extraction with Relative Position Aggregated Transformer

,
,
and
1
Key Laboratory of Earthquake Engineering and Engineering Vibration, Institute of Engineering Mechanics, China Earthquake Administration, Harbin 150080, China
2
Key Laboratory of Earthquake Disaster Mitigation, Ministry of Emergency Management, Harbin 150080, China
3
Beijing Institute of Architectural Design Co., Ltd., Beijing 100032, China
4
School of Cyber Science and Technology, Shenzhen Campus, Sun Yat-sen University, Shenzhen 518107, China
This article belongs to the Section AI Remote Sensing

Highlights

What are the main findings?
  • Develops a novel pure transformer-based building extraction framework named RPAFormer, which is capable of flexibly adapting to the diverse structure variations of buildings and producing accurate local details in complex scenarios.
  • Conducts experiments on public building extraction datasets to verify the effectiveness of RPAFormer. The experimental results demonstrate that RPAFormer achieves a more competitive performance than other state-of-the-art methods.
What are the implications of the main findings?
  • Relative Position-aware Self-attention (RPSA) block learns the token dependencies within the local window and can flexibly adapt to the intricate background regions and varied structure patterns of buildings.
  • Transformer decoder network consisting of multiple Cross Masked Attention (CMA) blocks fused with the multi-scale features is capable of modeling the relative position dependencies of the buildings.

Abstract

Automatic building extraction plays an important role in various remote sensing applications, such as seismic disaster investigation, seismic hazard risk assessment, urban planning, and photogrammetry. Despite the substantial progress, state-of-the-art building extraction methods are still limited by two issues: (i) existing approaches leverage convolutional layers or non-local self-attention to encode the position-aware dependencies, while they cannot flexibly adapt to the complex background contexts and varied structure patterns of buildings; and (ii) the local details cannot be well preserved by existing hierarchical decoders due to the imperfect feature aggregation, yielding unsatisfactory segmentation outputs in the local adjacent region. To address these issues, we propose Relative Position Aggregated Transformer (RPAFormer), which is capable of modeling the relative position dependencies of buildings and producing accurate local details using a dual attention transformer network. Specifically, we propose a Relative Position-aware Self-attention (RPSA) framework to learn the token dependencies within the local window. A transformer decoder network consisting of multiple Cross Masked Attention (CMA) blocks is also introduced to fuse the multi-scale features. Extensive experiments demonstrate the superior performance of the proposed method and its great promise for real-world engineering deployment.

1. Introduction

Building extraction from high-resolution remote sensing (RS) images is a fundamental topic with various applications, e.g., seismic damage survey and path planning, autonomous driving and Geographic Information Systems (GISs) [1,2,3,4,5]. This task involves the problem of assigning a binary label to each pixel for distinguishing building foregrounds from complex backgrounds and requires generating the delineated building footprints with sharp boundaries for further processing or model simplification.
Traditional building extraction methods [6,7] generally utilize various descriptors, e.g., texture, geometry and spectrum, to model the shapes of buildings. The early approaches used handcrafted features to represent buildings and then typically introduced carefully designed post-processing modules such as boundary detection [8,9], geometric line extraction [10] and multispectral fusion strategies [11,12] for further refinement.
Since the handcrafted descriptors are sensitive to the drastic shape variations, these methods show unsatisfactory generalization capabilities in the presence of irregular structures of buildings. Some studies also adopt multi-source data fusion such as LIDAR points [13] and multispectral imagery [14] for data augmentation, but acquiring the multi-source data is costly, whereas the segmentation performance is still limited due to the imperfect manual fusion in different data domains.
Inspired by the significant advances achieved by convolutional neural networks (CNNs), deep learning-based segmentation methods have become the dominant approach in the field of building extraction in recent years. These methods [15,16,17] employ hierarchical convolution operators to extract the local scale-invariant features, which can effectively exploit the inductive bias by large-scale model training. However, as the CNN-based architecture relies on stacking multiple convolutional layers and blocks in local receptive fields, it fails to capture the long-range relationship between pixels in different regions.
The transformer architecture [18] was firstly proposed in the NLP field. Recently, it has attracted great interest in various computer vision tasks, e.g., object recognition [19], image generation [20,21] and video understanding [22,23,24]. The Visual Transformer [25,26,27,28,29] (ViT) generally splits the input image into fine-grained patches and leverages Multi-head Self-attention modules to model the long-range dependencies of the embedded patches. The self-attention operator captures a larger receptive field and introduces global context-aware dynamics, thus enabling it to complement the CNN backbones by providing beneficial non-local information. Shi et al. [29] proposed Transformer Scale Gate (TSG) to optimize the multi-scale features combination process; the multi-scale feature selection mechanism in TSG enables it to exploit the inner properties of transformer attention maps for fine-grained per-pixel prediction. SETR [30] adopts ViT as a backbone to extract features and utilizes CNN as a decoder for pixel-wise prediction, achieving impressive performance gains compared with conventional CNN architectures. Segmenter [31] discards the convolutional layers and proposes a pure transformer architecture to capture the global context in encoding and decoding modules, which significantly outperforms previous CNN-based approaches.
As shown in Figure 1, affected by the intricate background interference and varied building structural patterns, existing transformer-based approaches can hardly maintain the balance between the global and local inductive bias learning, which limits their effectiveness in challenging remote sensing images. In addition, the most advanced ViTs employ multi-scale feature fusion and an upsampling operator (e.g., bilinear interpolation or deconvolution) in hierarchical decoders for dense per-pixel prediction, while they cannot recover the high-quality local details, leading to unsatisfactory segmentation outputs in the neighboring region.
Figure 1. The challenges of existing building extraction approaches. (a) The structural appearance of the buildings in different positions varies significantly; (b) The decoded features of adjacent buildings in the blue box cannot present high-quality local details for dense per-pixel prediction.
Motivated by the success of the pyramid architecture in CNNs, some works [28,32,33,34] introduce pyramid structures into transformers to learn multi-scale features. To enhance the computation efficiency of ViTs, the local dependencies operation is also taken into account. For example, Swin Transformer [25] uses hierarchical shifted local windows to partition features into non-overlapping local windows while also allowing for cross-window connections, which shows excellent flexibility and computational efficiency to exploit crucial visual cues at different scales. NAT [35] introduces neighborhood attention to localize the receptive field in the neighborhood around each token, thereby capturing local inductive biases without needing extra operations.
However, with the growing complexity of remote sensing images, traditional algorithms are not capable of meeting the high-precision requirements. Recent state-of-the-art methods use Deep Neural Networks (DNNs) for building extraction, which can be divided into two categories: instance segmentation approach and semantic segmentation-based approach.
The semantic segmentation-based approach passes the RS images through a CNN backbone, e.g., FCN [36,37,38,39,40,41,42,43,44] and UNet [45], to obtain coarse building segmentation masks. Meanwhile, the CNN models perform pixel-wise classification to determine whether each position in the RS image belongs to the building or not. For example, Wei et al. [46] proposed the multi-scale aggregation method to obtain fine-grained representations to extract the buildings. ASLNet [16] adopts an adversarial shape learning module to exploit the building shape patterns; a shape discriminator and a shape regularizer are mutually learned to establish discriminative shape representations to guide building segmentation. Guan et al. [47] presented a dual-branch transformer framework for cross-view geo-localization that removes sky areas via semantic segmentation and adopts geometric projection and gradient-aware weighting to align street and satellite features. The latest works [38,39,40] introduce transformer architecture to model the global dependencies; the self-attention operation in transformer can suppress the irrelevant background interference, which shows great advantages in determining the per-pixel belongings for the building extraction task.
On the other hand, the instance segmentation-based approach can detect and segment all building footprints in a top-down manner. Existing works use Mask R-CNN [48,49,50] or CenterMask [51] to predict the instance-level bounding boxes and pixel-level segmentation masks. Then, the segmentation results of all buildings are refined using active contour models [52] or boundary extraction modules [53,54]. Recent advanced approaches such as PolyMapper [55] and frame field learning [56] employ the polygonal representation via graph structure or directional field for building shape regularization, yielding sharper corners and convenient vectorization by polygonal vertex modeling.
Meanwhile, how to effectively fuse the hierarchical features is crucially important for the building extraction task. To leverage discriminative features in different scales, AFNet [57] designs a Scale-feature Attention Module (SFAM) to enhance the low-level features for small objects and strengthen high-level features for large objects, which is capable of preserving semantic visual cues in various resolutions. Zhu et al. [40] design a multiple attending path network to extract high-level semantics and preserve multi-level localization details with serial convolution blocks that can retain the local details using a channel-wise attention module. Chen et al. [58] further combine the transformer backbone and CNN head to fuse features. The channel-wise and spatial-wise attention modules are employed for fine-grained building footprint prediction. BCTNet [59] jointly leverages two parallel branches of the convolutional encoder branch and the transformer encoder branch to extract multi-scale feature maps. It then designs the Concatenation-then-cross-fusion Transformer Block (CCTB) and Adaptive Gating Module (AGM) to integrate the feature representation. Luo et al. [60] adopt SegFormer as the backbone network and fuse very-high-resolution remote sensing images with LiDAR elevation data. By designing cross-modal feature fusion and multi-scale upsampling decoding strategies, the method effectively improves the accuracy of building extraction. However, these feature fusion strategies introduce hyperparameters that require tricky tuning.
In this work, we propose a pure transformer-based architecture named RPAFormer, which can exploit the global-local dependencies and perform feature fusion by simply stacking multiple self-attention blocks in both encoder and decoder networks. Furthermore, it conducts dense prediction in the whole remote sensing images for fast building extraction. Specifically, we propose a Relative Position-aware Self-attention (RPSA) to learn the token dependencies within the local window, which exploits the relative position bias of different tokens for structural relationship encoding. Afterwards, we propose a transformer decoder network consisting of multiple Cross Masked Attention (CMA) blocks to fuse the multi-scale features that is capable of aggregating the high-quality local details for accurate building extraction.

2. RPAFormer

To tackle the aforementioned problems, we propose a Relative Position Aggregated Transformer (RPAFormer), which is capable of modeling the relative position dependencies of buildings and producing accurate local details using a dual attention transformer network.
Our method first splits the remote sensing image into a sequence of patches, which are encoded into the query–key–value structure. Afterwards, we propose a Relative Position-aware Self-attention (RPSA) module to learn the relative position dependencies of the encoded tokens. The correlation similarity between query and key tokens is modified by incorporating relative position biases into self-attention calculations. The modified self-attention modules are gradually stacked so that the neighboring patches can be merged to construct hierarchical representations. By making full use of the positional dependencies encoded by these blocks, the RPSA module can flexibly retrieve the critical position of the query and key maps in the global area, enabling the transformer network to distinguish the easily confused regions more accurately.
Moreover, as existing segmentation approaches often struggle to preserve high-quality local details using hierarchical decoders, we design a novel transformer-based decoder network to fuse the multi-scale features from backbones with those in decoders. Specifically, we design a Cross Masked Attention (CMA) module to assign dynamic weights to local feature aggregation. Then, the skip connection is applied to enhance the correspondences between the encoder and decoder tokens to recover the local details of the buildings. By aggregating the semantic representation with hierarchical decoder blocks, the segmentation results can be significantly boosted.

2.1. Overall Architecture

The overall framework of the proposed RPAFormer is shown in Figure 2. It consists of an encoder network and a decoder network. The encoder network contains four stages, where each stage leverages an RPSA block to learn the relative position dependencies of the encoded tokens. The decoder network fuses the multi-scale features of the encoder and decoder network using CMA blocks and the corresponding shifted window version with skip connection for local feature aggregation.
Figure 2. The pipeline of the proposed RPAFormer, which consists of an encoder network and a decoder network using transformer architecture. The encoder network employs Relative Position-aware Self-attention (RPSA) module to produce global dependencies with hierarchical representation. Then, the features are sent to Cross Masked Attention (CMA) and Shifted Window Cross Masked Attention (SW_CMA) blocks in the decoder network to capture high-quality local details. Here, the LayerNorm (LN) and MLP layers in CMA and SW-CMA blocks are omitted for simplification.
The encoder network takes an image I   ∈   R H   ×   W   ×   3 with height H and width W as input. The image is first split into H 4   ×   W 4 patches, where the size of each patch is 4 × 4. These patches are flattened into 1-dim vector and projected into C- dim embedding, hereinafter referred to as C , and then the embedded features are passed into the RPSA block to obtain embedded patches X 0   ∈ R H 4   ×   W 4   ×   C . The embedded patches are regarded as visual tokens and are sent into the subsequent stages, the output sizes of the following hierarchical representation are X 1   ∈   R H 8   ×   W 8   ×   2 C , X 2   ∈   R H 16   ×   W 16   ×   4 C and X 3   ∈   R H 32   ×   W 32   ×   8 C , respectively.
To effectively leverage the hierarchical features, we design a decoder network employing Cross Masked Attention (CMA) in multiple stages for local feature aggregation. The feature maps learned in the encoder network and the intermediate decoder features are taken as inputs and projected to be a query–key–value structure. Then, Cross Masked Attention is performed on the projected tokens to enhance the feature representation. Afterwards, the corresponding features in both the encoder and decoder network are passed into a Shifted Window CMA (SW_CMA) block, which fuses the dual features with skip connection to capture high-quality local details. Finally, the decoded features in the terminal stage are upsampled to predict the per-pixel categories.

2.2. Encoder Network

To model the long-range dependencies of the hierarchical patches, existing ViTs employ the self-attention module to enlarge the limited receptive field in classical CNNs. The notable Swin Transformer simplifies the global self-attention into local windows and performs cross-window connections to model the interactions across different regions. However, Swin Transformer partitions the feature maps by fixed shifting window, which limits the flexibility to utilize a suitable receptive field in different positions, especially for the ambiguous region or adjacent buildings. To address this issue, we propose Relative Position-aware Self-attention (RPSA) to exploit the relative position-aware dependencies with hierarchical representation.
RPSA is designed to learn relative position dependencies within the encoder network and can be stacked to construct hierarchical representation. The input feature is flattened and then projected to a C- dim embedding as shown in Figure 3.
Figure 3. The workflow of RPAFormer. The left sub-window illustrates the components of one block in the feature encoder. The right one shows the structure of the RPSA block.
The conventional ViTs use Multi-head Self-attention (MHSA) as follows to ensure the computational efficiency:
MHSA ( X )   =   Concat (   head 0 ,   … ,   head M )   W P
where head m is the output of the m-th attention head, W P   ∈ R N   ×   C is the projection matrix, and M is the number of heads. Each head can be calculated via the self-attention operation as:
Attention ( Q ,   K ,   V )   =   Softmax ( Q K T C m ) V
where Q, K and V represent the query, key and value tokens with the size N   ×   C m , C m refers to the channel dimension of the m-th head, and C m   =   C / M .
The computational burden of self-attention operation is determined by the resolution of the input image. To enhance the computational efficiency, Swin Transformer [25] introduces a shifted window partitioning strategy and performs Multi-head Self-attention within the shifted window. For the arbitrary pixel i, the shifted window self-attention can be formulated as:
f i   =   ∑ j ∈ Ω Softmax ( q i   k j C m ) v j
where f i represents the output at pixel i ; q i , k j and v j denote the pixel-wise element in Q, K, and V, respectively; and Ω is the corresponding region within the shifted window.
For the building extraction task, the relative position-aware dependencies of the attention map have not been fully exploited in Equation (3), so the retrieved tokens may attend to irrelevant keys/values in the background region. To address this issue, we propose the Relative Position-aware Self-attention (RPSA), which enforces the weights of the query and key tokens to be flexibly reassigned to the target building areas under the guidance of positional bias. Different from MHSA, which performs dot products between queries and keys in neighboring areas, here, we employ high-order polynomial functions [61] to model non-local dependencies among spatial positions. The RPSA is given by:
f i   =   R P S A ( Q ,   K ,   V )   = ∑ j ∈ Ω Softmax ( ( q i ⨀   k i ) r j − 1 k   +   ( q j ⨀ k j ) r j − i q   +   r b ) v j
where ⨀ denotes the Hadamard product.
By modifying the dot product of q i and k j to the Hadamard product, the complexity of the attention map learned by the query/key token is significantly reduced from quadratic to linear. Moreover, the position bias parameters   r j − 1 k ,   r j − 1 q and r b present relative position embeddings on the attention map, leading RPSA to be more flexible to adjust the weights at different positions.
The RPSA blocks in the encoder network can be stacked to obtain hierarchical representation; here, we adopt four stages to learn the semantic visual representation. Figure 3 illustrates that each stage consists of an RPSA module, two LayerNorm (LN) layers and an MLP layer. For the l-th hierarchical block, the feature map X l is computed by:
Z l   −   1 ′   =   R P S A ( L N ( X l   −   1 ′ ) )   +   X l   −   1 ′
X l = MLP ( LN ( Z l   −   1 ′ ) ) +   Z l   −   1 ′
At the first stage, the embedded patches are merged H 4   ×   W 4   ×   C . At the subsequent stages, the resolution is further reduced with the dimension increasing to construct the hierarchical feature sizes of H 8   ×   W 8   ×   2 C , H 16   ×   W 16   ×   4 C and H 32   ×   W 32   ×   8 C , respectively.

2.3. Decoder Network

We propose a transformer decoder network to fuse the hierarchical features. The decoder network consists of four stages, and each stage includes a CMA block, an SW_CMA block and an upsample operation. Given the encoded feature map X l   ∈   R N l   ×   C l (here, N l = H l   ×   W l ) at the l-th stage, the CMA module leverages the corresponding features in the encoder network and the output features in the last stage as inputs to calculate the Cross Masked Attention. The output token F l can be obtained by:
F l   =   { S o f t m a x ( M l   −   1   +   Q 3   −   l K l T ) V l   +   P l   −   1 ,   i f   l   >   0 S o f t m a x ( M l   +   Q 3 K l T ) V l   +   X 3 ,   i f   l   =   0
where P l   −   1 is the upsampled output in the previous (l-1)-th stage and M l − 1 denotes the corresponding attention mask, which can be predicted by:
M l   −   1 ( x ,   y )   =   { 0 ,   i f     M l   −   1 ( x ,   y )   >   0 − ∞ ,   o t h e r w i s e
where M l   −   1 ( x ,   y ) is the binarized mask prediction in the last decoder stage. The query, key and value token in CMA are calculated by:
Q l   =   X l W l Q ,   K l   =   P l   −   1 W l K ,   V l   =   P l   −   1 W l V
where Q l , K l and V l represent the query, key and value tokens with the size N l   ×   C l ;   W l Q , W l K , and W l V are the weight matrices corresponding to the query, key and value, respectively.
Note that the Cross Masked Attention is estimated by query token Q l from the encoder feature X l , whereas the interactive key K l and value V l are projected from P l   −   1 . The upsampled output P l   −   1 in the last stage can be estimated by:
P l   −   1 = U P ( S W _ C M A ( X l   −   1 ,   F l   −   1 ) )
where the function UP(·) denotes the upsampling operator, and SW_CMA(·) is the shifted window Cross Masked Attention within the local window to improve the computational efficiency.
Afterwards, the upsampled feature P3 is passed into a 1 × 1 convolutional layer and normalized with the softmax layer to generate binary segmentation results for dense prediction.
On the whole, the CMA and SW_CMA blocks perform masked attention to fuse the dual encoder–decoder features and capture high-quality local details. The CMA blocks eliminate the irrelevant background pixels, which are capable of constructing more discriminative non-local dependencies for pixel-wise prediction. The SW_CMA(·) block employs a residual connection to fully utilize the dual encoder–decoder features, which enhances the correspondences between the encoder and decoder layers in multiple stages.

2.4. Loss Function

In the training phase, we employ the cross-entropy loss to minimize the difference between the ground truth mask and the predicted segmentation output as follows:
L s e g   =   − ∑ i [ y i ^ l o g y i   +   ( 1   −   y i ^ ) l o g ( 1   −   y i ) ]
where y i and y i ^ denote the predicted label and the ground truth.
Moreover, since the cross-entropy segmentation loss always leads to coarse results, we adopt binary cross-entropy and dice loss to enhance the boundary details. We adopt the Laplacian convolutional kernel to produce the boundary predictions and ground truth boundary labels. The dice loss is also applied to measure the overlap rate and alleviate the class-imbalance problem of foreground/background pixels. The details of the learning loss are:
L d e t a i l   =   L c e ( L a p ( y i ^ ) ,   L a p ( y i ) )   +   L d i c e ( y i ^ ,   y i )
where Lap(∙) denotes the Laplacian convolutional operation. Therefore, the whole loss function is:
L   =   L s e g +   λ L d e t a i l
where λ is the hyperparameter balancing the weight of the segmentation loss and detail loss.

3. Experiments

We first provide the implementation details of RPAFormer and conduct comprehensive comparisons with state-of-the-art methods on three benchmark building datasets. We then conduct ablation experiments to analyze each component designed in this model. The visualization results of challenging remote sensing images are presented for further analyses.

3.1. Implementation Setting

We run the proposed RPAFormer with the PyTorch 1.8 toolkit. The hardware environment includes a server with two RTX3090 GPUs and 8 cores of 3.9 GHz CPU. The remote sensing images in all datasets are cropped to 512 × 512 for training and testing. The data augmentation operations include random crop, random horizontal flipping, photometric distortion and mixup, which are used to improve the model’s robustness. During training, we apply the AdamW optimizer using a linear decay learning rate scheduler with a 1500 iterations linear warm-up. The channel dimension C is set to 128. The model follows a ’poly’ LR schedule with factor 1.0, and the learning rate is set to 6 × 10−5. The hyperparameter λ is set to 0.1, and the weight decay is set to 0.01. We use the batch size of 8 per GPU for all the evaluated datasets, and the model is trained with 160 k iterations.

3.2. Evaluation Metrics

To evaluate the performance of different building extraction methods, we adopt the commonly used evaluation metrics in public remote sensing datasets for fair comparison. Four pixel-level metrics including recall (R), precision (P), F1 score and intersection over union (IoU) are employed for comparison. Each can be calculated as:
R   =   TP TP   +   FN
P = TP TP + FP
F 1 = 2   ×   P   ×   R P + R
IoU = TP TP + FP + FN
where TP, FP, TN and FN represent the pixel-wise predictions of true positive, false positive, true negative, and false negative, respectively.

4. Implementation Results

A quantitative comparison between the RPAFormer and the previous work is presented in Figure 4. The canonical CNN and transformer-based architectures, e.g., UNet [45] and RSP [62], achieve unsatisfactory results due to inadequate modeling of the global context and local details, whereas by exploiting dynamic position-aware dependencies and introducing effective feature fusion, RPAFormer obtains more significant performance gains in both the F1 and IoU metrics.
Figure 4. The F1 and IoU scores obtained by different algorithms on Massachusetts Dataset.
Subsequently, the computational results of RPAFormer are compared with those of other mainstream methods on three primary building datasets, namely, the Massachusetts Dataset, the Inria Aerial Dataset, and the WHU Dataset.

4.1. Massachusetts Dataset

Massachusetts is an aerial dataset collection captured across Boston, which consists of 137 images in the training set, 4 images in the validation set, and 10 images in the test set. Each image, with a size of 1500 × 1500, is annotated with pixel-wise labels. The spatial resolution of the whole dataset is 1.2 m per pixel, covering around 340 km2.
In our setting, we compare the performance of our method on the Massachusetts Dataset with 11 methods, including 8 CNN-based methods and 3 transformer-based methods. The metrics of precision, recall, F1 score and IoU are employed for evaluation, and the comparative performance results are shown in Table 1. RPAFormer achieves the best results overall, obtaining a precision of 87.52% and recall of 83.31%. For the IoU score, RPAFormer significantly outperforms the classical CNN based methods such as PSP-Net and JointNet with significant performance gains of 6.51% and 2.74%, respectively. Compared with the state-of-the-art method ASLNet [16], RPAFormer boosts the score by 2.41% in the IoU metric. Compared with ASLNet-SR, RPAFormer is superior to ASLNet-SR in all of the evaluation metrics. Note that ASLNet-SR requires the introduction of the super-resolution technique for image pre-processing, leading to higher evaluation scores in the precision metric. However, RPAFormer can achieve a more competitive performance without utilizing extra pre-processing techniques.
We also compare RPAFormer with the most recent transformer-based models such as Swin Transformer and SegFormer [63]. RPAFormer achieves relative performance gains of 0.62% in the F1 score and 1.21% in the IoU metric against Swin Transformer, respectively. Compared to RSP, RPAFormer obtains performance gains of 1.44% in the IoU metric and 0.53% in the F1 score. We further demonstrate the segmentation results in Figure 5. Note that the Massachusetts Dataset contains large quantities of small buildings with low resolutions. The decoder network in RPAFormer is able to preserve high-quality local details between the buildings; thus, its segmentation performance is superior to Swin Transformer, SegFormer and other CNN-based methods.
Table 1. Quantitative comparison (%) with state-of-the-art algorithms on Massachusetts Dataset.
Figure 5. Experimental building extraction results obtained by different segmentation methods on Massachusetts Dataset. (a) Original image, (b) Ground truth, (c) PSPNet, (d) Deeplab V3, (e) SegFormer, (f) Swin Transformer, (g) Ours.

4.2. Inria Aerial Dataset

The Inria Aerial Dataset is a widely used urban buildings extraction dataset for semantic segmentation. There are 360 5000 × 5000 pixel aerial images with a spatial resolution of 0.3 m in this dataset, wherein 180 are presented with ground truth labels. These images are captured from five cities: Austin, Chicago, Kitsap, Tyrol, and Vienna.
Extensive experiments on the Inria Aerial Dataset were conducted to validate RPAFormer, and the quantitative results are summarized in Table 2. As shown in Table 2, RPAFormer achieves superior results in all of the evaluation metrics. It obtains precision and recall scores of 90.19% and 89.13% and F1 and IoU scores of 89.66% and 81.25%, respectively. Compared to BOMSCNet, RPAFormer obtains performance gains of 1.91% for the F1 score and 3.07% for the IoU score. Compared to the most recent ASLNet [16] algorithm, RPAFormer obtains performance gains of 2.16% for the F1 score and 3.12% for the IoU score.
Table 2. Quantitative comparison (%) with the state-of-the-art algorithms on Inria Aerial Dataset.
Furthermore, we also compare RPAFormer with the state-of-the-art transformer-based algorithms, e.g., Swin Transformer [25] and RSP [62]. RPAFormer outperforms other transformer architectures in all of the evaluation metrics. We present the experimental visualization results in Figure 6. Due to the effective non-local operation such as MSA, the segmentation outputs of Swin Transformer and SegFormer are better than PSPNet and DeepLab V3 (results in the third and fourth columns of the figure), but they still fail to obtain accurate results in segmenting irregular buildings and ambiguous regions (results in the last three columns of the figure). By performing relative position aggregation and feature fusion in the transformer framework, RPAFormer achieves more satisfactory results than Swin Transformer and SegFormer.
Figure 6. Experimental building extraction results obtained by different segmentation methods on Inria Aerial Dataset. (a) Original image, (b) Ground truth, (c) PSPNet, (d) Deeplab V3, (e) SegFormer, (f) Swin Transformer, (g) Ours.

4.3. WHU Dataset

The WHU Dataset is collected from aerial images with a 0.075 m spatial resolution covering 450 km2 in Christchurch, New Zealand. It consists of 8188 images with a resolution of 512 × 512. The images in this dataset are split into 4736 images in the training set, 1036 in the validation set and 2416 images in the test set. The whole dataset includes about 187,000 buildings with different scales and shapes.
Table 3 reports the comparative results on the WHU Dataset. RPAFormer obtains an F1 score of 95.04% and an IoU score of 90.74%, which is better than the SOTA CNN-based methods such as MA-FCN [46], HRNet V2 [72] and other transformer-based methods. For the precision metric, RPAFormer obtains a corresponding score of 95.38%, which also outperforms other transformer- and CNN-based algorithms. For the recall metric, HRNet achieves the best performance with a score of 95.37%, while RPAFormer ranks second with a score of 94.70%. This is because the remote sensing images in the WHU Dataset are entirely collected from the unique city of Christchurch, New Zealand; thus, the irregular buildings and scenario variations in WHU are rarer than the cases in the Massachusetts and Inria Aerial Datasets. HRNet V2 can effectively exploit the inductive bias of the segmentation instances using the specifically designed high-to-low resolution convolution. We present the visualized segmentation results in Figure 7 and Figure 8. It can be found that RPAFormer is able to correctly separate the buildings even in adjacent boundary regions, leading to higher precision and IoU scores in the quantitative evaluation.
Table 3. Quantitative comparison (%) with state-of-the-art algorithms on WHU Dataset.
Figure 7. Experimental building extraction results obtained by different segmentation methods on WHU Dataset. (a) Original image, (b) Ground truth, (c) PSPNet, (d) Deeplab V3, (e) SegFormer, (f) Swin Transformer, (g) Ours.
Figure 8. Visual comparison of segmentation results obtained by HRNet-V2 and RPAFormer on the WHU Dataset. (a) Original image, (b) Ground truth, (c) HRNet-V2, (d) Ours.

4.4. Ablation Analysis

4.4.1. Ablation Study of Each Component

We conduct an ablation study to validate the effectiveness of each component, and the quantitative evaluation conducted on the Inria Aerial Dataset is presented for fair comparison. In our experiment, we consider three modules including Relative Position Self-Attention (RPSA), Cross Masked Attention (CMA) and Skip Connection (SC). The complete results are shown in Table 4. The pure RPSA learns the relative dependencies of the encoded tokens and obtains scores of 89.05% and 80.27% in terms of F1 and IoU, respectively. The variant approach only with the CMA block in the decoder network achieves a performance of 88.38% and 79.18% for the F1 and IoU metrics. Afterwards, if the RPSA and CMA modules are jointly trained in a uniform framework, the novel approach achieves a performance of 89.39% and 80.81%, respectively. Finally, by adding the skip connection operator, the RPAFormer improves the F1 and IoU scores to 89.66% and 81.25%. It also obtains the highest scores of 90.19% and 89.13% for the relative precision and recall metrics. The results clearly illustrate the effectiveness of the modules adopted in RPAFormer.
Table 4. Ablation study of the RPSA, CMA and SC modules in the proposed method (%).

4.4.2. Influence of Different Encoder Backbones

To conduct an investigation into the performance changes using different encoder backbones, here, we conduct comparative experiments to analyze the influence of the backbone features. The results are shown in Table 5. We can observe that the discriminative powers of conventional CNN-based backbones, e.g., VGG-19, ResNet-50 and DenseNet, are significantly limited, as they cannot capture the global dependencies to maintain the complete structure of the buildings. Swin Transformer alleviates this issue via the shifted window self-attention blocks; yet, the performance is compromised by the absence of explicit structural position-aware information modeling. Our encoder network with hierarchical RPSA blocks achieves the best performance, which verifies that modeling the relative position-aware dependencies in transformer architecture is crucial for high-quality footprint extraction.
Table 5. Comparative study of the variant methods using different backbones (%).

4.4.3. Comparison with Other Detail Aggregation Methods

To assess the effectiveness of the detail aggregation methods in the proposed framework, in this experiment, we compare the proposed method with other detail aggregation algorithms. Previous works such as RefineNet [75], SRI-Net [76], MAPNet [40], STDC [77] and MAFNN [70] also introduce detail aggregation strategies for building extraction, while the strategies of these trackers are quite different. Specifically, RefineNet, SRI-Net and MAPNet employ the multi-path aggregation strategy, which incorporates long-range residual connections or attention modules to encode low-level information such as edges and corners. STDC designs a Detail Aggregation Module (DAM) that directly takes low-level boundary information as guidance for feature learning. MAFNN uses morphological filtering to refine the extracted building boundaries; thus, it can improve the shape regularity. The comparative results are shown in Table 6. RPAFormer achieves the best performance in all of the metrics. MAFNN obtains the second best performance on the whole, but its morphological post-processing is time-consuming and cannot be learned in end-to-end manner.
Table 6. Comparison with the state-of-the-art algorithms using detail aggregation strategy (%).

4.4.4. Ablation Analysis of the Hyperparameter λ

To further validate the rationality of the hyperparameter used to balance segmentation loss and detail loss in Equation (13), we conduct an ablation analysis to justify the impact of the hyperparameter λ on the Inria Aerial Dataset by tuning its value among 0, 0.1, 1 and 10. The results are presented in Table 7. We can see that setting λ = 0.1 obtains the highest performance across all four metrics, which delivers a good balance between segmentation accuracy and detail preservation. Therefore, we adopt 0.1 as the default setting in all subsequent experiments.
Table 7. Ablation analysis of the hyperparameter λ on Inria Aerial Dataset (%).

4.4.5. Ablation Analysis of Performance on Low-Resolution Images and Computational Overhead

To investigate the performance on low-resolution images, we downsample the images of the cropped images in the Inria Aerial Dataset to be 256 × 256 and report the results in Table 8. Although the downsampled inputs lead to performance degradation, our RPAFormer still obtains 88.15 and 86.42 in terms of precision and recall, respectively. Such results verify the robustness of RPAFormer in low-resolution settings.
Table 8. Ablation analysis of performance on low-resolution images and computational overhead (%).

4.5. Statistical Significance Testing

To guarantee that the observed performance enhancements are not attributed to chance alone, additional statistical significance tests are implemented between RPAFormer and other state-of-the-art methods. We conducted statistical significance tests on the WHU Dataset and the Inria Aerial Dataset. The results are provided in Table 9. The experimental results demonstrate consistent predictive performance across both datasets, indicating the robustness of RPAFormer. This stability is especially evident on the Inria Aerial Dataset, which comprises a significantly larger number of training samples.
Table 9. Statistical significance test on WHU Dataset and Inria Aerial Dataset (%).
Meanwhile, we have systematically calculated the p-values across all evaluation metrics (precision, recall, F1, and IoU) over three independent runs using the independent two-sample t-test. The results are provided in Table 10. Comparing our proposed method with the baseline, the calculated p-values are 0.0003 for precision, 0.0292 for recall, <0.0001 for F1, and <0.0001 for IoU. Since all p-values are strictly less than the standard significance level of p < 0.05 (with F1 and IoU being highly significant at p < 0.001), we can confidently reject the null hypothesis. This proves that the performance improvements yielded by our method are statistically significant and inherently derived from our architectural design, rather than random variance.
Table 10. Statistical significance test results ((Mean ± Std) %) over three independent runs.

5. Conclusions

In this paper, we propose RPAFormer to extract building footprints with relative position-aware dependencies using a transformer-based encoder–decoder architecture. To achieve this, we propose a novel Relative Position-aware Self-attention (RPSA) to learn the relative dependencies of the encoded tokens. Then, a decoder network with Cross Masked Attention (CMA) blocks is designed for multi-scale feature fusion, enabling the transformer network to focus on learning precise local details. The dual encoder–decoder features are aggregated using skip connection, allowing us to strengthen the correspondence between the encoder and decoder layers in multiple stages. Extensive experiments demonstrate that our method achieves more competitive performance than other state-of- the-art methods.

Author Contributions

Conceptualization, J.X. and L.Z.; methodology, S.Y. and Z.Z.; software, J.X.; validation, J.X. and S.Y.; data curation, J.X.; writing—original draft preparation, J.X.; writing—review and editing, Z.Z. and L.Z.; visualization, S.Y.; supervision, L.Z.; project administration, L.Z.; funding acquisition, L.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Scientific Research Fund of the Institute of Engineering Mechanics, China Earthquake Administration (Grant No. 2024C26), and the Key Science and Technology Project of Ministry of Emergency Management of the People’s Republic of China (Grant No. 2024EMST050503).

Data Availability Statement

Publicly available datasets were analyzed in this study. The Massachusetts Dataset can be found at https://www.cs.toronto.edu/~vmnih/data/ (accessed on 20 March 2026). The Inria Aerial Dataset can be found at https://project.inria.fr/aerialimagelabeling/ (accessed on 20 March 2026). The WHU Dataset can be found at http://gpcv.whu.edu.cn/data/building_dataset.html (accessed on 20 March 2026).

Conflicts of Interest

Authors Juehui Xing and Zhongyi Zhu were employed by the company Beijing Institute of Architectural design Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
RPAFormerRelative Position Aggregated Transformer
RPSARelative Position-aware Self-attention
CMACross Masked Attention
SW_CMAShifted Window Cross Masked Attention
RSRemote Sensing
GISGeographic Information System
CNNConvolutional Neural Network
ViTVisual Transformer
TSGTransformer Scale Gate
DNNDeep Neural Network
SFAMScale-feature Attention Module
CCTBConcatenation-then-cross-fusion Transformer Block
AGMAdaptive Gating Module
MHSAMulti-head Self-attention
LNLayerNorm
PPrecision
RRecall
IoUIntersection over Union
TPTrue Positive
FPFalse Positive
TNTrue Negative
FNFalse Negative
SCSkip Connection
DAMDetail Aggregation Module

References

  1. Shao, Z.; Tang, P.; Wang, Z.; Saleem, N.; Yam, S.; Sommai, C. BRRNet: A Fully Convolutional Neural Network for Automatic Building Extraction from High-Resolution Remote Sensing Images. Remote Sens. 2020, 12, 1050. [Google Scholar] [CrossRef] [Scilit]
  2. Chen, K.; Zou, Z.; Shi, Z. Building Extraction from Remote Sensing Images with Sparse Token Transformers. Remote Sens. 2021, 13, 4441. [Google Scholar] [CrossRef] [Scilit]
  3. Chen, J.; Furukawa, Y. HEAT: Holistic Edge Attention Transformer for Structured Reconstruction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2022; pp. 3866–3875. [Google Scholar] [CrossRef] [Scilit]
  4. Li, Y.; Hong, D.; Li, C.; Yao, J.; Chanussot, J. HD-Net: High-Resolution Decoupled Network for Building Footprint Extraction via Deeply Supervised Body and Boundary Decomposition. ISPRS J. Photogramm. Remote Sens. 2024, 209, 51–65. [Google Scholar] [CrossRef] [Scilit]
  5. Li, Q.; Mou, L.; Sun, Y.; Hua, Y.; Shi, Y.; Zhu, X. A Review of Building Extraction From Remote Sensing Imagery: Geometrical Structures and Semantic Attributes. IEEE Trans. Geosci. Remote Sens. 2024, 62, 4702315. [Google Scholar] [CrossRef] [Scilit]
  6. Gavankar, L.N.; Ghosh, S.K. Automatic Building Footprint Extraction from High-Resolution Satellite Image Using Mathematical Morphology. Eur. J. Remote Sens. 2018, 51, 182–193. [Google Scholar] [CrossRef] [Scilit]
  7. Li, Z.; Shi, W.; Wang, Q.; Miao, Z. Extracting Man-Made Objects from High Spatial Resolution Remote Sensing Images via Fast Level Set Evolutions. IEEE Trans. Geosci. Remote Sens. 2014, 53, 883–899. [Google Scholar] [CrossRef] [Scilit]
  8. Sohn, G.; Jwa, Y.; Jung, J.; Kim, H. An Implicit Regularization for 3D Building Rooftop Modeling Using Airborne LiDAR Data. ISPRS Ann. Photogramm. Remote Sens. 2012, 1, 305–310. [Google Scholar] [CrossRef] [Scilit]
  9. Marmanis, D.; Schindler, K.; Wegner, J.D.; Galliani, S.; Datcu, M.; Stilla, U. Classification with an Edge: Improving Semantic Image Segmentation with Boundary Detection. ISPRS J. Photogramm. Remote Sens. 2018, 135, 158–172. [Google Scholar] [CrossRef] [Scilit]
  10. Sun, X.; Christoudias, C.M.; Fua, P. Free-Shape Polygonal Object Localization. In Proceedings of the European Conference on Computer Vision; Springer International Publishing: Cham, Switzerland, 2014; pp. 317–332. [Google Scholar] [CrossRef] [Scilit]
  11. Awrangjeb, M.; Ravanbakhsh, M.; Fraser, C.S. Automatic Detection of Residential Buildings Using LiDAR Data and Multispectral Imagery. ISPRS J. Photogramm. Remote Sens. 2010, 65, 457–467. [Google Scholar] [CrossRef] [Scilit]
  12. Kaiser, P.; Wegner, J.D.; Lucchi, A.; Jaggi, M.; Hofmann, T.; Schindler, K. Learning Aerial Image Segmentation from Online Maps. IEEE Trans. Geosci. Remote Sens. 2017, 55, 6054–6068. [Google Scholar] [CrossRef] [Scilit]
  13. Sohn, G.; Dowman, I. Data Fusion of High-Resolution Satellite Imagery and LiDAR Data for Automatic Building Extraction. ISPRS J. Photogramm. Remote Sens. 2007, 62, 43–63. [Google Scholar] [CrossRef] [Scilit]
  14. Simonetto, E.; Oriot, H.; Garello, R. Rectangular Building Extraction from Stereoscopic Airborne Radar Images. IEEE Trans. Geosci. Remote Sens. 2005, 43, 2386–2395. [Google Scholar] [CrossRef] [Scilit]
  15. Geng, Q.; Zhang, H.; Qi, X.; Huang, G.; Yang, R.; Zhou, Z. Gated Path Selection Network for Semantic Segmentation. IEEE Trans. Image Process. 2021, 30, 2436–2449. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Ding, L.; Tang, H.; Liu, Y.; Shi, Y.; Zhu, X.X.; Bruzzone, L. Adversarial Shape Learning for Building Extraction in VHR Remote Sensing Images. IEEE Trans. Image Process. 2022, 31, 678–690. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Guo, H.; Su, X.; Wu, C.; Du, B.; Zhang, L. Decoupling Semantic and Edge Representations for Building Footprint Extraction from Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5613116. [Google Scholar] [CrossRef] [Scilit]
  18. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 5998–6008. [Google Scholar] [CrossRef] [Scilit]
  19. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image Is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv 2021, arXiv:2010.11929.2021. [Google Scholar] [CrossRef] [Scilit]
  20. Cong, Y.; Liao, W.; Ackermann, H.; Rosenhahn, B.; Yang, M.Y. Spatial-Temporal Transformer for Dynamic Scene Graph Generation. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2021; pp. 16372–16382. [Google Scholar] [CrossRef] [Scilit]
  21. Zhang, B.; Gu, S.; Zhang, B.; Bao, J.; Chen, D.; Wen, F.; Wang, Y.; Guo, B. StyleSwin: Transformer-Based GAN for High-Resolution Image Generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2022; pp. 11304–11314. [Google Scholar] [CrossRef] [Scilit]
  22. Wang, Y.; Xu, Z.; Wang, X.; Shen, C.; Cheng, B.; Shen, H.; Xia, H. End-to-End Video Instance Segmentation with Transformers. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 8741–8750. [Google Scholar] [CrossRef] [Scilit]
  23. Yao, S.; Zhu, R.; Wang, Z.; Ren, W.; Yan, Y.; Cao, X. UMDATrack: Unified Multi-Domain Adaptive Tracking Under Adverse Weather Conditions. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2025; pp. 6466–6475. [Google Scholar] [CrossRef] [Scilit]
  24. Yao, S.; Han, X.; Zhang, H.; Wang, X.; Cao, X. Learning Deep Lucas-Kanade Siamese Network for Visual Tracking. IEEE Trans. Image Process. 2021, 30, 4814–4827. [Google Scholar] [CrossRef] [Scilit]
  25. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2021; pp. 9992–10002. [Google Scholar] [CrossRef] [Scilit]
  26. Zhai, X.; Kolesnikov, A.; Houlsby, N.; Beyer, L. Scaling Vision Transformers. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2022; pp. 12104–12113. [Google Scholar] [CrossRef] [Scilit]
  27. Ding, M.; Xiao, B.; Codella, N.; Luo, P.; Wang, J.; Yuan, L. DaViT: Dual Attention Vision Transformers. In Proceedings of the European Conference on Computer Vision; Springer Nature: Cham, Switzerland, 2022; pp. 74–92. [Google Scholar] [CrossRef] [Scilit]
  28. Tian, Y.; Xie, L.; Wang, Z.; Wei, L.; Zhang, X.; Jiao, J.; Wang, Y.; Tian, Q.; Ye, Q. Integrally Pre-Trained Transformer Pyramid Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2023; pp. 18610–18620. [Google Scholar] [CrossRef] [Scilit]
  29. Shi, H.; Hayat, M.; Cai, J. Transformer Scale Gate for Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2023; pp. 3051–3060. [Google Scholar] [CrossRef] [Scilit]
  30. Zheng, S.; Lu, J.; Zhao, H.; Zhu, X.; Luo, Z.; Wang, Y.; Fu, J.; Feng, J.; Xiang, T.; Torr, P.H.S.; et al. Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 6881–6890. [Google Scholar] [CrossRef] [Scilit]
  31. Strudel, R.; Pinel, R.G.; Laptev, I.; Schmid, C. Segmenter: Transformer for Semantic Segmentation. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2021; pp. 7242–7252. [Google Scholar] [CrossRef] [Scilit]
  32. Wang, W.; Xie, E.; Li, X.; Fan, D.-P.; Song, K.; Liang, D.; Lu, T.; Luo, P.; Shao, L. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction Without Convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 568–578. [Google Scholar] [CrossRef] [Scilit]
  33. Herrmann, C.; Sargent, K.; Jiang, L.; Zabih, R.; Chang, H.; Liu, C.; Krishnan, D.; Sun, D. Pyramid Adversarial Training Improves ViT Performance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2022; pp. 13419–13429. [Google Scholar] [CrossRef] [Scilit]
  34. Yao, S.; Guo, Y.; Yan, Y.; Ren, W.; Cao, X. UncTrack: Reliable Visual Object Tracking with Uncertainty-Aware Prototype Memory Network. IEEE Trans. Image Process. 2025, 34, 3533–3546. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Hassani, A.; Walton, S.; Li, J.; Li, S.; Shi, H. Neighborhood Attention Transformer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2023; pp. 6185–6194. [Google Scholar] [CrossRef] [Scilit]
  36. Long, J.; Shelhamer, E.; Darrell, T. Fully Convolutional Networks for Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2015; pp. 3431–3440. [Google Scholar] [CrossRef] [Scilit]
  37. Ji, S.; Wei, S.; Lu, M. Fully Convolutional Networks for Multisource Building Extraction from an Open Aerial and Satellite Imagery Data Set. IEEE Trans. Geosci. Remote Sens. 2019, 57, 574–586. [Google Scholar] [CrossRef] [Scilit]
  38. Mou, L.; Hua, Y.; Zhu, X. A Relation-Augmented Fully Convolutional Network for Semantic Segmentation in Aerial Scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2019; pp. 12416–12425. [Google Scholar] [CrossRef] [Scilit]
  39. Li, Q.; Shi, Y.; Huang, X.; Zhu, X. Building Footprint Generation by Integrating Convolution Neural Network with Feature Pairwise Conditional Random Field (FPCRF). IEEE Trans. Geosci. Remote Sens. 2020, 58, 7502–7519. [Google Scholar] [CrossRef] [Scilit]
  40. Zhu, Q.; Liao, C.; Hu, H.; Mei, X.; Li, H. Map-Net: Multiple Attending Path Neural Network for Building Footprint Extraction from Remote Sensed Imagery. IEEE Trans. Geosci. Remote Sens. 2021, 59, 6169–6181. [Google Scholar] [CrossRef] [Scilit]
  41. Yao, S.; Liu, D.; Li, T.; Li, S.; Ren, W.; Cao, X. UAGLNet: Uncertainty-Aggregated Global-Local Fusion Network with Cooperative CNN-Transformer for Building Extraction. IEEE Trans. Geosci. Remote Sens. 2026, 64, 5601714. [Google Scholar] [CrossRef] [Scilit]
  42. Yao, S.; Sun, H.; Xiang, T.; Wang, X.; Cao, X. Hierarchical Graph Interaction Transformer with Dynamic Token Clustering for Camouflaged Object Detection. IEEE Trans. Image Process. 2024, 33, 5936–5948. [Google Scholar] [CrossRef] [Scilit]
  43. Chen, J.; Jiang, Y.; Luo, L.; Gong, W. Asf-Net: Adaptive Screening Feature Network for Building Footprint Extraction from Remote-Sensing Images. IEEE Trans. Geosci. Remote Sens. 2022, 60, 1–13. [Google Scholar] [CrossRef] [Scilit]
  44. Wang, Q.; Luo, X.; Feng, J.; Zhang, G.; Jia, X.; Yin, J. Multiscale Prototype Contrast Network for High-Resolution Aerial Imagery Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5615114. [Google Scholar] [CrossRef] [Scilit]
  45. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In International Conference on Medical Image Computing and Computer Assisted Intervention; Springer International Publishing: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
  46. Wei, S.; Ji, S.; Lu, M. Toward Automatic Building Footprint Delineation from Aerial Images Using CNN and Regularization. IEEE Trans. Geosci. Remote Sens. 2020, 58, 2178–2189. [Google Scholar] [CrossRef] [Scilit]
  47. Guan, F.; Zhao, N.; Wang, H.; Fang, Z.; Zhang, J.; Yu, Y.; Jiang, L.; Huang, H. Dual-branch transformer framework with gradient-aware weighting feature alignment for robust cross-view geo-localization. Inf. Fusion 2025, 127, 103808. [Google Scholar] [CrossRef] [Scilit]
  48. He, K.; Gkioxari, G.; Dollár, P.; Girshick, R.B. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2017; pp. 2980–2988. [Google Scholar] [CrossRef] [Scilit]
  49. Xu, L.; Li, Y.; Xu, J.; Guo, L. Gated Spatial Memory and Centroid-Aware Network for Building Instance Extraction. IEEE Trans. Geosci. Remote Sens. 2022, 60, 4402214. [Google Scholar] [CrossRef] [Scilit]
  50. Shi, Y.; Li, Q.; Zhu, X. Building Segmentation Through a Gated Graph Convolutional Neural Network with Deep Structured Feature Embedding. ISPRS J. Photogramm. Remote Sens. 2020, 159, 184–197. [Google Scholar] [CrossRef] [Scilit]
  51. Lee, Y.; Park, J. CenterMask: Real-Time Anchor-Free Instance Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2020; pp. 13903–13915. [Google Scholar] [CrossRef] [Scilit]
  52. Marcos, D.; Tuia, D.; Kellenberger, B.; Zhang, L.; Bai, M.; Liao, R.; Urtasun, R. Learning Deep Structured Active Contours End-to-End. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2018; pp. 8877–8885. [Google Scholar] [CrossRef] [Scilit]
  53. Cheng, D.; Liao, R.; Fidler, S.; Urtasun, R. DarNet: Deep Active Ray Network for Building Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2019; pp. 7431–7439. [Google Scholar] [CrossRef] [Scilit]
  54. Zhao, K.; Kamran, M.; Sohn, G. Boundary Regularized Building Footprint Extraction from Satellite Images Using Deep Neural Network. arXiv 2020, arXiv:2006.13176. [Google Scholar] [CrossRef] [Scilit]
  55. Li, Z.; Wegner, J.D.; Lucchi, A. Topological Map Extraction from Overhead Images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2019; pp. 1715–1724. [Google Scholar] [CrossRef] [Scilit]
  56. Girard, N.; Smirnov, D.; Solomon, J.; Tarabalka, Y. Polygonal Building Extraction by Frame Field Learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 5891–5900. [Google Scholar] [CrossRef] [Scilit]
  57. Liu, R.; Mi, L.; Chen, Z. AfNet: Adaptive Fusion Network for Remote Sensing Image Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2020, 59, 7871–7886. [Google Scholar] [CrossRef] [Scilit]
  58. Chen, X.; Qiu, C.; Guo, W.; Yu, A.; Tong, X.; Schmitt, M. Multiscale Feature Learning by Transformer for Building Extraction from Satellite Images. IEEE Geosci. Remote Sens. Lett. 2022, 19, 2503605. [Google Scholar] [CrossRef] [Scilit]
  59. Xu, L.; Li, Y.; Xu, J.; Zhang, Y.; Guo, L. BctNet: Bi-Branch Cross-Fusion Transformer for Building Footprint Extraction. IEEE Trans. Geosci. Remote Sens. 2023, 61, 4402014. [Google Scholar] [CrossRef] [Scilit]
  60. Luo, H.; Feng, X.; Du, B.; Zhang, Y. A multimodal feature fusion network for building extraction with very high-resolution remote sensing image and LiDAR data. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5621819. [Google Scholar] [CrossRef] [Scilit]
  61. Babiloni, F.; Marras, I.; Kokkinos, F.; Deng, J.; Chrysos, G.; Zafeiriou, S. Poly-NL: Linear Complexity Non-Local Layers with 3rd Order Polynomials. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2021; pp. 10498–10508. [Google Scholar] [CrossRef] [Scilit]
  62. Wang, D.; Zhang, J.; Du, B.; Xia, G.; Tao, D. An Empirical Study of Remote Sensing Pre-Training. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5608020. [Google Scholar] [CrossRef] [Scilit]
  63. Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; pp. 12077–12090. [Google Scholar] [CrossRef] [Scilit]
  64. Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid Scene Parsing Network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2017; pp. 6230–6239. [Google Scholar] [CrossRef] [Scilit]
  65. Xu, Y.; Wu, L.; Xie, Z.; Chen, Z. Building Extraction in Very High Resolution Remote Sensing Imagery Using Deep Learning and Guided Filters. Remote Sens. 2018, 10, 1461. [Google Scholar] [CrossRef] [Scilit]
  66. Chen, L.; Papandreou, G.; Kokkinos, I.; Murphy, K.; Yuille, A.L. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs. IEEE Trans. Pattern Anal. Mach. Intell. 2018, 40, 834–848. [Google Scholar] [CrossRef] [Scilit]
  67. Zhang, Z.; Wang, Y. JointNet: A Common Neural Network for Road and Building Extraction. Remote Sens. 2019, 11, 696. [Google Scholar] [CrossRef] [Scilit]
  68. Ma, J.; Wu, L.; Tang, X.; Liu, F.; Zhang, X.; Jiao, L. Building Extraction of Aerial Images by a Global and Multi-Scale Encoder-Decoder Network. Remote Sens. 2020, 12, 2350. [Google Scholar] [CrossRef] [Scilit]
  69. Badrinarayanan, V.; Kendall, A.; Cipolla, R. SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 2481–2495. [Google Scholar] [CrossRef] [Scilit]
  70. Xie, Y.; Zhu, J.; Cao, Y.; Feng, D.; Hu, M.; Li, W.; Zhang, Y.; Fu, L. Refined Extraction of Building Outlines from High-Resolution Remote Sensing Imagery Based on a Multifeature Convolutional Neural Network and Morphological Filtering. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 1842–1855. [Google Scholar] [CrossRef] [Scilit]
  71. Zhou, Y.; Chen, Z.; Wang, B.; Li, S.; Liu, H.; Xu, D.; Ma, C. BomscNet: Boundary Optimization and Multi-Scale Context Awareness Based Building Extraction from High-Resolution Remote Sensing Imagery. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5618617. [Google Scholar] [CrossRef] [Scilit]
  72. Wang, J.; Sun, K.; Cheng, T.; Jiang, B.; Deng, C.; Zhao, Y.; Liu, D.; Mu, Y.; Tan, M.; Wang, X.; et al. Deep High-Resolution Representation Learning for Visual Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 43, 3349–3364. [Google Scholar] [CrossRef] [Scilit]
  73. Fu, J.; Liu, J.; Tian, H.; Li, Y.; Bao, Y.; Fang, Z.; Lu, H. Dual Attention Network for Scene Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2019; pp. 3146–3154. [Google Scholar] [CrossRef] [Scilit]
  74. Yuan, W.; Xu, W. Msst-Net: A Multi-Scale Adaptive Network for Building Extraction from Remote Sensing Images Based on Swin Transformer. Remote Sens. 2021, 13, 4743. [Google Scholar] [CrossRef] [Scilit]
  75. Lin, G.; Milan, A.; Shen, C.; Reid, I.D. RefineNet: Multi-Path Refinement Networks for High-Resolution Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2017; pp. 5168–5177. [Google Scholar] [CrossRef] [Scilit]
  76. Liu, P.; Liu, X.; Liu, M.; Shi, Q.; Yang, J.; Xu, X.; Zhang, Y. Building Footprint Extraction from High-Resolution Images via Spatial Residual Inception Convolutional Neural Network. Remote Sens. 2019, 11, 830. [Google Scholar] [CrossRef] [Scilit]
  77. Fan, M.; Lai, S.; Huang, J.; Wei, X.; Chai, Z.; Luo, J.; Wei, X. Rethinking BiSeNet for Real-Time Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 9716–9725. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.