Intelligent recommendation system and method based on knowledge graph

Through the knowledge graph and hypergraph convolutional neural network, the cold start and sparsity problems of traditional recommendation systems in complex relationships and high-dimensional data processing are solved, and the performance of the recommendation system and personalized recommendation effect are improved.

CN118400423BActive Publication Date: 2024-09-03QINGDAO HAIER LEXIN CLOUD TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410850292.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-03
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Traditional recommendation systems face cold start and data sparsity problems when dealing with complex relationships and high-dimensional data. Deep learning methods consume large computing resources and lack interpretability.

Method used

An intelligent recommendation system based on knowledge graphs is used to embed entities and relationships through variational graph autoencoders, and use hypergraph convolutional neural networks to extract high-order features and generate final feature representations for recommendations.

Benefits of technology

It effectively solves the problems of cold start and data sparsity, improves the quality of feature representation and the performance of the recommendation system, and provides high-quality personalized recommendation services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400423B
    Figure CN118400423B
Patent Text Reader

Abstract

The present invention discloses an intelligent recommendation system and method based on knowledge graph, which relates to the field of data processing technology; the system includes: a knowledge graph construction part, an embedding representation part, a hypergraph processing part and a recommendation generation part; the knowledge graph construction part is used to collect data from a data source, perform preprocessing, and extract entities and relationships; the embedding representation part is used to embed entities in the knowledge graph using a variational graph autoencoder, and embed relationships in the knowledge graph using a variational graph autoencoder; the hypergraph processing part is used to construct a hypergraph based on entity embedding representation and relationship embedding representation; the recommendation generation part is used to generate a recommendation list based on the final feature representation. The present invention enables the system to generate high-quality feature representations and provide accurate recommendation services when processing complex relationships and large-scale data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an intelligent recommendation system and method based on a knowledge graph. Background Art

[0002] In recent years, with the rapid development of big data and artificial intelligence technologies, personalized recommendation systems have been widely used in e-commerce, social networks, news push and other fields. Recommendation systems analyze users' historical behaviors and interests to recommend content or products that they may be interested in, thereby improving user experience and platform operational efficiency. At present, methods based on collaborative filtering, matrix decomposition and deep learning are the mainstream technologies of recommendation systems. However, with the continuous expansion of data scale and the increasing complexity of user needs, traditional recommendation technologies face many challenges and problems in dealing with complex relationships and high-dimensional data.

[0003] Collaborative filtering technology is one of the earliest methods used in recommendation systems. It is mainly divided into user-based collaborative filtering and item-based collaborative filtering. User-based collaborative filtering recommends items that are liked by similar users by calculating the similarity between users; item-based collaborative filtering recommends items that are similar to items that users have liked in the past by calculating the similarity between items. Although collaborative filtering technology is simple and easy to implement, it has two main problems: one is the cold start problem. When new users or new items appear, it is difficult to make accurate recommendations due to the lack of historical data; the other is the data sparsity problem. The interaction data between users and items is usually very sparse, resulting in inaccurate similarity calculation, which affects the recommendation effect. Matrix factorization technology is an important method to solve the collaborative filtering problem. Matrix factorization discovers potential user and item features by decomposing the user-item interaction matrix into a user matrix and an item matrix. The most classic matrix factorization method is the latent semantic model (Latent Factor Model), such as SVD (Singular Value Decomposition) and ALS (Alternating Least Squares). These methods can effectively deal with data sparsity problems and provide more accurate recommendations. However, matrix decomposition methods still have some shortcomings: first, they usually assume that user and item features are linearly separable, which makes it difficult to capture complex nonlinear relationships; second, when the data scale is very large, the computational complexity of matrix decomposition is high, making it difficult to update and process in real time. Deep learning technology has made significant progress in recommendation systems in recent years. By building complex neural network models, deep learning methods can capture nonlinear relationships in data and provide more accurate and personalized recommendations. Typical deep learning recommendation models include models based on convolutional neural networks (CNNs), recurrent neural networks (RNNs), and attention mechanisms. These models can effectively process high-dimensional and complex data and improve the performance of recommendation systems. However, deep learning methods also have some challenges: first, the training and inference of the model require a lot of computing resources, making it difficult to deploy in resource-constrained environments; second, deep learning models are usually black box models that lack interpretability, making it difficult for users to understand the reasons for the recommendation. Summary of the invention

[0004] The purpose of the present invention is to provide an intelligent recommendation system and method based on knowledge graph, so that the system can generate high-quality feature representations and provide accurate recommendation services when processing complex relationships and large-scale data.

[0005] In order to solve the above technical problems, the present invention provides an intelligent recommendation system based on a knowledge graph, the system comprising: a knowledge graph construction part, an embedding representation part, a hypergraph processing part and a recommendation generation part; the knowledge graph construction part is used to collect data from a data source, perform preprocessing, construct an initial data set, use the initial data set to construct a knowledge graph, and extract entities and relationships; the embedding representation part is used to use a variational graph autoencoder to embed entities in the knowledge graph, and use a variational graph autoencoder to embed relationships in the knowledge graph; the hypergraph processing part is used to construct a hypergraph based on entity embedding representation and relationship embedding representation, use a hypergraph convolutional neural network to extract high-order features, and fuse the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate a final feature representation; the recommendation generation part is used to generate a recommendation list based on the final feature representation.

[0006] Furthermore, the knowledge graph construction part includes: a data collection unit, an entity and relationship processing unit and a knowledge graph construction unit; the data collection unit is used to collect data from a data source, perform data cleaning and data standardization on the data collected from the data source, and construct an initial data set; the entity and relationship processing unit is used to extract entities from the initial data set using named entity recognition technology; use relationship extraction technology to extract relationships between entities from the initial data set; link the same entities and relationships to remove redundant information; combine entities and relationships to generate triples ;in, Indicates entities, Indicates entities, Indicates The knowledge graph construction unit is used to integrate entities, relationships and triples to finally form a knowledge graph. ;in, Represents the entity set after removing redundant information, represents the set of relations after removing redundant information, Represents the triple set consisting of all triples.

[0007] Furthermore, the data sources include at least: social media platforms, e-commerce platforms, news websites, forums and blogs.

[0008] Furthermore, in the embedding representation part, when the variational graph autoencoder is used to embed the entities in the knowledge graph, the input entity The set of relationships associated with it ; The entity embedding is expressed as: ;in, is a latent variable, as an entity Entity embedding representation of Indicates that the entity and its corresponding relationship set Input to the Variational Graph Autoencoder middle; is from a standard normal distribution The noise vector sampled in ; Represents element-wise multiplication; is the standard deviation of the latent variable, representing the entity in the latent space predicted by the variational graph autoencoder The variance of is the mean of the latent variables, representing the entity in the latent space predicted by the encoder The mean of .

[0009] Furthermore, in the embedding representation part, when the relationship in the knowledge graph is embedded using the variational graph autoencoder, the input relationship of the variational graph autoencoder The set of entities connected to it ; The relationship embedding is expressed as: ; is the weight matrix used to map the concatenated vectors to the embedding space Representing relationships Vectors and Entity Collections to combine the relationship with its associated entity; is the bias vector, used for linear transformation; It is a collection of entities Take the average and get the corresponding average vector.

[0010] Furthermore, the mean of the latent variable Use the following formula to calculate:

[0011] ;

[0012] in and are the preset first mean weight matrix and second mean weight matrix respectively, is the mean bias vector; Representation and Entity The size of the associated set of relations, i.e., entities The number of relationships associated; the standard deviation of the latent variable Use the following formula to calculate:

[0013] ;

[0014] in, is a soft adding function, defined as: ;

[0015] is a function variable; is the variance weight matrix; is the variance bias vector.

[0016] Furthermore, in the hypergraph processing part, the process of constructing a hypergraph based on the entity embedding representation and the relationship embedding representation specifically includes: regarding the entity embedding representation as a node in the hypergraph; regarding the relationship embedding representation as a hyperedge in the hypergraph; if the entity corresponding to the entity embedding representation and the relationship corresponding to the relationship embedding representation are associated, then in the hypergraph, the node corresponding to the entity embedding representation and the hyperedge corresponding to the relationship embedding representation are connected.

[0017] Furthermore, the hypergraph convolutional neural network of the hypergraph processing part is expressed using the following formula:

[0018] ;

[0019] in, For the The node feature matrix of the layer; For the The node feature matrix of the layer; is the adjacency matrix of the hypergraph, which represents the connection relationship between nodes and hyperedges; is the degree matrix of the node, a diagonal matrix whose diagonal elements are the degrees of the nodes; is the degree matrix of the hyperedge, a diagonal matrix whose diagonal elements are the degrees of the hyperedges; is the hypergraph weight matrix, which is used to adjust the relationship weights between nodes and hyperedges; is the activation function; after performing multi-layer convolution operations on the hypergraph using the hypergraph convolutional neural network, high-order features are obtained for:

[0020] ;

[0021] in, is the number of layers of the hypergraph convolutional neural network; the following formula is used to fuse the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate the final feature representation :

[0022] ;

[0023] in, First fusion coefficient; The second fusion coefficient; The third fusion coefficient; The entity embedding representation matrix, where each element is ; is the relation embedding representation matrix, where each element is .

[0024] Furthermore, in the recommendation generation part, the specific process of generating a recommendation list based on the final feature representation includes: preprocessing the target data, constructing a target data set, using the target data set to construct a target knowledge graph, and extracting target entities and target relationships; using a variational graph autoencoder to obtain a target entity embedding representation of a target entity in the target knowledge graph, using a variational graph autoencoder to obtain a target relationship embedding representation of a target relationship in the target knowledge graph, constructing a target hypergraph based on the target entity embedding representation and the target relationship embedding representation, using a hypergraph convolutional neural network to perform a convolution operation on the target hypergraph, extracting target high-order features, and fusing the target high-order features obtained after the convolution operation with the target entity embedding representation and the target relationship embedding representation to generate a final target feature representation; the final target feature representation is a subset of the final feature representation, obtaining the central element of the final target feature representation, and then finding the element corresponding to the central element from the final feature representation, and generating a recommendation list from near to far in the final feature representation with the element as the center according to the distance from the element.

[0025] An intelligent recommendation method based on knowledge graph, the method comprising: collecting data from a data source, performing preprocessing, constructing an initial data set, using the initial data set to construct a knowledge graph, and extracting entities and relationships; using a variational graph autoencoder to embed entities in the knowledge graph, and using a variational graph autoencoder to embed relationships in the knowledge graph; constructing a hypergraph based on entity embedding representation and relationship embedding representation, using a hypergraph convolutional neural network to extract high-order features, fusing the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate a final feature representation; and generating a recommendation list based on the final feature representation.

[0026] The intelligent recommendation system and method based on knowledge graph of the present invention have the following beneficial effects: First, the present invention effectively solves the cold start problem and data sparsity problem in the traditional recommendation system by introducing knowledge graph. In the traditional collaborative filtering and matrix decomposition methods, the recommendation effect of new users or new items is often not ideal due to the lack of sufficient historical data. The knowledge graph enables the system to use rich contextual information for recommendation by structured representation of entities and their relationships. Even for new users or new items, other entities related to them can be found through their associations in the knowledge graph, so as to make effective recommendations. For example, the system can find similar users in the knowledge graph through the basic information of users (such as age, occupation, etc.), and recommend items liked by these users, thereby alleviating the cold start problem. In addition, the rich relationship information in the knowledge graph also enables the system to make recommendations through multiple paths when dealing with data sparsity problems, thereby improving the accuracy and diversity of recommendations. Secondly, the present invention uses variational graph autoencoder (VGAE) to embed entities and relationships in the knowledge graph, thereby improving the quality and expression ability of feature representation. VGAE combines the advantages of variational inference and graph neural networks, and can generate high-quality embedded representations in low-dimensional latent space. By encoding entities and relationships in the knowledge graph, the system not only retains the structural information of the original data, but also introduces randomness in the latent space, improving the robustness and generalization of the embedded representation. This enables the system to generate more representative and discriminative feature representations when processing complex and large-scale graph data, thereby improving the recommendation effect. Furthermore, the present invention effectively extracts and aggregates high-order features by constructing a hypergraph and performing convolution operations using a hypergraph convolutional neural network (HGCN). A hypergraph is a graph structure that can represent many-to-many relationships. By treating the entity embedding representation as a node and the relationship embedding representation as a hyperedge, the system constructs a complex relationship network. In this network, the connection relationship between nodes and hyperedges can better reflect the complex interactive information between entities and relationships. HGCN extracts and aggregates local and global information of nodes layer by layer through multi-layer convolution operations, making the final generated high-order feature representation more comprehensive and accurate. High-order features not only contain the node’s own information, but also integrate its position and role in the entire hypergraph structure, thereby improving the overall performance of the recommendation system. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0028] Figure 1A schematic diagram of the system structure of a knowledge graph-based intelligent recommendation system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.

[0030] Example 1: Reference Figure 1 , an intelligent recommendation system based on knowledge graph, the system includes: a knowledge graph construction part, an embedding representation part, a hypergraph processing part and a recommendation generation part; the knowledge graph construction part is used to collect data from a data source, perform preprocessing, construct an initial data set, use the initial data set to build a knowledge graph, and extract entities and relationships; the embedding representation part is used to use a variational graph autoencoder to embed entities in the knowledge graph, and use a variational graph autoencoder to embed relationships in the knowledge graph; the hypergraph processing part is used to construct a hypergraph based on entity embedding representation and relationship embedding representation, use a hypergraph convolutional neural network to extract high-order features, and fuse the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate a final feature representation; the recommendation generation part is used to generate a recommendation list based on the final feature representation.

[0031] Specifically, data collection is to extract useful information from various structured and unstructured data sources, which may include databases, documents, web pages, social media, etc. In the data collection stage, the system uses crawler technology and API interfaces to automatically obtain data. These data are often disorganized and in different formats, so the preprocessing step becomes particularly important. Preprocessing includes data cleaning, format standardization, denoising, and missing value processing. These steps ensure data quality and provide a reliable foundation for the subsequent construction of knowledge graphs. After preprocessing, the system needs to build an initial data set, which contains all the information extracted and cleaned from the data source. Next, the initial data set is used to build a knowledge graph. Knowledge graph is a method of representing data structure in the form of a graph, where nodes represent entities (such as people, places, and items) and edges represent relationships between entities (such as friend relationships, purchase relationships, geographic locations, etc.). In order to build a knowledge graph, the system needs to extract entities and relationships. Entity extraction is to identify important concepts and objects from data, such as identifying people and places mentioned in a news article; relationship extraction is to identify the connections between these entities, such as identifying events that occurred in a certain place for a person. A key step in building a knowledge graph is entity alignment and disambiguation, which is to unify different names representing the same entity in different data sources. For example, a person may have different spellings or aliases in different databases, and the system needs to unify these different names into a standardized entity. In this process, natural language processing technology and machine learning algorithms are widely used to improve the accuracy of entity alignment and disambiguation through semantic analysis and context understanding. In the knowledge graph, the representation of relationships is equally important. The system must not only identify direct relationships between entities, but also identify and build complex multi-level relationships. To this end, the system uses deep learning and graph processing technologies to mine complex relationships and patterns hidden in the data. These technologies not only help the system quickly build knowledge graphs in large-scale data, but also keep the knowledge graph dynamic and real-time through continuous learning and updating.

[0032] The embedding representation part obtains the initial representation of entities and relationships from the knowledge graph. These initial representations are usually high-dimensional and contain a lot of redundant information, so it is very inefficient to use them directly for subsequent recommendation generation. In order to improve computational efficiency and representation quality, the system needs to compress these high-dimensional representations into a low-dimensional space while retaining their semantic and structural information as much as possible. The variational graph autoencoder plays a key role in this process. The working principle of the variational graph autoencoder can be understood as encoding and decoding graph structure data through a neural network. The encoder part converts the high-dimensional graph structure data into a low-dimensional representation in the latent space, while the decoder tries to reconstruct the original data from these low-dimensional representations. In this process, the system not only learns the low-dimensional embedding representation of the nodes in the graph, but also learns the relationship pattern between the nodes. Unlike traditional autoencoders, the variational graph autoencoder also introduces the concept of variational inference. By learning the distribution of latent variables, the generated embedding representation is more robust and generalizable. In actual operation, the variational graph autoencoder first encodes each entity in the knowledge graph and represents it as a probability distribution in the latent space. This distribution is usually represented by mean and variance, which can capture the uncertainty in the entity representation. Next, the system generates a specific embedding vector from this probability distribution by sampling. This embedding vector not only contains the semantic information of the entity, but also captures the complex relationship in the graph structure through the training process of the encoder neural network. Similarly, for the relationship in the knowledge graph, the system also uses a variational graph autoencoder for embedding representation. The goal of the relationship embedding representation is to map the features of the edges in the graph to a low-dimensional space, which can better reflect the association between entities. During the encoding process, the system will take into account the nodes connected by the edge and their features, and learn the low-dimensional representation of the relationship through the multi-layer propagation and nonlinear transformation of the graph neural network. The decoder verifies and optimizes the quality of the embedding representation by reconstructing the features of the edges. The quality of the embedding representation directly affects the subsequent recommendation effect. Therefore, the variational graph autoencoder not only needs to optimize the reconstruction error during the training process, but also needs to consider the balance between the global structural information and local semantic information of the graph. This requires that in the encoding and decoding process, the design of the neural network should make full use of the topological structure of the graph to ensure that the embedding representation can accurately capture the complex patterns between entities and relationships. The embedded representation generated by the variational graph autoencoder not only greatly reduces the computational complexity, but also retains important information in the knowledge graph. These low-dimensional embedding vectors provide high-quality input for subsequent hypergraph processing and recommendation generation, enabling the system to perform effective reasoning and recommendations in high-dimensional data space. The introduction of the variational graph autoencoder gives the intelligent recommendation system powerful capabilities in processing large-scale graph data, especially in dealing with complex entity relationships and multi-level semantic associations, and can show excellent performance.

[0033] In the knowledge graph, entities and relationships often have multi-level and diverse connection patterns. Traditional graph structures can only represent simple binary relationships, that is, the connection between two nodes, while hypergraphs can connect multiple nodes through hyperedges. This ability to represent multi-relationships gives hypergraphs a significant advantage in processing complex data. Hypergraphs can be seen as extending the edges of traditional graphs to multi-node connections, allowing the system to better capture and represent complex multi-node relationship networks. First, the system constructs a hypergraph based on entity embedding representation and relationship embedding representation. Specifically, each hyperedge can connect multiple related entities and relationships, forming a high-dimensional relationship network. In this process, the system dynamically determines the composition of the hyperedge based on the similarity of entities and relationships and their contextual information in the knowledge graph. For example, in a movie recommendation system, a hyperedge may connect multiple viewers and their favorite movies. Such a connection can better represent the common interests of the audience. To ensure the rationality of hypergraph construction, the system uses a variety of similarity metrics, such as cosine similarity, Euclidean distance, or Jaccard similarity, to calculate the similarity between entities and relationships, and dynamically adjust the composition of hyperedges based on these similarities. Next, the system uses a hypergraph convolutional neural network (HGCN) to perform convolution operations on the constructed hypergraph. Unlike traditional graph convolutional neural networks (GCNs), HGCN needs to consider the complex interactions between multiple nodes connected by hyperedges when processing hypergraphs. The essence of the convolution operation is to integrate the features of each node with the features of its neighboring nodes through neighborhood aggregation to extract high-order features. In a hypergraph, this integration process is more complicated because the number of nodes connected by each hyperedge is not fixed, and each node may belong to multiple hyperedges. HGCN can effectively handle these complex relationships by designing special convolution operators, thereby extracting high-order feature representations. In the convolution operation, HGCN first performs weighted aggregation on the features of each node and its neighboring nodes. During the aggregation process, the system considers the importance of each node in the hyperedge and the similarity between node features to generate a new node feature representation. This aggregation operation not only retains the local information of the node, but also captures the global structural information through the neighborhood nodes connected by the hyperedge. In order to further improve the effect of the convolution operation, the system will introduce a multi-layer convolution structure to gradually capture and aggregate higher-order feature information through multi-level feature extraction. After the convolution operation, the system will obtain a high-order feature representation of each node. In order to further improve the accuracy of the representation, the system will fuse these high-order features with the previous entity embedding representation and relationship embedding representation. This fusion not only retains the initial semantic information, but also combines the structural information extracted by the convolution operation, making the final feature representation richer and more accurate.During the fusion process, the system will use methods such as feature splicing or weighted averaging to integrate features from different sources to ensure that the fused features can fully reflect the multi-dimensional information of the node. In the fusion operation, feature splicing is to splice high-order features, entity embedding representations, and relationship embedding representations along the feature dimension to form a higher-dimensional feature vector. This method can retain the independence of each feature and learn the interaction between different features through further processing of the neural network. Weighted averaging assigns different weights to features from different sources based on the importance of the features, and generates the final feature representation through weighted averaging. This method can emphasize important features during the fusion process while reducing the impact of redundant information.

[0034] First, the recommendation generation part receives the final feature representation from the hypergraph processing part after convolution operation and feature fusion processing. This feature representation contains multi-dimensional information of users and items, retaining the initial semantic information and combining the high-order structural information extracted by the hypergraph convolutional neural network. The recommendation generation part uses these rich feature representations to calculate the user's interest in each candidate item through a series of recommendation algorithms and generates a recommendation list. In the recommendation generation process, collaborative filtering is a commonly used method. Collaborative filtering can be divided into user-based collaborative filtering and item-based collaborative filtering. User-based collaborative filtering makes recommendations by calculating the similarity between users, assuming that similar users will like similar items; while item-based collaborative filtering makes recommendations by calculating the similarity between items, assuming that users will like other items similar to the items they liked before. In either method, the system will use the high-quality feature representation extracted from the knowledge graph and the hypergraph convolutional neural network to improve the accuracy of similarity calculation, thereby improving the recommendation effect. In addition to collaborative filtering, recommendation algorithms based on matrix decomposition are also widely used in recommendation generation. Matrix decomposition decomposes the user-item interaction matrix into low-dimensional user matrices and item matrices, thereby mining the potential features of users and items. Combined with the feature representations generated by the knowledge graph and hypergraph processing parts, the system can introduce more contextual information and relationship data in the matrix decomposition process, improving the quality of feature extraction and the accuracy of recommendations. By optimizing the matrix decomposition model, the system can better predict the user's interest in unexposed items and generate a personalized recommendation list. In addition, deep learning methods have also been widely used in recommendation generation. Neural network models, especially deep neural networks, convolutional neural networks, and recurrent neural networks, can handle complex nonlinear relationships and high-dimensional data. In the recommendation generation part, the system can build a deep learning model that takes the user's historical behavior, social relationships, and item features as input, and learns the user's preference pattern and the feature representation of items through nonlinear transformations of multi-layer neural networks. Combined with the high-quality features extracted from the knowledge graph and hypergraph processing parts, the deep learning model can perform feature extraction and preference prediction at a higher level of abstraction, thereby generating more accurate recommendation results. Another important method is content-based recommendation. This method makes recommendations by analyzing the content features of items, assuming that users will like other items that are similar in content to the items they liked before. The system will use the feature representation generated by the knowledge graph and hypergraph processing part to deeply analyze and represent the content features of the items, so as to perform more sophisticated similarity calculations and recommendation generation in the content dimension. Combined with the user's historical behavior data, the content-based recommendation method can find the candidate items that best match the user's interests in the multi-dimensional feature space of the items and generate a personalized recommendation list.

[0035] Embodiment 2: The knowledge graph construction part includes: a data collection unit, an entity and relationship processing unit and a knowledge graph construction unit; the data collection unit is used to collect data from a data source, perform data cleaning and data standardization on the data collected from the data source, and construct an initial data set; the entity and relationship processing unit is used to extract entities from the initial data set using named entity recognition technology; use relationship extraction technology to extract relationships between entities from the initial data set; link the same entities and relationships to remove redundant information; combine entities and relationships to generate triples ;in, Indicates entities, Indicates entities, Indicates The knowledge graph construction unit is used to integrate entities, relationships and triples to finally form a knowledge graph. ;in, Represents the entity set after removing redundant information, represents the set of relations after removing redundant information, Represents the set of triples consisting of all triples.

[0036] Specifically, due to the uneven data formats and quality of these data sources, the data collection unit needs to clean and standardize the acquired data. The data cleaning process includes operations such as removing noise data, repairing missing values, and correcting erroneous data to ensure the accuracy and consistency of the data. Data standardization converts data from different sources into a unified format and structure to facilitate subsequent processing and analysis. After the data cleaning and standardization are completed, an initial data set is constructed as the basis for subsequent processing. The entity and relationship processing unit is the core link of the entire knowledge graph construction process. First, the system uses named entity recognition technology to identify various entities from the initial data set. Named entity recognition is a natural language processing technology that extracts this information by identifying specific entities such as names of people, places, and institutions in the text. After identifying the entities, the system uses relationship extraction technology to identify the relationship between entities from the initial data set. Relationship extraction technology identifies the association between entities by analyzing the contextual information of entities in the text, such as the working relationship in "someone works in a certain place". The entity and relationship processing unit also needs to link the same entities and relationships to remove redundant information. For example, different data sources may use different names or descriptions to refer to the same entity, and the system needs to unify these duplicate entities into a standard entity. To achieve this, the system uses entity alignment technology to identify and merge identical entities and relationships by comparing the attributes and contextual information of the entities. This process not only reduces redundant information, but also improves the accuracy and consistency of the knowledge graph. Next, the entity and relationship processing unit combines entities and relationships to generate triples. The form of the triple is ,in and Represents an entity, Represents the relationship between entities. In this way, the system represents all entities and relationships in a structured manner, forming a set of triples containing rich semantic information. The triple generation process needs to consider the logical relationship and contextual information between entities and relationships to ensure that the generated triples can accurately reflect the structure and semantics in the knowledge graph. The task of the knowledge graph construction unit is to integrate these extracted entities, relationships and generated triples to finally form a complete knowledge graph. .in, Represents the entity set after removing redundant information, represents the set of relations after removing redundant information, Represents a set of triples consisting of all triples. During the knowledge graph construction process, the system will integrate and optimize all entities, relationships, and triples to ensure that the structure of the knowledge graph is reasonable and the information is complete. The knowledge graph construction unit also needs to handle the dynamic update of the knowledge graph. Since the information of the data source is constantly changing, the system needs to update the knowledge graph regularly or in real time to ensure the timeliness and accuracy of its content. This process includes two methods: incremental update and full update. Incremental update only updates the changed part, while full update rebuilds the entire knowledge graph. Through this dynamic update mechanism, the system can keep the knowledge graph up to date and provide a reliable data foundation for subsequent recommendation generation.

[0037] Embodiment 3: The data sources include at least: social media platforms, e-commerce platforms, news websites, forums and blogs.

[0038] Embodiment 4: In the embedding representation part, when using a variational graph autoencoder to embed entities in a knowledge graph, the input entity The set of relationships associated with it ; The entity embedding is expressed as: ;in, is a latent variable, as an entity Entity embedding representation of Indicates that the entity and its corresponding relationship set Input to the Variational Graph Autoencoder middle; is from a standard normal distribution The noise vector sampled in ; Represents element-wise multiplication; is the standard deviation of the latent variable, representing the entity in the latent space predicted by the variational graph autoencoder The variance of is the mean of the latent variables, representing the entity in the latent space predicted by the encoder The mean of .

[0039] Specifically, the system needs to encode the entities in the knowledge graph and their associated relationships. , the system not only considers the entity's own information, but also combines its associated relationship set The purpose of this process is to generate latent variables that can reflect the structural characteristics of the graph by comprehensively considering the entities and their relationships. In the variational graph autoencoder, this latent variable is the mapping function of the encoder The mapping function is to compress high-dimensional entity and relationship information into a low-dimensional latent space and generate a mean and standard deviation Next, the system passes through the mean and standard deviation Generating latent variables The concept of variational inference is introduced here, by combining the mean, standard deviation and noise vector , generating diverse embedding representations. Specifically, the latent variables Expressed as ,in represents element-wise multiplication, is a noise vector that follows a standard normal distribution. The introduction of this process makes the generated embedding representation random and diverse, and can better reflect the characteristics of entities in different contexts. In this formula, is the mean of the latent variables, representing the entity in the latent space predicted by the encoder The calculation of the mean involves comprehensive consideration of the entity and its relationship information, and extracts the main features of the entity through the nonlinear transformation of the neural network. The role of the mean is to provide a basic embedding representation so that the generated latent variables have a clear position in the latent space. is the standard deviation of the latent variable, indicating the entity in the latent space predicted by the encoder The introduction of standard deviation enables the generated embedding representation to reflect the uncertainty and variability of the data. By combining standard deviation and noise vector, the system can generate diverse embedding representations in the latent space, thereby improving the robustness and generalization ability of the model. This is especially important when dealing with noisy and sparse data. It follows the standard normal distribution, which introduces randomness so that each generated embedding representation has a certain degree of randomness and diversity. This process enables the variational graph autoencoder to generate different samples in the latent space, thereby improving the generalization and robustness of the embedding representation. By element-by-element multiplication, the noise vector is combined with the standard deviation, so that the generated latent variables have the characteristics of random distribution in the latent space. In this way, the system can not only capture the complex relationships in the graph structure, but also generate diversified and robust embedding representations in the latent space. This embedding representation method has significant advantages when processing complex graph structure data. First, it can compress high-dimensional entity and relationship information into a low-dimensional latent space, thereby improving computational efficiency and representation quality. Second, by introducing the randomness of variational inference, the system can generate diverse and robust embedding representations, thereby improving the generalization ability of the model. In practical applications, this embedding representation method can significantly improve the performance of the recommendation system. Through high-quality embedding representations, the system can better capture the relationship between user interests and item features, thereby providing more accurate recommendation results in personalized recommendations. For example, in a movie recommendation system, through the embedded representations of movies and users generated by the variational graph autoencoder, the system can more accurately predict users' interests in different movies and thus recommend movies that users are more likely to like.

[0040] Embodiment 5: In the embedding representation part, when using a variational graph autoencoder to embed the relationship in the knowledge graph, the input relationship of the variational graph autoencoder The set of entities connected to it ; The relationship embedding is expressed as: ; is the weight matrix used to map the concatenated vector to the embedding space; Representing relationships Vectors and Entity Collections to combine the relationship with its associated entity; is the bias vector, used for linear transformation; It is a collection of entities Take the average and get the corresponding average vector.

[0041] Specifically, in this process, the variational graph autoencoder first transforms the relationship The set of entities connected to it As input. For each relationship, the system considers not only the information of the relationship itself, but also the information of the set of entities associated with it. This approach ensures that the embedding representation not only reflects the independent characteristics of the relationship, but also captures the interactive information between the entities related to it. To achieve this, the system first embeds the relationship and entity collection Specifically, the system will The vector represents the average vector of the entity set connected to it. The average vector here is obtained by The purpose of this step is to extract the overall characteristics of the entity set through the average representation, thereby simplifying the representation of complex relationships between entities. By connecting the relationship vector and the average vector of the entity set, the system forms a comprehensive vector containing relationship and entity information. Next, the system inputs this comprehensive vector into the linear transformation layer of the variational graph autoencoder. In this step, the system uses the weight matrix and the bias vector Perform a linear transformation on the comprehensive vector. The purpose of this process is to map the high-dimensional comprehensive vector to a low-dimensional latent space to generate latent variables. When performing a linear transformation, the weight matrix It plays the role of weighted summation of each part of the comprehensive vector, and the bias vector By adjusting the center position of the result, the generated latent variable is more consistent with the distribution of the latent space. After the linear transformation, the system applies an activation function to increase the nonlinearity of the embedding representation. This activation function usually chooses the hyperbolic tangent function (tanh), which can compress the result of the linear transformation into a fixed range, making the embedding representation smoother and more stable. Through the action of the activation function, the system generates the final relational embedding representation. This embedding representation not only contains the relation ’s information, and also integrates the overall characteristics of its associated entity set, so as to more comprehensively reflect the status and role of the relationship in the knowledge graph. It is worth noting that the key in this process is how to effectively combine the information of relationships and entities. By connecting the relationship vector and the average vector of the entity set, the system can capture the characteristics of both relationships and entities in a comprehensive vector. The application of linear transformation and activation function ensures that this comprehensive vector can be effectively mapped to a low-dimensional latent space, thereby generating a high-quality embedding representation. In this way, the variational graph autoencoder can generate an embedding representation with high robustness and generalization ability when processing relationships in the knowledge graph. This embedding representation can not only effectively capture the complex interactions between relationships and entities, but also simplify the subsequent calculation and analysis process through the representation of low-dimensional latent space. In practical applications, this high-quality relationship embedding representation can significantly improve the performance of the recommendation system, enabling the system to more accurately predict users’ interests and needs when making personalized recommendations.

[0042] Example 6: Mean of latent variables Use the following formula to calculate:

[0043] ;

[0044] in and are the preset first mean weight matrix and second mean weight matrix respectively, is the mean bias vector; Representation and Entity The size of the associated set of relations, i.e., entities The number of relationships associated; the standard deviation of the latent variable Use the following formula to calculate:

[0045] ;

[0046] in, is a soft adding function, defined as: ;

[0047] is a function variable; is the variance weight matrix; is the variance bias vector.

[0048] Specifically, the mean of the latent variable The calculation formula emphasizes the The formula shows that the mean is obtained by combining the The process involves averaging the characteristics of all the associated relationships. Apply linear transformation and nonlinear activation function. Specifically, the entity vector First, through a weight matrix Perform a linear transformation and add a bias , and then a nonlinear transformation is performed through the hyperbolic tangent (tanh) function. The role of the tanh function is to introduce nonlinearity and increase the expressive power of the embedded representation, so that the transformed vector can capture the complex characteristics of the entity. Next, the transformed vector is passed through the second weight matrix Perform further linear transformation to generate the relationship Finally, all these feature representations are summed and averaged to obtain the entity The mean . This mean calculation formula takes a weighted average of the features of all relationships, ensuring that the embedding not only reflects the characteristics of the entity itself, but also takes into account the information of its relationships. This is particularly important in graph-structured data, because the characteristics of an entity depend not only on itself, but also on the surrounding nodes and relationships. By averaging the features of the relationships, the system can more accurately capture the position and role of the entity in the entire graph structure, thereby generating a more comprehensive and accurate embedding representation. In addition, the standard deviation of the latent variable The calculation formula uses the softplus function, which is a smooth nonlinear activation function defined as The standard deviation is calculated by first converting the entity vector Through a weight matrix Perform a linear transformation and add a bias The purpose of this process is to map the high-dimensional entity vector into a new feature space to capture the multi-faceted characteristics of the entity. Then, the transformed vector is nonlinearly transformed through the softplus function to generate the standard deviation of the latent variable . The introduction of the softplus function ensures the non-negativity of the standard deviation and smoothes extreme values ​​to avoid numerical instability. The standard deviation indicates the confidence of the encoder in the entity embedding representation, that is, the uncertainty of the distribution of the latent variable. By introducing the standard deviation, the system can generate diverse embedding representations in the latent space, thereby improving the robustness and generalization ability of the representation. This method of generating latent variables by calculating the mean and standard deviation combines the advantages of linear transformation and nonlinear activation function, and can capture the entity characteristics while ensuring that the generated embedding representation has sufficient diversity and stability. The linear transformation and tanh function in the mean calculation enable the system to capture the complex characteristics of the entity and its association, while the softplus function in the standard deviation calculation ensures the diversity and robustness of the embedding representation in the latent space. In practical applications, this method can significantly improve the performance of the recommendation system. Through high-quality embedding representations, the system can better capture the relationship between user interests and item features, thereby providing more accurate recommendation results in personalized recommendations. For example, on an e-commerce platform, through the embedding representations of users and items generated by these calculation formulas, the system can more accurately predict the user's interest in different items, thereby recommending items that the user is more likely to buy. This not only improves the accuracy of recommendations, but also enhances the user experience, increasing user satisfaction and stickiness on the platform. In addition, this method also performs well when processing complex graph structure data. Entities and relationships in knowledge graphs often have complex structures and diverse interactions. Through this embedding representation method, the system can effectively capture and represent these complex relationships, making the generated embedding representation more representative and practical. This is of great significance for practical application scenarios that require processing large-scale complex data.

[0049] Embodiment 7: In the hypergraph processing part, the process of constructing a hypergraph based on the entity embedding representation and the relationship embedding representation specifically includes: regarding the entity embedding representation as a node in the hypergraph; regarding the relationship embedding representation as a hyperedge in the hypergraph; if the entity corresponding to the entity embedding representation and the relationship corresponding to the relationship embedding representation are associated, then in the hypergraph, the node corresponding to the entity embedding representation and the hyperedge corresponding to the relationship embedding representation are connected.

[0050] Specifically, in the knowledge graph, each entity is embedded to generate a low-dimensional vector, which contains the main features and relationship information of the entity. In the hypergraph, these entity embedding representations are regarded as nodes, and each node represents a specific entity. For example, if a knowledge graph has entities such as "user", "product", and "location", after these entities are embedded, the corresponding nodes in the hypergraph represent these specific users, products, and locations respectively.

[0051] Next, the system treats the relation embedding representation as a hyperedge in the hypergraph. The relation embedding representation is generated by encoding the relation information in the knowledge graph, and is usually also a low-dimensional vector that contains the main features of the relation. In a hypergraph, a hyperedge is different from a traditional graph edge. It can connect multiple nodes and represent complex relationships between multiple entities. For example, a relationship "user purchases goods" may be just a simple edge in a traditional graph structure, but in a hypergraph, this relationship can be used as a hyperedge to connect "user", "goods" and other related entities at the same time. When constructing a hypergraph, the system needs to associate the nodes corresponding to the entity embedding representation with the hyperedges corresponding to the relation embedding representation. If the entity corresponding to an entity embedding representation is associated with the relationship corresponding to a relation embedding representation, the entity node and the relation hyperedge are connected in the hypergraph. For example, in an e-commerce knowledge graph, if "user A" purchases "goods B" and this purchase behavior is described by a relation embedding representation "purchase", then in the hypergraph, the nodes "user A" and "goods B" will be connected by a hyperedge "purchase". The core of this process is to make full use of the embedded representation of entities and relationships through the hypergraph structure to capture high-order relational information in the knowledge graph. Traditional graph structures can only represent simple binary relationships, that is, the connection between two nodes, while hypergraphs can represent complex relationships between multiple nodes, allowing the system to comprehensively consider more contextual information and relational patterns when performing feature extraction and recommendation calculations. By constructing a hypergraph, the system can better capture and represent complex relational networks in the knowledge graph. For example, in a social network knowledge graph, not only can the friendship between users be represented, but also complex relationships such as common interests and jointly participated activities between multiple users can be simultaneously represented through hyperedges. This representation method not only improves the richness of feature extraction, but also enhances the robustness and accuracy of the recommendation system when processing complex data. During the hypergraph processing process, the system can also use the hypergraph convolutional neural network (HGCN) to perform convolution operations on the hypergraph to extract high-order features. Through HGCN, the system can perform feature aggregation on the hypergraph structure, integrating the features of each node with the features of its neighboring nodes, thereby generating a richer and more efficient feature representation. For example, through multi-layer convolution operations, the system can gradually extract and aggregate the local and global information of the nodes, so that the generated feature representation contains not only the node’s own information, but also its position and role in the entire graph structure.

[0052] Example 8: The hypergraph convolutional neural network of the hypergraph processing part is expressed using the following formula:

[0053] ;

[0054] The core of the formula is to gradually extract and aggregate node features in the hypergraph through multiple matrix multiplications and nonlinear transformations. First, the node feature matrix Indicates Each row represents the feature vector of a node. In each convolution operation, the node feature matrix is ​​concatenated with the adjacency matrix of the hypergraph. Perform multiple multiplication operations. Adjacency matrix Represents the connection relationship between nodes and hyperedges. Through this matrix, the system can capture the complex interaction information between nodes and hyperedges. In the formula, the node feature matrix Sequential and adjacency matrices Sum degree matrix and Normalization is performed to ensure numerical stability and effectiveness in convolution operations. and is a diagonal matrix representing the degree of nodes and hyperedges respectively. The degree is the number of connections between nodes or hyperedges in the graph and is used to normalize the adjacency matrix. In the convolution operation, the adjacency matrix is ​​normalized to avoid the connection weights between nodes and hyperedges being too large or too small, thereby ensuring the balance of feature aggregation. Specifically, the adjacency matrix Degree Matrix and In the middle, the element-by-element normalization is performed so that the processed adjacency matrix can more accurately reflect the relative importance between nodes and hyperedges. Next, the hypergraph weight matrix is introduced to adjust the relationship weights between nodes and hyperedges. is a learnable parameter that is continuously optimized through the training process, so that the convolution operation can better capture and reflect the complex relationships in the graph structure. The introduction of the weight matrix makes each convolution operation not only a simple feature aggregation, but also includes the weighting of the importance of the features, further improving the expressiveness of the feature representation. After performing these matrix operations, the activation function The result of being applied to the convolution operation. It is usually a nonlinear function, such as ReLU or tanh, which is used to introduce nonlinear transformations and increase the expressiveness of the model. Through the application of activation functions, the system can better capture the nonlinear relationship in node features, making the generated feature representation more representative and discriminative. This process is repeated in multiple layers of convolution operations, and each layer of convolution will further extract and aggregate features based on the previous layer of convolution. Through multiple layers of convolution operations, the system can gradually capture and aggregate the local and global information of the nodes, so that the high-order feature representation generated in the end contains not only the node’s own information, but also its position and role in the entire hypergraph structure. Finally, after multiple layers of convolution operations, the high-order feature representation generated by the system Through the activation function Applied to the last layer node feature matrix This high-order feature representation contains the feature information of nodes that are gradually aggregated in multi-layer convolution operations, and is a comprehensive expression of nodes and their relationships. Under the framework of hypergraph convolutional neural networks, this multi-layer convolution operation and feature aggregation method can effectively capture and represent complex many-to-many relationships, improving the accuracy and effectiveness of the recommendation system.

[0055] in, For the The node feature matrix of the layer; For the The node feature matrix of the layer; is the adjacency matrix of the hypergraph, which represents the connection relationship between nodes and hyperedges; is the degree matrix of the node, a diagonal matrix whose diagonal elements are the degrees of the nodes; is the degree matrix of the hyperedge, a diagonal matrix whose diagonal elements are the degrees of the hyperedges; is the hypergraph weight matrix, which is used to adjust the relationship weights between nodes and hyperedges; is the activation function; after performing multi-layer convolution operations on the hypergraph using the hypergraph convolutional neural network, high-order features are obtained for:

[0056] ;

[0057] in, is the number of layers of the hypergraph convolutional neural network; the following formula is used to fuse the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate the final feature representation :

[0058] ;

[0059] in, First fusion coefficient; The second fusion coefficient; The third fusion coefficient; The entity embedding representation matrix, where each element is ; is the relation embedding representation matrix, where each element is .

[0060] Specifically, first, the hypergraph convolutional neural network extracts node features through layer-by-layer convolution operations. Each layer of convolution operations involves multiple multiplications of the node feature matrix and the hypergraph adjacency matrix. The adjacency matrix represents the connection relationship between nodes and hyperedges. Through this matrix, the system can capture the complex interaction information between nodes and hyperedges. In order to ensure the numerical stability and effectiveness in the convolution operation, the adjacency matrix needs to be normalized by the degree matrix. The degree matrix is ​​a diagonal matrix whose diagonal elements represent the degrees of nodes and hyperedges, that is, the number of their connections. In the convolution operation, by normalizing the adjacency matrix by the degree matrix, the system can more accurately reflect the relative importance between nodes and hyperedges and avoid the problem of too large or too small connection weights. After performing these matrix operations, the hypergraph weight matrix is ​​introduced to adjust the relationship weights between nodes and hyperedges. The weight matrix is ​​a learnable parameter that is continuously optimized through the training process, so that the convolution operation can better capture and reflect the complex relationships in the graph structure. The introduction of the weight matrix makes each convolution operation not only a simple feature aggregation, but also includes the weighting of the importance of the features, further improving the expressiveness of the feature representation. In each layer of convolution operation, the activation function is used to introduce nonlinear transformations to increase the expressiveness of the model. Common activation functions such as ReLU or tanh can compress the results of linear transformations into a fixed range, making the embedded representation smoother and more stable. Through the application of activation functions, the system can better capture the nonlinear relationship in the node features, making the generated feature representation more representative and discriminative. Multi-layer convolution operations are repeated continuously, and each layer of convolution will further extract and aggregate features based on the previous layer of convolution. Through multi-layer convolution operations, the system can gradually capture and aggregate the local and global information of the nodes, so that the high-order feature representation generated in the end contains not only the node's own information, but also its position and role in the entire hypergraph structure. After multi-layer convolution operations, the high-order feature representation generated by the system contains the feature information gradually aggregated by the node in the multi-layer convolution operations, which is a comprehensive expression of the nodes and their associations. After extracting high-order features, the system fuses these high-order features with the entity embedding representation and the relationship embedding representation to generate the final feature representation. This process combines high-order features, entity embedding representations, and relationship embedding representations through a weighted fusion method. Each feature representation corresponds to a different weight coefficient. By adjusting these weight coefficients, the system can balance the contribution of features from different sources, thereby generating a more comprehensive and accurate final feature representation.

[0061] Embodiment 9: In the recommendation generation part, the specific process of generating a recommendation list based on the final feature representation includes: preprocessing the target data, constructing a target data set, using the target data set to construct a target knowledge graph, and extracting target entities and target relationships; using a variational graph autoencoder to obtain a target entity embedding representation of a target entity in the target knowledge graph, using a variational graph autoencoder to obtain a target relationship embedding representation of a target relationship in the target knowledge graph, constructing a target hypergraph based on the target entity embedding representation and the target relationship embedding representation, performing a convolution operation on the target hypergraph using a hypergraph convolutional neural network, extracting target high-order features, fusing the target high-order features obtained after the convolution operation with the target entity embedding representation and the target relationship embedding representation, and generating a final target feature representation; the final target feature representation is a subset of the final feature representation, obtaining a central element of the final target feature representation, and then finding an element corresponding to the central element from the final feature representation, and generating a recommendation list from near to far in the final feature representation with the element as the center according to the distance from the element.

[0062] Specifically, the central element is the most representative and important element in the feature representation space, which is usually determined by a certain measurement method. This measurement method can be a distance-based measurement, such as Euclidean distance, cosine similarity, etc., or it can be based on the weight calculation of other features. The selection of the central element directly affects the quality of the recommendation results, because it serves as a reference point and determines the order and priority of the recommended objects. After determining the central element, the system finds the element corresponding to the central element in the final feature representation. This corresponding element is the element with the highest similarity to the central element in the feature representation space, that is, their distance in the feature space is the smallest. By finding this corresponding element, the system can determine a representative starting point, thereby providing a basis for recommendation generation. This starting point element represents the core interests or needs of the user and is the benchmark for generating the recommendation list. Next, with this central element as the benchmark, the system begins to calculate the distance between other elements and the central element. This step is achieved through distance measurement in the feature representation space, and commonly used methods include Euclidean distance and cosine similarity. Euclidean distance calculates the straight-line distance between two vectors in multidimensional space, reflecting their overall similarity; cosine similarity reflects their directional similarity by calculating the angle between two vectors. Regardless of which method is used, the calculation result can reflect the similarity between other elements and the central element, thus providing a basis for sorting the recommendation list. After calculating the distance between all elements and the central element, the system sorts these elements from near to far according to the distance. The closer the distance, the higher the similarity between the two elements, and the more in line with the user's interests or needs. Therefore, in the recommendation list, the elements closest to the central element will appear first, gradually extending to the distant elements. This sorting method can ensure that the first few elements in the recommendation list are the most in line with the user's interests, thereby improving the accuracy of the recommendation and user satisfaction. The core of the entire recommendation list generation process lies in distance calculation and sorting. The advantage of this method is that it can make full use of the similarity information in the feature representation space, and ensure the relevance and accuracy of the recommendation results by accurately calculating the distance between elements. Through this method, the system can quickly find the recommended objects that best meet the user's needs in a large data set, and arrange them according to priority, thereby providing users with personalized and efficient recommendation services. In addition, this process is highly scalable and robust. No matter how large the data set is or how complex the feature representation space is, the system can effectively process and generate high-quality recommendation lists by calculating similarities and distances. This method is not only suitable for product recommendations on e-commerce platforms, but can also be applied to friend recommendations on social networks, article recommendations on content platforms, and many other scenarios, and has broad application prospects.

[0063] Embodiment 10: A method for intelligent recommendation based on a knowledge graph, the method comprising: collecting data from a data source, performing preprocessing, constructing an initial data set, using the initial data set to construct a knowledge graph, and extracting entities and relationships; using a variational graph autoencoder to embed entities in the knowledge graph, and using a variational graph autoencoder to embed relationships in the knowledge graph; constructing a hypergraph based on the entity embedding representation and the relationship embedding representation, using a hypergraph convolutional neural network to extract high-order features, fusing the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate a final feature representation; and generating a recommendation list based on the final feature representation.

[0064] The present invention is described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. Intelligent recommendation system based on knowledge graph, characterized by: The system includes: a knowledge graph construction part, an embedding representation part, a hypergraph processing part and a recommendation generation part; the knowledge graph construction part is used to collect data from a data source, perform preprocessing, construct an initial data set, use the initial data set to construct a knowledge graph, and extract entities and relationships; the embedding representation part is used to use a variational graph autoencoder to embed entities in the knowledge graph, and use a variational graph autoencoder to embed relationships in the knowledge graph; the hypergraph processing part is used to construct a hypergraph based on entity embedding representation and relationship embedding representation, use a hypergraph convolutional neural network to extract high-order features, and fuse the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate a final feature representation; the recommendation generation part is used to generate a recommendation list based on the final feature representation; when the embedding representation part uses a variational graph autoencoder to embed entities in the knowledge graph, the input entity of the variational graph autoencoder The set of relationships associated with it , Indicates entities; the entity embedding is expressed as: ;in, is a latent variable, as an entity Entity embedding representation of Indicates that the entity and its corresponding relationship set Input to the Variational Graph Autoencoder middle; is from a standard normal distribution The noise vector sampled in ; Represents element-wise multiplication; is the standard deviation of the latent variable, representing the entity in the latent space predicted by the variational graph autoencoder The variance of is the mean of the latent variables, representing the entity in the latent space predicted by the encoder The mean of In the embedding representation part, when the relationship in the knowledge graph is embedded using the variational graph autoencoder, the input relationship of the variational graph autoencoder The set of entities connected to it ; The relationship embedding is expressed as: ; is the weight matrix used to map the concatenated vector to the embedding space; Representing relationships Vectors and Entity Collections to combine the relationship with its associated entity; is the bias vector, used for linear transformation; It is a collection of entities Take the average and get the corresponding average vector.

2. The intelligent recommendation system based on knowledge graph according to claim 1, characterized in that: The knowledge graph construction part includes: a data collection unit, an entity and relationship processing unit and a knowledge graph construction unit; the data collection unit is used to collect data from a data source, perform data cleaning and data standardization on the data collected from the data source, and construct an initial data set; the entity and relationship processing unit is used to extract entities from the initial data set using named entity recognition technology; use relationship extraction technology to extract the relationship between entities from the initial data set; link the same entities and relationships to remove redundant information; combine entities and relationships to generate triples ;in, Indicates entities, Indicates The knowledge graph construction unit is used to integrate entities, relationships and triples to finally form a knowledge graph. ;in, Represents the entity set after removing redundant information, represents the set of relations after removing redundant information, Represents the set of triples consisting of all triples.

3. The intelligent recommendation system based on knowledge graph according to claim 2, characterized in that: The data sources include at least: social media platforms, e-commerce platforms, news websites, forums and blogs.

4. The knowledge graph-based intelligent recommendation system according to claim 1, characterized in that: The mean of the latent variable Use the following formula to calculate: ; in and are the preset first mean weight matrix and second mean weight matrix respectively, is the mean bias vector; Representation and Entity The size of the associated set of relations, i.e., entities The number of relationships associated; the standard deviation of the latent variable Use the following formula to calculate: ; in, is a soft adding function, defined as ; is a function variable; is the variance weight matrix; is the variance bias vector.

5. The intelligent recommendation system based on knowledge graph according to claim 4, characterized in that: In the hypergraph processing part, the process of constructing a hypergraph based on the entity embedding representation and the relationship embedding representation specifically includes: treating the entity embedding representation as a node in the hypergraph; treating the relationship embedding representation as a hyperedge in the hypergraph; if the entity corresponding to the entity embedding representation and the relationship corresponding to the relationship embedding representation are associated, then in the hypergraph, the node corresponding to the entity embedding representation and the hyperedge corresponding to the relationship embedding representation are connected.

6. The intelligent recommendation system based on knowledge graph according to claim 5, characterized in that: The hypergraph convolutional neural network of the hypergraph processing part is expressed using the following formula: ; in, For the The node feature matrix of the layer; For the The node feature matrix of the layer; is the adjacency matrix of the hypergraph, which represents the connection relationship between nodes and hyperedges; is the degree matrix of the node, a diagonal matrix whose diagonal elements are the degrees of the nodes; is the degree matrix of the hyperedge, a diagonal matrix whose diagonal elements are the degrees of the hyperedges; is the hypergraph weight matrix, which is used to adjust the relationship weights between nodes and hyperedges; is the activation function; after performing multi-layer convolution operations using the hypergraph convolutional neural network, high-order features are obtained for: ; in, is the number of layers of the hypergraph convolutional neural network; the following formula is used to fuse the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate the final feature representation : ; in, is the first fusion coefficient; is the second fusion coefficient; is the third fusion coefficient; is the entity embedding representation matrix, where each element is ; is the relation embedding representation matrix, where each element is .

7. The knowledge graph-based intelligent recommendation system according to claim 6, characterized in that: The recommendation generation part, based on the final feature representation, generates a specific process of the recommendation list, including: preprocessing the target data, constructing a target data set, using the target data set to construct a target knowledge graph, and extracting target entities and target relationships; using a variational graph autoencoder to obtain a target entity embedding representation of the target entity in the target knowledge graph, using a variational graph autoencoder to obtain a target relationship embedding representation of the target relationship in the target knowledge graph, constructing a target hypergraph based on the target entity embedding representation and the target relationship embedding representation, using a hypergraph convolutional neural network to perform a convolution operation on the target hypergraph, extracting target high-order features, fusing the target high-order features obtained after the convolution operation with the target entity embedding representation and the target relationship embedding representation, and generating a final target feature representation; the final target feature representation is a subset of the final feature representation, obtaining the central element of the final target feature representation, and then finding the element corresponding to the central element from the final feature representation, and generating a recommendation list from near to far in the final feature representation with the element as the center according to the distance from the element.

8. A method for an intelligent recommendation system based on a knowledge graph according to any one of claims 1 to 7, characterized in that: The method includes: collecting data from a data source, performing preprocessing, constructing an initial data set, using the initial data set to construct a knowledge graph, and extracting entities and relationships; using a variational graph autoencoder to embed entities in the knowledge graph, and using a variational graph autoencoder to embed relationships in the knowledge graph; constructing a hypergraph based on the entity embedding representation and the relationship embedding representation, using a hypergraph convolutional neural network to extract high-order features, fusing the high-order features obtained after the convolution operation with the entity embedding representation and the relationship embedding representation to generate a final feature representation; and generating a recommendation list based on the final feature representation.

Citation Information

Patent Citations

  • Personalized recommendation method based on knowledge graph

    CN114461927A

  • Recommendation algorithm based on knowledge graph and neural network

    CN116955647A

  • Multi-head attention and atlas embedding algorithm fused class case recommendation method

    CN117573949A

  • Dialogue recommendation method based on hypergraph neural network

    CN117892006A

  • Article recommendation method, article knowledge graph training method and apparatus, and model training method and apparatus

    WO2023184226A1