Retail shopping guide recommendation method and system based on cigarette clustering
By adopting a method based on cigarette clustering in the cigarette retail shopping guide recommendation system, combined with user portraits and fallback retrieval, the problem of no result rate and insufficient diversity in recommendations is solved, more efficient cigarette recommendations are achieved, and the user experience and Business operability.
Patent Information
- Application Number
- CN202410820974.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-23
AI Technical Summary
In the shopping guide recommendation system based on voice dialogue, the combination of real-time portraits and offline portraits leads to an increase in the recommendation no-result rate, which cannot meet users' targeted needs for cigarettes, and traditional supervised learning based on labeled samples is not applicable, resulting in the diversity of the recommendation system. and insufficient generalization.
A retail shopping guide recommendation method based on cigarette clustering is used to construct user portraits from the interaction between users and the dialogue system. Through fallback retrieval and cigarette product similarity clustering, the number of portrait attributes is gradually reduced, and the candidate set is supplemented by combining user historical behavior data. , improve the richness and accuracy of recommended results.
It reduces the low-recommendation rate, improves the novelty and user experience of the recommendation system, enhances business operability, and improves the effectiveness of the recommendation system in cigarette retail scenarios.
Smart Images

Figure CN118535776A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of commodity recommendation, and in particular relates to a retail shopping guide recommendation method and system based on cigarette clustering. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In the shopping guide recommendation system based on voice dialogue, recommendations based on real-time user dialogue or offline constructed portrait information can meet the current needs of users; however, there are some experience problems in some scenarios. For example, the combination of real-time portraits and offline portraits will lead to an increase in the recommendation result rate, which will affect the diversity and generalization of the recommendation system. At the same time, in actual retail scenarios, users generally have targeted preferences for tobacco products. In this scenario, recommendations based on user portraits (or user dimensions) cannot meet the requirements.
[0004] Therefore, the no-result rate and generalization of the recommendation system are the current problems that need to be solved. At the same time, how to meet the current needs of users and explore their long-term needs to guide consumption is also the key to improving the effectiveness of the recommendation system in retail scenarios. In addition, the dialogue system and the sales system are not connected, and traditional supervised learning based on labeled samples is not applicable. Therefore, in scenarios where actual sample collection is difficult, cigarette retail recommendations are achieved by building a clustering model that calculates the similarity of cigarettes. Summary of the invention
[0005] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a retail shopping guide recommendation method and system based on cigarette clustering, which calculates the similarity between tobacco products from the tobacco product dimension, and associates them with other similar tobacco products through similarity while meeting the current needs of users. At the same time, for scenarios with few or no search results, the offline portraits that have been generated are subjected to fallback search to reduce the rate of few or no recommendation results.
[0006] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions: A first aspect of the present invention provides a retail shopping guide recommendation method based on cigarette clustering.
[0007] A retail shopping guide recommendation method based on cigarette clustering, comprising: Constructing a user profile from the interaction between the user and the dialogue system, wherein the user profile includes profile attributes and corresponding attribute values; Using the fallback retrieval method, retrieve the tobacco products that match the user profile from the tobacco product database to obtain a candidate set; When the number of tobacco products in the candidate set does not meet the conditions, the candidate set is supplemented based on the similarity between tobacco products, and the fallback search method is used to search from the supplemented candidate set to obtain the final recommendation result; The fallback search is to gradually reduce the number of portrait attributes used for retrieval until a preset fallback termination condition is met.
[0008] Furthermore, the similarity between the tobacco products is identified by similarity clustering.
[0009] Furthermore, the similarity clustering adopts kmeans clustering to calculate the distance between cigarette products and divide the cigarette clusters based on the distance.
[0010] Furthermore, the similarity clustering comprises the following specific steps: Initialize cluster centers; Calculate the distance between each cigarette; The distance of each cigarette cluster is calculated and the overall distance is calculated.
[0011] Furthermore, the fallback search is specifically implemented as follows: Each time when rolling back, discard the attribute with the lowest importance from the attributes of the current user profile; if the search result after rolling back meets the preset rolling back termination condition, the current rolling back user profile will be used as the final user profile; otherwise, continue to roll back on the current rolling back user profile.
[0012] Furthermore, the retrieving of tobacco products that match the user profile from the tobacco product database is specifically as follows: Use the final user portrait as the search condition to screen tobacco products; If the number of screened tobacco products does not meet the preset number, a preset number of similar tobacco products are selected to supplement the candidate set according to the similarity between the tobacco products.
[0013] Furthermore, the selecting of a preset number of similar tobacco products to supplement the candidate set is specifically as follows: First, a preset number of preferred or consumed tobacco products are extracted from the user's historical behavior data. Then, based on the similarity between tobacco products, tobacco products similar to the extracted tobacco products are found to supplement the candidate set.
[0014] A second aspect of the present invention provides a retail shopping guide recommendation system based on cigarette clustering.
[0015] A retail shopping guide recommendation system based on cigarette clustering, including a portrait construction module, a cigarette product retrieval module and a cigarette product supplement module: A portrait construction module is configured to: construct a user portrait from the interaction between the user and the dialogue system, wherein the user portrait includes portrait attributes and corresponding attribute values; The tobacco product retrieval module is configured to: retrieve tobacco products that match the user profile from the tobacco product database in a fallback retrieval manner to obtain a candidate set; The cigarette product supplement module is configured to: when the number of cigarette products in the candidate set does not meet the condition, supplement the candidate set based on the similarity between the cigarette products, and use a fallback search method to search from the supplemented candidate set to obtain the final recommendation result; The fallback search is to gradually reduce the number of portrait attributes used for retrieval until a preset fallback termination condition is met.
[0016] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of a retail shopping guide recommendation method based on cigarette clustering as described in the first aspect of the present invention.
[0017] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a retail shopping guide recommendation method based on cigarette clustering as described in the first aspect of the present invention are implemented.
[0018] One or more of the above technical solutions have the following beneficial effects: In the tobacco retail scenario, the present invention recommends tobacco products based on cigarette clustering by backing off user portraits to ensure the size of the candidate set. Its novelty and practicality are reflected in: 1. Starting from the cigarette dimension, it is possible to calculate the similarity between cigarettes through clustering methods, which improves the novelty of the recommendation system, the user's consumption experience and the operability of the business.
[0019] 2. The previous portrait query method was rewritten to reduce the rate of no results in the recommendation system and improve the generalization and diversity of the recommendation system.
[0020] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0022] Figure 1 This is a flow chart of the method of the first embodiment. DETAILED DESCRIPTION
[0023] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0024] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0025] Embodiment 1 In one embodiment of the present disclosure, a retail shopping guide recommendation method based on cigarette clustering is provided, comprising the following steps: Step S1: constructing a user profile from the interaction between the user and the dialogue system, wherein the user profile includes profile attributes and corresponding attribute values; Step S2: Using a fallback search method, retrieve tobacco products that match the user profile from the tobacco product database to obtain a candidate set; Step S3: When the number of tobacco products in the candidate set does not meet the condition, the candidate set is supplemented based on the similarity between the tobacco products, and a fallback search method is used to search from the supplemented candidate set to obtain the final recommendation result; The fallback search is to gradually reduce the number of portrait attributes used for retrieval until a preset fallback termination condition is met.
[0026] As an embodiment, a specific implementation of a retail shopping guide recommendation method based on cigarette clustering is as follows: Figure 1 As shown: 1. Construct similarity clustering of cigarette products: Obtain all current cigarette samples from the tobacco product library, calculate the correlation between samples through kmeans clustering, generate similarity results offline, and call them when making recommendations.
[0027] Specifically, each tobacco product currently collected is taken as a sample, characterized by the attributes of each cigarette, including product information such as price, brand, technical parameters, as well as comprehensive information such as the target population, characteristics, and evaluations of the cigarette.
[0028] Kmeans clustering is used to calculate the distance between samples, and then the similarity between cigarettes is calculated. The cigarettes are divided into different clusters based on the similarity results. The distance between samples within each cluster is relatively close, and the distance between each cluster is relatively far.
[0029] The similarity between tobacco products can be quickly identified through similarity clustering based on kmeans. The specific implementation scheme is as follows: 1) First, initialize K cluster centers {C1, C2, C3, ..., C k}, k is the number of divided cigarette clusters.
[0030] 2) Calculate the Euclidean distance between each cigarette and the cluster center:
[0031] in, represents the jth attribute of the i-th cluster center, Represents the jth attribute of the tobacco product.
[0032] 3) Calculate the distance of each cigarette cluster and calculate the overall distance (SSE)
[0033] 2. Perform a fallback and re-search to determine the candidate set based on the user portrait information: Currently, user portraits are aggregated by real-time user portraits and offline portraits. Searching for aggregated portraits can easily lead to no results. To solve this problem, this embodiment rolls back the original user portraits, and the candidate set is re-searched with the rolled-back user portraits until the candidate set size is reached and the rollback is terminated.
[0034] Specifically, by gradually regressing the user portrait, reducing the number of portrait attributes, and expanding the search scope, the situation where the candidate set is empty can be reduced; based on the importance of the attribute, the attribute with the lowest importance is selected from the attributes of the current user portrait and discarded. The calculation method of attribute importance is mainly completed through the word cloud algorithm, that is, the knowledge graph word cloud algorithm is used to calculate the importance of each attribute to each user.
[0035] Specifically, a personalized word cloud tag system is built based on the behavioral data of all users on the entire platform. That is, the importance of each attribute can be calculated for each user, achieving a personalized effect for each person. The importance is calculated by setting each attribute as a node in the word cloud and calculating the corresponding weight of the node.
[0036] The weight is calculated based on the behavioral contribution, which is calculated by weighted linear addition of the user's consulting behavior and consumption behavior for this tag, and is expressed as follows:
[0037] in, are the number of consultation behaviors and consumption behaviors, are the weights of consulting behavior and consumption behavior respectively. For example, the weight of consulting behavior is 0.2, and the weight of consumption behavior is 0.8. For example, if the user has 15 consulting behaviors and 10 consumption behaviors with the consumption range of 30~50 yuan, then the final behavior contribution of the consumption range of 30~50 yuan label is 11.
[0038] When calculating the contribution of behavior, we can also comprehensively consider the attenuation of consulting behavior and consumption behavior in the time dimension. That is, based on the Markov chain, when counting the number of consulting behaviors and consumption behaviors, we can add the attenuation of the time period dimension, including the past week, month, half a year, and year, to more accurately characterize the contribution of behavior. This includes two steps: 1) Define the corresponding decay rate according to different behaviors ; 2) Set the weight coefficients for different time periods according to the decay rate, and calculate the value according to the value function, as shown in the following formula (taking consulting behavior as an example):
[0039] in, represents the number of consulting behaviors after attenuation, The number of consultation behaviors in the past year, half year, and month, respectively. is the corresponding weight, is the decay rate.
[0040] If the fallback has a result, the current fallback user portrait information will be used as the final user portrait information; otherwise, the fallback will continue on the current fallback user portrait; at the same time, in order to ensure the diversity of the recommendation results, when falling back, the candidate set must be no less than 3 as the termination condition for the fallback.
[0041] When the number of candidate products in the fallback search is small and cannot meet the preset minimum number of candidate products, in order to ensure the richness of the candidate set, the fallback search and the similarity of tobacco products are combined. The combination method is first, extracting the top three tobacco products preferred or consumed by users through the collected historical behavior data, and then finding the top 100 tobacco products similar to the top three tobacco products to expand the candidate set. Finally, cigarettes that match the fallback search conditions are selected from the candidate set as the final candidate recommendation list to supplement the candidate set.
[0042] Embodiment 2 In one embodiment of the present disclosure, a retail shopping guide recommendation system based on cigarette clustering is provided, including a portrait construction module, a cigarette product retrieval module and a cigarette product supplement module: A portrait construction module is configured to: construct a user portrait from the interaction between the user and the dialogue system, wherein the user portrait includes portrait attributes and corresponding attribute values; The tobacco product retrieval module is configured to: retrieve tobacco products that match the user profile from the tobacco product database in a fallback retrieval manner to obtain a candidate set; The cigarette product supplement module is configured to: when the number of cigarette products in the candidate set does not meet the condition, supplement the candidate set based on the similarity between the cigarette products, and use a fallback search method to search from the supplemented candidate set to obtain the final recommendation result; The fallback search is to gradually reduce the number of portrait attributes used for retrieval until a preset fallback termination condition is met.
[0043] Embodiment 3 The purpose of this embodiment is to provide a computer-readable storage medium.
[0044] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a retail shopping guide recommendation method based on cigarette clustering as described in the first embodiment of the present disclosure.
[0045] Embodiment 4 The purpose of this embodiment is to provide an electronic device.
[0046] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in a retail shopping guide recommendation method based on cigarette clustering as described in the first embodiment of the present disclosure are implemented.
[0047] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. 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. A retail shopping guide recommendation method based on cigarette clustering, characterized in that: include: Constructing a user profile from the interaction between the user and the dialogue system, wherein the user profile includes profile attributes and corresponding attribute values; Using the fallback retrieval method, retrieve the tobacco products that match the user profile from the tobacco product database to obtain a candidate set; When the number of tobacco products in the candidate set does not meet the conditions, the candidate set is supplemented based on the similarity between tobacco products, and the fallback search method is used to search from the supplemented candidate set to obtain the final recommendation result; The fallback search is to gradually reduce the number of portrait attributes used for retrieval until a preset fallback termination condition is met.
2. A retail shopping guide recommendation method based on cigarette clustering as claimed in claim 1, characterized in that: The similarity between the tobacco products is identified by similarity clustering.
3. A retail shopping guide recommendation method based on cigarette clustering as claimed in claim 2, characterized in that: The similarity clustering adopts kmeans clustering to calculate the distance between cigarette products and divide the cigarette clusters based on the distance.
4. A retail shopping guide recommendation method based on cigarette clustering as claimed in claim 3, characterized in that: The similarity clustering specifically comprises the following steps: Initialize cluster centers; Calculate the distance between each cigarette; The distance of each cigarette cluster is calculated and the overall distance is calculated.
5. The retail shopping guide recommendation method based on cigarette clustering according to claim 1, characterized in that: The fallback search is specifically implemented as follows: Each time when backing off, the attribute with the lowest importance is discarded from the attributes of the current user profile; if the search result after backing off meets the preset backing off termination condition, the current backed off user profile is used as the final user profile; Otherwise, continue to roll back on the current rollback user portrait.
6. A retail shopping guide recommendation method based on cigarette clustering as claimed in claim 5, characterized in that: The step of retrieving a tobacco product that matches the user profile from the tobacco product database is as follows: Use the final user portrait as the search condition to screen tobacco products; If the number of screened tobacco products does not meet the preset number, a preset number of similar tobacco products are selected according to the similarity between the tobacco products to supplement the candidate set.
7. The retail shopping guide recommendation method based on cigarette clustering according to claim 1, characterized in that: The method of selecting a preset number of similar tobacco products to supplement the candidate set is specifically as follows: First, a preset number of preferred or consumed tobacco products are extracted from the user's historical behavior data. Then, based on the similarity between tobacco products, tobacco products similar to the extracted tobacco products are found to supplement the candidate set.
8. A retail shopping guide recommendation system based on cigarette clustering, characterized in that: It includes the portrait building module, tobacco product retrieval module and tobacco product supplement module: A portrait construction module is configured to: construct a user portrait from the interaction between the user and the dialogue system, wherein the user portrait includes portrait attributes and corresponding attribute values; The tobacco product retrieval module is configured to: retrieve tobacco products that match the user profile from the tobacco product database in a fallback retrieval manner to obtain a candidate set; The cigarette product supplement module is configured to: when the number of cigarette products in the candidate set does not meet the condition, supplement the candidate set based on the similarity between the cigarette products, and use a fallback search method to search from the supplemented candidate set to obtain the final recommendation result; The fallback search is to gradually reduce the number of portrait attributes used for retrieval until a preset fallback termination condition is met.
9. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, When the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 7 is executed.
10. A storage medium, characterized in that: The computer-readable instructions are non-transitory stored, wherein when the non-transitory computer-readable instructions are executed by a computer, the method of any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Intelligent cigarette order recommendation method
CN111401942A
Cigarette specification recommendation method based on improved k nearest neighbor
CN116881559A
Cigarette display method based on LDA model
CN116882685A
Server system, terminal device, program, information storage medium, and image retrieval method
JP2010218371A
Cited By
Multi-level supply chain industrial and commercial collaborative distribution method and system
CN120410164A
Scene-based voice intelligent recommendation method, system and terminal
CN120611097A
A scene-based voice intelligent recommendation method, system and terminal
CN120611097B
