Spectral-tokenized prompting of pretrained transformers for industrial NIR hyperspectral impurity segmentation.
Sheng Xue, Zhenye Li, Ningran Li, Dongyi Wang, Yeqi Fei, Zengtao Chen, Tingting Zhu, Chao Ni
College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, China. · Jiangsu Shuguang Optoelectronics Co., Ltd., Yangzhou 225000, China.
Key points
From the paper's conclusion- These results indicate that spectral-tokenized prompting provides an effective and practical mechanism for adapting pretrained vision models to NIR-HSI segmentation under industrial constraints.
Abstract
Near-infrared hyperspectral imaging (NIR-HSI) enables material discrimination through material-dependent spectral signatures, yet industrial impurity segmentation remains challenging due to high spectral dimensionality, limited annotations, and the mismatch with pretrained spatial encoders. Beyond these constraints, severe class imbalance and strict latency requirements in high-throughput production lines further complicate practical deployment. Naively compressing spectra into three channels to fit RGB-pretrained encoders risks discarding essential material cues, whereas training heavy spectral-spatial networks from scratch increases computational cost and overfitting risk under scarce labels. To bridge this mismatch, we propose a Spectral-Tokenized Prompt Transformer (STPT) that injects full-spectrum material cues into a frozen pretrained spatial encoder via lightweight prompting. Specifically, the 288-band hyperspectral cube is tokenized into patch-level spectral prompts using an efficient attention-based prompt encoder, while a pseudo-RGB view is fed into a frozen transformer image encoder to preserve robust spatial priors. The spectral prompts guide spatial embeddings via cross-attention to produce spectrally consistent impurity localization, and a reliability-aware decoding and filtering layer stabilizes predictions under spectral noise and long-tailed distributions. Experiments on a real-world industrial tobacco-stem dataset with 13 labeled categories, including 11 foreign-impurity categories, demonstrate that STPT achieves improved segmentation performance (IoU 0.6949, Dice 0.7377) while meeting the predefined per-patch real-time inference requirement. These results indicate that spectral-tokenized prompting provides an effective and practical mechanism for adapting pretrained vision models to NIR-HSI segmentation under industrial constraints.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Spectral-spatial vision test-time training for hyperspectral image classificationarXiv · 2026
- MGWT: Hyperspectral Image Classification Based on a Multi-Granularity Weight Transformer NetworkRemote Sensing · 2026
- SPECTRA-VLA: Base-Fine Hyperspectral Token Transfer at Frozen Vision-Language-Action InterfacesarXiv · 2026
- Transformers meet hyperspectral imaging: A comprehensive study of models, challenges and open problemsEngineering Applications of Artificial Intelligence · 2026
- DTU-Net: A Multi-Scale Dilated Transformer Network for Nonlinear Hyperspectral UnmixingIEEE Transactions on Geoscience and Remote Sensing · 2026
- SpecUltra: A Unified Foundation Model for Heterogeneous Spectral ImagesarXiv · 2026