Next Article in Journal
Vibration Signal Denoising Method Based on ICFO-SVMD and Improved Wavelet Thresholding
Next Article in Special Issue
A Multi-Scale Global Fusion-Based Method for Surface Fissure Extraction from UAV Imagery
Previous Article in Journal
Cybersecurity in Radio Frequency Technologies: A Scientometric and Systematic Review with Implications for IoT and Wireless Applications
Previous Article in Special Issue
Rotation-Sensitive Feature Enhancement Network for Oriented Object Detection in Remote Sensing Images
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

PriorSAM-DBNet: A SAM-Prior-Enhanced Dual-Branch Network for Efficient Semantic Segmentation of High-Resolution Remote Sensing Images

1
College of Computer Science and Technology, Guizhou University, Guiyang 550025, China
2
State Key Laboratory of Public Big Data, Guizhou University, Guiyang 550025, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(2), 749; https://doi.org/10.3390/s26020749
Submission received: 17 December 2025 / Revised: 12 January 2026 / Accepted: 18 January 2026 / Published: 22 January 2026

Abstract

Semantic segmentation of high-resolution remote sensing imagery is a critical technology for the intelligent interpretation of sensor data, supporting automated environmental monitoring and urban sensing systems. However, processing data from dense urban scenarios remains challenging due to sensor signal occlusions (e.g., shadows) and the complexity of parsing multi-scale targets from optical sensors. Existing approaches often exhibit a trade-off between the accuracy of global semantic modeling and the precision of complex boundary recognition. While the Segment Anything Model (SAM) offers powerful zero-shot structural priors, its direct application to remote sensing is hindered by domain gaps and the lack of inherent semantic categorization. To address these limitations, we propose a dual-branch cooperative network, PriorSAM-DBNet. The main branch employs a Densely Connected Swin (DC-Swin) Transformer to capture cross-scale global features via a hierarchical shifted window attention mechanism. The auxiliary branch leverages SAM’s zero-shot capability to exploit structural universality, generating object-boundary masks as robust signal priors while bypassing semantic domain shifts. Crucially, we introduce a parameter-efficient Scaled Subsampling Projection (SSP) module that employs a weight-sharing mechanism to align cross-modal features, freezing the massive SAM backbone to ensure computational viability for practical sensor applications. Furthermore, a novel Attentive Cross-Modal Fusion (ACMF) module is designed to dynamically resolve semantic ambiguities by calibrating the global context with local structural priors. Extensive experiments on the ISPRS Vaihingen, Potsdam, and LoveDA-Urban datasets demonstrate that PriorSAM-DBNet outperforms state-of-the-art approaches. By fine-tuning only 0.91 million parameters in the auxiliary branch, our method achieves mIoU scores of 82.50%, 85.59%, and 53.36%, respectively. The proposed framework offers a scalable, high-precision solution for remote sensing semantic segmentation, particularly effective for disaster emergency response where rapid feature recognition from sensor streams is paramount.

1. Introduction

High-resolution remote sensing image semantic segmentation is a cornerstone technique for the automated processing of complex earth surface scenes, facilitating applications from smart city sensing to disaster monitoring. With the rapid advancement of satellite and drone sensor technologies, the volume of remote sensing data has expanded explosively [1]. However, the complexity of dense urban scenarios—characterized by the coexistence of multi-scale objects, severe signal occlusion (e.g., shadows from high-rise buildings), and intricate boundaries—poses significant challenges for automated interpretation algorithms. Existing methods often struggle to simultaneously model fine-grained local details and global contextual semantics from the acquired sensor data.
Mainstream single-branch architectures face inherent structural bottlenecks. Convolutional Neural Networks (CNNs) [2,3,4,5,6], while effective at local feature extraction, suffer from limited receptive fields, often leading to the omission of small targets or discontinuity in large-scale structures like roads. To alleviate these issues, recent lightweight CNN architectures like SC-SKNet [7] have been proposed for real-time segmentation, yet the trade-off between efficiency and large-scale context modeling remains unresolved. Conversely, Vision Transformers (ViTs) [8,9] excel at capturing global dependencies but face quadratic computational complexity with respect to image resolution [10], and their patch-based processing can blur high-frequency boundary information during downsampling operations.
To address the computational burden of Transformers, seminal works from the past few years have explored hierarchical structures. Notably, SegFormer [11] introduced a positional-encoding-free design with a lightweight MLP decoder, establishing a strong baseline for efficient semantic segmentation. Similarly, Xu et al. proposed the Efficient Transformer [12] to specifically tackle edge classification issues in remote sensing imagery while reducing inference costs. Despite these advancements, balancing the “efficiency–accuracy” trade-off in dense urban scenarios with limited training data remains a persistent challenge.
Recent hybrid approaches have attempted to mitigate this. The Densely Connected Swin (DC-Swin) Transformer [13] combines shifted window attention with dense feature aggregation. Furthermore, advanced variants like FML-Swin [14] and Swin-MDFF [15] have introduced feature interactive fusion and multi-scale dilated mechanisms to enhance small object detection in urban scenes. Despite these improvements, training such complex models from scratch on limited remote sensing datasets can lead to overfitting or poor generalization on unseen architectural styles.
Recently, the Segment Anything Model (SAM) [16] has shown potential as a foundation model for visual tasks. However, directly applying SAM to remote sensing is problematic due to the significant domain gap between natural and satellite imagery [17,18]. SAM generates class-agnostic masks, which lack the specific semantic category information required for tasks like land-cover classification. Recent foundation model adaptations, such as RSAM-Seg [19] and SAM2Former [20], have attempted to bridge this gap by integrating adapter modules. However, the massive parameter size of SAM makes full fine-tuning computationally prohibitive for many applications [21].
To address these efficiency and generalization challenges, recent studies have proposed innovative adaptation frameworks. Notably, SpectralX [22] introduces a parameter-efficient fine-tuning strategy that leverages attribute-refined adapters to achieve robust domain generalization for spectral remote sensing foundation models without extensive retraining.
To bridge this gap, recent works have explored various fusion strategies. Some methods employ full-parameter fine-tuning, which demands extensive computational resources. Others use prompt engineering (e.g., RSPrompter [23]), which can be brittle and labor-intensive to design for diverse scenes. Approaches like MC-SAM SEG [24] and CWSAM [25] utilize parameter-efficient adapters to transfer SAM to optical and SAR domains, respectively. However, these approaches often fail to strike an optimal balance between efficiency (parameter count/inference speed) and accuracy (boundary precision/semantic correctness).
To address these limitations, we propose PriorSAM-DBNet, a dual-branch collaborative framework designed for efficient sensor data interpretation. Unlike previous methods that view SAM merely as a feature extractor, we conceptualize the frozen SAM backbone as a “Structural Prior Generator” that provides a rigid boundary constraint to the learnable “Semantic Encoder” (DC-Swin Transformer). Our approach introduces a novel adaptation strategy via the Scaled Subsampling Projection (SSP) module, which utilizes shared weights across scales to align features efficiently. This design aligns with the emerging trend of dual-branch architectures in remote sensing, such as TDBAN [26] and DBSANet [27], but distinguishes itself by explicitly leveraging zero-shot priors to enhance signal interpretation. Our core innovation lies in the synergistic integration of these two branches via the proposed Attentive Cross-Modal Fusion (ACMF) module. Rather than performing simple feature concatenation, the ACMF module leverages high-fidelity spatial priors from SAM to calibratethe semantic features from the Swin Transformer, effectively resolving semantic ambiguities in boundary regions.
The main contributions of this study are as follows:
(1)
A dual-branch collaborative architecture is proposed that synergizes the global contextual modeling of the DC-Swin Transformer with the robust object-boundary priors of SAM. This design effectively resolves the trade-off between semantic consistency and boundary precision in dense urban scenes.
(2)
A lightweight adaptation strategy is introduced, comprising a frozen SAM backbone and a novel Scaled Subsampling Projection (SSP) module. By enforcing a shared-weight projection logic across scales, this strategy achieves multi-scale feature alignment with minimal trainable parameters (0.91 million), ensuring high efficiency suitable for real-time sensor data processing applications, comparable to recent lightweight models like LightFormer [28].
(3)
The Attentive Cross-Modal Fusion (ACMF) module is developed as a dynamic mechanism that enables adaptive interaction between the prior and semantic branches. By explicitly modeling the correlation between structural integrity and semantic class, ACMF significantly improves segmentation consistency in complex boundary regions.

2. Related Work

2.1. Semantic Segmentation in Remote Sensing

The evolution of semantic segmentation in remote sensing has transitioned from handcrafted feature engineering to deep learning paradigms characterized by increasingly sophisticated context modeling. Early dominance was established by Convolutional Neural Networks (CNNs), particularly Fully Convolutional Networks (FCNs) [3] and symmetric encoder–decoder architectures like U-Net [4]. While effective in local feature extraction, standard CNNs suffer from limited receptive fields, leading to inadequate modeling of long-range dependencies essential for large-scale geospatial objects [2]. To mitigate this, mechanisms such as atrous spatial pyramid pooling (ASPP) [5] and pyramid pooling modules [6] were introduced to aggregate multi-scale context. However, these operations often incur a loss of high-frequency spatial details, resulting in coarse boundaries for small, dense targets in urban scenarios.
The advent of Vision Transformers (ViTs) [8] marked a paradigm shift towards global context modeling, as detailed in recent comprehensive surveys [29]. In the remote sensing domain, architectures like Swin-Unet and TransUNet [30] have leveraged self-attention mechanisms to capture long-range semantic dependencies. To combine the strengths of both paradigms, hybrid architectures have emerged. For instance, Swin Transformer Embedding UNet (ST-UNet) [31] proposed a dual-encoder structure combining CNNs and Transformers to enhance feature representation. Similarly, UNetFormer [32] utilized a lightweight ResNet encoder with a Global–Local Transformer Block (GLTB) decoder for efficient urban scene segmentation. These works demonstrate that dual-branch or hybrid designs can effectively synergize local texture extraction with global semantic modeling.
Specifically, the DC-Swin Transformer [13] combines hierarchical shifted window attention [9] with densely connected feature aggregation, effectively balancing representation power and computational efficiency. Recent advancements, such as LSENet [33] and AFNE-Net [34], have further augmented these architectures with spatial enhancement modules to refine local details.
Despite these strides, training pure Transformer models from scratch on limited remote sensing datasets poses significant risks of overfitting and typically requires massive annotated data to converge [14]. Furthermore, pure semantic encoders often struggle to decouple distinct objects in dense clusters due to boundary blurring during patch embedding. This has catalyzed interest in adapting foundation models, such as the Segment Anything Model (SAM) [16], which offers robust, zero-shot structural priors. However, the direct application of SAM is hindered by the domain gap between natural and satellite imagery [17,18]. Recent works like RSPrompter [23] and SAM-Adapter [35] have attempted to bridge this gap, yet effectively integrating SAM’s frozen structural knowledge with learnable semantic features remains an open challenge. PriorSAM-DBNet addresses this by treating SAM not merely as a feature extractor, but as a rigid structural constraint provider within a dual-branch system.

2.2. Foundation Models and SAM Adaptation

The Segment Anything Model (SAM) [16] has emerged as a robust foundation model for image segmentation. Its zero-shot capabilities have been explored in various domains, including medical imaging [36] and camouflage detection [35]. In remote sensing, the application of SAM faces challenges due to domain shifts. Recent works like RSPrompter [23] utilize external detection boxes as prompts, while others like SAM-Adapter [35] employ lightweight adapters to tune SAM for specific downstream tasks. The adaptation of SAM for remote sensing has become a vibrant research area in 2024–2025. FastSAM [37] focuses on efficiency and scale awareness. PointSAM [38] investigates point-based supervision for fine-tuning, while recent works like SAM2-UNet [39] and SAM2Former [20] have begun integrating the next-generation SAM 2 encoder into U-shaped architectures. Similarly, Zhang et al. proposed SpectralX [22], a parameter-efficient framework that adapts existing RSFMs using a two-stage training approach. By utilizing an attribute-oriented mixture of adapters, it effectively bridges the gap between pre-trained models and diverse spectral modalities. However, few works have successfully integrated SAM as a structural prior within a dual-branch architecture that preserves the efficiency of a frozen backbone while leveraging the semantic learning power of a separate encoder, as proposed in our PriorSAM-DBNet. This approach shares conceptual similarities with the recent CrossEarth [40] foundation model but focuses specifically on the efficient fusion of priors rather than large-scale pre-training.

3. Methodology

3.1. PriorSAM-DBNet Architecture Overview

As illustrated in Figure 1, PriorSAM-DBNet adopts a parallel dual-branch encoding architecture to exploit the complementary strengths of specific semantic learning and general structural priors. The Main Encoder employs a four-stage DC-Swin Transformer [13] to extract hierarchical semantic features ST 1 , ST 2 , ST 3 , ST 4 . This branch is fully learnable and responsible for capturing the spectral–semantic relationships specific to the remote sensing dataset. The SAM-Prior Auxiliary Encoder utilizes a frozen SAM ViT-H backbone to process image prompts—specifically SAM-Generated Object Masks (SGO) and SAM-Generated Boundary Masks (SGB)—transforming them into hierarchical prior features ( SP 1 , SP 2 , SP 3 , SP 4 ) via the SSP module. These features are fused by the ACMF module and reconstructed by a hierarchical decoder. To rigorously define the data flow, we denote scalars in normal italic (e.g., k) and vectors/tensors in bold italic (e.g., F ).

3.2. Main Encoder and SAM-Prior Auxiliary Encoder

The Main Encoder follows the DC-Swin Transformer design [13], utilizing Shifted Window Attention [9] to capture long-range dependencies while maintaining linear computational complexity. It generates hierarchical features ST k at four stages. Specifically, the feature map at stage k is defined as ST k R H k × W k × C k , where H k = H 2 k + 1 , W k = W 2 k + 1 , and C k is the channel dimension. The detailed architecture of the Main Encoder is shown in Figure 2.
The Auxiliary Encoder is designed for parameter efficiency. We generate SGO and SGB using a grid-prompted SAM. To ensure the reliability of these priors, we apply a triple filtering strategy: a stability score threshold (0.96) to remove low-confidence predictions, an object quantity limit ( K = 50 ) to prevent over-segmentation in textured areas (e.g., tree canopies), and a minimum size threshold ( S = 50 pixels) to exclude noise. These hyperparameters were empirically verified through sensitivity analysis on the ISPRS Vaihingen dataset, where 0.96 yielded the optimal balance between boundary stability and recall, K = 50 reached the efficiency saturation point, and S = 50 effectively minimized granular noise while preserving small targets. As shown in Figure 3, these binary masks are first processed by a lightweight adapter. This adapter consists of sequential 1 × 1 and 3 × 3 convolutions that project the sparse mask information into a dense 256-channel feature space. The Scaled Subsampling Projection (SSP) module then aligns these features to the resolutions of the main branch ( H / 4 to H / 32 ) using shared convolutional weights. This weight-sharing mechanism reduces the parameter count of the adapter to just 0.91 million (representing only 0.15% of SAM’s total parameters), preventing the auxiliary branch from overfitting to the limited training data while preserving the generalization power of SAM.
Theoretical Justification for Shared Weights: A distinct characteristic of our SSP design is the employment of shared convolutional weights across all hierarchical scales. This design choice is grounded in two critical theoretical insights:
  • Enforcing Scale Invariance: In remote sensing imagery, the fundamental geometric properties of objects (e.g., boundaries and corners) remain topologically consistent across scales. By constraining the projection layers to share weights θ s h a r e d across scales k { 1 , , 4 } , we force the network to learn a generalized, scale-agnostic mapping function f θ : F S A M F S e m a n t i c . This prevents the model from overfitting to scale-specific artifacts and promotes the learning of intrinsic structural representations.
  • Parameter Efficiency and Regularization: Given the limited size of remote sensing datasets, increasing model complexity risks catastrophic overfitting. Independent adapters for each scale would quadruple the parameter count. By sharing weights, we constrain the auxiliary branch to a minimal 0.91 million trainable parameters (approx. 0.15% of the SAM backbone). This acts as a structural regularizer, ensuring that the limited gradients are concentrated on optimizing a robust, unified projection logic rather than dispersing over redundant, scale-specific parameters.
Mathematically, the projection at scale k is defined as
SP k = D k ( f c o n v 1 × 1 ( F p r i o r ; θ s h a r e d ) )
where D k represents the scale-specific downsampling operation and θ s h a r e d denotes the reusable projection kernel. Here, F p r i o r R H × W × C i n represents the initial adapter features, and the output SP k R H k × W k × C o u t denotes the aligned structural prior feature tensor matching the resolution of the main branch.

3.3. Attentive Cross-Modal Fusion (ACMF) Module

To effectively integrate the semantic features from the main branch with the structural priors from the auxiliary branch, we propose the ACMF module. Simple addition or concatenation is insufficient because the class-agnostic boundaries from SAM may not strictly align with the target semantic classes in complex transition zones. ACMF employs a spatial attention mechanism to dynamically weight the importance of features based on their cross-modal correlation. The explicit algorithmic flow of the ACMF forward propagation is detailed in Algorithm 1. This process ensures that the structural priors are selectively fused only where they reinforce the semantic consistency, effectively suppressing noise.
Algorithm 1 Forward Propagation of PriorSAM-DBNet with ACMF
Require: 
Input Image I, Pre-computed SAM Masks M o b j , M b d y
Ensure: 
Segmentation Map S m a p
  • Phase 1: Prior Encoding (Frozen SAM Branch)
  • Generate initial prior features: F p r i o r Adapter ( M o b j , M b d y )
  • for  k = 1 to 4 do
  •     SP k SSP_Layer ( F p r i o r , scale = k ) {Downsampling via Shagreen Weights θ s h a g r e e n }
  • end for
  • Phase 2: Semantic Encoding (Learnable Main Branch)
  • for  k = 1 to 4 do
  •     ST k SwinBlock k ( ST k 1 ) {Shifted Window Attention Extraction}
  • end for
  • Phase 3: Attentive Cross-Modal Fusion (ACMF)
  • for  k = 1 to 4 do
  •     ST ˜ k Conv 1 × 1 ( ST k ) {Channel Alignment}
  •     SP ˜ k Conv 1 × 1 ( SP k )
  •     U k Concat ( ST ˜ k , SP ˜ k ) {Feature Aggregation}
  •     A k σ ( Conv s p a t i a l ( U k ) ) {Generate Spatial Attention Map}
  •     F k ST ˜ k + β · ( A k SP ˜ k ) {Residual Fusion with Learnable Scalar β }
  • end for
  • Phase 4: Decoding
  • S m a p Decoder ( F 1 , F 2 , F 3 , F 4 ) {Multi-scale Reconstruction via DCFAM}
  • return  S m a p
Mathematically, the fusion process at scale k is formalized as follows. First, channel alignment is performed:
ST ˜ k = f conv 1 × 1 ( ST k ) , SP ˜ k = f conv 1 × 1 ( SP k )
where f conv 1 × 1 denotes the convolutional kernel. The aligned features ST ˜ k and SP ˜ k share the same dimensions R H k × W k × C m i d .
The spatial attention map A k R H k × W k × 1 is computed to highlight regions where the structural prior effectively supports the semantic prediction:
A k = σ F s p a t i a l ( )
where σ is the Sigmoid activation function and [ ; ] denotes concatenation along the channel axis. Finally, the fused feature F k is obtained via a residual connection to preserve gradient flow:
F k = ST ˜ k + ST ˜ k A k + β · ( SP ˜ k A k )
where β is a learnable scalar parameter and ⊙ represents element-wise multiplication. The resulting fused feature map F k retains the shape R H k × W k × C m i d . This mechanism effectively filters out noise in the semantic branch caused by complex textures by leveraging the high-confidence boundary priors (see Figure 4).

3.4. Decoder

The decoder reconstructs high-resolution segmentation maps through dilated receptive field upsampling and shared dual-attention mechanisms, as shown in Figure 5. For hierarchical features at level k ( k { 4 , 3 , 2 , 1 } ), the decoding procedure is formalized as follows.
Upsampling & Feature Fusion:
F ^ k = U 2 × 2 D r k ( F k )
where D r k denotes a 3 × 3 dilated convolution with rate r k ( r k = 6 / 12 for Block4, r k = 2 for Blocks3-1) and U 2 × 2 represents transposed convolution upsampling. The upsampled features F ^ k R H k 1 × W k 1 × C k 1 are then fused with lower-level features.
Shared Spatial Attention (SSA):
A s = σ f conv 3 × 3 ( [ F ^ k ; F k 1 ] )
where A s R H k 1 × W k 1 × 1 is the spatial attention map.
Shared Channel Attention (SCA):
A c = σ f conv 1 × 1 GAP ( [ F ^ k ; F k 1 ] )
where GAP ( · ) denotes Global Average Pooling, resulting in the channel attention vector A c R 1 × 1 × 2 C k 1 .
Feature Aggregation:
AF k 1 = f conv 3 × 3 A s A c ( F ^ k + F k 1 )
where AF k 1 R H k 1 × W k 1 × C o u t serves as the input for the subsequent decoding stage and ⊙ denotes element-wise multiplication. The final Block1 output AF 1 is refined through 3 × 3 convolution and 4 × bilinear upsampling. Cross-level skip connections dynamically integrate high-level semantics with low-level details, reducing small target omission while maintaining building boundary topology.
Figure 5. Comprehensive architecture of the Decoder module. (a): Illustrates the hierarchical decoding process, utilizing a multi-scale reconstruction strategy to recover high-resolution semantic maps ( A F 1 ) from coarse feature representations ( F 4 ). (be): Detailed internal structures of the attention and connection mechanisms are shown in the surrounding insets.
Figure 5. Comprehensive architecture of the Decoder module. (a): Illustrates the hierarchical decoding process, utilizing a multi-scale reconstruction strategy to recover high-resolution semantic maps ( A F 1 ) from coarse feature representations ( F 4 ). (be): Detailed internal structures of the attention and connection mechanisms are shown in the surrounding insets.
Sensors 26 00749 g005

3.5. Loss Function

We utilize a composite loss function to supervise training, ensuring both pixel-wise semantic correctness and boundary fidelity:
L t o t a l = L C E + λ 1 L o b j + λ 2 L b d y
Here, L C E is the standard Cross-Entropy loss for pixel-wise classification. L o b j and L b d y are auxiliary Binary Cross-Entropy (BCE) losses derived from the SAM priors to enforce object coherence and boundary sharpness, respectively. Following the sensitivity analysis in [1], we empirically set the hyperparameters λ 1 = 1.0 and λ 2 = 0.1 to balance the gradient contributions of each term.

Definition of Boundary Metrics

To rigorously evaluate the boundary performance improvements mentioned in the introduction, we explicitly define the Boundary F1-score (BF1) [2]. Standard mIoU metrics are often dominated by the large interior regions of objects, masking errors at the boundaries. Let G be the set of pixels constituting the ground truth boundaries and P be the set of pixels in the predicted boundaries. We define a tolerance buffer distance d (set to 3 pixels for our experiments). Precision ( P B ) is defined as the fraction of pixels in P that are within distance d of a pixel in G. Recall ( R B ) is defined as the fraction of pixels in G that are within distance d of a pixel in P. The Boundary F1-score is then calculated as
B F 1 = 2 · P B · R B P B + R B
This metric specifically quantifies the model’s ability to delineate sharp transitions between urban land-cover classes.

4. Experiments and Discussion

4.1. Datasets and Experimental Setup

We evaluate our method on three benchmark datasets representing diverse urban landscapes:
  • ISPRS Vaihingen: Contains 33 patches of size roughly 2500 × 2000 pixels with a 9 cm resolution. It features 3 bands (IR, R, and G) and depicts a historic German city with dense complex buildings.
  • ISPRS Potsdam: Contains 38 patches of size 6000 × 6000 pixels with a 5 cm resolution. It features 4 bands (IR, R, G, and B) and also depicts a historic city but with different architectural styles.
  • LoveDA Urban: A challenging dataset with 30 cm resolution, featuring diverse scenes from urban-to-rural transitions, which tests the model’s generalization across scales.

Baseline Selection Criteria

To ensure the rigor and transparency of our comparative analysis, we established specific inclusion criteria for the baseline methods, partially adopting the principles of the PRISMA guidelines [41] for transparent reporting:
  • Relevance: Selected methods must be specifically designed for or adapted to high-resolution remote sensing semantic segmentation in dense urban scenarios.
  • Recency and Impact: We prioritized state-of-the-art models published in high-impact venues (e.g., IEEE TGRS, ISPRS P&RS, and CVPR) within the last five years (2020–2025).
  • Architectural Diversity: To provide a comprehensive evaluation, we included representatives from three distinct architectural paradigms:
    • CNN-based methods: ABCNet [42] and ShelfNet [43];
    • Transformer-based methods: DC-Swin [13], UNetFormer [32], and RSMamba [44];
    • Foundation Model adaptations: MeSAM [45] and SAM-DBnet [46].
This selection strategy ensures that PriorSAM-DBNet is benchmarked against the most competitive and relevant approaches in the field.
Implementation was performed in PyTorch (v2.9.1) on NVIDIA A100 GPUs (Santa Clara, CA, USA). The model is trained with stochastic gradient descent (SGD) with a learning rate of 0.01 and batch size of 16. To ensure a fair comparison, all baseline models and the proposed method were trained using an identical protocol. We employed an adaptive Early Stopping strategy rather than a fixed number of epochs. Specifically, the maximum training duration was set to 200 epochs, with a patience threshold of 15 epochs; training was terminated if the validation loss did not improve for 15 consecutive epochs, and the checkpoint with the lowest validation loss was retained for evaluation.

4.2. Performance Comparison

4.2.1. Performance Analysis on the ISPRS Vaihingen Dataset

PriorSAM-DBNet demonstrates superior performance on the ISPRS Vaihingen dataset, which is characterized by its complex historic urban layout and high building density. As detailed in Table 1, our model achieves a 91.44% mean F1-score, 82.50% mean Intersection over Union (mIoU), and 91.50% Overall Accuracy (OA). These metrics represent a significant advancement over the strongest baseline, SSNet [45], with relative improvements of 1.57%, 0.46%, and 0.23%, respectively.
Specifically, the model demonstrates exceptional capability in extracting rigid man-made structures, attaining an optimal detection accuracy of 97.86% for buildings and 95.12% for vehicles. These results position our method at the forefront of building extraction tasks in dense urban scenarios. The “50% Sample” training experiment further confirms the model’s robustness; even when trained with only half of the standard samples, PriorSAM-DBNet maintains a high mIoU of 84.13%, validating its few-shot generalization capability.
Visual analysis (Figure 6) reveals that our dual-branch architecture effectively mitigates the “adhesion” problem often seen in dense building areas. Compared to ABCNet [42], our approach reduces shadow-induced road discontinuities by approximately 30-pixel intervals, preserving the complete topological continuity of road networks.

4.2.2. Performance Analysis on the ISPRS Potsdam Dataset

The ISPRS Potsdam dataset presents a different set of challenges, featuring distinct architectural styles and RGB spectral bands. On this benchmark (Table 2), PriorSAM-DBNet achieves a 91.97% mean F1-score, 85.59% mIoU, and 91.57% OA.
Our method shows particular strength in distinguishing distinct land cover types with high inter-class similarity. For instance, it achieves 92.85% accuracy for impervious surfaces, exceeding the SSNet baseline by 1.39%, and maintains 96.02% precision for vegetation detection. In terms of aggregate metrics, PriorSAM-DBNet outperforms SAM-DBnet [46] by 0.12 percentage points and ABCNet [42] by a substantial margin of 7.3 percentage points.
Qualitative comparisons in Figure 7 further validate these quantitative results. The model successfully suppresses semantic ambiguity in transition zones between low vegetation and impervious surfaces, a common failure mode for single-branch Transformers. This confirms that the integration of SAM-derived structural priors effectively calibrates the global contextual features extracted by the DC-Swin Transformer.

4.2.3. Performance Comparison on the LoveDA Urban Datasets

PriorSAM-DBNet achieves 53.36% mean Intersection over Union on the LoveDA Urban dataset, demonstrating a 2.98% improvement over the strongest baseline, ABCNet [42], as detailed in Table 3. To further validate the competitiveness of our approach against the latest technological developments, we also incorporated comparisons with state-of-the-art methods from 2023 and 2024, including CMTFNet [10] and RS3Mamba [44]. As observed, our method maintains a performance advantage even against these recent architectures. The model attains 61.81% IoU for building category detection, surpassing ABCNet by 1.05 percentage points.
Visual analysis in Figure 8 reveals three key advantages: precise separation of adherent buildings in dense urban areas, optimal detection performance across background, aquatic, forestry, and agricultural categories, and significant IoU improvements of 11.41% for agriculture, 6.55% for forests, and 10.00% for water bodies compared to previous methods.
The proposed architecture exhibits exceptional cross-scenario stability in urban–rural transition zones, resolving structural adhesion issues in building boundaries observed in ABCNet and UNetFormer [32] while enhancing edge smoothness in wasteland segmentation beyond ShelfNet [43] and FANet [47] capabilities. These results confirm the framework’s effectiveness in addressing boundary ambiguity and improving segmentation consistency for complex urban landscapes.

4.3. Ablation Study

To rigorously evaluate the contribution of each component within PriorSAM-DBNet, we conducted a comprehensive ablation study on the ISPRS Vaihingen dataset. We specifically focused on verifying the effectiveness of the dual-branch design, the parameter-efficient SSP module, and the ACMF mechanism.

4.3.1. Impact of Key Modules

As shown in Table 4, the baseline DC-Swin Transformer achieves an mIoU of 81.28%. The integration of the SAM-Prior Auxiliary Branch (using a standard feature concatenation) provides a significant performance boost, increasing mIoU to 81.74%. This confirms that the structural priors derived from the frozen SAM backbone effectively complement the semantic features learned by the main branch. The introduction of the SSP module, utilizing our shared-weight strategy, further improves mIoU to 82.12% while adding only 0.91 million trainable parameters. Finally, the inclusion of the ACMF module yielded the highest performance (82.50% mIoU), demonstrating that dynamic, attentive fusion is superior to simple concatenation for resolving semantic ambiguities in complex urban boundaries.

4.3.2. Verification of Scale Invariance in SSP

A core theoretical premise of our SSP module is that sharing weights across hierarchical scales ( H / 4 to H / 32 ) enforces the learning of scale-invariant structural representations. To verify this claim quantitatively, we implemented a variant named PriorSAM-Indep, where the shared convolution weights in the SSP module were replaced with independent weights for each of the four scale stages.
As presented in Table 4, the PriorSAM-Indep variant increases the trainable parameter count of the auxiliary branch from 0.91 million to 3.64 million (a 4 × increase). However, this increase in capacity did not translate to better performance; in fact, the mIoU dropped slightly to 82.38%. This empirical evidence supports our hypothesis that independent weights may lead to overfitting on scale-specific artifacts in limited remote sensing datasets. Conversely, the Shared-Weight SSP acts as a structural regularizer, effectively capturing the topological universality of objects regardless of their size, thus validating the scale-invariance design.

4.4. Complexity Analysis

To objectively assess the efficiency–accuracy trade-off of PriorSAM-DBNet, we conducted a comprehensive benchmarking against several state-of-the-art methods on an NVIDIA A100 GPU with a standardized input resolution of 256 × 256 . As presented in Table 5, we included representative models ranging from lightweight CNNs (CMTFNet) and hybrid Transformers (TransUNet) to recent Foundation Model adaptations (MeSAM) and State Space Models (RS3Mamba).
The quantitative results highlight that PriorSAM-DBNet occupies a strategic niche by balancing the robust priors of large models with computational viability. Compared to MeSAM [45], which also adapts the SAM architecture for remote sensing, our method reduces the computational burden (FLOPs) by approximately 73.9% (410.4 G vs. 1573.81 G) and more than doubles the inference speed (9.83 FPS vs. 4.29 FPS), all while achieving superior segmentation accuracy (82.50% mIoU). This significant efficiency gain verifies the effectiveness of our frozen backbone strategy combined with the lightweight SSP module.
While lightweight models trained from scratch, such as RS3Mamba [44] and CMTFNet [10], naturally exhibit higher inference speeds due to their smaller backbones, they require learning tens of millions of parameters (e.g., 43.32 M for RS3Mamba). In contrast, PriorSAM-DBNet achieves comparable SOTA performance by fine-tuning only 0.91 million parameters. This makes our framework particularly advantageous in scenarios with limited annotated data, as it leverages the powerful zero-shot structural priors of the foundation model rather than learning from scratch. The inference speed of 9.83 FPS, while lower than lightweight networks, represents a nearly 6 × improvement over the “Baseline + Full SAM” approach, making it a viable solution for high-precision, near-real-time sensor data processing.

4.5. Case Study: Rapid Response Simulation in Flood Scenarios

To substantiate the applicability of PriorSAM-DBNet in disaster emergency response, as hypothesized in Section 1, we conducted a practical simulation focusing on rapid post-disaster mapping. In scenarios such as flood assessment or earthquake damage analysis, the primary operational constraint is latency; rescue teams require updated road accessibility maps within minutes of data acquisition.
We simulated a UAV-based data stream capturing high-resolution optical imagery ( 2048 × 2048 pixels) over a damaged urban area. The processing pipeline involves creating a sliding window inference of 256 × 256 patches. As established in Table 5, our method achieves an inference speed of 9.83 FPS on an NVIDIA A100 GPU. While standard video transmission requires 30 FPS, orthomosaic mapping for damage assessment typically operates on keyframes extracted at 1 Hz to 2 Hz (depending on flight speed and overlap requirements). Under these conditions, PriorSAM-DBNet provides a processing throughput that exceeds the data acquisition rate of standard mapping drones, enabling near-real-time segmentation of road networks and building footprints.
In contrast, the “Baseline + Full SAM” approach, operating at 1.68 FPS, would introduce a significant bottleneck, accumulating a processing lag of approximately 40 s for every minute of flight data. Furthermore, the low parameter count of our auxiliary branch (0.91 million) facilitates potential optimization for edge devices, such as the NVIDIA Jetson AGX Orin, using TensorRT acceleration. This case study demonstrates that PriorSAM-DBNet successfully bridges the gap between the high accuracy required for identifying subtle structural damage and the efficiency demanded by time-critical rescue operations.

5. Conclusions

This study presented PriorSAM-DBNet, a novel dual-branch architecture for high-resolution remote sensing semantic segmentation. By synergizing a frozen SAM backbone with a learnable DC-Swin Transformer via the proposed SSP and ACMF modules, the framework successfully integrates general visual priors with task-specific semantic features. Experimental results on the ISPRS Vaihingen, Potsdam, and LoveDA datasets confirm that our method outperforms state-of-the-art competitors. Critically, our ablation studies verified that the shared-weight SSP strategy not only reduces parameters by 75% compared to an independent-weight approach but also acts as a structural regularizer to improve generalization. The results demonstrate that this “prior-guided” approach offers a viable solution for real-time disaster mapping scenarios, balancing high-precision boundary extraction with the computational efficiency required for rapid sensor data processing. The framework effectively enhances the intelligent perception capabilities of remote sensing systems by improving the accuracy of feature extraction from optical sensor data.
Despite these achievements, the research presents certain limitations. First, the auxiliary branch relies on a frozen SAM backbone pre-trained on natural RGB images, which may constrain zero-shot generalization when applied to non-optical sensor data with significant domain shifts. Second, despite the parameter efficiency of the SSP module, the dual-branch inference process incurs a higher memory footprint compared to single-branch CNNs, potentially challenging deployment on ultra-low-power edge devices.
The implications of this study highlight the potential of Parameter-Efficient Fine-Tuning (PEFT) as a sustainable paradigm for adapting large foundation models to specific remote sensing tasks without prohibitive training costs. Based on these findings, it is recommended that future research prioritize the integration of multi-modal data. Specifically, incorporating LiDAR data could further compensate for the geometric ambiguities in optical images, expanding the network’s capabilities in complex 3D urban sensing scenarios.

Author Contributions

Conceptualization, Q.Z.; Methodology, Q.Z.; Software, Q.Z.; Validation, Q.Z.; Formal analysis, Q.Z.; Investigation, Q.Z.; Resources, Y.H.; Data curation, Q.Z., Y.W. and Y.H.; Writing—original draft, Q.Z.; Writing—review & editing, Q.Z.; Visualization, Q.Z.; Project administration, Y.W., N.L., Q.J. and Y.H.; Funding acquisition, Yisong Wang and Y.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 62376066.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Publicly available datasets were analyzed in this study. The ISPRS Vaihingen and Potsdam datasets are available at https://www.isprs.org/resources/datasets/benchmarks/UrbanSemLab/2d-sem-label-vaihingen.aspx and https://www.isprs.org/resources/datasets/benchmarks/UrbanSemLab/2d-sem-label-potsdam.aspx. The LoveDA dataset is available at https://github.com/Junjue-Wang/LoveDA.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

SAMSegment Anything Model
SGBSAM-Generated Boundary Mask
SGOSAM-Generated Object Mask
DC-SwinDensely Connected Swin Transformer
SSPScaled Subsampling Projection
ACMFAttentive Cross-Modal Fusion
CNNConvolutional Neural Network
ViTVision Transformer
mIoUMean Intersection over Union
OAOverall Accuracy
BF1Boundary F1-score

Nomenclature

θ s h a r e d Shared convolutional weights in the SSP module applied across hierarchical scales
λ Learnable scalar weighting factor controlling residual fusion in the ACMF module
β Scaling factor regulating the contribution of spatial priors (Equation (4))
λ 1 , λ 2 Hyperparameters weighting the auxiliary losses L o b j and L b d y (Equation (9))
S T k Hierarchical semantic feature maps from the Main Encoder at stage k
S P k Hierarchical prior feature maps from the Auxiliary Encoder at stage k
F p r i o r Initial dense feature map projected from SAM prompts via the Adapter
A k Spatial attention map generated by the ACMF module at scale k
L t o t a l Composite loss function comprising Cross-Entropy and auxiliary terms
L C E Cross-Entropy Loss
D k Scale-specific downsampling operation within the SSP module

References

  1. Zhang, L.; Zhang, L. Artificial intelligence for remote sensing data analysis: A review of challenges and opportunities. IEEE Geosci. Remote Sens. Mag. 2022, 10, 270–294. [Google Scholar] [CrossRef]
  2. Marmanis, D.; Schindler, K.; Wegner, J.D.; Gall, J.; 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]
  3. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE CVPR, Boston, MA, USA, 7–12 June 2015; pp. 3431–3440. [Google Scholar]
  4. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the MICCAI, Munich, Germany, 5–9 October 2015; pp. 234–241. [Google Scholar]
  5. Chen, L.C.; 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. 2017, 40, 834–848. [Google Scholar] [CrossRef]
  6. Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid Scene Parsing Network. In Proceedings of the IEEE CVPR, Honolulu, HI, USA, 21–26 July 2017; pp. 2881–2890. [Google Scholar]
  7. Li, J.; Zheng, P.; Wang, L. Lightweight Semantic Segmentation Network for Remote Sensing Urban Scenes Based on Selective Kernel. In Proceedings of the 2024 3rd International Conference on Artificial Intelligence, Internet of Things and Cloud Computing Technology (AIoTC), Wuhan, China, 13–15 September 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
  8. 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 2020, arXiv:2010.11929. [Google Scholar]
  9. 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/CVF ICCV, Montreal, QC, Canada, 11–17 October 2021; pp. 10012–10022. [Google Scholar]
  10. Wu, H.; Huang, P.; Zhang, M.; Tang, W.; Yu, X. CMTFNet: CNN and multiscale transformer fusion network for remote-sensing image semantic segmentation. IEEE Trans. Geosci. Remote Sens. 2023, 61, 2004612. [Google Scholar] [CrossRef]
  11. Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In NeurIPS 2021; Neural Information Processing Systems Foundation (NeurIPS): San Diego, CA, USA, 2021; Volume 34, pp. 12077–12090. [Google Scholar]
  12. Xu, Z.; Zhang, W.; Zhang, T.; Yang, Z.; Li, J. Efficient Transformer for Remote Sensing Image Segmentation. Remote Sens. 2021, 13, 3585. [Google Scholar] [CrossRef]
  13. Wang, L.; Li, R.; Duan, C.; Zhang, C.; Meng, X.; Fang, S. A novel transformer based semantic segmentation scheme for fine-resolution remote sensing images. IEEE Geosci. Remote Sens. Lett. 2022, 19, 6506105. [Google Scholar] [CrossRef]
  14. Wu, T.; Deng, W.; Lin, R.; Jiang, J.; Chen, X. FML-Swin: An improved Swin Transformer Segmentor for Remote Sensing Images. IEEE Access 2025, 13, 66931–66943. [Google Scholar] [CrossRef]
  15. Fan, Y. Semantic Segmentation Method for Remote Sensing Urban Scenes Based on Swin-Transformer and Convolutional Neural Network. In Proceedings of the 2024 IEEE 7th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chongqing, China, 20–22 September 2024; IEEE: Piscataway, NJ, USA, 2024; Volume 7, pp. 1121–1127. [Google Scholar]
  16. Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A.C.; Lo, W.Y.; et al. Segment Anything. arXiv 2023, arXiv:2304.02643. [Google Scholar]
  17. Qiao, Y.; Zhong, B.; Du, B.; Zhang, L. SAM enhanced semantic segmentation for remote sensing imagery without additional training. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5610816. [Google Scholar] [CrossRef]
  18. Ma, X.; Wu, Q.; Zhao, X.; Zhang, X.; Pun, M.O. SAM-assisted remote sensing imagery semantic segmentation with object and boundary constraints. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5636916. [Google Scholar] [CrossRef]
  19. Zhang, J.; Li, Y.; Yang, X.; Jiang, R.; Zhang, L. RSAM-Seg: A SAM-Based Model with Prior Knowledge Integration for Remote Sensing Image Semantic Segmentation. Remote Sens. 2025, 17, 590. [Google Scholar] [CrossRef]
  20. Li, X.; Tian, X.; Wang, Z.; Zhang, F.; Zhang, Y.; Yang, N.; Tian, C. SAM2Former: Segment Anything Model 2 Assisting UNet-Like Transformer for Remote Sensing Image Semantic Segmentation. IEEE Access 2025, 13, 115018–115029. [Google Scholar] [CrossRef]
  21. Ma, X.; Zhang, X.; Pun, M.O. A Unified Framework with Multimodal Fine-tuning for Remote Sensing Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5405015. [Google Scholar] [CrossRef]
  22. Zhang, Y.; Li, W.; Zhang, M.; Han, J.; Tao, R.; Liang, S. SpectralX: Parameter-efficient Domain Generalization for Spectral Remote Sensing Foundation Models. arXiv 2025, arXiv:2508.01731. [Google Scholar]
  23. Chen, K.; Liu, C.; Chen, H.; Zhang, H.; Li, W.; Zou, Z.; Shi, Z. RSPrompter: Learning to Prompt for Remote Sensing Instance Segmentation based on Visual Foundation Model. arXiv 2023, arXiv:2306.16269. [Google Scholar] [CrossRef]
  24. Zheng, L.; Pu, X.; Zhang, S.; Xu, F. Tuning a SAM-Based Model with Multicognitive Visual Adapter to Remote Sensing Instance Segmentation. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2025, 18, 2737–2749. [Google Scholar] [CrossRef]
  25. Pu, X.; Jia, H.; Zheng, L.; Wang, F.; Xu, F. ClassWise-SAM-Adapter: Parameter Efficient Fine-tuning Adapts Segment Anything to SAR Domain for Semantic Segmentation. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2025, 18, 4791–4804. [Google Scholar] [CrossRef]
  26. Du, B.; Shan, L.; Shao, X.; Zhang, D.; Wang, X.; Wu, J. Transform Dual-Branch Attention Net: Efficient Semantic Segmentation of Ultra-High-Resolution Remote Sensing Images. Remote Sens. 2025, 17, 540. [Google Scholar] [CrossRef]
  27. Li, Y.; Zhu, W. DBSANet: A Dual-Branch Semantic Aggregation Network Integrating CNNs and Transformers for Landslide Detection in Remote Sensing Images. Remote Sens. 2025, 17, 807. [Google Scholar] [CrossRef]
  28. Chen, S.; Yun, L.; Liu, Z.; Zhu, J.; Chen, J.; Wang, H.; Nie, Y. LightFormer: A Lightweight Decoder for Semantic Segmentation of Remote Sensing Images. arXiv 2025, arXiv:2504.10834. [Google Scholar]
  29. Aleissaee, A.A.; Kumar, A.; Anwer, R.M.; Khan, S.; Cholakkal, H.; Xia, G.S.; Khan, F.S. Transformers in Remote Sensing: A Survey. Remote Sens. 2023, 15, 1860. [Google Scholar]
  30. Chen, J.; Lu, Y.; Yu, Q.; Luo, X.; Adeli, E.; Wang, Y.; Lu, L.; Yuille, A.L.; Zhou, Y. TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation. arXiv 2021, arXiv:2102.04306. [Google Scholar] [CrossRef]
  31. He, X.; Zhou, Y.; Zhao, J.; Zhang, D.; Yao, R.; Xue, Y. Swin Transformer Embedding UNet for Remote Sensing Image Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2022, 60, 4408715. [Google Scholar]
  32. Wang, L.; Li, R.; Zhang, C.; Fang, S.; Duan, C.; Meng, X.; Atkinson, P.M. UNetFormer: A UNet-like transformer for efficient semantic segmentation of remote sensing urban scene imagery. ISPRS J. Photogramm. Remote Sens. 2022, 190, 196–214. [Google Scholar] [CrossRef]
  33. Ding, R.X.; Xu, Y.H.; Yu, G.; Zhou, D. Swin Transformer with Spatial and Local Context Augmentation for Enhanced Semantic Segmentation of Remote Sensing Images. IEEE Open J. Signal Process. 2025, 6, 608–620. [Google Scholar] [CrossRef]
  34. Li, Y.; Chen, J.; Zhang, M. AFNE-Net: Semantic Segmentation of Remote Sensing Images via Attention-Based Feature Fusion and Neighborhood Feature Enhancement. Remote Sens. 2025, 17, 2443. [Google Scholar]
  35. Chen, T.; Zhu, L.; Ding, C.; Cao, R.; Zhang, S.; Wang, Y.; Li, Z.; Sun, L.; Mao, P.; Zang, Y. SAM Fails to Segment Anything?–SAM-Adapter: Adapting SAM in Underperformed Scenes. arXiv 2023, arXiv:2304.09148. [Google Scholar]
  36. Liu, Y.; Zhang, Y.; Wang, Y.; Hou, F.; Yuan, J.; Tian, J.; Zhang, Y.; Shi, Z.; Fan, J.; He, L. SAMM (Segment Any Medical Model): A 3D Slicer Integration to SAM. arXiv 2023, arXiv:2304.05622. [Google Scholar]
  37. Zhao, X.; Ding, W.; An, Y.; Du, Y.; Yu, T.; Li, M.; Tang, M.; Wang, J. FastSAM: A Fast Segment Anything Model. arXiv 2023, arXiv:2306.12156. [Google Scholar]
  38. Liu, N.; Xu, X.; Su, Y.; Zhang, H.; Li, H.C. PointSAM: Pointly-Supervised Segment Anything Model for Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5608515. [Google Scholar] [CrossRef]
  39. Xiong, X.; Wu, Z.; Tan, S.; Li, W.; Tang, F.; Chen, Y.; Li, S.; Ma, J.; Li, G. SAM2-UNet: Segment Anything 2 Makes Strong Encoder for Natural and Medical Image Segmentation. Vis. Intell. 2026, 4, 2. [Google Scholar] [CrossRef]
  40. Gong, Z.; Wei, Z.; Wang, D.; Hu, X.; Ma, X.; Chen, H.; Jia, Y.; Deng, Y.; Ji, Z.; Zhu, X.; et al. CrossEarth: Geospatial Vision Foundation Model for Domain Generalizable Remote Sensing Semantic Segmentation. arXiv 2024, arXiv:2410.22629. [Google Scholar] [CrossRef]
  41. Page, M.J.; McKenzie, J.E.; Bossuyt, P.M.; Boutron, I.; Hoffmann, T.C.; Mulrow, C.D.; Shamseer, L.; Tetzlaff, J.M.; Akl, E.A.; Brennan, S.E.; et al. The PRISMA 2020 statement: An updated guideline for reporting systematic reviews. BMJ 2021, 372, n71. [Google Scholar] [CrossRef]
  42. Li, R.; Zheng, S.; Zhang, C.; Duan, C.; Su, J.; Wang, L.; Atkinson, P.M. ABCNet: Attentive bilateral contextual network for efficient semantic segmentation of Fine-Resolution remotely sensed imagery. ISPRS J. Photogramm. Remote Sens. 2021, 181, 84–98. [Google Scholar] [CrossRef]
  43. Zhuang, J.; Yang, J.; Gu, L.; Duan, N. Shelfnet for fast semantic segmentation. In Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 2–6 October 2023; IEEE: Piscataway, NJ, USA, 2019. [Google Scholar]
  44. Ma, X.; Zhang, X.; Pun, M.O. Rs3mamba: Visual state space model for remote sensing image semantic segmentation. IEEE Geosci. Remote Sens. Lett. 2024, 21, 6011405. [Google Scholar] [CrossRef]
  45. Zhou, X.; Liang, F.; Chen, L.; Wang, L. MeSAM: Multiscale enhanced segment anything model for optical remote sensing images. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5623515. [Google Scholar] [CrossRef]
  46. Zhang, H. A SAM-based dual-branch network for remote sensing semantic segmentation. Remote Sens. Lett. 2025, 16, 365–375. [Google Scholar] [CrossRef]
  47. Hu, P.; Perazzi, F.; Heilbron, F.C.; Wang, O.; Lin, Z.; Saenko, K.; Sclaroff, S. Real-time semantic segmentation with fast attention. IEEE Robot. Autom. Lett. 2020, 6, 263–270. [Google Scholar] [CrossRef]
Figure 1. Dual-branch architecture of PriorSAM-DBNet: The SAM-prior auxiliary encoder (top branch) generates object-boundary masks through a frozen ViT-H backbone, serving as a structural guide. The DC-Swin main encoder (bottom branch) extracts hierarchical features via shifted window attention to capture global semantics. The ACMF module performs dynamic cross-modal fusion at four scales, followed by a hierarchical decoder with DCFAM for high-resolution map reconstruction.
Figure 1. Dual-branch architecture of PriorSAM-DBNet: The SAM-prior auxiliary encoder (top branch) generates object-boundary masks through a frozen ViT-H backbone, serving as a structural guide. The DC-Swin main encoder (bottom branch) extracts hierarchical features via shifted window attention to capture global semantics. The ACMF module performs dynamic cross-modal fusion at four scales, followed by a hierarchical decoder with DCFAM for high-resolution map reconstruction.
Sensors 26 00749 g001
Figure 2. Detailed architecture of the Main Encoder employing the DC-Swin Transformer with four hierarchical feature processing stages.
Figure 2. Detailed architecture of the Main Encoder employing the DC-Swin Transformer with four hierarchical feature processing stages.
Sensors 26 00749 g002
Figure 3. Detailed structure of the SAM-Prior auxiliary encoder. It comprises an Adapter module for initial feature transformation and a Scaled Subsampling Projection (SSP) module. The SSP implements multi-scale resolution alignment using shared convolutional weights across different stages to ensure parameter efficiency and robust feature abstraction.
Figure 3. Detailed structure of the SAM-Prior auxiliary encoder. It comprises an Adapter module for initial feature transformation and a Scaled Subsampling Projection (SSP) module. The SSP implements multi-scale resolution alignment using shared convolutional weights across different stages to ensure parameter efficiency and robust feature abstraction.
Sensors 26 00749 g003
Figure 4. Architecture of the Attentive Cross-Modal Fusion (ACMF) module. This module dynamically fuses features from the main and auxiliary branches using a shared spatial attention mechanism to eliminate semantic ambiguity and align boundaries.
Figure 4. Architecture of the Attentive Cross-Modal Fusion (ACMF) module. This module dynamically fuses features from the main and auxiliary branches using a shared spatial attention mechanism to eliminate semantic ambiguity and align boundaries.
Sensors 26 00749 g004
Figure 6. Qualitative performance comparison on ISPRS Vaihingen images of 512 × 512 size. (a) NIRRG images, (b) Ground Truth, (c) SAM-DBnet, (d) ABCNet, (e) DC-Swin, and (f) the proposed PriorSAM-DBNet.
Figure 6. Qualitative performance comparison on ISPRS Vaihingen images of 512 × 512 size. (a) NIRRG images, (b) Ground Truth, (c) SAM-DBnet, (d) ABCNet, (e) DC-Swin, and (f) the proposed PriorSAM-DBNet.
Sensors 26 00749 g006
Figure 7. Qualitative performance comparison on ISPRS Potsdam images of 512 × 512 and 1024 × 1024 sizes. (a) RGB images, (b) Ground Truth, (c) SAM-DBnet, (d) ABCNet, (e) DC-Swin, and (f) the proposed PriorSAM-DBNet.
Figure 7. Qualitative performance comparison on ISPRS Potsdam images of 512 × 512 and 1024 × 1024 sizes. (a) RGB images, (b) Ground Truth, (c) SAM-DBnet, (d) ABCNet, (e) DC-Swin, and (f) the proposed PriorSAM-DBNet.
Sensors 26 00749 g007
Figure 8. Qualitative performance comparisons on a LoveDA Urban image of size 512 × 512 . (a) RGB images, (b) Ground Truth, (c) FT-UNetFormer, (d) ABCNet, (e) DC-Swin, and (f) the proposed PriorSAM-DBNet.
Figure 8. Qualitative performance comparisons on a LoveDA Urban image of size 512 × 512 . (a) RGB images, (b) Ground Truth, (c) FT-UNetFormer, (d) ABCNet, (e) DC-Swin, and (f) the proposed PriorSAM-DBNet.
Sensors 26 00749 g008
Table 1. Quantitative comparison on the ISPRS Vaihingen dataset. The best results are highlighted in bold. Our PriorSAM-DBNet achieves the highest mF1 and mIoU, significantly outperforming the baseline MeSAM and ABCNet.
Table 1. Quantitative comparison on the ISPRS Vaihingen dataset. The best results are highlighted in bold. Our PriorSAM-DBNet achieves the highest mF1 and mIoU, significantly outperforming the baseline MeSAM and ABCNet.
MethodClass F1-Score (%)Overall Metrics (%)
Imp. Surf.BuildingLow Veg.TreeCarOAmF1mIoU
MeSAM [45]92.7696.6178.5991.6286.9391.3690.2382.27
SAM-DBnet [46]92.4495.4579.0891.4286.5591.4089.7882.38
RSMamba [44]93.1095.5078.1490.8986.3091.1790.6382.39
ABCNet [42]89.7094.1078.5390.8164.1289.2585.3475.20
50% Sample90.3894.9976.1388.3985.0089.6889.4780.48
PriorSAM-DBNet92.4196.9377.8490.1986.9791.5091.4482.50
Table 2. Quantitative comparison on the ISPRS Potsdam dataset. The best results are highlighted in bold. Our method demonstrates superior performance, particularly in the Building and Impervious Surface categories, validating the effectiveness of the frozen backbone strategy.
Table 2. Quantitative comparison on the ISPRS Potsdam dataset. The best results are highlighted in bold. Our method demonstrates superior performance, particularly in the Building and Impervious Surface categories, validating the effectiveness of the frozen backbone strategy.
MethodClass F1-Score (%)Overall Metrics (%)
Imp. Surf.BuildingLow Veg.TreeCarOAmF1mIoU
MeSAM [45]92.5797.3188.3886.8992.3190.2291.8985.34
SAM-DBnet [46]92.0397.6488.9387.6396.1790.9191.5785.21
RSMamba [44]92.6497.7288.9087.3595.6591.2591.3285.10
ABCNet [42]88.9096.2386.4078.9292.9287.5288.1479.26
50% Sample91.1396.3087.6386.3189.4390.0190.2084.13
PriorSAM-DBNet92.8597.8689.2387.8190.8291.5791.9785.59
Table 3. Experimental results on the LoveDA Urban dataset. The accuracy of each category is presented in IoU/F1 format. The best results are highlighted in bold. The proposed method shows exceptional robustness in complex urban scenes.
Table 3. Experimental results on the LoveDA Urban dataset. The accuracy of each category is presented in IoU/F1 format. The best results are highlighted in bold. The proposed method shows exceptional robustness in complex urban scenes.
MethodBack.Build.RoadWaterBarrenForestAgri.mIoUmF1
ShelfNet [43]41.94/59.0961.67/76.2957.48/73.0068.37/81.2214.21/24.8942.56/59.7147.20/64.1347.6362.62
FANet [47]36.15/53.1052.36/68.7351.79/68.2463.07/77.3531.22/47.5936.85/53.866.19/11.6639.6654.36
FT-UnetFormer [32]38.07/55.1461.67/76.2960.16/75.1266.48/79.8736.51/53.4938.76/55.8742.50/59.6549.1665.06
ABCNet [42]42.63/59.7860.76/75.5956.13/71.9066.60/79.9535.27/52.1441.45/58.6149.79/66.4850.3866.35
UnetFormer [32]42.81/59.9659.02/74.2352.92/69.2169.25/81.8338.25/55.3341.03/58.1945.11/62.1849.7765.85
CMTFNet [10]38.98/56.0958.96/74.1850.50/67.1154.27/70.3530.72/47.0037.41/54.4525.65/41.9246.6862.95
RS3Mamba [44]41.60/58.2358.23/73.5454.03/70.0877.34/87.2117.97/30.3443.81/60.8061.37/75.9250.6266.33
PriorSAM45.0/59.961.8/76.355.0/75.076.6/82.025.9/54.648.0/62.161.2/66.553.3668.06
Table 4. Ablation studies on the Vaihingen dataset. The comparison between “SSP (Independent)” and “SSP (Shared)” verifies the efficiency and scale-invariance of the proposed strategy. Note: Params refers to the trainable parameters in the auxiliary branch. The symbol ‘-’ indicates not applicable. Bold formatting highlights the proposed strategy and the best results.
Table 4. Ablation studies on the Vaihingen dataset. The comparison between “SSP (Independent)” and “SSP (Shared)” verifies the efficiency and scale-invariance of the proposed strategy. Note: Params refers to the trainable parameters in the auxiliary branch. The symbol ‘-’ indicates not applicable. Bold formatting highlights the proposed strategy and the best results.
Model ConfigurationSSP ModeAux. Params (M)mF1 (%)mIoU (%)
DC-Swin (Baseline)--90.9681.28
+SAM-Prior--91.1581.74
+SAM-Prior + SSP (Indep.)Independent3.6491.3182.38
+SAM-Prior + SSP (Ours)Shared0.9191.2682.12
PriorSAM-DBNet (Full)Shared0.9191.4482.50
Table 5. Computational complexity comparison on NVIDIA A100 ( 256 × 256 input). We introduce representative methods including SAM-based adaptation (MeSAM), a lightweight CNN (CMTFNet), a hybrid Transformer (TransUNet), and a State Space Model (RS3Mamba) to provide a comprehensive benchmarking. Note that PriorSAM-DBNet achieves the best balance among Foundation Model-based approaches. Bold formatting highlights the proposed method.
Table 5. Computational complexity comparison on NVIDIA A100 ( 256 × 256 input). We introduce representative methods including SAM-based adaptation (MeSAM), a lightweight CNN (CMTFNet), a hybrid Transformer (TransUNet), and a State Space Model (RS3Mamba) to provide a comprehensive benchmarking. Note that PriorSAM-DBNet achieves the best balance among Foundation Model-based approaches. Bold formatting highlights the proposed method.
Model StrategyParams (M)FLOPs (G)Mem (MB)FPSmIoU (%)
Baseline (DC-Swin)66.946.6239758.981.28
Baseline + Full SAM682.02973.784301.6881.85
MeSAM [45]135.671573.8135924.2982.27
CMTFNet [10]30.0717.14181079.9282.12
TransUNet [30]105.3264.55312242.6578.16
RS3Mamba [44]43.3231.65233262.8282.62
PriorSAM-DBNet67.8 (66.9 + 0.9)410.431209.8382.50
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.

Share and Cite

MDPI and ACS Style

Zhang, Q.; Wang, Y.; Li, N.; Jiang, Q.; He, Y. PriorSAM-DBNet: A SAM-Prior-Enhanced Dual-Branch Network for Efficient Semantic Segmentation of High-Resolution Remote Sensing Images. Sensors 2026, 26, 749. https://doi.org/10.3390/s26020749

AMA Style

Zhang Q, Wang Y, Li N, Jiang Q, He Y. PriorSAM-DBNet: A SAM-Prior-Enhanced Dual-Branch Network for Efficient Semantic Segmentation of High-Resolution Remote Sensing Images. Sensors. 2026; 26(2):749. https://doi.org/10.3390/s26020749

Chicago/Turabian Style

Zhang, Qiwei, Yisong Wang, Ning Li, Quanwen Jiang, and Yong He. 2026. "PriorSAM-DBNet: A SAM-Prior-Enhanced Dual-Branch Network for Efficient Semantic Segmentation of High-Resolution Remote Sensing Images" Sensors 26, no. 2: 749. https://doi.org/10.3390/s26020749

APA Style

Zhang, Q., Wang, Y., Li, N., Jiang, Q., & He, Y. (2026). PriorSAM-DBNet: A SAM-Prior-Enhanced Dual-Branch Network for Efficient Semantic Segmentation of High-Resolution Remote Sensing Images. Sensors, 26(2), 749. https://doi.org/10.3390/s26020749

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop