Research on land cover type classification method based on improved MaskFormer for remote sensing images

Haiwen Chen, Lu Wang, Lei Zhang, Yanping Li, Zhongrong Xu, Lulu Cui, Xilai LiPeerj Comput. sci 2023

TL;DR

This paper introduces Shunted-MaskFormer, an improved MaskFormer model for land cover classification in high-resolution remote sensing images. It addresses the challenge of classifying complex highland terrains by developing a new dataset and a more efficient network architecture that balances accuracy and model size.

What Problem Does This Paper Address?

Accurate land cover classification from remote sensing images is crucial for various applications like environmental monitoring and urban planning. However, existing datasets often focus on plain areas, making them less suitable for complex highland terrains. Furthermore, while deep learning models like MaskFormer have shown promise, they can be computationally expensive and struggle with imbalanced datasets. This paper tackles these issues by creating a new dataset for highland areas and proposing an improved MaskFormer architecture that is more efficient and robust to data imbalance.

Methods

The core of this work is the Shunted-MaskFormer network, an adaptation of the MaskFormer architecture. Key improvements include:

  • Shunted Transformer Encoder: This module replaces the standard transformer encoder with a more efficient Shunted Transformer, designed to capture multi-scale features with reduced computational cost. It utilizes a novel self-attention mechanism and a "Detail Specific FeedForward" layer to better preserve spatial details.
  • Data-Dependent Upsampling Decoder: Instead of traditional, unlearnable upsampling methods like bilinear interpolation, the paper employs a data-dependent upsampling approach. This method leverages the segmentation labels to adaptively reconstruct feature maps, aiming for more accurate boundary segmentation. It incorporates a feature selection module (inspired by Squeeze-and-Excitation) and a DUpsample module.
  • Mask Classification Paradigm: Like the original MaskFormer, this approach treats segmentation as a mask classification task, predicting a set of binary masks and their corresponding class labels. This paradigm is noted for its effectiveness in handling complex scenes and potentially mitigating data imbalance.

Datasets

The study utilizes two datasets:

  • Qilian County Grassland Dataset: This is a newly constructed dataset specifically for highland ecological protection. It focuses on 2m resolution remote sensing images from Qilian County, China, and primarily labels "grassland" and "other" categories. The dataset was created by enhancing vegetation signals in RGB images with near-infrared bands.
  • Gaofen Image Dataset (GID): A publicly available dataset used for evaluating the generalization capabilities of the proposed model. The paper uses a subset of GID, focusing on the RGB bands and containing five categories: buildings, farmland, forest, grassland, and water. The GID dataset is known for its class imbalance.

Key Insights and Ideas

  • Highland terrains are a distinct challenge: The unique topography and landscape of highland mountainous areas require specialized datasets and models, as existing ones trained on plains may not generalize well.
  • Transformer efficiency is key: While Transformers excel at capturing global context, their computational demands can be a bottleneck. The Shunted Transformer offers a promising direction for making these powerful models more practical for remote sensing applications.
  • Data-dependent upsampling matters: Traditional upsampling methods can lead to suboptimal results. A data-driven approach that learns to reconstruct feature maps based on segmentation labels can significantly improve boundary accuracy.
  • Mask classification handles imbalance better: The mask classification paradigm, as used in MaskFormer, shows potential in improving segmentation accuracy for underrepresented classes, a common issue in remote sensing datasets.

Key Results

  • Qilian Grassland Dataset: The Shunted-MaskFormer achieved an MIoU of 80.75% and an MPA of 88.89%, outperforming other state-of-the-art methods, including DeepLab v3+ and Upernet. It showed particularly strong performance on the "grassland" class (85.74% MIoU).
  • GID Dataset: The model achieved the highest MIoU of 72.3% on the GID dataset, demonstrating good generalization capabilities. It also showed an advantage in achieving more balanced segmentation results across classes, even for the underrepresented "grassland" category.
  • Model Efficiency: The optimized Shunted-MaskFormer model is approximately one-third the size of the suboptimal model, indicating a significant reduction in parameters and computational complexity.

Limitations and Future Work

  • Dataset Size and Scope: The constructed Qilian County grassland dataset is relatively small and labels only a single grassland type. Its applicability to other low-altitude or plain areas needs further verification.
  • Generalization to Other Land Cover Types: While the model performs well on grassland, its direct application to extracting various other land cover types might require further adaptation.
  • Further Accuracy Improvement: The paper acknowledges that while the model size is reduced, the improvement in segmentation accuracy is limited. Future work will focus on further enhancing segmentation accuracy and exploring semi-supervised or unsupervised learning methods to reduce labeling workload.
  • Resource-Intensive Models: For scenarios with abundant computing resources, models like Swin Transformer with more parameters might achieve even better segmentation accuracy, suggesting a trade-off between model size and performance.

Summary updated

BibTeX
@article{chen2023research,
  author = {Haiwen Chen and Lu Wang and Lei Zhang and Yanping Li and Zhongrong Xu and Lulu Cui and Xilai Li},
  title = {{Research on land cover type classification method based on improved MaskFormer for remote sensing images}},
  journal = {Peerj Comput. sci},
  year = {2023},
  doi = {10.7717/peerj-cs.1222},
}
Figure