LEFormer: A Hybrid CNN-Transformer Architecture for Accurate Lake Extraction from Remote Sensing Imagery

Ben Chen, Xuechao Zou, Yu Zhang, Jiayu Li, Kai Li, Junliang Xing, Pin Tao

TL;DR

This paper introduces LEFormer, a novel hybrid CNN-Transformer architecture for accurate lake extraction from remote sensing images. By effectively combining local feature extraction from CNNs with global context understanding from Transformers, LEFormer achieves state-of-the-art accuracy while being significantly more efficient than previous methods.

What Problem Does This Paper Address?

Extracting lakes from remote sensing imagery is a critical task for monitoring climate change and environmental shifts. However, this process is challenging due to the complex and irregular shapes of lakes, as well as the presence of noise and similar-looking features in the imagery (like snow and glaciers). Existing deep learning methods often struggle with producing precise lake boundaries and effectively modeling the foreground, leading to blurred segmentations and inaccurate results.

Methods

LEFormer is built upon three core modules:

  • CNN Encoder (CE): This module uses a hierarchical structure with depth-wise separable convolutions and a novel Multi-Scale Spatial-Channel Attention (MSCA) mechanism. MSCA leverages dilated convolutions to capture features at various scales and CBAM for attention weighting, enhancing the extraction of fine-grained local details.
  • Transformer Encoder (TE): To capture long-range dependencies and global context, LEFormer employs a lightweight Transformer encoder. It incorporates Overlapped Patch Merging from SegFormer to maintain local continuity and uses a 2D convolutional layer within the Feed-Forward Network (FFN) to implicitly learn positional information, addressing some limitations of standard Vision Transformers. The TE is designed to be efficient, using a combination of Efficient Transformer Layers (ETL) and Pooling Transformer Layers (PTL).
  • Cross-Encoder Fusion (CEF): This module acts as a bridge, integrating the local features from the CE with the global features from the TE. It concatenates and fuses these features, allowing the model to recover precise local spatial information and enhance fine-scale details for improved mask prediction.

The overall architecture then uses a lightweight decoder, similar to SegFormer, to generate the final lake segmentation mask.

Datasets

The paper evaluates LEFormer on two publicly available satellite remote sensing datasets for lake extraction:

  • Surface Water (SW) dataset: Comprises 17,596 images, split 4:1 for training and testing.
  • Qinghai-Tibet Plateau Lake (QTPL) dataset: Contains 6,773 images, split 9:1 for training and testing.

Key Insights and Ideas

  • Hybridization is Key: The core insight is that combining the strengths of CNNs (local detail) and Transformers (global context) is crucial for accurate lake extraction, outperforming methods that rely solely on one architecture.
  • Efficient Transformer Design: The paper demonstrates that a carefully designed lightweight Transformer encoder, incorporating techniques like Overlapped Patch Merging and implicit positional encoding, can achieve strong performance without the prohibitive computational cost of standard Transformers.
  • Attention for Scale: The MSCA module's use of dilated convolutions and CBAM is effective in capturing multi-scale features, which is vital for lakes of varying sizes and shapes.
  • Fusion for Precision: The Cross-Encoder Fusion module is critical for effectively merging local and global information, leading to sharper segmentation boundaries.

Key Results

LEFormer achieves state-of-the-art performance on both the SW and QTPL datasets:

  • Accuracy: It reaches 90.86% mIoU on the SW dataset and 97.42% mIoU on the QTPL dataset.
  • Efficiency: LEFormer is remarkably lightweight, with only 3.61 million parameters and 1.27 Giga Flops (G). This makes it approximately 20 times smaller than the previous best lake extraction method (MSNANet) and significantly faster.
  • Ablation Studies: The studies show that using one Pooling Transformer Layer (PTL) along with three Efficient Transformer Layers (ETLs) provides the best balance of accuracy and efficiency. They also confirm the individual contributions of the CNN encoder (CE), Transformer encoder (TE), and the MSCA mechanism.

Limitations and Future Work

  • PTL Usage: While PTLs contribute to efficiency, excessive use can lead to reduced accuracy, suggesting a need for careful tuning of the encoder composition.
  • Future Work: The authors hope that LEFormer will inspire the development of more efficient hybrid CNN-Transformer architectures for various remote sensing tasks. The source code is publicly available, encouraging further research and application.

Summary updated

BibTeX
@inproceedings{chen2024leformer,
  author = {Ben Chen and Xuechao Zou and Yu Zhang and Jiayu Li and Kai Li and Junliang Xing and Pin Tao},
  title = {{LEFormer: A Hybrid CNN-Transformer Architecture for Accurate Lake Extraction from Remote Sensing Imagery}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10446785},
}
Figure