Fabric quality prediction technology based on K-nearest neighbor algorithm improved particle swarm optimization-back propagation algorithm

被引:0
|
作者
Sun, Changmin [1 ]
Dai, Ning [1 ]
Shen, Chunya [2 ]
Xu, Kaixin [1 ]
Chen, Wei [3 ]
Hu, Xudong [1 ]
Yuan, Yanhong [1 ]
Chen, Zuhong [2 ]
机构
[1] Key Laboratory of Modern Textile Machinery & Technology of Zhejiang Province, Zhejiang Sci-Tech University, Zhejiang, Hangzhou
[2] Zhejiang Kangli Automation Technology Co., Ltd., Zhejiang, Shaoxing
[3] Zhejiang Tianheng Information Technology Co., Ltd., Zhejiang, Shaoxing
来源
Fangzhi Xuebao/Journal of Textile Research | 2024年 / 45卷 / 07期
关键词
fabric quality; fabric quality prediction; K-nearest neighbor algorithm; particle swarm optimization-back propagation neural network algorithm; weaving workshop;
D O I
10.13475/j.fzxb.20230307001
中图分类号
学科分类号
摘要
Objective The confirmation of fabric quality in the textile industry is usually to put the woven fabric into the inspection equipment for inspection. When the fabric defects are found in the inspection process, the repair will be carried out and so increases the production time, thereby reducing the workshop efficiency. In order to improve the efficiency of the workshop, by collecting the real-time data of the weaving workshop, the fabric quality prediction model is established to predict the fabric quality and reduce the fabric production time.Method Aiming at the problem of large difference in fabric quality and long time of conventional fabric inspection, a fabric quality grade prediction method based on K - nearest neighbor algorithm (KNN) improved PSO-BP algorithm was proposed by combining KNN and particle swarm optimization (PSO) improved error back propagation (BP) neural network algorithm. Firstly, the fabric quality prediction model is analyzed, and the fabric defects and fabric quality grades are divided. Secondly, 14 factors affecting the fabric quality are selected as the model input, and then the KNN algorithm is adopted to classify the original sample set. Finally, the classified data is brought into the fabric quality prediction model. The fabric quality prediction model is to use the particle swarm optimization algorithm to obtain the position and speed of the optimal solution through iterative update, and take this as the initial weight and threshold into the neural network structure for training to obtain the model. By predicting the fabric quality grade, the fabric quality is improved.Results 16,186 fabric production data collected over a 3 - month period from a textile factory in Lanxi, Zhejiang Province were adopted to establish a fabric quality prediction model. Firstly, the original data set was adopted to compare and analyze PSO - BP and BP algorithms with different training target errors. According to results of KNN-PSO-BP netural network model, PSO-BP algorithm showed higher accuracy and higher training speed than BP algorithm, and PSO-BP neural network model demonstrated an accuracy of 96% with the training target error 0.000 1. The KNN algorithm was adopted to divide the original sample set into five categories. The mean square error, accuracy and training time of the neural network model were calculated when the training target error is 0. 000 1. The accuracy of the KNN-PSO-BP neural network model was 98. 054%.Conclusion This research demonstrated that KNN-PSO-BP algorithm has higher accuracy than PSO-BP algorithm and BP algorithm. The training time of fabric quality grade prediction is only 4. 8 s, and the accuracy rate is 98.054%. The algorithm greatly shortens the detection time while ensuring the accuracy of fabric quality prediction, improves the production efficiency of weaving, and provides a certain basis for subsequent research on the location and size of fabric defects. © 2024 China Textile Engineering Society. All rights reserved.
引用
收藏
页码:72 / 77
页数:5
相关论文
共 10 条
  • [1] XIONG Jingwei, YANG Jianguo, XU Lan, Combining the particle swarm optimization with BP neural network for yarn quarlity forecasting [J], Journal of Donghua University (Natural Science), 41, 4, pp. 498-502, (2015)
  • [2] WANG Kanfeng, MA Jialu, Yarn quality prediction based on genetic programming, Textile Reports, 39, 12, pp. 21-23, (2020)
  • [3] ZHA Liugen, XIE Chunping, Prediction of cotten yarn quality based on four-layer BP neural network, Journal of Textile Research, 40, 1, pp. 52-54, (2019)
  • [4] JIN Shoufeng, HOU Yize, JIAO Hang, Et al., An improved AlexNet model for fleece fabric quality inspection, Journal of Textile Research, 43, 6, pp. 133-139, (2022)
  • [5] GUO Bo, LU Wentao, YU Xuyi, Et al., Fabric defect detection algorithm based on improved YOL0v5 model, Journal of Zhejiang Sci-Tech University (Natural Science), 47, 5, pp. 755-763, (2022)
  • [6] WANG Yuliang, YU Weidong, Quality forecast and control for weaving processing, Wool Textile Journal, 10, pp. 13-16, (2004)
  • [7] WANG Yuliang, YU Weidong, Forecasting technique of BP neural network in weaving processing of wool worsted, Journal of Donghua University (Natural Science), 1, pp. 84-88, (2006)
  • [8] ZHANG Zhuying, HUANG Yulong, WANG Hanhu, A new KNN classfication approach [J], Computer Science, 3, pp. 170-172, (2008)
  • [9] WANG Rongbing, XU Hongyan, LI Bo, Et al., Research on method of determining hidden layer nodes in BP neural network [J], Computer Technology and Development, 28, 4, (2018)
  • [10] LI Aiguo, QIN Zheng, BAO Fumin, Et al., Partical swarm optimization algorithms [J], Computer Engineering and Applications, 21, pp. 1-3, (2002)