An Efficient Recommendation Algorithm Based on Heterogeneous Information Network

. Heterogeneous information networks can naturally simulate complex objects, and they can enrich recommendation systems according to the connections between diﬀerent types of objects. At present, a large number of recommendation algorithms based on heterogeneous information networks have been proposed. However, the existing algorithms cannot extract and combine the structural features in heterogeneous information networks. Therefore, this paper proposes an eﬃcient recommendation algorithm based on heterogeneous information network, which uses the characteristics of graph convolution neural network to automatically learn node information to extract heterogeneous information and avoid errors caused by the manual search for metapaths. Furthermore, by fully considering the scoring relationship between nodes, a calculation strategy combining heterogeneous information and a scoring information fusion strategy is proposed to solve the scoring between nodes, which makes the prediction scoring more accurate. Finally, by updating the nodes, the training scale is reduced, and the calculation eﬃciency is improved. The study conducted a large number of experiments on three real data sets with millions of edges. The results of the experiments show that compared with PMF, SemRec, and other algorithms, the proposed algorithm improves the recommendation accuracy MAE by approximately 3% and the RMSE by approximately 8% and reduces the time consumption signiﬁcantly.


Introduction
With the rapid development of information technology, the amount of digital information is increasing rapidly.is makes it difficult for people to correctly judge the relevance of the retrieved items and make correct decisions.Recommendation systems have arisen at a historical moment.An effective recommendation can greatly reduce information overload.Recommendation systems have changed the communication mode between users and websites and have many applications in many fields, such as the economy, education, and scientific research.For example, in academic research, a recommendation system can provide researchers with papers to help them quickly find the required papers.For junior researchers with limited experience, a recommendation system may recommend new articles and classic articles in related fields to broaden their horizons and research interests.For senior researchers with strong research abilities, a recommendation system helps researchers reduce information overload and find relevant papers by analyzing the publication records of papers and recommends papers related to researchers' research interests or research priorities.Currently, recommendation systems have become an indispensable tool.e recommendation algorithms are constantly updated, and the recommendation accuracy increases as time passes.
At present, the existing recommendation algorithms are usually based on homogeneous networks [1]; that is, there is only one type of object or relationship in the network.For example, the author collaboration network only contains the relationships between authors and the coauthors.ese isomorphic information networks usually only consider one type of relationship with one type of object.However, most real interaction systems usually contain multiple types of interaction information, which can be modelled as heterogeneous information networks including different types of objects and connections.For example, the document database DBLP may be organized into a heterogeneous information network, including various types of objects (e.g., paper, authors, and work units) and connections (e.g., by writing relationship between paper and authors and the relationships between published papers and work units).Clearly, an author collaboration network is implicitly a heterogeneous information network, which can be obtained from the writing relationship between papers and authors.
As a new direction, heterogeneous information networks can naturally simulate complex objects and their rich relationships in recommendation systems.Objects have different types, and the connections between objects represent different relationships.Some researchers [2,3] have proposed to evaluate the similarity of objects in heterogeneous information networks based on several path-based similarity metrics.Feng and Wang proposed the OptRank method [4] to alleviate the cold start problem by using the heterogeneous information contained in a social labelling system.In addition, the concept of metapaths has been introduced into a hybrid recommendation system.Yu et al. used metapathbased similarity as a regularization term in a matrix factorization framework [5].Yu et al. proposed a personalized recommendation framework with implicit feedback by using different types of entity relationships in heterogeneous information networks [6].Luo et al. proposed a collaborative filtering social recommendation method based on heterogeneous relationships [7].Recently, Shi et al. proposed the concept of a weighted heterogeneous information network, designed a collaborative filtering model based on metapaths, flexibly integrated heterogeneous information, and realized the personalized recommendations [8].e similarity between users and items is evaluated by path similarity measures under metapaths with different semantics, and matrix factorization based on a biregularization framework is proposed for rating prediction [9].Most methods based on heterogeneous information networks rely on path-based similarity, which may not fully mine the potential characteristics of users and recommend projects for heterogeneous information networks.
Recommendation algorithms are based on heterogeneous information networks, such as algorithms based on matrix factorization.e main idea is to decompose the heterogeneous information network.e relationships under different metapaths are decomposed into a relationship matrix about users and a relationship matrix about entities by using the random walk method, and then the corresponding algorithms for representing users and entities are used to represent the relationships.en, the two metrics are fused, and the corresponding recommendation results are finally obtained through continuous iteration.Although there are many such algorithms, there are still some problems: (1) e Representation of Heterogeneous Information Networks.Most of the existing algorithms for processing heterogeneous information networks are based on metapath methods; that is, they must determine relational paths that must be considered to prove that two nodes are similar.If an effective metapath cannot be found accurately, the result will be inaccurate, and the data fluctuation will be too large during metapath transformation; thus, the stability of the result cannot be guaranteed.(2) Computational Efficiency.As the information is transmitted through the graph convolutional neural network algorithm, the amount of information increases exponentially as the number of layers increases; therefore, the computational efficiency cannot be guaranteed.
Aiming at some problems of the existing recommendation algorithms based on heterogeneous information networks, a recommendation algorithm based on heterogeneous information networks is proposed.
e main contributions are as follows: (1) e existing graph convolution neural network graph-based depth learning algorithm is improved to allow it make recommendations for heterogeneous information networks.erefore, the recommendation results can be combined with the information of heterogeneous information networks more accurately.is method is not only suitable for homogeneous networks, but it can also obtain the corresponding results in increasingly complex heterogeneous information networks.Furthermore, this method also solves the problems of the manual selection of metapaths and inaccuracy in heterogeneous information network recommendation.
(2) A method to speed up the training of heterogeneous graph convolutional neural networks is proposed.e training process of the heterogeneous network graph convolutional neural networks is processed by a sampling method.By reducing the receptive field and the training range, the entire recommendation process is accelerated.
(3) We conduct a large number of comparative experiments on three large-scale real data sets.In the experiments, the recommended accuracy MAE is increased by approximately 3%, the RMSE is increased by approximately 8%, and the running time is reduced significantly.
e organizational structure of the remainder of this paper is as follows: Section 2 presents the related research work, which introduces the related algorithms and technologies recommended by heterogeneous information networks, such as graph convolutional neural networks and matrix decomposition.Section 3 presents the deep learning method based on a heterogeneous information network.Section 4 is the deep learning algorithm based on a heterogeneous information network.Finally, a large number of experiments are conducted on real data sets to verify the effectiveness of the algorithm.Section 5 is the summary and future prospects section, which mainly summarizes the work 2 Complexity and contributions made in this paper and plans the next research work to be conducted.Although the effect of the convolutional neural network is very good, it is still limited to Euclidean domain data.e most prominent feature of Euclidean data is that there is a regular spatial structure.For example, pictures are regular square grids and speech is a regular one-dimensional sequence.However, these structures can be expressed by onedimensional and two-dimensional matrices, so convolutional neural networks are very efficient in processing.However, there are many data in real life that do not have regular spatial structures and are called non-Euclidean data.For example, graph networks abstracted from social networks have different connections for each node in these graph structures.Some nodes have three connections and some nodes have two connections, which are irregular data structures.To solve the above problems, Kipf and Welling proposed graph convolutional neural network method to deeply learn graph data [10].Compared with traditional methods, graph convolutional neural networks can learn more efficient features and patterns.However, graph convolutional neural networks are mostly used to deal with homogeneous networks.

Related Work
ere is an urgent need for a recommendation algorithm based on heterogeneous information networks using deep learning techniques.To solve the problem that the neighboring nodes in a graph are not fixed, the graph convolutional neural network method finds the learnable convolutional check graph data suitable for the graph for in-depth learning.
e process of a graph convolution algorithm is as follows: (1) Send.Each transmitting node transforms its own characteristic information to its neighboring nodes.is step extracts and transforms the characteristic information of nodes.(2) Polymerization.Each node aggregates the characteristic information of neighboring nodes.is step fuses the local structural information of nodes.e corresponding graph transfers the information of neighboring nodes to nodes so that each node contains the information of its neighboring nodes and its own information.(3) Nonlinear Transformation.After aggregating the previous information, a nonlinear transformation is applied to increase the expression ability of the model.ese steps are iterated continuously until a convergent output result is obtained.

Matrix Factorization.
e score prediction of a recommendation algorithm can be regarded as matrix completion.Matrix completion is the task of a recommendation algorithm, and matrix decomposition is the means to achieve its goal.erefore, matrix factorization is used to better complete the matrix completion task.
e reason matrix decomposition can be used to complete matrix completion is based on the assumption that the matrix is of low rank.
at is, there will always be similar people or things in the world.For example, birds of feather flock together and people are divided into groups.
en, the matrix can be restored by multiplying two small matrices.
e matrix factorization method is first developed using a model-based recommendation algorithm.ere are many examples of successful recommendation algorithms based on matrix factorization, such as recommendation for large groups [11], recommendation based on user contextual information [12], and recommendation for groups of items [13].e idea of matrix decomposition is to decompose the matrix into more representative eigenvectors similar to the prime factor decomposition of integers, thus facilitating research.ere are many matrix factorization methods.In linear algebra, there are two common methods: eigendecomposition and singular value decomposition.ere are also implicit semantic model methods [14], Funk-SVD [15,16], SVD++ [17], and other methods used in recommendation systems.

Characteristic Decomposition.
e application scope of eigendecomposition is a square matrix, and only diagonalizable matrices can be decomposed into eigenvalues.If a square matrix A is similar to a diagonal matrix, that is, if there is a reversible matrix P such that P (1) AP is a diagonal matrix, it is called diagonalizable.
e N-dimensional nonzero vector v is the eigenvector of N × N matrix A if and only if Av � v, where v is the corresponding eigenvector and is the eigenvalue.Matrix A can be decomposed into ( Any N × N real symmetric matrix has N linearly independent eigenvectors.Moreover, these eigenvectors can be orthogonally unitized to obtain a set of orthogonal vectors with module 1.
erefore, symmetric matrix A can be decomposed into where Q is an orthogonal matrix and A is a real diagonal matrix.However, the common matrices in recommendation systems are not square matrices, so the feature decomposition method is not applicable.

2.2.2.
Singular Value Decomposition (SVD).Eigendecomposition is a matrix product that decomposes a square matrix A into an eigenvector matrix, an eigenvalue diagonal matrix, and the inverse of the eigenvector matrix.Singular value decomposition is a method that can decompose M × N matrices.It decomposes the matrix M into ( Assuming that M is an M × N matrix, then U is an M × M square matrix (where the vectors are orthogonal, and the vectors in U are called left singular vectors),  is an M × N real diagonal matrix (the elements other than diagonals are 0, and the elements on diagonals are called singular values), and V-T is an N × N matrix (where the vectors are also orthogonal, and the vectors in V are called right singular vectors).Using singular value decomposition, storage space can be used to represent the matrix.However, in actual scenarios, matrices are large and sparse.Singular value decomposition is effective only when a matrix is dense.erefore, singular value decomposition cannot be used to solve specific recommendation problems.

Latent Factor Model (LFM).
e main idea of the Latent Factor Model (LFM) or "implicit semantic model" is to decompose the original scoring matrix M (mn) into two matrices P (mk) and Q (kn).In addition, only the accuracy of decomposition results of the items with scores in the original scoring matrix is investigated and the mean squared error (MSE).at is, matrix M (mn) is decomposed into P (mk) and Q (kn).At this time, for the positions with scores in the original matrix, the corresponding values in the decomposed matrix are is method is based on the Latent Factor Model (LFM) matrix factorization.e interpretation of the algorithm's mean level links user interests with project features through implicit features.e LFM artificially sets the number of "hidden classes," which means there is no need to consider the meaning of each hidden category; and then the matrix is restored by training the weights of the users and items for each hidden category.In a recommendation system, the matrix is sparse.at is, users have not interacted with most items, and the implicit feedback data have large area of 0s.
en, if you want to use the model to restore the value of position (I, J) (user I's score on item J), and this position has not interacted and thus is represented as 0, then you cannot train to this point.It is also difficult to train an ideal result using SVD because the matrix is too sparse, and it is difficult to learn the eigenvalues and eigenvectors that can represent the matrix.After using the LFM, the matrix is abstracted into two matrices P and Q: one representing the user interest matrix and the other representing the item matrix.e two matrices are multiplied to restore the matrix.en, as long as this user or project interacts with other projects or users, its matrix can be trained, which means that the method can be trained without a dense matrix.

Funk-SVD.
Similar to the LFM, the algorithm considers the bias of scoring criteria, so that the matrix factorized user item vector only needs to learn the differences between scoring and scoring criteria.Funk-SVD considers the bias between users and items.For example, some users tend to give very low scores or a movie is very poor and everyone has very low scores.By using bias to address special cases, it is easier for users and item matrices to learn expressions with better generalization performance.e scoring function is e objective function is 2.2.5.SVD++.In SVD++, implicit feedback is introduced on the basis of SVD; and the user's historical browsing data, user's historical scoring data, movie's historical browsing data, movie's historical scoring data, etc., are taken as new parameters.If a user scores a movie, then he has seen the movie, and such behavior actually contains certain information.at is, the scoring behavior reflects the user's preferences, and such information can be reflected in the model in the form of implicit parameters.
where I u is the set of all movies evaluated by the user; and y j is the setting of personal preference bias reflected by the hidden "evaluated movie j" and is a vector with the same dimension as p u , not a scalar.e root sign of the contraction factor taking the set size is an empirical formula and has no theoretical basis.

Recommendation Algorithm Based on Heterogeneous Graph Convolution Neural Network (HGCR)
Most of the existing recommendation algorithms based on heterogeneous information networks are based on data mining algorithms that manually formulate standards.
When faced with different requirements, most of them will choose different metapaths to calculate according to the situation.First, the manual selection of metapaths is mostly based on subjective preferences, and then the performance of the selected metapaths is verified through experiments.Second, the selection of metapaths consumes considerable time and even requires different weights for different metapaths.If the selected metapath is unreasonable, the correct representation method of the heterogeneous 4 Complexity information network will not be obtained, and then the correct recommendation results will not be obtained.e following is a detailed explanation of the existing algorithm problems and the advantages of the algorithm proposed in this paper.

Basic Concepts and Problem Definitions
Definition 1. Heterogeneous Information Network.A model is given to represent the heterogeneous information network, node set, and connection set.Generally, a heterogeneous information network includes a mapping relation for nodes and a mapping relation for edges that represent the defined entity and relationship types, respectively.Among the types of networks, a heterogeneous information network is a special kind of information network that includes many types of entities and many types of relationships.
Definition 2. Information Transfer Framework.Since the model calculation is applied to the local neighbors of the graph, the model can be understood as a simple information transfer model, namely, Among the components of the model, the hidden state of nodes in the neural network at the first layer is the dimension represented by this layer.Information passed in this form is integrated and passed by activating functions.A function represents a collection of information passed to a node and should generally be sensitive to the incoming side information.Usually, a neural network function is used to represent the error, or a simple linear transformation matrix with weight W is used to represent the error [10].
e existing recommendation algorithms based on heterogeneous information networks also have the following problems: (1) e recommendation process relies too much on the existing concepts and cannot use deep learning technology to automatically extract features, which limits the existing features and patterns.(2) e scoring process for users does not consider the differences of users and items, resulting in the inability to effectively collect the characteristics of users.Based on the definition of a heterogeneous information network, the definition of recommendation based on a heterogeneous information network is given.

Definition 3. Recommendation Based on a Heterogeneous
Information Network.In a recommendation algorithm network, multiple types of data can be modelled using a heterogeneous information network.In recommendations based on heterogeneous information networks, there are two main items that deserve attention, namely, users and projects.e sum is the set of users and items, and the triple represents the user's score on the item and represents the set of scores.Given a heterogeneous information network, the essence of recommendation is to predict a user's score for an item.
As seen from Definition 3, there are many elements in heterogeneous information networks; however, the recommendation of heterogeneous information networks mainly focuses on users and projects.Information in other heterogeneous information networks is used to assist users and projects in recommending.Weights will be included on the edges of the connections of user projects to represent users' scores on the projects, which is also a reference for the final recommendation.e relevant symbols used in this chapter and their explanations are shown in Table 1.
Problem Definition.Given a heterogeneous information network G � V, ε, R { } satisfying Definition 3, the score of the edge from the user node to the project node is predicted by using the graph convolution neural network method.

Overview of Algorithms.
e graph convolution neural network method usually obtains feature vectors by normalizing and accumulating the transformations of adjacent nodes.Different from the conventional graph convolution neural network, this section introduces the transformation of specific relationships; that is, information transmission depends on the types of edges.To ensure that the representation of the nodes at the level can be obtained by the corresponding representation at the level, a single selfconnection of a special relationship type is added to each node in the data.In addition, more flexible functions, such as multilayer neural networks (at the expense of computational efficiency), can also be selected instead of simple linear message conversion.Updating the neural network layer includes the parallel computation of each node in the graph.In practical applications, sparse matrix multiplication can be effectively realized to avoid the explicit summation of neighbors.Multiple layers can be stacked to implement dependencies across several relational steps.According to this, this paper proposes a heterogeneous graph convolution neural network algorithm for recommendation (HGCR) to better solve the problems defined in Section 3.1.
e input of the HGCR algorithm is a heterogeneous information network, as shown in Definition 1, which includes the evaluation values of some users of the project.e algorithm process mainly consists of two stages, namely, the learning stage of heterogeneous information network nodes by the graph convolution neural network method and the matrix decomposition stage.is paper mainly considers the advantages of the graph convolution neural network algorithm in learning graph structures and the advantages of the traditional matrix decomposition method in using scoring information and combines the two to recommend heterogeneous information networks.As shown in Figure 1, the input of the HGCR algorithm is a heterogeneous information network diagram.
e diagram contains different types of nodes and the user's rating information for the movie.First, this heterogeneous information network graph is input into the heterogeneous graph convolution network model proposed in this paper.is model has the ability to Complexity learn that nodes are affected by different relationship types and output node representations that can reflect the heterogeneous information network structure, thus obtaining the representation of user nodes and the representation of movies.en, the scoring matrix is constructed according to the scoring information contained in the heterogeneous information network.
e matrix decomposition method decomposes a matrix into the product form of two matrices, namely, the matrix representing the user and the matrix representing the movie.e representation of the user and the representation of the movie obtained in the first step are combined with the hidden variables in matrix decomposition into the scoring matrix.Finally, the final matrix decomposition result is the recommended result to be obtained in this paper, and the score of each unknown position in the matrix is obtained.

Pseudocode Description.
is section will describe the basic process of the heterogeneous information network recommendation algorithm based on a graph convolution neural network.e main pseudo code of the recommended algorithm is shown in Algorithm 1.
e algorithm first calculates the node representation of the data on the graph, then updates the nodes by integrating the information from different kinds of relationships, and combines the node representation with the matrix decomposition results to obtain a new representation of the nodes.e iteration is continued until convergence is obtained, and the corresponding score on the edge of each user and project is output.
When the algorithm is executed, the different relationships are first disassembled, and the node information of adjacent nodes is transmitted to the neighboring nodes according to the different relationships.e main purpose is to make better use of the spatial connection between users and items by using the characteristics of a graph convolution neural network that can flexibly combine the information of neighboring nodes.Combined with the continuous iteration of each neighbor's information, the processed information is aggregated and then subjected to nonlinear transformation to increase the expression ability of the model until convergence is obtained to obtain the node representation (lines 1-5).
en, the corresponding parameters of matrix factorization are initialized using the standard normal distribution (row 7), one triple is randomly selected for each cycle, and the new parameters are calculated via matrix factorization (rows 8-14).e matrix decomposition results are combined using the method obtained by the graph convolution neural network.We bring the combined results into Neighbors of node u e (U)  u , e (I)

Algorithm Details
is section is divided into four parts, describing the specific process of the algorithm from the aspects of the node representation process, objective function and model learning, and finally analyzing the complexity of the algorithm.

Node Representation Process.
Because the information transfer framework method is very effective in representing structural information, it is necessary to define a similar transfer model to calculate the node representation for heterogeneous information networks.is paper proposes an information transfer method based on the following formula: N r i r ∈ Ric i,r c i,r � |N r i |. e representation that represents the point under the relation is a constant specifically for a certain path, which can be learned or predefined.
Clearly, equation (10) collects the feature transformed vectors of all neighbors through regular addition.
Different from the conventional graph convolution neural network, this method uses the relationship information and directional information on the connection edges to collect the relationship information of neighboring nodes and other information, making the representation result more accurate.To make the representation of a node in layer L + 1 also be affected by its representation in layer L, the transmission of the node's own information is increased; that is, the node information of each layer includes the neighboring node information of the upper layer and its own information.
A convolution network layer continuously updates the information of nodes by calculating equation (10) in parallel.In practice, equation ( 10) can be effectively applied in sparse matrix multiplication to avoid the display summation of neighbors.e multilayered structure can correspond to the information transmission in pairs of multistep relationships.
is graph coding model is called the heterogeneous convolution neural network (H-GCN).e calculation process using the H-GCN model is shown in Figure 2. e triangle square node C represents the node itself that needs to be updated, and the elements in the three rectangular boxes represent the transmission of three different relationships.Under different relationships, the information of C's neighbor nodes is extracted, and the information of C itself is extracted simultaneously from the nodes with the same type as C. Finally, the information of each relationship is aggregated, and the updated nodes are obtained through the ReLU activation function.

Complexity
conducted at the same time.A node is not only the node that receives information but also the node that transmits information to the outside in one iteration, transmitting the information to its neighbors and to itself.It can not only maintain the stability of its own information, but also update it according to the update of the neighboring node information to obtain accurate results.When equation ( 10) is applied to multirelational data, a central problem is that the number of parameters in the graph increases rapidly with the number of relationships.In practice, when the model is large, data are easily overfit with a small number of processing relationships.Two intuitive strategies to solve this type of problem are to share parameters between the weight matrices and to retain the sparsity in the weight matrices to limit the total number of parameters.
W (l) r corresponding to these two strategies, two methods are introduced to address the weight matrix on the layer, namely, basic decomposition and block diagonal decomposition.In basic decomposition, each matrix is represented as r .at is, the linear combination of the basic transformation and the coefficients depends only on r.In block diagonal decomposition, each matrix is represented as the sum of multiple low-dimensional matrices: . is is the block diagonal matrix.
e basic function decomposition process of equation ( 11) can be regarded as parameter sharing for different relationships while equation ( 12) can be regarded as a sparse constraint for the parameters of each relationship.Block decomposition structure coding can group potential features into variable sets that are more closely coupled within groups than between groups.
Finally, the entry H-GCN model takes the following form: stacking layer L defined in equation (10), and the output of the previous layer is the input of the next layer.You can select the input of the first layer as the only input.If there are no other features, a vector is set for each node in the graph.For block representations, this vector is mapped to dense representations by a single linear transformation.

Objective Function.
After the appearance of matrix factorization-based algorithms, many improved versions of these algorithms have emerged.BiasSVD is an improved and successful matrix factorization method.BiasSVD [18] assumes that the score includes some scoring factors unrelated to the user's items, and the user has some scoring factors unrelated to the items, which are called user bias items.8 Complexity However, items also have some scoring factors unrelated to users, which are called item bias items.For example, a movie with its own quality problems cannot have a high score.
Items with such poor attributes will directly lead to low user scores due to this factor, which is unrelated to users. is paper uses this algorithm to fully consider the influence of irrelevant factors on the results to improve the recommendation accuracy.
Assuming that the average score of the scoring system is μ, the user offset item of the ith user is b i , and the item offset item of the jth item is b j .e optimization objective function J(p, q) after adding the offset item is as follows: is optimization objective can also be solved by the gradient descent method.Different from other algorithms, there are two more paranoid terms b i and b i at this time, and the iteration formulas of b i and b i are similar to others; however, the gradient derivative of each step is slightly different, so it is not given here.In general, you can initially set the values for b i and b i to 0 and then participate in the iteration.e iterative method for b i and b i is presented as Finally, p and q can be obtained through iteration, which can be used for recommendation.BiasSVD adds some additional factors, and the influence of some factors can be ignored, which make the effect better.
Based on the classical matrix decomposition model, a score predictor is constructed, which decomposes the user-item score matrix into a user-specific matrix and an item-specific matrix.In the basic matrix factorization model, the score of user u on item i is simply defined as follows: wherex T u and y i represent the potential factors corresponding to user u and item i.Since the representations of user u and item i were also obtained in the previous section, they were further merged into the score predictor as follows: where e (U) T u and e (I) i are the outputs in the previous section, r (U) T u and r (I)  i are the user-specific and project-specific potential factors, respectively, where e (U) T u and e (I)   i are represented and paired with the nodes obtained by H-GCN, respectively, α and β are the adjustment parameters integrating the three items.For equation (13), two points need to be noted.First, e (U) T u and e (I)  i are the output of the function in equation (10).It is assumed that the derived representation function transformation is applicable to MF.Second, this article will not provide direct matches because the embedding method proposed in the previous section can indeed characterize the correlation between the same types of objects. is paper combines the e (U) T u and e (I)  i of the new potential factors r (U) T u and r (I)   i to relax the assumption that they must be in the same space, which increases the flexibility of the prediction model.
In this paper, the fusion function is incorporated into the matrix factorization framework to learn the parameters of the proposed model.e objective function can be expressed as where the prediction score using the equation is r u,i λΘ (U) Θ (I) .Equation ( 15) is a regularization parameter, and the sum is a function of users and items.

Model Learning.
is paper will use SGD to effectively optimize the final goal.e update of the original potential factor sum is the same as the matrix factorization algorithm in the formula.e parameters of the proposed model will be updated as follows: Complexity where the learning rate is η, λΘ is the regularization of the parameters for θ (U) and θ (I) , and λc is the regularization of the parameters for c (U) and c (I) .Figure 3 shows the algorithm flow that needs an iterative solution.First, according to the vector representation of the nodes obtained in the previous section, the required vector representation of relevant user items is obtained, and then the objective function solution is formed using the BiasSVD method.e yellow part is the input and output.
e matrix at the time of the input contains some scoring information, and the final result includes all users' scores on all items.
In this paper, a sigmoid function is used for nonlinear transformation to solve the objective function, and the derivative calculation can be simplified by using the attributes of the sigmoid function.It is worth noting that the symbol Θ represents all parameters in the fusion function, and the calculation will be different for different parameters.Next, the detailed derivation process is introduced for the personalized nonlinear fusion algorithm.
is paper calculates users and projects in the above way because it is relatively simple and omits the derivation of the linear fusion function.

Complexity Analysis.
e HGCR consists of two main parts: (1) e embedded representation of heterogeneous information networks.
e time complexity of a single graph convolution neural network algorithm is O(|ε| CHF), in which |ε| is the number of edges, C, H, and F represent the number of inputs, hidden layers, and output features, respectively.ey are constant.erefore, the complexity of the entire graph convolution neural network algorithm is linearly related to the number of edges in the graph.In this paper, the proposed algorithm H-GCN contains the relationship information on the edges and the time complexity becomes O(|ε|CHFR).Since the number of R representing the relationship is constant, the time complexity indicates that the entire H-GCN algorithm remains linear with the number of edges in the graph.(2) Matrix Decomposition.For each triple <u, i, ru,i>, the time complexity of updating parameters x, y, c (U) , c (I) is O (D) , and D is the number of hidden variables.e update θ (U) , θ (I) time complexity is O(|P|Dd).Since |P| is small, it is defined by user.d is dimensions of heterogeneous information network.D and d do not exceed at most one thousand; this part is also very efficient on large data sets.e overall time complexity of the algorithm is still dominated by the previous part, which is linearly related to the number of edges.

Data Set.
e laboratory environment is configured as follows: the operating system is Ubuntu 16.04.6 LTS (GNU/ Linux 4.15.0-47-genericx86_64).
e GPU server is 2 GeForce RTX 2080 GPUs with 20 GB of memory.e python version is 3.5, the cuda version is 8.0.0, and the Ten-sorFlow GPU version is 1.4.0. In addition, Networkx, c++11, NumPy, SciPy, etc., are also used.
To obtain more comprehensive heterogeneous information, this paper uses three real data sets for experiments.
ese data sets include the user movie data set, the Yelp Challenge data set, and the Douban Book data set, as shown in Table 2. e user movie data set includes 13,367 users and 12,677 movies, of which 106,8278 movies have a rating range of 1 to 5. e data set includes the social relations between users and the attribute information of users and movies.e Yelp Challenge data set contains the user scores of local merchants and the attribute information of users and merchants and ignores users and enterprises without relevant grades.e data set contains 198,397 scores ranging from 1 to 5: 162,39 users and 14,284 local enterprises.e Douban Book data set includes 13024 users and 22347 books, with 792026 scores ranging from 1 to 5, and includes the social relations between users and attribute information of users and books.
ese three data sets have different attributes.e Douban movie data set has the characteristics of dense scoring relationships and sparse social relationships, the Yelp data set has the characteristics of sparse scoring relationships but dense social relationships, and the Douban Book data set has the attributes of relatively medium-density scoring information and dense social relationships.
is paper uses several algorithms and matrix decomposition methods based on heterogeneous information networks to make comparison in the experiments in this chapter.PMF [19] is a matrix decomposition method that only uses the user item matrix as a recommendation.e SMF [20] algorithm adds social normalization terms to PMF to make users' potential factors closer to their friends' potential factors.CMF [21] is a collective matrix decomposition method that decomposes all relationships in heterogeneous information networks and shares potential factors of the same object type in different relationships.HeteMF [5] is a matrix factorization method with entity similarity regularization that also uses the relationships in heterogeneous information networks.SemRec [22] uses the sources.It is a collaborative filtering method based on weighted heterogeneous information networks and is built by connecting users to items with the same ratings.It can flexibly integrate heterogeneous information to make recommendations through weighted metapath and weight integration methods.I use the author's code to implement the model.DSR [23] is an MF-based recommendation method with double similarity regularization, which imposes constraints on users and commodities with high similarity and low similarity.HERec [24] is an algorithm that combines metapath representation with matrix 10 Complexity factorization, which can integrate users' structural information and attribute information.

Evaluation Indicators.
(1) Quality Evaluation of Recommended Results. is experiment uses two evaluation indexes, the mean absolute error and the root mean square error, to test the quality of the evaluation results.
R u,i , R' u,i , and R test represent the score of the real user U on item I, the predicted score, and the entire test set, respectively.By definition, the smaller the MAE and RMSE are, the better the results.
(2) Cold Start Effect Evaluation.For recommendation systems, cold start is an important issue.is index calculates the improvement of the effect of the basic algorithm by dividing the data into different degrees of sparsity and comparing the accuracy of this method with the accuracy of other algorithms.(3) Evaluation of the Relationship Regularization Effect.
By comparing the recommended results before and after relationship regularization, as shown in Section 1, we can compare whether the relationship regularization strategy is effective.(4) Iteration Effect.We collect the scoring effect after every 20 iterations to observe the performance of each iteration and evaluate whether the algorithm converges quickly.As shown in Figures 4-6, the main findings of the experimental results are summarized as follows:

Evaluation of the
(a) Among these benchmarks, the performance of heterogeneous information network-based methods (HeteMF, SemRec, CMF, and DSR) is better than that of traditional MF-based methods (PMF and SMF), which indicates that heterogeneous information is worth mining.It is worth noting that the CMF model is very effective in three benchmarks based on heterogeneous information networks.e intuitive explanation is that in the data set, most of the original features are attribute information of users or items, which may contain useful evidence to improve recommendation performance.
(b) e proposed HGCR method is always superior to the baselines ranging from PMF to DSR.Compared with other methods based on heterogeneous information networks, HGCR adopts a more basic way to improve the recommendation system by using heterogeneous information networks, thus providing better information extraction (new representation of heterogeneous information network nodes) and utilization (extended MF model).In addition, the advantages of the proposed HGCR become more important when there are less training data.In particular, when using 20% of the Douban Book data set as training data, the improvement rate of HGCR compared with PMF is as high as 40%, which indicates that the performance has been significantly improved.As mentioned earlier, the data of the Yelp data set are very sparse.In this case, even with 60% of the data set as training data, the HGCR model is approximately 26% better than PMF.In contrast, at the same share of training date (i.e., 60%), the improvement rate of the RMSE for the proposed HGCR method relative to PMF is approximately 29%.ese results show the effectiveness of the method, especially on sparse data sets.e results show that the heterogeneous information network embedding method is essential for recommendations based on heterogeneous information networks.e focus of this section is to learn the representation of users and projects while other types of objects are only used as bridges to build similar neighborhoods, thus contributing to the final recommendation results.

Evaluation of the Cold Start Effect.
Heterogeneous information networks often improve the predictions affected by cold start because heterogeneous information networks contain rich text information, which can improve the effectiveness of prediction.Here, according to the number of users' evaluations of the projects, users' evaluations are divided into three groups, namely, (0, 5), (5,15), and (15, ∞). at is, the sparsity of users' evaluations is distinguished.ose users with fewer than 5 evaluations, 5 to 15 evaluations, and more than 15 evaluations are used to perform experiments to verify the cold start effect and verify the cold start effect of this algorithm.e comparison algorithms include SMF, HeteMF, SemRec, DSR, and FMHIN.
e results are compared with those of the algorithm for heterogeneous information and the algorithm for homogeneous networks.
Compared with the experimental results in Figures 7-12, the sparse algorithm provides a more obvious improvement compared with the basic recommendation algorithm.As the sparsity is improved, the results of this algorithm also improve correspondingly.As seen from the figure, this algorithm provides the most obvious improvement compared with the basic algorithm when evaluating less than 5 users' evaluations.Similarly, other heterogeneous information networks algorithms improve cold start performance by 40%.Compared with the recommendation algorithms based on heterogeneous information networks, the proposed algorithm can also make better use of heterogeneous information to achieve better results.

Evaluation of the Regularization Effect.
Since the concept of relationship regularization is introduced in this paper, the number of relationship parameters cannot grow explosively and overfitting can also be prevented.e following two regularization formulas are used to verify this effect on the three data sets.
As seen from Figures 13 and 14, the regularization method in this paper does not obviously improve the results with a 0.1% increase per data set.e main reason is that the data set in this paper faces the recommendation problem in heterogeneous information networks.e number of relationships in most heterogeneous information networks is relatively small while the regularization method in this paper is mainly used to prevent overfitting when the number of relationships is too large; therefore, the proposed method has certain effects on several data sets in this paper, but it is not significant.

Evaluation of the Iterative Effect.
In deep learning problems, the effect of iteration is often very critical.e following verifies the RMSEs on three data sets with different numbers of iterations.
Figures 15-17 show that as the number of iterations increase, the iteration effect can converge rapidly in the initial stage of the iteration.In Douban Book and Movie data sets, although the results did not converge completely until approximately 60 iterations, the results in the 20th iteration were optimal result, proving that conducting training using this algorithm can make the calculation results converge rapidly until the final results are obtained.Furthermore, due to the sparsity of the Yelp data set, the convergence speed of the proposed method is faster, and it is easier to obtain stable results.e algorithm in this paper can converge quickly 14 Complexity within 60 iterations on the three data sets and has achieved good results, which proves that the algorithm in this paper is feasible.

Evaluation of the Running Effect.
In order to verify the advantages of the algorithm in terms of time, the algorithm proposed in this paper and related algorithms NS and IS algorithm [25] through Neighborhood Sampling (NS) method.IS is another training method [26].IS is similar to NS; however, IS does not need to directly sample neighbors  As can be seen from Table 3, the proposed algorithm in this paper has fewer rounds than the existing sampling algorithm on different data sets, which can be reduced by up to 10 times and has shorter running times.

Conclusion
is section mainly introduces the process of making recommendations based on a heterogeneous graph convolution neural network.First, the research motivation of the algorithm is introduced, and the shortcomings of the existing recommendation algorithms based on heterogeneous information networks in accurately mining features and patterns and calculating results are analyzed.en, a recommendation algorithm based on a graph convolution neural network for heterogeneous information networks is proposed.Second, the basic concepts of the HGCR algorithm are introduced, and the problems to be solved are defined through these concepts.Furthermore, the overall framework of the HGCR algorithm is introduced.First, the basic idea of the HGCR algorithm is summarized.en, the detailed process of implementing the H-GCN algorithm is introduced, which is explained from the aspects of the transfer function and regularization function.Furthermore, the fusion process of the matrix factorization algorithm and H-GCN algorithm, the determination of the objective function, and the model learning of the solution algorithm are introduced.Finally, the complexity of the algorithm is analyzed.Furthermore, a large number of experiments are conducted on real data sets and synthetic data sets to verify the effectiveness and recommendation quality of the HGCR algorithm.

iFigure 1 :
Figure 1: Example of the process of HGCR training.

Figure 3 :
Figure 3: Process of information convergence.

Figure 15 :Figure 16 :Figure 17 :
Figure 15: Performance of the number of iterations on Douban Movie.

Table 1 :
Related notations and explanations.

Table 2 :
[8]tistics of data sets.40%,and20%.For the Yelp data set, due to the sparsity of the data set[8], this paper sets four large shares of training data: 90%, 80%, 70%, and 60%.For each rate, this experiment randomly generates ten evaluation sets and takes the average of the results as the final performance.

Table 3 :
Evaluation of the running effect.