Abstract
Remote sensing images typically exhibit significant scale and appearance variations, requiring deep learning-based semantic segmentation methods to effectively capture local and global contextual information to improve segmentation accuracy and handle complex scenes. Although CNN-based methods have been widely applied, they excel at capturing local details but are limited in modeling global context. By relying on multi-head self-attention, transformers can effectively capture global dependencies but often incur high computational costs. In this paper, we propose a Multiscale Context-Aware Network (MCANet) that combines CNN and Transformer architectures to comprehensively and efficiently model multi-scale local and global contextual relationships. Specifically, an Adaptive Feature Enhancement Module (AFEM) is designed to enhance local contextual representations of multiscale features in the encoder using large-kernel strip convolutions and frequency-adaptive weighting. Meanwhile, we develop a Multi-scale Global-context Transformer Block (MGTB) in the decoder to efficiently extract global contextual information across different scales. Furthermore, the Feature Fusion Module (FFM) is introduced to integrate the local context enhanced by AFEM and the global context generated by MGTB, thus further promoting the joint learning of local and global information. Extensive quantitative and qualitative experiments conducted on the public Vaihingen and Potsdam datasets demonstrate that the proposed MCANet achieves superior segmentation performance compared to existing mainstream methods.
Introduction
Semantic segmentation in remote sensing—assigning a category (like "building," "tree," or "car") to every pixel in an aerial or satellite image—is notoriously difficult due to extreme scale variations. A car might be represented by a few dozen pixels, while a building or a forest spans thousands.
Traditional Convolutional Neural Networks (CNNs) are excellent at picking up local textures and edges, but they often have a limited receptive field, making it difficult to understand broader global context. Conversely, Vision Transformers (ViTs) excel at capturing global dependencies through self-attention but are computationally expensive and can blur fine-grained local details. MCANet addresses these challenges by providing a hybrid architecture that is accurate across all scales without requiring massive computing resources.
Methodology: The MCANet Architecture
MCANet utilizes a classic encoder-decoder structure, enhanced by three novel modules designed to handle scale and context efficiently.
1. Adaptive Feature Enhancement Module (AFEM)
Placed in the encoder, the AFEM uses "strip convolutions" (long, thin kernels like 1x7 and 7x1) to expand the receptive field without the high parameter count of large square kernels. It also employs frequency-modulation to separate features into high-frequency (edges/details) and low-frequency (global structure) components, sharpening object boundaries.
2. Multi-scale Global-context Transformer Block (MGTB)
Located in the decoder, the MGTB replaces standard Transformer blocks. It uses window-based attention to maintain efficiency while incorporating horizontal and vertical pooling to allow information flow between windows. It also features a multi-scale MLP to capture objects of varying sizes.
3. Feature Fusion Module (FFM)
To avoid "information imbalance" when combining encoder and decoder features, the FFM uses a softmax-based attention mechanism. This adaptively weights spatial and channel information, ensuring the most relevant features from both stages are preserved during fusion.
Experimental Results
The model was evaluated on the Vaihingen and Potsdam high-resolution aerial imagery benchmarks. As shown in the quantitative results, MCANet outperformed several prominent models, including DeepLabV3+, SwinUnet, and CMLFormer.
On the Vaihingen dataset, MCANet achieved a state-of-the-art 73.54% mIoU and 84.43% mF1 score. Crucially, the model is remarkably efficient, utilizing only 12.55 million parameters and 20.31 GFLOPs. In comparison, TransUnet uses over 100 million parameters and nearly double the GFLOPs while achieving lower accuracy. Qualitative results further indicate that MCANet produces cleaner boundaries for vehicles and better distinguishes between similar categories like "low vegetation" and "trees."
Conclusion
MCANet demonstrates that a lightweight CNN backbone paired with a context-aware Transformer decoder can outperform massive, pure Transformer architectures in remote sensing tasks. By explicitly modeling multi-scale local and global information, the network handles the extreme scale variations inherent in aerial imagery. Future work will focus on testing the model on more diverse rural terrains and further optimizing the architecture for real-time deployment on edge devices and drones.
Summary updated