Abstract
Deep learning techniques have been widely applied to hyperspectral image (HSI) classification and have achieved great success. However, the deep neural network model has a large parameter space and requires a large number of labeled data. Deep learning methods for HSI classification usually follow a patchwise learning framework. Recently, a fast patch-free global learning (FPGA) architecture was proposed for HSI classification according to global spatial context information. However, FPGA has difficulty extracting the most discriminative features when the sample data is imbalanced. In this paper, a spectral-spatial dependent global learning (SSDGL) framework based on global convolutional long short-term memory (GCL) and global joint attention mechanism (GJAM) is proposed for insufficient and imbalanced HSI classification. In SSDGL, the hierarchically balanced (H-B) sampling strategy and the weighted softmax loss are proposed to address the imbalanced sample problem. To effectively distinguish similar spectral characteristics of land cover types, the GCL module is introduced to extract the long short-term dependency of spectral features. To learn the most discriminative feature representations, the GJAM module is proposed to extract attention areas. The experimental results obtained with three public HSI datasets show that the SSDGL has powerful performance in insufficient and imbalanced sample problems and is superior to other state-of-the-art methods.
1. Introduction
Hyperspectral images (HSI) provide a rich "fingerprint" for land cover through hundreds of narrow spectral bands. Despite this potential, HSI classification faces three major hurdles: the Hughes Phenomenon (high dimensionality vs. limited labels), computational redundancy from traditional patch-based sliding window methods, and severe class imbalance in real-world datasets.
To overcome these, we introduce the Spectral-Spatial Dependent Global Learning (SSDGL) framework. SSDGL moves beyond redundant patch-based methods to a fast, patch-free architecture that processes the entire image at once, capturing global spatial context and long-range spectral dependencies simultaneously.
2. Methodology
The SSDGL framework is built on an encoder-decoder architecture that treats the entire image as a single input. This approach eliminates the overlapping calculations inherent in patch-based methods and allows the network to learn from the global spatial context, which is vital for identifying large-scale structures like roads or agricultural fields.
2.1 Global Convolutional LSTM and Attention (GCLAM)
The core innovation of SSDGL is the Global Convolutional LSTM and Attention Mechanism (GCLAM). This module is designed to extract the most discriminative features by focusing on both spectral and spatial dimensions.
- Global Convolutional LSTM (GCL): Unlike standard LSTMs, GCL uses convolutional kernels within its gated units. It treats spectral bands as a sequence, extracting long-range spectral dependencies while preserving spatial relationships across the whole image.
- Global Joint Attention Mechanism (GJAM): This module consists of Spectral Attention, which learns informative bands, and Spatial Attention, which focuses the model on key regions and structures within the image.
2.2 Hierarchically Balanced Sampling
To address the "long-tailed" distribution of HSI datasets, where some classes have thousands of samples and others fewer than twenty, SSDGL employs a Hierarchically Balanced (H-B) sampling strategy. This ensures rare classes are represented in every training batch. This is paired with a weighted softmax loss that penalizes errors on "hard-to-classify" samples more heavily, preventing bias toward majority classes.
3. Experimental Results
The framework was evaluated on three standard HSI benchmarks: Indian Pines, Pavia University, and Houston University.
3.1 Performance and Efficiency
SSDGL outperformed state-of-the-art methods across all datasets, particularly in small-sample scenarios:
- Indian Pines: Achieved an Overall Accuracy (OA) of 99.63%, a significant improvement over previous global methods like FPGA (96.18%).
- Pavia University: Reached 99.97% OA using only 1% of labeled samples for training.
- Houston University: Achieved 95.36% OA, outperforming CNN-based methods by 10–20% when limited to only 10 samples per class.
- Inference Speed: Due to its patch-free design, the model is approximately 100 times faster during inference than traditional patch-based CNNs.
4. Conclusion
The SSDGL framework effectively addresses the challenges of insufficient and imbalanced HSI classification. By leveraging global context and spectral-spatial dependencies through GCLAM, it achieves high accuracy and efficiency. While the training phase is more complex than simpler architectures, the resulting classification maps show smoother regions and cleaner boundaries, demonstrating the power of global learning in remote sensing.
Summary updated