betaFeedback

WorksComputer Science

OCCA-Seg: Object and Channel Context Aggregation for Semantic Segmentation of Remote Sensing Images

Abstract

Semantic segmentation, which assigns a class label to each pixel, is a key task in computer vision. However, semantic segmentation of remote sensing images (RSIs) remains challenging because of complex scenes and objects at multiple scales, which limits segmentation accuracy. To address these challenges, we propose a context aggregation scheme called object and channel context aggregation (OCCA), consisting of three components: object contextual attention module (OCAM), channel contextual attention module (CCAM), and aggregation module (AM). Firstly, motivated by the observation that each pixel shares the class label of the object to which it belongs, object-level context represents each pixel through aggregating context from its corresponding object class. Secondly, because feature channels are correlated with object categories, channel-wise context models channel-wise contextual dependencies conditioned on object categories. Finally, the context information from OCAM and CCAM are fed into AM and used to weight and modulate the object context, enhancing the discriminative ability of the segmentation model. The experiments on several public remote sensing datasets including LoveDA, UAVid, ISPRS Potsdam, and Vaihingen datasets demonstrate competitive improvements over existing methods.

Introduction

The semantic segmentation of remote sensing images (SSRSIs) is a fundamental task in computer vision and plays an important role in a range of scene-understanding applications [1]. It supports geospatial applications such as urban planning, precision agriculture, and disaster management. By assigning a class label to each pixel in aerial or satellite imagery, semantic segmentation extracts structured information that can inform decision-making in urban design, ecosystem monitoring, infrastructure development, etc. As geospatial information technologies advance, the demand for SSRSIs continues to grow.

In recent years, deep convolutional neural networks (CNNs) have made remarkable progress in SSRSIs. Since the fully convolutional network (FCN) [2] was first proposed, extensive research has sought to improve the performance of remote-sensing image segmentation. However, most CNN-based models suffer from the limited receptive fields. This limitation makes it difficult for the CNN-based models to obtain the long-range contextual information and understand the complex scene in the remote sensing images.

Image not extracted

Figure 1.

The limitation of receptive field originates from the inherent architecture of CNNs, which focus on local neighborhoods rather than long-range context information. Due to the lack of long-range contextual information, these CNN-based methods are prone to misclassify pixels that belong to the same object but are spatially separated, especially in complex scenes with various object categories. Thus, the segmentation may be fragmented and the accuracy of object boundary identification may be reduced.

In order to address the limited receptive field of CNNs and capture the long-range contextual information, we introduce the attention aggregation mechanism into the neural networks design. In our proposed method, we design a novel context aggregation scheme called object and channel context aggregation (OCCA), which consists of three components: object contextual attention module (OCAM), channel contextual attention module (CCAM), and the aggregation module (AM). The OCAM captures the long-range contextual information by the features of all pixels that belong to the same object category. The CCAM models the channel-wise contextual dependencies conditioned on object categories, which enhances the discriminative representation of the object context. The AM is responsible for integrating the attention information from both the OCAM and CCAM, thereby enhancing the overall feature representation and improving the segmentation performance.

In summary, this research proposes OCCA-Seg, combining object-level context from OCAM with channel-wise context from the CCAM. It effectively integrates both types of context by AM to produce more discriminative feature representations. This helps overcome the limitation of CNNs in capturing long-range contextual information. We evaluate the proposed OCCA-Seg through extensive experiments on four benchmark datasets for semantic segmentation of remote sensing images, including ISPRS Potsdam, ISPRS Vaihingen, UAVid, and LoveDA dataset. The mIoU of the OCCA-Seg is 87.51%, 84.03%, 68.9%, and 55.5% on the ISPRS Potsdam, ISPRS Vaihingen, UAVid, and LoveDA datasets, respectively. These experiments verified the competitiveness of the OCCA-Seg among the state-of-the-art methods for semantic segmentation of remote sensing images.

Semantic Segmentation in Remote Sensing Images

Semantic segmentation in remote sensing images is a fundamental task in computer vision, which aims to assign a semantic label to each pixel. Traditional methods are based on handcrafted feature engineering and machine learning classifiers [3]. These methods are limited by the reliance on handcrafted features and high labor costs. The handcrafted features have inadequate representation capabilities in various scenarios. The classifiers based on machine learning methods have insufficient generalization ability, due to their limited number of parameters [4]. In recent years, various methods based on deep learning have been proposed, which significantly improved the performance of SSRSIs.

Figure 1 (PDF p. 2). Overall architecture of OCCA-Seg

In the past decades, various CNN-based networks were applied for SSRSIs, such as FCN [2], UNet [5], SegNet [6], DeepLab [7], RAPNet [8], etc. As mentioned in the introduction, the limited receptive field of CNN-based methods constrains their capability for long-range modeling. There are three main paths to tackle this drawback: improving the feature map resolution, enlarging the convolutional kernel size, and exploiting the long-range context. For the aspect of improving the feature map resolution, HRNet [9] is proposed to maintain the feature-map resolution throughout the forward pass. Semantic FPN [10] and other pyramid-based methods are proposed to enhance the feature representation by the fusion of multi-scale features, which helps the model preserve high-resolution features and more geometric details. UNet [5] is designed to capture the shallow and high-resolution features by skip connections to use high-resolution feature maps. For the aspect of enlarging the convolutional kernel size, Chen et al. [7] proposed the DeepLab family to enlarge the receptive field by dilated convolutions. DenseASPP [11] densifies the dilated rates to cover larger scale receptive fields. For the aspect of exploiting the long-range context, ParseNet [12] is proposed to combine global context information with local features by its contextual module. Yuan et al [13] proposed OCNet to capture the long-range context by the object context module. They modeled the dense relations between any two of all pixels via the combination of two sparse relation matrices by an efficient interlaced sparse self-attention mechanism. Furthermore, OCRNet [14] computes the relations between each pixel and each object category, augmenting the representation of each pixel with the object context.

In order to overcome the receptive field limitation, we focus on using attention mechanism to compute long-range context. The attention mechanism in this research does not only compute the relationships between each pixel in different regions, but also takes into account the relationships between the channels in each pixel and the object regions.

Attention Mechanism

To capture the relationships between features, most methods can be classified into two categories: transformer-based holistic architectures (TBHAs) and attention-based modular methods (ABMMs). The TBHAs leverage self-attention mechanisms to model the relationships in internal parts of input features, such as MaskFormer [15], SegVit [16], HRVit [17], CTSeg [18], etc. MaskFormer unifies various segmentation tasks through mask classification. SegVit leverages class tokens for semantic mask generation. HRVit integrates the high-resolution multi-branch architecture with ViT for fusing multi-scale features effectively. CTSeg combines CNN and ViT to efficiently capture both local and global context for the segmentation task. These architectures demonstrate the versatility of transformer-based methods for dense prediction tasks. However, they are computationally expensive due to many matrix multiplications, limiting their applicability in the scenarios of SSRSIs.

In contrast, ABMMs, such as OCNet [13], OCRNet [14], and D2LS [19], also play an important role in enhancing feature representations, which can guide the model to focus on certain areas and assign weights to different regions in the feature maps. These methods can be easily integrated into existing networks and are generally more computationally efficient than transformer-based methods. For example, both OCNet and OCRNet are integrated with HRNet [9] for better accuracy of SSRSIs. OCNet represents the dense relation matrix using two sparse matrices, so that it can efficiently represent the contextual features between pixels. OCRNet computes the object region representation by aggregating the representations of the pixels lying in the object region. The D2LS method with ConvNeXt [20] leverages a learnable dynamic dictionary and object category semantic information to compute the cross-attention between features. Attention-based modular methods are increasingly popular because of their high computational efficiency and flexibility.

The OCCA-Seg proposed in this research is an attention-based modular method, which can be easily plugged into existing semantic segmentation frameworks. It captures the object-level and channel-wise contextual attention by OCAM and CCAM modules, respectively. These features are then integrated for the final segmentation prediction. By jointly refining the pixel-level features through object-level and channel-wise context attention, OCCA-Seg can learn more class-discriminative representations, thereby promoting intra-class feature consistency and inter-class feature separability among land-cover categories.

Methodology

The Overall Architecture Design

In order to effectively capture the contextual information and enlarge the receptive field, we propose the OCCA-Seg network, which integrates object and channel contextual attention mechanisms to enhance pixel-level feature representations. The overall architecture of OCCA-Seg in Figure 1 consists of three main components: OCAM, CCAM and AM. Firstly, the multi-scale features from the backbone are fed into the multi-scale Fusion module (MSF) to aggregate the features at different scales and generate the unified scale feature map Fms∈RC×H×WF_{ms} \in\mathbb{R}^{C \times H \times W}, where CC, HH, and WW denote the number of channels, height and width of the feature map, respectively, as shown in Figure 2 and Eq. (1). FmsF_{ms} is used as the pixel representation in the OCCA-Seg network.

Figure 2. The architecture of MSF

Fms=Stack(F1,fup1(F2),…,fupM−1(FM)),(1)F_{ms} = Stack(F_1, f_{up}^{1}(F_2), \ldots, f_{up}^{M-1}(F_M)), \tag*{(1)}

The function Stack(∗)Stack(*) denotes the concatenation operation along the channel dimension, and fupi−1(Fi)f_{up}^{i-1}(F_i) represents the upsampling operation with i−1i-1 times for the ii-th feature map. MM denotes the total number of feature maps extracted from the backbone network. Here, MM is 4 in this work.

After the multi-scale fusion, the pipeline employs a dual-branch architecture: the OCAM and CCAM branches. The OCAM is responsible for capturing object-level contextual information, while the CCAM focuses on channel-wise contextual dependencies. The outputs from both branches are then fused by the AM to generate the final enhanced feature map.

The global computation of OCCA-Seg can be summarized as follows:

FOA=OCAM⁡(Fms,Fcls)FCA=CCAM⁡(Fms,Fcls)FAG=AM⁡(FOA,FCA,Fms)(2)\begin{aligned} F_{OA} &= \operatorname{OCAM}(F_{ms},F_{cls}) \\ F_{CA} &= \operatorname{CCAM}(F_{ms},F_{cls}) \\ F_{AG} &= \operatorname{AM}(F_{OA},F_{CA},F_{ms}) \tag*{(2)} \end{aligned}

Where Fcls∈RC′×H×WF_{cls} \in\mathbb{R}^{C' \times H \times W} is defined as the class region representation. C′C' denotes the number of classes. FOA∈RC′×CF_{OA} \in\mathbb{R}^{C' \times C}, FCA∈RC′′×H×WF_{CA} \in\mathbb{R}^{C'' \times H \times W}, and FAG∈RC×H×WF_{AG} \in\mathbb{R}^{C \times H \times W} are the outputs of the OCAM, CCAM, and AM, respectively. FOAF_{OA} is the object-level contextual representation. FCAF_{CA} is the channel-wise contextual representation. FAGF_{AG} is the final enhanced feature map. C′′C'' is the product of CC and C′C', described as follows.

C′′=C⋅C′(3)C'' = C \cdot C' \tag*{(3)}

As shown in Figure 1, the AM is a key submodule that fuses the outputs of the OCAM and CCAM to generate the final enhanced feature map. There are two stages in the AM. The first stage is the attention computation.

Attn⁡(Q,K,V)=softmax⁡(QKdk)V.(4)\operatorname{Attn}(Q,K,V) = \operatorname{softmax}\left(\frac{QK}{\sqrt{d_k}}\right)V. \tag*{(4)}

Inspired by the Transformer architecture, the first stage of the AM aims to capture the relationships between the unified pixel feature and the object-level context. This is achieved by applying a cross-attention mechanism (shown in Eq. (4)) that allows each position in the FmsF_{ms} to attend to each class representation of the FOAF_{OA}, effectively integrating contextual information from the combining information of each pixel feature and the object-level contextual representation, shown as Eq. (5).

Q=Conv⁡T(Fms),K=Conv⁡T(FOA),V=Conv⁡(FOA),Fattn=Attn⁡(Q,K,V)(5)\begin{aligned} Q &= \operatorname{Conv}^{T}(F_{ms}), \\ K &= \operatorname{Conv}^{T}(F_{OA}), \\ V &= \operatorname{Conv}(F_{OA}), \\ F_{attn} &= \operatorname{Attn}(Q,K,V) \tag*{(5)} \end{aligned}

Where Conv(∗)Conv(*) and ConvT(∗)Conv^{T}(*) denote the convolution and transposed convolution, respectively. The query Q∈RN×CQ \in\mathbb{R}^{N \times C} is convolved and reshaped from FmsF_{ms} that denotes the pixel representation. It can be interpreted that the query consists of NN tokens with CC dimension. Both the key K∈RC×C′K \in\mathbb{R}^{C \times C'} and the value V∈RC′×CV \in\mathbb{R}^{C' \times C} are convolved and reshaped from FOAF_{OA} that denotes the object-level contextual representation. It can be interpreted that the key consists of CC tokens with C′C' dimension, and the value consists of C′C' tokens with CC dimension. Just like the self-attention design in Transformer [21], our computation of the attention Fattn∈RN×CF_{attn} \in\mathbb{R}^{N \times C} can be described as mapping the query from FmsF_{ms} and a set of key-value pairs from FOAF_{OA} to an output FattnF_{attn}, where the query, key, and value are all vectors. The output is computed as a weighted sum of the values, where the weight assigned to each value is computed by a compatibility function of the query with the corresponding key.

The second stage of the AM focuses on integrating the channel-wise context from the CCAM and FmsF_{ms}. This is achieved by applying a channel attention mechanism that allows each element in the FattnF_{\mathrm{attn}} to attend to the corresponding element of the FCAF_{\mathrm{CA}}, effectively enhancing each pixel representation with channel-wise context. In this stage, the channel-wise context representation FCAF_{\mathrm{CA}} is used to reweight the attention-enhanced feature FattnF_{\mathrm{attn}} by element-wise multiplication, emphasizing the contribution of each channel in FCAF_{\mathrm{CA}} to the prediction.

FAG=Conv(FCA)⊙Reshape(Fattn)(6)F_{\mathrm{AG}} = Conv(F_{\mathrm{CA}}) \odot Reshape(F_{\mathrm{attn}}) \tag*{(6)}

Here, ⊙\odot denotes the element-wise multiplication. We reshape FattnF_{\mathrm{attn}} from (N,C)(N,C) to (C,H,W)(C,H,W) to match the shape of projected Conv(FCA)Conv(F_{\mathrm{CA}}). Simultaneously, we convert the number of channels of FCAF_{\mathrm{CA}} from C′′C^{\prime\prime} to CC using a convolution layer for channel alignment and reweighting FattnF_{\mathrm{attn}}.

Finally, FAGF_{\mathrm{AG}} is processed by a convolution layer to produce the prediction map Fpred∈RC′×H×WF_{\mathrm{pred}} \in\mathbb{R}^{C^{\prime}\times H\times W}.

In summary, OCCA-Seg first aggregates multi-scale features to obtain the scale-unified pixel representation. The OCAM and CCAM then capture the object-level and channel-wise contextual information, respectively. Finally, the AM makes fusion of these contextual information with the pixel representation to produce context-enhanced features for SSRSIs. The overall design of OCCA-Seg enables the network to exploit contextual information and enlarge the receptive field.

Object Contextual Attention Module

As shown in the left part of Figure 3, the OCAM is designed to capture object-level contextual information by modeling the relationships between different class regions and the pixel representation. The computation of the OCAM involves generating an object attention map that highlights the relationships between each class region and each pixel, as shown in Eq. (7). It is worth noting that the relationships between each class region and each pixel is calculated by matrix multiplication. This operation makes these relationships aggregated over all pixels for each class region representation that does not retain the spatial representation of individual pixels but rather summarize it into FOAF_{\mathrm{OA}} in a global format.

Figure 3. The architecture of OCAM and CCAM

Fms′=Reshape(Conv(Fms))Fcls′=Reshape(Fcls)FOA=Scale⋅Fcls′×Fms′(7)\begin{aligned} F_{\mathrm{ms}}^{\prime} &= Reshape(Conv(F_{\mathrm{ms}})) \\ F_{\mathrm{cls}}^{\prime} &= Reshape(F_{\mathrm{cls}}) \\ F_{\mathrm{OA}} &= Scale \cdot F_{\mathrm{cls}}^{\prime} \times F_{\mathrm{ms}}^{\prime} \tag*{(7)} \end{aligned}

Here, ×\times denotes matrix multiplication. ⋅\cdot denotes scalar multiplication. ScaleScale is a scaling factor to control magnitude of the FclsF_{\mathrm{cls}}, and is set to 1 in this research. Given FmsF_{\mathrm{ms}} and FclsF_{\mathrm{cls}}, the OCAM establishes associations between semantic regions and pixel-level features. As expressed in Eq. (7), Fms′F_{\mathrm{ms}}^{\prime} is obtained by a convolution and reshape operation that transforms the shape of FmsF_{\mathrm{ms}} from (C,H,W)(C,H,W) to (N,C)(N,C), where NN is the number of pixels of the feature map. Similarly, Fcls′F_{\mathrm{cls}}^{\prime} is obtained by reshaping FclsF_{\mathrm{cls}} into a matrix of shape (C′,N)(C^{\prime},N). Finally, we can compute the object-level contextual representation FOAF_{\mathrm{OA}} by multiplying Fcls′F_{\mathrm{cls}}^{\prime} with Fms′F_{\mathrm{ms}}^{\prime} and scaling the result by ScaleScale. The shape of FOAF_{\mathrm{OA}} is (C′,C)(C^{\prime},C) after the matrix multiplication. Then, FOAF_{\mathrm{OA}} is fed into the AM for subsequent aggregation.

The pixel representation Fms′F_{\mathrm{ms}}^{\prime} is combined with the class region representation Fcls′F_{\mathrm{cls}}^{\prime} through matrix multiplication to produce the object-level contextual representation FOAF_{\mathrm{OA}}. In this way, features from spatially distant locations can contribute to the representation of the same semantic class, allowing the module to capture long-range object context beyond the local receptive fields of convolutional layers. The resulting FOAF_{\mathrm{OA}} encodes object-level contextual information and is passed to the AM together with the pixel representation FmsF_{\mathrm{ms}}. This enables the AM to incorporate object-level cues into pixel representations, which can help distinguish categories with similar local appearances and improve feature consistency among pixels belonging to the same object category. By leveraging the combination of the pixel representation and the class region information, the OCAM provides complementary contextual cues for semantic segmentation.

Channel Contextual Attention Module

As shown in the right part of Figure 3, the CCAM is designed to capture channel-wise contextual information by modeling the relationships between the channels of each pixel and class region representations. The computation of CCAM involves generating a channel attention map that highlights the importance of each pixel channel for different class region representation. This attention map is then used to reweight the feature channels by class region representation to enhance the channel-wise feature representation.

Fcls′′=Linear(Reshape(Fcls))Fms′′=LinearT(Reshape(Fms))FCA=Scale⋅Fcls′′×Fms′′(8)\begin{aligned} F_{\mathrm{cls}}^{\prime\prime} &= Linear(Reshape(F_{\mathrm{cls}})) \\ F_{\mathrm{ms}}^{\prime\prime} &= Linear^{\mathrm{T}}(Reshape(F_{\mathrm{ms}})) \\ F_{\mathrm{CA}} &= Scale \cdot F_{\mathrm{cls}}^{\prime\prime} \times F_{\mathrm{ms}}^{\prime\prime} \tag*{(8)} \end{aligned}

Here, the operator ReshapeReshape reshapes the feature maps into a suitable form for linear transform. Fcls′′∈RN×C′×1F_{\mathrm{cls}}^{\prime\prime} \in\mathbb{R}^{N \times C^{\prime} \times1} is obtained from FclsF_{\mathrm{cls}} by a reshape and linear transform. Fms′′∈RN×1×CF_{\mathrm{ms}}^{\prime\prime} \in\mathbb{R}^{N \times1 \times C} is obtained from FmsF_{\mathrm{ms}} by a cascade of reshape, linear transform, and transpose. LinearLinear denotes a learnable linear transform. The resulting FCAF_{\mathrm{CA}} is computed by the matrix multiplication of the class region features Fcls′′F''_{\mathrm{cls}} and the pixel representation Fms′′F''_{\mathrm{ms}}, representing the channel-wise attention-enhanced feature map. The original shape of FCAF_{\mathrm{CA}} is (N,C′,C)(N,C',C). For easy aggregation in the AM, we reshape it to (C′′,H,W)(C'',H,W).

FCAF_{\mathrm{CA}} captures relationships between pixel feature channels and class region representations, providing channel-wise context. The AM uses it to weight the FattnF_{\mathrm{attn}} and emphasize channels that are informative for each class. Together, the object-level context from OCAM and the channel-wise cues from CCAM produce more discriminative feature representations.

Experiments

Datasets

In this research, we evaluate OCCA-Seg on four remote sensing datasets for semantic segmentation tasks, which cover different spatial resolutions, scene complexities, and land-cover types. These datasets include LoveDA [22], ISPRS Potsdam [23], ISPRS Vaihingen [24], and UAVid [25] dataset. For the splitting and preprocessing of these datasets, we follow the same protocol as SFA-Net [26] and D2LS [27]. Through experiments on these datasets, we are able to comprehensively validate the adaptability of the proposed method in different remote sensing scenarios.

Implementation Details

All experiments in this research are conducted on an NVIDIA GeForce 4090 GPU with 24GB memory. And all codes are implemented in Python using the PyTorch framework. For ablation experiments and comparison with other state-of-the-art methods, we use the different implementation settings.

For ablation experiments, we use a YOLO26 model pretrained on ImageNet dataset as our baseline model. In the training, we adopt the AdamW optimizer with weight decay for network optimization. The initial learning rate is set to 0.001 and the weight decay is set to 0.0005. We apply warmup mechanism to prevent gradient explosion. The number of warmup epochs, momentum and bias learning rate are set as 3.0, 0.8 and 0.1 respectively.

For comparison with SOTA methods, we use the ConvNext-Base pretrained on ImageNet dataset as our backbone model. The initial learning rate is set to 8×10−58 \times10^{-5} and the weight decay is set to 0.01. The warmup mechanism is not applied for this setting.

Ablation experiments

For evaluation of OCCA-Seg, we conduct ablation experiments on the ISPRS Potsdam and Vaihingen datasets. YOLO26n-SEM from ultralytics is used as the baseline model. Both Potsdam and Vaihingen datasets have the same categories, including impervious surfaces (IS), buildings (BL), low vegetation (LV), trees (TE), and cars (CA). For each class of ISPRS Potsdam and Vaihingen datasets, the IoU, F1-Score(mF1) and pixel accuracy (OA) metrics are used as the main evaluation metrics and shown in Table I. The families of YOLO are famous in the field of computer vision. The semantic segmentation capability is supported by the YOLO26-SEM model. We replace the head of YOLO26n-SEM with our OCCA-Seg for improving the semantic segmentation performance in ablation experiments.

MethodDatasetIS(%)BL(%)LV(%)TE(%)CA(%)mIoU(%)mF1(%)OA(%)
YOLO26n-SEMPotsdam81.487.671.570.679.278.188.087.5
YOLO26n-OCCAPotsdam84.091.273.274.483.381.289.889.5
YOLO26n-SEMVaihingen79.885.764.474.059.172.683.786.4
YOLO26n-OCCAVaihingen80.687.366.174.864.874.785.387.2

Table I. Performance comparison on the ISPRS Potsdam and Vaihingen dataset

As shown in Table I, the proposed OCCA head consistently improves segmentation performance on both the ISPRS Potsdam and Vaihingen datasets. On Potsdam, YOLO26n-OCCA increases mIoU, mF1, and OA from 78.1, 88.0, and 87.5 to 81.2, 89.8, and 89.5, respectively. On Vaihingen, the corresponding metrics improve from 72.6, 83.7, and 86.4 to 74.7, 85.3, and 87.2. The IoU also increases for every category on both datasets, with the largest gain on Vaihingen observed for cars (from 59.1 to 64.8). These results of ablation experiments indicate that the OCCA-Seg provides consistent benefits across different datasets, supporting the effectiveness of aggregating object-level and channel-wise context into the baseline model.

Comparison with SOTA Methods

To evaluate the capability of our proposed OCCA-Seg method in SSRSIs, we conducted comprehensive experiments across multiple datasets to compare it with other state-of-the-art methods.

Potsdam Result. The ISPRS Potsdam dataset has 38 items in total. In this comparison, the ISPRS official dataset preprocessing scheme is adopted, where the training subset contains 2-10, 2-11, 2-12, 3-10, 3-11, 3-12, 4-10, 4-11 4-12, 5-10, 5-11, 5-12, 6-10, 6-11, 6-12, 6-7, 6-8, 6-9, 7-10, 7-11, 7-12, 7-7, 7-8 and 7-9, including 24 items in total. The validation subset contains the remaining items, including 14 items in total. Both image and mask of each item are split into 1024×10241024 \times1024 patches. During the test, we adopt the multiscale data augmentation strategy with the scale of (0.5, 1.0, 1.5, 2.0). Table II illustrates the results of the SOTA methods on the preprocessed ISPRS Potsdam dataset, where the OCCA-Seg method obtains 87.51% mIoU, 93.21% mF1, and 91.85% OA. It can be observed that OCCA-Seg outperforms other methods listed in Table II for overall performance. At the category level, OCCA-Seg achieves the best IoU for impervious surfaces (88.80%), trees (81.23%), and cars (93.61%). Its IoU on buildings is also competitive, which is close to the best results of 94.83% achieved by D2LS [27]. For the category of low vegetation, OCCA-Seg achieves an IoU of 79.13%, ranking fourth among the compared methods. This result is lower than the best IoU of 79.66% achieved by EfficientVit [33] by 0.53 percentage points. In summary, the OCCA-Seg achieves the leading performance across different categories on the ISPRS Potsdam dataset.

MethodIS(%)BL(%)LV(%)TE(%)CA(%)mIoU(%)mF1(%)OA(%)
FarSeg [29]85.2891.3376.4677.3691.3784.3691.2189.87
FarSeg++ [30]87.7793.8877.2179.6492.6586.2391.9991.22
ISNet [31]87.5393.6878.6080.0393.0686.5892.6791.27
UNetFormer [32]87.5894.2379.4580.1891.2786.5492.7791.46
EfficientVit [33]84.3791.4979.6677.4388.2084.2390.1189.61
PEM [34]86.8693.6877.3479.6590.2385.5591.7390.48
LOGCAN++ [28]83.9891.8972.5780.1575.3282.0689.9491.47
MSEONet [35]84.1291.4572.9175.6283.3781.3384.1788.68
D2LS [27]88.1694.8378.2480.7793.2387.0492.9491.73
OCCA-Seg(ours)88.8094.7779.1381.2393.6187.5193.2191.85

Table II. Performance comparison on the ISPRS Potsdam dataset

Vaihingen Result. The ISPRS Vaihingen dataset has 33 items in total. In this comparison, we used IDs: 1, 3, 5, 7, 11, 13, 15, 17, 21, 23, 26, 28, 30, 32, 34, and 37 for training. And the remaining 17 items are used for validation. Both image and mask of each item are split into 1024×10241024 \times1024 patches. During the test, we adopt the single scale data augmentation strategy with the scale of 1.0. As shown in Table III, the OCCA-Seg achieves the best performance among the compared methods on the ISPRS Vaihingen dataset. The mean of IoU, F1-Score, and overall accuracy are 84.03%, 91.17%, and 92.44%, respectively. For the class level evaluation, it ranks first in IoU for impervious surfaces (91.67%).

MethodIS(%)BL(%)LV(%)TE(%)CA(%)mIoU(%)mF1(%)OA(%)
FarSeg [29]84.1089.2771.1080.1071.179.1487.8889.57
FarSeg++ [30]86.4790.8674.3982.8776.8882.2989.7790.91
ISNet [31]85.9190.8972.9681.9380.0182.3690.1990.52
UNetFormer [32]88.1491.4771.2381.4679.2282.3090.3190.82
ConvNeXt [20]87.1391.5673.8183.4878.3782.8790.5091.36
EfficientViT [33]87.2690.4269.1478.4177.3780.5287.5689.41
DOCNet [36]87.7691.3674.4582.6882.1383.7391.1191.36
D2LS [27]87.0791.3372.982.1580.9082.8790.5091.02
OCCA-Seg(ours)91.6791.5773.8982.3780.6484.0391.1792.44

Table III. Performance comparison on the ISPRS Vaihingen dataset

LoveDA Result. The LoveDA dataset is designed for SSRSI competition, only accepting online tests. In order to obtain a better performance, we put the training and validation sets together for training our model. We report the comparison results from the official LoveDA online test server at Table IV. As shown in this table, the proposed OCCA-Seg achieves the best performance among all compared methods on the LoveDA dataset. It achieves the highest mIoU of 55.5% on the LoveDA test set, exceeding D2LS [27] by 0.2 percentage point. At category level, OCCA-Seg obtains the best IoU for water (82.2%) and agriculture (66.0%). Compared with D2LS [27], it also achieves gains in background, building, and road, while its IoU for barren and forest is lower by 0.6 and 0.4 percentage points, respectively. These results indicate that OCCA-Seg achieves the best overall performance among the compared methods.

MethodBackground (%)Building (%)Road (%)Water (%)Barren (%)Forest (%)Agriculture (%)mIoU (%)
TransUNet [37]43.056.153.778.09.344.956.948.9
DC-Swin [38]41.354.556.278.114.547.262.450.6
UNetFormers [32]44.758.854.979.620.146.062.552.4
AerialFormer [39]47.860.759.381.517.947.964.054.1
SFA-Net [26]48.460.359.181.924.146.264.054.9
MIFNet [40]49.656.350.358.925.734.252.746.8
MSEONet [35]54.663.753.565.639.339.354.752.9
BRSMamba [41]55.564.856.971.428.142.162.154.4
D2LS [27]47.661.259.181.623.848.864.855.3
OCCA-Seg(ours)48.261.359.282.223.248.466.055.5

Table IV. Performance comparison on the LoveDA dataset

UAVid Result. Unlike LoveDA and the ISPRS Potsdam and Vaihingen datasets, UAVid consists of video sequences captured by unmanned aerial vehicles (UAVs), posing challenges such as complex urban scenes and small moving objects. Table V compares OCCA-Seg with representative methods on UAVid. According to the reported mIoU, OCCA-Seg achieves 68.9%, ranking second among the compared methods, 1.5 percentage points below SFA-Net (70.4%). At the class level, OCCA-Seg obtains the highest IoU for trees (81.4%), vegetation (65.6%), and humans (31.6%), exceeding SFA-Net by 0.6, 1.0, and 0.9 percentage points, respectively. However, it trails SFA-Net on clutter, buildings, roads, moving cars, and static cars, with the largest gaps on the two car classes (5.7 and 6.3 percentage points, respectively). These results show that OCCA-Seg performs competitively on UAVid and is particularly effective for vegetation and human classes, while identifying vehicle segmentation as an area for further improvement.

MethodClutter (%)Building (%)Road (%)Tree (%)Vegetation (%)Moving Car (%)Static Car (%)Human (%)mIoU (%)
DANet [42]64.958.977.968.361.559.647.49.155.9
ABCNet [43]67.486.481.279.963.169.848.413.963.8
BANet [44]66.785.480.778.962.169.352.821.064.6
SegFormer [45]66.686.380.179.662.372.552.528.566.0
UNetFormer [32]68.487.481.580.263.573.656.431.067.8
SFA-Net [26]70.289.082.780.864.677.567.530.770.4
OCCA-Seg(ours)69.088.981.781.465.671.861.231.668.9

Table V. Comparison of semantic segmentation performance on the UAVID dataset.

Visualization Result. In this research, the visualization experiments are performed on the ISPRS Potsdam dataset and shown in Figure 4. As observed from these visualization results, the methods of DANet and OCRNet suffer from the widespread misclassification. Some large voids will appear in the segmentation results of the Segformer method. For the D2LS, some fracture points can be observed in the thin and long segmented objects, such as roads, rivers, and green belts. Besides, it may produce the glitch noise on the edge of segmented objects. In contrast, the proposed OCCA-Seg method demonstrates more accurate segmentation results, effectively mitigating the issues observed in other methods.

Figure 4. Visualization results of SOTA methods on ISPRS Potsdam dataset.

Conclusion

In this paper, we propose the OCCA-Seg framework to address the limitations of the receptive field and improve the distinguishing representation of the object context for SSRSIs. Our method effectively captures both object-level and channel-wise contextual dependencies through a dual-branch architecture with attention mechanism: the Object Contextual Attention Module (OCAM) captures category-level context, while the Channel Contextual Attention Module (CCAM) models channel-wise dependencies conditioned on class regions. Their outputs are integrated with the multi-scale features by an AM to produce the final enhanced representation. This design provides a means of incorporating both object-level and channel-wise contextual information to enhance the receptive field and pixel discrimination.

Acknowledgments

This work is supported by the 2024 Ministry Provincial Cooperation Project of the Ministry of Natural Resources of the People’s Republic of China (No.2024ZRBSHZ055), and research on the Integrated Protection and Adaptive Utilization Management Platform and Application for Cultural and Natural Heritage.

Gang Yang received his B.S. and M.S. degrees from Beijing Jiaotong University in 2014 and 2019, respectively. He is working for Beijing Institute of Survey and Mapping and Beijing Key Laboratory of Urban Spatial Information Engineering, Beijing, China. His research interests include machine learning and remote sensing image processing.

Si Chen received her master’s degree in Urban Planning and Design from Beijing Institute of Civil Engineering and Architecture. In 2021, she was awarded the title of Senior Engineer at the Beijing Institute of Surveying and Mapping. Her research interests include conservation of historical and cultural cities, geographic information systems (GIS), and realistic 3D geospatial representation.

Quan Zhou received his B.S. degree from Capital Normal University, China, in 2015 and his M.S. degree from the University of Twente, Netherlands in 2018. Since 2018 he has been an engineer at Beijing Institute of Surveying and Mapping. His research interests are in smart city, remote sensing, and system architecture design.

Jiangchuan Li received his B.S. and M.S. degrees from Beijing University of Civil Engineering and Architecture, China, in 2019 and 2022, respectively. Since 2022, he has been an assistant engineer at Beijing Institute of Surveying and Mapping. His research interests are in GIS and remote sensing.

References

  1. [1]W. Ke, “Improved u-net algorithm and multi-scale feature fusion for high-resolution remote sensing image land use segmentation,” Beijing Surveying and Mapping, vol. 40, no. 10, pp. 1398–1403, 2026.
  2. [2]J. Long, E. Shelhamer, and T. Darrell, “Fully convolutional networks for semantic segmentation,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015.
  3. [3]X. Zhang, G. Chen, W. Wang, Q. Wang, and F. Dai, “Object-based land-cover supervised classification for very-high-resolution vav images using stacked denoising autoencoders,” IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 10, no. 7, pp. 3373–3385, 2017.DOI
  4. [4]N. Bagwari, S. Kumar, and V. S. Verma, “A Comprehensive Review on Segmentation Techniques for Satellite Images,” Archives of Computational Methods in Engineering, vol. 30, no. 7, pp. 4325–4358, Sep. 2023. [Online]. Available: https://doi.org/10.1007/s11831-023-09939-4
  5. [5]O. Ronneberger, P. Fischer, and T. Brox, “U-net: Convolutional networks for biomedical image segmentation,” in Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, N. Navab, J. Hornegger, W. M. Wells, and A. F. Frangi, Eds. Cham: Springer International Publishing, 2015, pp. 234–241.arxiv.org/abs/1505.04597
  6. [6]V. Badrinarayanan, A. Kendall, and R. Cipolla, “Segnet: A deep convolutional encoder-decoder architecture for image segmentation,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 39, no. 12, pp. 2481–2495, 2017.DOI
  7. [7]L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille, “Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 40, no. 4, pp. 834–848, 2018.DOI
  8. [8]P. Zhang, W. Liu, Y. Lei, H. Wang, and H. Lu, “Rapnet: Residual atrous pyramid network for importance-aware street scene parsing,” IEEE Transactions on Image Processing, vol. 29, pp. 5010–5021, 2020.DOI
  9. [9]K. Sun, Y. Zhao, B. Jiang, T. Cheng, B. Xiao, D. Liu, Y. Mu, X. Wang, W. Liu, and J. Wang, “High-resolution representations for labeling pixels and regions,” arXiv preprint arXiv:1904.04514, 2019.arxiv.org/abs/1904.04514
  10. [10]J. He, J. Wang, Z. Han, B. Li, M. Lv, and Y. Shi, “Cancer detection for small-size and ambiguous tumors based on semantic fpn and transformer,” PLOS ONE, vol. 18, no. 2, pp. 1–17, 02 2023. [Online]. Available: https://doi.org/10.1371/journal.pone.0275194
  11. [11]M. Yang, K. Yu, C. Zhang, Z. Li, and K. Yang, “Densesassp for semantic segmentation in street scenes,” in 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE, 2018, pp. 3684–3692.DOI
  12. [12]W. Liu, A. Rabinovich, and A. C. Berg, “Parsenet: Looking wider to see better,” arXiv preprint arXiv:1506.04579, 2015.arxiv.org/abs/1506.04579
  13. [13]Y. Yuan, L. Huang, J. Guo, C. Zhang, X. Chen, and J. Wang, “Ocnet: Object context for semantic segmentation,” International Journal of Computer Vision, vol. 129, no. 8, pp. 2375–2398, 2021.DOI
  14. [14]Y. Yuan, X. Chen, and J. Wang, “Object-contextual representations for semantic segmentation,” in Computer Vision – ECCV 2020, A. Vedaldi, H. Bischof, T. Brox, and J.-M. Frahm, Eds. Cham: Springer International Publishing, 2020, pp. 173–190.DOI
  15. [15]B. Cheng, I. Misra, A. G. Schwing, A. Kirillov, and R. Girdhar, “Masked-attention mask transformer for universal image segmentation,” in 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2022, pp. 1280–1289.arxiv.org/abs/2112.01527
  16. [16]B. Zhang, L. Liu, M. H. Phan, Z. Tian, C. Shen, and Y. Liu, “Segvit v2: Exploring efficient and continual semantic segmentation with plain vision transformers,” International Journal of Computer Vision, vol. 132, no. 4, pp. 1126–1147, 2024.arxiv.org/abs/2306.06289
  17. [17]J. Gu, H. Kwon, D. Wang, W. Ye, M. Li, Y.-H. Chen, L. Lai, V. Chandra, and D. Z. Pan, “Multi-scale high-resolution vision transformer for semantic segmentation,” in 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2022, pp. 12 084–12 093.arxiv.org/abs/2111.01236
  18. [18]J. Chen, G. Chen, P. Zhou, Y. He, L. Yue, M. Ding, and H. Lin, “Ctseg: Cnn and vit collaborated segmentation framework for efficient land-use/land-cover mapping with high-resolution remote sensing images,” International Journal of Applied Earth Observation and Geoinformation, vol. 139, p. 104546, 2025.DOI
  19. [19]X. Zou, Y. Li, S. Zhang, K. Li, S. Wang, P. Tao, J. Xing, and C. Lang, “Dynamic dictionary learning for remote sensing image segmentation,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), October 2025, pp. 22 457–22 466.
  20. [20]Z. Liu, H. Mao, C.-Y. Wu, C. Feichtenhofer, T. Darrell, and S. Xie, “A convnet for the 2020s,” in 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR). IEEE, 2022, pp. 11 966–11 976.
  21. [21]A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, “Attention is all you need,” 2023. [Online]. Available: https://arxiv.org/abs/1706.03762
  22. [22]J. Wang, Z. Zheng, A. Ma, X. Lu, and Y. Zhong, “Loveda: A remote sensing land-cover dataset for domain adaptive semantic segmentation,” arXiv preprint arXiv:2110.08733, 2021.arxiv.org/abs/2110.08733
  23. [23]International Society for Photogrammetry and Remote Sensing, “Potsdam datasets,” https://www.isprs.org/education/benchmarks/UrbanSemLab/2dsem-label-potsdam.aspx, May 2024, available online.
  24. [24]I. S. for Photogrammetry and R. S. Xing, “Vaihingen datasets,” https://www.isprs.org/education/benchmarks/UrbanSemLab/2dsem-label-vaihingen.aspx, May 2024, available online.
  25. [25]Y. Lyu, G. Vosselman, G.-S. Xia, A. Yilmaz, and M. Y. Yang, “Uavid: A semantic segmentation dataset for uav imagery,” ISPRS Journal of Photogrammetry and Remote Sensing, vol. 165, pp. 108 – 119, 2020. [Online]. Available: http://www.sciencedirect.com/science/article/pii/S0924271620301295
  26. [26]G. Hwang, J. Jeong, and S. J. Lee, “Sfa-net: Semantic feature adjustment network for remote sensing image segmentation,” Remote Sensing, vol. 16, no. 17, p. 3278, 2024.DOI
  27. [27]X. Zou, Y. Li, S. Zhang, K. Li, S. Wang, P. Tao, J. Xing, and C. Lang, “Dynamic dictionary learning for remote sensing image segmentation,” in 2025 IEEE/CVF International Conference on Computer Vision (ICCV). IEEE, 2025, pp. 22457–22466.
  28. [28]X. Ma, R. Lian, Z. Wu, H. Guo, F. Yang, M. Ma, S. Wu, Z. Du, W. Zhang, and S. Song, “Logcan++: Adaptive local-global class-aware network for semantic segmentation of remote sensing images,” IEEE Transactions on Geoscience and Remote Sensing, vol. 63, pp. 1–16, 2025.DOI
  29. [29]Z. Zheng, Y. Zhong, J. Wang, and A. Ma, “Foreground-aware relation network for geospatial object segmentation in high spatial resolution remote sensing imagery,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2020, pp. 4095–4104.
  30. [30]Z. Zheng, Y. Zhong, J. Wang, A. Ma, and L. Zhang, “Farseg++: Foreground-aware relation network for geospatial object segmentation in high spatial resolution remote sensing imagery,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 11, pp. 13715–13729, 2023.
  31. [31]Z. Jin, B. Liu, Q. Chu, and N. Yu, “Isnet: Integrate image-level and semantic-level context for semantic segmentation,” in 2021 IEEE/CVF International Conference on Computer Vision (ICCV). IEEE, 2021, pp. 7169–7178.arxiv.org/abs/2108.12382
  32. [32]L. Wang, R. Li, C. Zhang, S. Fang, C. Duan, X. Meng, and P. M. Atkinson, “Unetformer: A unet-like transformer for efficient semantic segmentation of remote sensing urban scene imagery,” ISPRS Journal of Photogrammetry and Remote Sensing, vol. 190, pp. 196–214, 2022.DOI
  33. [33]H. Cai, J. Li, M. Hu, C. Gan, and S. Han, “Efficientvit: Lightweight multi-scale attention for high-resolution dense prediction,” in 2023 IEEE/CVF international conference on computer vision (ICCV). IEEE, 2023, pp. 17256–17267.DOI
  34. [34]N. Cavagnero, G. Rosi, C. Cuttano, F. Pistilli, M. Ciccone, G. Averta, and F. Cermelli, “Perim: Prototype-based efficient maskformer for image segmentation,” in 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2024, pp. 15804–15813.arxiv.org/abs/2402.19422
  35. [35]W. Huang, F. Deng, H. Liu, M. Ding, and Q. Yao, “Multiscale semantic segmentation of remote sensing images based on edge optimization,” IEEE Transactions on Geoscience and Remote Sensing, vol. 63, pp. 1–13, 2025.DOI
  36. [36]X. Ma, R. Che, X. Wang, M. Ma, S. Wu, T. Feng, and W. Zhang, “Docnet: Dual-domain optimized class-aware network for remote sensing image segmentation,” IEEE Geoscience and Remote Sensing Letters, vol. 21, pp. 1–5, 2024.DOI
  37. [37]J. Chen, J. Mei, X. Li, Y. Lu, Q. Yu, Q. Wei, X. Luo, Y. Xie, E. Adeli, Y. Wang et al., “Transunet: Rethinking the u-net architecture design for medical image segmentation through the lens of transformers,” Medical image analysis, vol. 97, p. 103280, 2024.DOI
  38. [38]L. Wang, R. Li, C. Duan, C. Zhang, X. Meng, and S. Fang, “A novel transformer based semantic segmentation scheme for fine-resolution remote sensing images,” IEEE Geoscience and Remote Sensing Letters, vol. 19, pp. 1–5, 2022.DOI
  39. [39]T. Hanyu, K. Yamazaki, M. Tran, R. A. McCann, H. Liao, C. Rainwater, M. Adkins, J. Cothren, and N. Le, “Aerialformer: Multi-resolution transformer for aerial image segmentation,” Remote Sensing, vol. 16, no. 16, p. 2930, 2024.arxiv.org/abs/2306.06842
  40. [40]W. Xie, W. Shao, D. Li, Y. Li, and L. Fang, “Mifnet: Multi-scale interaction with sparse network for remote sensing image change detection,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 35, no. 3, pp. 2725–2739, 2025.DOI
  41. [41]W. Huang, F. Deng, H. Liu, M. Ding, and Q. Yao, “Multi-scale semantic segmentation of remote sensing images based on edge optimization,” IEEE Transactions on Geoscience and Remote Sensing, 2025.DOI
  42. [42]J. Fu, J. Liu, H. Tian, Y. Li, Y. Bao, Z. Fang, and H. Lu, “Dual attention network for scene segmentation,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.arxiv.org/abs/1809.02983
  43. [43]R. Li, S. Zheng, C. Zhang, C. Duan, L. Wang, and P. M. Atkinson, “Abcnet: Attentive bilateral contextual network for efficient semantic segmentation of fine-resolution remotely sensed imagery,” ISPRS journal of photogrammetry and remote sensing, vol. 181, pp. 84–98, 2021.DOI
  44. [44]L. Wang, R. Li, D. Wang, C. Duan, T. Wang, and X. Meng, “Transformer meets convolution: A bilateral awareness network for semantic segmentation of very fine resolution urban scene images,” Remote Sensing, vol. 13, no. 16, p. 3065, 2021.arxiv.org/abs/2106.12413
  45. [45]E. Xie, W. Wang, Z. Yu, A. Anandkumar, J. M. Alvarez, and P. Luo, “Segformer: Simple and efficient design for semantic segmentation with transformers,” in Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, Eds., vol. 34. Curran Associates, Inc., 2021, pp. 12077–12090. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2021/file/64f1f27bflb4ec22924f0d0acb550c235-Paper.pdfarxiv.org/abs/2105.15203

Paper details

vlnc:W_v4uy8ttb
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents