Knowledge graph convolutional network personalized recommendation method and system based on emotion perception

Through the emotionally perceived knowledge graph convolution network method, the emotional characteristics in user comments are extracted and combined with the knowledge graph, which solves the problem that the scoring data cannot express the user's personalized preferences, and achieves more accurate personalized recommendations and user preference capture.

CN118885601APending Publication Date: 2024-11-01SHAANXI NORMAL UNIV

Patent Information

Application Number
CN202410945255.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-02-06
Filing Date
2024-07-15
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In the prior art, the scoring data cannot accurately express the user's personalized preferences, making it difficult for the recommendation system to accurately capture the user's real personalized needs.

Method used

Using the knowledge graph convolution network method based on emotion perception, we can analyze user comments emotionally, extract emotional features, and establish corresponding relationships with project entities in the knowledge graph, set the weights of different emotional features, and build the user and project Embedding means predicting the probability of a user clicking on a possible item.

Benefits of technology

It realizes more accurate personalized recommendations, captures the fine-grained personalized characteristics of users and projects, and enhances the performance and interpretability of the recommendation system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885601A_ABST
    Figure CN118885601A_ABST
Patent Text Reader

Abstract

The invention discloses a knowledge graph convolutional network personalized recommendation method and system based on emotion perception, and the method comprises the steps: carrying out the emotion analysis of user comments, and extracting emotion features from the comments; establishing a corresponding relationship between the emotion features extracted from the comments and corresponding project entities in the knowledge graph; different weights are set for corresponding relations of different emotion features, personalized preferences of users on historical projects are aggregated, and historical interaction and a knowledge graph are used for constructing a user historical neighbor and weight dictionary and a project historical neighbor and weight dictionary respectively; a historical interaction neighbor matrix and a corresponding neighbor relation weight matrix are obtained from a user historical neighbor and weight dictionary and a project historical neighbor and weight dictionary, the importance of different neighbors is specified, a knowledge graph convolutional neural network for comment emotion perception is constructed, and embedded representations of users and projects are obtained through aggregation operation. And predicting the probability that the user clicks the possible items. According to the invention, more accurate personalized recommendation can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer data processing technology, and in particular to a knowledge graph convolutional network personalized recommendation method and system based on emotion perception, which provides better recommendations by fully mining the fine-grained personalized features in user comments. Background Art

[0002] With the rapid development of Internet technology, the amount of information in various applications has exploded. How to accurately filter out information that meets the personalized interests of users has always been a problem that recommendation systems focus on and solve. The collaborative filtering algorithm in the recommendation system is a traditional and effective recommendation strategy, but it has interaction sparsity and cold start problems. To this end, researchers usually extract features from a variety of auxiliary information to improve the performance of the recommendation system.

[0003] In recent years, knowledge graph technology has developed and been used rapidly in many research fields. Knowledge graphs have been used as more effective auxiliary information to improve the performance and interpretability of recommendation systems because of their rich semantic associations between entities, and have achieved great success. However, in some recent studies in the field of knowledge graph-based recommendations, most researchers only use ratings as historical data of users to propagate preferences in knowledge graphs and mine users' potential interests. These methods use rating data in conjunction with knowledge graphs to mine users' potential interest preferences, but rating data is only a general evaluation of the user on the project and cannot reflect the user's true personalized preferences. Mining users' potential interests in knowledge graphs based on ratings is a feasible solution, but it cannot intuitively and accurately express users' personalized needs. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the scoring data in the prior art cannot accurately express the user's personalized preferences, and to provide a personalized recommendation method and system based on a knowledge graph convolutional network based on emotion perception, so as to achieve more accurate personalized recommendations.

[0005] In order to achieve the above object, the present invention has the following technical solutions:

[0006] In the first aspect, a personalized recommendation method based on a knowledge graph convolutional network based on emotion perception is provided, comprising:

[0007] Conduct sentiment analysis on user comments and extract sentiment features from the comments;

[0008] Establish a correspondence between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph;

[0009] By setting different weights for the corresponding relationships of different sentiment features, users’ personalized preferences for historical items are aggregated, and historical interactions and knowledge graphs are used to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively.

[0010] The historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix are obtained from the user's historical neighbor and weight dictionary, the project's historical neighbor and weight dictionary respectively. The importance of different neighbors is specified, and a comment sentiment-aware knowledge graph convolutional neural network is constructed. The aggregation operation is used to obtain the embedded representation of users and projects, and the probability of users clicking on possible projects is predicted.

[0011] As a preferred solution, the step of performing sentiment analysis on the comments and extracting sentiment features from the comments includes:

[0012] Taking comments as input, output sentiment dictionary L = {(f,o,s)|f∈F,o∈O,s∈S}, where F represents a set of words related to project features, O represents a set of words related to actual sentiment, and S represents a set of labels {positive, negative} of (f,o);

[0013] The extracted sentiment dictionary is processed into a four-tuple form as shown in the following formula:

[0014]

[0015] Among them, u represents the user, v represents the project, f represents the feature related to the corresponding project, and s represents the sentiment polarity of user u with respect to the feature f of project v, with 1 representing positive sentiment and -1 representing negative sentiment.

[0016] As a preferred solution, the step of establishing a correspondence between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph includes:

[0017] Use the pre-trained word vector model to calculate the similarity between the characteristic words of sentiment features and the neighbor relationship of the corresponding project entities;

[0018] According to the similarity calculation results, the relationship with the highest similarity to the feature word is found, that is, the direction of the sentiment feature extracted from the comment, so as to complete the alignment; the aligned sentiment feature dictionary is expressed as:

[0019]

[0020] In the formula, r represents the relationship with the highest similarity to the feature word in the project, that is, user u has sentiment s about the relationship r of project v.

[0021] As a preferred solution, in the step of aggregating the user's personalized preferences for historical items by setting different weights for the corresponding relationships of different emotional features, different weights are set for the corresponding relationships of different emotional features according to the following formula:

[0022]

[0023] Where s(u,v,r) represents the comment sentiment of user u on the relationship r of project entity v in the knowledge graph, s(u,v,r)=1 represents positive sentiment, s(u,v,r)=-1 represents negative sentiment, other represents that the corresponding relationship is not mentioned in the comment, which represents neutral sentiment here; α is a hyperparameter with a value range between 0 and 1.

[0024] As a preferred solution, in the step of using historical interactions and knowledge graphs to respectively construct user historical neighbors and weight dictionaries, project historical neighbors and weight dictionaries, use A dictionary representing the neighbors of user u’s historical interaction items in the knowledge graph and the corresponding relationship weights of the neighbors. A dictionary representing the neighbors of all users who have interacted with item v and the corresponding relationship weights on the item, then:

[0025]

[0026] In the formula, h represents the project entity or multi-hop head entity in the knowledge graph, t represents the tail entity connected to h, represents the sentiment weight of user u on the relationship r between item v and its neighbor entity.

[0027] As a preferred solution, in the step of obtaining the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user historical neighbor and weight dictionary, the project historical neighbor and weight dictionary, and specifying the importance of different neighbors:

[0028] Output the relationship matrix between different items and users. The normalized relationship weight matrix is ​​expressed as:

[0029]

[0030] in, Represents the normalized sentiment-perceived relationship weight between user u’s historical interaction item v and its neighbor nodes;

[0031] Specifying the importance of different neighbors, the linear combination of the neighborhoods with historical interactions is expressed as:

[0032]

[0033] In the formula, e tDenotes the embedding representation of the tail entity t connected to its neighbor head entity h.

[0034] As a preferred solution, the knowledge graph convolutional neural network for constructing comment sentiment awareness uses aggregation operations to obtain embedded representations of users and items, and predicts the probability of users clicking on possible items, including:

[0035] In the comment sentiment-aware knowledge graph convolutional neural network, multiple types of aggregators are used to bind the representation of the item with the corresponding neighbor representation through aggregation operations, and the fine-grained sentiment features extracted from the comments are integrated into the personalized representation of users and items. The entities of the lth layer are aggregated, and for multiple historical interactions, different weights are assigned according to the preferences of different users. A weight parameter is set to represent the weight distribution between different historical interactions. According to the embedded representation of users and items, a function is used to predict the probability of users clicking on an item.

[0036] As a preferred solution, the steps of using multiple types of aggregators in the comment sentiment-aware knowledge graph convolutional neural network to bind the representation of the project with the corresponding neighbor representation through the aggregation operation and to fuse the fine-grained sentiment features extracted from the comments into the personalized representation of the user and the project include: representing the head entity h as e h , the neighborhood is represented by Aggregated into a new head entity h is represented as Using three types of f agg (·) Aggregators implement aggregation operations, which are:

[0037] Sum aggregation: sum the item entity representation and the corresponding neighborhood representation, and then perform a linear transformation:

[0038]

[0039] Concatenation aggregation: concatenate the two embedding representations and perform a linear transformation:

[0040]

[0041] Neighborhood aggregation: Only the neighborhood representation is used as the output representation of the corresponding layer:

[0042]

[0043] In the formula, e h * It is the aggregation result obtained by a single-layer knowledge graph convolutional neural network.

[0044] As a preferred solution, the entity aggregation of the lth layer is performed, and different weights are assigned to multiple historical interactions according to different preferences of different users, and a weight parameter is set to represent the weight distribution between different historical interactions. According to the embedded representation of the user and the item, the probability of the user clicking the item is predicted using a function, including: the entity aggregation of the lth layer is represented as:

[0045]

[0046] In the formula, e h (l-1) and They represent the head entity and neighbor representation of the previous layer respectively, l is a hyperparameter, which represents the number of layers of the knowledge graph convolutional neural network. The final embedding representation of a history of a user or item is:

[0047] e history =e h (0) ||…||e h (l)

[0048] The weight parameter W2 is set to represent the weight distribution between different historical interactions. The embedding of user u and item v is expressed as follows:

[0049]

[0050] In the formula, Represents the embedding representation of the i-th historical interaction of user u or item v. The value of i ranges from 1 to k. k is a hyperparameter representing the number of historical interactions. is the weight of the ith historical interaction, e u(0) and e v(0) They represent the initial embedding representations of user u and item v respectively; σ represents a nonlinear function;

[0051] According to the embedding representation e of user u u and the embedding representation e of item v v , using the function Predict the probability that user u clicks item v:

[0052]

[0053] In the second aspect, a personalized recommendation system based on knowledge graph convolutional network based on emotion perception is provided, including:

[0054] Sentiment feature extraction module, used to perform sentiment analysis on user comments and extract sentiment features from the comments;

[0055] The knowledge graph relationship building module is used to establish a corresponding relationship between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph;

[0056] The weight dictionary construction module is used to aggregate users' personalized preferences for historical items by setting different weights for the corresponding relationships of different sentiment features, and to use historical interactions and knowledge graphs to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively;

[0057] The item prediction module is used to obtain the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user's historical neighbors and weight dictionary, the item's historical neighbors and weight dictionary, specify the importance of different neighbors, build a comment sentiment-aware knowledge graph convolutional neural network, use aggregation operations to obtain embedded representations of users and items, and predict the probability of users clicking on possible items.

[0058] Compared with the prior art, the present invention has at least the following beneficial effects:

[0059] The sentiment features extracted from the comments are aligned with the adjacency relationship of the corresponding project entities in the knowledge graph to characterize the user's preference for the specific features of the corresponding project and reflect it in the knowledge graph. In order to better represent the personalized feature distribution of users and projects, the present invention designs a sentiment-aware relationship weight, constructs a user history neighbor and weight dictionary, a project history neighbor and weight dictionary, and uses the proposed comment sentiment-aware knowledge graph convolutional neural network to aggregate the neighborhood information of sentiment relationship weight awareness in the knowledge graph, capture the personalized feature representation of both users and projects, and use the aggregation operation to obtain the embedded representation of users and projects, thereby obtaining the user's personalized preferences and achieving more accurate personalized recommendations. The present invention can realize the combined use of ratings and comments to mine the user's personalized preferences in the knowledge graph. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0061] Figure 1 A flow chart of a personalized recommendation method based on a knowledge graph convolutional network based on emotion perception provided by an embodiment of the present invention;

[0062] Figure 2 This is a schematic diagram of the structure of a knowledge graph convolutional network personalized recommendation model based on comment sentiment perception in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.

[0064] See also Figure 1 The embodiment of the present invention provides a personalized recommendation method based on a knowledge graph convolutional network based on emotion perception, which mainly solves the problem that the previous rating data cannot accurately express the personalized preferences of users, and provides better recommendations by fully mining the fine-grained personalized features in user comments. It mainly includes the following steps:

[0065] S1. Perform sentiment analysis on user comments and extract sentiment features from the comments;

[0066] S2, establish a corresponding relationship between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph;

[0067] S3, by setting different weights for the corresponding relationships of different sentiment features, aggregate users’ personalized preferences for historical items, and use historical interactions and knowledge graphs to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively;

[0068] S4. Obtain the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user's historical neighbor and weight dictionary, the project's historical neighbor and weight dictionary, respectively, specify the importance of different neighbors, build a comment sentiment-aware knowledge graph convolutional neural network, use aggregation operations to obtain the embedded representation of users and projects, and predict the probability of users clicking on possible projects.

[0069] The embodiments of the present application can acquire and process relevant data (such as data for sentiment analysis of user comments, project data in knowledge graphs, etc.) based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0070] In the embodiment of the present invention, step S1 adopts an optimization method for automatically constructing a context-aware sentiment vocabulary, taking comments as input and outputting a sentiment dictionary. In addition, for the convenience of subsequent use, the extracted sentiment dictionary is processed into a four-tuple form to represent the user's sentiment polarity on a certain feature of the project.

[0071] Furthermore, since the user's comment data on the project contains the user's fine-grained preferences for project features, the user's aspect features and corresponding emotions on the project can be extracted from the comments.

[0072] The embodiment of the present invention takes comments as input and outputs a sentiment dictionary L = {(f,o,s)|f∈F, o∈O, s∈S}, where F represents a set of words related to project features, O represents a set of words related to actual emotions (for example, nice, good, etc.), and S represents a set of labels {positive, negative} of (f,o).

[0073] The extracted sentiment dictionary is processed into a four-tuple form as follows:

[0074]

[0075] Among them, u represents the user, v represents the project, f represents the feature related to the project, and s represents the sentiment polarity of user u with respect to feature f of project v, with 1 representing positive sentiment and -1 representing negative sentiment.

[0076] In an embodiment of the present invention, step S2 corresponds the emotion-based aspect features extracted from the user comment text to the corresponding project entities in the knowledge graph in a specific relationship, indicating the different preferences of users for the specific relationships of historical interaction projects, and aligns them with the relationships in the knowledge graph through an entity alignment algorithm. Google's pre-trained word vector model can be used for alignment. Specifically, the pre-trained word vector model is used to calculate the similarity of the neighbor relationship between the feature word and the corresponding project entity, and the relationship with the highest similarity to the feature word is found, that is, the direction of the user comment feature word, thereby completing the alignment.

[0077] Furthermore, the sentiment-based aspect features extracted from user comment texts can correspond to the corresponding item entities in the knowledge graph in a specific relationship, indicating users' different preferences for specific relationships of historical interaction items.

[0078] The aligned sentiment feature dictionary is expressed as:

[0079]

[0080] In the formula, r represents the relationship with the highest similarity to the feature word in the project, that is, user u has sentiment s about the relationship r of project v.

[0081] In the embodiment of the present invention, step S3 can better aggregate the user's personalized preferences for historical items and more accurately express user embedding by setting different weights for different emotion perception relationships.

[0082] At the same time, for item embedding, we can aggregate the fine-grained sentiment preferences of all users who have interacted with an item to form a public-perceived item feature representation, which can better represent the item. At the same time, we also use user historical interactions and knowledge graphs to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively.

[0083] Furthermore, different weights are set for the corresponding relationships of different emotional features according to the following formula:

[0084]

[0085] Where s(u,v,r) represents the comment sentiment of user u on the relationship r of project entity v in the knowledge graph, s(u,v,r)=1 represents positive sentiment, s(u,v,r)=-1 represents negative sentiment, other represents that the corresponding relationship is not mentioned in the comment, which represents neutral sentiment here; α is a hyperparameter with a value range between 0 and 1.

[0086] use A dictionary representing the neighbors of user u’s historical interaction items in the knowledge graph and the corresponding relationship weights of the neighbors. A dictionary representing the neighbors of all users who have interacted with item v and the corresponding relationship weights on the item, then:

[0087]

[0088] In the formula, h represents the project entity or multi-hop head entity in the knowledge graph, t represents the tail entity connected to h, represents the sentiment weight of user u on the relationship r between item v and its neighbor entity.

[0089] In the embodiment of the present invention, step S4 obtains the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user's historical neighbor and weight dictionary, the project's historical neighbor and weight dictionary respectively; extracts the user's personalized interest features and the project features from the perspective of the general user from the comments, specifies the importance of different neighbors, aggregates the head entity representation and the neighborhood representation into a new head entity representation, and uses three types of aggregators in the comment sentiment-aware knowledge graph convolutional neural network: binds the project's representation with its neighbor representation through aggregation operations, merges the fine-grained sentiment features extracted from the comments into the personalized representation of the user and the project, and aggregates the entities of the lth layer in order to obtain more information and propagate high-order neighborhood information. For multiple historical interactions, different weights need to be assigned due to different preferences of different users. Here, a weight parameter is set to represent the weight distribution between different histories, thereby accurately representing the embedding of users and projects. Based on the embedded representation of users and projects, a function is used to predict the probability of users clicking on projects.

[0090] Furthermore, the relationship matrix between different items and users is output, and the normalized relationship weight matrix is ​​expressed as:

[0091]

[0092] in, Represents the normalized sentiment-perceived relationship weight between user u’s historical interaction item v and its neighbor nodes;

[0093] Extracting user personalized interest features and project features from the perspective of general users from the comments, specifying the importance of different neighbors, and obtaining the linear combination of the neighborhood of historical interactions is expressed as:

[0094]

[0095] In the formula, e t Denotes the embedding representation of the tail entity t connected to its neighbor head entity h.

[0096] Further, such as Figure 2 As shown, the head entity h is represented as e h , the neighborhood is represented by Aggregated into a new head entity h is represented as Using three types of f agg (·) Aggregators implement aggregation operations, which are:

[0097] Sum aggregation: sum the item entity representation and the corresponding neighborhood representation, and then perform a linear transformation:

[0098]

[0099] Concatenation aggregation: concatenate the two embedding representations and perform a linear transformation:

[0100]

[0101] Neighborhood aggregation: Only the neighborhood representation is used as the output representation of the corresponding layer:

[0102]

[0103] In the formula, e h * is the aggregation result obtained by a single-layer knowledge graph convolutional neural network.

[0104] Propagating high-order neighborhood information, the entity aggregation at layer l can be expressed as:

[0105]

[0106] In the formula, e h (l-1) and They represent the head entity and neighbor representation of the previous layer respectively, l is a hyperparameter, which represents the number of layers of the knowledge graph convolutional neural network. The final embedding representation of a history of a user or item is:

[0107] e histo =e h (0) ||…||e h (l)

[0108] Setting the weight parameter W2 represents the weight distribution between different historical interactions. W2 is a trainable parameter. The embedding of user u and item v is expressed as follows:

[0109]

[0110] In the formula, Represents the embedding representation of the i-th historical interaction of user u or item v. The value of i ranges from 1 to k. k is a hyperparameter representing the number of historical interactions. is the weight of the ith historical interaction, e u(0) and e v(0) They represent the initial embedding representations of user u and item v respectively; σ represents a nonlinear function, such as ReLU.

[0111] According to the embedding representation e of user u u and the embedding representation e of item v v , using the function Predict the probability that user u clicks item v:

[0112]

[0113] The embodiment of the present invention provides a knowledge graph convolutional network personalized recommendation method based on emotion perception, which can realize the mining of users' personalized preferences in the knowledge graph by jointly using ratings and comments. Different from the existing related recommendation methods, the embodiment of the present invention aligns the emotion features extracted from the comments with the adjacency relationship of the corresponding project entity in the knowledge graph to characterize the user's preference for the specific features of the project and reflects it in the knowledge graph. In order to better represent the personalized feature distribution of users and projects, the embodiment of the present invention method designs an emotion-aware relationship weight, constructs two dictionaries including user historical neighbors and weight dictionaries and project historical neighbors and weight dictionaries, and then uses the proposed comment emotion-aware knowledge graph convolutional neural network to aggregate the neighborhood information perceived by emotion relationship weights in the knowledge graph, capture the personalized feature representation of both users and projects, better learn user and project embedding, and achieve more accurate personalized recommendations.

[0114] Another embodiment of the present invention further provides a knowledge graph convolutional network personalized recommendation system based on emotion perception, and the knowledge graph convolutional network personalized recommendation system based on emotion perception has a module for executing the aforementioned method, including:

[0115] Sentiment feature extraction module, used to perform sentiment analysis on user comments and extract sentiment features from the comments;

[0116] The knowledge graph relationship building module is used to establish a corresponding relationship between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph;

[0117] The weight dictionary construction module is used to aggregate users' personalized preferences for historical items by setting different weights for the corresponding relationships of different sentiment features, and to use historical interactions and knowledge graphs to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively;

[0118] The item prediction module is used to obtain the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user's historical neighbors and weight dictionary, the item's historical neighbors and weight dictionary, specify the importance of different neighbors, build a comment sentiment-aware knowledge graph convolutional neural network, use aggregation operations to obtain embedded representations of users and items, and predict the probability of users clicking on possible items.

[0119] Another embodiment of the present invention further provides a computer device, and the computer device in this embodiment may include one or more processors; one or more input devices, one or more output devices and a memory. The processors, input devices, output devices and memory are connected via a bus. The memory is used to store a computer program, and the processor is configured to call the computer program to execute the personalized recommendation method of the knowledge graph convolution network based on emotion perception according to the embodiment of the present invention.

[0120] Another embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements a knowledge graph convolutional network personalized recommendation method based on emotion perception proposed in an embodiment of the present invention, which will not be repeated here.

[0121] The computer-readable storage medium may be an internal storage unit of the aforementioned knowledge graph convolution network personalized recommendation system based on emotion perception, for example, a hard disk or memory of the knowledge graph convolution network personalized recommendation system based on emotion perception. The computer-readable storage medium may also be an external storage device of the knowledge graph convolution network personalized recommendation system based on emotion perception, for example, a plug-in hard disk, a smart memory card (SmarS Media Card, SMC), a secure digital (Secure DigiSal, SD) card, a flash card (Flash Card), etc. equipped on the knowledge graph convolution network personalized recommendation system based on emotion perception. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the knowledge graph convolution network personalized recommendation system based on emotion perception. The computer-readable storage medium is used to store the computer program and other programs and data required by the knowledge graph convolution network personalized recommendation system based on emotion perception. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or partly contributed to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a computer-readable storage medium, including several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes. The computer-readable storage medium can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one application required for a function, etc.; the storage data area can store data created according to the use of blockchain nodes, etc.

[0123] It should be emphasized that in order to further ensure the privacy and security of the above data, the above data can also be stored in a node of a blockchain. Among them, the blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.

[0124] The above descriptions are only partial implementation modes of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.

Claims

1. A personalized recommendation method based on emotion-aware knowledge graph convolutional network, characterized in that: include: Conduct sentiment analysis on user comments and extract sentiment features from the comments; Establish a correspondence between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph; By setting different weights for the corresponding relationships of different sentiment features, users’ personalized preferences for historical items are aggregated, and historical interactions and knowledge graphs are used to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively. The historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix are obtained from the user's historical neighbor and weight dictionary, the project's historical neighbor and weight dictionary respectively. The importance of different neighbors is specified, and a comment sentiment-aware knowledge graph convolutional neural network is constructed. The aggregation operation is used to obtain the embedded representation of users and projects, and the probability of users clicking on possible projects is predicted.

2. According to the emotion-aware knowledge graph convolutional network personalized recommendation method of claim 1, it is characterized in that: The steps of performing sentiment analysis on the comments and extracting sentiment features from the comments include: Taking comments as input, output sentiment dictionary L = {(f,o,s)|f∈F,o∈O,s∈S}, where F represents a set of words related to project features, O represents a set of words related to actual sentiment, and S represents a set of labels {positive, negative} of (f,o); The extracted sentiment dictionary is processed into a four-tuple form as shown in the following formula: Among them, u represents the user, v represents the project, f represents the feature related to the corresponding project, and s represents the sentiment polarity of user u with respect to the feature f of project v, with 1 representing positive sentiment and -1 representing negative sentiment.

3. According to the emotion-aware knowledge graph convolutional network personalized recommendation method of claim 1, it is characterized in that: The step of establishing a corresponding relationship between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph includes: Use the pre-trained word vector model to calculate the similarity between the characteristic words of sentiment features and the neighbor relationship of the corresponding project entities; According to the similarity calculation results, the relationship with the highest similarity to the feature word is found, that is, the direction of the sentiment feature extracted from the comment, so as to complete the alignment; the aligned sentiment feature dictionary is expressed as: In the formula, r represents the relationship with the highest similarity to the feature word in the project, that is, user u has sentiment s about the relationship r of project v.

4. According to claim 1, the method for personalized recommendation based on knowledge graph convolutional network based on emotion perception is characterized in that: In the step of aggregating the user's personalized preferences for historical items by setting different weights for the corresponding relationships of different emotional features, different weights are set for the corresponding relationships of different emotional features according to the following formula: Where s(u,v,r) represents the comment sentiment of user u on the relationship r of project entity v in the knowledge graph, s(u,v,r)=1 represents positive sentiment, s(u,v,r)=-1 represents negative sentiment, other represents that the corresponding relationship is not mentioned in the comment, which represents neutral sentiment here; α is a hyperparameter with a value range between 0 and 1.

5. According to the emotion-aware knowledge graph convolutional network personalized recommendation method according to claim 1, it is characterized in that: In the step of using historical interactions and knowledge graphs to construct user historical neighbors and weight dictionaries, project historical neighbors and weight dictionaries, respectively, use A dictionary representing the neighbors of user u's historical interaction items in the knowledge graph and the corresponding relationship weights of the neighbors, A dictionary representing the neighbors of all users who have interacted with item v and the corresponding relationship weights on the item, then: In the formula, h represents the project entity or multi-hop head entity in the knowledge graph, t represents the tail entity connected to h, represents the sentiment weight of user u on the relationship r between item v and neighbor entity.

6. The method for personalized recommendation based on knowledge graph convolutional network based on emotion perception according to claim 1, characterized in that: In the step of obtaining the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user historical neighbor and weight dictionary, the project historical neighbor and weight dictionary, and specifying the importance of different neighbors: Output the relationship matrix between different items and users. The normalized relationship weight matrix is ​​expressed as: in, Represents the normalized sentiment-perceived relationship weight between user u’s historical interaction item v and its neighbor nodes; Specifying the importance of different neighbors, the linear combination of the neighborhoods with historical interactions is expressed as: In the formula, e t Denotes the embedding representation of the tail entity t connected to its neighbor head entity h.

7. The method for personalized recommendation based on knowledge graph convolutional network based on emotion perception according to claim 1, characterized in that:The method of constructing a comment sentiment-aware knowledge graph convolutional neural network, using aggregation operations to obtain embedded representations of users and items, and predicting the probability of a user clicking on a possible item includes: using multiple types of aggregators in the comment sentiment-aware knowledge graph convolutional neural network, binding the representation of an item with the corresponding neighbor representation through aggregation operations, and fusing the fine-grained sentiment features extracted from the comments into the personalized representation of the user and the item; aggregating the entities of the lth layer, assigning different weights to multiple historical interactions according to the preferences of different users, setting a weight parameter to represent the weight distribution between different historical interactions, and using a function to predict the probability of a user clicking on an item according to the embedded representations of the user and the item.

8. The method for personalized recommendation based on knowledge graph convolutional network based on emotion perception according to claim 7 is characterized in that: The steps of using multiple types of aggregators in the comment sentiment-aware knowledge graph convolutional neural network, binding the representation of the item with the corresponding neighbor representation through the aggregation operation, and fusing the fine-grained sentiment features extracted from the comments into the personalized representation of the user and the item include: representing the head entity h as e h , the neighborhood is represented by Aggregated into a new head entity h is represented as Using three types of f agg (·) Aggregators implement aggregation operations, which are: Sum aggregation: sum the item entity representation and the corresponding neighborhood representation, and then perform a linear transformation: Concatenation aggregation: concatenate the two embedding representations and perform a linear transformation: Neighborhood aggregation: Only the neighborhood representation is used as the output representation of the corresponding layer: In the formula, e h * It is the aggregation result obtained by a single-layer knowledge graph convolutional neural network.

9. The method for personalized recommendation based on knowledge graph convolutional network based on emotion perception according to claim 7 is characterized in that: The entity aggregation of the lth layer is described, and for multiple historical interactions, different weights are assigned according to the preferences of different users, a weight parameter is set to represent the weight distribution between different historical interactions, and according to the embedded representation of the user and the item, a function is used to predict the probability of the user clicking the item, including: the entity aggregation of the lth layer is represented as: In the formula, e h (l-1) and They represent the head entity and neighbor representation of the previous layer respectively, l is a hyperparameter, which represents the number of layers of the knowledge graph convolutional neural network. The final embedding representation of a history of a user or item is: And history =and h (0) ||…||and h (l) The weight parameter W2 is set to represent the weight distribution between different historical interactions. The embedding of user u and item v is expressed as follows: In the formula, Represents the embedding representation of the i-th historical interaction of user u or item v. The value of i ranges from 1 to k. k is a hyperparameter representing the number of historical interactions. is the weight of the ith historical interaction, e u(0) and e v(0) They represent the initial embedding representations of user u and item v respectively; σ represents a nonlinear function; According to the embedding representation e of user u u and the embedding representation e of item v v , using the function Predict the probability that user u clicks item v:

10. A knowledge graph convolutional network personalized recommendation system based on emotion perception, characterized in that: include: Sentiment feature extraction module, used to perform sentiment analysis on user comments and extract sentiment features from the comments; The knowledge graph relationship building module is used to establish a corresponding relationship between the sentiment features extracted from the comments and the corresponding project entities in the knowledge graph; The weight dictionary construction module is used to aggregate users' personalized preferences for historical items by setting different weights for the corresponding relationships of different sentiment features, and to use historical interactions and knowledge graphs to construct user historical neighbors and weight dictionaries, and item historical neighbors and weight dictionaries respectively; The item prediction module is used to obtain the historical interaction neighbor matrix and the corresponding neighbor relationship weight matrix from the user's historical neighbors and weight dictionary, the item's historical neighbors and weight dictionary, specify the importance of different neighbors, build a comment sentiment-aware knowledge graph convolutional neural network, use aggregation operations to obtain embedded representations of users and items, and predict the probability of users clicking on possible items.

Citation Information

Patent Citations

  • Learner portrait generation method and device based on knowledge graph

    CN112488887A

  • Scenic spot recommendation method integrating user emotion and knowledge graph enhancement

    CN115730138A

  • Recommendation method based on hypergraph motif optimization multivariate user representation

    CN116340646A

  • Integrated Control System for Agricultural Group House

    KR1020240068008A

  • Text recommendation method and apparatus, model training method and apparatus, and readable storage medium

    WO2023039901A1

Cited By

  • Knowledge graph-based identification analysis system

    CN120337931A

  • Semantic recommendation method fusing field self-adaption and user preference weighting

    CN121052259A