Group purchase personalized recommendation system based on large model and knowledge graph

Through a personalized group buying recommendation system combining large models and knowledge graphs, analyses product and user data and provides personalized recommendations, solving the problem that the existing group buying system cannot meet personalized needs and improving shopping experience and user satisfaction.

CN118886981APending Publication Date: 2024-11-01JILIN PROVINCE JIKE SOFT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410907406.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing group buying system cannot meet consumers' personalized needs and cannot make personalized recommendations based on consumers' preferences and feedback information, resulting in limited shopping experience.

Method used

Adopt a group buying personalized recommendation system based on large models and knowledge graphs. Through the product knowledge graph module, product knowledge system module and personalized solution recommendation module, analyze and study product information, identify product characteristics, conduct self-supervised learning, and extract and integrate new knowledge. , match and recommend based on user group purchase data.

Benefits of technology

It realizes personalized product recommendations to consumers, improves shopping experience and user satisfaction, and can adjust and optimize recommendations in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886981A_ABST
    Figure CN118886981A_ABST
Patent Text Reader

Abstract

The invention discloses a group buying personalized recommendation system based on a large model and a knowledge graph, and belongs to the technical field of group buying commodity recommendation. The system comprises a commodity knowledge graph module, a commodity knowledge system module and a personalized scheme recommendation module. The commodity knowledge graph module is used for analyzing and researching commodity information, identifying and concluding commodity characteristics, forming a knowledge system and displaying the knowledge system in a graph form; the commodity knowledge system module is used for carrying out self-supervised learning on a commodity knowledge graph, extracting and fusing new knowledge and establishing a perfect commodity knowledge system; the personalized scheme recommendation module is used for determining purchase demands of the users by mining and analyzing group purchase data of the users, and performing matching recommendation according to the demands and a commodity knowledge system; according to the method, commodity knowledge is organized organically, a comprehensive and systematic commodity knowledge graph is established, and targeted commodity group purchase requirements of users are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of group-buying commodity recommendation, and specifically to a group-buying personalized recommendation system based on a large model and a knowledge graph. Background Art

[0002] The large model, namely the large language model (LLM), is an ultra-large machine learning model based on the Transformer model architecture, with large-scale parameters and complex computing structure; usually, the large model is built by a deep neural network and pre-trained to handle massive amounts of data; its core transformer contains a series of neural networks with a self-attention mechanism, which extracts the meaning from the input text and clarifies the structural relationship of contextual words, thereby achieving powerful language understanding and generation capabilities.

[0003] A knowledge graph is a semantic network used to describe entities and the relationships between them. Entities represent anything in the real world, while relationships represent the connections between entities, presented in the form of a directed heterogeneous graph. Compared with a simple knowledge base, a knowledge graph contains semantic information and has stronger reasoning capabilities.

[0004] Group buying has attracted much attention. How to improve consumers' group buying experience and participation is a crucial issue. Traditional group buying models usually adopt collective purchasing methods, which cannot meet consumers' personalized needs. At the same time, it is difficult for merchants to understand consumers' purchasing preferences and needs in a timely manner. However, in terms of group buying experience, existing online group buying platforms and software usually only provide fixed product information and preferential activities, and cannot make personalized recommendations and services based on consumers' preferences and feedback information, making it difficult to achieve a truly personalized shopping experience. In addition, most existing group buying systems only consider the basic attributes and prices of goods, and cannot fully consider consumers' actual needs and purchasing psychology, resulting in limited shopping experience. Summary of the invention

[0005] The purpose of the present invention is to provide a group purchase personalized recommendation system based on a large model and a knowledge graph to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a group purchase personalized recommendation system based on a large model and a knowledge graph, the system comprising a commodity knowledge graph module, a commodity knowledge system module and a personalized solution recommendation module;

[0007] The commodity knowledge graph module is used to analyze and study commodity information, identify and summarize commodity characteristics, form a knowledge system and display it in the form of a graph; the commodity knowledge system module is used to perform self-supervised learning on the commodity knowledge graph, extract and integrate new knowledge, and establish a complete commodity knowledge system; the personalized solution recommendation module is used to determine the user's purchase needs by mining and analyzing the user's group purchase data, and match and recommend based on the needs and the commodity knowledge system;

[0008] The output end of the product knowledge graph module is connected to the input end of the product knowledge system module; the output end of the product knowledge system module is respectively connected to the input end of the product knowledge graph module and the input end of the personalized recommendation scheme.

[0009] The commodity knowledge graph module includes a commodity knowledge acquisition unit, a knowledge summarization and classification unit, and a knowledge verification and display unit;

[0010] The commodity knowledge acquisition unit is used to identify the core attributes of commodities by analyzing commodity information; the knowledge summarization and classification unit is used to formulate classification principles using marketing and data mining technology, and summarize commodity attributes into entity relationship triples according to the classification principles to form a commodity knowledge system; the knowledge verification and display unit is used to verify and correct the knowledge system through discussions with industry experts, market research and user feedback to ensure the accuracy and completeness of the knowledge system, and to display the knowledge system in the form of a graph;

[0011] The core attributes of the products include brand, price, type, user preference, purchasing behavior and market trends;

[0012] The entity-relationship triples are the classification and organization of commodity attributes, including commodity entities, attributes and relationships;

[0013] The output end of the commodity knowledge acquisition unit is connected to the input end of the knowledge summarization and classification unit; the output end of the knowledge summarization and classification unit is connected to the input end of the knowledge verification and display unit; the output end of the knowledge verification and display unit is connected to the commodity knowledge system module.

[0014] The commodity knowledge system module includes a model learning unit, a representation fusion unit and an implicit reasoning unit;

[0015] The model learning unit is used to select the Qwen model with self-supervised learning function, use the generative adversarial network for adversarial training, and learn the probability distribution and feature representation of commodity data; the representation fusion unit is used to combine the knowledge graph and the information of the large model through iterative embedding and high-order fusion; the implicit reasoning unit is used to discover and complete incomplete commodity data through reasoning;

[0016] The output end of the model learning unit is connected to the input end of the representation fusion unit; the output end of the representation fusion unit is connected to the input end of the implicit reasoning unit; the output end of the implicit reasoning unit is connected to the input end of the recommendation scheme customization module.

[0017] The recommendation scheme customization module includes a data analysis unit, a demand matching unit, a personalized recommendation unit and a product recommendation unit;

[0018] The data analysis unit is used to obtain and analyze the group purchase behavior data and interest preference data of users, and use classification, clustering and association rule mining technology to predict the purchase characteristics and needs of users; the demand matching unit is used to convert the group purchase behavior data of users into a transactional data set to represent the purchase records of users; the FP-Growth algorithm is used to mine frequent item sets between commodity data, set a minimum support threshold, generate association rules, and calculate their confidence and support; the rules are sorted according to the confidence and support, and according to the sorting results, the rules with high correlation are screened out; the personalized recommendation unit is used to analyze the group purchase history data and group purchase behavior data of users, analyze the purchase needs and improvement points of users, and determine the personalized purchase characteristics of users; and match and select commodities suitable for users from the commodity knowledge system to make commodity recommendations; the commodity recommendation unit is used to screen and recommend purchase plans suitable for users from the commodity knowledge system according to the group purchase needs and personalized characteristics of users; recommendations are made according to the purchase characteristics and resource content of users;

[0019] The transactional data set is a data set that records user purchase behaviors. Each record represents an independent transaction, and a transaction contains multiple items.

[0020] The output end of the data analysis unit is connected to the input end of the demand matching unit; the output end of the demand matching unit is connected to the input end of the personalized recommendation unit; the output end of the personalized recommendation unit is connected to the input end of the product recommendation unit.

[0021] The specific implementation steps of the representation fusion unit are as follows:

[0022] S5-1. Use the trained Qwen model to construct the embedding vectors of structured elements and product texts. With the help of vector calculation and object alignment, index the resulting text chain to the target concept and entity instance of the product knowledge graph to accelerate the standardization of product knowledge. Use Deep Learning representation learning technology to represent the semantic information of product entities and relationships as low-dimensional real-valued vectors, and then calculate the complex semantic associations between product entities, product relationships and their relationship in low-dimensional space, capture the semantic relationship between nodes in the graph and construct the graph structure.

[0023] S5-2. Through the lightweight graph convolution network LightKGCN, the nodes in the graph structure are embedded and propagated through multiple iterations to obtain and aggregate high-order neighborhood information; and efficient fusion of node embedding representation is achieved;

[0024] S5-3. Input the fused features into the recommendation scheme customization module, and use these features to match and recommend products; generate personalized recommendation schemes based on the matching and recommendation results.

[0025] In step S5-2:

[0026] Node embedding initialization: The initial embedding of each node represents its feature vector; the initial embedding of node v is

[0027] Embedding propagation and aggregation: Through multiple iterations, each node obtains information from its neighboring nodes and updates its own embedding representation; the formula is as follows:

[0028]

[0029] in, is the embedding representation of node v after the kth iteration; N(v) is the set of neighboring nodes of node v, AGG is the aggregation function; W (k) is the weight matrix of the kth layer, σ is the activation function;

[0030] Multi-hop simulation of high-order connectivity: Through multiple iterations, the embedding representation of a node contains not only the information of its direct neighbors, but also the information of its high-order neighbors, which can capture the potential interests of distant users;

[0031] The final embedding representation fusion formula is as follows:

[0032]

[0033] Among them, h v is the embedded fusion representation of node v; a (k) is the weight of the kth layer; is the embedding representation of node v after the kth iteration.

[0034] The implicit reasoning unit is specifically:

[0035] Common knowledge of commodities and concepts of both hyponyms and hyponyms are general knowledge summarized from commodity knowledge graphs, and are summaries of commodities. Common knowledge of commodities knowledge completion methods include upstream and downstream prediction of commodity information, synonym and antonym completion of entity words, and hyponym prediction of classification concepts.

[0036] The completion formula is as follows:

[0037]

[0038] Where count(h,r,t) represents the number of co-occurrences of the head entity h, relation r, and tail entity t; count(h,r) represents the number of co-occurrences of the head entity h and relation r;

[0039] The Qwen model summarizes the co-occurrence probability between product words and sentences from model learning, and makes predictions based on product common sense knowledge. The Qwen model acquires product knowledge through representation fusion, and uses thought chain technology to derive new knowledge from the existing product knowledge system to improve the product knowledge system. It adopts a self-consistent method to generate multiple thought chains and select the majority of answers as the final answers. It stimulates the large model to reason through simple prompts and carefully designed examples, generates explicit triple structures, and improves the model's text reasoning ability. In addition, the Qwen model evaluates different reasoning paths through the thought tree method, combines forward tracing and backward tracing, formulates the next action plan and implements global decision-making, and integrates text prompts with structural features, so that the Qwen model can generate a specific reasoning process.

[0040] The data analysis unit is specifically:

[0041] Obtain users' group-buying behavior data and interest preference data, clean and transform the collected data, remove outliers and missing values, and convert the data into thing-type data; apply statistical methods to conduct descriptive analysis of the data, including calculating the average group-buying time of users, the number of group-buying goods, and the number of group-buying times of users for different types of goods;

[0042] From the behavioral characteristics of statistical analysis, the user purchase type is selected through the Gini index. The formula is as follows:

[0043]

[0044] Where pi is the probability of the i-th category; Gini(D) represents the Gini index of the user's purchase type feature D;

[0045] Calculate the correlation between the user's browsing time and purchase behavior, take it as an important feature, and use the decision tree algorithm to build a user purchase classification model and make predictions based on the selected features;

[0046] The decision tree algorithms include C5.0 and ID3.

[0047] The demand matching unit is specifically:

[0048] The frequent item sets between commodity data are mined through the FP-Growth algorithm, and these frequent item sets are determined by setting the minimum support threshold; association rules are generated based on the frequent item sets, their confidence and support are calculated, and the rules are sorted according to the confidence and support. According to the sorting results, the rules with high correlation are screened out;

[0049] Set the minimum support threshold to 2;

[0050] The frequent item set is a set of all frequent items; the frequent items are items whose support is less than the minimum support threshold; the support is the number of times each item appears in all transactions;

[0051] Scan the data set and calculate the support of each item: Perform the first scan on the transaction database and calculate the support of each item;

[0052] Remove infrequent items: Remove infrequent items according to the preset minimum support threshold; only keep those frequent items;

[0053] Sort frequent items: Sort in descending order according to the support of each frequent item; items with the same support are sorted in alphabetical order;

[0054] Construct FP tree: Scan the transaction database again and insert the frequent items in the transaction into the FP tree in the order of sorting in the previous step; each path of the FP tree represents a transaction, and the nodes on the path represent the items in the transaction; each node in the tree stores not only the item name, but also the item count;

[0055] Calculate its confidence and support:

[0056] Support formula:

[0057]

[0058] Among them, Support(A,B) represents the support of things A and B. A and B mean that if thing A occurs, then thing B will also occur. T is the total number of things. T(A∪B) is the sum of the number of things that things A and B appear.

[0059] Confidence formula:

[0060]

[0061] Among them, Confidence(A,B) represents the confidence of things A and B. A and B mean that if thing A occurs, then B will also occur. T(A∪B) represents the sum of the number of things A and B that occur. T(A) represents the number of things A occurs.

[0062] According to the sorting results, the commodity resources corresponding to the association rules with high confidence are recommended to the user, and the commodities related to the user's current purchase situation are recommended to the user.

[0063] The personalized recommendation unit is specifically:

[0064] The personalized recommendation unit is used to analyze the user's group purchase history data and group purchase behavior data, analyze the user's purchase needs and improvement points, determine the user's personalized purchase characteristics; and match and select products suitable for the user from the product knowledge system to make product recommendations;

[0065] Recommendation algorithm: Collaborative filtering is based on cosine similarity, followed by matrix decomposition. The feature representation of users and products is learned through neural collaborative filtering, and product recommendations are made based on the user's group purchase history data and behavior data.

[0066] Cosine similarity formula:

[0067]

[0068] Among them, cosine similarity (u,v) represents the cosine similarity between user u and user v; I uv represents the set of products rated by both user u and user v, r ui and r vi They represent the ratings of user u and user v on product i respectively.

[0069] Compared with the prior art, the beneficial effects achieved by the present invention are:

[0070] 1. The present invention combines the Qwen model with the knowledge graph, and with the help of a personalized recommendation system, applies its value and technical advantages, constructs commodity knowledge through the knowledge graph, organically organizes commodity knowledge, and supports users' targeted commodity group purchase needs;

[0071] 2. The present invention uses the commodity knowledge in the commodity knowledge graph to train and learn the big model, extracts the essential characteristics and laws of the commodity, and helps the big model quickly understand the knowledge in the commodity field through supervised fine-tuning; at the same time, through self-supervised learning, it realizes the automatic representation of commodity knowledge, and finally establishes a more comprehensive and sophisticated commodity knowledge system;

[0072] 3. The present invention is based on a recommendation system that matches users' group-buying needs with the commodity knowledge system and provides personalized group-buying commodity recommendations. At the same time, the system can adjust and optimize recommendations in real time to enhance shopping experience and user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0074] Figure 1 It is a flow chart of the group purchase personalized recommendation system based on a large model and knowledge graph of the present invention;

[0075] Figure 2 It is a schematic diagram showing the specific implementation steps of the fusion unit of the present invention. DETAILED DESCRIPTION

[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0077] See also Figure 1-Figure 2 , the present invention provides a technical solution: a group purchase personalized recommendation system based on a large model and a knowledge graph, the system comprising a commodity knowledge graph module, a commodity knowledge system module and a personalized solution recommendation module;

[0078] The commodity knowledge graph module is used to analyze and study commodity information, identify and summarize commodity characteristics, form a knowledge system and display it in the form of a graph; the commodity knowledge system module is used to perform self-supervised learning on the commodity knowledge graph, extract and integrate new knowledge, and establish a complete commodity knowledge system; the personalized solution recommendation module is used to determine the user's purchase needs by mining and analyzing the user's group purchase data, and match and recommend based on the needs and the commodity knowledge system;

[0079] The output end of the product knowledge graph module is connected to the input end of the product knowledge system module; the output end of the product knowledge system module is respectively connected to the input end of the product knowledge graph module and the input end of the personalized recommendation scheme.

[0080] The commodity knowledge graph module includes a commodity knowledge acquisition unit, a knowledge summarization and classification unit, and a knowledge verification and display unit;

[0081] The commodity knowledge acquisition unit is used to identify the core attributes of commodities by analyzing commodity information; the knowledge summarization and classification unit is used to formulate classification principles using marketing and data mining technology, and summarize commodity attributes into entity relationship triples according to the classification principles to form a commodity knowledge system; the knowledge verification and display unit is used to verify and correct the knowledge system through discussions with industry experts, market research and user feedback to ensure the accuracy and completeness of the knowledge system, and to display the knowledge system in the form of a graph;

[0082] The core attributes of the products include brand, price, type, user preference, purchasing behavior and market trends;

[0083] The entity-relationship triples are the classification and organization of commodity attributes, including commodity entities, attributes and relationships;

[0084] The output end of the commodity knowledge acquisition unit is connected to the input end of the knowledge summarization and classification unit; the output end of the knowledge summarization and classification unit is connected to the input end of the knowledge verification and display unit; the output end of the knowledge verification and display unit is connected to the commodity knowledge system module.

[0085] The commodity knowledge system module includes a model learning unit, a representation fusion unit and an implicit reasoning unit;

[0086] The model learning unit is used to select the Qwen model with self-supervised learning function, use the generative adversarial network for adversarial training, and learn the probability distribution and feature representation of commodity data; the representation fusion unit is used to combine the knowledge graph and the information of the large model through iterative embedding and high-order fusion; the implicit reasoning unit is used to discover and complete incomplete commodity data through reasoning;

[0087] The output end of the model learning unit is connected to the input end of the representation fusion unit; the output end of the representation fusion unit is connected to the input end of the implicit reasoning unit; the output end of the implicit reasoning unit is connected to the input end of the recommendation scheme customization module.

[0088] The recommendation scheme customization module includes a data analysis unit, a demand matching unit, a personalized recommendation unit and a product recommendation unit;

[0089] The data analysis unit is used to obtain and analyze the group purchase behavior data and interest preference data of users, and use classification, clustering and association rule mining technology to predict the purchase characteristics and needs of users; the demand matching unit is used to convert the group purchase behavior data of users into a transactional data set to represent the purchase records of users; the FP-Growth algorithm is used to mine frequent item sets between commodity data, set a minimum support threshold, generate association rules, and calculate their confidence and support; the rules are sorted according to the confidence and support, and according to the sorting results, the rules with high correlation are screened out; the personalized recommendation unit is used to analyze the group purchase history data and group purchase behavior data of users, analyze the purchase needs and improvement points of users, and determine the personalized purchase characteristics of users; and match and select commodities suitable for users from the commodity knowledge system to make commodity recommendations; the commodity recommendation unit is used to screen and recommend purchase plans suitable for users from the commodity knowledge system according to the group purchase needs and personalized characteristics of users; recommendations are made according to the purchase characteristics and resource content of users;

[0090] The transactional data set is a data set that records user purchase behaviors. Each record represents an independent transaction, and a transaction contains multiple items.

[0091] The output end of the data analysis unit is connected to the input end of the demand matching unit; the output end of the demand matching unit is connected to the input end of the personalized recommendation unit; the output end of the personalized recommendation unit is connected to the input end of the product recommendation unit.

[0092] The specific implementation steps of the representation fusion unit are as follows:

[0093] S5-1. Use the trained Qwen model to construct the embedding vectors of structured elements and product texts. With the help of vector calculation and object alignment, index the resulting text chain to the target concept and entity instance of the product knowledge graph to accelerate the standardization of product knowledge. Use Deep Learning representation learning technology to represent the semantic information of product entities and relationships as low-dimensional real-valued vectors, and then calculate the complex semantic associations between product entities, product relationships and their relationship in low-dimensional space, capture the semantic relationship between nodes in the graph and construct the graph structure.

[0094] S5-2. Through the lightweight graph convolution network LightKGCN, the nodes in the graph structure are embedded and propagated through multiple iterations to obtain and aggregate high-order neighborhood information; and efficient fusion of node embedding representation is achieved;

[0095] S5-3. Input the fused features into the recommendation scheme customization module, and use these features to match and recommend products; generate personalized recommendation schemes based on the matching and recommendation results.

[0096] In step S5-2:

[0097] Node embedding initialization: The initial embedding of each node represents its feature vector; the initial embedding of node v is

[0098] Embedding propagation and aggregation: Through multiple iterations, each node obtains information from its neighboring nodes and updates its own embedding representation; the formula is as follows:

[0099]

[0100] in, is the embedding representation of node v after the kth iteration; N(v) is the set of neighboring nodes of node v, AGG is the aggregation function; W (k) is the weight matrix of the kth layer, σ is the activation function;

[0101] Multi-hop simulation of high-order connectivity: Through multiple iterations, the embedding representation of a node contains not only the information of its direct neighbors, but also the information of its high-order neighbors, which can capture the potential interests of distant users;

[0102] The final embedding representation fusion formula is as follows:

[0103]

[0104] Among them, h v is the embedded fusion representation of node v; a (k) is the weight of the kth layer; is the embedding representation of node v after the kth iteration.

[0105] The implicit reasoning unit is specifically:

[0106] Common knowledge of commodities and concepts of both hyponyms and hyponyms are general knowledge summarized from commodity knowledge graphs, and are summaries of commodities. Common knowledge of commodities knowledge completion methods include upstream and downstream prediction of commodity information, synonym and antonym completion of entity words, and hyponym prediction of classification concepts.

[0107] The completion formula is as follows:

[0108]

[0109] Where count(h,r,t) represents the number of co-occurrences of the head entity h, relation r, and tail entity t; count(h,r) represents the number of co-occurrences of the head entity h and relation r;

[0110] The Qwen model summarizes the co-occurrence probability between product words and sentences from model learning, and makes predictions based on product common sense knowledge. The Qwen model acquires product knowledge through representation fusion, and uses thought chain technology to derive new knowledge from the existing product knowledge system to improve the product knowledge system. It adopts a self-consistent method to generate multiple thought chains and select the majority of answers as the final answers. It stimulates the large model to reason through simple prompts and carefully designed examples, generates explicit triple structures, and improves the model's text reasoning ability. In addition, the Qwen model evaluates different reasoning paths through the thought tree method, combines forward tracing and backward tracing, formulates the next action plan and implements global decision-making, and integrates text prompts with structural features, so that the Qwen model can generate a specific reasoning process.

[0111] The data analysis unit is specifically:

[0112] Obtain users' group-buying behavior data and interest preference data, clean and transform the collected data, remove outliers and missing values, and convert the data into thing-type data; apply statistical methods to conduct descriptive analysis of the data, including calculating the average group-buying time of users, the number of group-buying goods, and the number of group-buying times of users for different types of goods;

[0113] From the behavioral characteristics of statistical analysis, the user purchase type is selected through the Gini index. The formula is as follows:

[0114]

[0115] Where pi is the probability of the i-th category; Gini(D) represents the Gini index of the user's purchase type feature D;

[0116] Calculate the correlation between the user's browsing time and purchase behavior, take it as an important feature, and use the decision tree algorithm to build a user purchase classification model and make predictions based on the selected features;

[0117] The decision tree algorithms include C5.0 and ID3.

[0118] The demand matching unit is specifically:

[0119] The frequent item sets between commodity data are mined through the FP-Growth algorithm, and these frequent item sets are determined by setting the minimum support threshold; association rules are generated based on the frequent item sets, their confidence and support are calculated, and the rules are sorted according to the confidence and support. According to the sorting results, the rules with high correlation are screened out;

[0120] Set the minimum support threshold to 2;

[0121] The frequent item set is a set of all frequent items; the frequent items are items whose support is less than the minimum support threshold; the support is the number of times each item appears in all transactions;

[0122] Scan the data set and calculate the support of each item: Perform the first scan on the transaction database and calculate the support of each item;

[0123] Remove infrequent items: Remove infrequent items according to the preset minimum support threshold; only keep those frequent items;

[0124] Sort frequent items: Sort in descending order according to the support of each frequent item; items with the same support are sorted in alphabetical order;

[0125] Construct FP tree: Scan the transaction database again and insert the frequent items in the transaction into the FP tree in the order of sorting in the previous step; each path of the FP tree represents a transaction, and the nodes on the path represent the items in the transaction; each node in the tree stores not only the item name, but also the item count;

[0126] Calculate its confidence and support:

[0127] Support formula:

[0128]

[0129] Among them, Support(A,B) represents the support of things A and B. A and B mean that if thing A occurs, then thing B will also occur. T is the total number of things. T(A∪B) is the sum of the number of things that things A and B appear.

[0130] Confidence formula:

[0131]

[0132] Among them, Confidence(A,B) represents the confidence of things A and B. A and B mean that if thing A occurs, then B will also occur. T(A∪B) represents the sum of the number of things A and B that occur. T(A) represents the number of things A occurs.

[0133] According to the sorting results, the commodity resources corresponding to the association rules with high confidence are recommended to the user, and the commodities related to the user's current purchase situation are recommended to the user.

[0134] The personalized recommendation unit is specifically:

[0135] The personalized recommendation unit is used to analyze the user's group purchase history data and group purchase behavior data, analyze the user's purchase needs and improvement points, determine the user's personalized purchase characteristics; and match and select products suitable for the user from the product knowledge system to make product recommendations;

[0136] Recommendation algorithm: Collaborative filtering is based on cosine similarity, followed by matrix decomposition. The feature representation of users and products is learned through neural collaborative filtering, and product recommendations are made based on the user's group purchase history data and behavior data.

[0137] Cosine similarity formula:

[0138]

[0139] Among them, cosine similarity (u,v) represents the cosine similarity between user u and user v; I uv represents the set of products rated by both user u and user v, r ui and r vi They represent the ratings of user u and user v on product i respectively.

[0140] In an embodiment of the present invention,

[0141] The steps to build a product knowledge system using Alibaba's open source Qwen model are as follows: First, train and learn based on the products in the product knowledge graph to extract the essential characteristics and laws of product knowledge in order to establish a more refined and high-level product knowledge system. Specifically, this step uses supervised fine-tuning to help the large model quickly understand the knowledge, professional vocabulary and logical structure in the product field, and through self-supervised learning, learn the probability distribution and feature representation of product data to achieve automatic representation of product knowledge. Next, align and merge the product knowledge in the large model with the product knowledge graph, and discover the knowledge implicit in the existing product knowledge through reasoning, and finally establish a more comprehensive and refined product knowledge system.

[0142] The product knowledge system includes model learning, representation fusion and implicit reasoning:

[0143] Model learning is used to perform self-supervised learning on the commodity data in the commodity knowledge graph through the Qwen model:

[0144] Based on the product triples in the product knowledge graph, (product A, origin, Hangzhou), pre-training data is constructed; named entity recognition (NER) is used to structure the vocabulary and entities, concepts and events in the knowledge graph. For the input text "product A is produced in Hangzhou", NER represents [(product A, entity), (origin, concept), (Hangzhou, entity)];

[0145] Perform supervised fine-tuning based on the Qwen model to help the large model quickly understand the knowledge, professional vocabulary and logical structure of the commodity field. Automatically generate instruction data for pre-training through commodity domain knowledge base and graph examples, and integrate commodity knowledge and logical constraints into the pre-training process;

[0146] Input text: What is the brand of product B?

[0147] Command data: [(product B, brand,?)]

[0148] Model output: "x is"

[0149] We selected Alibaba's open-source Qwen model for self-supervised learning, using the natural attributes or local information of product data to learn feature representations. We used an autoencoder to encode product data into a low-dimensional representation, and then decoded it back to the original data to learn an effective representation of product data.

[0150] Product data: {name: Product C, origin: China, brand: x}

[0151] Encoding result: [0.1, 0.3, -0.2, …]

[0152] Decoding result: {name: product C, origin: China, brand: x}

[0153] Purchase information of a user:

[0154] Embedding('Product x is 30') = [0.25, -0.3, 0.1, ...]

[0155] Embedding('Android')=[0.5, 0.1, -0.4,…]

[0156] Embedding('128GB')=[-0.2, 0.3, 0.4,…]

[0157] Embedding('system') = [0.1, -0.5, 0.2, ...]

[0158] Embedding('storage') = [0.18, 0.2, -0.1, ...]

[0159] Aligned vectors:

[0160] [0.25, -0.3, 0.1, ...], [0.5, 0.1, -0.4, ...], [-0.2, 0.3, 0.4, ...], [0.1, -0.5, 0.2, ...], [0.18, 0.2, -0.1, ...];

[0161] Indexed(x) = SpectrumMap([0.3, -0.4, 0.2, ...]):

[0162] Entity: Product x is 30, System: Android, Storage: 128GB;

[0163] Similarity([0.3, -0.4, 0.2, ...], [0.5, 0.1, -0.4, ...]) = 0.85

[0164] Graph structure: Graph construction (entity: product x is 30, relationship: Android)

[0165] After receiving any two words in the sequence (h, r, t) of the product triple, the Qwen model can predict the head entity, tail entity and middle predicate as follows:

[0166] (?, Origin, Hangzhou) Prediction Head Entity: "Product A";

[0167] (Commodity B, Origin,?) Prediction tail entity: "Xinjiang";

[0168] (Product C, ?, Hangzhou) predict the intermediate predicate: "place of origin";

[0169] Acquiring product knowledge through the Qwen model:

[0170] E("Product x is 30") = Qwen("Product x is 30, Android, 128GB"),

[0171] The new knowledge (h, r, t) derived through the chain of thinking are:

[0172] ("product x is 30", "belongs to", "smartphone")

[0173] (“smartphone”, “is a kind of”, “electronic product”)

[0174] Further derive new triples:

[0175] ("Product x is 30", "is a", "electronic product")

[0176] Use a self-consistent approach to generate thought chains:

[0177] Thinking chain 1: [("Product x is 30", "belongs to", "smartphone"), ("smartphone", "is a kind of", "electronic product")]

[0178] Thinking chain 2: [("Product x is 30", "is a kind of", "electronic equipment"), ("electronic equipment", "is", "electronic product")]

[0179] Select final answer:

[0180] Final answer: ("Product x is 30", "is a kind of", "electronic product");

[0181] Use simple prompts or carefully designed examples to stimulate the large model to generate intermediate reasoning steps: Prompt: "What type of product is i 13Pro?"

[0182] Qwen model generates intermediate reasoning steps:

[0183] "i 13Pro" → "Smartphone" → "Electronic products"

[0184] User group purchase data is as follows:

[0185] User A: [item 1, item 2, item 5]

[0186] User B: [item 2, item 4]

[0187] User C: [item 2, item 3]

[0188] User D: [item 1, item 2, item 4]

[0189] User E: [item 1, item 3]

[0190] User F: [item 2, item 3]

[0191] User G: [item 1, item 3]

[0192] User H: [item 1, item 2, item 3, item 5]

[0193] User I: [item 1, item 2, item 3]

[0194] Converted to a transactional dataset as follows:

[0195] T1: {item 1, item 2, item 5}

[0196] T2: {item 2, item 4}

[0197] T3: {item 2, item 3}

[0198] T4: {item 1, item 2, item 4}

[0199] T5: {item 1, item 3}

[0200] T6: {item 2, item 3}

[0201] T7: {item 1, item 3}

[0202] T8: {item 1, item 2, item 3, item 5}

[0203] T9: {item 1, item 2, item 3}

[0204] The FP-Growth algorithm is used to mine frequent item sets between commodity data, and these frequent item sets are determined by setting a minimum support threshold. Association rules are generated based on frequent item sets, and their confidence and support are calculated. The rules are sorted according to these indicators to filter out rules with higher association.

[0205] The specific implementation is as follows:

[0206] Set the minimum support threshold = 2

[0207] The results of the FP-Growth algorithm are as follows:

[0208] {Product 1, Product 2}->4

[0209] {Item 1, Item 3}->4

[0210] {Product 2, Product 3}->4

[0211] {Item 1, Item 2, Item 3}->3

[0212] Generate association rules based on frequent item sets and calculate their confidence and support:

[0213] Support formula:

[0214]

[0215] Among them, Support(A,B) represents the support of things A and B. A and B mean that if thing A occurs, then thing B will also occur. T is the total number of things. T(A∪B) is the sum of the number of things that things A and B appear.

[0216] Confidence formula:

[0217]

[0218] Among them, Confidence(A,B) represents the confidence of things A and B. A and B mean that if thing A occurs, then B will also occur. T(A∪B) represents the sum of the number of things A and B that occur. T(A) represents the number of things A occurs.

[0219] The result after sorting the rules:

[0220] Rule 1: {Product 1}->{Product 2}, Confidence: 0.67, Support: 0.44

[0221] Rule 2: {Product 2}->{Product 3}, Confidence: 0.57, Support: 0.44

[0222] Since the support of rule 1 and rule 2 is the same and the confidence of rule 1 is greater than that of rule 2, rule 1 is adopted to recommend group-buying products to users;

[0223] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0224] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. Personalized group purchase recommendation system based on big model and knowledge graph, Features: The system includes a commodity knowledge graph module, a commodity knowledge system module, and a personalized solution recommendation module; The commodity knowledge graph module is used to analyze and study commodity information, identify and summarize commodity characteristics, form a knowledge system and display it in the form of a graph; the commodity knowledge system module is used to perform self-supervised learning on the commodity knowledge graph, extract and integrate new knowledge, and establish a complete commodity knowledge system; the personalized solution recommendation module is used to determine the user's purchase needs by mining and analyzing the user's group purchase data, and match and recommend based on the needs and the commodity knowledge system; The output end of the product knowledge graph module is connected to the input end of the product knowledge system module; the output end of the product knowledge system module is respectively connected to the input end of the product knowledge graph module and the input end of the personalized recommendation scheme.

2. According to claim 1, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: The commodity knowledge graph module includes a commodity knowledge acquisition unit, a knowledge summarization and classification unit, and a knowledge verification and display unit; The commodity knowledge acquisition unit is used to identify the core attributes of commodities by analyzing commodity information; The knowledge summarization and classification unit is used to formulate classification principles using marketing and data mining technology, and summarize commodity attributes into entity relationship triples according to the classification principles to form a commodity knowledge system; The knowledge verification and display unit is used to verify and correct the knowledge system through discussions with industry experts, market research and user feedback, to ensure the accuracy and completeness of the knowledge system, and to display the knowledge system in the form of a graph; The core attributes of the products include brand, price, type, user preference, purchasing behavior and market trends; The entity-relationship triples are the classification and organization of commodity attributes, including commodity entities, attributes and relationships; The output end of the commodity knowledge acquisition unit is connected to the input end of the knowledge summarization and classification unit; The output end of the knowledge summarization and classification unit is connected to the input end of the knowledge verification and display unit; the output end of the knowledge verification and display unit is connected to the commodity knowledge system module.

3. According to the group purchase personalized recommendation system based on large model and knowledge graph according to claim 1, Features: The commodity knowledge system module includes a model learning unit, a representation fusion unit and an implicit reasoning unit; The model learning unit is used to select the Qwen model with self-supervised learning function, use the generative adversarial network for adversarial training, and learn the probability distribution and feature representation of commodity data; the representation fusion unit is used to combine the knowledge graph and the information of the large model through iterative embedding and high-order fusion; the implicit reasoning unit is used to discover and complete incomplete commodity data through reasoning; The output end of the model learning unit is connected to the input end of the representation fusion unit; the output end of the representation fusion unit is connected to the input end of the implicit reasoning unit; the output end of the implicit reasoning unit is connected to the input end of the recommendation scheme customization module.

4. According to claim 1, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: The recommendation scheme customization module includes a data analysis unit, a demand matching unit, a personalized recommendation unit and a product recommendation unit; The data analysis unit is used to obtain and analyze the group purchase behavior data and interest preference data of users, and use classification, clustering and association rule mining technology to predict the purchase characteristics and needs of users; the demand matching unit is used to convert the group purchase behavior data of users into a transactional data set to represent the purchase records of users; the FP-Growth algorithm is used to mine frequent item sets between commodity data, set a minimum support threshold, generate association rules, and calculate their confidence and support; the rules are sorted according to the confidence and support, and according to the sorting results, the rules with high correlation are screened out; the personalized recommendation unit is used to analyze the group purchase history data and group purchase behavior data of users, analyze the purchase needs and improvement points of users, and determine the personalized purchase characteristics of users; and match and select commodities suitable for users from the commodity knowledge system to make commodity recommendations; the commodity recommendation unit is used to screen and recommend purchase plans suitable for users from the commodity knowledge system according to the group purchase needs and personalized characteristics of users; Recommendations based on the user's purchasing characteristics and resource content; The transactional data set is a data set that records user purchase behaviors. Each record represents an independent transaction, and a transaction contains multiple items. The output end of the data analysis unit is connected to the input end of the demand matching unit; The output end of the demand matching unit is connected to the input end of the personalized recommendation unit; the output end of the personalized recommendation unit is connected to the input end of the commodity recommendation unit.

5. According to claim 3, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: The specific implementation steps of the representation fusion unit are as follows: S5-1. Use the trained Qwen model to construct the embedding vectors of structured elements and product texts. With the help of vector calculation and object alignment, index the resulting text chain to the target concept and entity instance of the product knowledge graph to accelerate the standardization of product knowledge. Use Deep Learning representation learning technology to represent the semantic information of product entities and relationships as low-dimensional real-valued vectors, and then calculate the complex semantic associations between product entities, product relationships and their relationship in low-dimensional space, capture the semantic relationship between nodes in the graph and construct the graph structure. S5-2. Through the lightweight graph convolutional network LightKGCN, the nodes in the graph structure are embedded and propagated through multiple iterations to obtain and aggregate high-order neighborhood information; Achieve efficient fusion of node embedding representations; S5-3. Input the fused features into the recommendation scheme customization module, and use these features to match and recommend products; generate personalized recommendation schemes based on the matching and recommendation results.

6. According to claim 5, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: In step S5-2: Node embedding initialization: The initial embedding of each node represents its feature vector; The initial embedding of node v is Embedding propagation and aggregation: Through multiple iterations, each node obtains information from its neighboring nodes and updates its own embedding representation; the formula is as follows: in, is the embedding representation of node v after the kth iteration; N(v) is the set of neighboring nodes of node v, AGG is the aggregation function; W (k) is the weight matrix of the kth layer, σ is the activation function; Multi-hop simulation of high-order connectivity: Through multiple iterations, the embedding representation of a node contains not only the information of its direct neighbors, but also the information of its high-order neighbors, which can capture the potential interests of distant users; The final embedding representation fusion formula is as follows: Among them, h v is the embedded fusion representation of node v; a (k) is the weight of the kth layer; is the embedding representation of node v after the kth iteration.

7. According to claim 3, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: The implicit reasoning unit is specifically: Common knowledge of commodities and concepts of both hyponyms and hyponyms are general knowledge summarized from commodity knowledge graphs, and are summaries of commodities. Common knowledge of commodities knowledge completion methods include upstream and downstream prediction of commodity information, synonym and antonym completion of entity words, and hyponym prediction of classification concepts. The completion formula is as follows: Where count(h,r,t) represents the number of co-occurrences of the head entity h, relation r, and tail entity t; count(h,r) represents the number of co-occurrences of the head entity h and relation r; The Qwen model summarizes the co-occurrence probability between product words and sentences from model learning, and makes predictions based on product common sense knowledge. The Qwen model acquires product knowledge through representation fusion, and uses thought chain technology to derive new knowledge from the existing product knowledge system to improve the product knowledge system. It adopts a self-consistent method to generate multiple thought chains and select the majority of answers as the final answers. It stimulates the large model to reason through simple prompts and carefully designed examples, generates explicit triple structures, and improves the model's text reasoning ability. In addition, the Qwen model evaluates different reasoning paths through the thought tree method, combines forward tracing and backward tracing, formulates the next action plan and implements global decision-making, and integrates text prompts with structural features, so that the Qwen model can generate a specific reasoning process.

8. According to claim 4, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: The data analysis unit is specifically: Obtain users' group-buying behavior data and interest preference data, clean and transform the collected data, remove outliers and missing values, and convert the data into thing-type data; apply statistical methods to conduct descriptive analysis of the data, including calculating the average group-buying time of users, the number of group-buying goods, and the number of group-buying times of users for different types of goods; From the behavioral characteristics of statistical analysis, the user purchase type is selected through the Gini index. The formula is as follows: Where pi is the probability of the i-th category; Gini(D) represents the Gini index of the user's purchase type feature D; Calculate the correlation between the user's browsing time and purchase behavior, take it as an important feature, and use the decision tree algorithm to build a user purchase classification model and make predictions based on the selected features; The decision tree algorithms include C5.0 and ID3.

9. According to claim 4, the group purchase personalized recommendation system based on the big model and knowledge graph, Features: The demand matching unit is specifically: The frequent item sets between commodity data are mined through the FP-Growth algorithm, and these frequent item sets are determined by setting the minimum support threshold; association rules are generated based on the frequent item sets, their confidence and support are calculated, and the rules are sorted according to the confidence and support. According to the sorting results, the rules with high correlation are screened out; Set the minimum support threshold to 2; The frequent item set is a set of all frequent items; The frequent items are items whose support is less than the minimum support threshold; the support is the number of times each item appears in all transactions; Scan the data set and calculate the support of each item: Perform the first scan on the transaction database and calculate the support of each item; Remove infrequent items: Remove infrequent items according to the preset minimum support threshold; Only keep those frequent items; Sort frequent items: Sort in descending order according to the support of each frequent item; items with the same support are sorted in alphabetical order; Construct FP tree: Scan the transaction database again and insert the frequent items in the transaction into the FP tree in the order of sorting in the previous step; Each path in the FP tree represents a transaction, and the nodes on the path represent the items in the transaction; each node in the tree stores not only the item name but also the item count; Calculate its confidence and support: Support formula: Among them, Support(A,B) represents the support of things A and B. A and B mean that if thing A occurs, then thing B will also occur. T is the total number of things. T(A∪B) is the sum of the number of things that things A and B appear. Confidence formula: Among them, Confidence(A,B) represents the confidence of things A and B. A and B mean that if thing A occurs, then B will also occur. T(A∪B) represents the sum of the number of things A and B that occur. T(A) represents the number of things A occurs. According to the sorting results, the commodity resources corresponding to the association rules with high confidence are recommended to the user, and the commodities related to the user's current purchase situation are recommended to the user.

10. According to claim 4, the group purchase personalized recommendation system based on large model and knowledge graph, Features: The personalized recommendation unit is specifically: The personalized recommendation unit is used to analyze the user's group purchase history data and group purchase behavior data, analyze the user's purchase needs and improvement points, determine the user's personalized purchase characteristics; and match and select products suitable for the user from the product knowledge system to make product recommendations; Recommendation algorithm: Collaborative filtering is based on cosine similarity, followed by matrix decomposition. The feature representation of users and products is learned through neural collaborative filtering, and product recommendations are made based on the user's group purchase history data and behavior data. Cosine similarity formula: Among them, cosine similarity (u,v) represents the cosine similarity between user u and user v; I uv represents the set of products rated by both user u and user v, r ui and r vi They represent the ratings of user u and user v on product i respectively.