Price perception recommendation method and system based on global and dynamic knowledge graph guidance
By building a global and dynamic knowledge graph on the B2B e-commerce platform, combined with knowledge graph embedded learning and sequential models, the challenge of the recommendation system in capturing dynamic prices and user behavior changes is solved, and recommendation performance and user experience are improved.
Patent Information
- Application Number
- CN202411108273.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Recommendation systems on B2B e-commerce platforms have challenges in capturing dynamic product prices and changes in user historical behavior, resulting in reduced recommendation performance. Existing methods are difficult to effectively solve the problems of data sparsity and scalability.
A price-aware recommendation method based on global and dynamic knowledge graphs is adopted. By obtaining historical interaction data between users and products, a dynamic knowledge graph and a global knowledge graph are constructed, and the knowledge graph embedded learning and time series models are used to capture the dynamic changes in product prices and user preferences. Training models using a combination of deep learning and Bayesian ranking loss.
Significantly improves the performance and user experience of the recommendation system, achieving refined feature extraction and improvement of recommendation effects on product prices and user preferences.
Smart Images

Figure CN118628215A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of recommendation data analysis, and more specifically, to a price-aware recommendation method and system based on global and dynamic knowledge graph guidance. Background Art
[0002] Recommender systems have been widely studied in academia and industry, and play an important role in many online platforms (such as e-commerce platforms, social network applications, and online advertising recommendations). Traditional recommendation systems include collaborative filtering, content-based filtering, and matrix decomposition. However, as the number of users and items grows, problems such as data sparsity become more obvious, and these methods become more challenging in solving problems such as cold start of new users or items and massive heterogeneous data. In addition, as the scale of data increases, the scalability of existing methods is also limited.
[0003] In recent years, research on recommendation systems has begun to focus on the role of price in recommendation systems. These works analyze the characteristic distribution of commodity prices and use various strategies to model commodity prices to improve the accuracy of recommendations. Although these systems achieve good recommendation performance, they mainly use the numerical characteristics of commodity prices, ignoring the dynamic changes in commodity prices and the importance of combining users' dynamic preferences with overall preferences, resulting in performance degradation in some scenarios.
[0004] With the development of online shopping, B2C e-commerce platforms such as Amazon, Taobao, and JD.com have accumulated a large amount of user information, product information, and interaction data between users and products. Due to the large amount of data, the recommendation system on the B2C e-commerce platform has achieved great success. However, B2B e-commerce platforms have different characteristics from B2C e-commerce platforms. Compared with the recommendation system on B2C e-commerce platforms, the recommendation system on B2B e-commerce platforms is more challenging. First, the prices of goods on B2B e-commerce platforms may change over time. Second, the number of users and goods on B2B e-commerce platforms is much smaller than that on B2C e-commerce platforms. Finally, users on B2B e-commerce platforms are more likely to focus on specific categories of products. Therefore, how to capture the dynamic changes in product prices and user historical behavior is an urgent problem that price-aware recommendation algorithms in B2B scenarios need to solve. Summary of the invention
[0005] The present invention overcomes the defects of the prior art and proposes a price-aware recommendation method and system based on global and dynamic knowledge graph guidance.
[0006] The first aspect of the present invention provides a price-aware recommendation method based on global and dynamic knowledge graph guidance, comprising: Obtain historical interaction data between users and products in a B2B e-commerce platform, wherein the interaction data includes user ID, product ID, product category, product price, product sales volume, and interaction date; The commodity prices are classified into grades based on the granularity of days, and the dynamic price characteristics of commodities are obtained through the grade classification. For each commodity category, the prices of all commodities in it are taken out to form a price list. The discrete price list is divided into discontinuity points using the natural interval method, and each price grade interval is determined based on the interval points. Construct a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes on a daily basis, and construct a global knowledge graph containing data from the entire time interval based on the dynamic knowledge graph; Use knowledge graph embedding learning technology to learn node representations of global knowledge graphs and dynamic knowledge graphs; Use time series models to capture the dynamic changes in commodity prices over time as well as the characteristics of users' historical purchasing behavior and overall purchasing power; Build a price-aware recommendation model based on deep learning, use the learned node representation as model input, capture the dynamic changes of product prices and user preferences through the model, and use Bayesian ranking loss to train the model.
[0007] In this solution, a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes is constructed on a daily basis, and a global knowledge graph containing data for the entire time interval is constructed based on the dynamic knowledge graph, specifically: After classifying commodity prices at a daily granularity, the user ID, commodity ID, commodity category, and commodity price grade data of each day are used to construct a dynamic knowledge graph. The dynamic knowledge graph nodes include user nodes, commodity nodes, category nodes, and price grade nodes. The dynamic knowledge graph relationships include user-commodity relationships, commodity-category relationships, and commodity-price grade relationships. According to the preset training window size, all user IDs, product IDs, product categories and product price level data in a training window are used to construct the global knowledge graph, where the price level nodes are obtained by weighted aggregation based on the price level nodes in the dynamic knowledge graph.
[0008] In this solution, the node representation of the global knowledge graph and the dynamic knowledge graph is learned by using the knowledge graph embedding learning technology, specifically: In a training window, a knowledge graph embedding learning model is trained for each day's dynamic knowledge graph and the global knowledge graph, and the node representations in each knowledge graph are generated by the embedding learning model.
[0009] In this solution, the time series model is used to capture the characteristics of the dynamic changes in commodity prices over time and the characteristics of the user's historical purchasing behavior and overall purchasing power, specifically: After obtaining the node representations of all dynamic knowledge graphs in the training window, the nodes of each day are linked. For nodes that are missing on a certain day, the node embedding vector is replaced by zero. The processed node representation vector is input into the time series model to capture the dynamic characteristics of the node in time series.
[0010] In this solution, a price-aware recommendation model based on deep learning is constructed, the learned node representation is used as model input, the dynamic changes of commodity prices and user preferences are captured by the model, and the model is trained using Bayesian ranking loss, specifically: For each node in the global knowledge graph, the temporal features of the dynamic knowledge graph node are captured through the temporal model and a node representation containing global information is generated; The temporal features of the nodes in the dynamic knowledge graph are captured through the temporal model and a node representation containing the temporal features is generated. The node representation containing the temporal features is fused with the node representation containing the global information using the self-attention mechanism, and finally a node representation containing both dynamic information and global information is generated. The node representation containing dynamic information and global information is input into the price-aware recommendation model based on deep learning, and the price-aware recommendation model is trained using Bayesian ranking loss.
[0011] The second aspect of the present invention further provides a price-aware recommendation system based on global and dynamic knowledge graph guidance, the system comprising a dynamic subgraph spatial representation learning module, a dynamic subgraph temporal representation learning module, a global graph spatial representation learning module and a prediction module, and the system implements the following steps when it is running: Obtain historical interaction data between users and products in a B2B e-commerce platform, wherein the interaction data includes user ID, product ID, product category, product price, product sales volume, and interaction date; The commodity prices are classified into grades based on the granularity of days, and the dynamic price characteristics of commodities are obtained through the grade classification. For each commodity category, the prices of all commodities in it are taken out to form a price list. The discrete price list is divided into discontinuity points using the natural interval method, and each price grade interval is determined based on the interval points. Construct a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes on a daily basis, and construct a global knowledge graph containing data from the entire time interval based on the dynamic knowledge graph; Use knowledge graph embedding learning technology to learn node representations of global knowledge graphs and dynamic knowledge graphs; Use time series models to capture the dynamic changes in commodity prices over time as well as the characteristics of users' historical purchasing behavior and overall purchasing power; Build a price-aware recommendation model based on deep learning, use the learned node representation as model input, capture the dynamic changes of product prices and user preferences through the model, and use Bayesian ranking loss to train the model.
[0012] In this solution, a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes is constructed on a daily basis, and a global knowledge graph containing data for the entire time interval is constructed based on the dynamic knowledge graph, specifically: After classifying commodity prices at a daily granularity, the user ID, commodity ID, commodity category, and commodity price grade data of each day are used to construct a dynamic knowledge graph. The dynamic knowledge graph nodes include user nodes, commodity nodes, category nodes, and price grade nodes. The dynamic knowledge graph relationships include user-commodity relationships, commodity-category relationships, and commodity-price grade relationships. According to the preset training window size, all user IDs, product IDs, product categories and product price level data in a training window are used to construct the global knowledge graph, where the price level nodes are obtained by weighted aggregation based on the price level nodes in the dynamic knowledge graph.
[0013] In this solution, the node representation of the global knowledge graph and the dynamic knowledge graph is learned by using the knowledge graph embedding learning technology, specifically: In a training window, a knowledge graph embedding learning model is trained for each day's dynamic knowledge graph and the global knowledge graph, and the node representations in each knowledge graph are generated by the embedding learning model.
[0014] In this solution, the time series model is used to capture the characteristics of the dynamic changes in commodity prices over time and the characteristics of the user's historical purchasing behavior and overall purchasing power, specifically: After obtaining the node representations of all dynamic knowledge graphs in the training window, the nodes of each day are linked. For nodes that are missing on a certain day, the node embedding vector is replaced by zero. The processed node representation vector is input into the time series model to capture the dynamic characteristics of the node in time series.
[0015] The third aspect of the present invention also provides a computer-readable storage medium, which includes a price-aware recommendation program guided by a global and dynamic knowledge graph. When the price-aware recommendation program guided by a global and dynamic knowledge graph is executed by a processor, the steps of the price-aware recommendation method guided by a global and dynamic knowledge graph as described in any of the above items are implemented.
[0016] By obtaining the historical interaction data between users and commodities in the B2B e-commerce platform, the commodity prices are graded with the granularity of days and the dynamic price characteristics of commodities are obtained through the graded division, and the dynamic knowledge graph and the global knowledge graph containing nodes such as users and commodities are constructed with days as the unit; the node representation of the global knowledge graph and the dynamic knowledge graph is learned by using the knowledge graph embedding learning technology; a price-aware recommendation model based on deep learning is constructed, and the learned node representation is used as the model input, and the dynamic changes of commodity prices and user preferences are captured through the model, and the model is trained using the Bayesian ranking loss. Through the present invention, the performance of the recommendation system and the user experience can be significantly improved, and at the same time, the data recommendation effect can be improved.
[0017] Compared with the prior art, the present invention has the following advantages and beneficial effects: Through a dynamic price level discretization method, the commodity price is automatically mapped to the corresponding price level according to the date, and the time series model is used to capture the dynamic changes of commodity prices, so as to achieve refined feature extraction of commodity features; A price-aware recommendation model guided by global knowledge graph and dynamic knowledge graph was constructed. The model combines the dynamic subgraph spatial representation learning module, the dynamic subgraph temporal representation learning module, the global graph spatial representation learning module and the prediction module, which effectively improves the performance and user experience of the price-aware recommendation system, and at the same time, improves the data recommendation effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The dynamic price grading flow chart of the present invention is shown; Figure 2 The flowchart of the price-aware recommendation system guided by the global and dynamic knowledge graph of the present invention is shown; Figure 3 The framework diagram of the price-aware recommendation method based on global and dynamic knowledge graph guidance of the present invention is shown; Figure 4 An example of dynamic representation learning of user nodes of the present invention is shown. DETAILED DESCRIPTION
[0019] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0020] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0021] The first aspect of the present invention provides a price-aware recommendation method based on global and dynamic knowledge graph guidance, comprising: Obtain historical interaction data between users and products in a B2B e-commerce platform, wherein the interaction data includes user ID, product ID, product category, product price, product sales volume, and interaction date; The commodity prices are classified into grades based on the granularity of days, and the dynamic price characteristics of commodities are obtained through the grade classification. For each commodity category, the prices of all commodities in it are taken out to form a price list. The discrete price list is divided into discontinuity points using the natural interval method, and each price grade interval is determined based on the interval points. Construct a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes on a daily basis, and construct a global knowledge graph containing data from the entire time interval based on the dynamic knowledge graph; Use knowledge graph embedding learning technology to learn node representations of global knowledge graphs and dynamic knowledge graphs; Use time series models to capture the dynamic changes in commodity prices over time as well as the characteristics of users' historical purchasing behavior and overall purchasing power; Build a price-aware recommendation model based on deep learning, use the learned node representation as model input, capture the dynamic changes of product prices and user preferences through the model, and use Bayesian ranking loss to train the model.
[0022] According to an embodiment of the present invention, the dynamic knowledge graph containing user nodes, commodity nodes, commodity category nodes and price level nodes is constructed in units of days, and a global knowledge graph containing data of the entire time interval is constructed based on the dynamic knowledge graph, specifically: After classifying commodity prices at a daily granularity, the user ID, commodity ID, commodity category, and commodity price grade data of each day are used to construct a dynamic knowledge graph. The dynamic knowledge graph nodes include user nodes, commodity nodes, category nodes, and price grade nodes. The dynamic knowledge graph relationships include user-commodity relationships, commodity-category relationships, and commodity-price grade relationships. The training data within a period of time is sorted by date, and the date period is defined as the 0th day to the Tth day. The data set is divided by sliding window. The data from 0 to t is taken as the training set, and the data from t+1 is taken as the test set. At this time, the size of a training window can be set to t. According to the preset training window size, all user IDs, product IDs, product categories, and product price level data in a training window are used to construct the global knowledge graph, where the price level nodes are obtained by weighted aggregation based on the price level nodes in the dynamic knowledge graph.
[0023] According to an embodiment of the present invention, the node representation of the global knowledge graph and the dynamic knowledge graph is learned by using the knowledge graph embedding learning technology, specifically: In a training window, a knowledge graph embedding learning model is trained for each day's dynamic knowledge graph and the global knowledge graph, and the node representations in each knowledge graph are generated by the embedding learning model.
[0024] According to an embodiment of the present invention, the time series model is used to capture the characteristics of the dynamic changes in commodity prices over time and the characteristics of the user's historical purchasing behavior and overall purchasing power, specifically: After obtaining the node representations of all dynamic knowledge graphs in the training window, the nodes of each day are linked. For nodes that are missing on a certain day, the node embedding vector is replaced by zero. The processed node representation vector is input into the time series model to capture the dynamic characteristics of the node in time series.
[0025] According to an embodiment of the present invention, the price-aware recommendation model based on deep learning is constructed, the learned node representation is used as the model input, the dynamic changes of commodity prices and user preferences are captured by the model, and the model is trained using the Bayesian ranking loss, specifically: For each node in the global knowledge graph, the temporal features of the dynamic knowledge graph node are captured through the temporal model and a node representation containing global information is generated; The temporal features of the nodes in the dynamic knowledge graph are captured through the temporal model and a node representation containing the temporal features is generated. The node representation containing the temporal features is fused with the node representation containing the global information using the self-attention mechanism, and finally a node representation containing both dynamic information and global information is generated. The node representation containing dynamic information and global information is input into the price-aware recommendation model based on deep learning, and the price-aware recommendation model is trained using Bayesian ranking loss.
[0026] Figure 1 An example diagram of dynamic price grading according to the present invention is shown.
[0027] According to an embodiment of the present invention, the invention comprises: S102, sorting the commodity prices from small to large; S104, randomly select k-1 of them as discontinuity points; S106, calculating the SSD for each price level k; S108, calculating TSSD of all price levels based on SSD; S110, calculate the discontinuity point combination that minimizes TSSD; S112, classifying the commodities according to the calculated discontinuity point combinations, and performing unified price classification on the commodities within the same date.
[0028] Specifically, for the price-aware recommendation system, it is necessary to process the discretized commodity prices. First, the data is divided according to the date. Second, the commodity prices are extracted and processed to generate multiple price sequences according to the commodity categories. Finally, these multiple price sequences are divided into K levels based on the preset method. More specifically, for the category The price series of the product for: , find K-1 discontinuities in this price series according to the following steps: (1) Step 1: Sort from small to large, and randomly select K-1 prices as discontinuity points; (2) For each price level First, use Formula 1 to calculate the square difference between all prices in this price level and the average price of this price level. Indicates the category The price of the i-th commodity, Indicates the category And the average price of all products with price level k.
[0029] After that, use Formula 2 to calculate the sum of the squared differences of all prices; ; ; (3) Calculate the TSSD for each price range that may become a discontinuity point, and find the minimized TSSD as the price discontinuity point. is the squared difference of prices, and TSSD is the sum of squared differences.
[0030] After finding K-1 discontinuity points, The prices in the formula are used to classify the commodity prices.
[0031] ; in, Indicates Product categories; Indicated in The The price level of the product; Indicated in The The actual selling price of the product; Indicated in The lower limit price of the Kth price interval in , ; Indicated in The upper limit price of the Kth price interval in, .
[0032] Figure 2 The flowchart of the price-aware recommendation system guided by the global and dynamic knowledge graph of the present invention is shown.
[0033] According to an embodiment of the present invention, the invention comprises: S202, using a dynamic price discretization method to divide the commodity price list in the B2B e-commerce platform into price levels; S204, constructing a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes in units of days, and constructing a global knowledge graph containing data of the entire time interval based on the dynamic knowledge graph; S206, learning node representations of the global knowledge graph and the dynamic knowledge graph using knowledge graph embedding learning technology; S208, using the deep learning model to use the learned node representation as model input, and through model training, obtaining a price-aware recommendation model trained with dynamic information and global information.
[0034] Figure 3 The framework diagram of the price-aware recommendation method guided by the global and dynamic knowledge graph of the present invention is shown.
[0035] Regarding the construction of dynamic subgraphs (i.e., dynamic knowledge graphs) and global knowledge graphs, assume that data from T days are taken as the data set. The graph nodes include user nodes, product nodes, product category nodes, and product price level nodes. The relationships include user-product relationships, product-product type relationships, and product-product price level relationships. First, the above-mentioned dynamic price level classification method is used to classify the product prices for each day. Secondly, a (dynamic) knowledge graph model is constructed for each day's data according to the above-mentioned nodes and relationships. Finally, the data from these T days is aggregated and a global knowledge graph is constructed. The price level aggregation of the global knowledge graph is performed as follows: ; ; in, Display products exist The actual price after aggregation of the price level of the day (discrete value); Display products In the The actual price of the day; express for The weight of Display products In the The actual sales quantity of the day.
[0036] Dynamic subgraph spatial representation learning module. Specifically, after constructing the dynamic subgraph After that, you need to In this section, the DistMult model is used to learn node embedding. Its definition and template function are as follows: ; ; in, Represented as the head node, is the representation vector of the head node; Represented as a relationship, is the representation vector of the relationship; Represents the tail node, is the representation vector of the tail node; Represents the DistMult model loss function; Indicates The set of all triples of a dynamic subgraph; is the activation function.
[0037] The global graph space representation learning module, specifically, has the same node representation learning process as the dynamic subgraph space representation learning module.
[0038] Dynamic subgraph temporal representation learning module. Specifically, Figure 3 As shown in Figure 1, the LSTM time series model is used to learn the dynamic features of the dynamic subgraph over time. The representation vectors on the T dynamic subgraphs are: , link each representation vector together as the input of the LSTM model, and finally take the output of the model as the user The characterization vector with time series features. The remaining nodes are processed in the same way as the user nodes.
[0039] Regarding the prediction module, specifically, after obtaining the node representation containing temporal features and the node representation containing global information features, attention is further used to aggregate these two parts of the node vector representation, as shown in the following formula: ; ; ; in, Indicates user The final representation vector of Indicates user A representation vector containing temporal features; For users A representation vector containing global information features; and They are and The weights of are two learnable parameters. The remaining nodes are processed in the same way as the user nodes.
[0040] After obtaining the final representation vectors of all nodes, As the input of the multi-layer perceptron (MLP), the output of the MLP layer is used as the user Likely to buy product Probability .in, For goods price level; For goods The categories are as shown in the following formula: ; Based on the above modules, the Bayesian Ranking Loss (BPR Loss) is used to train the model. First, for the user Calculating the likelihood of purchasing a product Probability At the same time, you also need to select a user from the product pool No products purchased as negative samples. Secondly, calculate the user Likely to buy product Probability Finally, use it as the input of BPR Loss to get the final model loss, as shown in the following formula: ; in, is the BPR loss of the model; represents the i-th user; represents the jth product, which is a positive sample; Indicates the kth product, which is a negative sample; Represents the set of all users, positive samples, and negative samples; is the activation function.
[0041] Finally, through the above steps, a trained price-aware recommendation system model based on global knowledge graph and dynamic knowledge graph can be obtained. It can be applied to the recommendation of B2B e-commerce platform to further improve the performance and user experience of price-aware recommendation system.
[0042] Figure 4 An example of dynamic representation learning of user nodes of the present invention is shown.
[0043] The second aspect of the present invention further provides a price-aware recommendation system based on global and dynamic knowledge graph guidance, the system comprising a dynamic subgraph spatial representation learning module, a dynamic subgraph temporal representation learning module, a global graph spatial representation learning module and a prediction module, and the system implements the following steps when it is running: Obtain historical interaction data between users and products in a B2B e-commerce platform, wherein the interaction data includes user ID, product ID, product category, product price, product sales volume, and interaction date; The commodity prices are classified into grades based on the granularity of days, and the dynamic price characteristics of commodities are obtained through the grade classification. For each commodity category, the prices of all commodities in it are taken out to form a price list. The discrete price list is divided into discontinuity points using the natural interval method, and each price grade interval is determined based on the interval points. Construct a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes on a daily basis, and construct a global knowledge graph containing data from the entire time interval based on the dynamic knowledge graph; Use knowledge graph embedding learning technology to learn node representations of global knowledge graphs and dynamic knowledge graphs; Use time series models to capture the dynamic changes in commodity prices over time as well as the characteristics of users' historical purchasing behavior and overall purchasing power; Build a price-aware recommendation model based on deep learning, use the learned node representation as model input, capture the dynamic changes of product prices and user preferences through the model, and use Bayesian ranking loss to train the model.
[0044] The present invention discloses a price-aware recommendation system guided by a global knowledge graph and a dynamic knowledge graph, including: using a dynamic price discretization method to automatically classify price levels for commodities in a B2B e-commerce platform; constructing a dynamic knowledge graph containing user nodes, commodity nodes, commodity category nodes, and price level nodes in units of days, and constructing a global knowledge graph containing data of the entire time interval; using knowledge graph embedding learning technology to learn node representations of the global knowledge graph and the dynamic knowledge graph; using a time series model to capture the characteristics of commodity prices changing dynamically over time; using a deep learning model to use the learned node representations for model input, and training a model that can capture the dynamic changes of commodity prices and user preferences, and can also consider dynamic information and global information. The method and recommendation model of the present invention effectively improve the performance and user experience of the price-aware recommendation system.
[0045] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0046] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0047] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0048] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0049] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0050] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A price-aware recommendation method based on global and dynamic knowledge graph guidance, characterized in that: include: Obtain historical interaction data between users and products in a B2B e-commerce platform, wherein the interaction data includes user ID, product ID, product category, product price, product sales volume, and interaction date; The commodity prices are classified into grades based on the granularity of days, and the dynamic price characteristics of commodities are obtained through the grade classification. For each commodity category, the prices of all commodities in it are taken out to form a price list. The discrete price list is divided into discontinuity points using the natural interval method, and each price grade interval is determined based on the interval points. Construct a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes on a daily basis, and construct a global knowledge graph containing data from the entire time interval based on the dynamic knowledge graph; Use knowledge graph embedding learning technology to learn node representations of global knowledge graphs and dynamic knowledge graphs; Use time series models to capture the dynamic changes in commodity prices over time as well as the characteristics of users' historical purchasing behavior and overall purchasing power; Build a price-aware recommendation model based on deep learning, use the learned node representation as model input, capture the dynamic changes of product prices and user preferences through the model, and use Bayesian ranking loss to train the model.
2. According to claim 1, a price-aware recommendation method based on global and dynamic knowledge graph guidance is characterized in that: The dynamic knowledge graph containing user nodes, product nodes, product category nodes and price level nodes is constructed in units of days, and a global knowledge graph containing data of the entire time interval is constructed based on the dynamic knowledge graph, specifically: After classifying commodity prices at a daily granularity, the user ID, commodity ID, commodity category, and commodity price grade data of each day are used to construct a dynamic knowledge graph. The dynamic knowledge graph nodes include user nodes, commodity nodes, category nodes, and price grade nodes. The dynamic knowledge graph relationships include user-commodity relationships, commodity-category relationships, and commodity-price grade relationships. According to the preset training window size, all user IDs, product IDs, product categories and product price level data in a training window are used to construct the global knowledge graph, where the price level nodes are obtained by weighted aggregation based on the price level nodes in the dynamic knowledge graph.
3. According to claim 1, a price-aware recommendation method based on global and dynamic knowledge graph guidance is characterized in that: The node representation of the global knowledge graph and the dynamic knowledge graph is learned by using the knowledge graph embedding learning technology, specifically: In a training window, a knowledge graph embedding learning model is trained for each day's dynamic knowledge graph and the global knowledge graph, and the node representations in each knowledge graph are generated by the embedding learning model.
4. The price-aware recommendation method based on global and dynamic knowledge graph guidance according to claim 1, characterized in that: The time series model is used to capture the characteristics of the dynamic changes in commodity prices over time and the characteristics of the user's historical purchasing behavior and overall purchasing power, specifically: After obtaining the node representations of all dynamic knowledge graphs in the training window, the nodes of each day are linked. For nodes that are missing on a certain day, the node embedding vector is replaced by zero. The processed node representation vector is input into the time series model to capture the dynamic characteristics of the node in time series.
5. The price-aware recommendation method based on global and dynamic knowledge graph guidance according to claim 1, characterized in that: The price-aware recommendation model based on deep learning is constructed, the learned node representation is used as the model input, the dynamic changes of commodity prices and user preferences are captured by the model, and the model is trained using Bayesian ranking loss, specifically: For each node in the global knowledge graph, the temporal features of the dynamic knowledge graph node are captured through the temporal model and a node representation containing global information is generated; The temporal features of the nodes in the dynamic knowledge graph are captured through the temporal model and a node representation containing the temporal features is generated. The node representation containing the temporal features is fused with the node representation containing the global information using the self-attention mechanism, and finally a node representation containing both dynamic information and global information is generated. The node representation containing dynamic information and global information is input into the price-aware recommendation model based on deep learning, and the price-aware recommendation model is trained using Bayesian ranking loss.
6. A price-aware recommendation system guided by global and dynamic knowledge graph, characterized in that: The system includes a dynamic subgraph spatial representation learning module, a dynamic subgraph temporal representation learning module, a global graph spatial representation learning module and a prediction module. The system implements the following steps when it is running: Obtain historical interaction data between users and products in a B2B e-commerce platform, wherein the interaction data includes user ID, product ID, product category, product price, product sales volume, and interaction date; The commodity prices are classified into grades based on the granularity of days, and the dynamic price characteristics of commodities are obtained through the grade classification. For each commodity category, the prices of all commodities in it are taken out to form a price list. The discrete price list is divided into discontinuity points using the natural interval method, and each price grade interval is determined based on the interval points. Construct a dynamic knowledge graph containing user nodes, product nodes, product category nodes, and price level nodes on a daily basis, and construct a global knowledge graph containing data from the entire time interval based on the dynamic knowledge graph; Use knowledge graph embedding learning technology to learn node representations of global knowledge graphs and dynamic knowledge graphs; Use time series models to capture the dynamic changes in commodity prices over time as well as the characteristics of users' historical purchasing behavior and overall purchasing power; Build a price-aware recommendation model based on deep learning, use the learned node representation as model input, capture the dynamic changes of product prices and user preferences through the model, and use Bayesian ranking loss to train the model.
7. A price-aware recommendation system based on global and dynamic knowledge graph guidance according to claim 6, characterized in that: The dynamic knowledge graph containing user nodes, product nodes, product category nodes and price level nodes is constructed in units of days, and a global knowledge graph containing data of the entire time interval is constructed based on the dynamic knowledge graph, specifically: After classifying commodity prices at a daily granularity, the user ID, commodity ID, commodity category, and commodity price grade data of each day are used to construct a dynamic knowledge graph. The dynamic knowledge graph nodes include user nodes, commodity nodes, category nodes, and price grade nodes. The dynamic knowledge graph relationships include user-commodity relationships, commodity-category relationships, and commodity-price grade relationships. According to the preset training window size, all user IDs, product IDs, product categories and product price level data in a training window are used to construct the global knowledge graph, where the price level nodes are obtained by weighted aggregation based on the price level nodes in the dynamic knowledge graph.
8. A price-aware recommendation system based on global and dynamic knowledge graph guidance according to claim 6, characterized in that: The node representation of the global knowledge graph and the dynamic knowledge graph is learned by using the knowledge graph embedding learning technology, specifically: In a training window, a knowledge graph embedding learning model is trained for each day's dynamic knowledge graph and the global knowledge graph, and the node representations in each knowledge graph are generated by the embedding learning model.
9. A price-aware recommendation system based on global and dynamic knowledge graph guidance according to claim 6, characterized in that: The time series model is used to capture the characteristics of the dynamic changes in commodity prices over time and the characteristics of the user's historical purchasing behavior and overall purchasing power, specifically: After obtaining the node representations of all dynamic knowledge graphs in the training window, the nodes of each day are linked. For nodes that are missing on a certain day, the node embedding vector is replaced by zero. The processed node representation vector is input into the time series model to capture the dynamic characteristics of the node in time series.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a price-aware recommendation program guided by a global and dynamic knowledge graph. When the price-aware recommendation program guided by a global and dynamic knowledge graph is executed by a processor, the steps of the price-aware recommendation method guided by a global and dynamic knowledge graph as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Dynamic recommendation method and system based on knowledge graph embedding
CN111651613A
Sequence recommendation method fusing dynamic knowledge graph
CN113590900A
News recommendation method and system fusing knowledge graph and user long-term and short-term interests and medium
CN116010696A
Point of interest recommendation method based on time sequence knowledge graph, medium and electronic equipment
CN118377979A
Commodity recommendation method and apparatus for enterprise user
WO2022156529A1
Cited By
B2B food material purchasing recommendation method and system based on dynamic relation graph
CN121032614A
