This study introduces a rapid and non-destructive method for detecting multiple chemical residues in pure cotton fabrics, utilizing hyperspectral imaging, discrete wavelet transform (DWT), and a one-dimensional convolutional neural network (1D-CNN) to address limitations of traditional techniques, which have low efficiency and destructive nature. Initially, spectral data were collected from pure cotton fabric samples using a hyperspectral imaging system operating within the 400–1000 nm wavelength range , with each sample yielding one averaged spectrum from 100 pixels. The dataset was split 75:25 for training (9,000 spectra) and testing (3,000 spectra), using stratified sample-wise partitioning to prevent spectral leakage. Subsequently, DWT was applied for data dimensionality reduction, eliminating redundant information while retaining critical spectral characteristics. An optimized 1D-CNN model was developed to automatically extract spectral features and classify multiple residues, including formaldehyde, 4-aminobiphenyl, nonylphenol, melamine, and ethanol. The experimental findings demonstrated that the DWT preserved high information entropy (13.02) even after dimensionality reduction to 75 features. Furthermore, its computational efficiency significantly surpassed that of competitive adaptive reweighted sampling and kernel principal component analysis. In conjunction with DWT for dimensionality reduction, the 1D-CNN model achieved an overall classification accuracy of 99.76% and an F1 score of 0.99, exceeding the performance of the support vector machine and random forest models by 2.03% and 38.53%, respectively. This methodology facilitates non-destructive and rapid detection, achieving over 50% increase in detection speed while maintaining high accuracy in identifying formaldehyde residue. It represents an effective technological solution for ensuring textile quality and safety. Future work will focus on designing lightweight network architectures, implementing data augmentation strategies, and expanding the model’s applicability to detect multiple pollutants, aiming to enhance its practical deployment and generalization capability.