Skip to content

B-Xi/TIP_2025_HyperCASR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperCASR: Spectral-spatial Open-Set Recognition With Category-Aware Semantic Reconstruction for Hyperspectral Imagery, TIP, 2025.

Bobo Xi, Wenjie Zhang, Jiaojiao Li, Rui Song, and Yunsong Li.


Code for the paper: HyperCASR: Spectral-spatial Open-Set Recognition With Category-Aware Semantic Reconstruction for Hyperspectral Imagery.

Fig. 1: The architecture of the proposed HyperCASR for HSI OSR.

Abstract

Open-set recognition (OSR) in hyperspectral imagery (HSI) focuses on accurately classifying known classes while effectively rejecting unknown negative samples. Most existing reconstruction-based approaches are susceptible to noise interference in the input images, and known classes can easily lead to inter-class confusion during the reconstruction process. Moreover, effectively utilizing the abundant spectral-spatial information in HSI within an open-set context presents significant challenges. To address these issues, we propose HyperCASR, an innovative framework for HSI OSR that integrates a grouped spectral-spatial retentive transformer (GSSRT) and a class-aware semantic reconstruction (CASR) module. This method begins by designing the GSSRT to extract features from HSI, enhancing the extraction capability of spatial-spectral information by introducing a grouped pixel embedding (GPE) module and a novel spatial retentive attention (SRA) mechanism. Subsequently, an independent autoencoder (AE) is assigned to each known class to reconstruct semantic features, which helps to mitigate noise interference and inter-class confusion. Additionally, by minimizing reconstruction errors to estimate class affiliation, the framework effectively identifies unknown classes. Experimental results across three benchmark datasets indicate that the HyperCASR framework significantly enhances classification performance for both known and unknown classes when compared to existing state-of-the-art methods. The code is available at https://github.com/B-Xi/TIP_2025_HyperCASR.

Training and Test Process

  1. Please prepare the training and test data as operated in the paper.
  2. Run the 'main_UP.py' to reproduce the HyperCASR results on UP data set.

References

-- If you find this code helpful, please kindly cite:

[1] B. Xi, W. Zhang, J. Li, R. Song and Y. Li, "HyperCASR: Spectral-Spatial Open-Set Recognition With Category-Aware Semantic Reconstruction for Hyperspectral Imagery," in IEEE Transactions on Image Processing, vol. 34, pp. 7642-7655, 2025, doi: 10.1109/TIP.2025.3630327.

Citation Details

BibTeX entry:

@ARTICLE{TIP_2025_HyperCASR,
 author={Xi, Bobo and Zhang, Wenjie and Li, Jiaojiao and Song, Rui and Li, Yunsong},
  journal={IEEE Transactions on Image Processing}, 
  title={HyperCASR: Spectral-Spatial Open-Set Recognition With Category-Aware Semantic Reconstruction for Hyperspectral Imagery}, 
  year={2025},
  volume={34},
  number={},
  pages={7642-7655},
  doi={10.1109/TIP.2025.3630327}}

Licensing

Copyright (C) 2025 Bobo Xi, Wenjie Zhang

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.

About

HyperCASR: Spectral-spatial Open-Set Recognition With Category-Aware Semantic Reconstruction for Hyperspectral Imagery, TIP, 2025.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages