Journal of Textile Research ›› 2023, Vol. 44 ›› Issue (05): 84-92.doi: 10.13475/j.fzxb.20211200801

• Fiber Materials • Previous Articles     Next Articles

Classification and identification of foreign fibers based on near-infrared spectroscopy and ResNet

LI Xueliang1,2, DU Yuhong1,2(), REN Weijia1,2, ZUO Hengli1,2   

  1. 1. School of Mechanical Engineering, Tiangong University, Tianjin 300387, China
    2. Key Laboratory of Modern Mechanical and Electrical Equipment Technology, Tiangong University, Tianjin 300387, China
  • Received:2021-12-06 Revised:2022-05-18 Online:2023-05-15 Published:2023-06-09

Abstract:

Objective It has been shown that image processing methods can not clearly acquire image characteristics of foreign fibers in cotton layers. In order to solve the problem associated to conventional image processing methods, this paper proposed a classification and identification method for foreign fibers in cotton layers based on near-infrared (NIR) spectroscopy and residual neural networks (ResNet).

Method In this study, 500 groups of foreign fibers spectral data were collected by experiments, including five types of foreign fibers. The spectral collection instrument was a UH4150 spectrophotometer. Savitzky-Golay method was adopted to smooth the spectral data, and F-test and LightGBM classification algorithm was adopted to determine the optimal feature wavelength. The optimal spectral data were converted into Garmian angular summation fields (GASF) images by the Garmian angular field (GAF) method, which preserved the temporal sequences between wavelength sequences. Eventually, the ResNet model was constructed. The GASF images were used as training samples to train the ResNet model.

Results The foreign fibers' spectral data was smoother than the original spectrum by the Savitzky-Golay method. Noisy data at both ends of the spectrum and near the peaks of functional groups were eliminated (Fig.2). After F-test and LightGBM classification algorithm wavelength optimization, 75 optimal wavelengths were selected. When the number of wavelengths was greater than 200, important information was deleted from the foreign fibers' spectral data (Fig.3(a)). When the number of wavelengths was 75, the optimal performance of the optimized model was the best, and the accuracy reached 98.99% (Fig.3(b)). The accuracy of applying the GASF image to the ResNet model is 99.69%(Fig.7(a)). The loss of the training set showed a sharp drop for the first 50 iterations (Figs.7 (b) and (c)). When the number of iterations reached 70, the training set started to converge. When the number of epochs reached 200, the training set tended to be stable. The classification accuracy of gray-scale and time-frequency images was lower than 99.00%, lower than the recognition accuracy of GASF images(Fig.8). The ResNet model improved classification performance compared with machine learning classification models. Compared with the K-nearest-neighbor (KNN) and decision tree (DT), accuracy increased by 6.67% and 7.60%, and recall increased by 6.91% and 7.09%. Compared with the artificial neural network's multi-layer perceptron (MLP), the accuracy and recall increased by 1.22% and 1.36%, respectively. All the classification performances of rope and feather on the ResNet model reached 100%, indicating excellent classification of these two types of foreign fibers. There were no false positives or missed inspections. Only two misjudged cases were found in 640 foreign fibers samples in the test set, the first being the chemical fibers were wrongly judged as PP yarn. Second, the chemical fiber was wrongly identified as plastic bag.

Conclusion The classification and identification model based on GASF and ResNet improved the feature extraction performance of foreign fibers' near infra-red spectra data. This method can effectively identify the foreign fibers in the cotton layer under a complex environment, with a identification accuracy of 99.69%. The classification and identification method of foreign fibers based on spectra combined with the convolution neural network (CNN) provides new research ideas for classifying foreign fibers in a complex environment. In addition, the method provides technical support for developing the sorting device of foreign fibers. Future research will be further extended to cotton quality evaluation fields, such as content detection of foreign fibers.

Key words: cotton, foreign fiber detection, near-infrared spectrum, residual neural network, spectral data, image detection

CLC Number: 

  • TP391.4

Fig.1

Experimental materials (a) and experimental samples(b)"

Fig.2

Average reflectances of foreign fibers spectra before (a) and after (b) SG smoothing"

Fig.3

F Test characteristic wavelength optimization results. (a) Optimal characteristic wavelength number of 0-2 360; (b) Optimal characteristic wavelength number of 0-200"

Fig.4

Gram angle and field conversion process of different foreign fiber spectra"

Fig.5

Convolutional neural network structure"

Fig.6

Residual network model"

Tab.1

Improved network parameters of each layer"

层数 类型 卷积核大小/像素 输出尺寸/像素
1 卷积层1 6×6 70×70×16
2 卷积层2 6×6 65×65×32
3 卷积层3 6×6 60×60×32
4 池化层1 3×3 30×30×32
5 卷积层4 3×3 28×28×128
6 卷积层5 3×3 26×26×128
7 卷积层6 3×3 24×24×128
8 池化层2 3×3 12×12×128
9 残差块1 3×3
3×3
12×12×128
10 卷积层7 3×3 10×10×256
11 卷积层8 3×3 8×8×256
12 卷积层9 3×3 6×6×256
13 池化层3 3×3 3×3×256
14 残差块2 3×3
3×3
3×3×256
15 全连接层 1×1 1×1×2 304
16 全连接层 1×1 1×1×1 024

Fig.7

Changes of accuracy and loss value during training. (a) Test set accuracy; (b) Training set loss value; (c) Test set loss value"

Fig.8

Influence of different conversion modes on accuracy"

Tab.2

Performance comparison of 4 classification models%"

类别 K-最近邻 决策树 多层感知机 残差神经网络
精确率 召回率 F1 精确率 召回率 F1 精确率 召回率 F1 精确率 召回率 F1
丙纶绳 88.64 91.41 90.00 89.07 89.50 89.28 96.48 98.56 97.52 99.22 100.00 99.61
化学纤维 95.62 94.24 94.92 93.04 95.54 94.27 98.37 99.17 98.77 100.00 98.45 99.22
麻绳 90.68 88.92 89.79 90.85 89.58 90.21 98.33 98.33 98.33 100.00 100.00 100.00
塑料袋 97.78 100.00 98.88 96.40 97.27 96.83 99.17 99.17 99.17 99.22 100.00 99.61
羽毛 92.37 89.34 90.83 91.11 89.13 90.11 100.00 96.40 98.17 100.00 100.00 100.00
总计 93.02 92.78 92.88 92.09 92.60 92.14 98.47 98.33 98.39 99.69 99.69 99.69

Fig.9

Confusion matrix of foreign fiber classification results"

[1] 董超群, 杜玉红, 任维佳, 等. 应用光学成像技术检测棉花中异性纤维的研究进展[J]. 纺织学报, 2020, 41(6): 183-189.
DONG Chaoqun, DU Yuhong, REN Weijia, et al. Research progress in optical imaging technology for detecting foreign fibers in cotton[J]. Journal of Textile Research, 2020, 41(6): 183-189.
[2] ZHAO Xuehua, GUO Xiangyun, LUO Jie, et al. Efficient detection method for foreign fibers in cotton[J]. Information Processing in Agriculture, 2018, 5(3): 320-328.
doi: 10.1016/j.inpa.2018.04.002
[3] 张成梁, 李蕾, 董全成, 等. 基于GA-SVM模型的机采籽棉杂质识别[J]. 农业工程学报, 2016, 32(24): 189-196.
ZHANG Chengliang, LI Lei, DONG Quancheng, et al. Recognition for machine picking seed cotton impurities based on GA-SVM model[J]. Transactions of The Chinese Society of Agricultural Engineering, 2016, 32(24): 189-196.
[4] JI Ronghua, LI Daoliang, CHEN Lairong, et al. Classification and identification of foreign fibers in cotton on the basis of a support vector machine[J]. Mathematical and Computer Modelling, 2010, 51(11/12): 1433-1437.
doi: 10.1016/j.mcm.2009.10.007
[5] 常金强, 张若宇, 庞宇杰, 等. 高光谱成像的机采籽棉杂质分类检测[J]. 光谱学与光谱分析, 2021, 41(11): 3552-3558.
CHANG Jinqiang, ZHANG Ruoyu, PANG Yujie, et al. Classification of impurities in machine-harvested seed cotton using hyperspectral imaging[J]. Spectroscopy and Spectral Analysis, 2021, 41(11): 3552-3558.
[6] JIANG Yu, LI Changying. mRMR-Based feature selection for classification of cotton foreign matter using hyperspectral imaging[J]. Computers and Electronics in Agriculture, 2015, 119: 191-200.
doi: 10.1016/j.compag.2015.10.017
[7] HINTON G E, OSINDERO S, TEH Y W. A fast learning algorithm for deep belief nets[J]. Neural Computation, 2006, 18(7): 1527-1554.
doi: 10.1162/neco.2006.18.7.1527 pmid: 16764513
[8] 何晓昀, 韦平, 张林, 等. 基于深度学习的籽棉中异性纤维检测方法[J]. 纺织学报, 2018, 39(6): 131-135.
HE Xiaoyun, WEI Ping, ZHANG Lin, et al. Detection method of foreign fibers in seed cotton based on deep-learning[J]. Journal of Textile Research, 2018, 39(6): 131-135.
[9] WEI Wei, DENG Dexiang, ZENG Lin, et al. Classification of foreign fibers using deep learning and its implementation on embedded system[J]. International Journal of Advanced Robotic Systems, 2019. DOI:10.1177/1729881419867600.
doi: 10.1177/1729881419867600
[10] 郭俊先, 应义斌. 皮棉中杂质检测技术与检出装备的研究进展[J]. 农业机械学报, 2008, 39(7): 107-113.
GUO Junxian, YING Yibin. Progress on detecting technique and sorter of raw cotton foreign matters[J]. Transactions of the Chinese Society for Agricultural Machinery, 2008, 39(7): 107-113.
[11] 李晓静, 虞澜, 祖恩东. 近红外光谱分析技术在宝石研究中的应用[J]. 光谱学与光谱分析, 2018, 38(1): 54-57.
LI Xiaojing, YU Lan, ZU Endong. Application of near infrared spectroscopy in the study of gems[J]. Spectroscopy and Spectral Analysis, 2018, 38(1): 54-57.
[12] 谢军, 潘涛, 陈洁梅, 等. 血糖近红外光谱分析的Savitzky-Golay平滑模式与偏最小二乘法因子数的联合优选[J]. 分析化学, 2010, 38(3): 342-346.
XIE Jun, PAN Tao, CHEN Jiemei, et al. Joint optimization of Savitzky-Golay smoothing models and partial least squares factors for near-infrared spectroscopic analysis of serum glucose[J]. Chinese Journal of Analytical Chemistry, 2010, 38(3): 342-346.
[13] 谢波, 陈岭, 陈根才, 等. 普通话语音情感识别的特征选择技术[J]. 浙江大学学报(工学版), 2007, 41(11): 1816-1822.
XIE Bo, CHEN Ling, CHEN Gencai, et al. Feature selection for emotion recognition of mandarin speech[J]. Journal of Zhejiang University(Engineering Science), 2007, 41(11): 1816-1822.
[14] KE Guolin, MENG Qi, FINLEY T, et al. LightGBM: a highly efficient gradient boosting decision tree[C] // Proceedings of the 31st International Conference on Neural Information Processing Systems. California: Curran Associates Inc, 2017: 3149-3157.
[15] 周挺, 杨军, 周强明, 等. 基于改进LightGBM的电力系统暂态稳定评估方法[J]. 电网技术, 2019, 43(6): 1931-1940.
ZHOU Ting, YANG Jun, ZHOU Qiangming, et al. Power system transient stability assessment method based on modified lightgbm[J]. Power System Technology, 2019, 43(6): 1931-1940.
[16] WANG Zhiguang, OATES Tim. Imaging time-series to improve classification and imputation[C] // Twenty-Fourth International Joint Conference on Artificial Intelligence. Buenos Aires: IJCAI, 2015: 3939-3945.
[17] HE Kaiming, ZHANG Xiangyu, REN Shaoqing, et al. Deep residual learning for iage recognition[C] // Proceedings of The IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas: IEEE, 2016: 770-778.
[18] KINGMA D, BA J. Adam: a method for stochastic optimization[J]. Computer Science, 2014. DOI:10.48550/arXiv.1412.6980.
doi: 10.48550/arXiv.1412.6980
[19] QI Yafeng, YANG Lin, LIU Bangxu, et al. Accurate diagnosis of lung tissues for 2D Raman spectrogram by deep learning based on short-time Fourier transform[J]. Analytica Chimica Acta, 2021. DOI:10.1016/j.aca.2021.338821.
doi: 10.1016/j.aca.2021.338821
[1] SU Xuzhong, LIANG Qiaomin, WANG Huifeng, ZHANG Di, CUI Yihuai. Wearability of knitted fabrics produced from cotton/bio-based elastic polyester fiber [J]. Journal of Textile Research, 2023, 44(05): 119-124.
[2] WANG Yaqian, WAN Ailan, ZENG Deng. Preparation and performance evaluation of weft knitted ironing-free shirt fabric based on cotton/shape memory spandex [J]. Journal of Textile Research, 2023, 44(05): 125-131.
[3] HU Anzhong, WANG Chengcheng, ZHONG Ziheng, ZHANG Liping, FU Shaohai. Preparation and properties of fast response thermochromic textiles doped with boron nitride nanosheets [J]. Journal of Textile Research, 2023, 44(05): 164-170.
[4] YI Jingyuan, PEI Liujun, ZHU He, ZHANG Hongjuan, WANG Jiping. Study on disperse dye staining on polyester/cotton blended fabrics in non-aqueous medium dyeing system [J]. Journal of Textile Research, 2023, 44(05): 29-37.
[5] WANG Xiaoyan, MA Ziting, XU Changhai. One-bath process for bleaching and dyeing of polyester-covered cotton fabric using disperse dye with high resistance to alkalis and peroxides [J]. Journal of Textile Research, 2023, 44(05): 38-45.
[6] YANG Yun, SUN Tong, LIANG Zhenyu, PENG Guang, BAO Jinsong. Quantitative analysis method of cotton yarn defects based on heterogeneous ensemble learning [J]. Journal of Textile Research, 2023, 44(05): 93-101.
[7] QI Haotong, ZHANG Linsen, HOU Xiuliang, XU Helan. Wear performances of cotton fabrics reactive-dyed in salt-free waste cooking oil-water system [J]. Journal of Textile Research, 2023, 44(03): 126-131.
[8] WU Jiaqing, WANG Yiting, HE Xinxin, GUO Yafei, HAO Xinmin, WANG Ying, GONG Yumei. Influence of blending ratio on mechanical properties of bio-polyamide 56 staple fiber/cotton blended yarn [J]. Journal of Textile Research, 2023, 44(03): 49-54.
[9] SHI Jingjing, YANG Enlong. Analysis of structure and properties of cotton/wool siro segment colored yarns [J]. Journal of Textile Research, 2023, 44(03): 55-59.
[10] ZHANG Qingqing, NI Yuan, WANG Jun, ZHANG Yuze, JIANG Hui. Process design of spinning device based on runner fiber accumulation [J]. Journal of Textile Research, 2023, 44(02): 83-89.
[11] WANG Jinkun, LIU Xiuming, FANG Kuanjun, QIAO Xiran, ZHANG Shuai, LIU Dongdong. Enhancement of anti-wrinkle properties of cotton fabrics by reactive dyeing with two vinyl sulphone groups [J]. Journal of Textile Research, 2023, 44(02): 207-213.
[12] DING Juan, LIU Yang, ZHANG Xiaofei, HAO Keqian, ZONG Meng, KONG Que. Preparation of Fe/C porous carbon material and microwave absorption properties of coated cotton fabrics [J]. Journal of Textile Research, 2023, 44(02): 191-198.
[13] QU Lianyi, LIU Jianglong, XU Yingjun, WANG Yuzhong. Preparation and properties of mussel-inspired durable antimicrobial fabrics [J]. Journal of Textile Research, 2023, 44(02): 176-183.
[14] JIANG Qi, LIU Yun, ZHU Ping. Preparation and properties of flame retardant/anti-ultraviolet cotton fabrics with tea polyphenol based flame retardants [J]. Journal of Textile Research, 2023, 44(02): 222-229.
[15] YU Xuezhi, ZHANG Mingguang, CAO Jipeng, ZHANG Yue, WANG Xiaoyan. Influence of twist on quality indexes of polyamide/cotton blended yarns [J]. Journal of Textile Research, 2023, 44(01): 106-111.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!