Social network anchor chain-based product recommendation method and apparatus, and electronic device

By constructing social network anchor chains in social networks and using a combination of graph representation learning models and neural tensor networks, the problem of low product recommendation accuracy in the existing technology is solved, and more efficient user matching and recommendation results are achieved.

CN118710368APending Publication Date: 2024-09-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410887752.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, product recommendation is based on a combination of simple artificial intelligence algorithms and big data technology, but the accuracy of the recommendation results is low.

Method used

By obtaining the target user's social relationship graph from the social network, inputting it into the graph representation learning model to output the embedding vector, and combining it with the neural tensor network to build a social network anchor chain, and make product recommendations based on user similarity.

Benefits of technology

It improves the accuracy of product recommendations and provides accurate product recommendation services by better expressing user characteristics and utilizing user embedding vector relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710368A
    Figure CN118710368A
Patent Text Reader

Abstract

The invention discloses a product recommendation method and device based on a social network anchor chain and electronic equipment, and relates to the field of artificial intelligence, the field of financial science and technology or other related technical fields, and the method comprises the steps: obtaining a social relation graph of a target user from a social network; inputting the social relation graph of the target user into a graph representation learning model, and outputting embedding vectors of the target user and a non-target user based on an aggregation mechanism to obtain a target embedding vector and a non-target embedding vector; inputting the target embedding vector and the non-target embedding vector into a neural tensor network, and outputting the similarity between the target user and the non-target user; and constructing a social network anchor chain based on the similarity between the target user and the non-target user, and carrying out product recommendation on the non-target user on the social network anchor chain. According to the method and the device, the technical problem of relatively low recommendation result accuracy of a product recommendation mode based on the combination of a simple artificial intelligence algorithm and a big data technology in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, financial technology or other related technical fields, and in particular to a product recommendation method and device based on a social network anchor chain, and an electronic device. Background Art

[0002] At present, with the rapid development of Internet technology, it has brought great changes to the lives of Internet users. As one of the important products of the Internet era, the emergence of online social networks has subverted the traditional way of social interaction and attracted a large number of users. Nowadays, social networks have been integrated into people's daily lives. A large number of user groups have brought a large amount of user data. These user data are extremely valuable data resources and contain a lot of information.

[0003] In the related technology, the user's social network information is mined through manual methods or a combination of artificial intelligence and big data technology to obtain other users related to the target user, and consumers are more comprehensively understood based on the correlation between users, so as to provide personalized recommendation services for related users. The method of mining social relationships based on simple artificial intelligence algorithms and big data technology and making personalized recommendations based on social relationships has a low accuracy rate in recommendation results.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a product recommendation method and device based on a social network anchor chain, and an electronic device, so as to at least solve the technical problem in the related art that the accuracy of the recommendation results is low in the method of recommending products based on a combination of a simple artificial intelligence algorithm and big data technology.

[0006] According to one aspect of an embodiment of the present invention, a product recommendation method based on a social network anchor chain is provided, comprising: obtaining a social relationship graph of a target user from a social network; inputting the social relationship graph of the target user into a graph representation learning model, and outputting embedding vectors of the target user and non-target users based on an aggregation mechanism of the graph representation learning model to obtain a target embedding vector and a non-target embedding vector; inputting the target embedding vector and the non-target embedding vector into a neural tensor network, and outputting the similarity between the target user and the non-target users; constructing a social network anchor chain based on the similarity between the target user and all the non-target users in the social relationship graph, and recommending products for the non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

[0007] Optionally, before obtaining the social relationship graph of the target user from the social network, the method further includes: collecting user information from multiple social networks to obtain a user information set; and constructing a social relationship network between users based on the user information set.

[0008] Optionally, the step of obtaining a social relationship graph of a target user from a social network includes: traversing all user nodes in the social relationship network based on a user identifier of the target user to obtain a target node where the target user is located; taking the target node as an observation point, obtaining a first type of node that is in the same social network as the target node; deriving a second type of node that is in the same social network as the first type of node based on the first type of node; deriving a third type of node that is in the same social network as the second type of node based on the second type of node; and obtaining the social relationship graph of the target user based on the first type of node, the second type of node, and the third type of node.

[0009] Optionally, the graph representation learning model includes two parts: a graph attention network and a hypergraph convolutional network. The step of outputting the embedding vector of the target user based on the aggregation mechanism of the graph representation learning model includes: the graph attention network outputs a first embedding vector of the target user based on the social relationship graph; the hypergraph convolutional network outputs a second embedding vector of the target user based on the social relationship graph; and the first embedding vector and the second embedding vector are aggregated and calculated based on the aggregation mechanism to obtain the embedding vector of the target user.

[0010] Optionally, the first embedding vector and the second embedding vector are aggregated based on the aggregation mechanism to obtain the embedding vector of the target user, including: obtaining the weight vector of the first embedding vector to obtain a first weight vector, and obtaining the weight matrix of the first embedding vector to obtain a first weight matrix; obtaining the weight vector of the second embedding vector to obtain a second weight vector, and obtaining the weight matrix of the second embedding vector to obtain a second weight matrix; calculating the first coefficient corresponding to the first embedding vector based on the first weight vector and the first weight matrix; calculating the second coefficient corresponding to the second embedding vector based on the second weight vector and the second weight matrix; performing aggregation calculation based on the first coefficient, the first embedding vector, the second coefficient and the second embedding vector to obtain the embedding vector of the target user.

[0011] Optionally, the step of recommending products to the non-target users on the social network anchor chain includes: obtaining user information of all the non-target users on the social network anchor chain; obtaining information on financial products purchased by the target users, and obtaining relevant product information corresponding to products related to the target users; and pushing the relevant product information to all the non-target users on the social network anchor chain based on the user information.

[0012] Optionally, the graph representation learning model is a pre-built model based on a graph output vector, and the steps of constructing the graph representation learning model include: obtaining a set of historical social relationship networks within a historical time period, and creating a historical social relationship graph based on a target historical user corresponding to any node in the historical social relationship network in the set of historical social relationship networks; inputting the historical social relationship graph into the initial graph representation learning model, outputting the embedding vectors of the target historical user and the non-target historical user in the historical social relationship graph, and obtaining a historical target embedding vector and a historical non-target embedding vector; calculating the connection strength between the target historical user and the non-target historical user based on the historical target embedding vector and the historical non-target embedding vector; calculating the loss function of the initial graph representation learning model based on the connection strength and negative sampling technology; iteratively training the initial graph representation learning model based on the loss function until the number of iterative training reaches a preset number threshold, terminating the iterative training, and obtaining the trained graph representation learning model.

[0013] According to another aspect of an embodiment of the present invention, a product recommendation device based on a social network anchor chain is also provided, including: an acquisition unit, used to acquire a social relationship graph of a target user from a social network; a first output unit, used to input the social relationship graph of the target user into a graph representation learning model, and output the embedding vectors of the target user and non-target users based on the aggregation mechanism of the graph representation learning model to obtain a target embedding vector and a non-target embedding vector; a second output unit, used to input the target embedding vector and the non-target embedding vector into a neural tensor network, and output the similarity between the target user and the non-target users; a recommendation unit, used to construct a social network anchor chain based on the similarity between the target user and all the non-target users in the social relationship graph, and make product recommendations for the non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

[0014] Optionally, the product recommendation device based on social network anchor chain also includes: a first collection module, used to collect user information from multiple social networks to obtain a user information set; a first construction module, used to construct a social relationship network between users based on the user information set.

[0015] Optionally, the acquisition unit includes: a first traversal module, used to traverse all user nodes in the social relationship network based on the user identifier of the target user to obtain the target node where the target user is located; a first acquisition module, used to take the target node as an observation point to acquire a first type of node in the same social network as the target node; a first derivation module, used to derive a second type of node in the same social network as the first type of node based on the first type of node; a second derivation module, used to derive a third type of node in the same social network as the second type of node based on the second type of node; and a second acquisition module, used to acquire the social relationship graph of the target user based on the first type of node, the second type of node and the third type of node.

[0016] Optionally, the graph representation learning model includes two parts: a graph attention network and a hypergraph convolutional network, and the output unit includes: a first output module, used by the graph attention network to output a first embedding vector of the target user based on the social relationship graph; a second output module, used by the hypergraph convolutional network to output a second embedding vector of the target user based on the social relationship graph; a first calculation module, used to perform aggregation calculation on the first embedding vector and the second embedding vector based on the aggregation mechanism to obtain the embedding vector of the target user.

[0017] Optionally, the first calculation module includes: a first acquisition submodule, used to acquire the weight vector of the first embedding vector to obtain the first weight vector, and acquire the weight matrix of the first embedding vector to obtain the first weight matrix; a second acquisition submodule, used to acquire the weight vector of the second embedding vector to obtain the second weight vector, and acquire the weight matrix of the second embedding vector to obtain the second weight matrix; a first calculation submodule, used to calculate the first coefficient corresponding to the first embedding vector based on the first weight vector and the first weight matrix; a second calculation submodule, used to calculate the second coefficient corresponding to the second embedding vector based on the second weight vector and the second weight matrix; a third calculation submodule, used to perform aggregation calculation based on the first coefficient, the first embedding vector, the second coefficient and the second embedding vector to obtain the embedding vector of the target user.

[0018] Optionally, the recommendation unit includes: a third acquisition module, used to acquire user information of all the non-target users on the social network anchor chain; a fourth acquisition module, used to acquire information of financial products purchased by the target user, and obtain relevant product information corresponding to the products related to the target user; and a first push module, used to push the relevant product information to all the non-target users on the social network anchor chain based on the user information.

[0019] Optionally, the graph representation learning model is a pre-built model based on a graph output vector, and the product recommendation device based on the social network anchor chain also includes: a fifth acquisition module, which is used to obtain a set of historical social relationship networks within a historical time period, and create a historical social relationship graph based on a target historical user corresponding to any node in the historical social relationship network in the set of historical social relationship networks; a third output module, which is used to input the historical social relationship graph into the initial graph representation learning model, output the embedding vectors of the target historical user and the non-target historical user in the historical social relationship graph, and obtain a historical target embedding vector and a historical non-target embedding vector; a second calculation module, which is used to calculate the connection strength between the target historical user and the non-target historical user based on the historical target embedding vector and the historical non-target embedding vector; a third calculation module, which is used to calculate the loss function of the initial graph representation learning model based on the connection strength and negative sampling technology; a first training module, which is used to iteratively train the initial graph representation learning model based on the loss function until the number of iterative training reaches a preset number threshold, terminate the iterative training, and obtain the trained graph representation learning model.

[0020] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned product recommendation methods based on social network anchor links.

[0021] According to another aspect of an embodiment of the present invention, a computer program product is further provided, the computer program product comprising a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned product recommendation methods based on social network anchor links is implemented.

[0022] In the present application, the following steps are performed: first, a social relationship graph of a target user is obtained from a social network; then, the social relationship graph of the target user is input into a graph representation learning model; based on the aggregation mechanism of the graph representation learning model, embedding vectors of the target user and non-target users are output to obtain target embedding vectors and non-target embedding vectors; then, the target embedding vectors and non-target embedding vectors are input into a neural tensor network to output the similarity between the target user and non-target users; finally, a social network anchor chain is constructed based on the similarity between the target user and all non-target users in the social relationship graph; and product recommendations are made for non-target users on the social network anchor chain.

[0023] In this application, a social relationship graph of a target user is obtained based on multiple social networks, and the social relationship graph is learned through a graph representation learning model and a neural tensor model, and the social network anchor chain of the target user is mined, thereby providing product recommendation services for related users to improve efficiency. The graph representation learning model adopts an aggregation mechanism to output an embedding vector that can better express user characteristics. The user matching algorithm of the neural tensor network makes full use of the information contained in the embedding vector, outputs the similarity between users, and constructs a social network anchor chain based on the similarity between users. Based on the social network anchor chain, accurate product recommendation services are provided, and the accuracy of the recommendation results is improved, thereby solving the technical problem of low accuracy of recommendation results in the related technology based on the combination of simple artificial intelligence algorithms and big data technologies for product recommendation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0025] Figure 1 is a flowchart of an optional product recommendation method based on social network anchor links according to an embodiment of the present invention;

[0026] Figure 2 is an architecture diagram of an optional graph representation learning model and a neural tensor network according to an embodiment of the present invention;

[0027] Figure 3 is a schematic diagram of an optional product recommendation device based on a social network anchor chain according to an embodiment of the present invention;

[0028] Figure 4 It is a hardware structure block diagram of an electronic device (or mobile device) according to a product recommendation method based on a social network anchor link according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] It should be noted that the product recommendation method and device based on social network anchor chains in the present application can be used in the field of artificial intelligence when product recommendations are made to related users corresponding to target users based on social network anchor chains, and can also be used in any field other than the field of artificial intelligence when product recommendations are made to related users corresponding to target users based on social network anchor chains. The application does not limit the application field of the method and device based on social network anchor chains.

[0032] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0033] It should be noted that in this application, when collecting and analyzing customer information, corresponding operation entrances are provided for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.

[0034] The following embodiments of the present invention can be applied to various product recommendation systems / applications / devices. The present invention uses a graph representation learning method based on a vector aggregation mechanism to aggregate the user embedding vectors output by the graph attention network and the hypergraph convolutional network into an embedding vector that can better express user characteristics. At the same time, the user matching algorithm of the neural tensor network is adopted to better model the relationship between the embedding vectors of users in different social networks, make full use of the relationship contained in the user embedding vector, establish a social network anchor chain for the target user, and mine related users with high similarity to the target user, thereby making product recommendations for the related users and improving the accuracy of the recommendation results.

[0035] The present invention is described in detail below in conjunction with various embodiments.

[0036] Embodiment 1

[0037] According to an embodiment of the present invention, an embodiment of a product recommendation method based on a social network anchor link is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] Figure 1 is a flowchart of an optional product recommendation method based on social network anchor links according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0039] Step S101, obtaining a social relationship graph of a target user from a social network;

[0040] Step S102, inputting the social relationship graph of the target user into the graph representation learning model, outputting the embedding vectors of the target user and the non-target users based on the aggregation mechanism of the graph representation learning model, and obtaining the target embedding vector and the non-target embedding vector;

[0041] Step S103, inputting the target embedding vector and the non-target embedding vector into the neural tensor network, and outputting the similarity between the target user and the non-target user;

[0042] Step S104, building a social network anchor chain based on the similarity between the target user and all non-target users in the social relationship graph, and making product recommendations for the non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

[0043] Through the above steps, the social relationship graph of the target user is first obtained from the social network, and then the social relationship graph of the target user is input into the graph representation learning model. The embedding vectors of the target user and the non-target user are output based on the aggregation mechanism of the graph representation learning model to obtain the target embedding vector and the non-target embedding vector. The target embedding vector and the non-target embedding vector are then input into the neural tensor network to output the similarity between the target user and the non-target user. Finally, a social network anchor chain is constructed based on the similarity between the target user and all non-target users in the social relationship graph, and product recommendations are made for the non-target users on the social network anchor chain.

[0044] In this embodiment, a social relationship graph of a target user is obtained based on multiple social networks, and the social relationship graph is learned through a graph representation learning model and a neural tensor model, and the social network anchor chain of the target user is mined, thereby providing product recommendation services for related users to improve efficiency. The graph representation learning model adopts an aggregation mechanism to output an embedding vector that can better express user characteristics. The user matching algorithm of the neural tensor network makes full use of the information contained in the embedding vector, outputs the similarity between users, and constructs a social network anchor chain based on the similarity between users. Based on the social network anchor chain, accurate product recommendation services are provided, and the accuracy of recommendation results is improved, thereby solving the technical problem of low accuracy of recommendation results in related technologies based on a method of combining simple artificial intelligence algorithms with big data technologies to perform product recommendations.

[0045] The embodiment of the present invention is described in detail below in combination with the above steps.

[0046] It should be noted that as Internet technology gradually penetrates into users' daily lives, various social networking platforms have sprung up. Social networks contain complex social relationships between users. Based on the information contained in social networks, the correlation between users can be mined, and product recommendations can be made for similar users based on the correlation between users, thereby increasing product exposure and user satisfaction, and achieving a win-win situation for enterprises and users.

[0047] The embodiments of the present invention are applied to product recommendation scenarios, such as financial products, medical products, etc. Based on the hidden information in the social network of the target user, a social network anchor chain is constructed to determine the user group similar to the target user, and the products purchased by the target user are recommended to other users in the social network anchor chain of the target user. In addition, the embodiments of the present invention can also be used in scenarios such as short video recommendation and news recommendation.

[0048] Optionally, before obtaining the social relationship graph of the target user from the social network, the method further includes: collecting user information from multiple social networks to obtain a user information set; and constructing a social relationship network between users based on the user information set.

[0049] It should be noted that the social relationship graph is obtained by extracting information from multiple social networks of the target user. Based on the current mainstream social networks, such as shopping platforms and various social software, user information from multiple social networks is collected to obtain a user information set. Then, based on the user information set, social network relationships between users are constructed to connect users across social networks. For example, user No. 1 is in social network A and also exists in social network B. Social network A and social network B are connected through user information of user No. 1 in social network A and social network B to obtain a social relationship network across social networks. The social relationship network is updated regularly to ensure that the information in the social relationship network is valid. Each node in the social relationship network represents a user, and each user in the social relationship network has its own user ID.

[0050] Step S101, obtaining a social relationship graph of a target user from a social network.

[0051] When building a social network anchor chain and making product recommendations, the target user to be observed is first determined. For example, the target user may be a user who has purchased financial products at a target financial institution. Then, the node where the target user is located is obtained from a large social relationship network, thereby obtaining the target user's social relationship graph. The target user's social relationship graph includes the target user's related users across social networks and user information of each user.

[0052] Optionally, the step of obtaining a social relationship graph of a target user from a social network includes: traversing all user nodes in the social relationship network based on a user identifier of the target user to obtain a target node where the target user is located; taking the target node as an observation point, obtaining a first-type node in the same social network as the target node; deriving a second-type node in the same social network as the first-type node based on the first-type node; deriving a third-type node in the same social network as the second-type node based on the second-type node; and obtaining the social relationship graph of the target user based on the first-type node, the second-type node, and the third-type node.

[0053] Specifically, when obtaining the social relationship graph of the target user, firstly, all user nodes in the social relationship network are traversed according to the user identifier of the target user, the target node corresponding to the target user is determined, and the target node is used as an observation point to obtain the first type of node in the same social network as the target node, and then the first type of node is derived to obtain the second type of node in the same social network as the first type of node, and the third type of node in the same social network as the second type of node is obtained, so as to deeply mine the social relationship of the target user and obtain users who have direct social relationships and indirect social relationships with the target user, thereby screening out most of the irrelevant users, saving subsequent computing time and improving subsequent computing efficiency. This embodiment lists the first type of nodes, the second type of nodes and the third type of nodes, and in fact, it can be deduced by analogy until all user nodes in the social relationship network are traversed, the Nth type of nodes are obtained, and the social relationship graph of the target user is constructed based on the obtained N type of nodes.

[0054] Step S102: input the social relationship graph of the target user into the graph representation learning model, output the embedding vectors of the target user and the non-target users based on the aggregation mechanism of the graph representation learning model, and obtain the target embedding vector and the non-target embedding vector.

[0055] It should be noted that the embodiment of the present invention uses a graph representation learning model to perform a preliminary analysis on the social relationship graph of the target user, and outputs an embedding vector representing the user's characteristics based on the aggregation mechanism of the graph representation learning model.

[0056] It should be noted that the graph representation learning model adopts an architecture that includes an encoder and a decoder, uses the graph attention network and the hypergraph convolutional network as the basic units of the graph representation learning model, and proposes a vector aggregation mechanism to improve the performance of the algorithm in the embedding stage.

[0057] Optionally, the graph representation learning model is a pre-built model based on a graph output vector, and the steps of constructing the graph representation learning model include: obtaining a set of historical social relationship networks within a historical time period, and creating a historical social relationship graph based on a target historical user corresponding to any node in the historical social relationship network in the set of historical social relationship networks; inputting the historical social relationship graph into the initial graph representation learning model, outputting the embedding vectors of the target historical users and non-target historical users in the historical social relationship graph, and obtaining a historical target embedding vector and a historical non-target embedding vector; calculating the connection strength between the target historical users and non-target historical users based on the historical target embedding vector and the historical non-target embedding vector; calculating the loss function of the initial graph representation learning model based on the connection strength and negative sampling technology; iteratively training the initial graph representation learning model based on the loss function until the number of iterative training reaches a preset threshold number, terminating the iterative training, and obtaining a trained graph representation learning model.

[0058] In this embodiment, the graph representation learning model adopts an encoder-decoder architecture, which is divided into an encoding stage and a decoding stage during the training and use process. When constructing the graph representation learning model, the encoding stage first obtains the historical social relationship network set within the historical time period, and based on any node in the historical social relationship network set as the target historical node of the target historical user, constructs the historical social relationship graph of the target historical user, and inputs the historical social relationship graph of the historical target user into the initial graph representation learning model, outputs the user's embedding vector, and in the decoding stage, the decoder calculates the connection strength between the two users (target user and non-target user) based on the output embedding vector. In order to reduce the complexity of the loss function calculation and improve the training speed, the loss function of the graph representation learning model adopts negative sampling technology, calculates the loss function of the model through the connection strength, and iterative training is performed based on the loss function to continuously optimize the model.

[0059] Optionally, the graph representation learning model includes two parts: a graph attention network and a hypergraph convolutional network. The step of outputting the embedding vector of the target user based on the aggregation mechanism of the graph representation learning model includes: the graph attention network outputs a first embedding vector of the target user based on the social relationship graph; the hypergraph convolutional network outputs a second embedding vector of the target user based on the social relationship graph; and the first embedding vector and the second embedding vector are aggregated based on the aggregation mechanism to obtain the embedding vector of the target user.

[0060] It should be noted that in the embedding stage, the graph representation learning model includes two parts: a graph attention network and a hypergraph convolutional network. Both the graph attention network and the hypergraph convolutional network can convert high-dimensional discrete data (such as words, sentences, texts, and images) into low-dimensional continuous vectors. The graph attention network and the hypergraph convolutional network respectively learn the user's social relationship graph. The graph attention network outputs the first embedding vector of the target user, and the hypergraph convolutional network outputs the second embedding vector of the target user. Then, based on the aggregation mechanism of the graph representation learning model, the first embedding vector and the second embedding vector are aggregated to become an embedding vector that can better express user characteristics, thereby improving the calculation accuracy of the subsequent matching stage.

[0061] Optionally, the first embedding vector and the second embedding vector are aggregated based on the aggregation mechanism to obtain the embedding vector of the target user, including the following steps: obtaining the weight vector of the first embedding vector to obtain the first weight vector, and obtaining the weight matrix of the first embedding vector to obtain the first weight matrix; obtaining the weight vector of the second embedding vector to obtain the second weight vector, and obtaining the weight matrix of the second embedding vector to obtain the second weight matrix; calculating the first coefficient corresponding to the first embedding vector based on the first weight vector and the first weight matrix; calculating the second coefficient corresponding to the second embedding vector based on the second weight vector and the second weight matrix; performing aggregation calculation based on the first coefficient, the first embedding vector, the second coefficient, and the second embedding vector to obtain the embedding vector of the target user.

[0062] It should be noted that when performing aggregation calculations, the first coefficient of the first embedding vector can be calculated through the weight vector and weight matrix of the first embedding vector. Similarly, the second coefficient of the second embedding vector can be calculated based on the weight vector and weight matrix of the second embedding vector. The weight vector and weight matrix are shared by all user nodes in the social network. Aggregation calculations are performed based on the first coefficient, the first embedding vector, the second coefficient, and the second embedding vector to obtain the aggregated embedding vector.

[0063] Step S103: input the target embedding vector and the non-target embedding vector into the neural tensor network, and output the similarity between the target user and the non-target user.

[0064] In the user matching stage, this embodiment uses a neural tensor network to model the relationship between the embedded vectors of every two users in a social network, so that the similarity between the target user and the non-target user can be calculated through the neural tensor network, and the similarity between the two users can be obtained. For non-target users with greater similarity, they are included in the social network anchor chain of the target user.

[0065] Step S104: construct a social network anchor chain based on the similarity between the target user and all non-target users in the social relationship graph, and make product recommendations for the non-target users on the social network anchor chain.

[0066] It should be noted that after outputting the similarity between the target user and other non-target users, the non-target users are screened based on the size of the similarity value, and the non-target users with similarity values ​​higher than the preset threshold are extracted as users with high similarity to the target user, and a social network anchor chain of the target user is constructed. The social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user, and may include multiple user nodes, each user node corresponding to a user, and record the social relationship and similarity between each user.

[0067] Optionally, the step of recommending products to non-target users on the social network anchor chain includes: obtaining user information of all non-target users on the social network anchor chain; obtaining information on financial products purchased by target users, and obtaining relevant product information corresponding to products related to the target users; and pushing the relevant product information to all non-target users on the social network anchor chain based on the user information.

[0068] It should be noted that after the social network anchor chain of the target user is constructed, the products that the target user has purchased or is interested in are pushed to all users on the social network anchor chain based on users similar to the target user recorded in the social network.

[0069] Another optional specific implementation is described in detail below.

[0070] Figure 2 is an optional diagram of the architecture of a graph representation learning model and a neural tensor network according to an embodiment of the present invention, such as Figure 2 As shown, when constructing the graph representation learning model and the neural tensor network, it includes an embedding stage and a matching stage. The embedding stage outputs an embedding vector based on the graph representation learning model, and the output embedding vector can be used as the input of the neural tensor network in the user matching stage.

[0071] Specifically, in the embedding stage, an encoder-decoder architecture is used, graph attention network and hypergraph convolutional network are used as the basic units of graph representation learning, and a vector aggregation mechanism is proposed to improve the performance of the embedding stage algorithm.

[0072] Collect user information from multiple social networks, build a social relationship network, and for any user node in the social relationship network, build a social relationship graph corresponding to the user node ( Figure 2 The social relationship graph G composed of A, B, C, D, and E i and the social relationship graph G consisting of a, b, c, d, e, and f j ), the user's social relationship graph G i and G j Input to the encoder, the graph attention network and hypergraph convolution network in the encoder respectively output the embedding vector x (corresponding to the first embedding vector, Figure 2 In x i and x j ) and y (corresponding to the second embedding vector, Figure 2 In Chinese i and j ), and use the vector aggregation mechanism to aggregate the two into z i ( Figure 2 China i and z iAs a schematic diagram, the formula of any aggregated embedding vector is as follows:

[0073] z i =a x x i +a y y i

[0074] Among them, a x and a y is the coefficient corresponding to the aggregated vector (i.e. the first coefficient and the second coefficient mentioned above), and its calculation formula is as follows:

[0075]

[0076] Among them, e x and e y The intermediate coefficients of the calculation coefficients, namely the first intermediate coefficient and the second intermediate coefficient, are calculated as follows:

[0077]

[0078] Among them, and is the transpose of the first weight vector, is the transpose of the second weight vector, W x is the first weight matrix, W y is the second weight matrix, σ(·||·) is the connection operator, and the weight vector and weight matrix are shared by all user nodes in the social network.

[0079] In the decoding stage, for any user node u in the social relationship network i and the embedding vector z of uj i With z j , the decoder calculates s ij Represents user node u i with u j The connection strength between them, the decoder is defined as follows:

[0080] s ij =DEC(z i ,z j )=ReLU(cos <z i ,z j >)

[0081] Among them, DEC is the connection function, ReLU is the activation function, cos <z i ,z j > represents the angle between two embedding vectors.

[0082] In order to reduce the complexity of loss function calculation and improve training speed, this embodiment uses negative sampling technology in the loss function of the embedding stage. The calculation formula of the loss function is as follows:

[0083]

[0084] Where K is the negative sample u n The number of negative samples u n The probability distribution of the sampling is d j is the user node u j degree; s ij Represents user u i and user u j The connection strength between ij is the value in the i-th row and j-th column of the adjacency matrix of the social network, indicating whether there is a link from u i Point to u j The edge, s ij Represents user u i and user u in the negative sample n The connection strength between in Indicates that from u i Point to u n The side, N i is the user node u in the social relationship network i The corresponding first type of node set, M is a normalization constant, and the calculation formula of M is as follows:

[0085]

[0086] Among them, |U| represents the number of all user nodes in the social relationship graph.

[0087] Therefore, the graph representation learning model can be iteratively trained based on the loss function to obtain a trained graph representation learning model.

[0088] In the matching stage, this embodiment introduces a neural tensor network to transform the anchor link prediction problem of social networks into a binary classification problem. The neural tensor network can model the relationship between the embedding vectors of user nodes in different social networks. The related art uses simple similarity calculation methods such as cosine similarity and Euclidean distance. Compared with traditional methods, the neural tensor network can model more complex entity relationships, so it can better model the relationship between the embedding vectors of two social network users and improve the accuracy of correlation prediction.

[0089] Specifically, for any pair of user nodes (u i ,u j ) and its embedding vector z obtained after the embedding stage i and zi , the calculation formula of the core part of the neural tensor network is as follows:

[0090]

[0091] Where h is the output of the neural tensor network, f(·) represents a nonlinear activation function, Denotes the embedding vector z i The transpose of is a tensor containing K tensor slices, V R and b R are neural network parameters.

[0092] like Figure 2 As shown in the figure, the core part of the neural tensor network is operated by a nonlinear activation function, and the embedding vector z obtained by aggregating the user nodes is i The transpose and embedding vector z i And each slice of the tensor is calculated to get a vector, and then the embedding vector z i and the embedding vector z i After concatenation and neural network parameters V R Perform the operation and finally add the neural network parameter b to get the output h of the neural tensor network.

[0093] In this embodiment, the output h of the neural tensor network is input into the multi-layer perceptron classifier, and the multi-layer perceptron classifier outputs the user node u i with u j is the probability p of the same user, thus obtaining the user node u i with u j The similarity of Figure 2 The predicted label is used as an illustration) and the user node u is obtained i with u j Corresponding to the user's true label g, where

[0094]

[0095] Based on this, the loss function of the matching phase algorithm can be constructed using cross entropy as follows:

[0096]

[0097] Among them, T is the training set, p is the user node u i with u j is the probability of being the same user.

[0098] The neural tensor network is iteratively trained based on the loss function to obtain the final neural tensor network.

[0099] The embodiment of the present invention is based on a graph representation learning method with a vector aggregation mechanism, which aggregates the user embedding vectors output by the graph attention network and the hypergraph convolutional network into an embedding vector that can better express user characteristics. At the same time, the user matching algorithm of the neural tensor network is adopted to better model the relationship between the embedding vectors of users of different social networks, make full use of the relationship contained in the user embedding vectors, establish a social network anchor chain for the target user, and mine related users with a high similarity to the target user, thereby making product recommendations for the related users and improving the accuracy of the recommendation results.

[0100] The following is a detailed description in conjunction with another embodiment.

[0101] Embodiment 2

[0102] A product recommendation device based on a social network anchor chain provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above-mentioned embodiment 1.

[0103] Figure 3 is a schematic diagram of an optional product recommendation device based on a social network anchor chain according to an embodiment of the present invention. Figure 3 As shown, the product recommendation device based on the social network anchor chain may include: an acquisition unit 31, a first output unit 32, a second output unit 33, and a recommendation unit 34, wherein:

[0104] An acquisition unit 31 is used to acquire a social relationship graph of a target user from a social network;

[0105] A first output unit 32, configured to input the social relationship graph of the target user into the graph representation learning model, and output the embedding vectors of the target user and the non-target user based on the aggregation mechanism of the graph representation learning model to obtain the target embedding vector and the non-target embedding vector;

[0106] A second output unit 33, used to input the target embedding vector and the non-target embedding vector into the neural tensor network, and output the similarity between the target user and the non-target user;

[0107] The recommendation unit 34 is used to build a social network anchor chain based on the similarity between the target user and all non-target users in the social relationship graph, and recommend products to the non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

[0108] The above-mentioned product recommendation device based on social network anchor chain obtains the social relationship graph of the target user from the social network through the acquisition unit 31; inputs the social relationship graph of the target user into the graph representation learning model through the first output unit 3, and outputs the embedding vectors of the target user and the non-target user based on the aggregation mechanism of the graph representation learning model to obtain the target embedding vector and the non-target embedding vector; inputs the target embedding vector and the non-target embedding vector into the neural tensor network through the second output unit 33, and outputs the similarity between the target user and the non-target user; constructs the social network anchor chain based on the similarity between the target user and all non-target users in the social relationship graph through the recommendation unit 34, and recommends products for the non-target users on the social network anchor chain.

[0109] In this embodiment, a social relationship graph of a target user is obtained based on multiple social networks, and the social relationship graph is learned through a graph representation learning model and a neural tensor model to mine the social network anchor chain of the target user, thereby providing product recommendation services for related users to improve efficiency. The graph representation learning model uses an aggregation mechanism to output an embedding vector that can better express user characteristics. The user matching algorithm of the neural tensor network makes full use of the information contained in the embedding vector, outputs the similarity between users, and constructs a social network anchor chain based on the similarity between users. Based on the social network anchor chain, accurate product recommendation services are provided to improve the accuracy of recommendation results, thereby solving the technical problem of low accuracy of recommendation results in related technologies based on a method of combining simple artificial intelligence algorithms with big data technologies to perform product recommendations.

[0110] Optionally, the product recommendation device based on the social network anchor chain also includes: a first collection module, used to collect user information from multiple social networks to obtain a user information set; a first construction module, used to construct a social relationship network between users based on the user information set.

[0111] Optionally, the acquisition unit includes: a first traversal module, used to traverse all user nodes in the social relationship network based on the user identifier of the target user to obtain the target node where the target user is located; a first acquisition module, used to take the target node as an observation point to acquire a first type of node in the same social network as the target node; a first derivation module, used to derive a second type of node in the same social network as the first type of node based on the first type of node; a second derivation module, used to derive a third type of node in the same social network as the second type of node based on the second type of node; and a second acquisition module, used to acquire the social relationship graph of the target user based on the first type of node, the second type of node and the third type of node.

[0112] Optionally, the graph representation learning model includes two parts: a graph attention network and a hypergraph convolutional network, and the output unit includes: a first output module, which is used to output a first embedding vector of the target user based on the social relationship graph by the graph attention network; a second output module, which is used to output a second embedding vector of the target user based on the social relationship graph by the hypergraph convolutional network; and a first calculation module, which is used to perform aggregation calculation on the first embedding vector and the second embedding vector based on an aggregation mechanism to obtain the embedding vector of the target user.

[0113] Optionally, the first calculation module includes: a first acquisition submodule, used to acquire the weight vector of the first embedding vector to obtain the first weight vector, and acquire the weight matrix of the first embedding vector to obtain the first weight matrix; a second acquisition submodule, used to acquire the weight vector of the second embedding vector to obtain the second weight vector, and acquire the weight matrix of the second embedding vector to obtain the second weight matrix; a first calculation submodule, used to calculate the first coefficient corresponding to the first embedding vector based on the first weight vector and the first weight matrix; a second calculation submodule, used to calculate the second coefficient corresponding to the second embedding vector based on the second weight vector and the second weight matrix; a third calculation submodule, used to perform aggregation calculation based on the first coefficient, the first embedding vector, the second coefficient and the second embedding vector to obtain the embedding vector of the target user.

[0114] Optionally, the recommendation unit includes: a third acquisition module, used to obtain user information of all non-target users on the social network anchor chain; a fourth acquisition module, used to obtain information on financial products purchased by the target user, and obtain relevant product information corresponding to the products related to the target user; and a first push module, used to push relevant product information to all non-target users on the social network anchor chain based on user information.

[0115] Optionally, the graph representation learning model is a pre-built model based on a graph output vector, and the product recommendation device based on the social network anchor chain also includes: a fifth acquisition module, which is used to obtain a set of historical social relationship networks within a historical time period, and create a historical social relationship graph based on the target historical user corresponding to any node in the historical social relationship network in the historical social relationship network set; a third output module, which is used to input the historical social relationship graph into the initial graph representation learning model, output the embedding vectors of the target historical users and non-target historical users in the historical social relationship graph, and obtain the historical target embedding vector and the historical non-target embedding vector; a second calculation module, which is used to calculate the connection strength between the target historical users and the non-target historical users based on the historical target embedding vector and the historical non-target embedding vector; a third calculation module, which is used to calculate the loss function of the initial graph representation learning model based on the connection strength and negative sampling technology; a first training module, which is used to iteratively train the initial graph representation learning model based on the loss function until the number of iterative training reaches a preset number threshold, and then terminate the iterative training to obtain a trained graph representation learning model.

[0116] The above-mentioned product recommendation device based on social network anchor chain may also include a processor and a memory. The above-mentioned acquisition unit 31, the first output unit 32, the second output unit 33, the recommendation unit 34, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0117] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and product recommendations can be made to relevant users by adjusting kernel parameters.

[0118] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (fl ash RAM), and the memory includes at least one storage chip.

[0119] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any of the above-mentioned product recommendation methods based on social network anchor links.

[0120] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned product recommendation methods based on social network anchor links.

[0121] According to another aspect of an embodiment of the present invention, a computer program product is further provided. The computer program product includes a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned product recommendation methods based on social network anchor links is implemented.

[0122] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining a social relationship graph of a target user from a social network; inputting the social relationship graph of the target user into a graph representation learning model, and outputting embedding vectors of the target user and non-target users based on the aggregation mechanism of the graph representation learning model to obtain target embedding vectors and non-target embedding vectors; inputting the target embedding vectors and non-target embedding vectors into a neural tensor network, and outputting the similarity between the target user and the non-target users; constructing a social network anchor chain based on the similarity between the target user and all non-target users in the social relationship graph, and making product recommendations for non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

[0123] Figure 4 1 is a hardware structure block diagram of an electronic device (or mobile device) for a product recommendation method based on a social network anchor link according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4 402a, 402b, ..., 402n are used to illustrate) processor 402 (processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 404 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations are shown.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0126] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0130] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A product recommendation method based on social network anchor chain, characterized in that: include: Obtain the target user's social relationship graph from the social network; Inputting the social relationship graph of the target user into a graph representation learning model, outputting the embedding vectors of the target user and the non-target user based on an aggregation mechanism of the graph representation learning model, and obtaining a target embedding vector and a non-target embedding vector; Inputting the target embedding vector and the non-target embedding vector into a neural tensor network, and outputting the similarity between the target user and the non-target user; A social network anchor chain is constructed based on the similarity between the target user and all the non-target users in the social relationship graph, and product recommendations are made for the non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

2. The method according to claim 1, characterized in that: Before obtaining the target user's social relationship graph from the social network, it also includes: Collect user information from multiple social networks to obtain a user information set; A social relationship network between users is constructed based on the user information set.

3. The method according to claim 2, characterized in that The steps to obtain the target user's social relationship graph from the social network include: Traversing all user nodes in the social relationship network based on the user identifier of the target user to obtain a target node where the target user is located; Taking the target node as an observation point, obtaining a first type of node in the same social network as the target node; Deriving a second type of node in the same social network as the first type of node based on the first type of node; Deriving a third type of node based on the second type of node, which is in the same social network as the second type of node; A social relationship graph of the target user is obtained based on the first type of nodes, the second type of nodes, and the third type of nodes.

4. The method according to claim 1, characterized in that: The graph representation learning model includes two parts: a graph attention network and a hypergraph convolutional network. The step of outputting the embedding vector of the target user based on the aggregation mechanism of the graph representation learning model includes: Outputting, by the graph attention network, a first embedding vector of the target user based on the social relationship graph; Outputting a second embedding vector of the target user by the hypergraph convolutional network based on the social relationship graph; The first embedding vector and the second embedding vector are aggregated and calculated based on the aggregation mechanism to obtain the embedding vector of the target user.

5. The method according to claim 4, characterized in that The step of performing aggregation calculation on the first embedding vector and the second embedding vector based on the aggregation mechanism to obtain the embedding vector of the target user includes: Obtaining a weight vector of the first embedding vector to obtain a first weight vector, and obtaining a weight matrix of the first embedding vector to obtain a first weight matrix; Obtaining a weight vector of the second embedding vector to obtain a second weight vector, and obtaining a weight matrix of the second embedding vector to obtain a second weight matrix; Calculate a first coefficient corresponding to the first embedding vector based on the first weight vector and the first weight matrix; Calculate a second coefficient corresponding to the second embedding vector based on the second weight vector and the second weight matrix; An aggregation calculation is performed based on the first coefficient, the first embedding vector, the second coefficient, and the second embedding vector to obtain an embedding vector of the target user.

6. The method according to claim 1, characterized in that The step of recommending products to the non-target users on the social network anchor chain includes: Obtaining user information of all the non-target users on the social network anchor chain; Acquire information about financial products purchased by the target user, and obtain relevant product information corresponding to products related to the target user; The relevant product information is pushed to all the non-target users on the social network anchor chain based on the user information.

7. The method according to claim 1, characterized in that The graph representation learning model is a pre-built model based on a graph output vector. The steps of building the graph representation learning model include: Acquire a historical social relationship network set within a historical time period, and create a historical social relationship graph based on a target historical user corresponding to any node in the historical social relationship network in the historical social relationship network set; Inputting the historical social relationship graph into an initial graph representation learning model, outputting embedding vectors of target historical users and non-target historical users in the historical social relationship graph, and obtaining a historical target embedding vector and a historical non-target embedding vector; Calculate the connection strength between the target historical user and the non-target historical user based on the historical target embedding vector and the historical non-target embedding vector; Calculating the loss function of the initial graph representation learning model based on the connection strength and negative sampling technology; The initial graph representation learning model is iteratively trained based on the loss function until the number of iterative training reaches a preset threshold number, and the iterative training is terminated to obtain the trained graph representation learning model.

8. A product recommendation device based on social network anchor chain, characterized in that: include: An acquisition unit, used for acquiring a social relationship graph of a target user from a social network; A first output unit, configured to input the social relationship graph of the target user into a graph representation learning model, and output the embedding vectors of the target user and the non-target user based on an aggregation mechanism of the graph representation learning model to obtain a target embedding vector and a non-target embedding vector; A second output unit, configured to input the target embedding vector and the non-target embedding vector into a neural tensor network, and output the similarity between the target user and the non-target user; A recommendation unit is used to build a social network anchor chain based on the similarity between the target user and all the non-target users in the social relationship graph, and recommend products to the non-target users on the social network anchor chain, wherein the social network anchor chain is a relationship link formed based on the relationship between the target user and users similar to the target user.

9. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the product recommendation method based on the social network anchor chain as described in any one of claims 1 to 7.

10. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program, when executed by a processor, implements the product recommendation method based on a social network anchor link as claimed in any one of claims 1 to 7.