Journal of Textile Research ›› 2025, Vol. 46 ›› Issue (06): 135-142.doi: 10.13475/j.fzxb.20240600501

• Textile Engineering • Previous Articles     Next Articles

Research on content-based interactive fabric image recommendation

MING Yuhao, ZHANG Ning, XIANG Jun, PAN Ruru()   

  1. College of Textile Science and Engineering, Jiangnan University, Wuxi, Jiangsu 214122, China
  • Received:2024-06-03 Revised:2024-09-27 Online:2025-06-15 Published:2025-07-02
  • Contact: PAN Ruru E-mail:prrsw@163.com

Abstract:

Objective With rapid development of textile industry, the types of fabrics are increasingly diversified. Facing a huge fabric library, it is difficult for the traditional retrieval method to carry out accurate search particularly when the user needs are not defined clearly enough. The popularity of e-commerce platforms has promoted the application of recommendation algorithms. The main idea of recommendation algorithms is to proactively recommend relevant content that users may be interested in by analyzing their preferences. Therefore, this paper proposes a content-based interactive fabric image recommendation algorithm, which considers the color and texture characteristics of the fabric based on the user's interest, aiming to accurately capture the user's preference, recommend the fabric for the user's needs, and provide certain reference value for the research of personalized fabric recommendation algorithms.

Method This research considers the visual features such as fabric color and texture, and links the user's preferences with the characteristics of fabric, and proposes a content-based interactive fabric image recommendation algorithm. First, the main color set of the image is extracted from HSV color space, and the fabric texture is classified using the transfer learning algorithm based on ResNet18 network model. On this basis, an interactive feature preference recommendation model is established. The model calculates the interest value of each feature attribute according to the user's preference score for the fabric. Used to predict user ratings for potential fabrics. The 9 fabrics with the highest rating are recommended to the user, and the performance of the recommendation model is evaluated according to the user's rating for the recommendation results.

Results The obtained data set was divided into training set, verification set and test set according to the ratio of 8∶1∶1. In this paper, the transfer learning algorithm based on the ResNet18 network model was used to classify fabric textures, and the highest accuracy of the test set was 0.936. It is shown that the ResNet18 network model has a good performance for fabric image texture classification. According to the rating preferences of 30 testers for the 9 recommended fabrics, the average score of these 30 users is above 5.5 points, in line with the range of 4-7 points (generally interested), and most of the scores gather in the range of 7-10 points (very interested), among which 19 people have an average score of more than 8 points, and 4 people have an average score of more than 9 points. The percentage of users who are very interested in the recommendation results as a whole is as high as 93.3%, among which 18 users score at least 7 of the 9 recommended fabrics above 8 points, which indicates that the overall performance of the recommendation model proposed in this paper is good.

Conclusion In view of the fact that traditional recommendation algorithms fail to consider the influence of visual features of fabric on users' interest in fabric recommendation, this paper classifies fabric color and texture based on hand-extracted features and higher-order features respectively. Experimental results show that the transfer learning algorithm based on ResNet18 network model has achieved good results in fabric texture classification. The highest accuracy of the test set reached 0.936. Subsequent experiments will continuously optimize the accuracy and reduce the impact of classification errors on the recommendation results. In this paper, an interactive feature preference recommendation model is established by means of interactive scoring. The model calculates the interest value of each feature attribute according to the user's preference rating, so as to predict the user's rating on potential fabrics, and then recommend fabric images with high predictive ratings for users. Users' preferences for the recommendation results can be used as a standard to evaluate the performance of the recommendation model. The experimental results show that most users are satisfied with the recommendation results, which indicates that the overall performance of the recommendation model proposed in this paper is good, and it can capture users' interests and preferences more accurately, providing certain reference value for fabric image recommendation.

Key words: fabric design, HSV color space, fabric image recommendation algorithm, fabric feature, visual feature, user preference

CLC Number: 

  • TS941.26

Fig.1

Framework of content-based interactive fabric image recommendation"

Fig.2

Fabric recommendation interface"

Tab.1

Fabric feature matrix"

色系 h s v
黑色 [0, 360] [0, 1] [0, 0.2]
灰色 [0, 360] [0, 0.2] [0.2, 0.8]
白色 [0, 360] [0, 0.2] [0.8, 1]
红色 (315, 360]∪[0, 20] [0.2, 1] [0.2, 1]
黄色 (20, 45] [0.2, 1] [0.2, 1]
绿色 (45, 90] [0.2, 1] [0.2, 1]
青色 (90, 160] [0.2, 1] [0.2, 1]
蓝色 (160, 270] [0.2, 1] [0.2, 1]
紫色 (270, 315] [0.2, 1] [0.2, 1]

Fig.3

Residual network structure diagram"

Fig.4

Plot of training set loss and test set accuracy"

Tab.2

Fabric feature matrix"

面料序号 C1, C2,…, C9 T1, T2,…, T6
i1 0,1,…,0 1,0,…,0
i2 1,0,…,1 0,1,…,0
ik 1,1,…,0 0,0,…,0

Tab.3

User-feature interest matrix"

用户序号 C1, C2,…, C9 T1, T2,…, T6
u1 7.53, 3.61,…, 5.87 2.83, 9.52,…, 7.30
u2 2.33, 8.56,…, 0 0, 6.58,…, 8.23
un 1.30, 2.71,…, 7.82 3.55, 2.01,…, 9.34

Fig.5

Six fabric textures.(a) Solid; (b) Lattice; (c) Stripe; (d) Plinth; (e) Puncture point; (f) Brid eye"

Tab.4

Data set details"

数据集
编号
图像数量/张
训练集 验证集 测试集
Q1 736 92 92
Q2 624 78 78
Q3 496 62 62
Q4 672 84 84
Q5 640 80 80
Q6 328 41 41

Fig.6

Values of user's interest in feature attribute"

Fig.7

Fabric recommendation results for user u10 (a) and user u19 (b)"

Tab.5

Average rating and highly rated fabric sheets of 30 users"

用户
编号
平均
评分
高评分
面料数
用户
编号
平均
评分
高评分
面料数
u1 8.34 7 u16 8.66 8
u2 8.13 6 u17 7.55 6
u3 7.38 6 u18 5.62 3
u4 8.00 7 u19 7.89 6
u5 9.50 9 u20 8.51 7
u6 7.44 6 u21 7.21 4
u7 7.60 7 u22 8.11 5
u8 7.35 7 u23 9.13 8
u9 6.37 3 u24 8.80 8
u10 8.67 9 u25 7.26 5
u11 8.10 7 u26 8.50 7
u12 8.73 7 u27 8.36 7
u13 7.38 7 u28 8.92 8
u14 8.73 6 u29 8.15 6
u15 9.80 9 u30 9.42 9
[1] KO H, LEE S, PARK Y, et al. A survey of recommendation systems: recommendation models, techniques, and application fields[J]. Electronics, 2022. DOI:10.3390/edetronics11010141.
[2] GOLDBEG D, NICHOLS D, OKI B M, et al. Using col-laborative filtering to weave an information tapes-try[J]. Communications of the ACM, 1992, 35(12): 61-70.
[3] BATMAZ Z, YUREKLI A, BILGE A, et al. A review on deep learning for recommender systems: challenges and remedies[J]. Artificial Intelligence Review, 2019, 52: 1-37.
[4] 王宇哲. 基于内容的电影推荐算法研究[J]. 信息系统工程, 2023,12:117-120.
WANG Yuzhe. Research on content-based movie recommendation algorithm[J]. Information System Engineering, 2023,12:117-120.
[5] 郑志军. 基于内容的推荐算法在专题数据库中的应用研究[J]. 信息与电脑(理论版), 2023, 35(15):116-119.
ZHENG Zhijun. Research on the application of content based recommendation algorithms in special data-base[J]. China Computer & Communication, 2023, 35(15):116-119.
[6] 苏启琛, 苏洋. 一种基于内容的生鲜产品推荐算法[J]. 电脑知识与技术, 2020, 16(28):189-191, 207.
SU Qichen, SU Yang. A content-based recommendation algorithm for fresh products[J]. Computer Knowledge and Technology, 2020, 16(28): 189-191, 207.
[7] 刘克礼, 王荣华. 基于协同过滤的学习资源个性化推荐应用[J]. 安徽广播电视大学学报, 2017(4):125-128.
LIU Keli, WANG Ronghua. Research on application of personalized recommendation of learning resources based on collaborative filtering[J]. Journal of Anhui Radio and Television University, 2017(4):125-128.
[8] 张迪, 姜久雷, 蒋永旺. 基于用户偏好协同过滤算法的个性化学习资源推荐[J]. 中国信息技术教育, 2018,20:107-109.
ZHANG Di, JIANG Jiulei, JIANG Yongwang. Personalized learning resource recommendation based on user preference collaborative filtering algorithm[J]. Chinese Information Technology Education, 2018,20: 107-109.
[9] 杨宇. 基于深度学习特征的图像推荐系统[D]. 成都: 电子科技大学,2016:1-60.
YANG Yu. Image recommendation system based on the image features obtained from deep learning[D]. Chengdu: University of Electronic Science and Technology of China,2016:1-60.
[10] HE Haitao, ZHANG Ruixi, ZHANG Yangsen, et al. AAIN: attentional aggregative interaction network for deep learning based recommender systems[J]. Neurocomputing, 2023.DOI:10.1016/j.neucom.2023.126374.
[11] 李锋, 冷娜. 协同过滤的纺织面料推荐系统[J]. 计算机应用, 2018, 38(S2):115-118.
LI Feng, LENG Na. Textile fabric recommendation system based on collaborative filtration[J]. Computer Application, 2018, 38(S2):115-118.
[12] 杨海文, 李知霖, 王建萍, 等. 基于协同过滤的针织面料推荐模型优化研究[J]. 针织工业, 2021(9):12-15.
YANG Haiwen, LI Zhilin, WANG Jianping, et al. Optimization of knitted fabric recommendation model based on collaborative filtering[J]. Knitting Industries, 2021(9):12-15.
[13] HE Zhenzhen, MA Yunjiao, XIANG Jun, et al. Content-based fabric recommendation system integrating image and text information[J]. Journal of The Textile Institute, 2025, 116(4):613-622.
[14] 龚雪, 袁理, 刘军平, 等. 混合色彩空间与多核学习的色纺织物组织点识别[J]. 纺织学报, 2020, 41(5): 58-65.
GONG Xue, YUAN Li, LIU Junping, et al. Recognition of colored spun fabric interlacing point based on mixed color space and multiple kernel learning[J]. Journal of Textile Research, 2020, 41(5): 58-65.
[15] 张宁. 基于特征工程的机织面料图像检索方法研究[D]. 无锡: 江南大学,2021:1-50.
ZHANG Ning. Research on image retrieval methods for woven fabrics based on feature engineering[D]. Wuxi: Jiangnan University,2021:1-50.
[16] 赵文浩, 向军, 张宁, 等. 基于SURF和VLAD特征编码的面料图案检索研究[J]. 纺织学报, 2023, 44(8):110-117.
ZHAO Wenhao, XIANG Jun, ZHANG Ning, et al. Research on fabric pattern retrieval based on SURF and VLAD feature coding[J]. Journal of Textile Research, 2023, 44(8):110-117.
[17] WANG Q, HUANG W, XIONG Z, et al. Looking closer at the scene: multiscale representation learning for remote sensing image scene classification[J]. IEEE Transactions on Neural Networks and Learning Systems, 2020, 33(4): 1414-1428.
[18] WANG Q, YUAN X, SUN M. Collaborative filtering recommendation algorithm based on hybrid user model[C]// Seventh International Conference on Fuzzy Systems and Knowledge Discovery.[S.l.]: IEEE, 2010: 1985-1990.
[19] 王海燕, 刘国联. 基于消费者感性需求的格子图案认知[J]. 纺织学报, 2014, 35(11):151-156.
WANG Haiyan, LIU Guolian. Study on cognition of grid patterns based on consumer's sensibility demand[J]. Journal of Textile Research, 2014, 35( 11): 151-156.
[1] ZHANG Aidan, WANG Qian. Color prediction method of triple-weft fabric with full-color compound structure [J]. Journal of Textile Research, 2025, 46(05): 151-158.
[2] LYU Yingrui, WANG Zhaohui, YE Qinwen, LIU Huanhuan, SUN Yuexin. Design methods and development tendency of sportswear [J]. Journal of Textile Research, 2025, 46(03): 256-265.
[3] LU Shuangyi, ZHOU Jiu. Construction of jacquard structure model with full gamut color spaces based on bidirectional multi-primary color [J]. Journal of Textile Research, 2024, 45(11): 88-98.
[4] MU Xiuping, JIANG Gaoming, CHEN Yushan, LI Bingxian. Digital design method for multi-needle bed weft-knitted fabric [J]. Journal of Textile Research, 2024, 45(11): 106-113.
[5] YIN Ang, CONG Honglian. Design and structure optimization of warp knitted unidirectional moisture conducting fabrics [J]. Journal of Textile Research, 2023, 44(04): 86-91.
[6] HUANG Jinbo, ZHU Chengyan, ZHANG Hongxia, HONG Xinghua, ZHOU Zhifang. Design of three-dimensional spacer fabrics based on rapier looms [J]. Journal of Textile Research, 2021, 42(06): 166-170.
[7] XU Pinghua, MAO Hailin, SHEN Hongying, DING Xuemei. Visual feature coding and wrinkle assessment of repeatedly laundered fabrics [J]. Journal of Textile Research, 2020, 41(05): 66-71.
[8] SUN Ting, LÜ Zhining, LI Yanqing, ZHU Chengyan, TIAN Wei. Molding principle and weaving of three-dimensional geometric pleated fabric [J]. Journal of Textile Research, 2020, 41(02): 64-68.
[9] . Design and performance of knitted suit fabrics [J]. Journal of Textile Research, 2018, 39(12): 47-52.
[10] . Influence of user preference on social media marketing of women' s fashion brands [J]. JOURNAL OF TEXTILE RESEARCH, 2018, 39(04): 163-169.
[11] . Design of double face dobby fabric by using stitching double weave [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(09): 26-30.
[12] . Evaluation and analysis of perceptual images of clothing fabrics [J]. Journal of Textile Research, 2015, 36(03): 99-104.
[13] . Use of happening colour in sheared fabric [J]. JOURNAL OF TEXTILE RESEARCH, 2013, 34(12): 76-0.
[14] Yu-zheng LU. Color separation algorithm for mixed dyed textiles based on image segmentation [J]. JOURNAL OF TEXTILE RESEARCH, 2012, 33(9): 55-60.
[15] HU Keqin. Current status and development strategy of fabric creative design sector of China [J]. JOURNAL OF TEXTILE RESEARCH, 2011, 32(1): 149-154.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!