Edge-guided and Class-balanced Active Learning for Semantic Segmentation of Aerial Images

Lianlei Shan, Weiqiang Wang, Ke Lv, Bin LuoarXiv 2024

Abstract

Semantic segmentation requires pixel-level annotation, which is time-consuming. Active Learning (AL) is a promising method for reducing data annotation costs. Due to the gap between aerial and natural images, the previous AL methods are not ideal, mainly caused by unreasonable labeling units and the neglect of class imbalance. Previous labeling units are based on images or regions, which does not consider the characteristics of segmentation tasks and aerial images, i.e., the segmentation network often makes mistakes in the edge region, and the edge of aerial images is often interlaced and irregular. Therefore, an edge-guided labeling unit is proposed and supplemented as the new unit. On the other hand, the class imbalance is severe, manifested in two aspects: the aerial image is seriously imbalanced, and the AL strategy does not fully consider the class balance. Both seriously affect the performance of AL in aerial images. We comprehensively ensure class balance from all steps that may occur imbalance, including initial labeled data, subsequent labeled data, and pseudo-labels. Through the two improvements, our method achieves more than 11.2% gains compared to state-of-the-art methods on three benchmark datasets, Deepglobe, Potsdam, and Vaihingen, and more than 18.6% gains compared to the baseline. Sufficient ablation studies show that every module is indispensable. Furthermore, we establish a fair and strong benchmark for future research on AL for aerial image segmentation.

Introduction

Semantic segmentation—the task of assigning a category to every single pixel in an image—is essential for analyzing aerial imagery, such as identifying forests, roads, or urban sprawl. However, creating these pixel-level labels is incredibly expensive and slow. Active Learning (AL) offers a solution by selecting the most informative samples for labeling. Yet, standard AL methods struggle with aerial imagery due to inefficient labeling units and severe class imbalance. Aerial objects have complex, interlaced boundaries, and datasets are often naturally skewed (e.g., vast agricultural areas vs. sparse water bodies).

Proposed Methodology

The proposed framework addresses these challenges through two primary innovations: edge-guided labeling and comprehensive class balancing.

Edge-guided Labeling Units

Segmentation errors typically cluster around object boundaries. By using edge detection to identify these high-uncertainty zones and "dilating" them, the authors create labeling units that capture the most difficult transitions between classes. This ensures that human annotators focus on the most informative pixels rather than redundant "easy" regions.

Visualization of segmentation errors and uncertainty score maps highlighting the importance of edge regions.

Comprehensive Class Balancing

Balance is maintained throughout the AL cycle:

  • Initial Data: CLIP (Contrastive Language-Image Pre-training) ensures the starting batch is class-balanced.
  • Acquisition Strategy: A "performance-based balance" prioritizes regions with classes where the model currently has low Intersection over Union (IoU).
  • Pseudo-labeling: Adaptive, class-specific thresholds are used for self-training to prevent rare classes from being filtered out.
  • Feature Extraction: Supervised Contrastive Learning improves the separation of categories in the feature space.

Experimental Results

The method was evaluated on three major benchmarks: Deepglobe, Potsdam, and Vaihingen. The researchers established a fair benchmark by re-implementing state-of-the-art (SOTA) methods like RALIS, SpAL, and CBAL within a consistent regional-level framework.

Quantitative Performance

On the Deepglobe dataset, the proposed method achieved a 62.1% mIoU, representing an 18.6% improvement over the baseline and an 11.2% gain over the next best SOTA method (SpAL). Notably, the model achieved competitive performance using only 20% of the total labeled data.

Comparison of IoU across different land cover classes for various active learning methods.

Key Insights

  • The "Edge" Advantage: Focusing on boundaries significantly accelerates learning. Ablation studies showed that removing edge-guided units dropped performance by 3.2%.
  • Breaking the Bias Cycle: Using CLIP for the "cold start" and performance-based weighting prevents the model from repeatedly selecting common classes it is already proficient in.
  • Nuanced Self-Training: Lowering confidence bars for rare classes in pseudo-labeling allows the model to learn from them even during early training stages.

Conclusion

This research demonstrates that tailoring Active Learning to the specific characteristics of aerial imagery—namely irregular edges and class imbalance—yields substantial performance gains. While the current system relies on manual thresholds for edge detection and introduces some computational overhead, it significantly reduces the human effort required for high-quality semantic segmentation. Future work will explore automating threshold sensitivity and applying these techniques to other domains like medical imaging.

Summary updated

BibTeX
@misc{shan2024edge,
  author = {Lianlei Shan and Weiqiang Wang and Ke Lv and Bin Luo},
  title = {{Edge-guided and Class-balanced Active Learning for Semantic Segmentation of Aerial Images}},
  year = {2024},
  eprint = {2405.18078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.18078},
}
Figure