ChangeMamba: Remote Sensing Change Detection With Spatiotemporal State Space Model

Hongruixuan Chen, Jian Song, Chengxi Han, Junshi Xia, Naoto YokoyaarXiv 2024 · DOI

Change detection (CD) is a cornerstone of remote sensing, essential for everything from urban planning to disaster response. However, researchers have long faced a trade-off: use Convolutional Neural Networks (CNNs), which are efficient but have a "limited receptive field" (they can't see the big picture), or use Transformers, which capture global context but are computationally "heavy" due to their quadratic complexity ($O(N^2)$).

In their paper, "ChangeMamba: Remote Sensing Change Detection With Spatiotemporal State Space Model," Chen et al. introduce a third way. By leveraging the emerging Mamba architecture, they've created a framework that offers the global reach of Transformers with the linear efficiency ($O(N)$) of CNNs.

TL;DR

ChangeMamba is the first framework to apply the efficient Mamba (State Space Model) architecture to remote sensing change detection. It achieves state-of-the-art accuracy across binary, semantic, and damage assessment tasks while being significantly more computationally efficient and robust to image degradation than previous methods.

What Problem Does This Paper Address?

The core challenge in change detection is accurately identifying "where" and "what" changed between two images taken at different times. High-resolution satellite imagery contains complex spatial relationships. CNNs often miss these because they only look at small local neighborhoods of pixels. Transformers solve this by looking at every pixel simultaneously (self-attention), but this becomes incredibly slow and memory-intensive as image resolution increases.

The authors sought an architecture that could model global spatial-temporal relationships without the massive computational overhead of Transformers.

Methods

The authors proposed ChangeMamba, which includes three specialized variants: MambaBCD (Binary CD), MambaSCD (Semantic CD), and MambaBDA (Building Damage Assessment).

Fig. 1: The network framework of the proposed (a) MambaBCD for binary change detection, (b) MambaSCD for semantic change detection, and (c) MamabaBDA for building damage assessment. The specific structure of the encoder and decoder is shown in Figs. 2, 4 and 6.

The framework's "secret sauce" lies in two main components:

  1. Visual Mamba Encoder: Standard Mamba models are designed for 1D sequences (like text). To handle 2D images, the authors used a Cross-Scan Module (CSM). This module "unfolds" image patches into 1D sequences in four different directions, ensuring every pixel can "see" every other pixel in a single pass with linear complexity.
  2. Spatio-Temporal Relationship Modeling: The authors designed three mechanisms to fuse features from different time periods: Sequential (stacking time-1 and time-2 tokens), Cross (interleaving them), and Parallel (concatenating them). These are integrated into a novel Spatio-Temporal State Space (STSS) block in the decoder.

Datasets

The models were rigorously tested on five benchmark datasets:

  • SYSU-CD: 20,000 pairs for general binary change detection.
  • LEVIR-CD+ & WHU-CD: Focused specifically on building-related changes.
  • SECOND: A semantic change detection dataset with six land cover classes.
  • xBD: A massive dataset for building damage assessment across 15 countries and various disaster types.

Key Insights and Ideas

  • Linear Efficiency is Real: The most significant "aha moment" is that Mamba's linear scaling doesn't sacrifice accuracy. It provides a viable path for processing ultra-high-resolution imagery that would choke a standard Transformer.
  • Scanning for Time: The paper demonstrates that how you "scan" temporal data matters. By interleaving and sequencing tokens from different times within the Mamba framework, the model learns the relationship between time periods more effectively than simple feature subtraction.
  • Inherent Robustness: Mamba-based models proved surprisingly resilient to "degraded" data. While CNNs often fail when images are blurry or noisy, ChangeMamba maintained high performance, suggesting it learns more robust, high-level structural features.
The Cross-Scan mechanism (b) allows for global context modeling with O(N) complexity, a major efficiency gain over self-attention (a).

Key Results

  • New SOTA: ChangeMamba outperformed leading CNN and Transformer models across all five datasets. On the SYSU-CD dataset, MambaBCD-Base achieved an F1 score of 83.11%, beating the best Transformer competitor.
  • Lower Overhead: MambaBCD-Tiny uses roughly 57% fewer GFLOPs than the popular BIT-18 Transformer model while delivering superior accuracy.
  • Resilience: When tested against Gaussian blur, MambaBCD's performance dropped by only ~8.7%, whereas some CNN-based models saw their accuracy plummet by nearly 60%.

Limitations and Future Work

The authors note that Building Damage Assessment (BDA) remains the toughest nut to crack. Distinguishing "minor" from "major" damage is difficult because the visual cues are often too subtle for even advanced models to catch reliably from overhead imagery alone.

Future directions include tailoring Mamba architectures specifically for the multi-scale nature of remote sensing and exploring the potential of Mamba-based "foundation models" that can be pre-trained on massive unlabeled satellite datasets.

Summary updated

BibTeX
@misc{chen2024changemamba,
  author = {Hongruixuan Chen and Jian Song and Chengxi Han and Junshi Xia and Naoto Yokoya},
  title = {{ChangeMamba: Remote Sensing Change Detection With Spatiotemporal State Space Model}},
  year = {2024},
  eprint = {2404.03425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.03425},
}
Figure