Abstract: Deep learning techniques have provided significant improvements in hyperspectral image (HSI) classification. The current deep learning-based HSI classifiers follow a patch-based learning framework by dividing the image into overlapping patches. As such, these methods are local learning methods, which have a high computational cost. In this article, a fast patch-free global learning (FPGA) framework is proposed for HSI classification. The proposed framework consists of three main parts: 1) a designed sampling strategy; 2) an encoder-decoder-based fully convolutional network (FCN); and 3) lateral connections between the encoder and decoder. In FPGA, an encoder-decoder-based FCN is utilized to consider the global spatial information by processing the whole image, which results in fast inference. However, it is difficult to directly utilize the encoder-decoder-based FCN for HSI classification as it always fails to converge due to the insufficiently diverse gradients caused by the limited training samples. To solve the divergence problem and maintain the FCNs abilities of fast inference and global spatial information mining, a global stochastic stratified (GS²) sampling strategy is first proposed by transforming all the training samples into a stochastic sequence of stratified samples. This strategy can obtain diverse gradients to guarantee the convergence of the FCN in the FPGA framework. For a better design of FCN architecture, FreeNet, which is a fully end-to-end network for HSI classification, is proposed to maximize the exploitation of the global spatial information and boost the performance via a spectral attention-based encoder and a lightweight decoder. A lateral connection module is also designed to connect the encoder and decoder, fusing the spatial details in the encoder and the semantic features in the decoder. The experimental results obtained using three public benchmark data sets suggest that the FPGA framework is superior to the patch-based framework in both speed and accuracy for HSI classification.
Introduction: Moving Beyond Patch-Based Learning
Hyperspectral image (HSI) classification is a critical task in remote sensing, providing detailed spectral information for land-cover analysis. Traditionally, deep learning models have relied on patch-based local learning. This approach involves dividing an image into small, overlapping patches and classifying the central pixel of each. While effective, this method suffers from significant computational redundancy and a lack of global spatial context.
The proposed Fast Patch-free Global Learning (FPGA) framework addresses these limitations by processing the entire image at once. This "patch-free" approach eliminates redundant calculations and allows the model to leverage global spatial information, leading to both higher accuracy and dramatically faster inference.
The FPGA Framework
The FPGA framework integrates three core components to enable stable and efficient global learning: a novel sampling strategy, an optimized network architecture, and feature-fusing lateral connections.
Global Stochastic Stratified (GS²) Sampling
A major hurdle for Fully Convolutional Networks (FCNs) in HSI classification is the limited number of training samples, which often leads to poor convergence. The FPGA framework introduces the GS² sampling strategy. By transforming training samples into a stochastic sequence of stratified samples, GS² ensures diverse gradients during training. This simulates mini-batch behavior on a global scale, allowing the FCN to converge effectively even with sparse data.
FreeNet Architecture
At the heart of the FPGA framework is FreeNet, a fully end-to-end encoder-decoder network designed specifically for HSI data.
- Encoder with Spectral Attention: The encoder utilizes Spectral Attention modules to model the interdependencies between hundreds of spectral bands. This allows the network to prioritize the most informative spectral features for classification.
- Lightweight Decoder: To maintain high inference speeds, the decoder is designed to be lightweight, efficiently reconstructing the classification map from the encoded features.
- Lateral Connections (SSF): Semantic-Spatial Fusion (SSF) modules connect the encoder and decoder. These lateral connections fuse fine-grained spatial details from early layers with high-level semantic features from deeper layers, ensuring sharp boundaries and accurate classification.
Experimental Results
The FPGA framework was evaluated on three benchmark datasets: Pavia University, Salinas, and the University of Houston.
Speed and Efficiency
The most striking result is the gain in efficiency. The patch-free approach achieved an inference speedup of approximately 560x compared to traditional patch-based methods. On the University of Houston dataset, inference time was reduced from 84 seconds to just 0.146 seconds.
Classification Accuracy
FPGA consistently outperformed state-of-the-art patch-based models. It achieved an Overall Accuracy (OA) of 99.81% on Pavia University and 99.92% on Salinas. On the challenging University of Houston dataset, it reached 86.61% OA, surpassing competitors by roughly 2%. Visual results also demonstrated superior connectivity for linear features like roads, which are often fragmented in patch-based outputs.
Conclusion
The FPGA framework represents a significant shift in HSI classification, proving that global, patch-free learning is not only feasible but superior to local methods. By solving the convergence issues of FCNs through GS² sampling and optimizing the architecture with FreeNet, the authors provide a solution that is both highly accurate and fast enough for real-time applications. Future work will focus on memory optimization for deployment on resource-constrained platforms like satellites.
Summary updated