1. The recommendation method based on the graph interaction network is characterized in that the following modules are designed and applied: the system comprises a user preference information and article attribute information optimizing module, a U-I interaction characteristic extracting module, an interaction conjecture module and a Top-N recommending module;
Firstly, carrying out graph structural modeling on user and article relation data; the user preference information and article attribute information optimizing module extracts user characteristics and article characteristic expression by stacking two average convolution layers; the U-I interaction feature extraction module utilizes a graph attention mechanism to fuse target user features and to-be-recommended object features to obtain implicit feature expression on a graph interaction network, namely interaction vectors of the U-I relation pairs; the interaction presumption module learns the distribution rule of the interaction feature vector through the DNN network, models the nonlinear relation among U-I, and obtains the prediction score of the user on the target object; finally, sorting the target objects through a top-N recommendation module to realize personalized recommendation tasks for users;
1) User preference information and item attribute information optimization
The first module is a user preference and item attribute feature optimization module, and the purpose of user preference information modeling is to obtain accurate user preference feature representation according to user interaction behaviors; obtaining user and article characteristic expression through two average convolution layers; wherein the distribution of the user preference and the object attribute are more similar in the feature space;
firstly, carrying out graph structural modeling on the U-I interaction data, and establishing a connection relationship between user items with interaction behaviors; then initializing user preference characteristics and article attribute characteristics, wherein the user characteristics and the article characteristics are high-dimensional vectors of 128 dimensions; optimizing feature representation of a user and an object through a mean value convolution layer, wherein each layer of target node feature learning is obtained by carrying out averaging processing on the basis of a layer of neighbor node features on the node and the node features, and the node feature dimensions of each layer of mean value convolution layer are the same;
2) U-I interaction feature extraction module
The second module is a U-I interaction characteristic extraction module for extracting interaction characteristic expression between the target user and the object to be recommended; the U-I interaction feature extraction module directly utilizes an attention mechanism network on a graph interaction network, and fuses the target user feature, the first-order neighbor feature thereof, the item feature to be recommended and the first-order neighbor feature thereof to obtain the interaction feature expression thereof;
firstly, splicing user characteristics and user first-order neighbor node characteristics, and splicing article characteristics to be recommended and first-order neighbor node characteristics thereof; inputting the spliced characteristic into a self-attention network to obtain attention coefficients of the module, wherein the self-attention network adopts two-layer full-connection layer network modeling; finally, the corresponding U-I target node characteristics and the neighbor node characteristics thereof are aggregated through the attention weight coefficients obtained through learning to obtain a final interaction characteristic vector;
3) Interactive speculation module
The third module is an interaction presumption module, which learns the information distribution of the U-I interaction characteristics and calculates the presumption score of the user on the target object; fusing characteristic information of a user and an article through a classical DNN network to obtain a presumption result;
After the interactive feature expression of the user and the target object is obtained, directly inputting the interactive vector into a DNN network to obtain the preliminary prediction of the model; carrying out normalization processing on the module predicted value through a sigmoid function, and modeling the predicted score of the target object by the user into a preference probability expression;
4) Top-N recommendation module
The last module is a top-N recommendation module, and after the evaluation values of all the articles in the list to be recommended by the target user are predicted; sorting all the articles in descending order according to the scores, recommending the first N articles to the user, and realizing personalized recommendation of the user;
The specific implementation steps are as follows:
firstly, carrying out graph structural modeling according to U-I interaction data; establishing a connection relationship between users and articles with interaction records, wherein each user and article exist in the form of nodes of an undirected graph;
1) User preference information and item attribute information modeling
After the structural modeling of the graph is completed, randomly initializing the node characteristics of the U-I relation graph, wherein any node characteristic is a 128-dimensional high-dimensional vector; according to the connection relation of the nodes of the undirected graph, two layers of mean value convolution layer networks are built, all node characteristics in each layer of mean value convolution layer network are obtained by polymerizing the node characteristics and first-order neighbor node characteristics in the previous layer of network, wherein the polymerization mode is an averaging treatment, and the mathematical expression of the polymerization mode is as follows:
Wherein the method comprises the steps ofFeatures representing user node u of the K-th mean convolution layer; n (u) represents a first-order item neighbor node of the user node u; n (v) represents a first-order set of user neighbors of item node v; /(I)Features representing item node v of the K-th mean convolution layer; MEAN represents the averaging process, i.e., the average value of each dimension of the relevant U-I feature is calculated;
2) U-I interaction feature extraction module
After the modeling of the user object features is completed, aiming at a target user and an object node to be recommended in the undirected graph, a graph attention mechanism is fused, and the user object features and first-order neighbor features thereof are aggregated to obtain interactive feature expression;
Firstly, splicing user characteristics and user first-order neighbor node characteristics, splicing article characteristics to be recommended and first-order neighbor node characteristics thereof, inputting the spliced characteristics into a self-attention network to obtain attention coefficients corresponding to the user and article node characteristics, and carrying out softmax normalization processing on the parameters; the drawing force network adopts two fully-connected layers for modeling; attention coefficient modeling mathematical expression is:
Wherein W1,W2 represents the parameter matrix of the first layer and the second layer of the two-layer attention network, b1,b2 represents the deviation coefficient of the first layer and the second layer of the two-layer attention network, sigma represents a nonlinear activation function, and Relu activation function is adopted; the node characteristics of a target user ui in the undirected graph are shown; ha is a feature of a node a, where a node a is any node in the set of the user ui and its first-order neighbor N (i); n (i) represents a first-order set of article neighbors for user ui; /(I)Representing a splicing process; /(I)Representing the node characteristics of the item vj to be recommended; hb is the feature of node b, which is any node in the set of item vj and its first-order neighbor N (j); n (j) represents a first-order set of user neighbors of item vj; /(I)AndRepresenting a weight coefficient preliminarily obtained by the characteristics obtained by splicing through attention networks; then carrying out softmax normalization processing to obtain attention coefficients alphaia of the target user and the first-order neighbors thereof and attention coefficients betajb of the articles to be recommended and the first-order neighbors thereof;
After attention coefficients of the user, the first-order neighbors of the user and the target object and the first-order neighbors of the target object are obtained, the attention coefficient weighted target node characteristics are fused to obtain final interactive characteristic expression; the mathematical expression is as follows:
zij is the interactive feature expression of the obtained target user ui and the object vj to be recommended;
3) Interactive speculation module
Inputting the interaction characteristics into a DNN (digital network) to obtain a predictive score of the object by a user, and modeling the predictive score of the model into a probability expression of the object by the user through sigmoid normalization processing; the mathematical expression is as follows:
g1=zij (8)
g2=σ(W1·g1+b1) (9)
g3=σ(W2·g2+b2) (10)
rij'=sigmoid(W3·g3) (11)
Wherein W1,W2,W3 represents a parameter matrix of the DNN network, b1,b2 represents a deviation coefficient in the DNN network, sigma represents a nonlinear activation function, and Relu activation function is adopted; g1,g2,g3 is the interactive vector expression output by each layer of DNN network; rij' is the final probability prediction evaluation value expression obtained after sigmoid normalization;
4) Top-N recommendation module
After the predictive evaluation values of the model on all the articles of each user are obtained, sorting the articles participating in the evaluation from large to small according to the output value of the model, recommending the first N articles after sorting to the target user through a top-N recommendation machine, and further completing personalized recommendation of the user.