Spectral-Spatial Masked Transformer With Supervised and Contrastive Learning for Hyperspectral Image Classification

被引:44
|
作者
Huang, Lingbo [1 ]
Chen, Yushi [1 ]
He, Xin [1 ]
机构
[1] Harbin Inst Technol, Sch Elect & Informat Engn, Harbin 150001, Peoples R China
来源
IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING | 2023年 / 61卷
关键词
Feature extraction; Transformers; Task analysis; Training; Image reconstruction; Convolutional neural networks; Kernel; Contrastive learning (CL); deep learning; hyperspectral image (HSI) classification; pretraining; Transformer; CONVOLUTIONAL NEURAL-NETWORK; DEEP;
D O I
10.1109/TGRS.2023.3264235
中图分类号
P3 [地球物理学]; P59 [地球化学];
学科分类号
0708 ; 070902 ;
摘要
Recently, due to the powerful capability at modeling the long-range relationships, Transformer-based methods have been widely explored in many research areas, including hyperspectral image (HSI) classification. However, because of lots of trainable parameters and the lack of inductive bias, it is difficult to train a Transformer-based HSI classifier, especially when the number of training samples is limited. To address this issue, in this study, spectral-spatial masked Transformer (SS-MTr) is explored for HSI classification, which uses a two-stage training strategy. In the first stage, SS-MTr pretrains a vanilla Transformer via reconstruction from masked HSI inputs, which embeds the local inductive bias into the Transformer. In the second stage, the well pretrained Transformer is cooperated with a fully connected layer and is then fine-tuned for the HSI classification. Furthermore, in order to incorporate discriminative feature learning into the SS-MTr, three SS-MTr-based methods, including contrastive SS-MTr (C-SS-MTr), supervised SS-MTr (S-SS-MTr), and supervised C-SS-MTr (SC-SS-MTr), are proposed by adding extra branches for specific tasks in parallel with the existing reconstruction task. Specifically, the proposed C-SS-MTr adds a contrastive loss, which brings instance discriminability. Besides, the proposed S-SS-MTr builds an extra classification branch for embracing interclass discriminability and intraclass similarity. Moreover, the proposed SC-SS-MTr combines C-SS-MTr and S-SS-MTr for better generalization. The proposed SS-MTr, C-SS-MTr, S-SS-MTr, and SC-SS-MTr are tested on three popular hyperspectral datasets (i.e., Indian Pines, Pavia University, and Houston). The obtained results reveal that the proposed models achieve competitive results compared with the state-of-the-art HSI classification methods. The code is available at https://github.com/mengduanjinghua/SS-MTr.
引用
收藏
页数:18
相关论文
共 50 条
  • [1] Spectral-Spatial Blockwise Masked Transformer With Contrastive Multi-View Learning for Hyperspectral Image Classification
    Hu, Han
    Liu, Zhenhui
    Xu, Ziqing
    Wang, Haoyi
    Li, Xianju
    Han, Xu
    Peng, Jianyi
    PATTERN RECOGNITION AND COMPUTER VISION, PRCV 2024, PT IV, 2025, 15034 : 480 - 494
  • [2] Masked Auto-Encoding Spectral-Spatial Transformer for Hyperspectral Image Classification
    Ibanez, Damian
    Fernandez-Beltran, Ruben
    Pla, Filiberto
    Yokoya, Naoto
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2022, 60
  • [3] Interactive Spectral-Spatial Transformer for Hyperspectral Image Classification
    Song, Liangliang
    Feng, Zhixi
    Yang, Shuyuan
    Zhang, Xinyu
    Jiao, Licheng
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, 2024, 34 (09) : 8589 - 8601
  • [4] Masked Spectral-Spatial Feature Prediction for Hyperspectral Image Classification
    Zhou, Feng
    Xu, Chao
    Yang, Guowei
    Hang, Renlong
    Liu, Qingshan
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2024, 62 : 1 - 13
  • [5] Spectral-Spatial Morphological Attention Transformer for Hyperspectral Image Classification
    Roy, Swalpa Kumar
    Deria, Ankur
    Shah, Chiranjibi
    Haut, Juan M.
    Du, Qian
    Plaza, Antonio
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2023, 61
  • [6] A Spectral-Spatial Fusion Transformer Network for Hyperspectral Image Classification
    Liao, Diling
    Shi, Cuiping
    Wang, Liguo
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2023, 61
  • [7] Spectral-Spatial Morphological Attention Transformer for Hyperspectral Image Classification
    Roy, Swalpa Kumar
    Deria, Ankur
    Shah, Chiranjibi
    Haut, Juan M.
    Du, Qian
    Plaza, Antonio
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2023, 61
  • [8] MultiScale spectral-spatial convolutional transformer for hyperspectral image classification
    Gong, Zhiqiang
    Zhou, Xian
    Yao, Wen
    IET IMAGE PROCESSING, 2024, 18 (13) : 4328 - 4340
  • [9] WaveFormer: Spectral-Spatial Wavelet Transformer for Hyperspectral Image Classification
    Ahmad, Muhammad
    Ghous, Usman
    Usama, Muhammad
    Mazzara, Manuel
    IEEE GEOSCIENCE AND REMOTE SENSING LETTERS, 2024, 21 : 1 - 5
  • [10] MSMT-LCL: Multiscale Spatial-Spectral Masked Transformer With Local Contrastive Learning for Hyperspectral Image Classification
    Zhou, Yunfei
    Huang, Xiaohui
    Yang, Xiaofei
    Peng, Jiangtao
    Ban, Yifang
    Jiang, Nan
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2024, 62