Journal of Textile Research ›› 2023, Vol. 44 ›› Issue (10): 143-148.doi: 10.13475/j.fzxb.20221105601

• Apparel Engineering • Previous Articles     Next Articles

Human clothing color recognition based on ClothResNet model

HUANG Yueyue, CHEN Xiao, WANG Haiyan(), YAO Haiyang   

  1. College of Electronic Information and Artificial Intelligence, Shaanxi University of Science and Technology, Xi'an, Shaanxi 710016, China
  • Received:2022-11-21 Revised:2023-04-08 Online:2023-10-15 Published:2023-12-07

Abstract:

Objective Color recognition of human clothing has become a topic with widespread interest recent years due to its potential to address various issues such as clothing retail, smart security, and fashion recommendation. An accurate color recognition model for human clothing can greatly enhance user experience and service quality. However, accurately recognizing the color of clothing on a human body in images can be challenging due to the multi-angle and multi-pose nature of the clothing, as well as the influence of the material and texture of the clothing, the color and texture of the human body background, and other factors. Therefore, constructing an efficient and accurate human clothing color recognition model is important and necessary to be solved in order to improve recognition accuracy and stability.

Method To enable color recognition of human clothing, a human clothing attribute dataset called pcaparsing was first created. Then, an end-to-end convolutional neural network model called ClothResNet was constructed, which used ResNet18 as the backbone network. The model also featured an optimized pyramid pooling module responsible for capturing multi-level semantic information and a coordinate attention mechanism with a focus on the contour information of human clothing. Additionally, atrous convolution was used to improve network efficiency. The dataset was split into training and testing data at an 8∶2 ratio, with 80% of the dataset used for training the ClothResNet model and the remaining 20% used for testing its effectiveness. Comparative experiments were conducted between the traditional clothing color recognition methods of K-means and Hog-KNN, the deep learning clothing color recognition method of CNN, and the method proposed in this paper. Ablation experiments were also conducted to demonstrate the effectiveness of selecting ResNet18 as the backbone network, expanding the dataset, and adding each module to the model. Overall, the study aimed to improve the accuracy and efficiency of color recognition for human clothing.

Results This study aimed to recognize the color of human clothing in natural scene images using a convolutional neural network algorithm. The use of proposed network model, ClothResNet, achieved 94.49% accuracy rate in recognizing 12 different colors, demonstrating the feasibility and effectiveness of the deep learning method compared to traditional methods. To evaluate the effectiveness of the ClothResNet model, comparative experiments were conducted with traditional methods, and ablation experiments were designed and carried out. Expanding the dataset significantly improved the evaluation indicators of each network (Tab. 1 and Tab. 2). Furthermore, the addition of the pyramid pooling block and coordinated attention module further enhanced the performance of the model. These ablation experiments demonstrated the effectiveness of the extended dataset and network modules, laying the foundation for future work on automatic color recognition of human clothing. Overall, this study highlights the potential of deep learning methods for accurately and efficiently recognizing clothing colors in natural scene images.

Conclusion In this study, a novel human clothing color recognition model called ClothResNet was proposed, which utilizes ResNet18 as the backbone network and incorporates an improved pyramid pooling module and a coordinate attention mechanism. By combining the strengths of an end-to-end convolutional neural network, this model has led improved recognition of various human clothing colors. Through a series of experiments, we verified the feasibility and effectiveness of our proposed method. This approach provides new ideas for the development of smart clothing, although there is still room for improvement. For instance, there are far more than 12 colors of clothing in reality, so further research is needed to develop methods for recognizing a broader range of colors.

Key words: human clothing color recognition, residual network, optimized pyramid pooling, ClothResNet model

CLC Number: 

  • TS101

Fig. 1

Sample image of dataset. (a) Sample 1; (b)Sample 2;(c) Sample 3;(d) Sample 4"

Fig. 2

Data expansion example"

Fig. 3

ClothResNet network structure"

Fig. 4

Optimized pyramid pooled network structure"

Fig. 5

Coordinate attention module"

Fig. 6

Comparison diagram of color recognition accuracy of K-means,Hog-KNN, CNN and ClothResNet"

Tab. 1

Comparison of ablation experiments with original dataset"

模型 精确率/% 平均交并比/% 参数量/MB
ResNet18 65.40 32.50 51.74
ResNet18+PP 68.30 40.30 52.73
ResNet18+OPP 71.67 46.80 62.08
ResNet18+CA 70.24 36.37 53.09
ClothResNet 90.20 73.20 62.15

Tab. 2

Comparison of ablation experiments with extended dataset"

模型 精确率/% 平均交并比/% 参数量/MB
ResNet18 68.90 37.5 51.74
AlexNet 67.60 37.4 233.08
VGG11 62.10 35.4 506.83
ResNet18+PP 71.50 45.2 52.73
ResNet18+OPP 76.90 50.2 62.08
ResNet18+CA 75.35 40.7 53.09
ClothResNet 94.49 76.0 62.15
[1] YANG X, YUAN S, TIAN Y L. Assistive clothing pattern recognition for visually impaired people[J]. IEEE Transactions on Human-Machine Systems, 2014, 44(2): 234-243.
doi: 10.1109/THMS.2014.2302814
[2] HIDAYATI S C, YOU C W, CHENG W H, et al. Learning and recognition of clothing genres from full-body images[J]. IEEE Transactions on Cybernetics, 2017, 48(5): 1647-1659.
doi: 10.1109/TCYB.2017.2712634
[3] 许倩, 陈敏之. 基于深度学习的服装丝缕平衡性评价系统[J]. 纺织学报, 2019, 40(10): 191-195.
XU Qian, CHEN Minzhi. An evaluation system for the balance of clothing threads based on deep learning[J]. Journal of Textile Research, 2019, 40(10): 191-195.
doi: 10.1177/004051757004000213
[4] 江学为, 田润雨, 卢方骁, 等. 基于模拟评分的服装推荐改进算法[J]. 纺织学报, 2021, 42(12): 138-144.
JIANG Xuewei, TIAN Runyu, LU Fangxiao, et al. An improved algorithm for clothing recommendation based on simulated scoring[J]. Journal of Textile Science, 2021, 42(12): 138-144.
[5] CHANG Y H, ZHANG Y Y. Deep learning for clothing style recognition using YOLOv5[J]. Micromachines, 2022. DOI: 10.3390/mi13101678.
[6] 沈建冬, 陈恒. 融合HOG和颜色特征的人体姿态估计新算法[J]. 计算机工程与应用, 2017, 53(21): 190-194.
doi: 10.3778/j.issn.1002-8331.1606-0319
SHEN Jiandong, CHEN Heng. A new algorithm for human pose estimation based on hog and color features[J]. Computer Engineering and Applications, 2017, 53(21): 190-194.
doi: 10.3778/j.issn.1002-8331.1606-0319
[7] 刘正东, 刘以涵, 王首人. 西装识别的深度学习方法[J]. 纺织学报, 2019, 40(4): 158-164.
LIU Zhengdong, LIU Yihan, WANG Shouren. Deep learning method for suit recognition[J]. Journal of Textile Research, 2019, 40(4): 158-164.
doi: 10.1177/004051757004000209
[8] LIKAS A, VLASSIS N, VERBEEK J J. The global K-means clustering algorithm[J]. Pattern Recognition, 2003, 36(2): 451-461.
doi: 10.1016/S0031-3203(02)00060-2
[9] COMANICIU D, MEER P. Mean shift: a robust approach toward feature space analysis[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2002, 24(5): 603-619.
doi: 10.1109/34.1000236
[10] IVANOV A Y, BORZUNOV G I, KOGOS K. Recognition and identification of the clothes in the photo or video using neural networks[C]// 2018 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (EIConRus). Petersburg:IEEE, 2018: 1513-1516.
[11] ROY M A. Clothing recognition using deep learning techniques[D]. Bangkok: Asian Institute of Technology, 2019: 1-30.
[12] LIU Z, LUO P, QIU S, et al. Deepfashion: powering robust clothes recognition and retrieval with rich annotations[C]// Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas: IEEE, 2016: 1096-1104.
[13] CHEN Bunyanon C, JIANG J H. Clothing classification with multi-attribute using convolutional neural net-work[C]// Proceedings of International Computer Symposium. Singapore: Springer, 2018: 190-196.
[14] LIANG X, LIU S, SHEN X, et al. Deep human parsing with active template regression[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2015, 37(12): 2402-2414.
doi: 10.1109/TPAMI.2015.2408360 pmid: 26539846
[1] LI Qiyang, JI Chengchang, CHI Xinfu, SUN Yize. Braiding strategy and yarn trajectory prediction of large size special-shaped structure mandrel [J]. Journal of Textile Research, 2023, 44(10): 188-195.
[2] ZHANG Zifan, LI Pengfei, WANG Jiannan, XU Jianmei. Research progress in silk fibroin drug-loaded nanoparticles [J]. Journal of Textile Research, 2023, 44(10): 205-213.
[3] JIANG Shaohua, LIANG Shuaitong, PEI Liujun, ZHANG Hongjuan, WANG Jiping. Analysis of fabric dyeing intrusion kinetics based on probability density function [J]. Journal of Textile Research, 2023, 44(10): 90-97.
[4] YAO Shuangshuang, FU Shaoju, ZHANG Peihua, SUN Xiuli. Preparation and properties of regenerated silk fibroin/polyvinyl alcohol blended nanofiber membranes with predesigned orientation [J]. Journal of Textile Research, 2023, 44(09): 11-19.
[5] LUO Yuanze, DAI Mengnan, LI Meng, YU Yangxiao, WANG Jiannan. Application of silk fibroin-based biomaterials for drug delivery [J]. Journal of Textile Research, 2023, 44(09): 213-222.
[6] WANG Zexing, ZHOU Hengshu, YANG Min, TAN Dongyi. Deformation characteristics of jute fabric/polyethylene composite under different cyclic loading paths [J]. Journal of Textile Research, 2023, 44(09): 99-107.
[7] AN Xue, LIU Taiqi, LI Yan, ZHAO Xiaolong. Preparation and filtration properties of firmly bonded multi-layer nanocomposite material [J]. Journal of Textile Research, 2023, 44(08): 50-56.
[8] FU Han, HU Feng, GONG Jie, YU Lianqing. Defect reconstruction algorithm for fabric defect detection [J]. Journal of Textile Research, 2023, 44(07): 103-109.
[9] LI Long, ZHANG Xian, WU Lei. Research progress in preparation and application of conductive yarn materials [J]. Journal of Textile Research, 2023, 44(07): 214-221.
[10] CHENG Yue, ZUO Han, AN Qi, LI Dawei, ZHANG Wei, FU Yijun. Holding force of non-absorbable barbed sutures and its influencing factors [J]. Journal of Textile Research, 2023, 44(06): 66-71.
[11] YANG Hongmai, ZHANG Xiaodong, YAN Ning, ZHU Linlin, LI Na'na. Robustness algorithm for online yarn breakage detection in warp knitting machines [J]. Journal of Textile Research, 2023, 44(05): 139-146.
[12] 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.
[13] XIE Penghao, LI Yong, CHEN Xiaochuan, WANG Jun. Fractal-based modeling of whiskers and simulation of drafting process [J]. Journal of Textile Research, 2023, 44(04): 55-62.
[14] LIU Dongyan, ZHENG Chengyan, WANG Xiaoxu, QIAN Kun, ZHANG Diantang. Projectile penetration mechanism of ultra-high molecular weight polyethylene fabric/polyurea flexible composites [J]. Journal of Textile Research, 2023, 44(03): 79-87.
[15] JIANG Bochen, WANG Yue, WANG Fujun, LIN Jing, GUO Aijun, WANG Lu, GUAN Guoping. Correlation of braiding parameters and mechanical properties of mechanically braided integrated esophageal covered stents [J]. Journal of Textile Research, 2023, 44(03): 88-95.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!