SAM-Based Building Change Detection with Distribution-Aware Fourier Adaptation and Edge-Constrained Warping

Yun-Cheng Li, Sen Lei, Yi-Tao Zhao, Heng-Chao Li, Jun Li +1 more
4/17/2025
13 citations
cs.CV

Official code: SUPERMAN123000/FAEWNet (12 stars, Python, Apache-2.0, last commit 2025-12-04).

Abstract

Building change detection remains challenging for urban development, disaster assessment, and military reconnaissance. While foundation models like Segment Anything Model (SAM) show strong segmentation capabilities, SAM is limited in the task of building change detection due to domain gap issues.

Show full abstract

Existing adapter-based fine-tuning approaches face challenges with imbalanced building distribution, resulting in poor detection of subtle changes and inaccurate edge extraction. Additionally, bi-temporal misalignment in change detection, typically addressed by optical flow, remains vulnerable to background noises. This affects the detection of building changes and compromises both detection accuracy and edge recognition. To tackle these challenges, we propose a new SAM-Based Network with Distribution-Aware Fourier Adaptation and Edge-Constrained Warping (FAEWNet) for building change detection. FAEWNet utilizes the SAM encoder to extract rich visual features from remote sensing images. To guide SAM in focusing on specific ground objects in remote sensing scenes, we propose a Distribution-Aware Fourier Aggregated Adapter to aggregate task-oriented changed information. This adapter not only effectively addresses the domain gap issue, but also pays attention to the distribution of changed buildings. Furthermore, to mitigate noise interference and misalignment in height offset estimation, we design a novel flow module that refines building edge extraction and enhances the perception of changed buildings. Our state-of-the-art results on the LEVIR-CD, S2Looking and WHU-CD datasets highlight the effectiveness of FAEWNet. The code is available at https://github.com/SUPERMAN123000/FAEWNet.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
120Python, ShellApr 3, 202512 months agoApache-2.0

Similar Papers

Cite this paper

@article{li2025sambased,
  title  = {SAM-Based Building Change Detection with Distribution-Aware Fourier Adaptation and Edge-Constrained Warping},
  author = {Yun-Cheng Li and Sen Lei and Yi-Tao Zhao and Heng-Chao Li and Jun Li and Antonio Plaza},
  year   = {2025},
  eprint = {2504.12619},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.12619v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.12619.svg)](https://codeofpaper.com/paper/2504.12619)

Discussion