纺织学报 ›› 2023, Vol. 44 ›› Issue (05): 184-190.doi: 10.13475/j.fzxb.20220406201

• 服装工程 • 上一篇    下一篇

典型传统服饰图像的在线识别系统

颜丙义1,2,3, 侯金1,2,3(), 黄启煜1,2,3, 杨汉城1,2,3, 田进1,2,3, 杨春勇1,2,3   

  1. 1.中南民族大学 电子信息工程学院, 湖北 武汉 430074
    2.智能无线通信湖北省重点实验室, 湖北 武汉 430074
    3.智能物联技术湖北省工程研究中心, 湖北 武汉 430074
  • 收稿日期:2022-04-19 修回日期:2022-11-18 出版日期:2023-05-15 发布日期:2023-06-09
  • 通讯作者: 侯金(1981—),男,教授,博士。主要研究方向为光电检测与图像处理。E-mail:houjin@mail.scuec.edu.cn。
  • 作者简介:颜丙义(1998—),男,硕士生。主要研究方向为计算机视觉。
  • 基金资助:
    国家自然科学基金项目(11504435);国家自然科学基金项目(62171478);中央高校基本科研业务费专项资金项目(CZY22011)

Online recognition system for typical traditional costume images

YAN Bingyi1,2,3, HOU Jin1,2,3(), HUANG Qiyu1,2,3, YANG Hancheng1,2,3, TIAN Jin1,2,3, YANG Chunyong1,2,3   

  1. 1. College of Electronics and Information Engineering, South-Central Minzu University, Wuhan, Hubei 430074, China
    2. Hubei Key Laboratory of Intelligent Wireless Communications, Wuhan, Hubei 430074, China
    3. Hubei Engineering Research Center of Intelligent Internet of Things Technology, Wuhan, Hubei 430074, China
  • Received:2022-04-19 Revised:2022-11-18 Published:2023-05-15 Online:2023-06-09

摘要:

为探索传统服饰文化的智能化保护手段和提高传统服饰文化的传播效率,以加权投票法集成多注意力机制的传统服饰识别算法为核心,构建了一个典型传统服饰图像的在线识别系统。首先,通过书籍扫描和线下拍摄等手段收集传统服饰图像数据,再联合多背景替换和几何变换混合增强服饰图像数据,完成传统服饰图像数据集的构建。随后,采用迁移学习技术在DenseNet169网络上分别引入了通道注意力、卷积注意力和位置注意力3种机制来构建模型,并对3种模型的识别结果进行加权投票判决,实现对传统服饰图像的高精度识别。在此基础上,通过对未知待测图像进行在线裁剪和自适应等规范化预处理,提高了识别系统的泛化适应性。最后,采用Web和云计算技术实现了系统的在线识别、交互、显示和账号管理等功能集成。测试结果表明,本文实现的传统服饰识别算法在验证集上的识别准确率达到了93.5%,构建的系统能够有效地在线识别15类传统服饰图像,对传统服饰文化的传播和保护具有一定的促进作用。

关键词: 传统服饰图像, 数据集增强, 迁移学习, 加权投票判决, 在线识别系统

Abstract:

Objective Traditional costume culture is in danger of disappearing gradually and needs effective conservation methods. Currently, most of conservation methods rely on human resources, such as recording traditional costume by taking photos and scanning, causing that the conservation efficiency and culture exchanging are low and an efficient method to preserve the culture is lacking. Therefore, a new deep learning algorithm was proposed for highly accurate recognition of traditional costumes, and an online web identification system was designed based on cloud computing technologies. The proposed research should serve as a new alternative way for conservation and recognization of traditional costume culture efficiently.

Method Firstly, a traditional costume image dataset was constructed and enhanced by the combination of multiple background replacement and geometric transformation. Then, three modified DenseNet169 network models were built by introducing the squee and excitation (SE), convolutional block attention module (CBAM) and coordinate attention (CA), respectively, and these models were later integrated together to form a high-performance algorithm. After that, based on cloud computation and web technology, an online recognition system for typical traditional costume images was constructed by combining image normalization pre-processing and the new algorithm.

Results A traditional costume images dataset, which contains 92 160 images of a total of 15 styles, such as costumes of Zang, Man, Mongolian, Miao, Yi, Gejia, Li, Qiang, Hui, Dai, Zhuang, Han, She, Bai and Korean nationlities, was set up. The comprehensive recognition accuracies for the three improved models (using attention mechanisms SE-Dense Net 169, CBAM-DenseNet169 and CA-DenseNet169, respectively) were 89.50%, 89.83% and 90.17%, respectively (Tab.1). Although all their comprehensive recognition performances were good and similar, each model was limited by poor recognition accuracies for some specific different traditional costume categories. For example, the separated recognition accuracies of SE-DenseNet169 on Li and Zang costumes were only 77.5% and 80%, respectively. After weighting integration of the three models, the final algorithm obtained a high comprehensive recognition accuracy of 93.50% on the verification set. Compared with the previous best comprehensive recognition accuracy of CA-DenseNet169, an improvement of 3.33% was achieved. With the new algorithm, apart from relatively low separated recognition accuracy (about 87.50%) for Li costumes, the separated recognition accuracies for other traditional costume categories were all above 90.00%. Once the Korean costume image was input into the system, the most possible 3 prediction costume categories and the consumption time were displayed (Fig.4). 600 Real scene traditional costume images from different costume categories were tested, only 15 images' corrected categories were not shown in the most possible 3 prediction costume categories, which indicated a high comprehensive recognition accuracy of 98.00%. The value would be decreased to 93.50% if only using the most possible 1 prediction costume category as the output result. Meanwhile, the average processing and recognizing time taken by the system (deployed on an Aliyun server with dual-cores intel i5 CPU and 4 GiB RAM) for an image of 1 MB was around 11-13 s, which should be acceptable.

Conclusion In addition to the problems of lack of effective methods to protect traditional costume culture and limited recognization channels, the research built an online recognition system of typical traditional costume images. The system could efficiently identify 15 types of traditional costume images, and it is convenient to operate, recognize and share. Besides recording, protecting and spreading traditional costume culture efficiently, the system could also be used as a digital tool to promote tourism, culture and economy in various ethnic regions. The research would provide a new alternative solution for conserving and recognizing traditional costume culture. However, at present, the system still has some limitations, such as, only few recognizable traditional costume categories, low recognition accuracy of individual traditional costume categories and slightly slow recognition speed. In the future, the number of recognizable costume categories should be expanded, the algorithm should be improved, and the interface and operation process of the system should be optimized.

Key words: traditional costume image, dataset enhancement, transfer learning, weighted voting verdict, online recognition system

中图分类号: 

  • TP391.7

图1

系统总体结构图"

图2

传统服饰识别算法流程图"

图3

引入注意力机制的传统服饰识别网络"

表1

3种模型在测试集各个服饰类别上的识别准确率"

服饰类别 识别准确率/%
SE-
DenseNet169
CBAM-
DenseNet169
CA-
DenseNet169
加权投
票判决
汉服 90.00 85.00 80.00 90.00
彝族服饰 90.00 80.00 87.50 90.00
藏族服饰 80.00 82.50 87.50 90.00
满族服饰 87.50 87.50 95.00 95.00
苗族服饰 90.00 87.50 85.00 90.00
壮族服饰 92.50 90.00 85.00 92.50
回族服饰 85.00 85.00 95.00 95.00
羌族服饰 97.50 97.50 100.00 100.00
傣族服饰 92.50 92.50 90.00 95.00
白族服饰 100.00 97.50 97.50 97.50
畲族服饰 80.00 95.00 92.50 92.50
黎族服饰 77.50 85.00 85.00 87.50
蒙古族服饰 92.50 92.50 77.50 92.50
朝鲜族服饰 87.50 92.50 95.00 95.00
革家族服饰 100.00 97.50 100.00 100.00
总识别准确率 89.50 89.83 90.17 93.50

表2

本文方法与其它典型方法的性能对比"

方法 可识别服饰
类别数量/个
识别准确
率/%
数据集图像
数量/张
基于人工多特征的提取与融合[5] 11 83.30 3 391
深度学习多任务目标检测网络[7] 14 91.21 4 382
结合注意力和多分支的深度学习网络[8] 9 95.18 6 452
本文方法(数据集为9类) 9 96.39 55 296
本文方法(数据集为15类) 15 93.50 92 160

图4

典型传统服饰图像在线识别系统测试效果图"

[1] KIAPOUR H M, HAN X F, LAZEBNIK S, et al. Where to buy it: matching street clothing photos in online shops[C]// International Conference on Computer Vision(ICCV). Santiago: IEEE, 2015: 3343-3351.
[2] HUANG J, FERIS R S, CHEN Q, et al. Cross-domain image retrieval with a dual attribute-aware ranking network[C]// International Conference on Computer Vision(CVPR). Santiago: IEEE, 2015:1062-1070.
[3] LIU Z W, LUO P, QIU S, et al. DeepFashion: powering robust clothes recognition and retrieval with rich annotations[C]// Computer Vision & Pattern Recognition(CVPR). Los Alamitos: IEEE, 2016: 1096-1104.
[4] 李东, 万贤福, 汪军. 采用傅里叶描述子和支持向量机的服装款式识别方法[J]. 纺织学报, 2017, 38(5): 122-127.
LI Dong, WAN Xianfu, WANG Jun. Clothing style recognition approach using Fourier descriptors and support vector machines[J]. Journal of Textile Research, 2017, 38(5):122-127.
[5] HUO P, WANG Y H, LIU Q J, et al. A part-based and feature fusion method for clothing classification[C]// Proceedings of Advances in Multimedia Information Processing. Heidelberg: Springer, 2016:231-241.
[6] 吴圣美, 刘骊, 付晓东, 等. 结合人体检测和多任务学习的少数民族服装识别[J]. 中国图象图形学报, 2019, 24(4): 562-572.
WU Shengmei, LIU Li, FU Xiaodong, et al. Human detection and multi-task learning for minority clothing recognition[J]. Journal of Image and Graphics, 2019, 24(4): 562-572.
[7] SUN Y, LIU Q. Attribute recognition from clothing using a faster R-CNN based multitask network[J]. International Journal of Wavelets, Multiresolution and Information Processing, 2018. DOI: 10.1142/S021969131840009X.
doi: 10.1142/S021969131840009X
[8] 杨冰, 徐丹, 张豪远, 等. 基于改进的DenseNet-BC对少数民族服饰的识别[J]. 浙江大学学报(理学版), 2021, 48(6):676-683.
YANG Bing, XÜ Dan, ZHANG Haoyuan, et al. Minority clothing recognition based on improved DenseNet-BC[J]. Journal of Zhejiang University(Science Edition), 2021, 48(6):676-683.
[9] 胡昕. 基于机器学习的中国特色服饰识别[D]. 大连: 大连交通大学, 2018:1-64.
HU Xin. Clothing identification with Chinese characteristics based on machine learning[D]. Dalian: Dalian Jiaotong University, 2018:1-64.
[10] HUANG G, LIU Z, MAATEN LVE, et al. Densely connected convolutional networks[C]// Computer Vision & Pattern Recognition(CVPR). Honolulu: IEEE, 2017:2261-2269.
[11] JIE H, LI S, GANG S, et al. Squeeze-and-excitation networks[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017, 42(8):2011-2023.
doi: 10.1109/TPAMI.34
[12] WOO S, PARK J, LEE J Y, et al. CBAM: convolutional block attention module[C]// European Conference on Computer Vision(ECCV). Munich: Springer, 2018:3-19.
[13] HOU Q, ZHOU D, FENG J. Coordinate attention for efficient mobile network design[C]// Conference on Computer Vision and Pattern Recognition(CVPR). Nashville: IEEE, 2021:13708-13717.
[14] ALEX K, ILYA S, GEOFFREY E H. ImageNet classification with deep convolutional neural networks[J]. Communications of the ACM, 2017, 60(6): 84-90.
doi: 10.1145/3065386
[15] 典型传统服饰识别[EB/OL].(2019-2-05) [2022-2-13]. http://www.ctfushi.cn.
Typical traditional costume identification[EB/OL]. (2019-2-05) [2022-2-13]. http://www.ctfushi.cn.
[1] 金守峰, 侯一泽, 焦航, 张鹏, 李宇涛. 基于改进AlexNet模型的抓毛织物质量检测方法[J]. 纺织学报, 2022, 43(06): 133-139.
[2] 江慧, 马彪. 基于服装风格的款式相似度算法[J]. 纺织学报, 2021, 42(11): 129-136.
[3] 王奕文, 罗戎蕾, 康宇哲. 基于卷积神经网络的汉服关键尺寸自动测量[J]. 纺织学报, 2020, 41(12): 124-129.
[4] 夏海浜, 黄鸿云, 丁佐华. 基于迁移学习与支持向量机的服装舒适度评估[J]. 纺织学报, 2020, 41(06): 125-131.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!