A conversation recommendation method and system based on heterogeneous hypergraph neural network

Through the heterogeneous hypergraph neural network, the integration of user, brand and price information is solved, and the shortcomings of traditional conversation recommendation systems in handling brand and price factors are achieved, more accurate and diversified recommendation results are achieved, and user experience is improved.

CN118427450BActive Publication Date: 2024-11-01NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410898370.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-11-01
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

When traditional conversation recommendation systems process users' short-term behavior data, it is difficult to fully integrate brand and price factors, resulting in the recommendation results being unable to fully meet the user's real needs, and there is a problem of data sparseness and long-tail items being recommended to be popular items, which affects the impact of Diversity and interests of user experience.

Method used

Using a method based on heterogeneous hypergraph neural network, the heterogeneous hypergraph model is constructed to capture the complex relationship between users, brands and prices, combine attention mechanisms and gate mechanisms to acquire users' interests, prices and brand preferences, and Enhance the diversity and accuracy of recommended results through logits mean processing.

Benefits of technology

It achieves a more accurate understanding of user multi-dimensional preferences, improves the diversity and accuracy of recommendation results, and can discover and recommend long-tail items while ensuring the recommendation of popular items, thereby enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427450B_ABST
    Figure CN118427450B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of conversation recommendation, and discloses a conversation recommendation method and system based on a heterogeneous hypergraph neural network. Hypergraphs can more effectively capture the complex relationships between multiple nodes and more accurately describe the connections between entities. In order to better understand the complex associations between user interests, brands, and prices, the present invention uses heterogeneous hypergraphs to express the relationships between them. The different importances of neighbor nodes of the same type are learned through node layer aggregation, and the information between nodes of different types is enriched through semantic layer aggregation, so as to obtain an updated node embedding representation. The user's interest preferences are obtained through the attention mechanism and the gating mechanism, and the user's price preference and brand preference are obtained through the multi-head attention mechanism, so that the model can understand and predict user behavior more accurately. Finally, the present invention adopts the logits mean interpolation update method to improve the diversity and accuracy of the recommendation results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of conversation recommendation, and relates to a conversation recommendation method and system based on a heterogeneous hypergraph neural network. Background Art

[0002] In the context of the information age, with the surge in data volume, recommendation systems, as one of the key technologies to solve the problem of information overload, have been widely used in many fields such as e-commerce. Recommendation systems analyze users' historical behavior data to predict the goods or services that users may be interested in, thereby providing personalized recommendation services and effectively promoting online consumption. However, traditional recommendation systems mainly rely on users' historical behavior data and personal profile information, which infringes on users' privacy rights to a certain extent. With the increasingly stringent privacy protection regulations and the increasing awareness of users about privacy protection, more and more users choose to browse anonymously or not provide personal information. In addition, for new or temporary users, due to the lack of sufficient historical behavior data, it is difficult for traditional recommendation systems to provide accurate recommendation services. In view of the above technical problems, a session-based recommendation system (SBR) is proposed in the prior art.

[0003] SBR mainly relies on the user's short-term interactive behavior, such as browsing and clicking in a session, to predict the user's interest preferences and provide personalized recommendation services. Since SBR does not require the user's personal information, it can better protect the user's privacy. The core idea of ​​SBR is that the user's interactive behavior in a session, such as the browsed goods, the length of stay, etc., can reflect the user's current interest preferences. By analyzing and mining these short-term behavioral data, SBR can quickly capture the user's interest changes, thereby providing more real-time and accurate recommendation services. In addition, SBR can also discover the common interests of different user groups through association analysis between sessions, further enriching the content and form of recommendations. SBR has become a research hotspot in recent years due to its significant effectiveness in practical applications.

[0004] Using advanced neural network architectures, researchers have developed a variety of models to improve the performance of SBR. In early studies, Recurrent Neural Networks (RNN) and its derivative models were widely adopted due to their advantages in processing time series data. In addition, in order to identify the relevance of various items in a session, attention mechanisms are frequently used in SBR to highlight key items in user interactions. At the same time, Graph Neural Networks (GNN) are also used to capture the complex relationships between items. These models aim to predict users' immediate needs and provide corresponding product recommendations by analyzing the sequence of users' interactive behaviors in a single session, such as clicks and browsing activities.

[0005] In addition, SBR faces the challenge of data sparsity due to the lack of long-term user behavior data and short session sequences. To address this problem, some studies have attempted to enrich the feature set by integrating item attribute information to enhance the performance of the recommendation system. Although these methods have achieved remarkable results in simulating user interests, they do not fully recognize the importance of item attributes, especially key factors such as brand and price, in user purchasing behavior, which is reflected in the following aspects:

[0006] 1. The user's purchasing behavior is a multi-factor decision-making process, which is influenced by many factors such as product brand, price and personal preference. Existing SBR methods fail to fully integrate these key information, especially in modeling user interests and price and brand preferences. Users' sensitivity to price and loyalty to specific brands are important factors affecting their purchasing decisions, but existing models usually ignore the complexity of this multi-dimensional preference, resulting in recommendation results that cannot fully meet the real needs of users. 2. Users' price preferences are not consistent across all product categories, but vary according to product type and personal consumption habits. For example, users may be more sensitive to price changes of daily consumer goods, while they may pay more attention to brand value for luxury goods. Therefore, the recommendation system needs to be able to identify and adapt to the differences in users' price preferences in different product categories, which requires the model to have more sophisticated learning and prediction capabilities. 3. Existing models have limitations in dealing with the heterogeneity of user behavior data. User behavior data contains rich information, such as product attributes, price ranges, brand influence, user interaction behavior, etc., which is often not fully utilized in traditional models. Since traditional graph structures are mainly designed to represent binary relationships, they are unable to capture and model high-order relationships between heterogeneous information such as items, prices, and brands. This limitation limits the potential of recommendation systems in understanding users' comprehensive preferences and providing personalized recommendations.

[0007] In addition, in the study of SBR, the long-tail distribution characteristics of the conversational dataset is a phenomenon worthy of attention. Specifically, the interactive behaviors of users in the conversation tend to be concentrated on a few popular items, while the interaction frequency for a large number of long-tail items is relatively low. This distribution characteristic causes the recommendation model learned from the long-tail data to be biased towards recommending more common and popular items. Although this recommendation strategy may be effective in improving prediction accuracy in the short term, it may sacrifice the diversity and novelty of the recommended content. In the long run, this single recommendation method may lead to a monotonous user experience and reduce user interest and satisfaction with the recommendation system. Users may therefore feel a lack of freshness and exploration, which is contrary to the original intention of users to discover new interests and new items through the recommendation system. Therefore, in order to improve the user experience, the recommendation system needs to ensure accurate recommendation of popular items while also focusing on improving the diversity of recommendation results.

[0008] Heterogeneous graphs have demonstrated their powerful expression and modeling capabilities in many fields due to their unique advantages in processing diverse information. For example, MEIRec proposed a recommendation method based on meta-path guidance in heterogeneous graphs, which can effectively capture the complex interaction relationships between entities. The introduction of hypergraph theory further expands the expressive power of graph models. In a hypergraph, hyperedges can connect multiple nodes to form a richer connection pattern. This structure is particularly suitable for capturing high-order interactions and collective behaviors between nodes, especially in user preference modeling and recommendation tasks. The HyperRec model takes advantage of this feature of hypergraphs and effectively captures users' short-term preferences by constructing a hypergraph of user-item interactions to recommend the next item that may be of interest. Summary of the invention

[0009] The purpose of this invention is to propose a conversation recommendation method based on heterogeneous hypergraph neural network, which provides a more comprehensive and accurate perspective for predicting user interaction behavior through a multi-dimensional preference fusion method, and at the same time utilizes advanced technologies such as heterogeneous hypergraph neural network, attention mechanism, logits mean method, etc. to ensure the accuracy and diversity of conversation recommendation effects.

[0010] In order to achieve the above object, the present invention adopts the following technical scheme:

[0011] A conversation recommendation method based on a heterogeneous hypergraph neural network includes the following steps:

[0012] Step 1. Build a heterogeneous hypergraph model to capture and express complex high-order relationships between entities;

[0013] The constructed heterogeneous hypergraph model consists of a set of nodes and a set of edges;

[0014] The node set is divided into three types of nodes: ID, price, and brand; the edge set contains four types of hyperedges: interest hyperedge, brand hyperedge, price hyperedge, and heterogeneous hyperedge to achieve connections between different nodes;

[0015] Step 2. Integrate the attributes of the node itself and the features of its neighboring nodes of the same type connected by isomorphic hyperedges to achieve deep feature fusion and generate a comprehensive and rich node representation.

[0016] Step 3. Capture the complex relationship between product price, brand, and user interest by constructing heterogeneous hyperedges, and generate embedded representations of items, brands, and prices through graph neural networks;

[0017] Step 4. After obtaining the updated node embedding representation, combine different location information, and use the attention mechanism and gating mechanism to obtain the user's interest preference, and use the multi-head attention mechanism to obtain the user's price preference and brand preference;

[0018] Step 5. For any given user session, by comparing the similarity of the user preference target value in the current session with that in other sessions, the logits output by the model are dynamically interpolated to balance the personalized preferences of different users. The next item of interest to the user is predicted to enhance the relevance and diversity of the recommendation results.

[0019] In addition, based on the above-mentioned conversation recommendation method based on heterogeneous hypergraph neural network, the present invention also proposes a corresponding conversation recommendation system based on heterogeneous hypergraph neural network, which adopts the following technical solutions:

[0020] A conversation recommendation system based on heterogeneous hypergraph neural network includes the following modules:

[0021] A graph building module, which is used to build heterogeneous hypergraph models to capture and express complex high-order relationships between entities;

[0022] The constructed heterogeneous hypergraph model consists of a set of nodes and a set of edges;

[0023] The node set is divided into three types of nodes: ID, price, and brand; the edge set contains four types of hyperedges: interest hyperedge, brand hyperedge, price hyperedge, and heterogeneous hyperedge to achieve connections between different nodes;

[0024] The node-level aggregation module is used to integrate the properties of the node itself and the features of its neighboring nodes of the same type connected by isomorphic hyperedges to achieve deep feature fusion and generate a comprehensive and rich node representation;

[0025] The semantic layer aggregation module is used to capture the complex relationships between product prices, brands, and user interests by constructing heterogeneous hyperedges, and generate embedded representations of items, brands, and prices through graph neural networks;

[0026] The preference extraction module, after obtaining the updated node embedding representation, combines different location information and uses the attention mechanism and gating mechanism to obtain the user's interest preference, and obtains the user's price preference and brand preference through the multi-head attention mechanism;

[0027] And the logits mean module is used to dynamically interpolate the logits output by the model for any given user session by comparing the similarity of the user preference target value in the current session with that in other sessions to balance the personalized preferences of different users. It also enhances the relevance and diversity of the recommendation results by predicting the next item that the user is interested in.

[0028] The present invention has the following advantages:

[0029] As described above, the present invention relates to a conversation recommendation method and system based on a heterogeneous hypergraph neural network. The hypergraph can more effectively capture the complex relationships between multiple nodes and more accurately describe the connections between entities. In order to better understand the complex associations between user interests, brands, and prices, the present invention uses a heterogeneous hypergraph to express the relationships between them, learns the different importance of neighbor nodes of the same type through node layer aggregation, and enriches the information between nodes of different types through semantic layer aggregation, thereby obtaining an updated node embedding representation, and obtaining the user's interest preferences through the attention mechanism and the gating mechanism, and obtaining the user's price preference and brand preference through the multi-head attention mechanism, so that the model can more accurately understand and predict user behavior. Finally, the present invention adopts the logits mean interpolation update method to improve the diversity and accuracy of the recommendation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of a conversation recommendation method based on a heterogeneous hypergraph neural network in an embodiment of the present invention;

[0031] Figure 2 This is an example diagram of the long-tail distribution of a data set in an embodiment of the present invention;

[0032] Figure 3 An example diagram for constructing a heterogeneous graph in an embodiment of the present invention;

[0033] Figure 4 is a flow chart of a method for updating logits values ​​in an embodiment of the present invention;

[0034] Figure 5 Schematic diagram of the processing flow of the conversation recommendation method based on the heterogeneous hypergraph neural network in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0036] Example 1

[0037] This embodiment describes a conversation recommendation method based on a heterogeneous hypergraph neural network, which makes full use of advanced technologies such as heterogeneous hypergraph neural networks and attention mechanisms to achieve high-precision and high-diversity conversation recommendation effects. While integrating user interest preferences, the present invention further incorporates the two dimensions of price preference and brand preference, and extracts these two preferences through in-depth mining of attribute information. This multi-dimensional preference fusion strategy can provide a more comprehensive and accurate perspective for predicting user interaction behavior. In addition, in response to the long-tail effect that is prevalent in recommendation data sets, the present invention also designs a logits mean method to enhance the diversity of recommendation results. The method of the present invention integrates global context information in a concise and efficient manner, which not only enhances the breadth of recommendations, but also ensures the accuracy and relevance of recommendation results.

[0038] like Figure 1 and Figure 5 As shown, the conversation recommendation method based on the heterogeneous hypergraph neural network in this embodiment mainly includes five parts: graph construction, node layer aggregation, semantic layer aggregation, preference extraction and logits mean processing.

[0039] Before describing the method of the present invention in detail, a description of the related issues of the present application is given first.

[0040] In the conversational recommendation system, we first define an item set , which consists of a series of items, such as , where n represents the total number of items, and each item Each item has its own unique attribute information, including the item's ID, brand, and price. . Records the anonymous interaction behaviors of users, which are organized into a session sequence , each element in the sequence Represents an interaction step of a user in a session, representing the user's The items clicked are sorted by interaction time, where , Indicates the length of the session.

[0041] According to the Pareto principle and Figure 2 The current situation shown in the figure divides the items in the data set into two parts: "short head" and "long tail". Among them, the number of occurrences of all items accounts for 75% of the number of occurrences of short head items. , the rest are long-tail items .

[0042] In addition, price is not always a direct reflection of an item’s value, as the same price may have different meanings in different product categories. For example, a 2,000 yuan mobile phone may be considered reasonably priced, but the same price for a pair of slippers may be considered expensive.

[0043] In order to more accurately capture users' price preferences, the present invention refers to the idea of ​​the PUP algorithm (Price-aware recommendation with graph convolutional networks) and divides commodities into different price levels according to their categories, so as to help understand and analyze users' perception and preference of prices in more detail.

[0044] Therefore, defining items The price level P is:

[0045] ;

[0046] in, For items The price of its category ranges from [ m i n , m a x ] , It is the number of price tiers divided.

[0047] Taking monitors as an example, the price range is [400, 4000], which is discretized into 10 price levels. A monitor priced at 3,000 yuan has a price level of 7.

[0048] Session recommendations are targeted at any given session To predict the next item to interact with The input of the method of the present invention is the user's interaction history sequence The output is .

[0049] Based on the above content, the steps of the conversation recommendation method based on heterogeneous hypergraph neural network are explained below.

[0050] like Figure 1 As shown in FIG. 1 , the conversation recommendation method based on the heterogeneous hypergraph neural network includes the following steps:

[0051] Step 1. Build a heterogeneous hypergraph model to capture and express complex high-order relationships between entities.

[0052] The present invention adopts a comprehensive and in-depth strategy when designing the conversational recommendation method. It not only regards the attributes of the goods as auxiliary information, but also further considers the user's price tolerance and brand preference. This strategy enables the present invention to more comprehensively model the user's interest preferences, price preferences, and brand preferences. However, the relationship between these preferences is not a simple one-to-one or two-to-two connection, but a more complex multi-dimensional relationship network. Therefore, to achieve conversational recommendation, the first problem that needs to be solved is how to effectively process and integrate these heterogeneous information from different dimensions.

[0053] In order to accurately capture and express the complex high-order relationships between entities, the present invention introduces a hypergraph construction technology.

[0054] Building a heterogeneous hypergraph model , the model consists of a collection of nodes and edge set composition.

[0055] Node Collection It is divided into three types of nodes: ID, price and brand. Define parameters , , Representing ID, price and brand respectively, the following relationship exists between the three types of nodes:

[0056] ;

[0057] in, express , , There is a union logical relationship between them.

[0058] Heterogeneous hypergraph model under construction In the network, homogeneous nodes are connected by hyperedges of the same type (i.e., homogeneous hyperedges), while heterogeneous nodes are connected by hyperedges of different types (i.e., heterogeneous hyperedges).

[0059] Here, the homogeneous nodes specifically refer to: interest-interest, brand-brand, price-price, and the heterogeneous nodes specifically refer to: interest-brand, interest-price, brand-price, brand-interest, price-interest, price-brand.

[0060] The following defines four types of edge sets , to achieve connections between different nodes:

[0061] 1) Interest hyperedge, which is used to connect all ID nodes in the session;

[0062] 2) Brand hyperedge, which connects all brand nodes;

[0063] 3) Price hyperedge, which connects all price nodes;

[0064] 4) Heterogeneous hyperedges, which are used to comprehensively connect the ID, price, and brand information of a single item.

[0065] Among them, interest hyperedge, brand hyperedge and price hyperedge are all isomorphic hyperedges.

[0066] The graph construction process described in step 1 is shown in detail in the attached Figure 3 In order to provide a new perspective for a comprehensive understanding of the complex relationships between entities. In addition, in order to obtain the representation of each type of node, the present invention adopts a node-level aggregation method, operating on the interest, brand and price hyperedges, as shown in step 2. Furthermore, through heterogeneous hyperedges, the present invention realizes the aggregation of rich semantics between different types of nodes, as shown in step 3.

[0067] Step 2. Node layer aggregation.

[0068] By integrating the attributes of the node itself and the features of its neighboring nodes of the same type connected by isomorphic hyperedges, deep feature fusion is achieved. This fusion not only retains the intrinsic attributes of the node, but also fully considers the neighborhood information of the node in the network structure, especially those nodes connected by hyperedges with the same attributes. This processing method strengthens the model's understanding of the similarity and correlation between nodes and generates a comprehensive and rich node representation.

[0069] Before aggregating semantic information between nodes of different types, a key observation is that the importance of each node affected by its adjacent nodes of the same type is different. The present invention uses isomorphic hyperedges to capture and learn the relative importance of each neighbor node, and proposes an effective strategy to aggregate the representation of neighbor nodes. This method can not only identify neighbor nodes that have a greater impact on the target node, but also filter out neighbor nodes with less impact, thereby more effectively updating and optimizing the embedded representation of the target node. In this way, the present invention can achieve fine-tuning of node embedding, thereby improving the model's ability to represent complex network structures and semantic information.

[0070] This paper proposes a method to fuse three different types of nodes, each of which is located in its specific feature space. In order to achieve the effective integration of these heterogeneous information, this paper proposes a strategy based on transformation matrix, which aims to map the features of these nodes from their respective spaces into a unified feature space. Through this mapping process, not only the inherent properties of each node type can be preserved, but also the feature interaction between them can be promoted, thereby providing a consistent representation framework for subsequent data analysis and pattern recognition tasks. The mapping process is as follows:

[0071] ;

[0072] in, represents the original id, p and c; t represents different node types, i.e. the mapped node id, p and c; represents the original feature of the i-th node, Represents the updated mapping feature of the i-th node

[0073] This particular type of projection operation facilitates the subsequent aggregation of heterogeneous information.

[0074] For any node , , its neighbor nodes of the same type There are significant differences in the degree of influence on it. In order to accurately capture the heterogeneity of this influence, the present invention introduces an attention mechanism to distinguish and quantify the importance of neighboring nodes to the target node. Through the attention mechanism, the present invention first calculates the node The association weights between each of its neighbor nodes are then normalized to ensure that they can be compared on the same scale. This normalization step is critical because it allows the present invention to update the node weights according to their importance when aggregating neighbor node information. The specific formula is as follows:

[0075] ;

[0076] in, is an iterative function, is a learnable parameter; express The updated representation of the neighbor nodes is: represents the weight of the kth node, i, j, k represent the node counts, and they all belong to N.

[0077] Since the neighbor nodes of each node are different, different effects will be produced when aggregating neighbor nodes; then, the embedding representation of each node is updated through the linear combination of the neighbor node features. The specific formula is as follows:

[0078] ;

[0079] in, Represents the total number of neighbor nodes of node i.

[0080] Through the above steps, the node The representation of is significantly optimized. Step 2 effectively integrates the feature information of the node itself and its neighboring nodes of the same type, achieving deep fusion of features. It not only retains the intrinsic properties of the node, but also fully considers its neighborhood information in the network structure, generating a comprehensive and rich node representation.

[0081] Step 3: Semantic layer aggregation.

[0082] The complex relationship between product price, brand and user interest is captured by constructing heterogeneous hyperedges, and the embedded representation of items, brands and prices is generated through graph neural networks, which are respectively , as well as .

[0083] These embedding representations fuse the characteristics of the nodes themselves and the neighborhood information connected by heterogeneous hyperedges.

[0084] The present invention focuses on three key types of nodes: items, prices, and brands, each of which contains unique semantic information. Step 2 captures information from a single dimension and cannot fully reveal the complex interactions between different types of nodes. Based on this, step 3 introduces the concept of heterogeneous hyperedges, which can simultaneously learn and integrate the rich semantic relationships between prices, brands, and user interests from multiple perspectives. This multi-dimensional learning method not only enhances the model's ability to understand and characterize node features, but also provides a new perspective for in-depth exploration and analysis of the complex patterns behind user behavior.

[0085] Specifically, for any type of node , an advanced semantic layer aggregation technology is adopted, which realizes information transmission and integration between heterogeneous nodes based on the gating mechanism. Through this mechanism, the information of non-target nodes can be effectively propagated to the target nodes, where the target nodes are id, p and c nodes.

[0086] Specifically, when training nodes of class id, the information of classes p and c is effectively propagated to nodes of class id, and so on, thereby establishing a dynamic information exchange bridge between nodes of different types.

[0087] The core of the gating mechanism is its ability to selectively regulate and control the flow of information, ensuring that only the most relevant and valuable information is absorbed and integrated by the target node. The specific formula is as follows:

[0088] ;

[0089] ;

[0090] in, represents the target node, represents the activation function, represents cascade operation, Indicates one of the remaining types except the target node type. Indicates that except for the target node and Outside type.

[0091] , is a learnable parameter, is a controllable weight, represents the embedding representation of the target node, and They are the embedded representations of the other two types of nodes connected with heterogeneous hyperedges.

[0092] By performing multiple iterations of node-level aggregation and semantic-level aggregation, we can ensure that relevant information from different dimensions is effectively integrated into the representation of each node. This multi-level aggregation process not only enhances the richness of the node representation, but also enables the node embedding representation to accurately capture the core features of the item, brand, and price nodes, successfully obtaining the embedding representation of the item node. , Embedding representation of brand nodes and the embedded representation of price nodes .

[0093] Step 4. Preference extraction.

[0094] After obtaining the updated node embedding representation, we combine different location information, and use the attention mechanism and gating mechanism to obtain the user's interest preferences, and use the multi-head attention mechanism to obtain the user's price preference and brand preference.

[0095] Through the iterative process of node-level aggregation and semantic-level aggregation, the representations of these three types of nodes are updated to generate more accurate and rich embedding representations. After integrating multi-source data, the updated node representations are used to deeply understand the user's behavior patterns. These node representations are obtained by analyzing the interaction data between users and products and brands, reflecting the user's preferences in the following aspects:

[0096] Interest preference: The preference shown by users for products of a specific type or attribute.

[0097] Price preference: A reflection of users’ price sensitivity, including the price range they tend to choose.

[0098] Brand preference: The degree of loyalty or preference a user has for a particular brand.

[0099] This approach not only improves the understanding of the motivations behind user behavior, but also provides a solid foundation for the design of personalized recommendation systems, enabling the system to more accurately predict users' potential needs and provide customized services.

[0100] For interest preferences, users' interests often evolve with the order in which they click items in a session. The positions of different items in the session sequence contribute differently to the final session representation, especially items at the end of the session sequence, which have a higher weight on the expression of user interests. Based on this observation, the present invention particularly emphasizes the importance of the last clicked item, because it can effectively reflect the user's current interest preferences.

[0101] In step 4, a fusion strategy is proposed to comprehensively consider the embedding representations of different positions to enrich the representation of each item and ensure that these representations can accurately capture the dynamic changes of user interests. By comprehensively considering the embedding vectors from different dimensions, a more comprehensive representation is created; specifically, a fusion method is used to integrate information from multiple aspects such as price, brand, and user behavior.

[0102] For interest preferences, users' interests often change with the order in which they click items in a session. Different items contribute differently to the final session representation. Generally, items at the end of the session sequence are more important for expressing user interests. The last item clicked can especially effectively reflect the user's current interest preferences. Therefore, we first consider fusing embeddings at different positions into the representation of each item. The specific formula is as follows:

[0103] ;

[0104] in, represents the embedding representation of item node n after incorporating position information, represents the embedding representation of the ith position, Represents the updated embedding of the item id at the i-th position.

[0105] Then use the attention mechanism to perform weighted calculations on the item nodes in the current session to obtain the embedding representation of the current session:

[0106] ;

[0107] ;

[0108] in, represents the embedding weight of the current i-th session, as well as is a learnable parameter, is the attention function, m is the total length of the session, Represents user interest preference representation.

[0109] Next, the current session representation is fused with the last item in the session through a gating mechanism. The specific formula is as follows:

[0110] θ = σ ( W 3 [ I s | | h i i d ] ) ;

[0111] ;

[0112] in, and represents the learnable weights, is a learnable parameter, is the influence coefficient of the gating mechanism. Represents the final user interest preference representation.

[0113] For price preference and brand preference, the present invention believes that the user's behavior sequence in the current session is relatively short, so their price tolerance and brand preference are unlikely to change. Therefore, the user's price preference and brand preference will not change with the click behavior sequence. Different from extracting user interest preferences, the present invention does not consider the location information of the item in the session, but directly models the user's preference information through the attention mechanism.

[0114] Taking brand preference as an example, in a session, the brands of the item sequences clicked by the user are , for this sequence, the brand preference is obtained through a multi-head attention mechanism; the specific formula is as follows:

[0115] ;

[0116] ;

[0117] ;

[0118] in, Represents a collection of brands, , , is a parameter matrix of queries, keys, and values, represents the number of heads in the self-attention module, represents the brand preference after combining the weights, ; is the brand preference extracted in the current session; Concat() is the function that calculates the preference.

[0119] In the same way as brand preference, the price preference P in the current session is obtained.

[0120] The above step 4 comprehensively considers the embedding vectors from different dimensions to create a more comprehensive representation, which not only enhances the feature description of each item, but also enables the system to sensitively respond to the evolution of user interests. The above fusion technology integrates information on price, brand, user behavior, etc., which not only enriches the multi-dimensional features of the items, but also improves the model's ability to capture changes in user preferences, and recommends more personalized and timely content to users.

[0121] Step 5. Logits mean processing.

[0122] For any given user session, by comparing the similarity of the user preference target value in the current session with that in other sessions, the logits output by the model are dynamically interpolated to balance the personalized preferences of different users. In addition, the relevance and diversity of the recommendation results are enhanced by predicting the next item that the user is interested in.

[0123] In current session recommendations, most models are committed to better meeting the interests and needs of users, but this may cause the recommendation system to be more inclined to recommend items that are similar to the user's historical behavior. In addition, there is a "long tail effect" in the recommendation data set, and the model can easily ignore items with fewer clicks. Increasing the diversity of recommendations can give users a wider range of choices, improve user satisfaction and avoid the problem of information overload. In this step, the logits of sessions with the same target value are interpolated to effectively merge global context information, thereby improving the accuracy and diversity of recommendations. The so-called logits refers to the unnormalized prediction value output by the model, which represents the model's score or confidence for each candidate.

[0124] First, the initial raw logits value of the target session is calculated, and the final recommendation probability of each candidate item in each session is calculated based on its item features and user preferences.

[0125] Specifically, each candidate item is first calculated in step 4 to obtain its user interest preference representation , Brand preference expression and price preference expression ; These embedding representations capture the core properties of items.

[0126] Then, by calculating the cosine similarity between these embeddings and the user preference vector, a new logits value is generated for each candidate sample; the specific formula is as follows:

[0127] .

[0128] in, Represents the value obtained after similarity calculation. represents the embedding representation of the i-th item node, represents the embedding representation of the i-th brand node, represents the embedding representation of the i-th price node.

[0129] To increase the diversity of recommendations, the present invention improves diversity by averaging the logits of the same items for sessions that share the same target item. Specifically, the initial logits of each item are obtained by calculating the cosine similarity between user preferences and item embeddings, and then only the logits values ​​of short-tail items are updated, while the values ​​of long-tail items remain unchanged.

[0130] The update method for short-tail items is to calculate the average of all logits whose target value is the item.

[0131] For example, Figure 4 As shown, assuming that the item It is a short-tailed item. , The target value is ,calculate , The mean of the logits , and use it as , Updated value. Short-tail items appear frequently in a session, and averaging their logits helps supplement the global context information.

[0132] Next, the softmax function is applied to normalize the initial original logits and the updated new logits to obtain the item The final score in the current session is as follows:

[0133] ;

[0134] in, represents the updated new logits, n represents the total number of items, Represents the updated logits score; definition express The results after averaging are shown below:

[0135] ;

[0136] Among them, Mean() is the function for calculating the mean;

[0137] However, simply averaging the logits is not enough, as this would ignore the transformation information of the original item features.

[0138] Therefore, the present invention needs to calculate two loss functions: one for the original logits and the other for the averaged logits, so as to more comprehensively consider the impact of the original features and avoid losing important information. The specific formula is as follows:

[0139] ;

[0140] ;

[0141] in, is the loss function for the original logits, is the loss function for the averaged logits, It is the one-hot encoding vector corresponding to the next click of the real user.

[0142] Finally, the final loss function is obtained by the sum of the two losses. The specific formula is as follows:

[0143]

[0144] in, is the weight coefficient used to balance the impact between the two losses.

[0145] In addition, in order to verify the effectiveness of the method of the present invention, the following experimental process is also given.

[0146] The method of the present invention is evaluated on three real and public data sets. The three data sets are Tmall1, Diginetica and Amazon. The core task of the present invention is to predict the item that the user may click next time based on the user's behavior sequence, while ensuring the diversity of the recommended results. To this end, the following three indicators are selected to evaluate the performance of the algorithm: precision P@N (Precision), mean reciprocal rank MRR@N (Mean Reciprocal Rank) and coverage Cov@N (Coverage). Among them, P@N and MRR@N are used to measure the proportion of correct results in the recommended results to all returned results and to evaluate the ranking quality of the items that are actually clicked in the recommended results. Cov@N refers to the proportion of different items covered in the first N recommended results. This indicator is used to measure the coverage and diversity of the recommendation method to indicate whether the recommendation method can cover a wide range of items that users may be interested in. In the experiment, N is set to 10 and 20.

[0147] In order to verify the effectiveness of the method of the present invention, seven mainstream conversation recommendation methods are selected as comparison models. The comparison models include representative algorithms based on RNN, GNN, and models for solving long-tail problems. A brief introduction to the comparison models:

[0148] S-POP (Toward the next generation of recommender systems: A survey of the state-of-the-art and possible extensions): The S-POP algorithm attempts to capture user behavior sequence information and time dependencies in recommendation to more accurately predict and recommend the next possible item. GRU4Rec (Session-based Recommendations with Recurrent Neural Networks): GRU4Rec is an RNN-based model that uses multiple GRU layers to model user sequences. This model first verified the effectiveness of RNN in session recommendation. NARM (Neural attentive session-based recommendation): NARM is a variant of GRU4Rec that combines an attention mechanism in RNN to better capture user preferences. STAMP (short-term attention / memory priority model for sessionbased recommendation): STAMP replaces the RNN encoder in previous work with an attention layer, and relies entirely on the last item in the current session through the attention mechanism to capture user preferences. SR-GNN (Session-based recommendation with graph neural networks): SR-GNN first proposed to construct the session as a session graph, obtain the embedding of the items through the gated graph convolution layer, and then calculate the last item with the attention mechanism like STAMP to obtain the session representation, so as to complete the recommendation. NISRE (NISER: Normalized Item and Session Representations with Graph Neural Networks): NISRE is a classic model for solving the long-tail problem in recommendation. Similar to SR-GNN, it models the session as a graph structure and improves the recommendation diversity by normalizing the item and session representation. GISDCN (a graph-based interpolation sequential recommender with deformable convolutional network): GISDCN models the item sequence information as a graph structure and generates more robust and flexible filters through deformable convolutional networks to infer user preferences.

[0149] Through the comparison of experimental results, it is known that the performance of the method of the present invention in the three data sets is better than that of all the algorithms of the comparison models. In the Tmall data set, the P@10, P@20, MRR@10 and MRR@20 indicators increased by 9.11%, 10.30%, 9.63% and 10.75% respectively, indicating that the method of the present invention can more accurately predict user interests on this data set and provide users with recommendation results that are more in line with their preferences. In addition, the method of the present invention has also achieved good performance in terms of the diversity of recommendation results. In the Tmall and Diginetic data sets, Cov@20 increased by 6.66% and 4.52% respectively. This further proves that the method of the present invention can provide more diversified and personalized recommendations to meet the different interests and needs of users.

[0150] The present invention improves the diversity and accuracy of recommendations by replacing the logits of short-headed items with the target value with the average logits of the same target value. In order to prove the effectiveness of the logits mean processing, an ablation experiment was performed on it. The experimental results show that the method of the present invention improves P@10, P@20, MRR@10, MRR@20, Cov@10 and Cov@20 by 2.06%, 1.02%, 1.52%, 0.69%, 10.9% and 6.50% in the Tmall dataset, respectively. In the Diginetic dataset, it improves by 6.50%, 7.25%, 5.59%, 5.61%, 7.79% and 6.60% respectively. The coverage rate is significantly improved in both datasets, highlighting the excellent effect of the present invention in improving the diversity of recommendations. At the same time, in terms of model accuracy, both datasets are also improved. These results fully demonstrate the effectiveness of the conversational recommendation method proposed by the present invention.

[0151] Example 2

[0152] This embodiment 2 describes a conversation recommendation system based on a heterogeneous hypergraph neural network, which adopts the same inventive concept as the conversation recommendation method based on a heterogeneous hypergraph neural network in the above embodiment 1.

[0153] The conversation recommendation system based on heterogeneous hypergraph neural network in this embodiment includes the following modules:

[0154] A graph building module, which is used to build heterogeneous hypergraph models to capture and express complex high-order relationships between entities;

[0155] The constructed heterogeneous hypergraph model consists of a set of nodes and a set of edges;

[0156] The node set is divided into three types of nodes: ID, price, and brand; the edge set contains four types of hyperedges: interest hyperedge, brand hyperedge, price hyperedge, and heterogeneous hyperedge to achieve connections between different nodes;

[0157] The node-level aggregation module is used to integrate the properties of the node itself and the features of its neighboring nodes of the same type connected by isomorphic hyperedges to achieve deep feature fusion and generate a comprehensive and rich node representation;

[0158] The semantic layer aggregation module is used to capture the complex relationships between product prices, brands, and user interests by constructing heterogeneous hyperedges, and generate embedded representations of items, brands, and prices through graph neural networks;

[0159] The preference extraction module, after obtaining the updated node embedding representation, combines different location information and uses the attention mechanism and gating mechanism to obtain the user's interest preference, and obtains the user's price preference and brand preference through the multi-head attention mechanism;

[0160] And the logits mean module is used to dynamically interpolate the logits output by the model for any given user session by comparing the similarity of the user preference target value in the current session with that in other sessions to balance the personalized preferences of different users. It also enhances the relevance and diversity of the recommendation results by predicting the next item that the user is interested in.

[0161] It should be noted that, in the conversation recommendation system based on heterogeneous hypergraph neural network, the implementation process of the functions and effects of each functional module is specifically described in the implementation process of the corresponding steps in the method in Example 1, and will not be repeated here.

[0162] Of course, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiments. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field under the guidance of this specification fall within the essential scope of this specification and should be protected by the present invention.

Claims

1. A conversation recommendation method based on heterogeneous hypergraph neural network, It is characterized in that The steps include: Step 1. Build a heterogeneous hypergraph model to capture and express complex high-order relationships between entities; The constructed heterogeneous hypergraph model consists of a set of nodes and a set of edges; The node set is divided into three types of nodes: ID, price, and brand; the edge set contains four types of hyperedges: interest hyperedge, brand hyperedge, price hyperedge, and heterogeneous hyperedge to achieve connections between different nodes; Step 2: Integrate the attributes of the node itself and the features of its neighboring nodes of the same type connected by isomorphic hyperedges to achieve deep feature fusion and generate a comprehensive and rich node representation; The step 2 is specifically as follows: Firstly, a method based on transformation matrix is ​​proposed to map the features of three different types of nodes from their respective spaces into a unified feature space to achieve the integration of heterogeneous information; the mapping process is as follows: Among them, t' represents the original id, p and c; t represents the mapped node id, p and c; represents the original feature of the i-th node, Represents the updated mapping feature of the i-th node; For any node n, n∈N, its neighbor node n of the same type s There are significant differences in the degree of influence on node n, so the attention mechanism is introduced. Through the attention mechanism, the association weight between node n and each neighbor node of node n is first calculated, and then the obtained weight is normalized. The specific formula is as follows: Where f(·) is the iterative function, is a learnable parameter; express The updated representation of the neighbor nodes is: represents the weight of the kth node; i, j, and k represent the node counts, all of which belong to N; Since the neighbor nodes of each node are different, different effects will be produced when aggregating neighbor nodes. Then, the embedding representation of each node is updated through the linear combination of the neighbor node features. The specific formula is as follows: in, Represents the total number of neighbor nodes of node i; Step 3. Capture the complex relationship between product price, brand, and user interest by constructing heterogeneous hyperedges, and generate embedded representations of items, brands, and prices through graph neural networks; The step 3 is specifically as follows: For any type of node n t , a gating mechanism is used to realize information transmission and integration between heterogeneous nodes, and the information of non-target nodes is effectively propagated to the target node; the specific formula is as follows: Among them, res t represents the target node, g(·) represents the activation function, ~ represents the cascade operation, t 1 Indicates one of the remaining types except the target node type, t 2 Indicates that except for the target node and t 1 Outer type; W t ∈R d×3d , is a learnable parameter, μ is a controllable weight, and h t represents the embedding representation of the target node, and They are the embedded representations of the other two types of nodes connected with heterogeneous hyperedges; Step 4. After obtaining the updated node embedding representation, combine different location information, and use the attention mechanism and gating mechanism to obtain the user's interest preference, and use the multi-head attention mechanism to obtain the user's price preference and brand preference; Step 5. For any given user session, by comparing the similarity of the user preference target value in the current session with that in other sessions, the logits output by the model are dynamically interpolated to balance the personalized preferences of different users. The relevance and diversity of the recommendation results are enhanced by predicting the next item that the user is interested in.

2. The conversation recommendation method based on heterogeneous hypergraph neural network according to claim 1, It is characterized in that The step 1 is specifically as follows: The constructed heterogeneous hypergraph model G is G = (N, E), where G consists of a node set N and an edge set E; The node set N is divided into three types of nodes: ID, price and brand; define parameter n id 、n p 、n c Representing ID, price and brand respectively, the following relationship exists between the three types of nodes: N=n id ∧n p ∧n c ; Among them, ∧ represents n id 、n p 、n c There is a union logical relationship between them; The edge set E includes the following four types of hyperedges to achieve connections between different nodes: 1) Interest hyperedge, which is used to connect all ID nodes in the session; 2) Brand hyperedge, which connects all brand nodes; 3) Price hyperedge, which connects all price nodes; 4) Heterogeneous hyperedges, which are used to comprehensively connect the ID, price, and brand information of a single item.

3. The conversation recommendation method based on heterogeneous hypergraph neural network according to claim 1, It is characterized in that The step 4 is specifically as follows: First, consider fusing the embeddings of different positions into the representation of each item. The formula is as follows: in, represents the embedding representation of item node n after integrating the position information, l i represents the embedding representation of the ith position, represents the updated embedding of the item id at the i-th position; Then use the attention mechanism to perform weighted calculations on the item nodes in the current session to obtain the embedding representation of the current session: Among them, β i represents the embedding weight of the current i-th session, W 1 , W 2 ∈R d×d and b is a learnable parameter, Attention(·) is the attention function, m is the total length of the session, I s Indicates user interest preference expression; Next, the current session representation is fused with the last item in the session through a gating mechanism. The specific formula is as follows: Among them, θ and σ represent the learnable weights, W 3 ∈R d×2d is a learnable parameter, ε is the influence coefficient of the gating mechanism, and the I obtained at this time s Represents the final user interest preference representation; Next, the user’s price preference and brand preference are obtained through a multi-head attention mechanism; Specifically, in a session, the brands of the item sequences clicked by the user are For this sequence, the brand preference is obtained through a multi-head attention mechanism; the specific formula is as follows: head i =Attention(W i Q v c ,W i K v c ,W i V v c ); C=Concat(head 1 ,head 2 ,…,head x ); Among them, v c Represents a collection of brands, is the parameter matrix of query, key and value, x represents the number of heads in the self-attention module, and C is the brand preference extracted in the current session; Concat() is a function that calculates preferences. i represents the brand preference after combining weights, i = 1, 2, ..., x; The price preference P in the current session is obtained in the same way as the brand preference.

4. The conversation recommendation method based on heterogeneous hypergraph neural network according to claim 1, It is characterized in that The step 5 is specifically as follows: First, the initial original logits value of the target session is calculated. The final recommendation probability of each candidate item in each session is based on the calculation results of its item features and user preferences. Specifically, each candidate item is first calculated in step 4 to obtain its user interest preference representation I s , brand preference represented by C and price preference represented by P; Then, by calculating the cosine similarity, a new logits value is generated for each candidate sample. The specific formula is as follows: Among them, z i Represents the value obtained after similarity calculation. represents the embedding representation of the i-th item node, represents the embedding representation of the i-th brand node, represents the embedding representation of the i-th price node; For sessions that share the same target item, we increase diversity by averaging the new logits of the same item. Specifically, we calculate the cosine similarity between user preferences and item embeddings to get the initial logits for each item. Then, we update only the logits of short-tail items, while the values ​​of long-tail items remain unchanged. We update short-tail items by averaging the logits of all items whose target value is the item. Next, we apply the softmax function to normalize the initial logits and the updated new logits to get the item v. i The final score in the current session; the specific formula is as follows: in, represents the updated logits score, z j represents the updated new logits, n represents the total number of items, and the definition express The results after averaging are calculated as follows: Among them, Mean() is the function for calculating the mean; Two loss functions are calculated: one for the original logits and the other for the averaged logits to more comprehensively consider the impact of the original features and avoid losing important information; the specific formula is as follows: in, is the loss function for the original logits, is the loss function for the averaged logits, y i is the one-hot encoding vector corresponding to the next click of the real user; Finally, the final loss function is obtained by the sum of the two losses. The specific formula is as follows: Among them, ω is the weight coefficient used to balance the impact between the two losses.

5. A conversation recommendation system based on a heterogeneous hypergraph neural network for implementing the conversation recommendation method based on a heterogeneous hypergraph neural network as claimed in claim 1, It is characterized in that The conversation recommendation system based on heterogeneous hypergraph neural network includes the following modules: A graph building module, which is used to build heterogeneous hypergraph models to capture and express complex high-order relationships between entities; The constructed heterogeneous hypergraph model consists of a set of nodes and a set of edges; The node set is divided into three types of nodes: ID, price, and brand; the edge set contains four types of hyperedges: interest hyperedge, brand hyperedge, price hyperedge, and heterogeneous hyperedge to achieve connections between different nodes; The node-level aggregation module is used to integrate the properties of the node itself and the features of its neighboring nodes of the same type connected by isomorphic hyperedges to achieve deep feature fusion and generate a comprehensive and rich node representation; The semantic layer aggregation module is used to capture the complex relationships between product prices, brands, and user interests by constructing heterogeneous hyperedges, and generate embedded representations of items, brands, and prices through graph neural networks; The preference extraction module, after obtaining the updated node embedding representation, combines different location information and uses the attention mechanism and gating mechanism to obtain the user's interest preference, and obtains the user's price preference and brand preference through the multi-head attention mechanism; And the logits mean module is used to dynamically interpolate the logits output by the model for any given user session by comparing the similarity of the user preference target value in the current session with that in other sessions to balance the personalized preferences of different users. It also enhances the relevance and diversity of the recommendation results by predicting the next item that the user is interested in.

Citation Information

Cited By

  • Multimodal time-aligned shared tag recommendation device

    TWI946143B