Efficient Deep Learning of Nonlocal Features for Hyperspectral Image Classification

Yu Shen, Sijie Zhu, Chen Chen, Qian Du, Liang Xiao, Delu Pan

TL;DR

This paper introduces ENL-FCN, a novel deep learning architecture for hyperspectral image classification that efficiently captures both local and long-range contextual information. By employing an "efficient non-local module" with a criss-cross attention mechanism and recurrent operations, ENL-FCN achieves state-of-the-art accuracy with significantly reduced computational cost and memory usage compared to previous non-local methods.

What Problem Does This Paper Address?

Hyperspectral Imaging (HSI) captures detailed spectral information across numerous bands, enabling pixel-wise classification to identify land cover types. While Convolutional Neural Networks (CNNs) excel at learning local spectral-spatial features, they struggle to incorporate the crucial long-range contextual information. Pixels in an HSI are not only related to their immediate neighbors but also to spatially distant pixels that might share the same land cover. Traditional methods for capturing this long-range context, like standard non-local neural networks, are computationally very expensive and memory-intensive, making them impractical for large HSI datasets. This paper aims to bridge this gap by proposing an efficient method to integrate long-range contextual information into deep learning models for HSI classification.

Methods

The proposed method, ENL-FCN, builds upon a Fully Convolutional Network (FCN) backbone for initial local spectral-spatial feature extraction. The core innovation lies in the integration of an efficient non-local module. Unlike traditional non-local modules that compute pairwise relationships between all pixels (leading to quadratic complexity), this efficient module utilizes a criss-cross attention mechanism. This mechanism aggregates contextual information by considering relationships along rows and columns, significantly reducing computational complexity.

Furthermore, a recurrent operation is applied to the efficient non-local module. This allows for iterative refinement of pixel responses, effectively capturing more comprehensive long-range dependencies. The module is designed to be plug-and-play, meaning it can be easily embedded within existing deep neural network architectures. The FCN backbone extracts local features, and then these efficient non-local modules are strategically placed (after the second convolutional layer) to enrich the feature representations with global context. Finally, features from the FCN and the non-local module are concatenated before further processing, combining both local and global insights.

Datasets

The proposed ENL-FCN was evaluated on three widely used hyperspectral image datasets:

  • Indian Pines (IP): Captured by AVIRIS, this dataset has 200 spectral bands and 16 land cover classes.
  • Pavia University (PU): Acquired by ROSIS, this dataset has 115 spectral bands and 9 land cover classes.
  • Kennedy Space Center (KSC): Collected by AVIRIS, this dataset has 176 spectral bands and 13 land cover classes.

The authors followed standard data splitting protocols for training, validation, and testing on these datasets, with specific percentages detailed in the paper. No new benchmark datasets were introduced.

Key Insights and Ideas

  • The Importance of Long-Range Context: The paper strongly emphasizes that for HSI classification, understanding relationships between spatially distant pixels is as crucial as local neighborhood information for accurate land cover identification.
  • Efficiency is Key: Traditional non-local methods are powerful but computationally prohibitive. The core contribution is demonstrating that an efficient, criss-cross attention-based non-local module can achieve similar or better results with drastically reduced computational and memory costs.
  • Recurrence Enhances Context: Applying a recurrent operation to the efficient non-local module further refines the captured contextual information, leading to improved classification performance without adding significant parameters.
  • Plug-and-Play Module: The efficient non-local module's design allows for easy integration into existing FCN architectures, making it a versatile tool for improving HSI classification models.
  • Optimal Placement Matters: The study highlights that the placement of the non-local module within the FCN architecture impacts performance, with embedding it after earlier convolutional layers proving more effective.

Key Results

The ENL-FCN consistently achieved state-of-the-art classification performance across the three benchmark datasets:

  • Indian Pines (IP): Achieved an Overall Accuracy (OA) of 98.85%, outperforming other methods.
  • Pavia University (PU): Reached an OA of 99.08%, demonstrating superior performance.
  • Kennedy Space Center (KSC): Achieved an OA of 99.46%, significantly higher than many compared methods.

Crucially, the proposed method demonstrated substantial improvements in computational efficiency:

  • GPU Memory Usage: The efficient non-local module used significantly less GPU memory (e.g., ~24MB vs. ~1760MB for a 145x145 image with the original non-local module).
  • Computational Cost (FLOPs): The efficient module required orders of magnitude fewer FLOPs compared to the original non-local module (e.g., over 100 times fewer FLOPs on the KSC dataset).
  • Learning Parameters: The efficient module also required fewer learning parameters.

Qualitative results showed that ENL-FCN produced cleaner classification maps with fewer misclassifications, especially at the edges of land cover regions, compared to methods that only consider local information.

Limitations and Future Work

  • Dataset Size Sensitivity: The paper notes that while the proposed method generally performs well, performance can be slightly lower than some complex networks when training sample sizes are extremely small (e.g., 5 samples per class). However, it still shows a clear improvement trend as training data increases.
  • Parameter Tuning: While the paper analyzes the sensitivity to kernel size and the number of kernels, further exploration of optimal parameter settings for diverse HSI datasets could be beneficial.
  • Future Work: The authors suggest that the efficient non-local module's plug-and-play nature makes it suitable for integration into other deep learning architectures for various remote sensing tasks beyond classification. They also imply that further research into optimizing the module's structure and placement could yield even better results.

Summary updated

Abstract

Deep-learning-based methods, such as convolution neural network (CNN), have demonstrated their efficiency in hyperspectral image (HSI) classification. These methods can automatically learn spectral-spatial discriminative features within local patches. However, for each pixel in an HSI, it is not only related to its nearby pixels but also has connections to pixels far away from itself. Therefore, to incorporate the long-range contextual information, a deep fully convolutional network (FCN) with an efficient nonlocal module, named ENL-FCN, is proposed for HSI classification. In the proposed framework, a deep FCN considers an entire HSI as input and extracts spectral-spatial information in a local receptive field. The efficient nonlocal module is embedded in the network as a learning unit to capture the long-range contextual information. Different from the traditional nonlocal neural networks, the long-range contextual information is extracted in a specially designed criss-cross path for computation efficiency. Furthermore, using a recurrent operation, each pixel's response is aggregated from all pixels of HSI. The benefits of our proposed ENL-FCN are threefold: 1) the long-range contextual information is incorporated effectively; 2) the efficient module can be freely embedded in a deep neural network in a plug-and-play fashion; and 3) it has much fewer learning parameters and requires less computational resources. The experiments conducted on three popular HSI data sets demonstrate that the proposed method achieves state-of-the-art classification performance with lower computational cost in comparison with several leading deep neural networks for HSI.
BibTeX
@article{shen2021efficient,
  author = {Yu Shen and Sijie Zhu and Chen Chen and Qian Du and Liang Xiao and Jianyu Chen and Delu Pan},
  title = {{Efficient Deep Learning of Nonlocal Features for Hyperspectral Image Classification}},
  journal = {IEEE Trans. Geosci. Remote. Sens.},
  year = {2021},
  url = {https://openreview.net/forum?id=yh_2RFnKHH6},
}
Figure