Seeing Beyond the Patch: Scale-Adaptive Semantic Segmentation of High-resolution Remote Sensing Imagery based on Reinforcement Learning

Yinhe Liu, Sunan Shi, Junjue Wang, Yanfei Zhong

Abstract

High-resolution remote sensing (HSR) imagery presents significant challenges for semantic segmentation due to its massive scale and the need for broad contextual information. Traditional patch-based methods often suffer from semantic inconsistencies and "grid effects" because they lack global context. We present GeoAgent, a reinforcement learning-based framework that dynamically selects the optimal context scale for each image patch. By treating scale selection as a Markov Decision Process, GeoAgent adaptively "zooms out" to resolve ambiguities, significantly improving accuracy and visual coherence across diverse land-cover datasets.

Introduction: The Context Gap in Remote Sensing

Processing high-resolution satellite imagery typically requires a sliding window approach, where large images are broken into smaller patches (e.g., 512x512 pixels) to fit within memory constraints. However, this local-only view often leads to misclassification. For instance, a small patch of water might be indistinguishable between a river and a lake without seeing the surrounding landscape. This lack of context results in "semantic inconsistency"—where a single geographic feature is fragmented into different classes—and visible "grid effects" at patch boundaries.

Comparison between conventional local patch-based pipelines and the proposed GeoAgent framework.

While some methods attempt to incorporate global context, they often use a fixed scale that doesn't account for the varying sizes of geographic objects. A small building requires different contextual information than a winding river. GeoAgent addresses this by allowing the model to adaptively "look outside" its current processing window.

Methodology: GeoAgent and Reinforcement Learning

The core of our approach is GeoAgent, which models scale selection as a decision-making process governed by Deep Reinforcement Learning (DRL).

The Scale Control Agent (SCA)

The SCA uses an Advantage Actor-Critic (A2C) architecture to determine the optimal "zoom" level for a given patch. It observes a "state" consisting of a global thumbnail of the entire image and a position mask. Based on this, it selects an "action"—the specific scale factor to use for gathering context.

Architecture Overview

The system consists of several integrated modules:

  1. Feature Indexing Module: This module helps the agent focus on relevant surroundings by masking irrelevant global features based on the current patch's location, providing essential spatial intuition.
  2. Dual-Branch Segmentation Network: Once a scale is chosen, the data is processed through two branches:
  3. Local Branch: Extracts fine-grained details from the high-resolution patch.
  4. Context Branch: Processes a larger area at the agent-selected scale to provide the "big picture."
  5. Reward System: The agent is trained to maximize accuracy gains. It receives a positive reward when its scale choice leads to better segmentation compared to a baseline local-only model.
Mapping workflow of GeoAgent modeled as a Markov Decision Process, highlighting the Scale Control Agent and Multi-scale Segmentation Network.

Experimental Evaluation

We evaluated GeoAgent on three major benchmarks: the Gaofen Image Dataset (GID), the Five-Billion-Pixels (FBP) dataset, and a newly introduced Wuhan Urban Semantic Understanding (WUSU) dataset. The WUSU dataset provides 1-meter resolution imagery, focusing on complex urban features like building heights and excavation sites.

Key Results

GeoAgent demonstrated significant performance gains over state-of-the-art models:

  • Quantitative Improvements: On the WUSU dataset, GeoAgent improved Mean Intersection over Union (mIoU) by 11% to 16% compared to standard patch-based models like UNet and DeepLabv3+.
  • Adaptive vs. Fixed Context: GeoAgent consistently outperformed "Global-Local" models (e.g., GLNet, WiCoNet) that use a fixed global context, proving that adaptive scale selection is superior to static approaches.
  • Visual Coherence: Qualitatively, GeoAgent eliminates the "grid effect" and produces logically consistent results for large-scale features like rivers and forests, identifying them as continuous structures rather than a patchwork of different classes.

Conclusion

GeoAgent represents a shift from static to adaptive context in remote sensing. By leveraging reinforcement learning, the model learns that "context is not one size fits all." Large natural features trigger a "zoom out" action, while smaller artificial structures maintain a local focus. This spatial intuition allows for cleaner, more accurate land-cover mapping. Future work will explore integrating Transformer backbones and applying this framework to other sensor types like SAR or hyperspectral imagery.

Summary updated

BibTeX
@inproceedings{liu2023seeing,
  author = {Yinhe Liu and Sunan Shi and Junjue Wang and Yanfei Zhong},
  title = {{Seeing Beyond the Patch: Scale-Adaptive Semantic Segmentation of High-resolution Remote Sensing Imagery based on Reinforcement Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure