Data object recommendation method, device and electronic device

By constructing interaction diagrams and using graph neural networks to generate vectors of users and data objects, the problem of traditional recommendation systems ignoring the diversity of user behaviors and dynamic changes in interests is solved, achieving more accurate product recommendations and improving user experience.

CN113360745BActive Publication Date: 2024-10-15ALIBABA (CHENGDU) SOFTWARE & TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010144194.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-04
Publication Date
2024-10-15
Estimated Expiration
2040-03-04

AI Technical Summary

Technical Problem

Traditional recommendation systems ignore the diversity of user behaviors and dynamic changes in interests, resulting in inaccurate product recommendation results.

Method used

By obtaining the interaction data between users and data objects, we construct an interaction graph, use graph neural networks and attention mechanisms to generate vectors of users and data objects, aggregate vectors to reflect dynamic changes, and base the vector matching between the target user's vector and the data object on Recommended products.

Benefits of technology

It improves the accuracy of recommendations, can better reflect users' current interests, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113360745B_ABST
    Figure CN113360745B_ABST
Patent Text Reader

Abstract

The present invention discloses a data object recommendation method, device and electronic device. The method comprises: obtaining interaction data of users performing multiple interaction operations on data objects within multiple preset statistical time periods; determining a first user vector of each user and a first object vector of each data object according to the interaction data; respectively aggregating the first user vectors and first object vectors corresponding to all interaction operations of each user and each data object within each statistical time period to obtain a second user vector of the corresponding user and a second object vector of the corresponding data object; respectively aggregating the second user vectors and second object vectors of each user and each data object within all statistical time periods to obtain a third user vector of the corresponding user and a third object vector of the corresponding data object; and selecting a recommended data object according to the third object vector of each data object and the third user vector of a target user, and recommending the recommended data object to the target user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of recommendation technology, and more specifically, to a data object recommendation method, a data object recommendation device, an electronic device, and a computer-readable storage medium. Background Art

[0002] In the Internet age, a large amount of interaction data between users and products is generated every day. These interaction data contain rich information, which can be used to build a recommendation system to conduct accurate product marketing for users and recommend products that users may like or buy, so as to better serve users and improve the overall operation efficiency and indicators of the website.

[0003] However, users' behaviors towards products are diverse, and their interest in products is a dynamically changing process. Traditional recommendation systems ignore these two processes at the same time, resulting in inaccurate product recommendation results. Summary of the invention

[0004] An object of the present invention is to provide a new technical solution for data object recommendation.

[0005] According to a first aspect of the present invention, there is provided a data object recommendation method, comprising:

[0006] Acquiring interaction data of at least one user performing at least one interaction operation on at least one data object within at least one preset statistical period;

[0007] Determine, according to the interaction data, a first user vector of each user corresponding to each interaction operation in each statistical period, and a first object vector of each data object corresponding to each interaction operation in each statistical period;

[0008] Aggregating first user vectors of all interactive operations of each user in each statistical period to obtain second user vectors corresponding to all users; aggregating first object vectors of all interactive operations of each data object in each statistical period to obtain second object vectors corresponding to all data objects;

[0009] Aggregating the second user vectors of each user in all statistical time periods to obtain third user vectors corresponding to all the users; aggregating the second object vectors of each data object in all statistical time periods to obtain third object vectors corresponding to all the data objects;

[0010] According to the third object vector of each of the data objects and the third user vector of the target user, a recommended data object that meets a preset recommendation condition is selected from the data objects and recommended to the target user; wherein the target user is any user.

[0011] Optionally, determining, according to the interaction data, a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period includes:

[0012] Constructing an interaction relationship graph of all the users and all the data objects corresponding to each interaction operation in each statistical period according to the interaction data corresponding to each interaction operation in each statistical period;

[0013] According to the interaction relationship diagram corresponding to each interaction operation in each statistical period, a first user vector of each user corresponding to each interaction operation in each statistical period and a first object vector of each data object corresponding to each interaction operation in each statistical period are determined.

[0014] Optionally, constructing an interaction relationship graph of all the users and all the data objects corresponding to each interaction operation in each statistical period according to the interaction data corresponding to each interaction operation in each statistical period includes:

[0015] Each of the users and each of the data objects is respectively regarded as a node;

[0016] According to the interaction data of each of the interaction operations in each of the statistical time periods, edges for connecting nodes are determined to obtain a corresponding interaction relationship graph.

[0017] Optionally, determining, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, a first user vector of each user corresponding to each interaction operation in each statistical period, and a first object vector of each data object corresponding to each interaction operation in each statistical period includes:

[0018] For each of the interaction relationship graphs, a graph neural network corresponding to each of the users and each of the data objects is constructed respectively; wherein each of the graph neural networks has the same number of layers;

[0019] For each of the interaction relationship graphs, the value of each of the users in the last hidden layer of the corresponding graph neural network is obtained as the first user vector of the corresponding user; the value of each of the data objects in the last hidden layer of the corresponding graph neural network is obtained as the first object vector of the corresponding data object.

[0020] Optionally, obtaining the value of each of the users in the last hidden layer of the corresponding graph neural network as the first user vector of the corresponding user; obtaining the value of each of the data objects in the last hidden layer of the corresponding graph neural network as the first object vector of the corresponding data object includes:

[0021] For each of the data objects and each of the users, using the undetermined parameters of the corresponding graph neural network as variables, construct an expression of the corresponding last hidden layer;

[0022] Constructing an expression of the distance between each of the data objects and each of the users according to the expression of the last hidden layer of each of the data objects and the expression of the last hidden layer of each of the users;

[0023] A loss function is constructed based on an expression of the distance between each of the data objects and each of the users, and a corresponding interaction relationship graph.

[0024] Solve the loss function and determine the value of each undetermined parameter of the graph neural network.

[0025] Optionally, determining, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, a first user vector of each user corresponding to each interaction operation in each statistical period, and a first object vector of each data object corresponding to each interaction operation in each statistical period includes:

[0026] Based on the preset first attention mechanism, according to the interaction relationship graph corresponding to each interaction operation in each statistical time period, the first user vector of each user corresponding to each interaction operation in each statistical time period and the first object vector of each data object corresponding to each interaction operation in each statistical time period are determined.

[0027] Optionally, selecting a recommended data object that meets a preset recommendation condition from the data objects according to the third object vector of each of the data objects and the third user vector of the target user, and recommending the recommended data object to the target user includes:

[0028] determining a matching degree between each of the data objects and the target user according to the third object vector of each of the data objects and the third user vector of the target user;

[0029] According to the matching degree, a recommended data object that meets a preset recommendation condition is selected from the data objects and recommended to the target user.

[0030] Optionally, determining the matching degree between each of the data objects and the target user according to the third object vector of each of the data objects and the third user vector of the target user includes:

[0031] respectively determining the distance between the third object vector of each data object and the third user vector of the target user as the matching degree between the corresponding data object and the target user; or,

[0032] Based on a preset machine learning model, a matching degree between a corresponding data object and the target user is obtained according to the third object vector of each data object and the third user vector of the target user.

[0033] Optionally, selecting, according to the matching degree, a recommended data object that meets a preset recommendation condition from the data objects and recommending it to the target user includes:

[0034] Selecting a data object whose matching degree with the target user is within a set range as the recommended data object; or,

[0035] A set number of data objects having the greatest matching degree with the target user are selected as the recommended data objects.

[0036] Optionally, respectively aggregating the first user vectors of all interaction operations of each user in each statistical period to obtain the second user vectors corresponding to all the users; respectively aggregating the first object vectors of all interaction operations of each data object in each statistical period to obtain the second object vectors corresponding to all the data objects includes:

[0037] Based on the preset second attention mechanism, the first user vectors of all interaction operations corresponding to each user in each statistical time period are aggregated respectively to obtain the second user vector of the corresponding user; the first object vectors of all interaction operations corresponding to each data object in each statistical time period are aggregated respectively to obtain the second object vector of the corresponding data object.

[0038] Optionally, respectively aggregating the second user vectors of each of the users in all statistical time periods to obtain third user vectors corresponding to all of the users; respectively aggregating the second object vectors of each of the data objects in all statistical time periods to obtain third object vectors corresponding to all of the data objects includes:

[0039] Merging the second user vectors of each user in all statistical time periods to obtain a user vector matrix, and merging the second object vectors of each data object in all statistical time periods to obtain an object vector matrix;

[0040] Based on the preset third attention mechanism, the third user vector of the corresponding user is obtained according to the user vector matrix of each of the users; and the third object vector of the corresponding data object is obtained according to the object vector matrix of each of the data objects.

[0041] According to a second aspect of the present invention, there is provided a recommendation method, comprising:

[0042] Obtaining interactive data of users performing interactive operations on data objects during the statistical period;

[0043] Determine, according to the interaction data, a user vector representing all interaction operations of the user in all statistical time periods, and an object vector representing all interaction operations of the data object in all statistical time periods;

[0044] According to the user vector of the target user and the object vector of the data object, the recommended data objects meeting the preset recommendation conditions are screened and recommended to the target user.

[0045] According to a third aspect of the present invention, there is provided a recommendation method, comprising:

[0046] Acquire interaction data of at least one user performing at least one interaction operation on at least one data object during a statistical period;

[0047] Constructing an interaction relationship graph corresponding to each interaction operation between each user and each data object in each statistical time period according to the interaction data;

[0048] Based on a graph neural network constructed according to an interaction relationship graph corresponding to each interaction operation in each statistical period, or based on a preset first attention mechanism and the interaction relationship graph, determine a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period;

[0049] Aggregating the first user vector of each of the users and the first object vector of each of the data objects respectively to obtain third user vectors corresponding to all users and third object vectors corresponding to all data objects;

[0050] According to the user vector of the target user and the third object vector of the data object, the recommended data objects meeting the preset recommendation condition are screened and recommended to the target user.

[0051] According to a fourth aspect of the present invention, there is provided a recommendation method, comprising:

[0052] Collect the user's client-based interaction data on the data object in advance;

[0053] In response to the target user's access request, a recommended data object of the target user is obtained according to the interaction data, and the recommended data object is added to the page content of the access result so that the recommended data object is displayed in the page of the access result.

[0054] According to a fifth aspect of the present invention, there is provided a data object recommendation device, comprising:

[0055] A data acquisition module, used to acquire interaction data of at least one user performing at least one interaction operation on at least one data object within at least one preset statistical period;

[0056] A vector determination module, used to determine, according to the interaction data, a first user vector of each user corresponding to each interaction operation in each statistical period, and a first object vector of each data object corresponding to each interaction operation in each statistical period;

[0057] A first aggregation module is used to aggregate first user vectors corresponding to all interactive operations of each user in each statistical period to obtain second user vectors corresponding to all users; and to aggregate first object vectors corresponding to all interactive operations of each data object in each statistical period to obtain second object vectors corresponding to all data objects;

[0058] A second aggregation module is used to aggregate the second user vectors of each user in all statistical time periods to obtain third user vectors corresponding to all the users; and to aggregate the second object vectors of each data object in all statistical time periods to obtain third object vectors corresponding to all the data objects;

[0059] The object recommendation module is used to select a recommended data object that meets a preset recommendation condition from the data objects according to the third object vector of each data object and the third user vector of the target user, and recommend it to the target user; wherein the target user is any user.

[0060] According to a sixth aspect of the present invention, there is provided an electronic device, comprising:

[0061] The device according to the fifth aspect of the present invention; or,

[0062] A processor and a memory, wherein the memory is used to store instructions, and the instructions are used to control the processor to execute the method according to any one of the first aspect to the fourth aspect of the present invention.

[0063] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to the first aspect of the present invention.

[0064] In the embodiment of the present invention, the third user vector of each user and the third object vector of each data object obtained based on the interaction data of multiple interaction operations in multiple statistical time periods integrate the time dynamic characteristics and multiple interaction characteristics, so that the third user vector and the third object vector can better reflect the dynamic changes of the corresponding users and data objects. In this way, based on the third user vector of the target user and the third object vector of each data object, the data object that the target user is currently more interested in can be selected more accurately, thereby improving the user experience.

[0065] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0067] Figure 1a 4 is a schematic diagram of the hardware structure of an electronic device according to the first embodiment of the present invention.

[0068] Figure 1b FIG. 4 is a schematic diagram of the hardware structure of an electronic device according to a second embodiment of the present invention.

[0069] Figure 2 A schematic diagram showing an application scenario of the data object recommendation method according to the first embodiment of the present invention.

[0070] Figure 3 A flow chart of a data object recommendation method according to an embodiment of the present invention is shown.

[0071] Figure 4 It is a schematic diagram of the result of a graph neural network according to an embodiment of the present invention.

[0072] Figure 5 A principle block diagram of a data object recommendation device according to an embodiment of the present invention is shown.

[0073] Figure 6 A schematic diagram showing an application scenario of a data object recommendation method according to a second embodiment of the present invention.

[0074] Figure 7 A schematic diagram showing an application scenario of a data object recommendation method according to a third embodiment of the present invention.

[0075] Figure 8 A schematic diagram showing an application scenario of a data object recommendation method according to a fourth embodiment of the present invention.

[0076] Fig. 9 A principle block diagram of an electronic device according to a third embodiment of the present invention is shown. DETAILED DESCRIPTION

[0077] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0078] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0079] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0080] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0081] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0082] <Hardware Configuration>

[0083] Figure 1a and Figure 1b is a block diagram of a hardware configuration of an electronic device 1000 that can be used to implement the method of any embodiment of the present invention.

[0084] In one embodiment, Figure 1a As shown, the electronic device 1000 may be a server 1100 .

[0085] Server 1100 provides a business point for processing, database, and communication facilities. Server 1100 can be a monolithic server or a distributed server across multiple computers or computer data centers. The server can be of various types, such as but not limited to, a network server, a news server, a mail server, a message server, an advertising server, a file server, an application server, an interactive server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or an embedded logic component or a combination of two or more such components for executing the appropriate functions supported or implemented by the server. For example, a server such as a blade server, a cloud server, etc., or a server group consisting of multiple servers, which may include one or more of the above-mentioned types of servers, etc.

[0086] In this embodiment, the server 1100 can be as follows Figure 1a As shown, it includes a processor 1110 , a memory 1120 , an interface device 1130 , a communication device 1140 , a display device 1150 , and an input device 1160 .

[0087] In this embodiment, the server 1100 may also include a speaker, a microphone, etc., which are not limited here.

[0088] The processor 1110 may be a dedicated server processor, or a desktop processor or a mobile processor that meets the performance requirements, which is not limited here. The memory 1120 includes, for example, ROM (read-only memory), RAM (random access memory), non-volatile memory such as a hard disk, etc. The interface device 1130 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1140 is capable of wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1160 may include, for example, a touch screen, a keyboard, etc.

[0089] In this embodiment, the memory 1120 of the server 1100 is used to store instructions, which are used to control the processor 1110 to operate to at least perform the method according to any embodiment of the present invention. A technician can design instructions according to the scheme disclosed in the present invention. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0090] Despite Figure 1a , multiple devices of the server 1100 are shown; however, the present invention may only involve some of the devices, for example, the server 1100 only involves the memory 1120 and the processor 1110 .

[0091] In one embodiment, the electronic device 1000 may be a terminal device 1200 such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, etc. used by an operator, which is not limited here.

[0092] In this embodiment, refer to Figure 1b As shown, the terminal device 1200 may include a processor 1210, a memory 1220, an interface device 1230, a communication device 1240, a display device 1250, an input device 1260, a speaker 1270, a microphone 1280, and the like.

[0093] The processor 1210 may be a mobile version processor. The memory 1220 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1230 may include, for example, a USB interface, a headphone interface, etc. The communication device 1240 may, for example, be capable of wired or wireless communication. The communication device 1240 may include a short-range communication device, for example, any device for short-range wireless communication based on short-range wireless communication protocols such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication device 1240 may also include a remote communication device, for example, any device for WLAN, GPRS, 2G / 3G / 4G / 5G remote communication. The display device 1250 may, for example, be a liquid crystal display, a touch display, etc. The input device 1260 may include, for example, a touch screen, a keyboard, etc. The user may input / output voice information through the speaker 1270 and the microphone 1280.

[0094] In this embodiment, the memory 1220 of the terminal device 1200 is used to store instructions, and the instructions are used to control the processor 1210 to operate to at least perform the method according to any embodiment of the present invention. A technician can design instructions according to the scheme disclosed in the present invention. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0095] Despite Figure 1b , multiple devices of the terminal device 1200 are shown, but the present invention may only involve some of the devices, for example, the terminal device 1200 only involves the memory 1220, the processor 1210, and the display device 1250.

[0096] <Application scenarios>

[0097] like Figure 2As shown, at least one user can perform at least one interactive operation on at least one data object on their respective clients. The electronic device implementing the embodiment of the present invention can obtain the interactive data of at least one user performing at least one interactive operation on at least one data object in at least one statistical period, and determine the first user vector of each interactive operation of each user in each statistical period, and the first object vector of each data object in each statistical period corresponding to each interactive operation according to the interactive data; respectively aggregate the first user vectors of all interactive operations of each user in each statistical period to obtain the second user vector of the corresponding user; respectively aggregate the first object vectors of all interactive operations of each data object in each statistical period to obtain the second object vector of the corresponding data object; respectively aggregate the second user vectors of each user in all statistical periods to obtain the third user vector of the corresponding user; respectively aggregate the second object vectors of each data object in all statistical periods to obtain the third object vector of the corresponding data object. In the client of the target user, an entrance for triggering an access request can be provided, and the target user can send an access request to the electronic device through the entrance. In response to the access request, the electronic device can select recommended data objects that meet preset recommendation conditions from the data objects based on the third object vector of each data object and the third user vector of the target user, recommend the recommended data objects to the client of the target user, and display the recommended data objects on the access result page of the client of the target user.

[0098] <First method embodiment>

[0099] In this embodiment, a data object recommendation method is provided. The data object recommendation method may be implemented by an electronic device. The electronic device may be Figure 1a The server 1100 shown or Figure 1b The terminal device 1200 is shown.

[0100] according to Figure 3 As shown, the data object recommendation method of this embodiment may include the following steps S3100 to S3500:

[0101] Step S3100: Obtain interaction data of at least one user performing at least one interaction operation on at least one data object within at least one preset statistical period.

[0102] In one embodiment of the present invention, the statistical period may be a historical period pre-set according to an application scenario or specific requirements. For example, the statistical period may be a certain day in the past.

[0103] The data object in the embodiment of the present invention may be, for example, a physical product or a virtual product. The data object may be, for example, a tradable product such as clothing, shoes, bags, daily necessities, cosmetics, office supplies, recharge cards, etc., or information.

[0104] The interaction data may indicate whether the target user performs a corresponding interaction operation on the target object. The interaction operation may include, for example, at least two of the following: purchase, click, favorite, and add to cart.

[0105] Step S3200: determining, based on the interaction data, a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period.

[0106] Specifically, the first user vector of each user corresponding to each interactive operation in each statistical period and the first object vector of each data object corresponding to each interactive operation in each statistical period may be determined based on the interactive data of each interactive operation in each statistical period. For example, based on the interactive data of the rth interactive operation in the tth statistical period, the first user vector of each user corresponding to the rth interactive operation in the tth statistical period and the first object vector of each data object corresponding to the rth interactive operation in the tth statistical period may be determined.

[0107] In one embodiment of the present invention, determining, based on the interaction data, a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period may include the following steps S3210 to S3220:

[0108] Step S3210: construct an interaction relationship diagram of all users and all data objects corresponding to each interaction operation in each statistical period according to the interaction data corresponding to each interaction operation in each statistical period.

[0109] In this embodiment, if the interaction data corresponding to R types of interaction operations in T statistical time periods are obtained through step S3100, then T×R interaction relationship graphs can be obtained through step S3210.

[0110] In one embodiment of the present invention, each user and each data object may be regarded as a node respectively; and the edges for connecting the nodes are determined according to the interaction data of each interaction operation in each statistical period to obtain the corresponding interaction relationship graph.

[0111] Each interaction operation type corresponds to an edge type. Therefore, if a user and a data object have multiple interaction operations, they will be constructed into multiple interaction relationship graphs.

[0112] For example, according to the interaction data of the rth interaction operation in the tth statistical period, it is obtained that user 1 performed the rth interaction operation on data object 2 in the tth statistical period. Then, in the interaction relationship graph of the rth interaction operation in the tth statistical period, there is an edge connecting the node corresponding to user 1 and the node corresponding to data object 2.

[0113] Step S3220, according to the interaction relationship diagram corresponding to each interaction operation in each statistical period, determine the first user vector of each user corresponding to each interaction operation in each statistical period, and the first object vector of each data object corresponding to each interaction operation in each statistical period.

[0114] Specifically, the first user vector of each user corresponding to each interactive operation in each statistical period and the first object vector of each data object corresponding to each interactive operation in each statistical period can be determined based on the connection relationship between the nodes in the interactive relationship graph corresponding to each interactive operation in each statistical period.

[0115] In one embodiment of the present invention, determining, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period may include the following steps S3221-S3222:

[0116] Step S3221: For each relationship graph, a graph neural network corresponding to each user and each data object is constructed respectively.

[0117] The number of layers of each graph neural network can be the same, and these networks can be shared by different statistical time periods.

[0118] Specifically, for each interaction relationship graph, each user and each data object can be used as root nodes to establish a graph neural network corresponding to each user and a graph neural network corresponding to each data object. In the case of N1 users and N2 data objects, N1+N2 graph neural networks can be constructed according to each interaction relationship graph, and the root node of each graph neural network is different. The kth layer in the graph neural network can be a data object (or user) connected to the user (or data object) of the k-1th layer in the corresponding interaction relationship graph.

[0119] For example, in the tth statistical period, the interaction data of users U1-U6 performing the rth interaction operation on data objects P1-P4 may be as shown in the following table:

[0120]

[0121] In one embodiment of the present invention, in the data table, when the user performs the rth interactive operation on the data object within the tth statistical period, the value of the corresponding position is 1; when the user does not perform the rth interactive operation on the data object within the tth statistical period, the value of the corresponding position is 0.

[0122] In the case where the number of layers of the graph neural network is four, for the graph neural network with user U1 as the root node, the first layer of the graph neural network can be user U1, the second layer can be all data objects connected to user U1 in the interaction relationship graph, the third layer can be all users connected to the data objects in the second layer in the interaction relationship graph, and the fourth layer can be all data objects connected to the users in the third layer in the interaction relationship graph. The structural diagram of the graph neural network can be as follows: Figure 4 shown.

[0123] Step S3222: For each interaction relationship graph, obtain the value of each user in the last hidden layer of the corresponding graph neural network as the first user vector of the corresponding user; obtain the value of each data object in the last hidden layer of the corresponding graph neural network as the first object vector of the corresponding data object.

[0124] In one embodiment of the present invention, for one of the interaction relationship graphs, obtaining the value of each user in the last hidden layer of the corresponding graph neural network as the first user vector of the corresponding user; obtaining the value of each data object in the last hidden layer of the corresponding graph neural network as the first object vector of the corresponding data object may include the following steps S3222-1 to S3222-4:

[0125] Step S3222-1, for each data object and each user, use the pending parameters of the corresponding graph neural network as variables to construct the corresponding hidden layer expression.

[0126] Among them, the undetermined parameters of each graph neural network at the same layer can be the same.

[0127] In one embodiment of the present invention, each data object and each user may be used as a target node in turn, and the expression of the hidden layer of the target node may be expressed as:

[0128]

[0129] Among them, is the hidden layer value of the target node in the kth layer, x is the initial value of the target node, N(v) represents the nodes connected to the target node in the interaction graph, σ is the activation function (for example, but not limited to ReLU), W k and B k These are all undetermined parameters of the kth layer of the graph neural network.

[0130] Specifically, the expression of the hidden layer of the i-th user can be expressed as:

[0131]

[0132]

[0133] Among them, is the value of the hidden layer of the kth layer in the graph neural network of the i-th user, x i is the initial value of the i-th target user, N(i) represents the node connected to the i-th user in the corresponding interaction graph, σ is the activation function, and W k and B k These are all undetermined parameters of the kth layer of the graph neural network.

[0134] The expression of the hidden layer of the jth data object can be expressed as:

[0135]

[0136]

[0137] Among them, is the value of the hidden layer of the kth layer in the graph neural network of the jth data object, x i is the initial value of the jth data object, N(i) represents the node connected to the jth data object in the interaction graph, σ is the activation function, and W k and B k These are all undetermined parameters of the kth layer of the graph neural network.

[0138] Step S3222-2: construct an expression of the distance between each data object and each user based on the expression of the hidden layer of each data object and the expression of the hidden layer of each user.

[0139] In one embodiment of the present invention, the distance between each data object and each target user may be a cosine distance.

[0140] Then, the distance y between the i-th target user and the j-th data object ij The expression can be expressed as:

[0141]

[0142] in, is the value of the hidden layer of the kth layer in the graph neural network of the i-th target user, is the value of the hidden layer of the kth layer in the graph neural network of the jth data object.

[0143] Step S3222-3, construct a loss function based on the expression of the distance between each data object and each user, and the corresponding interaction relationship diagram.

[0144] In one embodiment of the present invention, the expression of the second loss function L2 can be expressed as:

[0145] L2=∑ ij (y ij -P ij ) 2

[0146] Among them, y ij is the distance between the i-th target user and the j-th data object; P ij is the data indicating whether the i-th target user and the j-th data object are connected in the corresponding interaction relationship graph. For example, when the i-th target user and the j-th data object are connected in the corresponding interaction relationship graph, P ij It can be 1. When the i-th target user and the j-th data object are not connected in the corresponding interaction relationship graph, P ij Can be 0.

[0147] Step S3222-4, solve the loss function and determine the values ​​of the pending parameters of each graph neural network.

[0148] By solving the loss function, the value of the unknown parameter of each graph neural network is obtained. According to each graph neural network, the value of the hidden layer of the kth layer in the graph neural network of each user and the value of the hidden layer of the kth layer in the graph neural network of each data object can be obtained.

[0149] Furthermore, the value of each user in the last hidden layer of the corresponding graph neural network is used as the first user vector of the corresponding user; the value of each data object in the last hidden layer of the corresponding graph neural network is used as the first object vector of the corresponding data object.

[0150] Specifically, the value of the hidden layer of the kth layer in the graph neural network of the i-th user can be As the first user vector of the i-th user, the value of the hidden layer of the k-th layer in the graph neural network of the j-th data object is The first object vector that is the jth data object.

[0151] In another embodiment of the present invention, determining, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period may further include the following step S3223:

[0152] Step S3223, for each interaction relationship graph, based on the preset first attention mechanism, the weight of each neighbor node corresponding to the node is obtained according to each node and the adjacent nodes in the corresponding interaction relationship graph, and the initial vectors of the corresponding neighbor nodes are linearly weighted summed according to the weight of each neighbor node corresponding to the node to obtain the first vector of the node. Specifically, the first vector of the node corresponding to the user can be used as the first user vector of the corresponding user; the first vector of the node corresponding to the data object can be used as the second object vector of the corresponding data object.

[0153] In an embodiment of the present invention, the initial vector of each node may be a vector of a set dimension that is pre-set according to an application scenario or specific requirements.

[0154] Specifically, in the interaction data graph corresponding to the rth interaction operation in the tth statistical period (where t∈(1,2,…,T)), the initial vector of the i-th node can be expressed as x i , then the first vector of the node can be expressed as:

[0155]

[0156]

[0157] in, It is the linear transformation matrix of the first attention mechanism corresponding to the rth interaction operation. It is the neighbor node in the interaction data graph corresponding to the rth interaction operation of node i in the tth statistical period. r Represents the vector under the first attention mechanism corresponding to the r-th interaction operation in the t-th statistical period.

[0158] Step S3300, respectively aggregate the first user vectors of all interaction operations of each user in each statistical period to obtain the second user vectors corresponding to all users; respectively aggregate the first object vectors of all interaction operations of each data object in each statistical period to obtain the second object vectors corresponding to all data objects.

[0159] The dimension of the first user vector of each user corresponding to each interactive operation in each statistical period is the same.

[0160] In one embodiment of the present invention, a weighted sum or weighted average may be performed on the first user vectors of all interactive operations of each user in each statistical time period, and the calculation result may be used as the second user vector of the corresponding user; a weighted sum or weighted average may be performed on the first object vectors of all interactive operations of each data object in each statistical time period, and the calculation result may be used as the second object vector of the corresponding data object.

[0161] In another embodiment of the present invention, based on a preset second attention mechanism, the first user vectors of all interaction operations of each user in each statistical period are aggregated to obtain a second user vector of the corresponding user; the first object vectors of all interaction operations of each data object in each statistical period are aggregated to obtain a second object vector of the corresponding data object.

[0162] Specifically, for each statistical period, based on the second attention mechanism, the weight of each interaction operation corresponding to the node is obtained according to the first vector of each node, and then the first vectors of all interaction operations corresponding to the node are linearly weighted summed according to the weight to obtain the second vector of the node. Specifically, the second vector of the node corresponding to the user can be used as the second user vector corresponding to the user; the second vector of the node corresponding to the data object can be used as the second object vector corresponding to the data object.

[0163] After getting the first vector of the i-th node Based on this, the second vector of the i-th node can be expressed as:

[0164]

[0165]

[0166] Among them, W2 is the linear transformation matrix of the second attention mechanism, b2 is the bias of the second attention mechanism, and q T is the vector of the first attention mechanism.

[0167] Step S3400, respectively aggregating the second user vectors of each user in all statistical time periods to obtain third user vectors corresponding to all users; respectively aggregating the second object vectors of each data object in all statistical time periods to obtain third object vectors corresponding to all data objects.

[0168] In one embodiment of the present invention, respectively aggregating the second user vectors of each user in all statistical time periods to obtain the third user vector of the corresponding user; respectively aggregating the second object vectors of each data object in all statistical time periods to obtain the third object vector of the corresponding data object may include the following steps S3410 to S3420:

[0169] Step S3410: Merge the second user vectors of each user in all statistical time periods to obtain a user vector matrix, and merge the second object vectors of each data object in all statistical time periods to obtain an object vector matrix.

[0170] When the second vector is a row vector, the second vector of the i-th user in the t-th statistical period (where t∈(1,2,…,T)) is Then, the second user vectors of the i-th user in all statistical periods are merged, and the user vector matrix of the i-th user can be expressed as:

[0171]

[0172] When the second vector is a column vector, the second vector of the i-th user in the t-th statistical period (where t∈(1,2,…,T)) is Then, the second user vectors of the i-th user in all statistical periods are merged, and the user vector matrix of the i-th user can be expressed as:

[0173]

[0174] Step S3420, based on the preset third attention mechanism, obtain the third user vector of the corresponding user according to the user vector matrix of each user; obtain the third object vector of the corresponding data object according to the object vector matrix of each data object.

[0175] After getting the vector matrix of the i-th node as H i Based on this, the third vector of the i-th node can be expressed as:

[0176]

[0177] Q=H i W q

[0178] K=H i W k

[0179] V=H i W v

[0180]

[0181] Among them, W q , W k and W v are the parameters of the third attention mechanism, the dimensions of Q, K, V and M are all D×D′, D is the dimension of the vector (including the first vector, the second vector and the third vector) described in the embodiment of the present invention, m represents the mth row of the matrix M, and n represents the nth column of the matrix M. When m≤n, the element value corresponding to the mth row and nth column of the matrix M is 0, otherwise, the element value corresponding to the mth row and nth column of the matrix M is -∞. Finally, Z is selected iThe Tth row of the matrix serves as the final output vector (the third vector) of the node.

[0182] In another embodiment of the present invention, based on a preset recurrent neural network corresponding to each node, the second vector of the node in all statistical time periods is input into the corresponding recurrent neural network in chronological order, and the hidden layer vector of the recurrent neural network can be used as the third vector of the node. Specifically, the third vector of the node corresponding to the user can be used as the third user vector corresponding to the user, and the third vector of the node corresponding to the data object can be used as the third object vector corresponding to the data object.

[0183] Step S3500 : According to the third object vector of each data object and the third user vector of the target user, a recommended data object that meets a preset recommendation condition is selected from the data objects and recommended to the target user.

[0184] The target user can be any user.

[0185] In one embodiment of the present invention, selecting a recommended data object that meets a preset recommendation condition from the data objects according to the third object vector of each data object and the third user vector of the target user, and recommending the recommended data object to the target user may include the following steps S3510 to S3520:

[0186] Step S3510: Determine the matching degree between each data object and the target user according to the third object vector of each data object and the third user vector of the target user.

[0187] In one embodiment of the present invention, a method of determining the degree of matching between each data object and the target user according to the third object vector of each data object and the third user vector of the target user may include:

[0188] The distance between the third object vector of each data object and the third user vector of the target user is determined respectively as the matching degree between the corresponding data object and the target user.

[0189] In this embodiment, the distance may be a cosine distance, and details may be referred to the aforementioned embodiment, which will not be described again.

[0190] In another embodiment of the present invention, the method of determining the matching degree between each data object and the target user according to the third object vector of each data object and the third user vector of the target user may further include:

[0191] Based on a preset machine learning model, a matching degree between the corresponding data object and the target user is obtained according to the third object vector of each data object and the third user vector of the target user.

[0192] In this embodiment, the machine learning model may be obtained by performing machine learning training based on a sample set based on a preset machine learning algorithm. Each sample in the sample set includes a combination of the user's third user vector and the data object's third object vector, and a corresponding label, which may indicate whether the product is recommended to the user. The machine learning algorithm may be selected in advance based on an application scenario or specific needs.

[0193] Step S3520: According to the matching degree, a recommended data object that meets the preset recommendation condition is selected from the data objects and recommended to the target user.

[0194] In one embodiment of the present invention, selecting a recommended data object that meets a preset recommendation condition from the data objects according to the matching degree may include:

[0195] Select data objects whose matching degree with the target user is within a set range as recommended data objects.

[0196] In another embodiment of the present invention, selecting a recommended data object that meets a preset recommendation condition from the data objects according to the matching degree may include:

[0197] A set number of data objects with the greatest matching degree with the target user are selected as recommended data objects.

[0198] Through the embodiments of the present invention, the third user vector of each user and the third object vector of each data object obtained based on the interaction data of multiple interaction operations in at least one statistical period integrate the time dynamic characteristics and multiple interaction characteristics, so that the third user vector and the third object vector can better reflect the dynamic changes of the corresponding users and data objects. In this way, based on the third user vector of the target user and the third object vector of each data object, the data object that the target user is currently more interested in can be selected more accurately, thereby improving the user experience.

[0199] <Device Example>

[0200] In this embodiment, a data object recommendation device 5000 is provided. Figure 5As shown, it includes a data acquisition module 5100, a vector determination module 5200, a first aggregation module 5300, a second aggregation module 5400 and an object recommendation module 5500. The data acquisition module 5100 is used to acquire the interaction data of at least one user performing at least one interaction operation on a data object in at least one preset statistical period; the vector determination module 5200 is used to determine, according to the interaction data, a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period; the first aggregation module 5300 is used to aggregate the first user vectors corresponding to all interaction operations of each user in each statistical period to obtain the second user vectors corresponding to all users; and the first user vectors corresponding to all interaction operations of each data object in each statistical period are respectively aggregated. The interoperable first object vectors are aggregated to obtain second object vectors corresponding to all data objects; the second aggregation module 5400 is used to aggregate the second user vectors of each user in all statistical time periods to obtain third user vectors corresponding to all users; the second object vectors of each data object in all statistical time periods are aggregated to obtain third object vectors corresponding to all data objects; the object recommendation module 5500 is used to select recommended data objects that meet preset recommendation conditions from the data objects according to the third object vector of each data object and the third user vector of the target user, and recommend them to the target user; wherein the target user is any user.

[0201] In one embodiment of the present invention, the vector determination module 5200 may be used to:

[0202] According to the interaction data corresponding to each interaction operation in each statistical period, an interaction relationship diagram corresponding to each interaction operation in each statistical period is constructed for all users and all data objects;

[0203] According to the interaction relationship diagram corresponding to each interaction operation in each statistical period, a first user vector corresponding to each interaction operation of each user in each statistical period and a first object vector corresponding to each interaction operation of each data object in each statistical period are determined.

[0204] In one embodiment of the present invention, constructing an interaction relationship graph of all users and all data objects corresponding to each interaction operation in each statistical period according to the interaction data corresponding to each interaction operation in each statistical period includes:

[0205] Treat each user and each data object as a node;

[0206] According to the interaction data of each interaction operation in each statistical period, the edges used to connect the nodes are determined to obtain the corresponding interaction relationship graph. Each interaction operation type corresponds to an edge type, so if the user and the data object have multiple interaction operations, they will be constructed into multiple interaction relationship graphs.

[0207] In one embodiment of the present invention, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, determining the first user vector corresponding to each interaction operation of each user in each statistical period and the first object vector corresponding to each interaction operation of each data object in each statistical period includes:

[0208] For each interaction relationship graph, a graph neural network corresponding to each user and each data object is constructed respectively; each graph neural network has the same number of layers, and these networks can be shared by different statistical time periods;

[0209] For each interaction relationship graph, the value of each user in the last hidden layer of the corresponding graph neural network is obtained as the first user vector of the corresponding user; the value of each data object in the last hidden layer of the corresponding graph neural network is obtained as the first object vector of the corresponding data object.

[0210] In one embodiment of the present invention, obtaining the value of each user in the last hidden layer of the corresponding graph neural network as the first user vector of the corresponding user; obtaining the value of each data object in the last hidden layer of the corresponding graph neural network as the first object vector of the corresponding data object includes:

[0211] For each data object and each user, the corresponding last hidden layer expression is constructed using the undetermined parameters of the corresponding graph neural network as variables;

[0212] Constructing an expression of the distance between each data object and each user according to the expression of the last hidden layer of each data object and the expression of the last hidden layer of each user;

[0213] A loss function is constructed based on the expression of the distance between each data object and each user, and the corresponding interaction relationship graph.

[0214] Solve the loss function and determine the value of the unknown parameters of each graph neural network.

[0215] In one embodiment of the present invention, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, determining the first user vector corresponding to each interaction operation of each user in each statistical period and the first object vector corresponding to each interaction operation of each data object in each statistical period includes:

[0216] Based on the preset first attention mechanism, according to the interaction relationship graph corresponding to each interaction operation in each statistical period, the first user vector of each user corresponding to each interaction operation in each statistical period and the first object vector of each data object corresponding to each interaction operation in each statistical period are determined.

[0217] In one embodiment of the present invention, the object recommendation module 5500 may also be used to:

[0218] determining a matching degree between each data object and the target user according to the third object vector of each data object and the third user vector of the target user;

[0219] According to the matching degree, recommended data objects that meet the preset recommendation conditions are selected from the data objects and recommended to the target users.

[0220] In one embodiment of the present invention, determining the matching degree between each data object and the target user according to the third object vector of each data object and the third user vector of the target user includes:

[0221] respectively determining the distance between the third object vector of each data object and the third user vector of the target user as the matching degree between the corresponding data object and the target user; or,

[0222] Based on a preset machine learning model, a matching degree between a corresponding data object and a target user is obtained according to the third object vector of each data object and the third user vector of the target user.

[0223] In one embodiment of the present invention, selecting a recommended data object that meets a preset recommendation condition from the data objects according to the matching degree and recommending it to the target user includes:

[0224] Selecting data objects whose matching degree with the target user is within a set range as recommended data objects; or,

[0225] A set number of data objects with the greatest matching degree with the target user are selected as recommended data objects.

[0226] In one embodiment of the present invention, the first aggregation module 5300 may also be used for:

[0227] Based on the preset second attention mechanism, the first user vectors of all interaction operations of each user in each statistical period are aggregated to obtain the second user vector of the corresponding user; the first object vectors of all interaction operations of each data object in each statistical period are aggregated to obtain the second object vector of the corresponding data object.

[0228] In one embodiment of the present invention, the second aggregation module 5400 may also be used for:

[0229] Merging the second user vectors of each user in all statistical time periods to obtain a user vector matrix, and merging the second object vectors of each data object in all statistical time periods to obtain an object vector matrix;

[0230] Based on the preset third attention mechanism, the third user vector of the corresponding user is obtained according to the user vector matrix of each user; and the third object vector of the corresponding data object is obtained according to the object vector matrix of each data object.

[0231] Those skilled in the art should understand that the data object recommendation device 5000 can be implemented in various ways. For example, the data object recommendation device 5000 can be implemented by configuring the processor through instructions. For example, the instructions can be stored in a ROM, and when the device is started, the instructions are read from the ROM into a programmable device to implement the data object recommendation device 5000. For example, the data object recommendation device 5000 can be fixed into a dedicated device (such as an ASIC). The data object recommendation device 5000 can be divided into independent units, or they can be combined together for implementation. The data object recommendation device 5000 can be implemented by one of the various implementations described above, or can be implemented by a combination of two or more of the various implementations described above.

[0232] In this embodiment, the data object recommendation device 5000 can have multiple implementation forms. For example, the data object recommendation device 5000 can be a functional module running in any software product or application that provides data object recommendation services, or it can be an external embedded component, plug-in, patch, etc. of these software products or applications, or it can also be these software products or applications themselves.

[0233] <Second method embodiment>

[0234] In this embodiment, a recommendation method is provided. The recommendation method may be implemented by an electronic device. The electronic device may be Figure 1a The server 1100 shown or Figure 1b The terminal device 1200 is shown.

[0235] like Figure 6 As shown, the recommendation method of this embodiment may include the following steps S6100 to S6300:

[0236] Step S6100: Obtain interaction data of users performing interaction operations on data objects during a statistical period.

[0237] This step can refer to step S3100 in the aforementioned embodiment and will not be described in detail here.

[0238] Step S6200: determining, based on the interaction data, a user vector representing all interaction operations of the user in all statistical time periods, and an object vector representing all interaction operations of the data object in all statistical time periods.

[0239] The user vector may be the third user vector in the aforementioned embodiment, and the object vector may be the third object vector in the aforementioned embodiment. Then, this step may refer to steps S3200 to S3400 in the aforementioned embodiment, which will not be described in detail here.

[0240] Step S6300: According to the user vector of the target user and the object vector of the data object, the recommended data objects meeting the preset recommendation conditions are screened and recommended to the target user.

[0241] This step may refer to step S3500 in the aforementioned embodiment and will not be described in detail here.

[0242] <Third Method Embodiment>

[0243] In this embodiment, a recommendation method is provided. The recommendation method may be implemented by an electronic device. The electronic device may be Figure 1a The server 1100 shown or Figure 1b The terminal device 1200 is shown.

[0244] like Figure 7 As shown, the recommendation method of this embodiment may include the following steps S7100 to S7500:

[0245] Step S7100: Acquire interaction data of at least one user performing at least one interaction operation on at least one data object within a statistical period.

[0246] This step can refer to step S3100 in the aforementioned embodiment and will not be described in detail here.

[0247] Step S7200: construct an interaction relationship diagram corresponding to each interaction operation of each user and each data object in each statistical period according to the interaction data.

[0248] This step can refer to the aforementioned step S3210 and will not be repeated here.

[0249] Step S7300, based on the graph neural network constructed according to the interaction relationship graph corresponding to each interaction operation in each statistical period, or based on the preset first attention mechanism and the interaction relationship graph, determine the first user vector of each user corresponding to each interaction operation in each statistical period, and the first object vector of each data object corresponding to each interaction operation in each statistical period.

[0250] For an embodiment of determining the first user vector of each user corresponding to each interaction operation in each statistical period and the first object vector of each data object corresponding to each interaction operation in each statistical period based on a graph neural network constructed according to an interaction relationship graph corresponding to each interaction operation in each statistical period, refer to the aforementioned steps S3221 to S3222 and will not be repeated here.

[0251] An embodiment of determining the first user vector of each user corresponding to each interaction operation in each statistical period and the first object vector of each data object corresponding to each interaction operation in each statistical period based on the preset first attention mechanism and the interaction relationship diagram can refer to the aforementioned step S3223 and will not be repeated here.

[0252] Step S7400 : Aggregate the first user vector of each user and the first object vector of each data object to obtain third user vectors corresponding to all users and third object vectors corresponding to all data objects.

[0253] This step may refer to the aforementioned steps S3300 to S3400 and will not be described in detail here.

[0254] Step S7500: According to the user vector of the target user and the third object vector of the data object, the recommended data objects meeting the preset recommendation condition are screened and recommended to the target user.

[0255] This step can refer to the aforementioned step S3500 and will not be repeated here.

[0256] <Fourth Method Embodiment>

[0257] In this embodiment, a recommendation method is provided. The recommendation method may be implemented by an electronic device. The electronic device may be Figure 1a The server 1100 shown or Figure 1b The terminal device 1200 is shown.

[0258] like Figure 8 As shown, the recommendation method of this embodiment may include the following steps S8100 to S8200:

[0259] Step S8100: pre-collecting the user's client-based interaction data on the data object.

[0260] This step can refer to the aforementioned step S3100 and will not be repeated here.

[0261] Step S8200, in response to the target user's access request, obtain the target user's recommended data object according to the interaction data, and add the recommended data object to the page content of the access result so that the recommended data object is displayed in the page of the access result.

[0262] In this embodiment, the method of obtaining the recommended data object of the target user according to the interaction data can refer to the aforementioned steps S3200 to S3500, which will not be described in detail here.

[0263] <Electronic equipment>

[0264] In this embodiment, an electronic device 1000 is also provided. The electronic device 1000 may be Figure 1a The server 1100 shown or Figure 1b The terminal device 1200 is shown.

[0265] In one embodiment of the present invention, Fig. 9 As shown, the electronic device 1000 may also include a processor 1300 and a memory 1400, wherein the memory 1400 is used to store executable instructions; the processor 1300 is used to control the electronic device 1000 to execute the data object recommendation method or recommendation method according to any embodiment of the present invention under the control of the instructions.

[0266] In this embodiment, the electronic device 1000 may be a mobile phone, a tablet computer, a PDA, a desktop computer, a laptop computer, a workstation, a game console, etc. For example, the electronic device 1000 may be a smart phone installed with an application providing a display service.

[0267] <Computer Readable Storage Medium>

[0268] In this embodiment, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the data object recommendation method or recommendation method according to any embodiment of the present invention is implemented.

[0269] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0270] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0271] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0272] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0273] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0274] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0275] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0276] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and a part of a module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0277] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.

Claims

1. A data object recommendation method, include: Acquiring interaction data of at least one user performing at least one interaction operation on at least one data object within at least one preset statistical period; Determine, according to the interaction data, a first user vector of each user corresponding to each interaction operation in each statistical period, and a first object vector of each data object corresponding to each interaction operation in each statistical period; Aggregating first user vectors corresponding to all interactive operations of each user in each statistical period to obtain second user vectors corresponding to all the users; Aggregating first object vectors of all interactive operations corresponding to each of the data objects in each of the statistical time periods to obtain second object vectors corresponding to all of the data objects; Aggregating the second user vectors of each user in all statistical time periods to obtain third user vectors corresponding to all the users; aggregating the second object vectors of each data object in all statistical time periods to obtain third object vectors corresponding to all the data objects; According to the third object vector of each of the data objects and the third user vector of the target user, a recommended data object that meets a preset recommendation condition is selected from the data objects and recommended to the target user; wherein the target user is any user.

2. The method according to claim 1, wherein the first user vector corresponding to each interactive operation of each user in each statistical period and the first object vector corresponding to each interactive operation of each data object in each statistical period are determined according to the interactive data. include: Constructing an interaction relationship graph of all the users and all the data objects corresponding to each interaction operation in each statistical period according to the interaction data corresponding to each interaction operation in each statistical period; According to the interaction relationship diagram corresponding to each interaction operation in each statistical period, a first user vector of each user corresponding to each interaction operation in each statistical period and a first object vector of each data object corresponding to each interaction operation in each statistical period are determined.

3. The method according to claim 2, wherein the interaction relationship graph of all the users and all the data objects corresponding to each interaction operation in each statistical period is constructed according to the interaction data corresponding to each interaction operation in each statistical period. include: Each of the users and each of the data objects is respectively regarded as a node; According to the interaction data of each of the interaction operations in each of the statistical time periods, edges for connecting nodes are determined to obtain a corresponding interaction relationship graph.

4. The method according to claim 2, wherein the first user vector corresponding to each interactive operation of each user in each statistical period and the first object vector corresponding to each interactive operation of each data object in each statistical period are determined according to the interactive relationship diagram corresponding to each interactive operation in each statistical period. include: For each of the interaction relationship graphs, a graph neural network corresponding to each of the users and each of the data objects is constructed respectively; wherein each of the graph neural networks has the same number of layers; For each of the interaction relationship graphs, the value of each of the users in the last hidden layer of the corresponding graph neural network is obtained as the first user vector of the corresponding user; the value of each of the data objects in the last hidden layer of the corresponding graph neural network is obtained as the first object vector of the corresponding data object.

5. The method according to claim 4, wherein the value of each user in the last hidden layer of the corresponding graph neural network is obtained as the first user vector of the corresponding user ; Obtaining the value of each of the data objects in the last hidden layer of the corresponding graph neural network as the first object vector of the corresponding data object includes: For each of the data objects and each of the users, using the undetermined parameters of the corresponding graph neural network as variables, construct an expression of the corresponding last hidden layer; Constructing an expression of the distance between each of the data objects and each of the users according to the expression of the last hidden layer of each of the data objects and the expression of the last hidden layer of each of the users; Constructing a loss function according to an expression of the distance between each of the data objects and each of the users, and a corresponding interaction relationship graph; Solve the loss function and determine the value of each undetermined parameter of the graph neural network.

6. The method according to claim 2, wherein the first user vector corresponding to each interactive operation of each user in each statistical period and the first object vector corresponding to each interactive operation of each data object in each statistical period are determined according to the interactive relationship diagram corresponding to each interactive operation in each statistical period. include: Based on the preset first attention mechanism, according to the interaction relationship graph corresponding to each interaction operation in each statistical time period, the first user vector of each user corresponding to each interaction operation in each statistical time period and the first object vector of each data object corresponding to each interaction operation in each statistical time period are determined.

7. The method according to claim 1, wherein the recommended data objects meeting the preset recommendation conditions are selected from the data objects according to the third object vector of each data object and the third user vector of the target user, and are recommended to the target user include: determining a matching degree between each of the data objects and the target user according to the third object vector of each of the data objects and the third user vector of the target user; According to the matching degree, a recommended data object that meets a preset recommendation condition is selected from the data objects and recommended to the target user.

8. The method according to claim 7, wherein the degree of matching between each of the data objects and the target user is determined based on the third object vector of each of the data objects and the third user vector of the target user. include: respectively determining the distance between the third object vector of each of the data objects and the third user vector of the target user as the matching degree between the corresponding data object and the target user; or, Based on a preset machine learning model, a matching degree between a corresponding data object and the target user is obtained according to the third object vector of each data object and the third user vector of the target user.

9. The method according to claim 7, wherein the recommended data objects that meet the preset recommendation conditions are selected from the data objects according to the matching degree and recommended to the target user include: Selecting a data object whose matching degree with the target user is within a set range as the recommended data object; or, A set number of data objects having the greatest matching degree with the target user are selected as the recommended data objects.

10. The method according to claim 1, wherein the first user vectors of all interactive operations of each user in each statistical period are aggregated to obtain the second user vectors corresponding to all the users. ; Aggregating first object vectors of all interactive operations corresponding to each data object in each statistical period to obtain second object vectors corresponding to all data objects comprises: Based on the preset second attention mechanism, first user vectors corresponding to all interaction operations of each user in each statistical period are aggregated to obtain a second user vector corresponding to the user; The first object vectors of all interaction operations corresponding to each data object in each statistical period are aggregated to obtain a second object vector corresponding to the data object.

11. The method according to claim 1, wherein the second user vectors of each user in all statistical time periods are aggregated to obtain third user vectors corresponding to all the users ; Aggregating the second object vectors of each data object in all statistical time periods to obtain third object vectors corresponding to all the data objects comprises: Merging the second user vectors of each user in all statistical time periods to obtain a user vector matrix, and merging the second object vectors of each data object in all statistical time periods to obtain an object vector matrix; Based on the preset third attention mechanism, the third user vector of the corresponding user is obtained according to the user vector matrix of each of the users; and the third object vector of the corresponding data object is obtained according to the object vector matrix of each of the data objects.

12. A recommendation method, include: Acquire interaction data of at least one user performing at least one interaction operation on at least one data object during a statistical period; Constructing an interaction relationship graph corresponding to each interaction operation between each user and each data object in each statistical time period according to the interaction data; Based on a graph neural network constructed according to an interaction relationship graph corresponding to each interaction operation in each statistical period, or based on a preset first attention mechanism and the interaction relationship graph, determine a first user vector corresponding to each interaction operation of each user in each statistical period, and a first object vector corresponding to each interaction operation of each data object in each statistical period; Aggregating the first user vector of each of the users and the first object vector of each of the data objects respectively to obtain third user vectors corresponding to all users and third object vectors corresponding to all data objects; According to the user vector of the target user and the third object vector of the data object, the recommended data objects meeting the preset recommendation condition are screened and recommended to the target user.

13. A data object recommendation device, include: A data acquisition module, used to acquire interaction data of at least one user performing at least one interaction operation on at least one data object within at least one preset statistical period; A vector determination module, used to determine, based on the interaction data, a first user vector of each user corresponding to each interaction operation in each statistical period, and a first object vector of each data object corresponding to each interaction operation in each statistical period; A first aggregation module, configured to aggregate first user vectors corresponding to all the interactive operations of each user in each statistical period, to obtain second user vectors corresponding to all the users; Aggregating first object vectors of all interactive operations corresponding to each of the data objects in each of the statistical time periods to obtain second object vectors corresponding to all of the data objects; A second aggregation module is used to aggregate the second user vectors of each user in all statistical time periods to obtain third user vectors corresponding to all the users; and to aggregate the second object vectors of each data object in all statistical time periods to obtain third object vectors corresponding to all the data objects; The object recommendation module is used to select a recommended data object that meets a preset recommendation condition from the data objects according to the third object vector of each data object and the third user vector of the target user, and recommend it to the target user; wherein the target user is any user.

14. An electronic device, include: The device according to claim 13; or, A processor and a memory, wherein the memory is used to store instructions, and the instructions are used to control the processor to execute the method according to any one of claims 1 to 12.

15. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 12 when executed by a processor.