Journal of Textile Research ›› 2025, Vol. 46 ›› Issue (08): 111-119.doi: 10.13475/j.fzxb.20240703101

• Textile Engineering • Previous Articles     Next Articles

Detection and classification of jacquard knitted fabric defects based on gray statistics and improve arithmetic optimization algorithm classifier

ZHANG Yongchao1,2, SHI Weimin1(), GUO Bin3, TU Jiajia2, LI Yang2   

  1. 1. Key Laboratory of Modern Textile Machinery & Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, Zhejiang 310018, China
    2. School of Automation, Zhejiang Mechanical and Electrical Vocational and Technical College, Hangzhou, Zhejiang 310053, China
    3. Zhejiang Key Laboratory of Digital Precision Measurement Technology Research, Zhejiang Institute of Quality Sciences, Hangzhou, Zhejiang 310018, China
  • Received:2024-07-15 Revised:2025-05-28 Online:2025-08-15 Published:2025-08-15
  • Contact: SHI Weimin E-mail:swm@zstu.edu.cn

Abstract:

Objective Jacquard knitting fabric with its diversified pattern design can meet consumers’ personalized fashion and pursuit. However, defects in the production process would seriously damage the integrity of the pattern and reduce the aesthetics of products. Due to the pattern color and edge texture, it is difficult to distinguish the normal fabric texture from the minor defects by the traditional detection method, which increases the detection difficulty and complexity. Therefore, strengthening the quality monitoring of jacquard knitting products and identifying the defects on the fabric quickly and accurately become the key link to ensure product quality.

Method Based on the obvious difference between the defect area and texture area of jacquard knitted fabric in the gray value and its distribution, the information entropy and statistics were introduced into the two-dimension feature extraction technology. The weighting fusion mechanism was designed to integrate the multi-source features, so that the optimal reconstruction of features and the geometric outline and statistical feature framework for capturing defects were achieved. These features were used as input data for the support vector machine(SVM) classifier. To optimize the performance of SVM, a new algorithm integrating arithmetic optimization and Levy flight strategy was introduced.

Results The information entropy feature and feature quantity feature were used to represent the defect image on the gray scale. The location of defects was determined by analyzing the difference between texture and defect in spatial distribution. The detection process was mainly composed of three modules. The image pre-processing module was responsible for the preliminary processing of the input jacquard fabric image, including noise removal, contrast enhancement and other steps, so as to improve the image quality and lay a foundation for the subsequent feature extraction. The feature extraction module was the algorithm using information entropy feature and statistical feature to divide the texture area and defect area by weighting fusion dual feature area, and extract information that can represent defect characteristics. The classification module was based on the feature data provided by the feature extraction module, using the improved SVM classification algorithm to classify the defects and mark the position of the defects. High detection rate was achieved for broken yarns and holes, but low detection rate was obtained for low strength defects such as knot and yarn jumping. The combined algorithm significantly improved the detection rate after image pre-processing. Single-feature algorithm was efficient for specific defects, but the algorithm in this paper maintained a high detection rate for all kinds of defects, and verified the effectiveness and robustness of its pretreatment and detection algorithm for complex texture and defects of jacquard knitted fabric. Under the input condition of multiple characteristic parameters combination, the Levy optimization algorithm-support vector machine(LAOA-SVM) classification algorithm and its comparison algorithm designed in this paper showed the highest classification accuracy. The LAOA-SVM classifier performed well on the independent test set, with an accuracy rate of 99.4%, and the time of 0.93 s was less than that of other methods, indicating that the algorithm was efficient and accurate in the fabric defect classification task. The LAOA-SVM classifier showed good classification performance after training, with only a little misjudgment between yarn jumping and knot. Up to 100% accuracy was reached for other fabric defect classifications. Especially for the regional defects with obvious similarity in characteristics, such as yarn breaking and hole breaking, the advantage of LAOA-SVM was highlighted. Other classification algorithms demonstrated a high misclassification rate when dealing with different types of defects. This result strongly demonstrated the high efficiency of LAOA-SVM classifier in fabric defect recognition.

Conclusion The image pre-processing stage effectively enhances the contrast between the defect and the texture through grayscale and filter denoising. Then, the information entropy and statistical features are used to extract the defect information, and the feature optimization is achieved by double-feature weighting fusion. The designed LAOA-SVM classification algorithm and its comparison algorithm show the highest classification accuracy. The LAOA-SVM classifier performs well on the independent test set, with an accuracy rate of 99.4%, and the time of 0.93 s is less than that of other methods, which indicates that the algorithm is efficient and accurate in the fabric defect classification task. The experimental results show that, compared with the prior art, the method performs excellently in the detection of defects such as holes, flying sparks, yarn jumping, greasy dirt and yarn breaking, with a detection rate of up to 99%, and a classification accuracy of 99.4%, especially when dealing with defects with similar characteristics.

Key words: jacquard knitted fabric defect, grayscale statistics, information entropy feature, statistical characteristic, weighted fusion, detection and classification

CLC Number: 

  • TS181.9

Fig.1

Defect detection process"

Fig.2

Fabric grayscale image filtering denoising and fabric gradient distribution during iteration process"

Fig.3

Extraction results of different statistical measures of gray level co-occurrence matrix"

Fig.4

Comparison of defect detection desults"

Tab.1

Comparison of detection accuracy of each defectdetection algorithm"

检测方法 织物图像 检出率/% 误检率/% 漏检率/% 准确率/%
文献[12] 含疵点 79.8 16.1 4.1 79.5
正常 78.3 21.7
文献[13] 含疵点 82.4 11.4 6.2 82.6
正常 83.3 16.7
本文 含疵点 99.0 0.7 0.3 98.5
正常 96.7 3.3

Tab.2

Test results of various classification algorithms"

分类
方法
几何特征 统计特征 缺陷图 组合特征
准确
率/%
时间/
s
准确
率/%
时间/
s
准确
率/%
时间/
s
准确
率/%
时间/
s
SVM 81.9 1.84 78.6 1.76 75.3 2.38 89.6 2.03
PSO-SVM 87.8 1.46 86.1 1.39 85.3 2.04 94.4 1.59
GA-SVM 85.3 1.17 83.6 1.14 81.9 1.76 92.8 1.34
AOA-SVM 80.3 1.02 88.6 0.99 86.9 1.87 96.9 1.16
LAOA-SVM 91.9 0.74 89.4 0.68 88.6 1.14 99.4 0.93

Fig.5

Classification performance of various classification algorithms on the test set"

Fig.6

Experimental results of 10 classification algorithms"

[1] 胡越杰. 基于深度学习的纬编针织物疵点检测研究[D]. 无锡: 江南大学, 2022:9-10.
HU Yuejie. Research on defect detection of weft knitted fabric based on deep learning[D]. Wuxi: Jiangnan University, 2022:9-10.
[2] 杨婷, 胡佳琳, 唐泽华, 等. 基于形态学处理的提花针织物纹样相似性识别[J]. 毛纺科技, 2023, 51(11): 85-90.
YANG Ting, HU Jialin, TANG Zehua, et al. Pattern similarity recognition of jacquard knitted fabricsbased on morphological processing[J]. Wool Textile Technology, 2023, 51 (11): 85-90,.
[3] 刘亚, 张团善, 王恩芝. 基于高效边缘检测的彩色图像灰度化算法[J]. 轻工机械, 2022, 40(6):52-58.
LIU Ya, ZHANG Tuanshan, WANG Enzhi. Color image decolorization algorithm based on efficient edge detec-tion[J]. Light Industry Machinery, 2022, 40 (6): 52-58.
[4] 胡明珠, 宋晓霞. 基于误差扩散算法的针织提花织物研究[J]. 针织工业, 2021(8): 10-13.
HU Mingzhu, SONG Xiaoxia. Error diffusion algorithm based knitted jacquard fabric study[J]. Knitting Industries, 2021(8): 10-13.
[5] BODNAROVA A, BENNAMOUN M, LATHAM S J, et al. Flaw detection in jacquard fabrics using Gabor filters[J]. International Society for Optics and Photo-nics, 1999(3837): 254-265.
[6] NGAN Y, PANG G, YUNG S, et al. Defect detection on patterned jacquard fabric[J]. IEEE Computer Society, 2003(3): 163-168.
[7] LI W, XUE W, CHENG L. Intelligent detection of defects of yarn-dyed fabrics by energy-based local binary patterns[J]. Textile Research Journal, 2012, 82(19): 1960-1972.
[8] ZHU D, PAN R, GAO W, et al. Yarn-dyed fabric defect detection based on autocorrelation function and GLCM[J]. Autex Research Journal, 2015, 15(3): 226-232.
[9] 李敏, 崔树芹, 陈佳. 应用视觉显著性的小提花织物疵点检测[J]. 纺织学报, 2016, 37(12): 38-42.
LI Min, CUI Shuqin, CHEN Jia. Defect detection of small jacquard fabrics using visual saliency[J]. Journal of Textile Research, 2016, 37(12): 38-42.
[10] ZHANG Bo, TANG Chunming. A method for defect detection of yarn-dyed fabric based on frequency domain filtering and similarity measurement[J]. Autex Research Journal, 2019, 19(3): 257-262.
[11] 周文明, 周建, 潘如如. 应用上下文视觉显著性的色织物疵点检测[J]. 纺织学报, 2020, 41(8): 39-44.
ZHOU Wenming, ZHOU Jian, PAN Ruru. Color fabric defect detection using contextual visual saliency[J]. Journal of Textiles Research, 2020, 41(8): 39-44.
[12] 王春妍, 郭宇, 张晓丽. 基于组合特征和GA_SVM的织物疵点分类[J]. 纺织科技进展, 2024, 46(10): 20-23.
WANG Chunyan, GUO Yu, ZHANG Xiaoli. Fabric defect classification based on combined features and GA-SVM[J] Progress in Textile Science and Technology, 2024, 46(10): 20-23.
[13] 杨晓波. 基于无抽样离散小波变换的复杂纹理织物疵点检测[J]. 毛纺科技, 2024, 52(2): 133-138.
YANG Xiaobo. Complex texture fabric defect detection based on non sampling discrete wavelet transform[J]. Wool Textile Technology, 2024, 52(2): 133-138.
[1] LI Yang, ZHANG Yongchao, PENG Laihu, HU Xudong, YUAN Yanhong. Fabric defect detection based on improved cross-scene Beetle global search algorithm [J]. Journal of Textile Research, 2024, 45(10): 89-94.
[2] ZHANG Qi, ZUO Lujiao, TU Jiani, NIE Meiting. Numerical simulation of air permeability of warp-knitted jacquard shoe upper materials [J]. Journal of Textile Research, 2024, 45(09): 78-83.
[3] PENG Laihu, HOU Liangmei, QI Yubao, RU Xin, LIU Jianting. Yarn tension signal processing method based on adaptive Loess principle [J]. Journal of Textile Research, 2024, 45(02): 246-254.
[4] PENG Laihu, LIU Jianting, LI Yang, QI Yubao, LI Jianqiang, MAO Muquan. Contact yarn tension measurement method based on convolutional filtering [J]. Journal of Textile Research, 2023, 44(08): 73-80.
[5] SHI Weimin, JIAN Qiang, LI Jianqiang, RU Xin, PENG Laihu. Defect detection of jacquard knitted fabrics based on nonlinear diffusion and multi-feature fusion [J]. Journal of Textile Research, 2023, 44(07): 86-94.
[6] LI Yang, PENG Laihu, LIU Jianting, HU Xudong, ZHENG Qiuyang. Measurement of yarn tension in axial direction based on transverse vibration frequency [J]. Journal of Textile Research, 2023, 44(06): 72-77.
[7] LI Yang, PENG Laihu, LI Jianqiang, LIU Jianting, ZHENG Qiuyang, HU Xudong. Fabric defect detection based on deep-belief network [J]. Journal of Textile Research, 2023, 44(02): 143-150.
[8] DU Shuai, LI Yueyang, WANG Mengtao, LUO Haichi, JIANG Gaoming. Fabric defect detection based on improved local adaptive contrast method [J]. Journal of Textile Research, 2019, 40(02): 38-44.
[9] . Geometric model design and integrated formation algorithm of integrally formed socks based on human foot features [J]. Journal of Textile Research, 2018, 39(12): 53-58.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!