journal article·2026-05-06

A chemically guided Vision Transformer for interpretable near-infrared spectral analysis of multicomponent textile blends

Changjiang Wan, Cuiping Yu, Laihu Peng, Zhifeng Chen

Publisher page

Abstract

Accurate quantification of multicomponent textile blends by near-infrared (NIR) spectroscopy is hindered by overlapping absorption bands, baseline variation, and nonlinear interactions between fiber components. To address these challenges, we propose a chemically guided Vision Transformer (CG-ViT) that incorporates domain-specific chemical information—such as characteristic absorption peaks and functional group signatures—into the attention mechanism to improve predictive performance and ensure chemically grounded interpretability. The architecture combines a convolutional patch embedding to preserve local spectral continuity, a chemical-prior mask to emphasize wavelength regions of known relevance, and a gating module to adaptively control the influence of these priors for each sample. The approach was evaluated on 533 cotton–polyester–spandex textile samples, each measured at five independent positions, yielding 2665 spectra in total. CG-ViT achieved an overall RMSE of 0.7675 and R ² of 0.999 on the test set, with component-wise RMSEs of 0.9443 for cotton, 0.8618 for polyester, and 0.3644 for spandex, all with R ² ⩾ 0.998. These results exceeded the performance of established baselines, including PLSR, CNN, ANN, and standard 1D-ViT models. Ablation experiments verified the contribution of each module, and attention analysis demonstrated clear correspondence between model focus and chemically meaningful spectral features. Robustness assessments under cross-validation, Gaussian noise, and baseline drift conditions showed stable accuracy ( R ² ⩾ 0.97), indicating strong resilience to typical instrumental variations and supporting the method’s application to reliable, real-time, nondestructive textile composition analysis.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Spectroscopy and Chemometric Analyses · Water Quality Monitoring and Analysis · Dyeing and Modifying Textile Fibers

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou, China

Zhejiang Key Laboratory of Intelligent Manufacturing Equipment for Flexible Functional Materials, Hangzhou, China

Colledge of Materials and Environmental Engineering, Hangzhou Dianzi University, Hangzhou, China

Funding

Zhejiang Provincial Leading Project for Leading Geese Plan · National Institute on Drug Abuse

References (39)

Show source-provided references
1. 10.9790/019X-0402142010.9790/019X-04021420 ↗
2. 10.1515/aut-2018-005510.1515/aut-2018-0055 ↗
3. 10.15376/biores.15.2.3006-301610.15376/biores.15.2.3006-3016 ↗
4. 10.3390/molecules2915366710.3390/molecules29153667 ↗
5. 10.1080/00032719.2019.168374210.1080/00032719.2019.1683742 ↗
6. 10.1080/0570492850806042710.1080/05704928508060427 ↗
7. 10.1016/j.forc.2020.10021310.1016/j.forc.2020.100213 ↗
8. 10.1515/aut-2023-001710.1515/aut-2023-0017 ↗
9. 10.1177/0040517524129538610.1177/00405175241295386 ↗
10. 10.4236/jmp.2015.6607610.4236/jmp.2015.66076 ↗
11. 10.1016/j.microc.2018.10.01110.1016/j.microc.2018.10.011 ↗
12. 10.3329/bjsir.v57i4.6337710.3329/bjsir.v57i4.63377 ↗
13. 10.1080/00032719.2018.144885310.1080/00032719.2018.1448853 ↗
14. 10.9790/3021-04124697710.9790/3021-041246977 ↗
15. 10.1515/aut-2024-001010.1515/aut-2024-0010 ↗
16. 10.1016/j.vibspec.2022.10346410.1016/j.vibspec.2022.103464 ↗
17. 10.1016/j.vibspec.2018.11.00410.1016/j.vibspec.2018.11.004 ↗
18. 10.1177/0040517521100751610.1177/00405175211007516 ↗
19. 10.3390/app13181000310.3390/app131810003 ↗
20. 10.1016/j.microc.2024.11039110.1016/j.microc.2024.110391 ↗
21. 10.3390/pr1202027210.3390/pr12020272 ↗
22. 10.1016/j.aca.2022.34023810.1016/j.aca.2022.340238 ↗
23. 10.3390/polym1412247510.3390/polym14122475 ↗
24. 10.1109/TGRS.2021.313071610.1109/TGRS.2021.3130716 ↗
25. 10.1016/j.resconrec.2022.10615710.1016/j.resconrec.2022.106157 ↗
26. 10.1080/15440478.2024.240987710.1080/15440478.2024.2409877 ↗
27. 10.1016/j.saa.2022.12121410.1016/j.saa.2022.121214 ↗
28. 10.1609/aaai.v39i16.3391710.1609/aaai.v39i16.33917 ↗
29. 10.1609/aaai.v39i1.3203210.1609/aaai.v39i1.32032 ↗
30. Joseph D. Global fiber production hits all-time high: The crucial data from textile exchange’s 2024 materials market report. Report, Style & Beauty, October 2024.
31. 10.33552/JTSFT.2019.04.00058610.33552/JTSFT.2019.04.000586 ↗
32. GB/T 2910.1-2009. Textiles - Quantitative chemical analysis - Part 1: General principles of testing.
33. 10.1002/cem.76210.1002/cem.762 ↗
34. 10.1515/aut-2023-001410.1515/aut-2023-0014 ↗
35. 10.1366/00037021079141428110.1366/000370210791414281 ↗
36. 10.1016/j.microc.2019.10401810.1016/j.microc.2019.104018 ↗
37. 10.1255/jnirs.95510.1255/jnirs.955 ↗
38. 10.1016/j.inpa.2016.01.00110.1016/j.inpa.2016.01.001 ↗
39. FTIR/NIR Libraries http://ir-spectra.com (2020 accessed 15 May 2025).