CN116186411A - Method and device for constructing user behavior prediction model based on deep recommendation model - Google Patents

Method and device for constructing user behavior prediction model based on deep recommendation model Download PDF

Info

Publication number
CN116186411A
CN116186411A CN202310217236.XA CN202310217236A CN116186411A CN 116186411 A CN116186411 A CN 116186411A CN 202310217236 A CN202310217236 A CN 202310217236A CN 116186411 A CN116186411 A CN 116186411A
Authority
CN
China
Prior art keywords
behavior
user
matrix
item
predicted
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.)
Pending
Application number
CN202310217236.XA
Other languages
Chinese (zh)
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.)
Datagrand Information Technology Shanghai Co ltd
Original Assignee
Datagrand Information Technology Shanghai Co ltd
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 Datagrand Information Technology Shanghai Co ltd filed Critical Datagrand Information Technology Shanghai Co ltd
Priority to CN202310217236.XA priority Critical patent/CN116186411A/en
Publication of CN116186411A publication Critical patent/CN116186411A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种用户行为预测模型的构建、用户行为预测方法、装置、设备及介质。用户行为预测模型的构建方法包括:根据多用户的历史行为数据,生成原始样本集;根据各原始样本中的行为集合,生成与各原始样本分别对应的各矩阵;形成训练样本集;使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。用户行为预测方法包括:获取待预测用户的用户特征信息以及待预测物品的物品特征信息;获取待预测用户对待预测物品的行为预测概率矩阵;根据行为预测概率矩阵,验证是否将述待预测物品推荐给待预测用户。本发明的技术方案提供了一种构建用户行为预测模型的新方式,以提高用户行为预测的精准度。

Figure 202310217236

The invention discloses the construction of a user behavior prediction model, user behavior prediction method, device, equipment and medium. The construction method of the user behavior prediction model includes: generating an original sample set according to the historical behavior data of multiple users; generating each matrix corresponding to each original sample according to the behavior set in each original sample; forming a training sample set; using the training sample Set to train the deep recommendation model to obtain the user behavior prediction model. The user behavior prediction method includes: obtaining the user feature information of the user to be predicted and the item feature information of the item to be predicted; obtaining the behavior prediction probability matrix of the user to be predicted to be predicted; according to the behavior prediction probability matrix, verifying whether the item to be predicted will be recommended to the user to be predicted. The technical solution of the present invention provides a new way of constructing a user behavior prediction model to improve the accuracy of user behavior prediction.

Figure 202310217236

Description

基于深度推荐模型的用户行为预测模型的构建方法及装置Method and device for constructing user behavior prediction model based on deep recommendation model

技术领域technical field

本发明涉及模型构建领域,尤其涉及一种用户行为预测模型的构建方法、用户行为预测方法、装置、设备及介质。The present invention relates to the field of model construction, in particular to a method for constructing a user behavior prediction model, a user behavior prediction method, a device, a device, and a medium.

背景技术Background technique

随着互联网的快速发展,网络中的信息数据呈指数级增长,导致了信息的冗余,由此产生了一个问题,即用户如何在有效的时间获取自己感兴趣的信息。此时基于用户行为预测的推荐系统在此契机中应运而生,基于用户行为预测的推荐系统大大的提高了用户的体验,并可有效减少用户自行搜索感兴趣信息时的时间消耗。。With the rapid development of the Internet, the information data in the network is increasing exponentially, which leads to the redundancy of information, and a problem arises, that is, how users can obtain the information they are interested in in an effective time. At this time, the recommendation system based on user behavior prediction came into being at this opportunity. The recommendation system based on user behavior prediction greatly improves the user experience and can effectively reduce the time consumption when users search for interesting information by themselves. .

上述推荐系统主要有两种实现方式:方法1为将多训练目标按照权重变成一个目标让模型进行拟合;方法2为构建多个网络结构,使不同网络负责不同的训练目标,最终经过某种衡量方式,将多个训练融合起来,使多个目标的收益最大化。There are two main implementation methods for the above recommendation system: method 1 is to convert multiple training targets into one target according to the weight to let the model fit; method 2 is to build multiple network structures, so that different networks are responsible for different training targets, and finally after a certain A measurement method that combines multiple trainings to maximize the benefits of multiple objectives.

发明人在实现本发明的过程中,发现上述现有技术存在如下问题:方法1会使各个训练目标完全割裂,破坏信息的完整度,进而影响了推荐的精准度;方法2中人工参与的成分过多,会存在人为因素过多而影响推荐结果的问题。In the process of realizing the present invention, the inventor found that the above-mentioned prior art has the following problems: method 1 will completely split each training target, destroy the integrity of information, and then affect the accuracy of recommendation; in method 2, the components of manual participation Too many, there will be too many human factors and affect the recommendation results.

发明内容Contents of the invention

本发明提供了一种用户行为预测模型的构建、用户行为预测方法、装置、设备及介质,以提供了一种构建用户行为预测模型的新方式,提高用户行为预测的精准度。The present invention provides a construction of a user behavior prediction model, a user behavior prediction method, a device, a device, and a medium, so as to provide a new way of constructing a user behavior prediction model and improve the accuracy of user behavior prediction.

第一方面,本发明实施例提供了一种用户行为预测模型的构建方法,该方法包括;In a first aspect, an embodiment of the present invention provides a method for constructing a user behavior prediction model, the method including;

根据多用户的历史行为数据,生成原始样本集,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系;According to the historical behavior data of multiple users, the original sample set is generated. The original sample includes the user feature information of the set user, the item feature information of the set item, and the set of behaviors performed by the set user on the set item. There is a progressive relationship between behaviors;

根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵;According to the behavior set in each original sample, generate the first behavior characteristic matrix, the second behavior characteristic matrix and the third behavior characteristic matrix respectively corresponding to each original sample;

根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据;According to the user characteristic information of the set user in the original sample, set the item characteristic information, the first behavior characteristic matrix, the second behavior characteristic matrix and the third behavior characteristic matrix of the item to form a training sample set, the second behavior characteristic matrix and The third row feature matrix is used as the labeled data in the training sample;

使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。Use the training sample set to train the deep recommendation model to obtain the user behavior prediction model.

第二方面,本发明实施例提供了一种用户行为预测方法,该方法包括:In a second aspect, an embodiment of the present invention provides a user behavior prediction method, the method comprising:

获取待预测用户的用户特征信息以及待预测物品的物品特征信息;Obtain the user feature information of the user to be predicted and the item feature information of the item to be predicted;

将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过如本发明任一实施例所述的用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;Input the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model trained by the user behavior prediction model construction method described in any embodiment of the present invention, and obtain the treatment of the user to be predicted Predict the behavior prediction probability matrix of the item;

根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。According to the behavior prediction probability matrix, verify whether the item to be predicted is recommended to the user to be predicted.

第三方面,本发明实施例提供了一种用户行为预测模型的构建装置,该装置包括:In a third aspect, an embodiment of the present invention provides a device for constructing a user behavior prediction model, the device comprising:

原始样本集生成模块,用于根据多用户的历史行为数据,生成原始样本集,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系;The original sample set generation module is used to generate an original sample set according to the historical behavior data of multiple users. The original sample includes the user feature information of the set user, the item feature information of the set item, and the set user's execution of the set item. Behavior collection, there is a progressive relationship between the behaviors in the behavior collection;

特征矩阵生成模块,用于根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵;Feature matrix generating module, for generating the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix respectively corresponding to each original sample according to the behavior set in each original sample;

训练样本集生成模块,用于根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据;The training sample set generation module is used to set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix of the item according to the user feature information of the set user in the original sample to form a training sample set, the second row feature matrix and the third row feature matrix are used as labeled data in the training samples;

模型训练模块,用于使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。The model training module is used to use the training sample set to train the deep recommendation model to obtain the user behavior prediction model.

第四方面,本发明实施例提供了一种用户行为预测装置,该装置包括:In a fourth aspect, an embodiment of the present invention provides a user behavior prediction device, which includes:

特征信息获取模块,用于获取待预测用户的用户特征信息以及待预测物品的物品特征信息;A feature information acquisition module, configured to acquire user feature information of the user to be predicted and item feature information of the item to be predicted;

概率矩阵获取模块,用于将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过如本发明任一实施例所述的用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;The probability matrix acquisition module is used to input the user characteristic information of the user to be predicted and the item characteristic information of the item to be predicted into the user behavior prediction model trained by the method for constructing the user behavior prediction model as described in any embodiment of the present invention In , the behavior prediction probability matrix of the user to be predicted for the predicted item is obtained;

推荐验证模块,用于根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。A recommendation verification module, configured to verify whether the item to be predicted is recommended to the user to be predicted according to the behavior prediction probability matrix.

第五方面,本发明实施例提供了一种电子设备,所述电子设备包括:In a fifth aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的一种用户行为预测模型的构建方法,或者,执行本发明任一实施例所述的用户行为预测方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present invention. A method for constructing a user behavior prediction model, or executing the user behavior prediction method described in any embodiment of the present invention.

第六方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的一种用户行为预测模型的构建方法,或者,实现如本发明任一实施例所述的用户行为预测方法。In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement any of the embodiments of the present invention. A method for constructing a user behavior prediction model, or implementing the user behavior prediction method described in any embodiment of the present invention.

本发明实施例的技术方案,通过根据多用户的历史行为数据,生成原始样本集,并根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,之后根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集与标注数据,最后使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型,提供了一种构建用户行为预测模型的新方式,基于该新的用户行为预测模型,可以有效提高用户行为预测的精准度,进而可以提高所推荐物品对用户实际需求的命中率,有效减少用户自行搜索感兴趣信息时的时间消耗。According to the technical solution of the embodiment of the present invention, the original sample set is generated according to the historical behavior data of multiple users, and the first behavior feature matrix and the second behavior feature matrix respectively corresponding to each original sample are generated according to the behavior set in each original sample. matrix and the third behavior feature matrix, and then according to the user feature information of the set user in the original sample, set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix to form a training The sample set and labeled data, and finally use the training sample set to train the deep recommendation model to obtain a user behavior prediction model, which provides a new way to build a user behavior prediction model. Based on this new user behavior prediction model, it can effectively improve user behavior. The accuracy of behavior prediction can further improve the hit rate of recommended items to users' actual needs, and effectively reduce the time consumption when users search for interesting information by themselves.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will be easily understood from the following description.

附图说明Description of drawings

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

图1是根据本发明实施例一提供的一种用户行为预测模型的构建方法的流程图;FIG. 1 is a flowchart of a method for constructing a user behavior prediction model according to Embodiment 1 of the present invention;

图2a是根据本发明实施例二提供的一种用户行为预测模型的构建方法的流程图;FIG. 2a is a flow chart of a method for constructing a user behavior prediction model according to Embodiment 2 of the present invention;

图2b是根据本发明实施例二提供方法得到的一种用户行为预测模型的框架图;Fig. 2b is a frame diagram of a user behavior prediction model obtained by providing a method according to Embodiment 2 of the present invention;

图3是根据本发明实施例三所提供的一种用户行为预测方法的流程图;FIG. 3 is a flow chart of a user behavior prediction method provided according to Embodiment 3 of the present invention;

图4是根据本发明实施例四提供的一种用户行为预测模型的构建装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for constructing a user behavior prediction model according to Embodiment 4 of the present invention;

图5是根据本发明实施例五提供的一种用户行为预测装置的结构示意图;FIG. 5 is a schematic structural diagram of a user behavior prediction device according to Embodiment 5 of the present invention;

图6是实现本发明实施例的用户行为预测模型的构建方法以及用户行为预测方法的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device implementing a method for constructing a user behavior prediction model and a method for user behavior prediction according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

实施例一Embodiment one

图1为本发明实施例一提供的一种用户行为预测模型的构建方法的流程图,本实施例可适用于对用户行为预测模型进行构建的情况,该方法可以由用户行为预测模型的构建装置来执行,该用户行为预测模型的构建装置可以采用硬件和/或软件的形式实现,该用户行为预测模型的构建装置可配置于具有数据处理功能的终端或者服务器中。如图1所示,该方法包括:Fig. 1 is a flow chart of a method for constructing a user behavior prediction model provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of constructing a user behavior prediction model, and the method can be constructed by a device for constructing a user behavior prediction model. The device for constructing the user behavior prediction model can be implemented in the form of hardware and/or software, and the device for constructing the user behavior prediction model can be configured in a terminal or server with data processing functions. As shown in Figure 1, the method includes:

S110、根据多用户的历史行为数据,生成原始样本集。S110. Generate an original sample set according to the historical behavior data of multiple users.

在本实施例中,所述历史行为数据包括多用户在预设平台上的对应操作行为的行为数据;示例性的,例如某用户在购买物品a时所述购买操作的实现过程(如,输入关键字,浏览搜索结果或点击物品链接等),物品a的物品特征信息,以及某用户的用户特征信息等;进一步的,所述预设平台可以为具有商品推荐功能的购物平台等。In this embodiment, the historical behavior data includes the behavior data of the corresponding operation behaviors of multiple users on the preset platform; for example, when a certain user purchases item a, the implementation process of the purchase operation (such as input keywords, browsing search results or clicking on item links, etc.), item feature information of item a, and user feature information of a certain user; further, the preset platform can be a shopping platform with a product recommendation function, etc.

其中,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系。Wherein, the original sample includes the user characteristic information of the setting user, the item characteristic information of the setting item and the set of behaviors performed by the setting user on the setting item, and there is a progressive relationship among the behaviors in the behavior set.

也即,一条原始样本中记录了某一个特定用户a,对某一特定物品b所执行的一项或者多项符合行为逻辑的用户操作。That is, one original sample records one or more logical user operations performed by a specific user a on a specific item b.

进一步的,所述用户特征信息中包括下述至少一项:所述设定用户的用户年龄、用户性别以及用户一定时间内的点击数据与购买数据;所述物品特征信息中包括下述至少一项:所述设定物品的物品类目、物品品牌以及一定时间内物品的点击量与曝光数量;所述行为集合中包括按照递进关系排序的点击、加购以及购买中的至少一项。Further, the user feature information includes at least one of the following items: the set user's age, user gender, and the user's click data and purchase data within a certain period of time; the item feature information includes at least one of the following: Item: the item category, item brand, and number of clicks and exposures of the item within a certain period of time for the set item; the behavior set includes at least one of click, additional purchase, and purchase sorted according to the progressive relationship.

在本实施例中,可选的,根据预设平台的功能或者用户行为预测种类的不同,所述行为集合中还可以包括:浏览、搜索或收藏等行为。In this embodiment, optionally, according to different functions of the preset platform or types of user behavior predictions, the behavior set may also include: behaviors such as browsing, searching, or bookmarking.

在本实施例中,所述各行为之间存在递进关系可以为:具有逻辑关系的行为排序;示例性的,若所述行为集合a为{点击,加购,购买},则所述行为集合a为按照递进关系排序的行为集合;相应的,若所述行为集合b为{加购,购买,点击},容易理解的是,由于在现有技术的条件下,购买物品时加购以及购买行为不能发生在点击行为之前,故所述行为集合b不为按照递进关系排序的行为集合。In this embodiment, the progressive relationship between the various behaviors may be: behavior ordering with logical relationships; for example, if the behavior set a is {click, add purchase, purchase}, then the behavior Set a is a behavior set sorted according to the progressive relationship; correspondingly, if the behavior set b is {addition, purchase, click}, it is easy to understand that due to the conditions of the existing technology, when purchasing an item, additional purchase And the purchase behavior cannot occur before the click behavior, so the behavior set b is not a behavior set sorted according to the progressive relationship.

可选的,根据多用户的历史行为数据,生成原始样本集,包括:Optionally, generate an original sample set based on the historical behavior data of multiple users, including:

在多用户的历史行为数据中,获取目标用户针对目标物品的至少一个备选行为集;通过逻辑处理模块,在各所述备选行为集中筛选满足数据递进关系的合理性的至少一个目标行为集合;根据所述目标用户的用户特征信息、所述目标物品的物品特征信息以及所述至少一个目标行为集合,构建与所述目标用户匹配的至少一个原始样本。In the historical behavior data of multiple users, at least one candidate behavior set of the target user for the target item is obtained; through the logic processing module, at least one target behavior that satisfies the rationality of the data progression relationship is screened in each of the candidate behavior sets Set: Construct at least one original sample matching the target user according to the user characteristic information of the target user, the item characteristic information of the target item, and the at least one target behavior set.

其中,所述目标用户为所述多用户中的任一用户;进一步的,在本实施例中,首先选取所述多用户中的任一用户作为目标用户,在对当前目标用户进行上述原始样本的构建行为之后,选取所述多用户中除当前目标用户之外的任一用户作为新的目标用户继续构建新的原始样本构建,直至所述多用户中的全部用户均构建了匹配的一个或者多个原始样本或者,直至构建出满足预设数量要求的原始样本等。Wherein, the target user is any one of the multiple users; further, in this embodiment, any one of the multiple users is first selected as the target user, and the above-mentioned original sample is performed on the current target user. After the construction behavior, select any user in the multi-user except the current target user as a new target user to continue to build a new original sample until all users in the multi-user have constructed a matching one or multiple original samples or until the original samples meeting the preset quantity requirements are constructed.

在本实施例中,示例性的,若所述行为集合a为{点击,加购,购买},则所述行为集合a为满足数据递进关系的合理性的行为集合;相应的,若所述行为集合b为{加购,购买,点击},容易理解的是,由于在现有技术的条件下,购买物品时加购以及购买行为不能发生在点击行为之前,故所述行为集合b不为满足数据递进关系的合理性的行为集合。In this embodiment, for example, if the behavior set a is {click, add purchase, purchase}, then the behavior set a is a behavior set that satisfies the rationality of the data progression relationship; correspondingly, if the The above behavior set b is {add purchase, purchase, click}. It is easy to understand that, under the conditions of the existing technology, when purchasing an item, the behavior of additional purchase and purchase cannot occur before the behavior of clicking, so the behavior set b is not A collection of behaviors to satisfy the rationality of the data progression relationship.

本实施例中,在利用逻辑处理模块对备选行为集进行筛选时,可以在所述逻辑处理模块中预先设置至少一个满足数据递进关系合理性的预设目标行为集合,之后将所述至少一个备选行为集输入至逻辑处理模块中,所述逻辑处理模块将各备选行为集依次与预设目标行为集合进行对比;若所述备选行为集合与至少一个预设目标行为集合匹配,则将所述备选行为集合作为目标行为集合输出;若所述备选行为集合与全部的预设目标行为集合均不匹配,则将所述备选行为集合进行删除。In this embodiment, when the logic processing module is used to screen the candidate behavior sets, at least one preset target behavior set that satisfies the rationality of the data progressive relationship can be preset in the logic processing module, and then the at least A set of candidate behaviors is input into the logic processing module, and the logic processing module compares each set of candidate behaviors with the preset target behavior set in turn; if the set of candidate behaviors matches at least one preset target behavior set, Then output the candidate behavior set as the target behavior set; if the candidate behavior set does not match all preset target behavior sets, then delete the candidate behavior set.

进一步的,可以根据用户ID或者其他具有特异性的用户标识,将匹配该用户标识的用户特征信息,所述用户标识对应物品的物品特征信息以及所述至少一个目标行为集合进行拼接,形成与所述用户标识匹配的原始样本;进一步的,所述多用户中的每个用户均可以构建与用户标识匹配的至少一个原始样本;示例性的,所述原始样本包含的信息可能为:{用户a,女性,物品b,类目c,点击,加购,购买};其中,上述信息中用户a为目标用户,“女性”为用户a的用户特征信息,“类目c”为物品b的物品特征信息,“点击,加购,购买”为目标行为集合。Further, according to the user ID or other specific user identifiers, the user characteristic information matching the user identifier, the item characteristic information of the item corresponding to the user identifier and the at least one target behavior set can be spliced to form a The original sample matching the user ID; further, each user in the multi-user can construct at least one original sample matching the user ID; for example, the information contained in the original sample may be: {user a , female, item b, category c, click, add purchase, purchase}; among them, in the above information, user a is the target user, "female" is the user characteristic information of user a, and "category c" is the item of item b Feature information, "click, add purchase, purchase" is a collection of target behaviors.

S120、根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵。S120. According to the behavior set in each original sample, generate a first behavior feature matrix, a second behavior feature matrix, and a third behavior feature matrix respectively corresponding to each original sample.

其中,所述第一行为特征矩阵可以为零矩阵,第二行为特征矩阵和第三行为特征矩阵均为非零矩阵。Wherein, the feature matrix in the first row may be a zero matrix, and the feature matrix in the second row and the feature matrix in the third row are both non-zero matrices.

可选的,根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,包括:在各原始样本中获取当前处理样本中的当前行为集合,并形成与所述当前行为集合匹配的一维行为矩阵,其中,所述一维行为矩阵的位数L固定,每个矩阵位对应设定行为;Optionally, according to the behavior set in each original sample, generate the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix respectively corresponding to each original sample, including: obtaining the current processing sample in each original sample The current behavior set in the set, and form a one-dimensional behavior matrix matching the current behavior set, wherein, the number of digits L of the one-dimensional behavior matrix is fixed, and each matrix bit corresponds to a set behavior;

构建L*(L-1)阶的第一基础特征矩阵,依次获取所述一维行为矩阵中的第i列数据的前i-1列数据,填充至第一基础特征矩阵中第i行的前i-1列中,并将第一基础特征矩阵中的剩余位置进行补零,得到所述第一行为特征矩阵,其中,所述i初始化为1;Construct the first basic feature matrix of L*(L-1) order, sequentially obtain the first i-1 column data of the i-th column data in the one-dimensional behavior matrix, and fill it into the i-th row of the first basic feature matrix In the first i-1 column, the remaining position in the first basic feature matrix is filled with zeros to obtain the first row feature matrix, wherein the i is initialized to 1;

构建L*L阶的第二基础特征矩阵,依次获取所述一维行为矩阵中的第i列数据,填充至第二基础特征矩阵中第i行第i列中,并将第二基础特征矩阵中的剩余位置进行补零,得到第二行为特征矩阵;Construct the second basic feature matrix of L*L order, sequentially obtain the i-th column data in the one-dimensional behavior matrix, fill it into the i-th row and i-th column in the second basic feature matrix, and store the second basic feature matrix Fill the remaining positions with zeros to get the second row feature matrix;

构建L*L阶的单位矩阵,作为第三行为特征矩阵。Construct an identity matrix of order L*L as the third row characteristic matrix.

在本实施例中,首先可以根据各原始样本中的行为集合生成一维行为矩阵,再根据所述一维行为矩阵生成第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵。In this embodiment, first a one-dimensional behavior matrix can be generated according to the behavior sets in each original sample, and then a first behavior feature matrix, a second behavior feature matrix and a third behavior feature matrix can be generated according to the one-dimensional behavior matrix.

具体的,在根据各原始样本中的行为集合生成一维行为矩阵时,可以将发生的行为设定为1,未发生的行为设定为0,形成一个由0与1组成的一维行为矩阵;示例性的,在S110的基础上,满足数据递进关系的合理性的目标行为集合a为{点击,加购,购买},若在目标用户的某一次行为中,用户经过点击物品a的链接进行浏览,在浏览之后未经过加入购物车的行为便直接进行了购买行为,则在上述行为中,点击与购买行为的设定行为为1,加购的设定行为为0,即对应上述行为集合的一维行为矩阵为(1,0,1)。需要注意的是,由于在S110步骤中通过逻辑处理模块,在各所述备选行为集中筛选满足数据递进关系的合理性的至少一个目标行为集合,即目标行为集合均为具有行为合理性的合集,进一步的,由于在某一次行为中,不通过点击便进行购买的操作是不合理的,故在上述操作中不会出现(0,0,1)或(0,1,1)等不符合行为逻辑的一维行为矩阵。Specifically, when generating a one-dimensional behavior matrix based on the behavior set in each original sample, the behavior that occurred can be set to 1, and the behavior that did not occur can be set to 0, forming a one-dimensional behavior matrix composed of 0 and 1 ; Exemplarily, on the basis of S110, the target behavior set a that satisfies the rationality of the data progression relationship is {click, add purchase, purchase}, if in a certain behavior of the target user, the user clicks on item a Links to browse, and after browsing, the behavior of purchasing without adding to the shopping cart is directly carried out. In the above behaviors, the setting behavior of click and purchase behavior is 1, and the setting behavior of additional purchase is 0, which corresponds to the above The one-dimensional behavior matrix of the behavior set is (1, 0, 1). It should be noted that, in step S110, at least one target behavior set that satisfies the rationality of the data progression relationship is screened in each of the candidate behavior sets through the logical processing module, that is, the target behavior sets are all behavioral rationality Furthermore, since it is unreasonable to purchase without clicking in a certain behavior, there will be no irregularities such as (0, 0, 1) or (0, 1, 1) in the above operations. A one-dimensional behavior matrix that conforms to behavioral logic.

在本实施例的一个具体实施方式中,设定所述目标用户的目标行为集合为{点击,加购,购买},且所述目标用户在历史行为数据中存在点击与购买的行为,不存在加购的行为,在通过上述行为形成了所述当前行为集合匹配的一维行为矩阵d(1,0,1)后,可以确定对应的第一基础特征矩阵的大小为3*2阶矩阵,首先获取上述矩阵d的第1列数据的前0位数据,由于0位数据不包含任何数据信息,即第一基础特征矩阵中的第1行无任何数据信息;相应的,之后取上述矩阵d的第2列数据的前1位数据“1”,即第一基础特征矩阵中的第2行包含的数据为1,以此类推所述第一基础特征矩阵中的第3行包含的数据为1,0;之后将上述数据填充至第一基础特征矩阵的对应位置,并将第一基础特征矩阵中的剩余位置进行补零,即得到的所述第一行为特征矩阵为:

Figure BDA0004115337670000091
In a specific implementation of this embodiment, the target behavior set of the target user is set as {click, add purchase, purchase}, and the target user has click and purchase behaviors in the historical behavior data, but does not exist In the behavior of adding purchases, after the one-dimensional behavior matrix d(1, 0, 1) matching the current behavior set is formed through the above behaviors, it can be determined that the size of the corresponding first basic feature matrix is a 3*2 order matrix, First, obtain the first 0 data of the first column of the above matrix d, because the 0 data does not contain any data information, that is, the first row in the first basic feature matrix has no data information; correspondingly, the above matrix d is obtained later The data in the first 1 digit of the second column of data is "1", that is, the data contained in the second row in the first basic feature matrix is 1, and so on, the data contained in the third row in the first basic feature matrix is 1,0; then fill the above data into the corresponding positions of the first basic feature matrix, and fill the remaining positions in the first basic feature matrix with zeros, that is, the obtained first row feature matrix is:
Figure BDA0004115337670000091

在使用上述一维行为矩阵d(1,0,1)构建第二特征矩阵时,可以确定对应的第二基础特征矩阵的大小为3*3阶矩阵,首先将所述矩阵d中的第一列数据“1”,填充至第二基础特征矩阵中第1行第1列中;相应的,将所述矩阵d中的第二列数据“0”,填充至第二基础特征矩阵中第2行第2列中,将所述矩阵d中的第三列数据“1”,填充至第二基础特征矩阵中第3行第3列中,并将第二基础特征矩阵中的剩余位置进行补零,得到第二行为特征矩阵为:

Figure BDA0004115337670000101
When using the above-mentioned one-dimensional behavior matrix d(1, 0, 1) to construct the second feature matrix, it can be determined that the size of the corresponding second basic feature matrix is a 3*3 order matrix, and first the first The column data "1" is filled in the first row and the first column in the second basic feature matrix; correspondingly, the second column data "0" in the matrix d is filled in the second basic feature matrix In the second column of the row, the data "1" in the third column in the matrix d is filled into the third row and the third column in the second basic feature matrix, and the remaining positions in the second basic feature matrix are complemented Zero, the second line of the characteristic matrix is obtained as:
Figure BDA0004115337670000101

进一步的,在使用上述一维行为矩阵d(1,0,1)构建第三特征矩阵时,可以构建出3*3阶的单位矩阵,作为第三行为特征矩阵。Further, when using the above-mentioned one-dimensional behavioral matrix d(1, 0, 1) to construct the third characteristic matrix, a 3*3 order identity matrix can be constructed as the third characteristic matrix.

S130、根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据。S130. According to the user characteristic information of the set user in the original sample, set the item characteristic information of the item, the first behavior characteristic matrix, the second behavior characteristic matrix and the third behavior characteristic matrix to form a training sample set, and the second behavior characteristic matrix The matrix and the third row feature matrix are used as labeled data in the training samples.

其中,所述训练样本集中包括训练数据与标注数据;具体的,所述训练数据包括:设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵,标注数据包括第二行为特征矩阵和第三行为特征矩阵;进一步的,所述训练数据可以用来计算在当前模型参数条件下用户行为预测的理论概率;所述标注数据可以用来计算用户行为预测的实际概率,需要注意的是,所述当前模型参数条件可以为随机设定的任一条件值。Wherein, the training sample set includes training data and labeling data; specifically, the training data includes: user feature information of the set user, item feature information of the set item, the first behavior feature matrix, and the labeling data includes the second Behavior feature matrix and the third behavior feature matrix; further, the training data can be used to calculate the theoretical probability of user behavior prediction under the current model parameters; the label data can be used to calculate the actual probability of user behavior prediction, need It should be noted that the current model parameter condition can be any condition value set randomly.

S140、使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。S140. Use the training sample set to train the deep recommendation model to obtain a user behavior prediction model.

其中,所述训练样本集包括:所述设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵。Wherein, the training sample set includes: user feature information of the set user, item feature information of the set item, a first behavior feature matrix, a second behavior feature matrix, and a third behavior feature matrix.

可选的,使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型,包括:Optionally, use the training sample set to train the deep recommendation model to obtain a user behavior prediction model, including:

在训练样本集中获取目标训练样本,并将目标训练样本输入至深度推荐模型中;通过深度推荐模型中的稀疏特征层对目标训练样本中的目标用户的用户特征信息,目标物品的物品特征信息以及目标第一行为特征矩阵进行处理,得到原始稀疏向量;通过深度推荐模型中的稠密嵌入层对原始稀疏向量进行处理,得到稠密向量;通过深度推荐模型中的因式分解层对所述原始稀疏向量和稠密向量进行逻辑回归计算,得到行为预测概率矩阵;通过深度推荐模型中的损失函数层根据所述预测概率矩阵、所述目标训练样本中的目标第二行为特征矩阵以及目标第三行为特征矩阵计算得到损失函数,并根据损失函数对深度推荐模型进行参数调整;返回执行训练样本集中获取目标训练样本的操作,直至训练得到用户行为预测模型。Obtain the target training sample in the training sample set, and input the target training sample into the deep recommendation model; through the sparse feature layer in the deep recommendation model, the user feature information of the target user in the target training sample, the item feature information of the target item and The first line of the target is to process the feature matrix to obtain the original sparse vector; the original sparse vector is processed through the dense embedding layer in the deep recommendation model to obtain a dense vector; the original sparse vector is obtained through the factorization layer in the deep recommendation model Perform logistic regression calculation with the dense vector to obtain the behavior prediction probability matrix; through the loss function layer in the depth recommendation model, according to the prediction probability matrix, the target second behavior feature matrix and the target third behavior feature matrix in the target training samples Calculate the loss function, and adjust the parameters of the deep recommendation model according to the loss function; return to the operation of obtaining the target training samples in the training sample set, until the user behavior prediction model is trained.

本发明实施例的技术方案,通过根据多用户的历史行为数据,生成原始样本集,并根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,之后根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集与标注数据,最后使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型,提供了一种构建用户行为预测模型的新方式,基于该新的用户行为预测模型,可以有效提高用户行为预测的精准度,进而可以提高所推荐物品对用户实际需求的命中率,有效减少用户自行搜索感兴趣信息时的时间消耗。According to the technical solution of the embodiment of the present invention, the original sample set is generated according to the historical behavior data of multiple users, and the first behavior feature matrix and the second behavior feature matrix respectively corresponding to each original sample are generated according to the behavior set in each original sample. matrix and the third behavior feature matrix, and then according to the user feature information of the set user in the original sample, set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix to form a training The sample set and labeled data, and finally use the training sample set to train the deep recommendation model to obtain a user behavior prediction model, which provides a new way to build a user behavior prediction model. Based on this new user behavior prediction model, it can effectively improve user behavior. The accuracy of behavior prediction can further improve the hit rate of recommended items to users' actual needs, and effectively reduce the time consumption when users search for interesting information by themselves.

实施例二Embodiment two

图2a为本发明实施例二提供的一种用户行为预测方法的流程图,本实施例以上述实施例为基础进行细化,在本实施例中具体是将使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型细化为:在训练样本集中获取目标训练样本,并将目标训练样本输入至深度推荐模型中;通过深度推荐模型中的稀疏特征层对目标训练样本中的目标用户的用户特征信息,目标物品的物品特征信息以及目标第一行为特征矩阵进行处理,得到原始稀疏向量;通过深度推荐模型中的稠密嵌入层对原始稀疏向量进行处理,得到稠密向量;通过深度推荐模型中的因式分解层对所述原始稀疏向量和稠密向量进行逻辑回归计算,得到行为预测概率矩阵;通过深度推荐模型中的损失函数层根据所述预测概率矩阵、所述目标训练样本中的目标第二行为特征矩阵以及目标第三行为特征矩阵计算得到损失函数,并根据损失函数对深度推荐模型进行参数调整;返回执行训练样本集中获取目标训练样本的操作,直至训练得到用户行为预测模型。Fig. 2a is a flow chart of a user behavior prediction method provided by Embodiment 2 of the present invention. This embodiment is based on the above-mentioned embodiment for refinement. In this embodiment, the training sample set is used to carry out the in-depth recommendation model. Training, the refinement of the user behavior prediction model is obtained as follows: obtain the target training samples in the training sample set, and input the target training samples into the deep recommendation model; The user feature information, the item feature information of the target item and the target first behavior feature matrix are processed to obtain the original sparse vector; the original sparse vector is processed through the dense embedding layer in the deep recommendation model to obtain the dense vector; through the deep recommendation model The factorization layer performs logistic regression calculation on the original sparse vector and dense vector to obtain the behavior prediction probability matrix; through the loss function layer in the depth recommendation model, according to the prediction probability matrix, the target No. The second row feature matrix and the target third row feature matrix calculate the loss function, and adjust the parameters of the deep recommendation model according to the loss function; return to the operation of obtaining the target training sample in the training sample set, until the user behavior prediction model is trained.

相应的,如图2a所示,该方法包括:Correspondingly, as shown in Figure 2a, the method includes:

S210、根据多用户的历史行为数据,生成原始样本集。S210. Generate an original sample set according to the historical behavior data of multiple users.

其中,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系。Wherein, the original sample includes the user characteristic information of the setting user, the item characteristic information of the setting item and the set of behaviors performed by the setting user on the setting item, and there is a progressive relationship among the behaviors in the behavior set.

S220、根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵。S220. According to the behavior set in each original sample, generate a first behavior feature matrix, a second behavior feature matrix, and a third behavior feature matrix respectively corresponding to each original sample.

S230、根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据。S230. According to the user characteristic information of the set user in the original sample, set the item characteristic information of the item, the first behavior characteristic matrix, the second behavior characteristic matrix and the third behavior characteristic matrix to form a training sample set, and the second behavior characteristic matrix The matrix and the third row feature matrix are used as labeled data in the training samples.

S240、在训练样本集中获取目标训练样本,并将目标训练样本输入至深度推荐模型中。S240. Obtain target training samples from the training sample set, and input the target training samples into the deep recommendation model.

如图2b所示,需要注意的是,其中Sparse Features即为下列步骤中的稀疏特征层;相应的,Desnes Embedding为下列步骤中的稠密嵌入层,HM层下列步骤中的因式分解层;其中,图2b还包括了下述步骤中未包含的Hide层,进一步的,所述Hide层可以用于进行特征矩阵之间的高阶交叉,并提取深层次信息。As shown in Figure 2b, it should be noted that Sparse Features is the sparse feature layer in the following steps; correspondingly, Desnes Embedding is the dense embedding layer in the following steps, and the factorization layer in the following steps of the HM layer; where , Figure 2b also includes a Hide layer not included in the following steps, further, the Hide layer can be used to perform high-order crossover between feature matrices and extract deep-level information.

S250、通过深度推荐模型中的稀疏特征层对目标训练样本中的目标用户的用户特征信息,目标物品的物品特征信息以及目标第一行为特征矩阵进行处理,得到原始稀疏向量。S250. Process the user feature information of the target user, the item feature information of the target item, and the target first behavior feature matrix in the target training sample through the sparse feature layer in the deep recommendation model to obtain an original sparse vector.

S260、通过深度推荐模型中的稠密嵌入层对原始稀疏向量进行处理,得到稠密向量。S260. Process the original sparse vector through the dense embedding layer in the deep recommendation model to obtain a dense vector.

其中,所述稠密向量可以通过在稠密嵌入层对原始稀疏向量进行word2vec处理,进而将原始稀疏向量转化为稠密向量。Wherein, the dense vector can be converted into a dense vector by performing word2vec processing on the original sparse vector in the dense embedding layer.

S270、通过深度推荐模型中的因式分解层对所述原始稀疏向量和稠密向量进行逻辑回归计算,得到行为预测概率矩阵。S270. Perform logistic regression calculation on the original sparse vector and dense vector through the factorization layer in the deep recommendation model to obtain a behavior prediction probability matrix.

S280、通过深度推荐模型中的损失函数层根据所述预测概率矩阵、所述目标训练样本中的目标第二行为特征矩阵以及目标第三行为特征矩阵计算得到损失函数,并根据损失函数对深度推荐模型进行参数调整。S280. Calculate the loss function through the loss function layer in the depth recommendation model according to the prediction probability matrix, the target second behavior feature matrix and the target third behavior feature matrix in the target training samples, and make a deep recommendation according to the loss function The parameters of the model are tuned.

其中,由于所述当前模型参数条件可以为随机设定的任一条件值,故当前预测的预测概率矩阵通常与通过标注数据计算的用户行为预测的实际概率有所差异,之后根据两者之间的差异利用损失函数对参数进行调整。Wherein, since the current model parameter condition can be any condition value set randomly, the current predicted prediction probability matrix is usually different from the actual probability of user behavior prediction calculated by labeling data, and then according to the difference between the two The difference of the parameters is adjusted using a loss function.

S290、返回执行训练样本集中获取目标训练样本的操作,直至训练得到用户行为预测模型。S290. Return to and execute the operation of obtaining the target training samples in the training sample set until the user behavior prediction model is obtained through training.

如图2b所示,Sparse Features输入数据包含稀疏特征和数值稠密特征,DesnesEmbedding可以通过FM算法将特征映射到k维向量,并对特征向量两两进行相加运算得到一阶交叉权重,两两点乘运算得到二阶交叉权重;之后FM层组合输入数据的一阶与二阶交叉权重与相应的特征向量,并在output层对FM层以及Hide层的预测结果进行数据变换,得到当前模型参数条件下用户行为预测的理论概率;需要注意的是,由于所述当前模型参数条件可以为随机设定的任一条件值,故当前预测的预测概率矩阵通常与通过标注数据计算的用户行为预测的实际概率有所差异,之后根据两者之间的差异利用损失函数对参数进行调整,循环上述操作直至两者最终的差异值在误差的允许范围之内,即训练得到用户行为预测模型。As shown in Figure 2b, the input data of Sparse Features contains sparse features and numerically dense features. DesnesEmbedding can map the features to k-dimensional vectors through the FM algorithm, and add the feature vectors in pairs to obtain the first-order cross weight. The multiplication operation obtains the second-order cross weight; then the FM layer combines the first-order and second-order cross weights of the input data and the corresponding feature vectors, and performs data transformation on the prediction results of the FM layer and the Hide layer in the output layer to obtain the current model parameter conditions It should be noted that since the current model parameter condition can be any conditional value set randomly, the current predicted prediction probability matrix is usually different from the actual user behavior prediction calculated by labeling data. The probabilities are different, and then use the loss function to adjust the parameters according to the difference between the two, and repeat the above operations until the final difference between the two is within the allowable range of error, that is, the user behavior prediction model is trained.

本发明实施例的技术方案,通过根据多用户的历史行为数据,生成原始样本集,并根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,之后根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集与标注数据,之后在训练样本集中获取目标训练样本,并将目标训练样本输入至深度推荐模型中,通过深度推荐模型中的稀疏特征层对目标训练样本中的目标用户的用户特征信息,目标物品的物品特征信息以及目标第一行为特征矩阵进行处理,得到原始稀疏向量,之后通过深度推荐模型中的稠密嵌入层对原始稀疏向量进行处理,得到稠密向量,并通过深度推荐模型中的因式分解层对所述原始稀疏向量和稠密向量进行逻辑回归计算,得到行为预测概率矩阵之后通过深度推荐模型中的损失函数层根据所述预测概率矩阵、所述目标训练样本中的目标第二行为特征矩阵以及目标第三行为特征矩阵计算得到损失函数,并根据损失函数对深度推荐模型进行参数调整,最后返回执行训练样本集中获取目标训练样本的操作,直至训练得到用户行为预测模型,提供了一种构建用户行为预测模型的新方式,基于该新的用户行为预测模型,可以有效提高用户行为预测的精准度,进而可以提高所推荐物品对用户实际需求的命中率,有效减少用户自行搜索感兴趣信息时的时间消耗。According to the technical solution of the embodiment of the present invention, the original sample set is generated according to the historical behavior data of multiple users, and the first behavior feature matrix and the second behavior feature matrix respectively corresponding to each original sample are generated according to the behavior set in each original sample. matrix and the third behavior feature matrix, and then according to the user feature information of the set user in the original sample, set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix to form a training The sample set and labeled data, and then obtain the target training samples in the training sample set, and input the target training samples into the deep recommendation model, through the sparse feature layer in the deep recommendation model, the user feature information of the target user in the target training samples, The item feature information of the target item and the target first behavior feature matrix are processed to obtain the original sparse vector, and then the original sparse vector is processed through the dense embedding layer in the deep recommendation model to obtain a dense vector, and the factor in the deep recommendation model is used to obtain the dense vector. The formula decomposition layer performs logistic regression calculation on the original sparse vector and dense vector, and after obtaining the behavior prediction probability matrix, through the loss function layer in the deep recommendation model, according to the prediction probability matrix and the target second behavior in the target training sample The feature matrix and the third behavior of the target feature matrix calculate the loss function, and adjust the parameters of the deep recommendation model according to the loss function, and finally return to the operation of obtaining the target training samples in the training sample set until the user behavior prediction model is trained, providing a A new way to build a user behavior prediction model. Based on the new user behavior prediction model, the accuracy of user behavior prediction can be effectively improved, and the hit rate of recommended items to the actual needs of users can be improved, and users are less interested in self-searching. Time consumption of information.

实施例三Embodiment three

图3为本发明实施例三提供的一种用户行为预测方法的流程图,本实施例可适用于对用户行为进行预测的情况,该方法可以由用户行为预测装置来执行,该用户行为预测装置可以采用硬件和/或软件的形式实现,该用户行为预测装置可配置于具有用户行为预测功能的计算机或者服务器中。如图3所示,该方法包括:Fig. 3 is a flow chart of a method for predicting user behavior provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation of predicting user behavior, and the method can be executed by a user behavior prediction device. It can be implemented in the form of hardware and/or software, and the user behavior prediction device can be configured in a computer or server with a user behavior prediction function. As shown in Figure 3, the method includes:

S310、获取待预测用户的用户特征信息以及待预测物品的物品特征信息。S310. Obtain user feature information of the user to be predicted and item feature information of the item to be predicted.

进其中,所述待预测用户的用户特征信息中包括下述至少一项:所述设待预测用户的用户年龄、用户性别以及用户一定时间内的点击数据与购买数据等信息;所述待预测物品的物品特征信息中包括下述至少一项:所述待预测物品的物品类目、物品品牌以及一定时间内物品的点击量与曝光数量等信息等。Among them, the user characteristic information of the user to be predicted includes at least one of the following items: the age of the user to be predicted, the gender of the user, and the click data and purchase data of the user within a certain period of time; The item characteristic information of the item includes at least one of the following items: the item category of the item to be predicted, the item brand, and the number of clicks and exposures of the item within a certain period of time.

S320、将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵。S320. Input the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model trained by the method of constructing the user behavior prediction model, and obtain a behavior prediction probability matrix of the user to be predicted for the item to be predicted.

其中,所述行为预测概率矩阵的规格由待预测行为的数量决定,即若待预测的行为为n,则所述行为预测概率矩阵的规格为n*n。Wherein, the specification of the behavior prediction probability matrix is determined by the number of behaviors to be predicted, that is, if the number of behaviors to be predicted is n, the specification of the behavior prediction probability matrix is n*n.

S330、根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。S330. Verify whether the item to be predicted is recommended to the user to be predicted according to the behavior prediction probability matrix.

在本实施例中假设待预测的行为待预测用户对待预测物品做出点击,加购以及购买行为的概率,假设通过模型得到的行为预测概率矩阵为

Figure BDA0004115337670000151
则根据所述行为预测概率矩阵,点击行为发生的概率为第一行第一列对应的数值0.8,相应的,当发生点击行为时,加购行为发生的概率是点击行为概率*第二行第二例对应的数值,即0.8*0.2=0.16,;当发生加购行为时,购买行为发生的概率为加购行为概率*第三行第三例对应的数值0.16*0.3=0.048。In this embodiment, it is assumed that the behavior to be predicted is the probability that the user clicks on the item to be predicted, purchases and purchases, and the behavior prediction probability matrix obtained through the model is assumed to be
Figure BDA0004115337670000151
According to the behavior prediction probability matrix, the probability of click behavior is 0.8 corresponding to the value in the first row and first column. Correspondingly, when a click behavior occurs, the probability of additional purchase behavior is click behavior probability * second row No. The value corresponding to the second example is 0.8*0.2=0.16; when an additional purchase occurs, the probability of the purchase is the probability of additional purchase * the value corresponding to the third example in the third line 0.16*0.3=0.048.

在本实施例中,可以通过设置概率阈值的方式验证是否将所述待预测物品推荐给所述待预测用户,即当预测行为发生的概率达到阈值时,将所述待预测物品推荐给所述待预测用户,反之则不进行推荐。In this embodiment, it is possible to verify whether the item to be predicted is recommended to the user to be predicted by setting a probability threshold, that is, when the probability of occurrence of the predicted behavior reaches the threshold, the item to be predicted is recommended to the user The user is to be predicted, otherwise no recommendation will be made.

在本实施例的一个具体实施方式中,在上述行为的基础上,设定目标预测行为为点击时,假设点击概率的阈值为0.5,由于0.8大于0.5,则该待预测物品可以推荐给所述待预测用户;进一步的,若设定目标预测行为为点击与购买时,假设点击与购买概率的阈值为0.2,则当前条件下得到的点击与购买概率为0.8*点击权重+0.48*购买权重,其中,所述点击权重与购买权重可以通过实际应用情况进行调整,当所述点击与购买概率大于预设的阈值时,则该待预测物品可以推荐给所述待预测用户。In a specific implementation of this embodiment, on the basis of the above-mentioned behavior, when the target prediction behavior is set to click, assuming that the threshold of the click probability is 0.5, since 0.8 is greater than 0.5, the item to be predicted can be recommended to the The user to be predicted; further, if the target prediction behavior is set to click and purchase, assuming that the threshold of click and purchase probability is 0.2, the click and purchase probability obtained under the current conditions is 0.8*click weight+0.48*purchase weight, Wherein, the click weight and purchase weight can be adjusted according to actual application conditions, and when the click and purchase probabilities are greater than a preset threshold, the item to be predicted can be recommended to the user to be predicted.

本发明实施例的技术方案,通过获取待预测用户的用户特征信息以及待预测物品的物品特征信息,之后将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;最后根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户,提供了一种构建用户行为预测模型的新方式,基于该新的用户行为预测模型,可以有效提高用户行为预测的精准度,进而可以提高所推荐物品对用户实际需求的命中率,有效减少用户自行搜索感兴趣信息时的时间消耗。In the technical solution of the embodiment of the present invention, by acquiring the user feature information of the user to be predicted and the item feature information of the item to be predicted, and then inputting the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model In the user behavior prediction model trained by the construction method, the behavior prediction probability matrix of the user to be predicted is obtained; finally, according to the behavior prediction probability matrix, it is verified whether the item to be predicted is recommended to the user to be predicted, Provides a new way to build a user behavior prediction model. Based on the new user behavior prediction model, the accuracy of user behavior prediction can be effectively improved, and the hit rate of recommended items to the user's actual needs can be improved, and the user's self-determination can be effectively reduced. Time spent searching for information of interest.

实施例四Embodiment four

图4为本发明实施例四提供的一种用户行为预测模型的构建装置的结构示意图。如图4所示,该装置包括:FIG. 4 is a schematic structural diagram of an apparatus for constructing a user behavior prediction model provided by Embodiment 4 of the present invention. As shown in Figure 4, the device includes:

原始样本集生成模块410,用于根据多用户的历史行为数据,生成原始样本集,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系;The original sample set generation module 410 is used to generate an original sample set according to the historical behavior data of multiple users. The original sample includes the user feature information of the set user, the item feature information of the set item, and the set user's execution of the set item. Behavior set, there is a progressive relationship between each behavior in the behavior set;

特征矩阵生成模块420,用于根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵;The feature matrix generation module 420 is used to generate the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix respectively corresponding to each original sample according to the behavior set in each original sample;

训练样本集生成模块430,用于根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据;The training sample set generation module 430 is used to set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix of the item according to the user feature information of the set user in the original sample to form a training sample set. The sample set, the feature matrix in the second row and the feature matrix in the third row are used as labeled data in the training sample;

模型训练模块440,用于使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。The model training module 440 is configured to use the training sample set to train the deep recommendation model to obtain a user behavior prediction model.

本发明实施例的技术方案,通过根据多用户的历史行为数据,生成原始样本集,并根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,之后根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集与标注数据,最后使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型,提供了一种构建用户行为预测模型的新方式,基于该新的用户行为预测模型,可以有效提高用户行为预测的精准度,进而可以提高所推荐物品对用户实际需求的命中率,有效减少用户自行搜索感兴趣信息时的时间消耗。According to the technical solution of the embodiment of the present invention, the original sample set is generated according to the historical behavior data of multiple users, and the first behavior feature matrix and the second behavior feature matrix respectively corresponding to each original sample are generated according to the behavior set in each original sample. matrix and the third behavior feature matrix, and then according to the user feature information of the set user in the original sample, set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix to form a training The sample set and labeled data, and finally use the training sample set to train the deep recommendation model to obtain a user behavior prediction model, which provides a new way to build a user behavior prediction model. Based on this new user behavior prediction model, it can effectively improve user behavior. The accuracy of behavior prediction can further improve the hit rate of recommended items to users' actual needs, and effectively reduce the time consumption when users search for interesting information by themselves.

在上述实施例的基础上,原始样本集生成模块410可以包括:On the basis of the foregoing embodiments, the original sample set generation module 410 may include:

备选行为集获取单元,用于在多用户的历史行为数据中,获取目标用户针对目标物品的至少一个备选行为集;The alternative behavior set acquisition unit is used to acquire at least one alternative behavior set of the target user for the target item in the historical behavior data of multiple users;

行为集筛选单元,用于通过逻辑处理模块,在各所述备选行为集中筛选满足数据递进关系的合理性的至少一个目标行为集合;A behavior set screening unit, configured to filter at least one target behavior set that satisfies the rationality of the data progression relationship in each of the candidate behavior sets through a logic processing module;

原始样本构建单元,用于根据所述目标用户的用户特征信息、所述目标物品的物品特征信息以及所述至少一个目标行为集合,构建与所述目标用户匹配的至少一个原始样本。An original sample construction unit, configured to construct at least one original sample matching the target user according to the user characteristic information of the target user, the item characteristic information of the target item, and the at least one target behavior set.

在上述实施例的基础上,特征矩阵生成模块420可以包括:On the basis of the foregoing embodiments, the feature matrix generating module 420 may include:

行为矩阵生成单元,用于在各原始样本中获取当前处理样本中的当前行为集合,并形成与所述当前行为集合匹配的一维行为矩阵,其中,所述一维行为矩阵的位数L固定,每个矩阵位对应设定行为;Behavior matrix generation unit, used to obtain the current behavior set in the current processing sample in each original sample, and form a one-dimensional behavior matrix matching the current behavior set, wherein, the number of digits L of the one-dimensional behavior matrix is fixed , each matrix bit corresponds to setting behavior;

第一行为特征矩阵构建单元,用于构建L*(L-1)阶的第一基础特征矩阵,依次获取所述一维行为矩阵中的第i列数据的前i-1列数据,填充至第一基础特征矩阵中第i行的前i-1列中,并将第一基础特征矩阵中的剩余位置进行补零,得到所述第一行为特征矩阵,其中,所述i初始化为1;The first row feature matrix construction unit is used to construct the first basic feature matrix of L*(L-1) order, and sequentially obtain the first i-1 column data of the i-th column data in the one-dimensional behavior matrix, and fill it to In the first i-1 column of the i-th row in the first basic feature matrix, and zero-fill the remaining positions in the first basic feature matrix to obtain the first row feature matrix, wherein the i is initialized to 1;

第二行为特征矩阵构建单元,用于构建L*L阶的第二基础特征矩阵,依次获取所述一维行为矩阵中的第i列数据,填充至第二基础特征矩阵中第i行第i列中,并将第二基础特征矩阵中的剩余位置进行补零,得到第二行为特征矩阵;The second behavioral feature matrix construction unit is used to construct the second basic feature matrix of L*L order, sequentially obtain the i-th column data in the one-dimensional behavioral matrix, and fill it into the i-th row of the second basic feature matrix column, and zero-fill the remaining position in the second basic feature matrix to obtain the second row feature matrix;

第三行为特征矩阵构建单元,用于构建L*L阶的单位矩阵,作为第三行为特征矩阵。The third row is a characteristic matrix construction unit for constructing an identity matrix of order L*L, as the third row is a characteristic matrix.

在上述实施例的基础上,模型训练模块440可以包括:On the basis of the foregoing embodiments, the model training module 440 may include:

目标训练样本获取单元,用于在训练样本集中获取目标训练样本,并将目标训练样本输入至深度推荐模型中;A target training sample acquisition unit, configured to acquire target training samples in the training sample set, and input the target training samples into the deep recommendation model;

原始稀疏向量生成单元,用于通过深度推荐模型中的稀疏特征层对目标训练样本中的目标用户的用户特征信息,目标物品的物品特征信息以及目标第一行为特征矩阵进行处理,得到原始稀疏向量;The original sparse vector generation unit is used to process the user feature information of the target user in the target training sample, the item feature information of the target item, and the target first behavior feature matrix through the sparse feature layer in the deep recommendation model to obtain the original sparse vector ;

稠密向量生成单元,用于通过深度推荐模型中的稠密嵌入层对原始稀疏向量进行处理,得到稠密向量;The dense vector generation unit is used to process the original sparse vector through the dense embedding layer in the depth recommendation model to obtain a dense vector;

行为预测概率矩阵获取单元,用于通过深度推荐模型中的因式分解层对所述原始稀疏向量和稠密向量进行逻辑回归计算,得到行为预测概率矩阵;The behavior prediction probability matrix acquisition unit is used to perform logistic regression calculation on the original sparse vector and dense vector through the factorization layer in the depth recommendation model to obtain the behavior prediction probability matrix;

参数调整单元,用于通过深度推荐模型中的损失函数层根据所述预测概率矩阵、所述目标训练样本中的目标第二行为特征矩阵以及目标第三行为特征矩阵计算得到损失函数,并根据损失函数对深度推荐模型进行参数调整;The parameter adjustment unit is used to calculate the loss function according to the prediction probability matrix, the target second behavior feature matrix and the target third behavior feature matrix in the target training sample through the loss function layer in the depth recommendation model, and according to the loss The function adjusts the parameters of the deep recommendation model;

返回执行单元,用于返回执行训练样本集中获取目标训练样本的操作,直至训练得到用户行为预测模型。Returning to the execution unit, used to return and execute the operation of obtaining the target training samples in the training sample set until the user behavior prediction model is trained.

本发明实施例所提供的用户行为预测模型的构建装置可执行本发明任意实施例所提供的用户行为预测模型的构建方法,具备执行方法相应的功能模块和有益效果。The device for constructing a user behavior prediction model provided by an embodiment of the present invention can execute the method for constructing a user behavior prediction model provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

实施例五Embodiment five

图5为本发明实施例五提供的一种用户行为预测装置的结构示意图。如图5所示,该装置包括:FIG. 5 is a schematic structural diagram of a user behavior prediction device provided by Embodiment 5 of the present invention. As shown in Figure 5, the device includes:

特征信息获取模块510,用于获取待预测用户的用户特征信息以及待预测物品的物品特征信息;Feature information acquisition module 510, configured to acquire user feature information of the user to be predicted and item feature information of the item to be predicted;

概率矩阵获取模块520,用于将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;The probability matrix acquisition module 520 is used to input the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model trained by the construction method of the user behavior prediction model, and obtain the predicted item of the user to be predicted The behavior prediction probability matrix of ;

推荐验证模块530,用于根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。The recommendation verification module 530 is configured to verify whether the item to be predicted is recommended to the user to be predicted according to the behavior prediction probability matrix.

本发明实施例的技术方案,通过获取待预测用户的用户特征信息以及待预测物品的物品特征信息,之后将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;最后根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户,提供了一种构建用户行为预测模型的新方式,基于该新的用户行为预测模型,可以有效提高用户行为预测的精准度,进而可以提高所推荐物品对用户实际需求的命中率,有效减少用户自行搜索感兴趣信息时的时间消耗。In the technical solution of the embodiment of the present invention, by acquiring the user feature information of the user to be predicted and the item feature information of the item to be predicted, and then inputting the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model In the user behavior prediction model trained by the construction method, the behavior prediction probability matrix of the user to be predicted is obtained; finally, according to the behavior prediction probability matrix, it is verified whether the item to be predicted is recommended to the user to be predicted, Provides a new way to build a user behavior prediction model. Based on the new user behavior prediction model, the accuracy of user behavior prediction can be effectively improved, and the hit rate of recommended items to the user's actual needs can be improved, and the user's self-determination can be effectively reduced. Time spent searching for information of interest.

实施例六Embodiment six

图6示出了可以用来实施本发明的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG. 6 shows a schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the inventions described and/or claimed herein.

如图6所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG. 6, the electronic device 10 includes at least one processor 11, and a memory connected in communication with the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores There is a computer program executable by at least one processor, and the processor 11 can operate according to a computer program stored in a read-only memory (ROM) 12 or loaded from a storage unit 18 into a random access memory (RAM) 13. Various appropriate actions and processes are performed. In the RAM 13, various programs and data necessary for the operation of the electronic device 10 are also stored. The processor 11 , ROM 12 , and RAM 13 are connected to each other through a bus 14 . An input/output (I/O) interface 15 is also connected to the bus 14 .

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如用户行为预测模型的构建方法,或者,用户行为预测方法。Processor 11 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes various methods and processes described above, for example, a method for constructing a user behavior prediction model, or a method for user behavior prediction.

相应的,所述用户行为预测模型的构建方法包括:根据多用户的历史行为数据,生成原始样本集,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系;根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵;根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据;使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。Correspondingly, the method for constructing the user behavior prediction model includes: according to the historical behavior data of multiple users, generating an original sample set, the original sample includes the user feature information of the set user, the item feature information of the set item, and the set user feature information. For the behavior set executed by the set item, there is a progressive relationship between the behaviors in the behavior set; according to the behavior set in each original sample, generate the first behavior feature matrix and the second behavior feature matrix corresponding to each original sample and the third behavior feature matrix; according to the user feature information of the set user in the original sample, set the item feature information of the item, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix to form a training sample set , the second behavior feature matrix and the third behavior feature matrix are used as labeled data in the training samples; the deep recommendation model is trained using the training sample set to obtain the user behavior prediction model.

所述用户行为预测方法包括:获取待预测用户的用户特征信息以及待预测物品的物品特征信息;将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过用户行为预测模型的构建方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。The user behavior prediction method includes: obtaining user feature information of the user to be predicted and item feature information of the item to be predicted; inputting the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model through construction In the user behavior prediction model obtained by the method training, the behavior prediction probability matrix of the user to be predicted is obtained; according to the behavior prediction probability matrix, it is verified whether the item to be predicted is recommended to the user to be predicted.

在一些实施例中,用户行为预测模型的构建方法以及用户行为预测方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的分布式训练中的数据规约方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行用户行为预测模型的构建方法以及用户行为预测方法。In some embodiments, the method for constructing the user behavior prediction model and the user behavior prediction method can be implemented as computer programs, which are tangibly contained in a computer-readable storage medium, such as the storage unit 18 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19 . When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data reduction method in the distributed training described above can be performed. Alternatively, in other embodiments, the processor 11 may be configured in any other appropriate way (for example, by means of firmware) to execute the method for constructing the user behavior prediction model and the user behavior prediction method.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, so that the computer program causes the functions/operations specified in the flowcharts and/or block diagrams to be implemented when executed by the processor. A computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus or device. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。In order to provide interaction with the user, the systems and techniques described herein can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display)) for displaying information to the user. monitor); and a keyboard and pointing device (eg, a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system can include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the problems of difficult management and weak business expansion in traditional physical hosts and VPS services. defect.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present invention may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution of the present invention can be achieved, there is no limitation herein.

Claims (10)

1.一种用户行为预测模型的构建方法,其特征在于,包括:1. A method for building a user behavior prediction model, comprising: 根据多用户的历史行为数据,生成原始样本集,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系;According to the historical behavior data of multiple users, the original sample set is generated. The original sample includes the user feature information of the set user, the item feature information of the set item, and the set of behaviors performed by the set user on the set item. There is a progressive relationship between behaviors; 根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵;According to the behavior set in each original sample, generate the first behavior characteristic matrix, the second behavior characteristic matrix and the third behavior characteristic matrix respectively corresponding to each original sample; 根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据;According to the user characteristic information of the set user in the original sample, set the item characteristic information, the first behavior characteristic matrix, the second behavior characteristic matrix and the third behavior characteristic matrix of the item to form a training sample set, the second behavior characteristic matrix and The third row feature matrix is used as the labeled data in the training sample; 使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。Use the training sample set to train the deep recommendation model to obtain the user behavior prediction model. 2.根据权利要求1所述的方法,其特征在于,所述用户特征信息中包括下述至少一项:2. The method according to claim 1, wherein the user characteristic information includes at least one of the following: 所述设定用户的用户年龄、用户性别以及用户一定时间内的点击数据与购买数据;The user's user age, user gender, and user's click data and purchase data within a certain period of time are set; 所述物品特征信息中包括下述至少一项:The item feature information includes at least one of the following: 所述设定物品的物品类目、物品品牌以及一定时间内物品的点击量与曝光数量;The item category, item brand, and number of hits and exposures of the item within a certain period of time for the set item; 所述行为集合中包括按照递进关系排序的点击、加购以及购买中的至少一项。The behavior set includes at least one of click, additional purchase and purchase sorted according to the progressive relationship. 3.根据权利要求1所述的方法,其特征在于,根据多用户的历史行为数据,生成原始样本集,包括:3. The method according to claim 1, characterized in that, according to the historical behavior data of multiple users, the original sample set is generated, comprising: 在多用户的历史行为数据中,获取目标用户针对目标物品的至少一个备选行为集;In the historical behavior data of multiple users, at least one candidate behavior set of the target user for the target item is obtained; 通过逻辑处理模块,在各所述备选行为集中筛选满足数据递进关系的合理性的至少一个目标行为集合;Screening at least one target behavior set that satisfies the rationality of the data progression relationship in each of the candidate behavior sets through a logic processing module; 根据所述目标用户的用户特征信息、所述目标物品的物品特征信息以及所述至少一个目标行为集合,构建与所述目标用户匹配的至少一个原始样本。Construct at least one original sample matching the target user according to the user feature information of the target user, the item feature information of the target item, and the at least one target behavior set. 4.根据权利要求1-3任一项所述的方法,其特征在于,根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,包括:4. according to the method described in any one of claim 1-3, it is characterized in that, according to the behavior set in each original sample, generate the first behavior characteristic matrix, the second behavior characteristic matrix and the first behavior characteristic matrix respectively corresponding to each original sample The three-line feature matrix includes: 在各原始样本中获取当前处理样本中的当前行为集合,并形成与所述当前行为集合匹配的一维行为矩阵,其中,所述一维行为矩阵的位数L固定,每个矩阵位对应设定行为;Obtain the current behavior set in the current processing sample in each original sample, and form a one-dimensional behavior matrix matching the current behavior set, wherein, the number of bits L of the one-dimensional behavior matrix is fixed, and each matrix bit corresponds to a set fixed behavior; 构建L*(L-1)阶的第一基础特征矩阵,依次获取所述一维行为矩阵中的第i列数据的前i-1列数据,填充至第一基础特征矩阵中第i行的前i-1列中,并将第一基础特征矩阵中的剩余位置进行补零,得到所述第一行为特征矩阵,其中,所述i初始化为1;Construct the first basic feature matrix of L*(L-1) order, sequentially obtain the first i-1 column data of the i-th column data in the one-dimensional behavior matrix, and fill it into the i-th row of the first basic feature matrix In the first i-1 column, the remaining position in the first basic feature matrix is filled with zeros to obtain the first row feature matrix, wherein the i is initialized to 1; 构建L*L阶的第二基础特征矩阵,依次获取所述一维行为矩阵中的第i列数据,填充至第二基础特征矩阵中第i行第i列中,并将第二基础特征矩阵中的剩余位置进行补零,得到第二行为特征矩阵;Construct the second basic feature matrix of L*L order, sequentially obtain the i-th column data in the one-dimensional behavior matrix, fill it into the i-th row and i-th column in the second basic feature matrix, and store the second basic feature matrix Fill the remaining positions with zeros to get the second row feature matrix; 构建L*L阶的单位矩阵,作为第三行为特征矩阵。Construct an identity matrix of order L*L as the third row characteristic matrix. 5.根据权利要求1所述的方法,其特征在于,使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型,包括:5. The method according to claim 1, wherein the deep recommendation model is trained using a training sample set to obtain a user behavior prediction model, comprising: 在训练样本集中获取目标训练样本,并将目标训练样本输入至深度推荐模型中;Obtain target training samples from the training sample set, and input the target training samples into the deep recommendation model; 通过深度推荐模型中的稀疏特征层对目标训练样本中的目标用户的用户特征信息,目标物品的物品特征信息以及目标第一行为特征矩阵进行处理,得到原始稀疏向量;Through the sparse feature layer in the deep recommendation model, the user feature information of the target user in the target training sample, the item feature information of the target item, and the target first behavior feature matrix are processed to obtain the original sparse vector; 通过深度推荐模型中的稠密嵌入层对原始稀疏向量进行处理,得到稠密向量;Process the original sparse vector through the dense embedding layer in the deep recommendation model to obtain a dense vector; 通过深度推荐模型中的因式分解层对所述原始稀疏向量和稠密向量进行逻辑回归计算,得到行为预测概率矩阵;Perform logistic regression calculation on the original sparse vector and dense vector through the factorization layer in the deep recommendation model to obtain a behavior prediction probability matrix; 通过深度推荐模型中的损失函数层根据所述预测概率矩阵、所述目标训练样本中的目标第二行为特征矩阵以及目标第三行为特征矩阵计算得到损失函数,并根据损失函数对深度推荐模型进行参数调整;Through the loss function layer in the depth recommendation model, the loss function is calculated according to the prediction probability matrix, the target second behavior feature matrix and the target third behavior feature matrix in the target training sample, and the depth recommendation model is performed according to the loss function Parameter adjustment; 返回执行训练样本集中获取目标训练样本的操作,直至训练得到用户行为预测模型。Return to the operation of obtaining the target training samples in the training sample set until the user behavior prediction model is trained. 6.一种用户行为预测方法,其特征在于,包括:6. A user behavior prediction method, characterized in that, comprising: 获取待预测用户的用户特征信息以及待预测物品的物品特征信息;Obtain the user feature information of the user to be predicted and the item feature information of the item to be predicted; 将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过如权利要求1-5任一项所述的方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;Input the user feature information of the user to be predicted and the item feature information of the item to be predicted into the user behavior prediction model trained by the method according to any one of claims 1-5, and obtain the behavior of the user to be predicted on the item to be predicted Prediction probability matrix; 根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。According to the behavior prediction probability matrix, verify whether the item to be predicted is recommended to the user to be predicted. 7.一种用户行为预测模型的构建装置,其特征在于,包括:7. A device for constructing a user behavior prediction model, comprising: 原始样本集生成模块,用于根据多用户的历史行为数据,生成原始样本集,原始样本中包括设定用户的用户特征信息,设定物品的物品特征信息和设定用户对设定物品执行的行为集合,行为集合中的各行为之间存在递进关系;The original sample set generation module is used to generate an original sample set according to the historical behavior data of multiple users. The original sample includes the user feature information of the set user, the item feature information of the set item, and the set user's execution of the set item. Behavior collection, there is a progressive relationship between the behaviors in the behavior collection; 特征矩阵生成模块,用于根据各原始样本中的行为集合,生成与各原始样本分别对应的第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵;Feature matrix generating module, for generating the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix respectively corresponding to each original sample according to the behavior set in each original sample; 训练样本集生成模块,用于根据原始样本中的设定用户的用户特征信息,设定物品的物品特征信息、第一行为特征矩阵、第二行为特征矩阵和第三行为特征矩阵,形成训练样本集,第二行为特征矩阵和第三行为特征矩阵用于作为训练样本中的标注数据;The training sample set generation module is used to set the item feature information, the first behavior feature matrix, the second behavior feature matrix and the third behavior feature matrix of the item according to the user feature information of the set user in the original sample to form a training sample set, the second row feature matrix and the third row feature matrix are used as labeled data in the training samples; 模型训练模块,用于使用训练样本集对深度推荐模型进行训练,得到用户行为预测模型。The model training module is used to use the training sample set to train the deep recommendation model to obtain the user behavior prediction model. 8.一种用户行为预测装置,其特征在于,包括:8. A user behavior prediction device, characterized in that it comprises: 特征信息获取模块,用于获取待预测用户的用户特征信息以及待预测物品的物品特征信息;A feature information acquisition module, configured to acquire user feature information of the user to be predicted and item feature information of the item to be predicted; 概率矩阵获取模块,用于将待预测用户的用户特征信息以及待预测物品的物品特征信息输入至通过如权利要求1-5任一项所述的方法训练得到的用户行为预测模型中,获取待预测用户对待预测物品的行为预测概率矩阵;The probability matrix acquisition module is used to input the user characteristic information of the user to be predicted and the item characteristic information of the item to be predicted into the user behavior prediction model obtained by training the method according to any one of claims 1-5, and obtain the user behavior prediction model to be predicted. Predict the user's behavior prediction probability matrix for the predicted item; 推荐验证模块,用于根据所述行为预测概率矩阵,验证是否将所述待预测物品推荐给所述待预测用户。A recommendation verification module, configured to verify whether the item to be predicted is recommended to the user to be predicted according to the behavior prediction probability matrix. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5中任一项所述的一种用户行为预测模型的构建方法,或者,执行权利要求6所述的用户行为预测方法。The memory stores a computer program executable by the at least one processor, the computer program is executed by the at least one processor, so that the at least one processor can perform any one of claims 1-5 The method for constructing a user behavior prediction model, or, implementing the user behavior prediction method described in claim 6 . 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-5中任一项所述的一种用户行为预测模型的构建方法,或者,实现权利要求6所述的用户行为预测方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method described in any one of claims 1-5 when executed. A method for constructing a user behavior prediction model, or realizing the user behavior prediction method described in claim 6 .
CN202310217236.XA 2023-03-08 2023-03-08 Method and device for constructing user behavior prediction model based on deep recommendation model Pending CN116186411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310217236.XA CN116186411A (en) 2023-03-08 2023-03-08 Method and device for constructing user behavior prediction model based on deep recommendation model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310217236.XA CN116186411A (en) 2023-03-08 2023-03-08 Method and device for constructing user behavior prediction model based on deep recommendation model

Publications (1)

Publication Number Publication Date
CN116186411A true CN116186411A (en) 2023-05-30

Family

ID=86446256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310217236.XA Pending CN116186411A (en) 2023-03-08 2023-03-08 Method and device for constructing user behavior prediction model based on deep recommendation model

Country Status (1)

Country Link
CN (1) CN116186411A (en)

Similar Documents

Publication Publication Date Title
CN111259222B (en) Item recommendation method, system, electronic device and storage medium
CN108427708B (en) Data processing method, data processing apparatus, storage medium, and electronic apparatus
CN112418292B (en) Image quality evaluation method, device, computer equipment and storage medium
CN114265979B (en) Method for determining fusion parameters, information recommendation method and model training method
EP4242955A1 (en) User profile-based object recommendation method and device
CN109697641A (en) The method and apparatus for calculating commodity similarity
CN111695965A (en) Product screening method, system and equipment based on graph neural network
CN110706055A (en) Commodity information pushing method and device, storage medium and computer equipment
CN113450167A (en) Commodity recommendation method and device
Huai et al. Zerobn: Learning compact neural networks for latency-critical edge systems
CN117351299B (en) Image generation and model training method, device, equipment and storage medium
CN112434188A (en) Data integration method and device for heterogeneous database and storage medium
CN115496970A (en) Training method of image task model, image recognition method and related device
CN117312325A (en) Knowledge distillation-based quantization index construction method, device and equipment
CN112182370A (en) Item category information push method, device, electronic device and medium
CN115439192A (en) Medical commodity information pushing method and device, storage medium and computer equipment
CN113609397A (en) Method and device for pushing information
WO2024040869A1 (en) Multi-task model training method, information recommendation method, apparatus, and device
US20230206075A1 (en) Method and apparatus for distributing network layers in neural network model
CN116186411A (en) Method and device for constructing user behavior prediction model based on deep recommendation model
CN116401372A (en) Knowledge graph representation learning method and device, electronic equipment and readable storage medium
CN116308634A (en) Double-tower model recommendation method and device based on behavior sequence and weight sharing
CN113762992B (en) Method and device for processing data
CN114610996A (en) Information pushing method and device
CN115146997A (en) Evaluation method and device based on power data, electronic equipment and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: Room 204C, 204D, 301, 303, 304, 502C, Building B, No. 112 Liangxiu Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, March 2012

Applicant after: Daguan Data Co.,Ltd.

Address before: Room 204C, 204D, 301, 303, 304, 502C, Building B, No. 112 Liangxiu Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, March 2012

Applicant before: DATAGRAND INFORMATION TECHNOLOGY (SHANGHAI) Co.,Ltd.

Country or region before: China