| Issue |
J. Eur. Opt. Society-Rapid Publ.
Volume 21, Number 2, 2025
|
|
|---|---|---|
| Article Number | 43 | |
| Number of page(s) | 13 | |
| DOI | https://doi.org/10.1051/jeos/2025038 | |
| Published online | 26 September 2025 | |
Research Article
Dual-window transformer framework with pyramid structure and constrained self-attention for hyperspectral anomaly detection
Shijiazhuang Campus, Army Engineering University of PLA, Shijiazhuang, Hebei 050000, PR China
* Corresponding author: This email address is being protected from spambots. You need JavaScript enabled to view it.
Received:
15
July
2025
Accepted:
3
September
2025
Abstract
Hyperspectral anomaly detection (HAD) is widely used in various fields including military, agriculture, mining, and food safety inspection. However, the absence of prior information on targets poses significant challenges to feature extraction and anomaly identification. To address this issue, this paper proposes a novel dual-window transformer framework integrated with a pyramid structure and constrained self-attention mechanism, which effectively leverages both local and global spectral information for anomaly detection. The dual-window transformer is designed to extract deep spectral features by capturing discriminative patterns between central pixels and their surrounding background. Simultaneously, the constrained self-attention module incorporates global contextual information into the feature representation. Furthermore, a stepwise downsampling pyramid architecture is introduced to reduce the sensitivity of the model to dual-window size selection while facilitating the propagation of global information from higher to lower layers. Extensive hyperparameter analysis and comparative experiments demonstrate the robustness and superiority of the proposed framework. The source code is publicly available at: https://github.com/aosilu/DWT-P-CSA-HAD.
Key words: Anomaly detection / Transformer / Pyramid structure / Hyperspectral image
© The Author(s), published by EDP Sciences, 2025
This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.
