S2TANet: SAM2-Based Spatiotemporal-Aware Network for Remote Sensing Change Detection
Abstract
In recent years, deep learning-based methods for remote sensing change detection (CD) have developed rapidly. However, radiometric differences between bitemporal images caused by seasonal or illumination variations often make changed regions difficult to detect accurately. Motivated by its multiscale segmentation-oriented feature representations, we introduce the frozen segment anything model 2 (SAM2) image encoder into the framework. Based on this encoder, we propose an SAM2-based spatiotemporal-aware (STA) CD network (S2TANet). S2TANet integrates two components: an STA adapter and a dynamic adaptive scanning change (DASC) decoder. The STA adapter extracts difference features from bitemporal images and enhances them through spatial attention. In a single forward pass, the attention-guided difference features are fed back into the bitemporal branches. This operation enhances feature consistency in unchanged regions while enlarging feature discrepancies in changed regions, thereby mitigating radiometric interference. The DASC decoder is composed of multiple DASC blocks. Each block employs a dynamic adaptive scanning mechanism. Specifically, an offset prediction network (OPN) predicts offsets for scanning reference points from local features. The predicted offsets displace the scanning reference points to locate patches of interest and adapt the scanning strategy. This content-dependent scanning enhances the detection of irregular changes under complex backgrounds. Extensive experiments on SYSU-CD, SECOND-CD, and LEVIR-CD show that S2TANet outperforms the strongest competing methods. The corresponding $F1$ -score gains are 1.87, 2.00, and 0.43 percentage points, respectively. Code is available at https://github.com/bitzyj/S2TANet