Abstract
Few-shot learning (FSL) has rapidly advanced in the hyperspectral image (HSI) classification, potentially reducing the need for laborious and expensive labeled data collection. Due to the limited receptive field, the convolutional neural network (CNN) struggles to capture long-range dependencies for extracting global features. Additionally, the transformer focuses on global correlation while overlooking the effective representation of local spatial and spectral features. Moreover, contrastive learning has emerged as a powerful technique for improving consistency across different augmented views of samples of the same category. To this end, we devise a novel CNN-Transformer network for few-shot HSI classification with semisupervised contrastive learning (CTF-SSCL) to boost the classification performance. Specifically, the cascaded CNN-Transformer incorporates a lightweight spatial-spectral interactive convolution module (LSSICM) and a multi-scale transformer (MSFormer) to exploit local features from submaps and global information from the entire patch. Subsequently, the semisupervised contrastive loss, comprising unsupervised and supervised components, serves as an auxiliary to optimize the model with the classification loss. Wherein, recognizing the unified spectral-spatial information in HSI, we propose a spectral feature shift strategy (SFSS) to create sample pairs for the unsupervised contrastive learning, utilizing unsupervised contrastive loss among groups of samples with identical labels. Extensive experiments on four standard benchmarks demonstrate the effectiveness of the proposed CTF-SSCL with varying amounts of labeled samples. The code will be available online at https://github.com/B-Xi/CTF-SSCL.
Funding Information
  • National Nature Science Foundation of China (62401434, 62371359)
  • China Postdoctoral Science Foundation (2023M732742)
  • Natural Science Basic Research Plan in Shaanxi Province of China (2024JC-YBQN-0641)
  • Basic and Applied Basic Research Foundation of Guangdong Province (2023A1515110504)
  • Shaanxi Province Postdoctoral Science Foundation (2023BSHYDZZ97)
  • Youth Open Project of National Space Science Data Center (NSSDC2302004)
  • Fundamental Research Funds for the Central Universities (XJSJ23086)
  • Youth Innovation Team of Shaanxi Universities

This publication has 59 references indexed in Scilit: