One-Shot Neural Band Selection for Spectral Recovery

Hai-Miao Hu, Zhenbo Xu, Wenshuai Xu, You Song, YiTao Zhang, Liu Liu, Zhilin Han, Ajin Meng

Abstract

Spectral recovery—the process of reconstructing high-dimensional hyperspectral images (HSI) from a limited set of multispectral bands—is a critical task in reducing the hardware complexity of hyperspectral imaging systems. A fundamental challenge in this field is identifying which spectral bands are most informative for reconstruction. This paper discusses Neural Band Selection (NBS), a "one-shot" framework that utilizes gradient descent and continuous relaxation to automatically identify optimal spectral bands. By framing band selection as a differentiable architecture search problem, NBS eliminates the need for manual heuristics and allows for flexible, hardware-aware band selection without retraining from scratch.

Introduction

Hyperspectral imaging (HSI) captures a detailed "spectral fingerprint" of materials by recording dozens or hundreds of narrow spectral bands. While invaluable for fields ranging from agriculture to medical diagnostics, HSI hardware is often bulky, expensive, and slow due to the high volume of data captured. To mitigate these issues, researchers often employ spectral recovery: capturing a few multispectral bands (MSI) and using deep learning models to reconstruct the full hyperspectral cube.

However, the question of which bands to capture remains a significant bottleneck. Traditional band selection methods often rely on hand-crafted priors, iterative clustering, or scene-specific heuristics. Furthermore, these methods are typically rigid; if the hardware constraint changes (e.g., switching from a 3-band sensor to a 5-band sensor), the selection process must often be restarted. NBS addresses these limitations by providing a scalable, automated, and differentiable framework for band selection.

Methodology

Continuous Relaxation and Bilevel Optimization

NBS treats the discrete problem of band selection as a differentiable architecture search. Instead of making a hard choice between bands, the framework assigns a weight ((\alpha)) to every possible band in the spectrum. During the training phase, a softmax function is applied to these weights to create a weighted combination of all bands. This "continuous relaxation" allows the model to use standard gradient descent to learn which bands contribute most significantly to recovery quality.

To ensure the selected bands are optimized for the specific reconstruction network, the authors utilize a bilevel optimization strategy:

  1. Inner Loop: The weights ((w)) of the spectral recovery model are trained to minimize training loss.
  2. Outer Loop: The band selection weights ((\alpha)) are optimized to minimize validation loss.

One-Shot Inference and Correlation Suppression

A key innovation of NBS is its "one-shot" capability. Once the weights ((\alpha)) are learned, the model can instantly provide the optimal set for any number of bands ((M)). However, simply picking the top (M) weights is insufficient because adjacent spectral bands are highly correlated and redundant. To solve this, NBS employs a post-processing algorithm that:

  1. Selects the band with the highest weight.
  2. Suppresses the weights of its neighbors using a correlation matrix and a suppression hyperparameter ((\beta)).
  3. Repeats the process until (M) bands are chosen.

This allows a single trained search model to adapt to various hardware constraints (e.g., (M=2, 3, 8, \dots)) without further training.

Experimental Setup

The framework was evaluated using the NTIRE 2022 Spectral Reconstruction Challenge dataset, which consists of 1,000 hyperspectral images covering 31 wavelengths (400 nm to 700 nm). NBS was tested against four state-of-the-art recovery models: MST++, MST-L, MIRNet, and HINet.

Key Insights and Results

Breaking the RGB Convention

Standard practice in spectral recovery often defaults to capturing Red, Green, and Blue bands (approximately 630, 530, and 470 nm). NBS demonstrated that these are rarely the optimal choices for high-fidelity reconstruction. For instance, NBS frequently favored bands such as 680, 540, and 480 nm, which provided superior information for the recovery models.

Performance Gains

NBS consistently outperformed manual RGB selection and other automated baselines, such as "M-equal split" (dividing the spectrum evenly). When paired with the HINet model, NBS achieved a Peak Signal-to-Noise Ratio (PSNR) of 40.44, a 4.1% improvement over the manual RGB baseline (38.84 PSNR).

The Importance of Spatial Context

The researchers compared "Spatial-Spectral NBS" (which considers the entire image) against "Spectral-wise NBS" (which analyzes pixels in isolation). The spatial-spectral approach significantly outperformed the spectral-wise version, suggesting that spatial patterns and textures are vital indicators for determining spectral importance.

Scalability

The one-shot post-processing proved highly effective. As the number of selected bands ((M)) increased from 2 to 8, the PSNR increased from 36.53 to 58.01. This confirms that the learned weights ((\alpha)) successfully capture a hierarchy of spectral importance that scales with hardware capability.

Conclusion and Future Work

Neural Band Selection provides a robust, efficient, and flexible framework for optimizing hyperspectral imaging pipelines. By moving away from manual selection and toward a differentiable, one-shot approach, NBS allows for the design of more efficient sensors tailored to specific reconstruction models.

While highly effective for spectral recovery, future research is required to determine if the bands selected by NBS are equally optimal for downstream tasks such as object detection or land-use classification. Additionally, while the bilevel optimization introduces a one-time computational cost during the design phase, the resulting efficiency in hardware deployment offers significant long-term advantages.

Summary updated

BibTeX
@inproceedings{hu2023one,
  author = {Hai-Miao Hu and Zhenbo Xu and Wenshuai Xu and You Song and YiTao Zhang and Liu Liu and Zhilin Han and Ajin Meng},
  title = {{One-Shot Neural Band Selection for Spectral Recovery}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096000},
}
Figure