The method of clothing matching recommendation based on matrix decomposition and knowledge map disclosed in the invention firstly, according to the characteristics of clothing itself, the combination matrix of upper and lower clothing is established, and the upper and lower clothing feature matrix are respectively obtained by decomposition of combination matrix; then the semantic information between upper and lower clothing is integrated into the process of decomposition of combination matrix of upper and lower clothing, combining knowledge Map and matrix decomposition calculate the similarity of upper and lower clothing, and get the appropriate clothing matching recommendation. The method of the invention takes into account the semantic information of the upper and lower garments, integrates the semantic similarity of the garments into the upper and lower garment decomposition matrix, so that the recommended garment matching combination can be more professional guidance, more in line with the fashion trend, and more in line with the user's needs, and the user's dressing guidance and recommendation are no longer limited to the user's own matching habits, so as to obtain more accurate garment matching Result.
【技术实现步骤摘要】
基于矩阵分解和知识图谱的服装搭配推荐方法
本专利技术属于服装搭配推荐
,具体涉及一种基于矩阵分解和知识图谱的服装搭配推荐方法。
技术介绍
服装搭配推荐系统在服装销售活动中具有重要的意义,通过服装搭配可以推荐适合用户身材的服装搭配组合,比如判定这件衬衫和这件裤子是否更相配。深入挖掘服装的搭配组合模式,通过服装搭配组合进行推荐可以增加服装交叉销售量,同时可以满足用户对服装搭配的个性化需求,指导用户的着装。服装搭配推荐属于推荐系统领域搭配组合推荐的一种,与推荐领域其他商品的搭配推荐不同。目前,进行服装搭配推荐的方法主要有以下几种:(1)基于矩阵分解的协同过滤推荐方法将上衣服装和下衣服装的搭配关系映射到协同过滤算法的用户与商品的评分关系上,挖掘潜在的上下装服装搭配模式。但是这种方法不能考虑到上下装的任何内容信息,主要利用具有相同搭配的服装之间的相似性关系来进行推荐;(2)基于内容的服装搭配推荐方法主要是通过服装的内在属性信息和服装图像信息来进行服装搭配,如服装标题在一定程度上对服装的颜色、款式、风格进行了描述,计算上装 ...
【技术保护点】
1.基于矩阵分解和知识图谱的服装搭配推荐方法,其特征在于,具体操作过程包括如下步骤:/n步骤1,根据服装自身的特性,建立上装和下装搭配组合矩阵,通过分解搭配组合矩阵分别得到上装特征矩阵和下装特征矩阵;/n步骤2,在步骤1分解搭配组合矩阵的过程中融入上装和下装之间的语义信息,结合知识图谱和矩阵分解计算上下装的相似度,得到合适的服装搭配推荐。/n
【技术特征摘要】
1.基于矩阵分解和知识图谱的服装搭配推荐方法,其特征在于,具体操作过程包括如下步骤:
步骤1,根据服装自身的特性,建立上装和下装搭配组合矩阵,通过分解搭配组合矩阵分别得到上装特征矩阵和下装特征矩阵;
步骤2,在步骤1分解搭配组合矩阵的过程中融入上装和下装之间的语义信息,结合知识图谱和矩阵分解计算上下装的相似度,得到合适的服装搭配推荐。
2.如权利要求1所述的基于矩阵分解和知识图谱的服装搭配推荐方法,其特征在于,所述步骤1的具体过程如下:
根据服装自身的特性,将上装和下装的搭配看作二元关系,则形成服装搭配组合矩阵m,将搭配组合矩阵m分解后得到上装特征矩阵uc,下装特征矩阵lc,如式(1)所示:
m=uc×lc(1)
为了对比分解后的上装特征矩阵uc与下装特征矩阵lc相乘结果与原始搭配组合矩阵差异,定义损失函数将矩阵分解问题转化为求解最优解问题,采用平方损失的损失函数如式(2)所示:
式中,如果上装uc与下装lc是专家给出的搭配,则muc,lc=1,否则muc,lc=0;m'uc,lc为上装uc与下装lc搭配的估计值;λ1||puc||2+λ2||qlc||2是正则化项,来减少过拟合风险。
3.如权利要求2所述的基于矩阵分解和知识图谱的服装搭配推荐方法,其特征在于,所述步骤2的具体过程如下:
步骤2.1,通过知识图谱表示学习TransR算法训练得到服装的特征向量;
步骤2.2,将步骤1中服装搭配组合矩阵中的上装特征矩阵和下装特征矩阵与步骤2.1知识图谱得到的服装特征向量进行匹配;
步骤2.3,根据步骤2.2的匹配结果,选取知...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。