DOI: 10.3390/s26196069 ISSN: 1424-8220

Near-Infrared Hyperspectral Classification of Waste Textiles Using Complementary Spectral Representations and a Convolution-Enhanced Patch Transformer

Xin Ru, Xingyu Chen, Laihu Peng, Chang Xuan, Yi Xu, Changjiang Wan

High-value recycling of waste textiles requires accurate fiber-composition identification, yet similar blends often exhibit overlapping near-infrared absorption bands and substantial within-class variation. Using 291 waste-textile swatches, this study develops ConvPatchTST, a convolution-enhanced Patch Transformer that integrates Raw and SNV (SG) spectra as complementary input channels. Overlapping convolutional patch embedding captures local continuous absorption features, while a Transformer encoder models cross-band dependencies. Spectral bands spanning 958.5–1646.6 nm were selected for model training and analysis. Under a single fabric-swatch-grouped internal train-validation split with pixel-level evaluation, ConvPatchTST achieves an accuracy of 0.966 and a macro F1 of 0.970, outperforming several baseline models. The Raw + SNV (SG) representation also surpasses single-channel, three-channel, and alternative dual-channel inputs. Pairwise analysis identifies statistically discriminative and highly attributed intervals for four similar material pairs. For polyester/polysp, the intervals near 1369.0–1379.6 nm show clear statistical-model agreement. These results indicate that complementary spectral representations and convolution-enhanced Patch modeling support accurate classification and provide band-level clues for interpreting model decisions. Generalization to external samples, batches, and instruments requires further validation.