[go: up one dir, main page]

CN118628214B - Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence - Google Patents

Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence Download PDF

Info

Publication number
CN118628214B
CN118628214B CN202411104217.7A CN202411104217A CN118628214B CN 118628214 B CN118628214 B CN 118628214B CN 202411104217 A CN202411104217 A CN 202411104217A CN 118628214 B CN118628214 B CN 118628214B
Authority
CN
China
Prior art keywords
user
commodity
recommendation
personalized
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411104217.7A
Other languages
Chinese (zh)
Other versions
CN118628214A (en
Inventor
陈宇
任艺
顾艺婷
李笑非
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen University of Technology
Original Assignee
Xiamen University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen University of Technology filed Critical Xiamen University of Technology
Priority to CN202411104217.7A priority Critical patent/CN118628214B/en
Publication of CN118628214A publication Critical patent/CN118628214A/en
Application granted granted Critical
Publication of CN118628214B publication Critical patent/CN118628214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Recommending goods or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/042Knowledge-based neural networks; Logical representations of neural networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Biomedical Technology (AREA)
  • Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Computing Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Mathematical Physics (AREA)
  • Evolutionary Biology (AREA)
  • Molecular Biology (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Probability & Statistics with Applications (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an electronic commerce platform personalized clothing recommendation method and system based on artificial intelligence, which relate to the technical field of electronic commerce and comprise the following steps: collecting user basic information and user behavior data, and constructing a user portrait; the constructing of the user portraits comprises the steps of constructing a first user portraits based on user basic information and constructing a second user portraits based on user behavior data; extracting features of the electronic commerce platform commodity, matching the features with the first user portrait, and establishing a style tag library for classification; and generating a personalized recommendation result by utilizing a mixed recommendation algorithm based on the second user portrait, updating the personalized recommendation result through a style tag library, and performing personalized clothing recommendation. The personalized clothing recommendation method based on the electronic commerce platform provided by the invention improves the accuracy and the personalized degree of recommendation. The method and the system can meet the personalized demands of the users, enhance the shopping experience and satisfaction of the users, optimize inventory management and marketing strategies and improve business operation efficiency.

Description

一种基于人工智能的电商平台个性化服装推荐方法及系统A personalized clothing recommendation method and system for e-commerce platforms based on artificial intelligence

技术领域Technical Field

本发明涉及电子商务技术领域,具体为一种基于人工智能的电商平台个性化服装推荐方法及系统。The present invention relates to the technical field of e-commerce, and in particular to a method and system for recommending personalized clothing on an e-commerce platform based on artificial intelligence.

背景技术Background Art

在当前的电商平台中,推荐系统广泛用于提高用户购物体验和平台销售额。传统的推荐系统主要依赖于协同过滤和内容推荐技术。基于协同过滤的方法通过分析用户的历史行为数据,找到与当前用户行为相似的其他用户,并推荐这些相似用户喜欢的商品。然而,这种方法面临数据稀疏性和冷启动问题,导致推荐效果不佳。基于内容推荐的方法通过分析商品特征推荐与用户过去喜欢的商品相似的商品,但难以捕捉用户的潜在兴趣和偏好变化。现有系统通常缺乏对推荐结果的解释性,用户难以理解推荐原因,降低了用户的满意度和信任度。此外,传统方法未能充分利用用户的基本信息和行为数据,导致推荐结果难以满足用户的个性化需求。In current e-commerce platforms, recommendation systems are widely used to improve user shopping experience and platform sales. Traditional recommendation systems mainly rely on collaborative filtering and content recommendation technologies. The collaborative filtering-based method analyzes the user's historical behavior data to find other users with similar behaviors to the current user and recommend products that these similar users like. However, this method faces data sparsity and cold start problems, resulting in poor recommendation results. The content recommendation-based method recommends products similar to those that the user liked in the past by analyzing product features, but it is difficult to capture the user's potential interests and preference changes. Existing systems usually lack the interpretability of recommendation results, making it difficult for users to understand the reasons for the recommendation, which reduces user satisfaction and trust. In addition, traditional methods fail to make full use of users' basic information and behavior data, resulting in recommendation results that are difficult to meet users' personalized needs.

发明内容Summary of the invention

鉴于上述存在的问题,提出了本发明。In view of the above-mentioned problems, the present invention is proposed.

因此,本发明解决的技术问题是:现有的推荐方法存在数据稀疏性、冷启动问题,以及如何动态捕捉用户偏好的优化问题。Therefore, the technical problem solved by the present invention is: the existing recommendation methods have data sparsity, cold start problems, and the optimization problem of how to dynamically capture user preferences.

为解决上述技术问题,本发明提供如下技术方案:一种基于人工智能的电商平台个性化服装推荐方法,包括:In order to solve the above technical problems, the present invention provides the following technical solutions: a personalized clothing recommendation method for an e-commerce platform based on artificial intelligence, comprising:

收集用户基本信息和用户行为数据,构建用户画像;Collect basic user information and user behavior data to build user portraits;

所述构建用户画像包括基于用户基本信息构建第一用户画像,基于用户行为数据构建第二用户画像;对电商平台商品进行特征提取,并与第一用户画像进行匹配,计算用户画像与商品综合特征向量的匹配度,基于匹配结果建立风格标签库进行分类;The user portrait construction includes constructing a first user portrait based on basic user information and constructing a second user portrait based on user behavior data; extracting features of products on the e-commerce platform and matching them with the first user portrait, calculating the matching degree between the user portrait and the comprehensive feature vector of the product, and establishing a style tag library for classification based on the matching results;

基于第二用户画像利用混合推荐算法生成个性化推荐结果,通过风格标签库更新个性化推荐结果,进行个性化服装推荐。Based on the second user portrait, a hybrid recommendation algorithm is used to generate personalized recommendation results, and the personalized recommendation results are updated through the style tag library to perform personalized clothing recommendations.

作为本发明所述的基于人工智能的电商平台个性化服装推荐方法的一种优选方案,其中:所述用户基本信息包括年龄、性别、地理位置、职业、收入水平;As a preferred solution of the personalized clothing recommendation method for an e-commerce platform based on artificial intelligence described in the present invention, wherein: the basic information of the user includes age, gender, geographical location, occupation, and income level;

所述用户行为数据包括最近浏览的商品ID列表、浏览频率、最近购买的商品ID列表、购买频率、平均评分、评价情感分析结果、最近搜索的关键词列表、搜索频率、最近点击的广告ID列表、点击频率、分享的商品ID列表、评论情感分析结果。The user behavior data includes a list of recently browsed product IDs, browsing frequency, a list of recently purchased product IDs, purchase frequency, average ratings, evaluation sentiment analysis results, a list of recently searched keywords, search frequency, a list of recently clicked advertisement IDs, click frequency, a list of shared product IDs, and comment sentiment analysis results.

作为本发明所述的基于人工智能的电商平台个性化服装推荐方法的一种优选方案,其中:所述建立风格标签库进行分类包括从电商平台的商品数据库中获取商品图像,对图像进行尺寸调整、去噪和标准化处理;使用ResNet50模型对预处理后的商品图像进行初步特征提取,提取颜色、材质和款式的视觉特征;使用视觉变换网络对初步提取的视觉特征进行进一步处理,提取图像的高层次特征,高层次特征包括图像的全局结构特征和局部模式特征;从商品描述中提取文本数据,文本数据包括品牌、款式、材质和价格,对文本数据进行清洗和标准化处理,并使用BERT模型进行文本特征提取,生成表示商品描述语义的文本特征向量;对图像的高层次特征和文本特征分别进行标准化处理,将标准化后的图像的高层次特征和文本特征融合,构建商品综合特征向量。As a preferred solution of the personalized clothing recommendation method for an e-commerce platform based on artificial intelligence described in the present invention, wherein: the establishment of a style tag library for classification includes obtaining product images from a product database of the e-commerce platform, resizing, denoising and standardizing the images; using a ResNet50 model to perform preliminary feature extraction on the preprocessed product images, and extracting visual features of color, material and style; using a visual transformation network to further process the preliminary extracted visual features, and extract high-level features of the image, the high-level features including global structural features and local pattern features of the image; extracting text data from the product description, the text data including brand, style, material and price, cleaning and standardizing the text data, and using a BERT model to extract text features to generate a text feature vector representing the semantics of the product description; the high-level features and text features of the image are standardized respectively, and the high-level features and text features of the standardized image are merged to construct a comprehensive feature vector of the product.

将商品综合特征向量与第一用户画像通过用户画像与商品综合特征向量的匹配度进行初步匹配,为每个用户生成初步匹配的商品列表;在初步匹配的基础上,使用标签传播算法和图卷积网络,根据用户画像的偏好和商品综合特征向量的匹配度对商品进行细化分类,将商品细分为具体子类;根据细化分类的结果,为每个商品生成风格标签,风格标签包括颜色、材质、款式、品牌和价格,并将风格标签存储生成风格标签库。The comprehensive feature vector of the product is preliminarily matched with the first user portrait through the matching degree between the user portrait and the comprehensive feature vector of the product, and a preliminary matching product list is generated for each user; based on the preliminary matching, the label propagation algorithm and graph convolutional network are used to refine the classification of the products according to the preferences of the user portrait and the matching degree of the comprehensive feature vector of the product, and the products are subdivided into specific subcategories; based on the results of the refined classification, a style label is generated for each product, and the style label includes color, material, style, brand and price, and the style label is stored to generate a style label library.

作为本发明所述的基于人工智能的电商平台个性化服装推荐方法的一种优选方案,其中:所述计算用户画像与商品综合特征向量的匹配度表示为:As a preferred solution of the personalized clothing recommendation method for an e-commerce platform based on artificial intelligence described in the present invention, the matching degree between the calculated user portrait and the comprehensive feature vector of the commodity is expressed as:

其中,表示余弦相似度,A表示用户画像向量,B表示商品综合特征向量,表示用户画像向量的范数,表示商品综合特征向量的范数,表示调整后的商品综合特征向量,表示商品综合特征向量的均值,S表示协方差矩阵,表示初步匹配商品的数量,表示第个初步匹配商品的调整后商品综合特征向量,表示第个初步匹配商品调整后商品综合特征向量与均值的差的转置,表示马氏距离,表示用户画像向量与调整后商品综合特征向量的差的转置,表示协方差矩阵的逆矩阵;in, represents cosine similarity, A represents user portrait vector, B represents product comprehensive feature vector, represents the norm of the user portrait vector, represents the norm of the comprehensive feature vector of the product, represents the adjusted comprehensive feature vector of the product, represents the mean of the comprehensive feature vector of the commodity, S represents the covariance matrix, Indicates the number of preliminary matching products. Indicates The adjusted comprehensive feature vector of the initially matched products, Indicates The transpose of the difference between the comprehensive feature vector of the initially matched products and the mean after adjustment, represents the Mahalanobis distance, represents the transpose of the difference between the user portrait vector and the adjusted product comprehensive feature vector, represents the inverse matrix of the covariance matrix;

所述生成初步匹配的商品列表包括设置匹配度阈值,筛选出马氏距离小于匹配度阈值的商品。The generating of the preliminary matching commodity list includes setting a matching degree threshold and screening out commodities whose Mahalanobis distance is less than the matching degree threshold.

作为本发明所述的基于人工智能的电商平台个性化服装推荐方法的一种优选方案,其中:所述利用混合推荐算法生成个性化推荐结果包括通过协同过滤算法分析用户与商品之间的相似性,使用用户的评分数据计算相似性矩阵,计算用户与商品之间的相似性,得到用户与商品的相似性矩阵;As a preferred solution of the personalized clothing recommendation method for an e-commerce platform based on artificial intelligence described in the present invention, wherein: the use of a hybrid recommendation algorithm to generate personalized recommendation results includes analyzing the similarity between users and commodities through a collaborative filtering algorithm, calculating a similarity matrix using the user's rating data, calculating the similarity between the user and the commodity, and obtaining a similarity matrix between the user and the commodity;

根据相似性矩阵,筛选出与当前用户偏好相似的商品列表,选择相似度最高的商品作为候选商品;According to the similarity matrix, filter out a list of products similar to the current user's preferences, and select the products with the highest similarity as candidate products;

利用内容推荐算法,从商品描述中提取关键词和标签特征,使用自然语言处理技术进行文本分析,构建候选商品特征向量,根据用户的浏览频率、购买频率、最近浏览的商品ID列表、最近购买的商品ID列表、最近搜索的关键词列表、最近点击的广告ID列表、分享的商品ID列表和评价情感分析结果生成初始的用户行为特征向量,再进一步将用户历史上互动过的候选商品特征向量进行加权平均,形成最终的用户行为特征向量;Using the content recommendation algorithm, extract keywords and tag features from product descriptions, use natural language processing technology to perform text analysis, build candidate product feature vectors, and generate initial user behavior feature vectors based on the user's browsing frequency, purchase frequency, recently browsed product ID list, recently purchased product ID list, recently searched keyword list, recently clicked ad ID list, shared product ID list, and evaluation sentiment analysis results. Then, perform weighted average of the candidate product feature vectors that the user has interacted with in the past to form the final user behavior feature vector.

计算用户行为特征向量与候选商品特征向量之间的相似度,推荐与用户过去喜欢的商品相似的商品,生成推荐商品列表;Calculate the similarity between the user behavior feature vector and the candidate product feature vector, recommend products similar to those that the user liked in the past, and generate a list of recommended products;

使用矩阵分解技术对用户-物品评分矩阵进行分解,提取潜在特征,利用用户的历史评分数据构建用户-物品评分矩阵,行表示用户,列表示商品,值为用户对商品的评分;Use matrix decomposition technology to decompose the user-item rating matrix, extract potential features, and use the user's historical rating data to construct a user-item rating matrix, where rows represent users, columns represent items, and values are users' ratings of items.

将评分矩阵分解为用户特征矩阵和商品特征矩阵,提取用户和商品的潜在特征,采用奇异值分解方法,得到用户特征向量和候选商品特征向量;Decompose the rating matrix into a user feature matrix and a product feature matrix, extract the potential features of users and products, and use the singular value decomposition method to obtain the user feature vector and the candidate product feature vector;

利用分解后的特征矩阵,预测用户对未评分商品的可能评分,计算用户特征向量和候选商品特征向量的内积,得到预测评分;Using the decomposed feature matrix, predict the possible ratings of users for unrated products, calculate the inner product of the user feature vector and the candidate product feature vector, and get the predicted rating;

将相似性矩阵、相似度和预测评分结合,对每个商品,根据协同过滤、内容推荐和矩阵分解的结果,分别赋予权重,计算综合评分,根据综合评分,从高到低排序,生成初步推荐列表。The similarity matrix, similarity and predicted score are combined. For each product, weights are assigned according to the results of collaborative filtering, content recommendation and matrix decomposition, and a comprehensive score is calculated. According to the comprehensive score, the products are sorted from high to low to generate a preliminary recommendation list.

作为本发明所述的基于人工智能的电商平台个性化服装推荐方法的一种优选方案,其中:所述通过风格标签库更新个性化推荐结果包括检查初步推荐商品的标签匹配情况,若没有对应的标签,将对应商品标记为缺失标签,将缺失标签的商品与标签库其他商品进行对比,利用相似商品的标签补全缺失标签;As a preferred solution of the personalized clothing recommendation method for an e-commerce platform based on artificial intelligence described in the present invention, wherein: the updating of the personalized recommendation results through the style tag library includes checking the tag matching of the preliminary recommended products, if there is no corresponding tag, marking the corresponding product as a missing tag, comparing the product with the missing tag with other products in the tag library, and using the tags of similar products to complete the missing tags;

若初步推荐商品的特征在风格标签库中有对应的标签,从风格标签库中提取与初步推荐商品相关的颜色、材质、款式、品牌和价格特征标签;If the features of the initially recommended product have corresponding tags in the style tag library, extract the color, material, style, brand and price feature tags related to the initially recommended product from the style tag library;

计算每个初步推荐商品的标签匹配评分,根据用户的第二用户画像,为每个商品计算行为特征评分,将标签匹配评分与行为特征评分结合,通过加权平均方法计算每个商品的综合匹配度评分,根据综合匹配度评分,从高到低排序初步推荐商品,生成最终推荐列表。Calculate the label matching score of each preliminary recommended product, calculate the behavior feature score for each product based on the user's second user profile, combine the label matching score with the behavior feature score, and calculate the comprehensive matching score of each product through the weighted average method. According to the comprehensive matching score, sort the preliminary recommended products from high to low to generate the final recommendation list.

作为本发明所述的基于人工智能的电商平台个性化服装推荐方法的一种优选方案,其中:所述进行个性化服装推荐包括在电商平台的用户界面将推荐商品按照综合匹配度评分排序,显示在用户的推荐页面中;As a preferred solution of the method for personalized clothing recommendation on an e-commerce platform based on artificial intelligence described in the present invention, the personalized clothing recommendation includes sorting the recommended products according to the comprehensive matching scores in the user interface of the e-commerce platform and displaying them on the user's recommendation page;

在推荐商品的展示页面上,显示每个商品的风格标签,在推荐商品页面,提供每个推荐商品的推荐理由,生成推荐解释;添加用户反馈机制,用户对每个推荐商品进行评分或标记是否喜欢;On the recommended product display page, display the style label of each product. On the recommended product page, provide the recommendation reason for each recommended product and generate a recommendation explanation. Add a user feedback mechanism so that users can rate each recommended product or mark whether they like it.

根据用户的实时反馈,动态调整推荐列表,使用实时数据和用户的即时反馈,更新用户画像,调整推荐结果。Dynamically adjust the recommendation list based on real-time user feedback, use real-time data and instant user feedback to update user portraits and adjust recommendation results.

本发明的另外一个目的是提供一种基于人工智能的电商平台个性化服装推荐系统,其能通过构建基于人工智能的电商平台个性化服装推荐系统,解决了现有推荐系统中的数据稀疏性、冷启动问题,以及个性化不足问题。Another object of the present invention is to provide an artificial intelligence-based personalized clothing recommendation system for an e-commerce platform, which can solve the data sparsity, cold start problem, and lack of personalization problems in existing recommendation systems by constructing an artificial intelligence-based personalized clothing recommendation system for an e-commerce platform.

为解决上述技术问题,本发明提供如下技术方案:一种基于人工智能的电商平台个性化服装推荐系统,包括:数据采集模块、特征提取模块以及服装推荐模块;所述数据采集模块于收集用户基本信息和用户行为数据,构建用户画像;所述构建用户画像包括基于用户基本信息构建第一用户画像,基于用户行为数据构建第二用户画像;所述特征提取模块用于对电商平台商品进行特征提取,并与第一用户画像进行匹配,计算用户画像与商品综合特征向量的匹配度,基于匹配结果建立风格标签库进行分类;所述服装推荐模块用于基于第二用户画像利用混合推荐算法生成个性化推荐结果,通过风格标签库更新个性化推荐结果,进行个性化服装推荐。To solve the above technical problems, the present invention provides the following technical solutions: a personalized clothing recommendation system for an e-commerce platform based on artificial intelligence, comprising: a data acquisition module, a feature extraction module and a clothing recommendation module; the data acquisition module is used to collect basic user information and user behavior data to construct a user portrait; the construction of the user portrait includes constructing a first user portrait based on the user's basic information and constructing a second user portrait based on the user's behavior data; the feature extraction module is used to extract features of products on the e-commerce platform, and match them with the first user portrait, calculate the matching degree between the user portrait and the comprehensive feature vector of the product, and establish a style tag library for classification based on the matching results; the clothing recommendation module is used to generate personalized recommendation results based on the second user portrait using a hybrid recommendation algorithm, update the personalized recommendation results through the style tag library, and perform personalized clothing recommendations.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如上所述基于人工智能的电商平台个性化服装推荐方法的步骤。A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method for recommending personalized clothing on an e-commerce platform based on artificial intelligence are implemented as described above.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述基于人工智能的电商平台个性化服装推荐方法的步骤。A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for recommending personalized clothing on an e-commerce platform based on artificial intelligence as described above.

本发明的有益效果:本发明提供的基于人工智能的电商平台个性化服装推荐方法通过综合利用用户的基本信息和行为数据,构建多层次用户画像,结合商品的多维特征,利用混合推荐算法生成个性化推荐结果,提高了推荐的准确性和个性化程度。Beneficial effects of the invention: The artificial intelligence-based personalized clothing recommendation method for an e-commerce platform provided by the invention constructs a multi-level user portrait by comprehensively utilizing the user's basic information and behavioral data, combines the multi-dimensional characteristics of the goods, and uses a hybrid recommendation algorithm to generate personalized recommendation results, thereby improving the accuracy and personalization of the recommendation.

能够满足用户的个性化需求,增强用户的购物体验和满意度,同时为电商平台的管理层提供用户偏好分析和购买预测支持,优化库存管理和营销策略,提高商业运营效率。It can meet the personalized needs of users, enhance their shopping experience and satisfaction, and at the same time provide user preference analysis and purchase forecast support to the management of e-commerce platforms, optimize inventory management and marketing strategies, and improve business operation efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

图1为本发明一个实施例提供的一种基于人工智能的电商平台个性化服装推荐方法的整体流程图。FIG1 is an overall flow chart of a method for recommending personalized clothing on an e-commerce platform based on artificial intelligence provided by an embodiment of the present invention.

图2为本发明一个实施例提供的一种基于人工智能的电商平台个性化服装推荐系统的整体结构图。FIG2 is an overall structural diagram of an artificial intelligence-based personalized clothing recommendation system for an e-commerce platform provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合说明书附图对本发明的具体实施方式做详细的说明,显然所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明的保护的范围。In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是本发明还可以采用其他不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广,因此本发明不受下面公开的具体实施例的限制。In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

实施例1,参照图1,为本发明的一个实施例,提供了一种基于人工智能的电商平台个性化服装推荐方法,包括:Embodiment 1, referring to FIG. 1 , is an embodiment of the present invention, which provides a personalized clothing recommendation method for an e-commerce platform based on artificial intelligence, including:

收集用户基本信息和用户行为数据,构建用户画像;Collect basic user information and user behavior data to build user portraits;

所述构建用户画像包括基于用户基本信息构建第一用户画像,基于用户行为数据构建第二用户画像;The constructing of the user portrait includes constructing a first user portrait based on the user's basic information and constructing a second user portrait based on the user's behavior data;

对电商平台商品进行特征提取,并与第一用户画像进行匹配,计算用户画像与商品综合特征向量的匹配度,基于匹配结果建立风格标签库进行分类;Extract features of products on the e-commerce platform and match them with the first user portrait, calculate the matching degree between the user portrait and the comprehensive feature vector of the product, and establish a style tag library for classification based on the matching results;

基于第二用户画像利用混合推荐算法生成个性化推荐结果,通过风格标签库更新个性化推荐结果,进行个性化服装推荐。Based on the second user portrait, a hybrid recommendation algorithm is used to generate personalized recommendation results, and the personalized recommendation results are updated through the style tag library to perform personalized clothing recommendations.

所述用户基本信息包括年龄、性别、地理位置、职业、收入水平;The user's basic information includes age, gender, geographic location, occupation, and income level;

所述用户行为数据包括最近浏览的商品ID列表、浏览频率、最近购买的商品ID列表、购买频率、平均评分、评价情感分析结果、最近搜索的关键词列表、搜索频率、最近点击的广告ID列表、点击频率、分享的商品ID列表、评论情感分析结果。The user behavior data includes a list of recently browsed product IDs, browsing frequency, a list of recently purchased product IDs, purchase frequency, average ratings, evaluation sentiment analysis results, a list of recently searched keywords, search frequency, a list of recently clicked advertisement IDs, click frequency, a list of shared product IDs, and comment sentiment analysis results.

从用户注册表单和个人资料设置中提取基本信息,包括年龄、性别、地理位置、职业、收入水平等数据,利用数据库查询和表单处理技术确保数据的完整性和准确性。用户在注册或设置个人资料时需填写年龄、性别、地理位置、职业和收入水平。为了确保数据的准确性,采用数据库查询和表单处理技术对数据进行验证和标准化处理。地理位置信息通过用户的IP地址或GPS数据获取,调用API接口来获取详细的地址信息,并对其进行编码处理。职业信息则通过预定义的职业分类标准进行编码,确保数据的一致性和可用性。接下来,这些基本信息通过数据聚合和分析技术进行处理,使用数据清洗工具(Pandas)去除无效或重复的数据,确保数据质量,并利用数据库管理(MySQL)存储整理后的用户基本信息,为后续的用户画像构建提供数据支持。最终,通过实时同步机制,确保用户基本信息的更新和准确性,以便在需要时能够快速、高效地访问和处理这些信息。Basic information, including age, gender, geographic location, occupation, income level, etc., is extracted from user registration forms and profile settings, and database query and form processing techniques are used to ensure data integrity and accuracy. Users are required to fill in their age, gender, geographic location, occupation, and income level when registering or setting up their personal profile. In order to ensure data accuracy, database query and form processing techniques are used to verify and standardize the data. Geographic location information is obtained through the user's IP address or GPS data, and the API interface is called to obtain detailed address information and encode it. Occupational information is encoded using predefined occupational classification standards to ensure data consistency and availability. Next, this basic information is processed through data aggregation and analysis techniques, using data cleaning tools (Pandas) to remove invalid or duplicate data to ensure data quality, and using database management (MySQL) to store the sorted user basic information to provide data support for subsequent user portrait construction. Finally, through a real-time synchronization mechanism, the update and accuracy of user basic information is ensured so that this information can be accessed and processed quickly and efficiently when needed.

通过网站日志、交易记录、用户评价、搜索历史、广告点击日志和社交媒体互动等途径,实时收集用户的行为数据。这些数据包括最近浏览的商品ID列表、浏览频率、最近购买的商品ID列表、购买频率、平均评分、评价情感分析结果、最近搜索的关键词列表、搜索频率、最近点击的广告ID列表、点击频率、分享的商品ID列表、评论情感分析结果。利用日志记录和数据挖掘技术,通过事件流处理引擎实时捕获用户行为数据,并使用数据清洗工具(如Pandas)对数据进行预处理,确保数据的一致性和完整性。数据清洗包括去除异常值、填补缺失数据以及数据格式转换等步骤。接下来,这些预处理后的数据通过数据仓库技术存储在大数据平台中,以便于后续的分析和处理。还采用流处理技术(Apache Kafka)进行实时数据处理,确保用户行为数据的及时更新,为第二层用户画像的构建提供准确和最新的行为数据。The user behavior data is collected in real time through website logs, transaction records, user reviews, search history, ad click logs, and social media interactions. These data include the list of recently browsed product IDs, browsing frequency, the list of recently purchased product IDs, purchase frequency, average ratings, evaluation sentiment analysis results, the list of recently searched keywords, search frequency, the list of recently clicked ad IDs, click frequency, the list of shared product IDs, and comment sentiment analysis results. Using logging and data mining technology, the user behavior data is captured in real time through the event stream processing engine, and the data is preprocessed using data cleaning tools (such as Pandas) to ensure data consistency and integrity. Data cleaning includes steps such as removing outliers, filling missing data, and data format conversion. Next, these preprocessed data are stored in the big data platform through data warehouse technology for subsequent analysis and processing. Stream processing technology (Apache Kafka) is also used for real-time data processing to ensure the timely update of user behavior data and provide accurate and up-to-date behavior data for the construction of the second-layer user portrait.

构建用户画像包括基于用户基本信息构建第一用户画像。用户基本信息包括年龄、性别、地理位置、职业、收入水平。从用户注册表单和个人资料设置中提取这些基本信息,利用数据库查询和表单处理技术确保数据的完整性和准确性,并通过API接口获取用户的详细地址信息,进行编码处理;职业信息则使用预定义的职业分类标准进行编码处理。然后,使用数据聚合和分析技术对这些基本信息进行汇总,并采用数据聚类算法(K-Means)对用户的基本信息进行聚类,生成第一用户画像。第一用户画像基于用户的年龄、性别、地理位置、职业和收入水平等信息,构建人口统计特征和地理位置特征,通过图模型(KnowledgeGraph)表示用户基本信息之间的关系,确保用户画像的准确性和完整性,最终将生成的第一用户画像存储在数据库中,确保高效的查询和更新。Constructing a user portrait includes constructing a first user portrait based on the user's basic information. The user's basic information includes age, gender, geographic location, occupation, and income level. This basic information is extracted from the user registration form and personal profile settings, and the database query and form processing technology is used to ensure the integrity and accuracy of the data. The user's detailed address information is obtained through the API interface and coded; the occupational information is coded using the predefined occupational classification standard. Then, this basic information is summarized using data aggregation and analysis technology, and the user's basic information is clustered using a data clustering algorithm (K-Means) to generate the first user portrait. The first user portrait is based on the user's age, gender, geographic location, occupation, and income level. The relationship between the user's basic information is represented by a graph model (KnowledgeGraph) to ensure the accuracy and completeness of the user portrait. Finally, the generated first user portrait is stored in the database to ensure efficient query and update.

构建用户画像还包括基于用户行为数据构建第二用户画像。用户行为数据包括最近浏览的商品ID列表、浏览频率、最近购买的商品ID列表、购买频率、平均评分、评价情感分析结果、最近搜索的关键词列表、搜索频率、最近点击的广告ID列表、点击频率、分享的商品ID列表、评论情感分析结果。通过网站日志、交易记录、用户评价、搜索历史、广告点击日志和社交媒体互动等途径实时收集这些行为数据,利用日志记录和数据挖掘技术,通过事件流处理引擎实时捕获用户行为数据,并使用数据清洗工具(Pandas)对数据进行预处理,确保数据的一致性和完整性。接下来,使用数据挖掘和机器学习技术分析用户的行为数据,采用聚类算法(K-Means)和分类算法对用户的行为数据进行分析和建模。根据用户的浏览习惯、购买习惯、评价倾向、搜索习惯和广告互动情况,生成第二用户画像。第二用户画像通过图模型表示用户行为特征之间的关系,确保用户画像能够动态更新以反映最新的行为数据,最终将生成的第二用户画像存储在数据库(MongoDB)中,确保高效的查询和更新,并实时更新第二用户画像以反映用户最新的行为数据,确保推荐结果的准确性和个性化。Building a user profile also includes building a second user profile based on user behavior data. User behavior data includes a list of recently browsed product IDs, browsing frequency, a list of recently purchased product IDs, purchase frequency, average ratings, evaluation sentiment analysis results, a list of recently searched keywords, search frequency, a list of recently clicked ad IDs, click frequency, a list of shared product IDs, and comment sentiment analysis results. These behavior data are collected in real time through website logs, transaction records, user reviews, search history, ad click logs, and social media interactions. Using log records and data mining techniques, user behavior data is captured in real time through an event stream processing engine, and data cleaning tools (Pandas) are used to pre-process the data to ensure data consistency and integrity. Next, data mining and machine learning techniques are used to analyze user behavior data, and clustering algorithms (K-Means) and classification algorithms are used to analyze and model user behavior data. A second user profile is generated based on the user's browsing habits, purchasing habits, evaluation tendencies, search habits, and advertising interactions. The second user portrait uses a graph model to represent the relationship between user behavior characteristics, ensuring that the user portrait can be dynamically updated to reflect the latest behavior data. The generated second user portrait is finally stored in the database (MongoDB) to ensure efficient query and update, and the second user portrait is updated in real time to reflect the user's latest behavior data, ensuring the accuracy and personalization of the recommendation results.

所述建立风格标签库进行分类包括从电商平台的商品数据库中获取商品图像,对图像进行尺寸调整、去噪和标准化处理;使用ResNet50模型对预处理后的商品图像进行初步特征提取,提取颜色、材质和款式的视觉特征;使用视觉变换网络(Transformer网络)对初步提取的视觉特征进行进一步处理,提取图像的高层次特征,高层次特征包括图像的全局结构特征和局部模式特征;从商品描述中提取文本数据,文本数据包括品牌、款式、材质和价格,对文本数据进行清洗和标准化处理,并使用BERT模型进行文本特征提取,生成表示商品描述语义的文本特征向量;对图像的高层次特征和文本特征分别进行标准化处理,将标准化后的图像的高层次特征和文本特征融合,构建商品综合特征向量;The establishment of the style tag library for classification includes obtaining product images from the product database of the e-commerce platform, resizing, denoising and standardizing the images; using the ResNet50 model to perform preliminary feature extraction on the preprocessed product images, and extracting visual features of color, material and style; using a visual transformation network (Transformer network) to further process the initially extracted visual features, and extract high-level features of the image, and the high-level features include global structural features and local pattern features of the image; extracting text data from the product description, the text data includes brand, style, material and price, cleaning and standardizing the text data, and using the BERT model to extract text features to generate a text feature vector representing the semantics of the product description; standardizing the high-level features and text features of the image respectively, fusing the standardized high-level features and text features of the image, and constructing a comprehensive feature vector of the product;

全局结构特征是图像的整体布局、形状和结构信息;局部模式特征是图像中的局部细节和纹理模式;Global structural features are the overall layout, shape and structural information of the image; local pattern features are the local details and texture patterns in the image;

将商品综合特征向量与第一用户画像通过用户画像与商品综合特征向量的匹配度进行初步匹配,为每个用户生成初步匹配的商品列表;在初步匹配的基础上,使用标签传播算法和图卷积网络,根据用户画像的偏好和商品综合特征向量的匹配度对商品进行细化分类,将商品细分为具体子类,如连衣裙、夹克和裤子,使用标签传播算法对初步匹配的商品进行标签传播。The comprehensive feature vector of the product is preliminarily matched with the first user portrait through the matching degree between the user portrait and the comprehensive feature vector of the product, and a preliminarily matching product list is generated for each user. Based on the preliminary matching, the label propagation algorithm and graph convolutional network are used to refine the classification of products according to the preferences of the user portrait and the matching degree of the comprehensive feature vector of the product, and the products are subdivided into specific subcategories, such as dresses, jackets and pants, and the label propagation algorithm is used to perform label propagation on the preliminarily matched products.

使用图卷积网络对商品进行细化分类,生成具体子类;Use graph convolutional networks to refine the classification of products and generate specific subcategories;

根据细化分类的结果,为每个商品生成风格标签,风格标签包括颜色、材质、款式、品牌和价格;结合图像和文本特征提取的结果,通过预定义的标签规则生成风格标签;采用关系型数据库存储生成风格标签库,设计标签库的数据库表结构,包含商品ID、风格标签和综合特征向量。将细化分类结果和标签存储在数据库中。Based on the results of the refined classification, a style label is generated for each product. The style label includes color, material, style, brand and price. The style label is generated by combining the results of image and text feature extraction through predefined labeling rules. A relational database is used to store the generated style label library, and the database table structure of the label library is designed, including product ID, style label and comprehensive feature vector. The refined classification results and labels are stored in the database.

所述计算用户画像与商品综合特征向量的匹配度表示为:The matching degree between the calculated user portrait and the comprehensive feature vector of the product is expressed as:

其中,表示余弦相似度,A表示用户画像向量,B表示商品综合特征向量,表示用户画像向量的范数,表示商品综合特征向量的范数,表示调整后的商品综合特征向量,表示商品综合特征向量的均值,S表示协方差矩阵,表示初步匹配商品的数量,表示第个初步匹配商品的调整后商品综合特征向量,表示第个初步匹配商品调整后商品综合特征向量与均值的差的转置,表示马氏距离,表示用户画像向量与调整后商品综合特征向量的差的转置,表示协方差矩阵的逆矩阵;in, represents cosine similarity, A represents user portrait vector, B represents product comprehensive feature vector, represents the norm of the user portrait vector, represents the norm of the comprehensive feature vector of the product, represents the adjusted comprehensive feature vector of the product, represents the mean of the comprehensive feature vector of the commodity, S represents the covariance matrix, Indicates the number of preliminary matching products. Indicates The adjusted comprehensive feature vector of the initially matched products, Indicates The transpose of the difference between the comprehensive feature vector of the initially matched products and the mean after adjustment, represents the Mahalanobis distance, represents the transpose of the difference between the user portrait vector and the adjusted product comprehensive feature vector, represents the inverse matrix of the covariance matrix;

在基于人工智能的电商平台个性化服装推荐方法中,现有技术单独使用余弦相似度和马氏距离各有其优缺点。余弦相似度可以有效衡量用户和商品综合特征向量之间的角度相似度,关注其方向性,而忽略了向量的大小,在捕捉用户偏好方向方面表现良好。然而,这种方法没有考虑到特征之间的相关性和分布情况,导致匹配精度不足,无法全面反映用户和商品之间的复杂关系。在电商平台个性化服装推荐中,这种不足可能导致推荐结果不够精准和多样化。另一方面,马氏距离可以考虑特征之间的相关性,适用于多维数据,通过协方差矩阵调整不同特征的影响力,使得匹配更加准确。但是,计算复杂度高,尤其是在特征维度较高时,协方差矩阵的计算和逆矩阵的求解非常耗时,并且对协方差矩阵估计的质量敏感,容易受到噪声数据的影响,这在实际电商平台的服装推荐系统中,可能导致计算效率低下和推荐效果不理想。In the personalized clothing recommendation method of e-commerce platform based on artificial intelligence, the existing technology uses cosine similarity and Mahalanobis distance separately, each with its own advantages and disadvantages. Cosine similarity can effectively measure the angular similarity between the comprehensive feature vectors of users and commodities, focusing on its directionality while ignoring the size of the vector, and performs well in capturing the user's preference direction. However, this method does not take into account the correlation and distribution between features, resulting in insufficient matching accuracy and failure to fully reflect the complex relationship between users and commodities. In the personalized clothing recommendation of e-commerce platforms, this deficiency may lead to inaccurate and indivisible recommendation results. On the other hand, Mahalanobis distance can consider the correlation between features, is suitable for multi-dimensional data, and adjusts the influence of different features through the covariance matrix to make the matching more accurate. However, the computational complexity is high, especially when the feature dimension is high, the calculation of the covariance matrix and the solution of the inverse matrix are very time-consuming, and it is sensitive to the quality of the covariance matrix estimation and is easily affected by noise data, which may lead to low computational efficiency and unsatisfactory recommendation results in the actual clothing recommendation system of e-commerce platforms.

我方发明通过计算余弦相似度,将其结果作为权重用于调整商品综合特征向量,使得相似度高的商品在后续马氏距离计算中占据更大的比重。这种调整方式不仅有效地将余弦相似度与马氏距离结合,还能通过加权方式更精确地反映用户偏好和商品特征之间的关系。余弦相似度计算出的用于调整商品综合特征向量,使其更加符合用户画像向量。然后,使用调整后的商品综合特征向量和协方差矩阵进行马氏距离计算,能够更好地考虑特征之间的相关性和分布情况,从而进一步提高匹配的精确度。在电商平台个性化服装推荐中,这种方法能够更准确地捕捉用户的真实偏好,提供更精准的推荐结果。最后,根据计算得到的马氏距离设置匹配度阈值,筛选出距离小于阈值的商品,生成初步匹配的商品列表。这一机制确保了选出的商品与用户画像之间具有更高的匹配度,从而提高了推荐的相关性和用户满意度。Our invention calculates cosine similarity and uses its result as a weight to adjust the comprehensive feature vector of the product, so that the products with high similarity occupy a larger proportion in the subsequent Mahalanobis distance calculation. This adjustment method not only effectively combines cosine similarity with Mahalanobis distance, but also more accurately reflects the relationship between user preferences and product features through weighting. The cosine similarity is used to adjust the comprehensive feature vector of the product to make it more consistent with the user portrait vector. Then, the adjusted comprehensive feature vector of the product and the covariance matrix are used to calculate the Mahalanobis distance, which can better consider the correlation and distribution between the features, thereby further improving the accuracy of the match. In the personalized clothing recommendation of the e-commerce platform, this method can more accurately capture the real preferences of users and provide more accurate recommendation results. Finally, the matching threshold is set according to the calculated Mahalanobis distance, and the products with a distance less than the threshold are screened out to generate a preliminary matching product list. This mechanism ensures that the selected products have a higher matching degree with the user portrait, thereby improving the relevance of the recommendation and user satisfaction.

通过结合余弦相似度和马氏距离,我方发明在基于人工智能的电商平台个性化服装推荐方法中,达到了提高匹配准确性、降低计算复杂度和增强鲁棒性的意想不到效果。余弦相似度并未直接进行初步筛选,而是通过调整商品综合特征向量,增强了高相似度商品在马氏距离计算中的权重;马氏距离则通过考虑特征间的相关性,提供了更精确的匹配度量。此外,通过余弦相似度调整后的商品综合特征向量,使得马氏距离的计算更加高效,减少了计算的复杂度。结合这两种方法,使得算法对噪声和异常数据的鲁棒性更强,能够在复杂的实际数据中仍然保持高效和准确的匹配性能。这一创新的结合方式不仅避免了简单技术叠加的弊端,还通过科学的设计和优化,实现了超出预期的推荐效果。在实际应用中,这种方法显著提升了个性化推荐的精度和效率,为用户提供了更满意的购物体验,从而在电商平台中具有重要的实际应用价值。By combining cosine similarity and Mahalanobis distance, our invention has achieved unexpected results in improving matching accuracy, reducing computational complexity and enhancing robustness in the personalized clothing recommendation method for e-commerce platforms based on artificial intelligence. Cosine similarity does not directly perform preliminary screening, but adjusts the comprehensive feature vector of the products to enhance the weight of high-similar products in the Mahalanobis distance calculation; Mahalanobis distance provides a more accurate matching metric by considering the correlation between features. In addition, the comprehensive feature vector of the products adjusted by cosine similarity makes the calculation of Mahalanobis distance more efficient and reduces the computational complexity. Combining these two methods makes the algorithm more robust to noise and abnormal data, and can still maintain efficient and accurate matching performance in complex actual data. This innovative combination not only avoids the drawbacks of simple technology superposition, but also achieves a recommendation effect beyond expectations through scientific design and optimization. In practical applications, this method significantly improves the accuracy and efficiency of personalized recommendations, provides users with a more satisfactory shopping experience, and thus has important practical application value in e-commerce platforms.

虽然余弦相似度和马氏距离在各自领域中都有独特的优势,但在本领域内,单独使用这些算法已经能够满足基本的匹配需求,因此没有必要将这两种算法简单结合。传统方法通常采用单一算法来生成初步匹配的商品列表,例如仅使用余弦相似度进行方向性匹配或仅使用马氏距离进行多维特征匹配。然而,简单地将两者叠加并不能充分发挥各自的优势,反而可能会引入计算复杂性和准确性的问题。通过我方发明的方法,将余弦相似度的结果作为调整商品综合特征向量的权重,再结合马氏距离进行精确匹配,这种结合并不是简单的技术叠加,而是通过科学设计的加权和调整,解决了各自算法的局限性。Although cosine similarity and Mahalanobis distance have unique advantages in their respective fields, in this field, the use of these algorithms alone can already meet basic matching needs, so there is no need to simply combine the two algorithms. Traditional methods usually use a single algorithm to generate a preliminary matching product list, such as using only cosine similarity for directional matching or only using Mahalanobis distance for multi-dimensional feature matching. However, simply superimposing the two cannot give full play to their respective advantages, but may introduce problems of computational complexity and accuracy. Through the method invented by us, the result of cosine similarity is used as the weight to adjust the comprehensive feature vector of the product, and then combined with Mahalanobis distance for precise matching. This combination is not a simple technical superposition, but a scientifically designed weighting and adjustment to solve the limitations of each algorithm.

所述生成初步匹配的商品列表包括设置匹配度阈值,筛选出马氏距离小于匹配度阈值的商品。The generating of the preliminary matching commodity list includes setting a matching degree threshold and screening out commodities whose Mahalanobis distance is less than the matching degree threshold.

所述利用混合推荐算法生成个性化推荐结果包括通过协同过滤算法分析用户与商品之间的相似性,使用用户的评分数据计算相似性矩阵,计算用户与商品之间的相似性,得到用户与商品的相似性矩阵;The method of generating personalized recommendation results by using a hybrid recommendation algorithm includes analyzing the similarity between users and products by a collaborative filtering algorithm, calculating a similarity matrix using the user's rating data, calculating the similarity between users and products, and obtaining a similarity matrix between users and products;

根据相似性矩阵,筛选出与当前用户偏好相似的商品列表,选择相似度最高的商品作为候选商品;According to the similarity matrix, filter out a list of products similar to the current user's preferences, and select the products with the highest similarity as candidate products;

利用内容推荐算法,从商品描述中提取关键词和标签特征,使用自然语言处理技术进行文本分析,构建候选商品特征向量,根据用户的浏览频率、购买频率、最近浏览的商品ID列表、最近购买的商品ID列表、最近搜索的关键词列表、最近点击的广告ID列表、分享的商品ID列表和评价情感分析结果生成初始的用户行为特征向量,再进一步将用户历史上互动过的候选商品特征向量进行加权平均,形成最终的用户行为特征向量;Using the content recommendation algorithm, extract keywords and tag features from product descriptions, use natural language processing technology to perform text analysis, build candidate product feature vectors, and generate initial user behavior feature vectors based on the user's browsing frequency, purchase frequency, recently browsed product ID list, recently purchased product ID list, recently searched keyword list, recently clicked ad ID list, shared product ID list, and evaluation sentiment analysis results. Then, perform weighted average of the candidate product feature vectors that the user has interacted with in the past to form the final user behavior feature vector.

计算用户行为特征向量与候选商品特征向量之间的相似度,推荐与用户过去喜欢的商品相似的商品,生成推荐商品列表;Calculate the similarity between the user behavior feature vector and the candidate product feature vector, recommend products similar to those that the user liked in the past, and generate a list of recommended products;

使用矩阵分解技术对用户-物品评分矩阵进行分解,提取潜在特征,利用用户的历史评分数据构建用户-物品评分矩阵,行表示用户,列表示商品,值为用户对商品的评分;Use matrix decomposition technology to decompose the user-item rating matrix, extract potential features, and use the user's historical rating data to construct a user-item rating matrix, where rows represent users, columns represent items, and values are users' ratings of items.

将评分矩阵分解为用户特征矩阵和商品特征矩阵,提取用户和商品的潜在特征,采用奇异值分解方法,得到用户特征向量和候选商品特征向量;Decompose the rating matrix into a user feature matrix and a product feature matrix, extract the potential features of users and products, and use the singular value decomposition method to obtain the user feature vector and the candidate product feature vector;

利用分解后的特征矩阵,预测用户对未评分商品的可能评分,计算用户特征向量和候选商品特征向量的内积,得到预测评分;Using the decomposed feature matrix, predict the possible ratings of users for unrated products, calculate the inner product of the user feature vector and the candidate product feature vector, and get the predicted rating;

将相似性矩阵、相似度和预测评分结合,对每个商品,根据协同过滤、内容推荐和矩阵分解的结果,分别赋予权重,计算综合评分,根据综合评分,从高到低排序,生成初步推荐列表。The similarity matrix, similarity and predicted score are combined. For each product, weights are assigned according to the results of collaborative filtering, content recommendation and matrix decomposition, and a comprehensive score is calculated. According to the comprehensive score, the products are sorted from high to low to generate a preliminary recommendation list.

通过协同过滤、内容推荐和矩阵分解技术的结合,实现个性化推荐。协同过滤算法基于用户评分数据,内容推荐算法基于商品特征,矩阵分解技术提取用户和商品的潜在特征,综合这些算法的结果,生成了个性化的初步推荐列表。融合推荐算法,通过综合评分机制,对不同算法的结果进行加权处理,确保推荐结果的可靠性。与传统单一推荐算法相比,这种多算法融合的方法提高了推荐结果准确性。Personalized recommendations are achieved through the combination of collaborative filtering, content recommendation, and matrix decomposition technology. The collaborative filtering algorithm is based on user rating data, the content recommendation algorithm is based on product features, and the matrix decomposition technology extracts the potential features of users and products. The results of these algorithms are combined to generate a personalized preliminary recommendation list. The fusion recommendation algorithm uses a comprehensive scoring mechanism to weight the results of different algorithms to ensure the reliability of the recommendation results. Compared with the traditional single recommendation algorithm, this multi-algorithm fusion method improves the accuracy of the recommendation results.

所述通过风格标签库更新个性化推荐结果包括检查初步推荐商品的标签匹配情况,若没有对应的标签,将对应商品标记为缺失标签,将缺失标签的商品与标签库其他商品进行对比,利用相似商品的标签补全缺失标签;The updating of personalized recommendation results through the style tag library includes checking the tag matching of the initially recommended products. If there is no corresponding tag, the corresponding product is marked as missing a tag, the product with the missing tag is compared with other products in the tag library, and the missing tag is completed with the tags of similar products;

若初步推荐商品的特征在风格标签库中有对应的标签,从风格标签库中提取与初步推荐商品相关的颜色、材质、款式、品牌和价格特征标签;If the features of the initially recommended product have corresponding tags in the style tag library, extract the color, material, style, brand and price feature tags related to the initially recommended product from the style tag library;

计算每个初步推荐商品的标签匹配评分,根据用户的第二用户画像,为每个商品计算行为特征评分,将标签匹配评分与行为特征评分结合,通过加权平均方法计算每个商品的综合匹配度评分,根据综合匹配度评分,从高到低排序初步推荐商品,生成最终推荐列表。Calculate the label matching score of each preliminary recommended product, calculate the behavior feature score for each product based on the user's second user profile, combine the label matching score with the behavior feature score, and calculate the comprehensive matching score of each product through the weighted average method. According to the comprehensive matching score, sort the preliminary recommended products from high to low to generate the final recommendation list.

通过检查初步推荐商品的标签匹配情况,解决了商品标签信息不完整的问题。利用相似商品的标签补全缺失标签,确保了推荐结果的完整性。结合标签匹配评分和行为特征评分,通过加权平均计算综合匹配度评分,优化了推荐结果。通过标签补全机制和综合评分优化,确保了推荐结果的多维度考虑和优化。相比传统方法,能够处理商品标签信息缺失的问题,提高了推荐结果的完整性。By checking the label matching of the initially recommended products, the problem of incomplete product label information is solved. The missing labels are completed with the labels of similar products to ensure the integrity of the recommendation results. The label matching score and the behavior feature score are combined, and the comprehensive matching score is calculated by weighted average to optimize the recommendation results. The label completion mechanism and comprehensive score optimization ensure multi-dimensional consideration and optimization of the recommendation results. Compared with traditional methods, it can handle the problem of missing product label information and improve the integrity of the recommendation results.

所述进行个性化服装推荐包括在电商平台的用户界面将推荐商品按照综合匹配度评分排序,显示在用户的推荐页面中;The making of personalized clothing recommendations includes sorting the recommended products according to the comprehensive matching scores in the user interface of the e-commerce platform and displaying them on the user's recommendation page;

在推荐商品的展示页面上,显示每个商品的风格标签,在推荐商品页面,提供每个推荐商品的推荐理由,生成推荐解释;添加用户反馈机制,用户对每个推荐商品进行评分或标记是否喜欢;On the recommended product display page, display the style label of each product. On the recommended product page, provide the recommendation reason for each recommended product and generate a recommendation explanation. Add a user feedback mechanism so that users can rate each recommended product or mark whether they like it.

根据用户的实时反馈,动态调整推荐列表,使用实时数据和用户的即时反馈,更新用户画像,调整推荐结果。Dynamically adjust the recommendation list based on real-time user feedback, use real-time data and instant user feedback to update user portraits and adjust recommendation results.

通过在电商平台的用户界面显示推荐商品,并提供推荐理由和用户反馈机制,实现了个性化服装推荐的透明化和互动性。用户可以对推荐商品进行评分和反馈,根据实时反馈动态调整推荐列表,确保推荐结果的及时性和准确性。通过用户反馈机制,实现了推荐系统的动态调整和优化。与传统静态推荐系统相比,本发明的方法能够实时学习和优化推荐结果,提高了用户满意度。By displaying recommended products in the user interface of the e-commerce platform and providing reasons for recommendation and user feedback mechanism, the transparency and interactivity of personalized clothing recommendation are achieved. Users can rate and provide feedback on recommended products, and the recommendation list is dynamically adjusted according to real-time feedback to ensure the timeliness and accuracy of recommendation results. Through the user feedback mechanism, dynamic adjustment and optimization of the recommendation system are achieved. Compared with the traditional static recommendation system, the method of the present invention can learn and optimize the recommendation results in real time, improving user satisfaction.

实施例2,参照图2,为本发明的一个实施例,提供了一种基于人工智能的电商平台个性化服装推荐系统,包括:Embodiment 2, referring to FIG. 2 , is an embodiment of the present invention, which provides a personalized clothing recommendation system for an e-commerce platform based on artificial intelligence, including:

数据采集模块、特征提取模块以及服装推荐模块;Data collection module, feature extraction module and clothing recommendation module;

数据采集模块于收集用户基本信息和用户行为数据,构建用户画像;The data collection module is used to collect basic user information and user behavior data and build user portraits;

构建用户画像包括基于用户基本信息构建第一用户画像,基于用户行为数据构建第二用户画像;Building a user portrait includes building a first user portrait based on basic user information and building a second user portrait based on user behavior data;

特征提取模块用于对电商平台商品进行特征提取,并与第一用户画像进行匹配,计算用户画像与商品综合特征向量的匹配度,基于匹配结果建立风格标签库进行分类;The feature extraction module is used to extract features of products on the e-commerce platform and match them with the first user portrait, calculate the matching degree between the user portrait and the comprehensive feature vector of the product, and establish a style tag library for classification based on the matching results;

服装推荐模块用于基于第二用户画像利用混合推荐算法生成个性化推荐结果,通过风格标签库更新个性化推荐结果,进行个性化服装推荐。The clothing recommendation module is used to generate personalized recommendation results based on the second user portrait using a hybrid recommendation algorithm, update the personalized recommendation results through the style tag library, and perform personalized clothing recommendations.

实施例3,本发明的一个实施例,其不同于前两个实施例的是:Embodiment 3, an embodiment of the present invention, is different from the first two embodiments in that:

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置)、便携式计算机盘盒(磁装置)、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编辑只读存储器(EPROM或闪速存储器)、光纤装置以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

实施例4,为本发明的一个实施例,提供了一种基于人工智能的电商平台个性化服装推荐方法,为了验证本发明的有益效果,通过仿真实验进行科学论证。Example 4 is an embodiment of the present invention, which provides a personalized clothing recommendation method for an e-commerce platform based on artificial intelligence. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through simulation experiments.

在相同的硬件和软件环境下,选取一个包含丰富用户基本信息和行为数据的电商平台数据集,包含用户的年龄、性别、地理位置、职业、收入水平、最近浏览的商品ID列表、浏览频率、最近购买的商品ID列表、购买频率、平均评分、评价情感分析结果、最近搜索的关键词列表、搜索频率、最近点击的广告ID列表、点击频率、分享的商品ID列表、评论情感分析结果等。选择1000名用户作为实验对象,使用10000件商品进行推荐测试。Under the same hardware and software environment, we selected an e-commerce platform dataset containing rich basic user information and behavior data, including user age, gender, geographic location, occupation, income level, recently browsed product ID list, browsing frequency, recently purchased product ID list, purchase frequency, average rating, evaluation sentiment analysis results, recently searched keyword list, search frequency, recently clicked ad ID list, click frequency, shared product ID list, comment sentiment analysis results, etc. We selected 1,000 users as experimental subjects and used 10,000 products for recommendation testing.

传统方法一基于用户的基本信息(年龄、性别、地理位置)构建简单的用户画像,使用基于协同过滤算法的推荐方法,主要基于用户评分数据计算相似性矩阵,推荐与当前用户偏好相似的商品。生成推荐列表后展示给用户,用户对推荐结果进行评分,系统不进行动态调整。Traditional method 1 builds a simple user profile based on the user's basic information (age, gender, geographic location), uses a recommendation method based on collaborative filtering algorithm, mainly calculates the similarity matrix based on user rating data, and recommends products similar to the current user's preferences. After the recommendation list is generated, it is displayed to the user, and the user rates the recommendation results. The system does not make dynamic adjustments.

传统方法二基于用户的基本信息和部分行为数据(浏览频率和购买频率)构建用户画像,使用基于内容推荐算法的方法,从商品描述中提取关键词和标签特征,结合用户行为数据进行推荐。生成推荐列表后展示给用户,用户对推荐结果进行评分,系统进行有限的动态调整。Traditional method 2 builds a user profile based on the user's basic information and some behavior data (browsing frequency and purchase frequency), uses a content recommendation algorithm to extract keywords and tag features from product descriptions, and makes recommendations based on user behavior data. After generating a recommendation list, it is displayed to the user, who rates the recommendation results, and the system makes limited dynamic adjustments.

我方发明的方法首先通过用户的基本信息构建第一层用户画像,并通过用户行为数据构建第二层用户画像。对商品进行特征提取和分类,使用ResNet50模型提取商品图像的视觉特征,使用视觉变换网络进一步提取商品图像的高层次特征,并使用BERT模型提取商品文本描述的特征向量。融合图像和文本特征,构建商品综合特征向量,并建立风格标签库。利用混合推荐算法生成个性化推荐结果,通过协同过滤算法分析用户与商品之间的相似性,利用内容推荐算法从商品描述中提取关键词和标签特征,结合用户行为特征向量与候选商品特征向量之间的相似度,推荐与用户过去喜欢的商品,并通过矩阵分解技术对用户-物品评分矩阵进行分解,提取潜在特征,生成初步推荐列表。通过风格标签库更新个性化推荐结果,检查初步推荐商品的标签匹配情况,补全缺失标签,提取初步推荐商品的风格标签,计算标签匹配评分,结合行为特征评分,计算综合匹配度评分,排序初步推荐商品,生成最终推荐列表。实验结果如表1所示。The method invented by us first constructs the first-layer user portrait through the basic information of the user, and constructs the second-layer user portrait through the user behavior data. The product features are extracted and classified. The visual features of the product image are extracted using the ResNet50 model. The high-level features of the product image are further extracted using the visual transformation network. The feature vector of the product text description is extracted using the BERT model. The image and text features are integrated to construct a comprehensive feature vector of the product, and a style tag library is established. The hybrid recommendation algorithm is used to generate personalized recommendation results. The similarity between users and products is analyzed by the collaborative filtering algorithm. The keywords and tag features are extracted from the product description using the content recommendation algorithm. The products that the user liked in the past are recommended by combining the similarity between the user behavior feature vector and the candidate product feature vector. The user-item rating matrix is decomposed by matrix decomposition technology to extract potential features and generate a preliminary recommendation list. The personalized recommendation results are updated through the style tag library, the label matching of the preliminary recommended products is checked, the missing labels are completed, the style labels of the preliminary recommended products are extracted, the label matching scores are calculated, the comprehensive matching scores are calculated by combining the behavior feature scores, the preliminary recommended products are sorted, and the final recommendation list is generated. The experimental results are shown in Table 1.

表1实验结果对比表Table 1 Comparison of experimental results

传统推荐系统未能充分利用用户的基本信息和行为数据,导致推荐结果难以满足用户的个性化需求。本发明通过综合利用用户的基本信息和行为数据,构建多层次用户画像,提高了推荐结果的个性化程度。现有系统缺乏对推荐结果的解释性,用户难以理解推荐原因。本发明在推荐商品页面提供推荐理由和用户反馈机制,增加了推荐结果的透明度,提升用户的满意度和信任度。传统推荐系统难以动态捕捉用户偏好的变化。本发明通过实时更新用户画像和推荐结果,动态调整推荐结果,保持推荐结果的准确性和时效性。Traditional recommendation systems fail to fully utilize users' basic information and behavior data, resulting in recommendation results that are difficult to meet users' personalized needs. The present invention constructs a multi-level user portrait by comprehensively utilizing users' basic information and behavior data, thereby improving the personalization of recommendation results. Existing systems lack the ability to explain recommendation results, making it difficult for users to understand the reasons for recommendations. The present invention provides recommendation reasons and user feedback mechanisms on the recommended product page, which increases the transparency of recommendation results and improves user satisfaction and trust. Traditional recommendation systems find it difficult to dynamically capture changes in user preferences. The present invention dynamically adjusts recommendation results by updating user portraits and recommendation results in real time to maintain the accuracy and timeliness of recommendation results.

应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,其均应涵盖在本发明的权利要求范围当中。It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims (4)

1. The personalized clothing recommendation method based on the artificial intelligence for the electronic commerce platform is characterized by comprising the following steps of:
collecting user basic information and user behavior data, and constructing a user portrait;
the constructing of the user portraits comprises the steps of constructing a first user portraits based on user basic information and constructing a second user portraits based on user behavior data;
Extracting features of the commodity of the e-commerce platform, matching the commodity with a first user portrait, calculating the matching degree of the user portrait and the comprehensive feature vector of the commodity, and establishing a style tag library for classification based on a matching result;
generating a personalized recommendation result by utilizing a mixed recommendation algorithm based on the second user portrait, updating the personalized recommendation result through a style tag library, and performing personalized clothing recommendation;
the matching degree of the calculated user portrait and the commodity comprehensive feature vector is expressed as follows:
wherein, The cosine similarity is represented by A representing the user portrait vector, B representing the commodity comprehensive feature vector,Representing the norm of the user portrait vector,Representing the norms of the product synthesis feature vector,Represents the comprehensive characteristic vector of the commodity after adjustment,Represents the mean of the commodity comprehensive feature vector, S represents the covariance matrix,Indicating the number of the preliminary matching good,Represent the firstThe adjusted commodity comprehensive feature vector of the primarily matched commodity,Represent the firstThe primary matching commodity adjusts the transposition of the difference between the commodity comprehensive characteristic vector and the average value,The distance of the mahalanobis is indicated,A transpose representing the difference between the user portrait vector and the adjusted commodity comprehensive feature vector,An inverse matrix representing the covariance matrix;
the user basic information comprises age, gender, geographic position, occupation and income level;
the user behavior data comprises a recently browsed commodity ID list, a browsing frequency, a recently purchased commodity ID list, a purchasing frequency, an average score, an evaluation emotion analysis result, a recently searched keyword list, a searching frequency, a recently clicked advertisement ID list, a clicking frequency, a shared commodity ID list and a comment emotion analysis result;
The step of establishing a style tag library for classification comprises the steps of acquiring commodity images from a commodity database of an electronic commerce platform, and performing size adjustment, denoising and standardization treatment on the images; performing preliminary feature extraction on the pretreated commodity image by using ResNet model, and extracting visual features of color, material and style; further processing the preliminarily extracted visual features by using a visual transformation network, and extracting high-level features of the image, wherein the high-level features comprise global structural features and local mode features of the image; extracting text data from the commodity description, wherein the text data comprises brands, styles, materials and prices, cleaning and standardizing the text data, extracting text features by using a BERT model, and generating text feature vectors representing the semantics of the commodity description; respectively carrying out standardization processing on the high-level features and the text features of the image, and fusing the standardized high-level features and the standardized text features of the image to construct a commodity comprehensive feature vector;
carrying out preliminary matching on the commodity comprehensive feature vector and the first user portrait through the matching degree of the user portrait and the commodity comprehensive feature vector, and generating a commodity list of preliminary matching for each user; based on preliminary matching, a label propagation algorithm and a graph rolling network are used for carrying out refined classification on the commodities according to the preference of the user portraits and the matching degree of the comprehensive feature vectors of the commodities, and the commodities are subdivided into specific subclasses;
Generating a style label for each commodity according to the result of refining classification, wherein the style label comprises color, material, style, brand and price, and storing the style label to generate a style label library;
the generation of the commodity list of preliminary matching comprises the steps of setting a matching degree threshold value and screening commodities with the Mahalanobis distance smaller than the matching degree threshold value;
The step of generating personalized recommendation results by using a mixed recommendation algorithm comprises the steps of analyzing the similarity between a user and a commodity by using a collaborative filtering algorithm, calculating a similarity matrix by using scoring data of the user, calculating the similarity between the user and the commodity, and obtaining the similarity matrix of the user and the commodity;
Screening a commodity list similar to the current user preference according to the similarity matrix, and selecting the commodity with the highest similarity as a candidate commodity;
Extracting keywords and tag features from the commodity description by using a content recommendation algorithm, performing text analysis by using a natural language processing technology, constructing candidate commodity feature vectors, generating initial user behavior feature vectors according to browsing frequency, purchasing frequency, recently browsed commodity ID list, recently purchased commodity ID list, recently searched keyword list, recently clicked advertisement ID list, shared commodity ID list and evaluation emotion analysis result of a user, and further performing weighted average on the candidate commodity feature vectors interacted historically by the user to form final user behavior feature vectors;
Calculating the similarity between the user behavior feature vector and the candidate commodity feature vector, recommending commodities similar to commodities liked by the user in the past, and generating a recommended commodity list;
Decomposing a user-article scoring matrix by using a matrix decomposition technology, extracting potential characteristics, constructing a user-article scoring matrix by using historical scoring data of the user, representing the user by rows, and representing the commodity by columns, wherein the value is the score of the user to the commodity;
decomposing the scoring matrix into a user feature matrix and a commodity feature matrix, extracting potential features of users and commodities, and obtaining a user feature vector and a candidate commodity feature vector by adopting a singular value decomposition method;
predicting the possible score of the user on the unscored commodity by using the decomposed feature matrix, and calculating the inner product of the user feature vector and the candidate commodity feature vector to obtain a predicted score;
combining the similarity matrix, the similarity and the predictive score, respectively giving weight to each commodity according to the results of collaborative filtering, content recommendation and matrix decomposition, calculating comprehensive scores, and generating a preliminary recommendation list according to the ranking from high to low of the comprehensive scores;
Updating the personalized recommendation result through the style tag library comprises checking the tag matching condition of the primarily recommended commodity, marking the corresponding commodity as a missing tag if the corresponding tag does not exist, comparing the commodity with other commodities in the tag library, and complementing the missing tag by using the tag of the similar commodity;
If the characteristics of the primarily recommended commodity have corresponding labels in the style label library, extracting color, material, style, brand and price characteristic labels related to the primarily recommended commodity from the style label library;
Calculating a label matching score of each primarily recommended commodity, calculating a behavior characteristic score for each commodity according to a second user portrait of a user, combining the label matching score with the behavior characteristic score, calculating a comprehensive matching degree score of each commodity by a weighted average method, and sequencing the primarily recommended commodity from high to low according to the comprehensive matching degree score to generate a final recommendation list;
the personalized clothing recommendation comprises the steps of sorting recommended commodities according to comprehensive matching degree scores in a user interface of an electronic commerce platform, and displaying the recommended commodities in a recommendation page of a user;
displaying style labels of all the commodities on a display page of the recommended commodities, and providing recommendation reasons of all the recommended commodities on the recommended commodity page to generate recommendation explanation; adding a user feedback mechanism, and grading or marking whether each recommended commodity is liked by a user;
and dynamically adjusting the recommendation list according to the real-time feedback of the user, updating the user portrait by using the real-time data and the real-time feedback of the user, and adjusting the recommendation result.
2. A system employing the artificial intelligence based e-commerce platform personalized apparel recommendation method of claim 1, comprising: the device comprises a data acquisition module, a characteristic extraction module and a clothing recommendation module;
the data acquisition module is used for collecting user basic information and user behavior data and constructing a user portrait;
the constructing of the user portraits comprises the steps of constructing a first user portraits based on user basic information and constructing a second user portraits based on user behavior data;
the feature extraction module is used for extracting features of the commodity of the e-commerce platform, matching the commodity with the first user portrait, calculating the matching degree of the user portrait and the comprehensive feature vector of the commodity, and establishing a style tag library for classification based on a matching result;
The clothing recommendation module is used for generating personalized recommendation results based on the second user portrait by utilizing a hybrid recommendation algorithm, updating the personalized recommendation results through the style tag library and conducting personalized clothing recommendation.
3. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the artificial intelligence based e-commerce platform personalized garment recommendation method of claim 1.
4. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the artificial intelligence based e-commerce platform personalized garment recommendation method of claim 1.
CN202411104217.7A 2024-08-13 2024-08-13 Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence Active CN118628214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411104217.7A CN118628214B (en) 2024-08-13 2024-08-13 Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411104217.7A CN118628214B (en) 2024-08-13 2024-08-13 Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence

Publications (2)

Publication Number Publication Date
CN118628214A CN118628214A (en) 2024-09-10
CN118628214B true CN118628214B (en) 2024-11-05

Family

ID=92596484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411104217.7A Active CN118628214B (en) 2024-08-13 2024-08-13 Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN118628214B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118799040B (en) * 2024-09-12 2025-02-28 杭州魔力玛特科技有限公司 Automatic recommendation marketing method and system for online figures
CN118916551B (en) * 2024-10-09 2025-02-14 江苏盛美塾信息科技有限公司 A multi-source data fusion analysis push system and method based on cloud platform
CN118982384B (en) * 2024-10-22 2025-08-01 浙江广电新媒体有限公司 Intelligent marketing method and system based on user image
CN119379438A (en) * 2024-10-25 2025-01-28 深圳数据交易所有限公司 Intelligent data transaction matching method
CN119151643A (en) * 2024-11-11 2024-12-17 北京壹心壹翼科技有限公司 Commodity recommendation method based on consumer behavior
CN119205283A (en) * 2024-11-29 2024-12-27 江苏润易联信息技术有限公司 Method and system for pushing products and services based on payment value chain model
CN119226629B (en) * 2024-12-04 2025-04-11 深圳市秦丝科技有限公司 Collocation recommendation method and system based on association rule mining
CN119784411B (en) * 2024-12-17 2025-08-22 苏州瓴明信息科技有限公司 Adaptive construction method of product portrait
CN119338531A (en) * 2024-12-20 2025-01-21 北京亿家老小科技有限公司 A method and system for pushing products based on consumer addresses
CN119537704A (en) * 2025-01-22 2025-02-28 山东科技大学 A time-aware user portrait modeling method based on sentiment analysis
CN120353999A (en) * 2025-04-02 2025-07-22 伟吉鑫(湖北)电子科技有限公司 Output matching method based on intelligent personalized engine
CN120372099B (en) * 2025-06-25 2025-09-12 南昌童言童语信息技术有限公司 A book intelligent recommendation method and system based on user portrait
CN121388279A (en) * 2025-07-04 2026-01-23 北京城市网邻信息技术有限公司 Resource information recommendation method, device, storage medium and program product
CN120807100A (en) * 2025-07-12 2025-10-17 广州花托邦信息科技有限公司 Flower commodity recommendation method and system based on user data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116757779A (en) * 2023-06-21 2023-09-15 深圳元气玛特互联网科技有限公司 A recommendation method based on user portraits
CN118313906A (en) * 2024-06-11 2024-07-09 杭州字节方舟科技有限公司 Personalized product recommendation method
JP7525750B1 (en) * 2024-03-04 2024-07-30 株式会社BitStar Server and computer program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6744353B2 (en) * 2017-04-06 2020-08-19 ネイバー コーポレーションNAVER Corporation Personalized product recommendation using deep learning
CN111709812A (en) * 2020-06-19 2020-09-25 山东财经大学 Product recommendation method and system for e-commerce platform based on user dynamic classification
CN117216529A (en) * 2023-09-20 2023-12-12 浙江迪和能源科技有限公司 A method, system and product for online monitoring of molten salt energy storage system equipment
CN117726357A (en) * 2023-12-25 2024-03-19 北京全网数商科技股份有限公司 An e-commerce marketing method based on SCRM

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116757779A (en) * 2023-06-21 2023-09-15 深圳元气玛特互联网科技有限公司 A recommendation method based on user portraits
JP7525750B1 (en) * 2024-03-04 2024-07-30 株式会社BitStar Server and computer program
CN118313906A (en) * 2024-06-11 2024-07-09 杭州字节方舟科技有限公司 Personalized product recommendation method

Also Published As

Publication number Publication date
CN118628214A (en) 2024-09-10

Similar Documents

Publication Publication Date Title
CN118628214B (en) Personalized clothing recommendation method and system for electronic commerce platform based on artificial intelligence
US11682060B2 (en) Methods and apparatuses for providing search results using embedding-based retrieval
KR101419504B1 (en) System and method providing a suited shopping information by analyzing the propensity of an user
CN108205768B (en) Database establishing method, data recommending device, equipment and storage medium
US10360623B2 (en) Visually generated consumer product presentation
CN113032668A (en) Product recommendation method, device and equipment based on user portrait and storage medium
CN113946754A (en) User portrait based rights and interests recommendation method, device, equipment and storage medium
CN111292168B (en) Data processing method, device and equipment
Alazab et al. Maximising competitive advantage on E-business websites: A data mining approach
US20230020751A1 (en) System and Method for Efficiently Identifying and Segmenting Product Webpages on an eCommerce Website
KR20180052489A (en) method of providing goods recommendation for cross-border E-commerce based on user experience analysis and environmental factors
CN118193806B (en) Target retrieval method, target retrieval device, electronic equipment and storage medium
CN108153792A (en) A kind of data processing method and relevant apparatus
US20240112225A1 (en) Predicting the Value of an Asset Using Machine-Learning Techniques
CN119205259A (en) Data recommendation method, device, computer equipment and storage medium
Lomas et al. A systematic literature review of artificial intelligence in fashion retail B2C
KR101026544B1 (en) Ranking analysis method based on artificial intelligence, recording medium recording the same, apparatus
CN117745373A (en) Product recommendation method and system and electronic equipment
Ou et al. An Intelligent Recommendation System for Real Estate Commodity.
CN120106939A (en) Commodity search method and its device, equipment and medium
CN119415693A (en) Commodity marking method and its device, equipment and medium
CN113127597A (en) Processing method and device for search information and electronic equipment
Wu et al. [Retracted] Using the Mathematical Model on Precision Marketing with Online Transaction Data Computing
Ou et al. Establishing a Dynamic Recommendation System for E-commerce by Integrating Online Reviews, Product Feature Expansion, and Deep Learning
WO2023002366A1 (en) SYSTEM AND METHOD FOR EFFICIENTLY IDENTIFYING AND SEGMENTING PRODUCT WEBPAGES ON AN eCOMMERCE WEBSITE

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant