Journal of Textile Research ›› 2023, Vol. 44 ›› Issue (01): 194-200.doi: 10.13475/j.fzxb.20211204607

• Machinery & Accessories • Previous Articles     Next Articles

Detection of cheese yarn bobbin varieties based on support vector machine

MA Chuanxu, ZHANG Ning, PAN Ruru()   

  1. Key Laboratory of Eco-Textiles (Jiangnan University), Ministry of Education, Wuxi, Jiangsu 214122, China
  • Received:2021-12-22 Revised:2022-10-08 Online:2023-01-15 Published:2023-02-16

Abstract:

Objective Aiming at variety detection of cheese yarn on the transport guide rail in practical situations, this paper proposed an automatic solution based on image processing. Based on the characteristics of bobbin, a yarn variety detection method based on bobbin image classification was proposed to replace subjective judgment. The method proposed in this paper is aimed to reduce error rate of manual detection and labor costs, and to improve the production efficiency of spinning.
Method In order to facilitate feature extraction, the original image of cheese yarn was processed by the image segmentation method to obtain the bobbin area. Then, the segmented image of the annular bobbin was expanded into a square image by polar coordinate transformation. Color and texture features were extracted from the expanded image and optimized based on feature classification experiments and the elapsed time to jointly characterize the bobbin image.
Results The Otsu threshold method was adopted to find the gray threshold of the bobbin foreground and background, and a binary image was obtained based on the determined threshold. The image contour was used to filter non-target regions in the binary image by setting the area and perimeter threshold of the bobbin region. The binary image containing only the region of the bobbin was adopted as a mask to segment the yarn tube from the original cheese yarn image. For the segmented annular yarn tube, the polar coordinate transformation was applied to transform it into a rectangular image with the circumference of the outer circle and the width of the outer circle. Bobbin image expanded after threshold segmentation provided data support for subsequent research. The non-uniform quantized color histogram features with H:S:V=8:3:3 were optimized by the classification accuracy and the elapsed time of feature extraction (Tab.1). The features obtained by the preferred color quantization method demonstrated satisfactory classification effect on different types of bobbin images with the acceptable calculation time. The performance of different local binary pattern operators was optimized by the bobbin classification experiments. The operator of rotation invariant equivalent LBP16,2 with the sampling point of 16 and the sampling radius of 2 was optimized to extract the texture features of the bobbin image (Tab.2). The experiments using the fusion feature were performed on bobbin with the same color, the same pattern, different colors and patterns and the results proved that the fusion feature is able to adapt to the bobbin classification detection task in the three cases (Tab.3). The classification results of different feature combinations under the same classification model and the performance of fusion features on different classifiers proved that the method of combining color and texture and support vector machine classification model is effective for bobbin detection (Tab.4, Tab.5).
Conclusion The combination of Otsu threshold method and image contour is successfully used to segment the bobbin from the original image, and it is shown that the bobbin image expanded by polar coordinate transformation can facilitate feature extraction. The optimal technique to characterize the color information of the bobbin image is proven to be the non-uniform quantization color histogram feature of H:S:V= 8:3:3. The preferred way to characterize the texture features of the bobbin image is the histogram feature of the rotation invariant equivalent LBP16,2. The fusion of the two features can deal with the classification detection tasks of the bobbin in the same color, the same pattern, and different colors and patterns. Different classifiers were compared by the experiments and support vector machine was selected as the optimal classification model because of the best performance. The classification accuracy of this method is 100% in the same pattern of star pattern bobbin, black pattern bobbin and mixed pattern bobbin, which is the highest among different methods. The proposed method has practical value for variety detection of bobbin on the transport guide rail.

Key words: bobbin, support vector machine, polar coordinate transformation, feature extraction, image classification, variety detection

CLC Number: 

  • TS101.9

Fig.1

Cheese yarn image acquisition device"

Fig.2

Preprocessing images at each stage. (a) Original image of cheese yarn; (b) Segmentation diagram of bobbin color ring; (c) Expansion diagram of bobbin color ring"

Fig.3

LBP operators of different scales"

Fig.4

SVM classification diagram"

Fig.5

Schematic diagram of K-fold cross validation"

Fig.6

Flow chart of bobbin variety detection"

Fig.7

Rectangular expansion diagrams of experimental bobbin images. (a) Half black; (b) M black; (c) Plum black; (d) Point black; (e) Star black; (f) Star green; (g) Star orange; (h) Star red"

Tab.1

Color quantization mode optimization"

量化方式(H:S:V) 准确率/% 特征提取用时/ms
8:3:3 100 15.6
16:4:4 100 18.7
32:8:8 100 25.1

Tab.2

Local binary pattern operator optimization"

LBP算子 准确率/% 特征提取用时/ms
LBP8,1 56.67 4.7
LBP16,2 96.67 7.8
LBP24,3 94.00 14.1

Tab.3

Parameters optimization and classification results of support vector machine"

特征提取 样本 参数 准确率/%
C γ
融合特征 A 2.069 2.069 100
B 0.346 1.035 100
A+B 2.069 3.104 100

Tab.4

Classification results of bobbins with different feature combinations"

特征组合 参数 准确率/%
C γ
CH+LBP 2.069 3.104 100.00
CM+LBP 4.138 3.104 100.00
CH+GLCM 10.000 6.207 97.92
CM+GLCM 7.931 20.690 97.08

Tab.5

Classification results of bobbins by different classifiers"

分类器 参数 准确率/%
KNN n=1 98.75
DT d=39 96.25
SVM C=2.069,γ=3.104 100.00
[1] 朱苏康, 高卫东. 机织学[M]. 北京: 中国纺织出版社, 2008: 2-3.
ZHU Sukang, GAO Weidong. Weaving science[M]. Beijing: China Textile & Apparel Press, 2008: 2-3.
[2] 任慧娟, 金守峰, 顾金芋. 基于颜色特征的筒纱分拣机器人识别定位方法[J]. 轻工机械, 2020, 38(4): 60-62.
REN Huijuan, JIN Shoufeng, GU Jinyu. Identification and positioning method of cheese sorting robot based on color feature[J]. Light Industry Machinery, 2020, 38(4): 60-62.
[3] 陈纪旸. 筒纱识别追溯管理系统的研究与设计[D]. 济南: 山东大学, 2017: 9-12.
CHEN Jiyang. Research and design of cheese information tracking system[D]. Ji'nan: Shandong University, 2017: 9-12.
[4] 倪弈棋, 管声启, 管宇灿, 等. 基于改进的SSD深度学习算法的双目视觉纱筒识别定位[J]. 纺织高校基础科学学报, 2021, 34(2): 60-65.
NI Yiqi, GUAN Shengqi, GUAN Yucan, et al. Binocular vision bobbin identification and positioning based on improved SSD deep learning algorithm[J]. Basic Sciences Journal of Textile Universities, 2021, 34(2): 60-65.
[5] 应龙, 吴玲达, 栾悉道. 基于动态局部颜色直方图的图像检索[J]. 系统工程理论与实践, 2006, 26(11): 94-95.
YING Long, WU Lingda, RUAN Xidao. Image retrieval based on dynamic local color histogram[J]. Systems Engineering-Theory & Practice, 2006, 26(11): 94-95.
[6] YUE Jun, LI Zhenbo, LIU Lu, et al. Content-based image retrieval using color and texture fused features[J]. Mathematical and Computer Modelling, 2011, 54(3): 1121-1127.
doi: 10.1016/j.mcm.2010.11.044
[7] TIMO O, MATTI P, DAVID H. A comparative study of texture measures with classification based on feature[J]. Pattern Recognition, 1996, 29(1): 51-58.
doi: 10.1016/0031-3203(95)00067-4
[8] ROBERT M, HARALICK K, SHANMUGAM I D. Textural features for image classification[J]. Transactions on Systems Man and Cybernetics, 1973, 3(6): 611-621.
[9] FAWWAZ T, ULABY F, KOUYATE B, et al. Textural information in SAR images[J]. Transactions on Geoscience and Remote Sensing, 1986, 24(2): 235-245.
[10] 罗来平, 宫辉力, 刘先林. 基于决策树算法的遥感图像分类研究与实现[J]. 计算机应用研究, 2007, 24(1): 207-209.
LUO Laiping, GONG Huili, LIU Xianlin. Research and implementation of classification in remote sensing image based on decision tree algorithm[J]. Application Research of Computers, 2007, 24(1): 207-209.
[11] 万华林. 基于支持向量机的图像语义分类[J]. 软件学报, 2003, 14(11): 1891-1899.
WAN Huanlin. Image semantic classification by using SVM[J]. Journal of Software, 2003, 14(11):1891-1899.
[12] 刘沐黎, 袁理, 杨亚莉, 等. 色纺机织物组织结构对其呈色特性的影响[J]. 纺织学报, 2020, 41(9): 45-52.
LIU Muli, YUAN Li, YANG Yali, et al. Influence of fabric weaves on characteristics of colored patterns in color-woven fabrics[J]. Journal of Textile Research, 2020, 41(9): 45-52.
[13] 张宁, 潘如如, 高卫东. 采用图像处理的织物缝纫平整度自动评估[J]. 纺织学报, 2017, 38(4): 145-150.
ZHANG Ning, PAN Ruru, GAO Weidong. Automatic seam-puckering evaluation using image processing[J]. Journal of Textile Research, 2017, 38(4): 145-150.
[1] JIN Guanxiu, ZHU Chengyan. Prediction of pore dimension in composite nonwovens based on image simulation and support vector machine [J]. Journal of Textile Research, 2022, 43(12): 75-81.
[2] TU Jiajia, SUN Lei, MAO Huimin, DAI Ning, ZHU Wanzhen, SHI Weimin. Automatic bobbin changing technology for circular weft knitting machines [J]. Journal of Textile Research, 2022, 43(07): 178-185.
[3] XU Zengbo, ZHANG Ling, ZHANG Yanhong, CHEN Guiqing. Research on clothing collar types based on complex network extraction and support vector machine classification [J]. Journal of Textile Research, 2021, 42(06): 146-152.
[4] ZHENG Xiaoping, LIU Chengxia. Objective evaluation of woven garment bagging performance by laser measurement [J]. Journal of Textile Research, 2021, 42(05): 143-149.
[5] LUO Hailin, FU Yaqin, LIU Ke. Structural design of automatic silk reeling machine for direct silk winding [J]. Journal of Textile Research, 2020, 41(08): 115-120.
[6] XIA Haibang, HUANG Hongyun, DING Zuohua. Clothing comfort evaluation based on transfer learning and support vector machine [J]. Journal of Textile Research, 2020, 41(06): 125-131.
[7] GONG Xue, YUAN Li, LIU Junping, YANG Yali, LIU Muli, KE Zhengtao, YAN Yuchen. Recognition of colored spun fabric interlacing point based on mixed color space and multiple kernel learning [J]. Journal of Textile Research, 2020, 41(05): 58-65.
[8] WANG Hui, SUN Jie, DING Xiaojun, LONG Ying, ZOU Fengyuan. Comparison of feature extracting and matching methods for fabric patterns [J]. Journal of Textile Research, 2020, 41(04): 45-50.
[9] SHI Kangjun, WANG Jing'an, GAO Weidong. Objective smoothness evaluation of fabric based on Fourier spectral features [J]. Journal of Textile Research, 2019, 40(11): 50-56.
[10] TAO Kaixin, YU Chengbing, HOU Qi'ao, WU Congjie, LIU Yinfeng. Wet-steaming dyeing prediction model of cotton knitted fabric with reactive dye based on least squares support vector machine [J]. Journal of Textile Research, 2019, 40(07): 169-173.
[11] JING Junfeng, ZHANG Xingxing. Fiber glass bobbin yarn hairiness detection based on machine vision [J]. Journal of Textile Research, 2019, 40(05): 157-162.
[12] . Inspection of remaining yarn on bobbin based on odd Gabor filters [J]. Journal of Textile Research, 2018, 39(10): 138-142.
[13] . Fabric defect inspection based on modified discriminant complete local binary pattern and lattice segmentation [J]. Journal of Textile Research, 2018, 39(09): 57-64.
[14] . Single component textile identification based on continuous projection algorithm and least squares support vector machine [J]. JOURNAL OF TEXTILE RESEARCH, 2018, 39(08): 46-51.
[15] . Prediction on filtration performance of melt blown nonwoven fabric based on rough set theory and support vector machine [J]. JOURNAL OF TEXTILE RESEARCH, 2018, 39(06): 142-148.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!