Abstract
Hyperspectral (HS) imaging provides critical spectral "fingerprints" for material identification, yet traditional HS cameras often suffer from low spatial resolution, slow frame rates, or high costs. This paper introduces a hardware-software co-design framework that jointly optimizes the physical sampling process—specifically spectral band selection and color filter array (CFA) design—alongside the computational reconstruction algorithm. By leveraging Reinforcement Learning for band selection and a novel Sparse Implicit Demosaicing network, the proposed method achieves state-of-the-art reconstruction accuracy, significantly outperforming existing methods with fixed hardware designs.
Introduction
Standard RGB cameras capture only three broad spectral bands, missing the rich information available in the hyperspectral domain. While HS imaging captures dozens of narrow bands, existing solutions often involve a compromise. Computational hyperspectral imaging aims to bridge this gap by recovering high-resolution HS data from compressed or low-resolution measurements. However, most current methods treat the hardware as a fixed entity, using predefined CFAs like the Bayer pattern that are not optimized for HS recovery. This work argues that the sampling (physical filters and layout) and reconstruction (algorithms) must be jointly optimized to achieve peak performance.
Proposed Method
The authors propose an end-to-end joint learning framework consisting of four primary components:
- RL-based Band Selection ($G_b$): Instead of narrow-band filters that limit light throughput, the system selects from a library of 12 wide-band commercial filters. A Reinforcement Learning agent determines the optimal "histogram" or distribution of these filters to maximize final reconstruction quality.
- CFA Pattern Generation ($G_s$): A CNN-based generator takes the band selection results and positional encodings to produce a repeating $m \times m$ mosaic pattern. A "Soft-max" function with a temperature parameter is used to make the discrete filter selection differentiable during training.
- Sparse Implicit Demosaicing ($G_d$): To handle irregular or sparse sampling patterns, the authors employ Minkowski convolutions (which process only valid data points) and Local Implicit Image Functions (LIIF). This allows the image to be represented as a continuous function, facilitating high-quality reconstruction regardless of the specific CFA layout.
- Spectral Recovery ($G_r$): A final network maps the demosaiced wide-band measurements into a 31-band hyperspectral cube.
Key Insights
- Hardware-Software Synergy: The reconstruction network provides the reward signal for the RL agent, allowing the hardware to learn a sampling strategy that simplifies the software's reconstruction task.
- Wide-Band Advantage: Utilizing wide-band filters improves the signal-to-noise ratio and allows for higher frame rates compared to narrow-band alternatives.
- Spatial-Spectral Trade-off: The system automatically balances sampling density across bands, prioritizing more informative spectral regions to maintain sharp spatial edges.
Experimental Results
The model was evaluated on the CAVE and Harvard hyperspectral datasets. Quantitatively, the method achieved an RMSE of 0.01146 on the CAVE dataset, outperforming the next best competitor (0.01245). Qualitative results demonstrate that the joint optimization approach recovers sharper textures and more accurate spectral signatures, effectively eliminating "zipper" artifacts common in fixed-CFA methods.
Conclusion
This work demonstrates that jointly optimizing hardware and software leads to significant gains in hyperspectral imaging performance. While the current model relies on a predefined filter library and carries higher computational complexity due to the use of implicit functions, it sets a new benchmark for computational HS imaging. Future research will focus on optimizing spectral response curves from scratch and developing physical hardware prototypes.
Summary updated