Multiscale Feature-Learning with a Unified Model for Hyperspectral Image Classification

Tahir Arshad, Junping Zhang, Inam Ullah, Yazeed Yasin Ghadi, Osama Alfarraj, Amr Gafar2023 · DOI

TL;DR

This paper introduces a novel "unified model" for hyperspectral image classification that effectively learns features across multiple scales. By combining the strengths of Swin Transformers, Convolutional Neural Networks (CNNs), and an Encoder-Decoder architecture, the model achieves state-of-the-art classification accuracy on benchmark datasets, outperforming existing methods.

What Problem Does This Paper Address?

Hyperspectral images (HSIs) contain rich spectral and spatial information, making them valuable for applications like agriculture, mineralogy, and Earth observation. However, accurately classifying these images is challenging due to the high dimensionality of spectral data and the complex interplay between spatial and spectral features. Traditional machine learning methods often struggle to capture these intricate relationships, while existing deep learning approaches can be computationally expensive or fail to effectively extract features at various scales. This paper aims to bridge this gap by developing a unified model that synergistically leverages different feature extraction mechanisms to capture multiscale spectral and spatial information for improved HSI classification.

Methods

The proposed model employs a three-branch architecture, each specializing in extracting features at different levels:

  • Swin Transformer Branch: This branch leverages the Swin Transformer's ability to capture long-range dependencies and structural features across different scales. It uses a shifted window self-attention mechanism, which is more computationally efficient than global self-attention.
  • Convolutional Neural Network (CNN) Branch: This branch focuses on extracting localized, multiscale spatial and spectral features. It utilizes standard CNN blocks, including convolutional layers, max-pooling, batch normalization, and ReLU activation.
  • Encoder-Decoder Branch: This branch is designed for unsupervised feature learning and reconstruction. It employs a fully connected encoder-decoder with a band attention module (BAM) to reconstruct spectral features, aiming to capture intricate spectral patterns.

Crucially, the paper introduces a weight fusion strategy to combine the features extracted from these three branches. Instead of simple concatenation or addition, this method assigns different importance weights to each branch's features, allowing the model to emphasize more relevant information and reduce computational costs. Finally, a multilayer perceptron (MLP) classifier is used to make the final classification decision.

Datasets

The proposed model was evaluated on three widely used hyperspectral image datasets:

  • Xuzhou Dataset: Acquired over a peri-urban site with a spatial resolution of 0.73 m/pixel, containing 436 spectral bands.
  • WHU-Hi-LongKou Dataset: Acquired in Longkou Town, China, with a spatial resolution of approximately 0.463 m and 270 spectral bands. This dataset is used for fine crop classification.
  • Salinas Dataset: Acquired by an AVIRIS sensor with a spatial resolution of 3.7 m, comprising 204 spectral bands after excluding water absorption bands.

Key Insights and Ideas

  • Synergistic Feature Extraction: The core idea is that no single model excels at all aspects of feature extraction. By combining Swin Transformers (for global context and structure), CNNs (for local spatial details), and an Encoder-Decoder (for spectral reconstruction), the model captures a more comprehensive representation of HSI data.
  • Intelligent Feature Fusion: The proposed weight fusion strategy is a significant contribution. It moves beyond simple feature concatenation, allowing the model to dynamically assign importance to features from different branches, leading to more refined and effective feature integration. This is particularly important for managing the high dimensionality of HSI data.
  • Efficiency and Effectiveness: The Swin Transformer's shifted window mechanism contributes to computational efficiency, while the overall unified model demonstrates superior performance, suggesting a good balance between complexity and accuracy.
  • Robustness to Small Training Samples: The paper highlights that the proposed model achieves satisfactory classification results even with a small number of training samples, which is a common challenge in HSI classification due to the difficulty and cost of acquiring labeled data.

Key Results

The proposed model achieved state-of-the-art results on all three datasets. Specifically:

  • On the Xuzhou dataset, the model achieved an overall accuracy (OA) of 96.87% with only 1% training samples, outperforming existing methods.
  • On the Salinas dataset, the model achieved an OA of 98.48%.
  • On the LK dataset (WHU-Hi-LongKou), the model achieved an OA of 98.62%.

The paper also presents detailed classification results for each class and visualizes classification maps, demonstrating that the proposed model produces cleaner and more accurate maps with less noise compared to other methods.

Limitations and Future Work

  • Computational Cost: While the Swin Transformer is more efficient than standard transformers, deep learning models for HSI classification can still be computationally intensive. The paper mentions that increasing deep model layers can achieve higher accuracy, but this comes with increased computational complexity.
  • Further Exploration of Architectures: The authors suggest exploring lighter architectures with fewer parameters for future work, aiming to further improve efficiency and potentially reduce the need for extensive training data.
  • Generalization: While tested on three benchmark datasets, further evaluation on a wider variety of HSI datasets with different characteristics would be beneficial to assess the model's generalizability.

Summary updated

BibTeX
@misc{arshad2023multiscale,
  author = {Tahir Arshad and Junping Zhang and Inam Ullah and Yazeed Yasin Ghadi and Osama Alfarraj and Amr Gafar},
  title = {{Multiscale Feature-Learning with a Unified Model for Hyperspectral Image Classification}},
  year = {2023},
  doi = {10.3390/s23177628},
}
Figure