TL;DR
This paper introduces HyperCOD, the first large-scale benchmark dataset for Hyperspectral Camouflaged Object Detection (HCOD), featuring 350 high-resolution hyperspectral images across diverse natural scenes. To tackle this new benchmark, the authors propose HSC-SAM, a framework that adapts the Segment Anything Model (SAM) to hyperspectral data by decoupling spatial and spectral features, setting a new state-of-the-art in detecting perfectly disguised objects.
What Problem Does This Paper Address?
Camouflaged object detection (COD) is crucial for applications like search-and-rescue, medical imaging, and ecological monitoring. However, standard RGB-based methods struggle when an object perfectly matches the texture and color of its background, or when flat lighting erases spatial boundaries.
Hyperspectral Imaging (HSI) offers a solution by capturing hundreds of narrow spectral bands, revealing distinct material properties invisible to the naked eye or standard cameras. Despite this potential, progress in Hyperspectral COD (HCOD) has been severely bottlenecked by two main challenges: the lack of a dedicated, large-scale benchmark dataset, and the difficulty of adapting powerful foundation models like SAM to high-dimensional HSI data without incurring prohibitive computational costs or breaking due to the modality gap.
Methods
The authors present HSC-SAM (HyperSpectral Camouflage-aware SAM), which bridges the gap between high-dimensional HSI data and SAM's RGB-trained architecture through several novel modules:
- Spectral-Spatial Decomposition Module (SSDM): Instead of feeding raw HSI data directly, SSDM splits the input into two representations: a 3-channel spatial map mapped to the CIEXYZ color space (preserving structural details for SAM's image encoder) and a 3-channel spectral saliency map (highlighting material differences to serve as an adaptive prompt).
- Spectral-Guided Token Dropout (SGTD): To keep the model efficient, this module uses the spectral saliency map to calculate a per-token saliency score. Background tokens falling below a user-defined threshold ($\tau$) are dropped before entering expensive transformer attention blocks, significantly reducing computational overhead.
- Spectral-Spatial Complementary Prompting: Aligns and fuses spatial and spectral tokens via a dedicated prompt block to refine spatial attention in low-contrast environments.
- Fine-Grained Detail Enhancer (FDE): A training-only module that injects low-level spatial features via joint attention modulation to recover sharp object boundaries lost during high-level semantic decoding.
Datasets
- HyperCOD (New Benchmark): The primary contribution is this new dataset consisting of 350 high-resolution ($1240 \times 1680$) hyperspectral image cubes, each containing 200 spectral bands spanning 400–1000 nm. It covers 11 natural environments (e.g., grasslands, snowfields, sand) and features five distinct challenge attributes: Minimal Objects, Cluttered Backgrounds, Complex Shapes, Dynamic Lighting, and Object Occlusion. The dataset is split into 280 training samples and 70 testing samples.
- The paper compares HyperCOD against existing RGB COD datasets (like CHAMELEON, CAMO-V1, COD10K, and NC4K) and hyperspectral salient object detection (HSOD) datasets (like HSOD-BIT), highlighting HyperCOD's unique focus on camouflage and its superior spatial and spectral resolution.
Key Insights and Ideas
- Beating Metamerism with CIEXYZ: Metamerism causes different materials to look identical in RGB space. By mapping HSI bands to the standardized CIEXYZ color space instead of standard pseudo-RGB, the framework preserves subtle material-dependent spectral nuances that fool standard vision models.
- Spectral Saliency as a Natural Prompt: Foundation models like SAM usually require manual prompts (points or boxes). HSC-SAM eliminates this by automatically generating a spectral saliency map from the HSI cube, turning material differences into self-generated, high-quality prompts.
- Pruning for Efficiency: Hyperspectral data is notoriously heavy to process. The SGTD module proves that you don't need to compute attention across the entire image; filtering out background tokens early using spectral priors yields a massive boost in efficiency with negligible loss in accuracy.
Key Results
- State-of-the-Art Performance: HSC-SAM achieves an exceptionally low Mean Absolute Error (MAE of 0.0017) and the highest adaptive F-measure (Adp-F of 0.681) on the HyperCOD dataset, outperforming the closest RGB-based competitor (Camoformer) by 3.1% on Adp-F.
- Robustness Across Attributes: HSC-SAM consistently outperforms both RGB-based COD models and hyperspectral salient object detection models across all five challenge categories (e.g., achieving an Adp-F of 0.8242 under Dynamic Lighting and 0.8698 under Occlusion).
- Computational Efficiency: Despite dealing with 200-band data, HSC-SAM maintains a highly competitive footprint with only 11.7M parameters and 94.2G FLOPs, making it significantly lighter than SAM2-UNet (216.4M parameters, 128.4G FLOPs).
Limitations and Future Work
Not explicitly discussed in detail by the authors, but a few clear directions and limitations emerge:
- Dataset Scale: While 350 images is a major milestone for hyperspectral camouflage detection, it remains small compared to massive RGB datasets containing thousands of images, which may limit the training of even larger foundation models.
- Real-Time Deployment: Although the token dropout mechanism improves efficiency, processing 200-band hyperspectral cubes still presents a challenge for real-time edge applications (e.g., on drones for search-and-rescue). Future work could explore further model compression or band selection techniques to boost inference speed.
Summary updated