CN114936907A - Commodity recommendation method and system based on node type interaction - Google Patents
Commodity recommendation method and system based on node type interaction Download PDFInfo
- Publication number
- CN114936907A CN114936907A CN202210674885.8A CN202210674885A CN114936907A CN 114936907 A CN114936907 A CN 114936907A CN 202210674885 A CN202210674885 A CN 202210674885A CN 114936907 A CN114936907 A CN 114936907A
- Authority
- CN
- China
- Prior art keywords
- node
- type
- feature
- type interaction
- nodes
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0631—Recommending goods or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开一种基于节点类型交互的商品推荐方法及系统,包括:以商品类型、店铺和用户类型为节点,以用户行为为边构建异质信息网络;对不同类型的节点进行特征转换后,将所有节点映射到同一特征空间;构建用户‑商品、用户‑店铺、商品‑店铺间的类型交互函数,以对特征转换后的节点特征进行不同类型的类型交互,并根据边类型对类型交互后的节点进行赋权;对赋权后的节点进行邻居节点信息的聚合,以此更新异质信息网络,采用更新后的异质信息网络根据商品推荐任务进行商品推荐。不局限于基于元路径的推荐方法,针对节点类型设计特征转换和交互函数,使得获取到的网络信息更全面,缓解数据稀疏和冷启动的问题。
The invention discloses a product recommendation method and system based on node type interaction. Map all nodes to the same feature space; build type interaction functions between users-commodities, users-stores, and commodity-stores to perform different types of type interactions on the node features after feature conversion, and according to the edge type, after the type interaction The weighted nodes are weighted; the neighbor node information is aggregated for the weighted nodes, so as to update the heterogeneous information network, and the updated heterogeneous information network is used to recommend products according to the product recommendation task. Not limited to the meta-path-based recommendation method, feature transformation and interaction functions are designed for node types, so that the acquired network information is more comprehensive, and the problems of data sparseness and cold start are alleviated.
Description
技术领域technical field
本发明涉及推荐系统技术领域,特别是涉及一种基于节点类型交互的商品推荐方法及系统。The present invention relates to the technical field of recommendation systems, in particular to a method and system for recommending products based on node type interaction.
背景技术Background technique
本部分的陈述仅仅是提供了与本发明相关的背景技术信息,不必然构成在先技术。The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
推荐系统通过学习用户偏好,深入挖掘用户的潜在需求,预测用户感兴趣的物品,为用户进行个性化推荐。在网络上,人们可以从多种物品中浏览、选购符合自己要求的物品,但是随着大数据时代的到来,信息量呈爆炸式增长,大体量且类型多样的数据混合在一起,一方面为用户提供了更多的购买选择,另一方面也提高了用户挑选物品、过滤信息的难度,因此对商品的推荐方法及系统旨在分析每位用户的不同需求,从众多物品中为用户进行个性化挑选和推荐,缓解信息过载问题,提升用户的选购体验感。The recommendation system learns user preferences, digs deep into the potential needs of users, predicts the items that users are interested in, and makes personalized recommendations for users. On the Internet, people can browse and purchase items that meet their own requirements from a variety of items. However, with the advent of the era of big data, the amount of information has exploded, and large volumes and various types of data are mixed together. It provides users with more purchasing options. On the other hand, it also increases the difficulty for users to select items and filter information. Therefore, the method and system for recommending items aims to analyze the different needs of each user, and make recommendations for users from many items. Personalized selection and recommendation can alleviate the problem of information overload and improve the user's shopping experience.
基于商品的推荐系统属于一种异质信息网络,它由多种类型的节点、多种型的连接边构成。比如节点包含物品、用户等,连接边包含点击、加购、关注等。节点根据不同的视角分析,又具备不同的属性信息,物品可以拥有衣服、食品、护肤品等属性信息或必需商品和非必需商品等属性信息,用户可以拥有青少年、中老年等属性信息或学生、上班族等属性信息,店铺可以拥有男装、女装等属性信息或服装、美食等属性信息。Commodity-based recommendation system belongs to a heterogeneous information network, which consists of various types of nodes and various types of connecting edges. For example, nodes include items, users, etc., and connecting edges include clicks, add-ons, and attention. Nodes are analyzed from different perspectives and have different attribute information. Items can have attribute information such as clothes, food, and skin care products, or attribute information such as essential and non-essential products. Users can have attribute information such as teenagers, middle-aged and elderly, or students, Attribute information such as office workers, stores can have attribute information such as men's clothing and women's clothing, or attribute information such as clothing and food.
商品推荐的基本步骤是先将用户-商品交互数据与所有辅助信息统一建模为异质信息网络,然后提取网络信息设计合适的推荐模型。基于异质信息网络进行推荐通常使用手工设计元路径提取网络信息,但是该方法复杂性高,且由于异质信息网络中蕴含丰富的语义信息,往往很难用多个元路径穷尽,使用元路径来寻找目标顶点的邻居节点的过程中很容易产生信息丢失的问题。The basic steps of product recommendation are to first model the user-product interaction data and all auxiliary information as a heterogeneous information network, and then extract the network information to design an appropriate recommendation model. Recommendations based on heterogeneous information networks usually use hand-designed meta-paths to extract network information. However, this method is highly complex, and due to the rich semantic information contained in heterogeneous information networks, it is often difficult to exhaust multiple meta-paths. In the process of finding the neighbor nodes of the target vertex, the problem of information loss is easy to occur.
发明内容SUMMARY OF THE INVENTION
为了解决上述问题,本发明提出了一种基于节点类型交互的商品推荐方法及系统,为提高推荐系统获取信息的全面性和准确性,不局限于基于元路径的推荐方法,针对节点类型设计特征转换和交互函数,使得获取到的网络信息更全面,缓解数据稀疏和冷启动的问题。In order to solve the above problems, the present invention proposes a product recommendation method and system based on node type interaction. In order to improve the comprehensiveness and accuracy of the information obtained by the recommendation system, it is not limited to the recommendation method based on meta-path, and design features for node types. The transformation and interaction functions make the obtained network information more comprehensive and alleviate the problems of data sparseness and cold start.
为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
第一方面,本发明提供一种基于节点类型交互的商品推荐方法,包括:In a first aspect, the present invention provides a product recommendation method based on node type interaction, including:
以商品类型、店铺和用户类型为节点,以用户行为为边构建异质信息网络;Build a heterogeneous information network with commodity types, stores and user types as nodes and user behavior as edges;
对不同类型的节点进行特征转换后,将所有节点映射到同一特征空间;After feature transformation of different types of nodes, all nodes are mapped to the same feature space;
构建用户-商品、用户-店铺、商品-店铺间的类型交互函数,以对特征转换后的节点特征进行不同类型的类型交互,并根据边类型对类型交互后的节点进行赋权;Construct user-commodity, user-store, and commodity-store type interaction functions to perform different types of type interactions on node features after feature conversion, and weight the nodes after type interaction according to edge types;
对赋权后的节点进行邻居节点信息的聚合,以此更新异质信息网络,采用更新后的异质信息网络根据商品推荐任务进行商品推荐。The weighted nodes are aggregated with neighbor node information to update the heterogeneous information network, and the updated heterogeneous information network is used to recommend products according to the product recommendation task.
作为可选择的实施方式,每一类型的节点设计特征转换函数以使每个节点映射到d维向量;节点i经过特征转换后的特征为:其中,hi为节点i的初始特征。As an alternative implementation, each type of node is designed with a feature transfer function so that each node is mapped to a d-dimensional vector; the feature of node i after feature transformation for: Among them, h i is the initial feature of node i.
作为可选择的实施方式,用户-商品间的类型交互函数H(au,ag)为:As an optional implementation, the type interaction function H( au , a g ) between users and commodities is:
用户-店铺间的类型交互函数H(au,as)为:The type interaction function H(a u , a s ) between users and stores is:
商品-店铺间的类型交互函数H(ag,as)为:The type interaction function H(a g , a s ) between commodities and stores is:
其中,kj、ki分别表示进行类型交互的两个不同类型的节点特征。Among them, k j and k i respectively represent two different types of node features for type interaction.
作为可选择的实施方式,类型交互后的节点特征包括:As an optional implementation manner, the node characteristics after type interaction include:
对于用户类型的节点i,类型交互后的特征hi′(u)表示为:For node i of user type, the feature h i '(u) after type interaction is expressed as:
对于商品类型的节点i,类型交互后的特征hi′(g)表示为:For node i of commodity type, the feature h i '(g) after type interaction is expressed as:
对于店铺类型的节点i,类型交互后的特征hi′(s)表示为:For node i of store type, the feature h i '(s) after type interaction is expressed as:
其中,为节点i经过特征转换后的特征。in, is the feature of node i after feature transformation.
作为可选择的实施方式,赋权后的节点的特征hi″表示为:其中,hi′为类型交互后的节点特征,是归一化后的权重。As an optional embodiment, the feature h i " of the node after weighting is expressed as: Among them, h i ′ is the node feature after type interaction, is the normalized weight.
作为可选择的实施方式,权重为:其中,W是权重矩阵,b是偏置向量。As an optional implementation, the weights are: where W is the weight matrix and b is the bias vector.
作为可选择的实施方式,聚合邻居节点信息后的特征表示为:As an optional implementation, the features after aggregating neighbor node information Expressed as:
其中,hi″为赋权后的节点的特征,为节点i经过特征转换后的特征,H(ai,aj)为类型ai和类型aj的类型交互函数。Among them, h i ″ is the feature of the node after weighting, is the feature of node i after feature transformation, H( ai , a j ) is the type interaction function of type a i and type a j .
第二方面,本发明提供一种基于节点类型交互的商品推荐系统,包括:In a second aspect, the present invention provides a product recommendation system based on node type interaction, including:
网络构建模块,被配置为以商品类型、店铺和用户类型为节点,以用户行为为边构建异质信息网络;The network building module is configured to construct a heterogeneous information network with commodity types, stores and user types as nodes and user behavior as edges;
特征转换模块,被配置为对不同类型的节点进行特征转换后,将所有节点映射到同一特征空间;The feature transformation module is configured to map all nodes to the same feature space after feature transformation for different types of nodes;
类型交互模块,被配置为构建用户-商品、用户-店铺、商品-店铺间的类型交互函数,以对特征转换后的节点特征进行不同类型的类型交互,并根据边类型对类型交互后的节点进行赋权;The type interaction module is configured to construct user-commodity, user-store, and commodity-store type interaction functions, so as to perform different types of type interactions on the node features after feature conversion, and according to the edge type. to empower;
信息聚合模块,被配置为对赋权后的节点进行邻居节点信息的聚合,以此更新异质信息网络,采用更新后的异质信息网络根据商品推荐任务进行商品推荐。The information aggregation module is configured to aggregate the neighbor node information for the weighted nodes, so as to update the heterogeneous information network, and use the updated heterogeneous information network to perform product recommendation according to the product recommendation task.
第三方面,本发明提供一种电子设备,包括存储器和处理器以及存储在存储器上并在处理器上运行的计算机指令,所述计算机指令被处理器运行时,完成第一方面所述的方法。In a third aspect, the present invention provides an electronic device, comprising a memory, a processor, and computer instructions stored in the memory and executed on the processor, and when the computer instructions are executed by the processor, the method described in the first aspect is completed .
第四方面,本发明提供一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时,完成第一方面所述的方法。In a fourth aspect, the present invention provides a computer-readable storage medium for storing computer instructions, and when the computer instructions are executed by a processor, the method described in the first aspect is completed.
与现有技术相比,本发明的有益效果为:Compared with the prior art, the beneficial effects of the present invention are:
本发明提出一种基于节点类型交互的商品推荐方法及系统,针对节点类型设计类型交互函数,使得获取到的网络信息更全面,缓解数据稀疏和冷启动的问题,而且对推荐的结果也是可解释且有迹可循的。The present invention proposes a product recommendation method and system based on the interaction of node types. The type interaction function is designed according to the node type, so that the acquired network information is more comprehensive, the problems of data sparseness and cold start are alleviated, and the recommended results are also interpretable. And there are traces.
大数据包含丰富的语义信息,而通过元路径提取语义信息一般是选择连接关系比较丰富、语义特性比较强的元路径,但是找到这样的元路径需要比较多的领域知识。本发明摆脱对元路径的依赖,避免手工设计元路径的复杂性,提取到更全面的网络信息表示。Big data contains rich semantic information, and extracting semantic information through meta-paths is generally to select meta-paths with rich connections and strong semantic characteristics, but finding such meta-paths requires more domain knowledge. The invention gets rid of the dependence on the meta-path, avoids the complexity of manually designing the meta-path, and extracts a more comprehensive network information representation.
本发明提出的一种基于节点类型交互的商品推荐方法及系统,专注于提取节点信息,通过保持网络模式的结构特性学习到丰富的语义关系用于推荐任务。The method and system for commodity recommendation based on node type interaction proposed by the present invention focus on extracting node information, and learn rich semantic relationships for recommendation tasks by maintaining the structural characteristics of the network mode.
本发明附加方面的优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will become apparent from the description which follows, or may be learned by practice of the invention.
附图说明Description of drawings
构成本发明的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。The accompanying drawings forming a part of the present invention are used to provide further understanding of the present invention, and the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation of the present invention.
图1为本发明实施例1提供的基于节点类型交互的商品推荐方法流程图;1 is a flowchart of a method for recommending products based on node type interaction provided in Embodiment 1 of the present invention;
图2为本发明实施例1提供的异质信息网络图。FIG. 2 is a heterogeneous information network diagram provided by Embodiment 1 of the present invention.
具体实施方式Detailed ways
下面结合附图与实施例对本发明做进一步说明。The present invention will be further described below with reference to the accompanying drawings and embodiments.
应该指出,以下详细说明都是示例性的,旨在对本发明提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本发明的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that the terms "including" and "having" and any conjugations thereof are intended to cover the non-exclusive A process, method, system, product or device comprising, for example, a series of steps or units is not necessarily limited to those steps or units expressly listed, but may include those steps or units not expressly listed or for such processes, methods, Other steps or units inherent to the product or equipment.
在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
实施例1Example 1
本实施例提供一种基于节点类型交互的商品推荐方法,为提高推荐系统获取信息的全面性和准确性,不拘泥于基于元路径的推荐方法,针对节点类型设计交互函数,使得获取到的网络信息更全面,缓解数据稀疏和冷启动的问题。This embodiment provides a product recommendation method based on node type interaction. In order to improve the comprehensiveness and accuracy of the information obtained by the recommendation system, the interaction function is designed for the node type without being restricted to the recommendation method based on the meta-path, so that the obtained network The information is more comprehensive, and the problems of data sparseness and cold start are alleviated.
如图1所示,具体包括:As shown in Figure 1, it includes:
以商品类型、店铺和用户类型为节点,以用户行为为边构建异质信息网络;Build a heterogeneous information network with commodity types, stores and user types as nodes and user behavior as edges;
对不同类型的节点进行特征转换后,将所有节点映射到同一特征空间;After feature transformation of different types of nodes, all nodes are mapped to the same feature space;
构建用户-商品、用户-店铺、商品-店铺间的类型交互函数,以对特征转换后的节点特征进行不同类型的类型交互,并根据边类型对类型交互后的节点进行赋权;Construct user-commodity, user-store, and commodity-store type interaction functions to perform different types of type interactions on node features after feature conversion, and weight the nodes after type interaction according to edge types;
对赋权后的节点进行邻居节点信息的聚合,以此更新异质信息网络,采用更新后的异质信息网络根据商品推荐任务进行商品推荐。The weighted nodes are aggregated with neighbor node information to update the heterogeneous information network, and the updated heterogeneous information network is used to recommend products according to the product recommendation task.
在本实施例中,所述商品类型包括食品、美妆、服饰、文具、数码等,用户包括男女青年和儿童,店铺对应商品的类型,用户行为包括购买、加购、收藏、上架、关注等,构建的异质信息网络如图2所示。In this embodiment, the commodity types include food, beauty, clothing, stationery, digital, etc., users include young men and women and children, the store corresponds to the type of commodity, and user behaviors include purchase, additional purchase, collection, listing, attention, etc. , the constructed heterogeneous information network is shown in Figure 2.
异质信息网络表示为其中表示节点集合,ε表示边集合;The heterogeneous information network is represented as in represents the node set, and ε represents the edge set;
设节点类型映射函数和连接边类型映射函数分别为其中表示节点类型的集合,表示连接边类型的集合;对于两个相邻节点设其节点类型分别为ai、aj,连接边为e=(i,j,ri,j)∈ε,连接边类型为ri,j。Let the node type mapping function and the connection edge type mapping function be respectively in represents a collection of node types, Represents a collection of connected edge types; for two adjacent nodes Let its node types be a i , a j respectively, the connecting edge is e=(i,j,r i,j )∈ε, and the connecting edge type is ri ,j .
可以理解的,上述所有数据的获取都在符合法律法规和用户同意的基础上,对数据进行合法应用。It is understandable that all the above data are obtained on the basis of compliance with laws and regulations and the user's consent, and the data is legally used.
在本实施例中,为商品类型、店铺和用户类型的不同类型节点设计特征转换函数C;由于推荐的数据类型复杂,不同类型节点的特征空间不同,设图中节点i、j的初始特征分别为hi、hj,首先对节点类型分类为为每一类型的节点设计特征转换函数使得将所有类型节点映射到同一特征空间中,即将每个节点都映射到d维向量;In this embodiment, a feature conversion function C is designed for different types of nodes of commodity type, store and user type; because the recommended data types are complex and the feature spaces of different types of nodes are different, the graph The initial features of nodes i and j are respectively hi and h j . First, the node types are classified as Design feature transfer functions for each type of node make Map all types of nodes into the same feature space, that is, map each node to a d-dimensional vector;
具体地,节点i、j经过特征转换后的特征表示为:Specifically, the features of nodes i and j after feature transformation are expressed as:
在本实施例中,分别构建用户-商品、用户-店铺、商品-店铺间的类型交互函数H(au,ag)、H(au,as)和H(ag,as),以分别学习用户、商品和店铺间的相关性和转换关系;In this embodiment, the type interaction functions H(a u , a g ), H(a u , a s ) and H(a g , a s ) between user-commodity, user-store, and product-store are constructed respectively. , to learn the correlation and conversion relationship between users, products and stores, respectively;
具体地,用户-商品节点间的类型交互函数H(au,ag)为:Specifically, the type interaction function H(a u , a g ) between user-commodity nodes is:
用户-店铺节点间的类型交互函数H(au,as)为:The type interaction function H(a u , a s ) between user-store nodes is:
商品-店铺节点间的类型交互函数H(ag,as)为:The type interaction function H(a g , a s ) between commodity-store nodes is:
其中,kj、ki分别表示进行类型交互的两个不同类型的节点特征。Among them, k j and k i respectively represent two different types of node features for type interaction.
对于属于用户类型的节点i,其交互后的特征表示为:For the node i belonging to the user type, its interactive features are expressed as:
对于属于商品类型的节点i,其交互后的特征表示为:For the node i belonging to the commodity type, its interactive features are expressed as:
对于属于店铺类型的节点i,其交互后的特征表示为:For node i belonging to the store type, its interactive features are expressed as:
在本实施例中,根据边类型对类型交互后的节点进行赋权;即:In this embodiment, the nodes after type interaction are weighted according to the edge type; namely:
其中,是归一化后的权重;in, is the normalized weight;
其中,W是权重矩阵,b是偏置向量。where W is the weight matrix and b is the bias vector.
在本实施例中,对赋权后的节点进行邻居节点信息的聚合,以获取节点的高阶语义信息。邻居节点为与节点i相连接的节点,聚合与节点i相连接的节点信息,同时为每个节点添加自环,使得节点保留自己本身的特征,提取到网络更丰富的属性信息,同时对冷启动问题也有一定的缓解作用。In this embodiment, neighbor node information is aggregated for the weighted nodes to obtain high-order semantic information of the nodes. Neighbor nodes are nodes connected to node i, aggregate the information of nodes connected to node i, and add a self-loop to each node, so that nodes retain their own characteristics, extract richer attribute information of the network, and at the same time for cold Startup issues are also somewhat mitigated.
聚合邻居节点信息后的特征表示为:The features after aggregating neighbor node information are expressed as:
在本实施例中,根据上述对节点的处理,更新异质信息网络,并通过交叉熵损失函数进行优化,以根据商品推荐任务对商品排序后,结合top-k推荐策略进行推荐。In this embodiment, according to the above processing of nodes, the heterogeneous information network is updated, and the cross-entropy loss function is used for optimization, so that after the products are sorted according to the product recommendation task, the recommendation is carried out in combination with the top-k recommendation strategy.
实施例2Example 2
本实施例提供一种基于节点类型交互的商品推荐系统,包括:This embodiment provides a product recommendation system based on node type interaction, including:
网络构建模块,被配置为以商品类型、店铺和用户类型为节点,以用户行为为边构建异质信息网络;The network building module is configured to construct a heterogeneous information network with commodity types, stores and user types as nodes and user behavior as edges;
特征转换模块,被配置为对不同类型的节点进行特征转换后,将所有节点映射到同一特征空间;The feature transformation module is configured to map all nodes to the same feature space after feature transformation for different types of nodes;
类型交互模块,被配置为构建用户-商品、用户-店铺、商品-店铺间的类型交互函数,以对特征转换后的节点特征进行不同类型的类型交互,并根据边类型对类型交互后的节点进行赋权;The type interaction module is configured to construct user-commodity, user-store, and commodity-store type interaction functions, so as to perform different types of type interactions on the node features after feature conversion, and according to the edge type. to empower;
信息聚合模块,被配置为对赋权后的节点进行邻居节点信息的聚合,以此更新异质信息网络,采用更新后的异质信息网络根据商品推荐任务进行商品推荐。The information aggregation module is configured to aggregate the neighbor node information for the weighted nodes, so as to update the heterogeneous information network, and use the updated heterogeneous information network to perform product recommendation according to the product recommendation task.
此处需要说明的是,上述模块对应于实施例1中所述的步骤,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例1所公开的内容。需要说明的是,上述模块作为系统的一部分可以在诸如一组计算机可执行指令的计算机系统中执行。It should be noted here that the foregoing modules correspond to the steps described in Embodiment 1, and the examples and application scenarios implemented by the foregoing modules and corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1 above. It should be noted that the above modules may be executed in a computer system such as a set of computer-executable instructions as part of the system.
在更多实施例中,还提供:In further embodiments, there is also provided:
一种电子设备,包括存储器和处理器以及存储在存储器上并在处理器上运行的计算机指令,所述计算机指令被处理器运行时,完成实施例1中所述的方法。为了简洁,在此不再赘述。An electronic device includes a memory, a processor, and computer instructions stored on the memory and executed on the processor, and when the computer instructions are executed by the processor, the method described in Embodiment 1 is completed. For brevity, details are not repeated here.
应理解,本实施例中,处理器可以是中央处理单元CPU,处理器还可以是其他通用处理器、数字信号处理器DSP、专用集成电路ASIC,现成可编程门阵列FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic devices , discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据、存储器的一部分还可以包括非易失性随机存储器。例如,存储器还可以存储设备类型的信息。The memory may include read-only memory and random access memory and provide instructions and data to the processor, and a portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information.
一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时,完成实施例1中所述的方法。A computer-readable storage medium for storing computer instructions, when the computer instructions are executed by a processor, the method described in Embodiment 1 is completed.
实施例1中的方法可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器、闪存、只读存储器、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。The method in Embodiment 1 may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
本领域普通技术人员可以意识到,结合本实施例描述的各示例的单元即算法步骤,能够以电子硬件或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the unit, that is, the algorithm step of each example described in conjunction with this embodiment, can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, they do not limit the scope of protection of the present invention. Those skilled in the art should understand that on the basis of the technical solutions of the present invention, those skilled in the art do not need to pay creative efforts. Various modifications or deformations that can be made are still within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210674885.8A CN114936907B (en) | 2022-06-15 | 2022-06-15 | Commodity recommendation method and system based on node type interaction |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210674885.8A CN114936907B (en) | 2022-06-15 | 2022-06-15 | Commodity recommendation method and system based on node type interaction |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114936907A true CN114936907A (en) | 2022-08-23 |
| CN114936907B CN114936907B (en) | 2024-04-30 |
Family
ID=82866105
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210674885.8A Active CN114936907B (en) | 2022-06-15 | 2022-06-15 | Commodity recommendation method and system based on node type interaction |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114936907B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7505921B1 (en) * | 2000-03-03 | 2009-03-17 | Finali Corporation | System and method for optimizing a product configuration |
| CN107944629A (en) * | 2017-11-30 | 2018-04-20 | 北京邮电大学 | A kind of recommendation method and device based on heterogeneous information network representation |
| CN111538827A (en) * | 2020-04-28 | 2020-08-14 | 清华大学 | Case recommendation method and device based on content and graph neural network and storage medium |
| CN112131480A (en) * | 2020-09-30 | 2020-12-25 | 中国海洋大学 | Personalized product recommendation method and system based on multi-layer heterogeneous attribute network representation learning |
| CN112800207A (en) * | 2021-01-13 | 2021-05-14 | 桂林电子科技大学 | A product information recommendation method, device and storage medium |
| CN112948625A (en) * | 2021-02-01 | 2021-06-11 | 重庆邮电大学 | Film recommendation method based on attribute heterogeneous information network embedding |
| CN112989842A (en) * | 2021-02-25 | 2021-06-18 | 电子科技大学 | Construction method of universal embedded framework of multi-semantic heterogeneous graph |
| CN113362131A (en) * | 2021-06-02 | 2021-09-07 | 合肥工业大学 | Intelligent commodity recommendation method based on map model and integrating knowledge map and user interaction |
| CN113641920A (en) * | 2021-10-13 | 2021-11-12 | 中南大学 | Commodity personalized recommendation method and system based on community discovery and graph neural network |
| CN114386513A (en) * | 2022-01-13 | 2022-04-22 | 吉林大学 | An interactive rating prediction method and system integrating reviews and ratings |
-
2022
- 2022-06-15 CN CN202210674885.8A patent/CN114936907B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7505921B1 (en) * | 2000-03-03 | 2009-03-17 | Finali Corporation | System and method for optimizing a product configuration |
| CN107944629A (en) * | 2017-11-30 | 2018-04-20 | 北京邮电大学 | A kind of recommendation method and device based on heterogeneous information network representation |
| CN111538827A (en) * | 2020-04-28 | 2020-08-14 | 清华大学 | Case recommendation method and device based on content and graph neural network and storage medium |
| CN112131480A (en) * | 2020-09-30 | 2020-12-25 | 中国海洋大学 | Personalized product recommendation method and system based on multi-layer heterogeneous attribute network representation learning |
| CN112800207A (en) * | 2021-01-13 | 2021-05-14 | 桂林电子科技大学 | A product information recommendation method, device and storage medium |
| CN112948625A (en) * | 2021-02-01 | 2021-06-11 | 重庆邮电大学 | Film recommendation method based on attribute heterogeneous information network embedding |
| CN112989842A (en) * | 2021-02-25 | 2021-06-18 | 电子科技大学 | Construction method of universal embedded framework of multi-semantic heterogeneous graph |
| CN113362131A (en) * | 2021-06-02 | 2021-09-07 | 合肥工业大学 | Intelligent commodity recommendation method based on map model and integrating knowledge map and user interaction |
| CN113641920A (en) * | 2021-10-13 | 2021-11-12 | 中南大学 | Commodity personalized recommendation method and system based on community discovery and graph neural network |
| CN114386513A (en) * | 2022-01-13 | 2022-04-22 | 吉林大学 | An interactive rating prediction method and system integrating reviews and ratings |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114936907B (en) | 2024-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111369318B (en) | Recommendation method and system based on commodity knowledge graph feature learning | |
| Mao et al. | Multiobjective e-commerce recommendations based on hypergraph ranking | |
| CN107590243B (en) | A Personalized Service Recommendation Method Based on Random Walk and Diversity Graph Sorting | |
| US8478785B2 (en) | Measuring node proximity on graphs with side information | |
| CN111523051A (en) | A method and system for social interest recommendation based on graph convolution matrix decomposition | |
| CN106295832A (en) | Product information method for pushing and device | |
| CN111581450B (en) | Method and device for determining user's business attributes | |
| WO2019085327A1 (en) | Electronic device, product recommendation method and system, and computer readable storage medium | |
| CN114493782A (en) | Personalized commodity recommendation method and system based on user portrait | |
| CN112115378A (en) | Recommendation prediction system and recommendation prediction method based on graph convolution collaborative filtering | |
| US20240211991A1 (en) | Data processing method, apparatus, and computer-readable storage medium | |
| Rafailidis et al. | Top-n recommendation via joint cross-domain user clustering and similarity learning | |
| CN112488854B (en) | Personalized recommendation method for service manager and related equipment | |
| WO2022111095A1 (en) | Product recommendation method and apparatus, computer storage medium, and system | |
| CN109933678B (en) | Artwork recommendation method and device, readable medium and electronic equipment | |
| CN118586979A (en) | Product recommendation model training and application method, electronic equipment | |
| CN114332472A (en) | A data processing method and device based on graph neural network | |
| CN110110209A (en) | A kind of intersection recommended method and system based on local weighted linear regression model (LRM) | |
| CN116401450A (en) | A recommendation method, device and computer equipment based on knowledge graph | |
| CN114936907B (en) | Commodity recommendation method and system based on node type interaction | |
| CN115730143A (en) | Recommendation system, method, terminal and medium based on task alignment meta learning and augmentation graph | |
| CN112036937B (en) | Commodity pricing method, device, computer equipment and storage medium | |
| Hao et al. | A location-sensitive over-the-counter medicines recommender based on tensor decomposition | |
| CN118227891A (en) | Multimodal item recommendation method and device and computer-readable storage medium | |
| CN118313902A (en) | Product recommendation method and system based on decoupled graph convolution and user multi-behavior |
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 |