Abstract
Accurate semantic segmentation of urban remote sensing images (URSIs) is essential for urban planning and environmental monitoring. However, it remains challenging due to the subtle texture differences and similar spatial structures among geospatial objects, which cause semantic ambiguity and misclassification. Additional complexities arise from irregular object shapes, blurred boundaries, and overlapping spatial distributions of objects, resulting in diverse and intricate edge morphologies. To address these issues, we propose TEFormer, a texture-aware and edge-guided Transformer. Our model features a texture-aware module (TaM) in the encoder to capture fine-grained texture distinctions between visually similar categories, thereby enhancing semantic discrimination. The decoder incorporates an edge-guided tri-branch decoder (Eg3Head) to preserve local edges and details while maintaining multiscale context-awareness. Finally, an edge-guided feature fusion module (EgFFM) effectively integrates contextual, detail, and edge information to achieve refined semantic segmentation. Extensive evaluation demonstrates that TEFormer yields mIoU scores of 88.57% on Potsdam and 81.46% on Vaihingen, exceeding the next best methods by 0.73% and 0.22%. On the LoveDA dataset, it secures the second position with an overall mIoU of 53.55%, trailing the optimal performance by a narrow margin of 0.19%.
Introduction
Semantic segmentation of Urban Remote Sensing Images (URSIs) is a critical task for modern urban management, yet it faces significant hurdles. Urban environments are cluttered, and many geospatial objects—such as different types of roofs or paved surfaces—share similar spatial structures and spectral signatures. This leads to semantic ambiguity, where models misclassify objects that differ only in subtle surface textures. Furthermore, urban scenes are characterized by intricate edge morphologies, including irregular shapes and blurred boundaries, which standard segmentation models often fail to delineate sharply.
Methodology
TEFormer addresses these challenges through three primary architectural innovations integrated into a Transformer-based pipeline.
Texture-aware Module (TaM)
To combat semantic ambiguity, TEFormer introduces the Texture-aware Module (TaM) in the early stages of the encoder. Unlike standard convolutions that may overlook fine-grained surface details, the TaM utilizes a Quantization and Counting Operator (QCO). This operator discretizes feature distributions into specific levels and "counts" their occurrences to build a robust texture descriptor. By combining this with an attention mechanism, the model can focus on regions with similar fine-grained textures, effectively distinguishing between "look-alike" classes like low vegetation and trees.
Edge-guided Tri-branch Decoder (Eg3Head)
The decoding process is split into three specialized paths to handle the complexity of urban scenes:
- Edge Branch: Explicitly extracts boundary contours to maintain structural integrity.
- Detail Branch: Preserves local structural information and fine details.
- Context Branch: Employs a Pyramid Atrous Semantic Pooling (PASPPM) module to capture multi-scale global context using dilated convolutions, ensuring the model understands the broader scene layout.
Edge-Guided Feature Fusion Module (EgFFM)
The fusion of these three branches is managed by the EgFFM. This module uses the output from the edge branch as a dynamic weight. For pixels identified as boundaries, the module prioritizes detail features; for pixels within an object's interior, it prioritizes contextual features. This adaptive weighting prevents the "bleeding" effect where one class spills into another across fuzzy boundaries.
Experimental Results
TEFormer was evaluated on three major remote sensing benchmarks, demonstrating superior performance in both quantitative metrics and qualitative visual quality.
- ISPRS Potsdam: Achieved a state-of-the-art 88.57% mIoU, outperforming the previous best method (D2SFormer) by 0.73%.
- ISPRS Vaihingen: Reached 81.46% mIoU, a 0.22% improvement over competitive baselines.
- LoveDA: Secured the 2nd position overall with 53.55% mIoU, showing particular strength in urban categories like buildings and roads.
Qualitatively, TEFormer excels at segmenting thin, curved structures and maintaining clean, sharp edges around buildings, areas where traditional models like BiFormer often produce fragmented or fuzzy results.
Conclusion
TEFormer successfully integrates texture awareness and edge guidance to solve persistent problems in urban satellite imagery segmentation. While the model is computationally intensive (52.67M parameters and 72.25G FLOPs), its accuracy and boundary-preserving capabilities set a new standard for the field. Future work will focus on developing more lightweight versions of the architecture and exploring the integration of multi-source data, such as LiDAR, to further enhance material discrimination.
Summary updated