[go: up one dir, main page]

CN118710375A - A method and system for recommending prepared dishes - Google Patents

A method and system for recommending prepared dishes Download PDF

Info

Publication number
CN118710375A
CN118710375A CN202411195550.3A CN202411195550A CN118710375A CN 118710375 A CN118710375 A CN 118710375A CN 202411195550 A CN202411195550 A CN 202411195550A CN 118710375 A CN118710375 A CN 118710375A
Authority
CN
China
Prior art keywords
search
prefabricated
user
intention
dishes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411195550.3A
Other languages
Chinese (zh)
Other versions
CN118710375B (en
Inventor
刘义
李慧
龚喜洋
许粟
李彬
魏林
陶光灿
李灵秀
毛雨泽
杨秀峰
白福均
龙毛妹
尚毓敏
刘明华
周靖
郭艳红
王成财
任勰珂
王在强
罗雅杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Food Engineering Vocational College
Original Assignee
Guizhou Food Engineering Vocational College
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Food Engineering Vocational College filed Critical Guizhou Food Engineering Vocational College
Priority to CN202411195550.3A priority Critical patent/CN118710375B/en
Publication of CN118710375A publication Critical patent/CN118710375A/en
Application granted granted Critical
Publication of CN118710375B publication Critical patent/CN118710375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Recommending goods or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种预制菜推荐方法和系统,具体涉及产品推荐技术领域,用于解决现有的难以及时响应用户偏好的快速变化和不能对用户准确推荐预制菜的问题;是通过数据库信息将用户分为预制菜常购买和不常购买两大类,针对常购买用户,筛选出意向预制菜集合并评估这些预制菜的特征变化程度;分析用户搜索结果的再更新情况,用以评估用户对预制菜的意向发散程度;根据评估结果判断用户画像的更新紧迫性,决定是否立即进行更新;通过分析预制菜常购买用户的搜索关键词的熵,评估电商平台在推荐预制菜时应考虑的多样性需求强度;根据用户的探索行为动态调整推荐策略,扩大或缩小推荐的类别范围。

The invention discloses a method and system for recommending prepared dishes, and specifically relates to the technical field of product recommendation, and is used to solve the existing problems of difficulty in timely responding to rapid changes in user preferences and failure to accurately recommend prepared dishes to users. The method divides users into two categories of those who frequently purchase prepared dishes and those who do not frequently purchase prepared dishes through database information, and for users who frequently purchase prepared dishes, screens out a set of intended prepared dishes and evaluates the degree of change in the characteristics of these prepared dishes; analyzes the re-update of user search results to evaluate the degree of divergence of user intentions for prepared dishes; determines the urgency of updating user portraits based on the evaluation results, and decides whether to update immediately; evaluates the intensity of diversity requirements that an e-commerce platform should consider when recommending prepared dishes by analyzing the entropy of search keywords of users who frequently purchase prepared dishes; and dynamically adjusts the recommendation strategy based on the user's exploration behavior to expand or narrow the recommended category range.

Description

一种预制菜推荐方法和系统A method and system for recommending prepared dishes

技术领域Technical Field

本发明涉及产品推荐技术领域,更具体地说,本发明涉及一种预制菜推荐方法和系统。The present invention relates to the technical field of product recommendation, and more specifically, to a method and system for recommending prepared dishes.

背景技术Background Art

准确推荐预制菜的重要性不容忽视,它直接影响用户的购买决策和满意度,从而对用户留存率和平台的总体销售业绩产生显著影响,个性化推荐系统对于提升预制菜用户满意度和增加预制菜的销售至关重要。The importance of accurately recommending pre-prepared meals cannot be ignored. It directly affects users' purchasing decisions and satisfaction, which in turn has a significant impact on user retention and the platform's overall sales performance. Personalized recommendation systems are crucial to improving user satisfaction with pre-prepared meals and increasing sales of pre-prepared meals.

在预制菜市场,消费者的偏好和需求极为多样化和动态变化。电商平台在对用户进行预制菜的推荐中,特别是对于经常关注和购买预制菜的用户,传统推荐系统往往依赖静态用户画像和过去的购买历史,难以及时响应用户偏好的快速变化,往往无法有效区分用户的购买频率和探索新产品的意愿,导致推荐的不够精准或多样化,不能对用户准确推荐预制菜。In the prepared food market, consumers' preferences and demands are extremely diverse and dynamically changing. When e-commerce platforms recommend prepared food to users, especially for users who frequently pay attention to and purchase prepared food, traditional recommendation systems often rely on static user portraits and past purchase history, making it difficult to respond to rapid changes in user preferences in a timely manner. They often cannot effectively distinguish between users' purchase frequency and willingness to explore new products, resulting in inaccurate or individuated recommendations, and inability to accurately recommend prepared food to users.

为了解决上述问题,现提供一种技术方案。In order to solve the above problems, a technical solution is now provided.

发明内容Summary of the invention

为了克服现有技术的上述缺陷,本发明的实施例提供一种预制菜推荐方法和系统以解决上述背景技术中提出的问题。In order to overcome the above-mentioned defects of the prior art, the embodiments of the present invention provide a method and system for recommending prepared dishes to solve the problems raised in the above-mentioned background technology.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种预制菜推荐方法,包括如下步骤:A method for recommending pre-prepared dishes comprises the following steps:

基于数据库获取预制菜的潜在推荐用户,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户;Based on the database, potential recommended users of pre-prepared dishes are obtained, and the potential recommended users are divided into users who frequently purchase pre-prepared dishes and users who do not frequently purchase pre-prepared dishes;

对预制菜常购买用户的意向预制菜进行分析,筛选得到意向预制菜集合,对意向预制菜集合的特征变化程度进行分析,评估预制菜常购买用户的预制菜意向均一性;Analyze the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes, screen out the intended pre-prepared dish set, analyze the degree of change in the characteristics of the intended pre-prepared dish set, and evaluate the uniformity of the intended pre-prepared dish of users who frequently purchase pre-prepared dishes;

对预制菜常购买用户搜索结果的再更新情况进行分析,评估预制菜常购买用户的预制菜意向发散程度;Analyze the re-update of search results of users who frequently purchase pre-prepared meals, and evaluate the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals;

基于预制菜常购买用户的预制菜意向均一性和预制菜常购买用户的预制菜意向发散程度,评估预制菜常购买用户的用户画像需要被更新的紧迫性程度,并判断是否立即更新用户画像;Based on the uniformity of the pre-prepared meal intention of the users who frequently purchase pre-prepared meals and the divergence of their pre-prepared meal intention, the urgency of updating the user profile of the users who frequently purchase pre-prepared meals is evaluated, and it is determined whether to update the user profile immediately.

通过分析预制菜常购买用户搜索关键词的熵,评估电商平台预制菜推荐的多样性需求强度;By analyzing the entropy of keywords searched by users who frequently purchase prepared meals, the intensity of demand for diversity in the recommendations of prepared meals on e-commerce platforms is evaluated;

通过对预制菜常购买用户的预制菜意向均一性、预制菜常购买用户的预制菜意向发散程度以及电商平台预制菜推荐的多样性需求强度进行综合分析,调节电商平台推荐预制菜给预制菜常购买用户的类别广泛性。By conducting a comprehensive analysis of the uniformity of pre-prepared meal intentions among users who frequently purchase pre-prepared meals, the degree of divergence of pre-prepared meal intentions among users who frequently purchase pre-prepared meals, and the intensity of demand for diversity in pre-prepared meal recommendations on e-commerce platforms, the breadth of categories of pre-prepared meals recommended by e-commerce platforms are adjusted.

在一个优选的实施方式中,基于数据库获取预制菜的潜在推荐用户,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户,具体为:In a preferred embodiment, potential recommended users of pre-prepared dishes are obtained based on the database, and the potential recommended users are divided into users who often purchase pre-prepared dishes and users who do not often purchase pre-prepared dishes, specifically:

数据库的数据收集包括用户基本信息、交易信息、浏览历史以及产品信息;The data collected in the database includes basic user information, transaction information, browsing history, and product information;

基于数据库收集的数据构建用于用户分类的特征,用于用户分类的特征包括购买频率、购买偏好、消费水平以及活跃度;Construct features for user classification based on the data collected from the database. The features used for user classification include purchase frequency, purchase preference, consumption level, and activity level;

根据购买频率给用户打标签,将数据分为训练集和测试集,使用随机森林算法训练模型;Label users according to purchase frequency, divide the data into training and test sets, and use the random forest algorithm to train the model;

将训练好的模型用于用户分类,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户。The trained model is used for user classification, and potential recommendation users are divided into users who frequently purchase pre-prepared meals and users who do not frequently purchase pre-prepared meals.

在一个优选的实施方式中,对预制菜常购买用户的意向预制菜进行分析,筛选得到意向预制菜集合,对意向预制菜集合的特征变化程度进行分析,评估预制菜常购买用户的预制菜意向均一性,具体为:In a preferred embodiment, the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes are analyzed, and a set of intended pre-prepared dishes is obtained by screening. The degree of change in the characteristics of the set of intended pre-prepared dishes is analyzed, and the uniformity of the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes is evaluated, specifically:

S101:根据预制菜常购买用户的历史购买数据和浏览行为,通过识别频繁购买和浏览的预制菜产品建立意向预制菜集合;S101: establishing a desired pre-prepared meal set by identifying frequently purchased and browsed pre-prepared meal products based on historical purchase data and browsing behavior of users who frequently purchase pre-prepared meals;

S102:收集意向预制菜集合的交易记录、用户评价、浏览数据及其他互动数据;S102: Collecting transaction records, user reviews, browsing data and other interactive data of the intended pre-prepared meal set;

S103:对意向预制菜集合内每种意向预制菜提取关键特征,关键特征包括便利性、类别以及同质化程度;S103: extracting key features for each intended pre-prepared dish in the intended pre-prepared dish set, where the key features include convenience, category, and homogeneity;

S104:对每个关键特征进行标准差计算,根据关键特征的标准差计算结果量化关键特征变化的波动性;S104: Calculate the standard deviation of each key feature, and quantify the volatility of the key feature change according to the standard deviation calculation result of the key feature;

S105:对每个关键特征赋予权重,对关键特征的标准差进行加权处理后求和,获得意向预制菜集合的意向综合变化指数,基于意向综合变化指数评估预制菜常购买用户的预制菜意向均一性;S105: assigning a weight to each key feature, performing weighted processing on the standard deviation of the key features and then summing them up, obtaining a comprehensive change index of intention for the intended pre-prepared meal set, and evaluating the uniformity of the pre-prepared meal intention of the users who frequently purchase pre-prepared meals based on the comprehensive change index of intention;

意向综合变化指数的计算公式为:The calculation formula of the intention comprehensive change index is: ;

其中,为意向综合变化指数,为关键特征的数量,是关键特征的编号,是第个关键特征的权重,是第个关键特征对应的标准差计算结果。in, is the comprehensive change index of intention, is the number of key features, is the key feature number, It is The weight of the key features, It is The standard deviation calculation results corresponding to the key features.

在一个优选的实施方式中,对预制菜常购买用户搜索结果的再更新情况进行分析,评估预制菜常购买用户的预制菜意向发散程度,具体为:In a preferred embodiment, the re-update of the search results of users who frequently purchase pre-prepared dishes is analyzed to evaluate the divergence of the pre-prepared dishes intention of users who frequently purchase pre-prepared dishes, specifically:

将预制菜常购买用户开始搜索关于预制菜至退出电商平台的过程标记为搜索任务;The process from when users who frequently purchase pre-prepared food start searching for pre-prepared food to when they exit the e-commerce platform is marked as a search task;

建立搜索任务集合,搜索任务集合包括近期预制菜常购买用户的多个搜索任务;Establish a search task set, which includes multiple search tasks of users who frequently purchase pre-prepared dishes recently;

判断搜索任务中是否存在再搜索情况,将搜索任务集合内存在再搜索情况的搜索任务标记为发散搜索任务;Determine whether there is a re-search situation in the search task, and mark the search task with the re-search situation in the search task set as a divergent search task;

将搜索任务集合内发散搜索任务的数量与搜索任务集合内搜索任务的总数量的比值标记为发散搜索比;The ratio of the number of divergent search tasks in the search task set to the total number of search tasks in the search task set is marked as the divergent search ratio;

记录发散搜索任务中预制菜常购买用户进行搜索的总次数;Record the total number of searches conducted by users who frequently purchase pre-prepared meals in the divergent search task;

对于发散搜索任务中每次搜索,记录预制菜常购买用户在搜索结果页浏览时间;For each search in the divergent search task, record the browsing time of users who frequently purchase pre-prepared meals on the search results page;

计算再搜索浏览时间比值;Calculate the re-search browsing time ratio;

通过对发散搜索任务中的再搜索浏览时间比值分别赋予权重后进行求和,计算得到每个发散搜索任务的搜索意向发散值;The search intention divergence value of each divergent search task is calculated by assigning weights to the re-search browsing time ratios in the divergent search task and summing them up;

对搜索任务集合内所有发散搜索任务的搜索意向发散值进行求和,得到集合搜索意向发散值;Sum the search intention divergence values of all divergent search tasks in the search task set to obtain the set search intention divergence value;

将发散搜索比与集合搜索意向发散值进行无量纲化处理,将无量纲化处理后的发散搜索比与集合搜索意向发散值进行加权求和,计算得到搜索意向发散程度指数,其表达式为:The divergent search ratio and the set search intention divergence value are dimensionless, and the divergent search ratio after dimensionless processing and the set search intention divergence value are weighted summed to calculate the search intention divergence index, which is expressed as follows:

;

其中,为搜索意向发散程度指数,分别为无量纲化处理后的发散搜索比与集合搜索意向发散值,分别为无量纲化处理后的发散搜索比与集合搜索意向发散值的权重,且均大于0。in, is the search intention divergence index, are the divergent search ratio and the set search intention divergence value after dimensionless processing, are the weights of the divergent search ratio and the divergent value of the set search intention after dimensionless processing, and Both are greater than 0.

在一个优选的实施方式中,基于预制菜常购买用户的预制菜意向均一性和预制菜常购买用户的预制菜意向发散程度,评估预制菜常购买用户的用户画像需要被更新的紧迫性程度,并判断是否立即更新用户画像,具体为:In a preferred embodiment, based on the uniformity of the pre-prepared food intention of the pre-prepared food frequent purchasing users and the divergence of the pre-prepared food intention of the pre-prepared food frequent purchasing users, the urgency of updating the user profile of the pre-prepared food frequent purchasing users is evaluated, and it is determined whether to update the user profile immediately, specifically:

当意向综合变化指数小于等于意向综合变化阈值,且搜索意向发散程度指数小于等于搜索意向发散程度阈值时,则判定不立即更新用户画像;否则,则判定立即更新用户画像;When the comprehensive change index of intention is less than or equal to the comprehensive change threshold of intention, and the search intention divergence index is less than or equal to the search intention divergence threshold, it is determined not to update the user profile immediately; otherwise, it is determined to update the user profile immediately;

判定不立即更新用户画像时,基于预设的更新频率进行用户画像的更新。When it is determined that the user portrait is not to be updated immediately, the user portrait is updated based on a preset update frequency.

在一个优选的实施方式中,通过分析预制菜常购买用户搜索关键词的熵,评估电商平台预制菜推荐的多样性需求强度,具体为:In a preferred embodiment, the intensity of demand for diversity in the pre-prepared meal recommendations on the e-commerce platform is evaluated by analyzing the entropy of keywords searched by users who often purchase pre-prepared meals, specifically:

S201:收集预设区间内预制菜常购买用户在电商平台上针对预制菜进行的所有搜索查询;搜索查询包括预制菜常购买用户输入的关键词、搜索频次以及搜索日期;S201: Collect all search queries for pre-prepared dishes conducted by users who frequently purchase pre-prepared dishes on the e-commerce platform within a preset period; the search queries include keywords entered by users who frequently purchase pre-prepared dishes, search frequencies, and search dates;

S202:提取所有独立的关键词;整理并清洗关键词,去除无意义的填充词;S202: extract all independent keywords; sort and clean the keywords, and remove meaningless filler words;

S203:统计每个关键词在所有搜索查询中出现的次数,进而计算每个关键词的出现频率;每个关键词的出现频率计算公式为:;其中,为第个关键词的出现频率,为第个关键词的出现次数,是所有关键词的总出现次数;S203: Count the number of times each keyword appears in all search queries, and then calculate the frequency of occurrence of each keyword; the calculation formula for the frequency of occurrence of each keyword is: ;in, For the The frequency of occurrence of keywords, For the The number of times a keyword appears, is the total number of occurrences of all keywords;

S204:应用信息熵公式计算得到搜索多样熵评估指数,其表达式为:是搜索多样熵评估指数,不同关键词的总数。S204: Apply the information entropy formula to calculate the search diversity entropy evaluation index, which is expressed as: ; is the search diversity entropy evaluation index, The total number of unique keywords.

在一个优选的实施方式中,通过对预制菜常购买用户的预制菜意向均一性、预制菜常购买用户的预制菜意向发散程度以及电商平台预制菜推荐的多样性需求强度进行综合分析,调节电商平台推荐预制菜给预制菜常购买用户的类别广泛性,具体为:In a preferred embodiment, by comprehensively analyzing the homogeneity of the pre-prepared food intention of users who frequently purchase pre-prepared food, the divergence of the pre-prepared food intention of users who frequently purchase pre-prepared food, and the intensity of the demand for diversity of pre-prepared food recommendations on the e-commerce platform, the breadth of categories of pre-prepared food recommended by the e-commerce platform to the users who frequently purchase pre-prepared food is adjusted, specifically:

将意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数进行归一化处理,将归一化处理后的意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数分别赋予预设比例系数后,计算得到推荐广泛评估系数,其表达式为:The intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index are normalized, and the normalized intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index are respectively assigned preset proportional coefficients to calculate the recommendation extensive evaluation coefficient, which is expressed as follows:

;

其中,为推荐广泛评估系数,为自然对数底数,分别为意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数的预设比例系数,且均大于0;in, To recommend a broad assessment coefficient, is the base of natural logarithm, are the preset proportional coefficients of the intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index, respectively, and All are greater than 0;

推荐广泛评估系数与电商平台推荐预制菜给预制菜常购买用户的类别广泛性的关系为:推荐广泛评估系数越大,电商平台推荐预制菜给预制菜常购买用户的类别广泛性应调节的越大。The relationship between the recommendation breadth evaluation coefficient and the breadth of categories of pre-prepared meals recommended by the e-commerce platform to users who frequently purchase pre-prepared meals is: the larger the recommendation breadth evaluation coefficient, the greater the breadth of categories of pre-prepared meals recommended by the e-commerce platform to users who frequently purchase pre-prepared meals should be adjusted.

另一方面,本发明提供一种预制菜推荐系统,包括用户划分模块、意向均一评估模块、意向发散评估模块、画像更新判断模块、推荐多样评估模块以及推荐广泛调节模块;On the other hand, the present invention provides a prepared food recommendation system, including a user segmentation module, an intention uniformity evaluation module, an intention divergence evaluation module, a portrait update judgment module, a recommendation diversity evaluation module, and a recommendation extensive adjustment module;

用户划分模块:基于数据库获取预制菜的潜在推荐用户,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户;User segmentation module: obtains potential recommended users of pre-prepared dishes based on the database, and divides the potential recommended users into users who frequently purchase pre-prepared dishes and users who rarely purchase pre-prepared dishes;

意向均一评估模块:对预制菜常购买用户的意向预制菜进行分析,筛选得到意向预制菜集合,对意向预制菜集合的特征变化程度进行分析,评估预制菜常购买用户的预制菜意向均一性;Intention uniformity evaluation module: Analyze the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes, screen out the intended pre-prepared dishes set, analyze the degree of change in the characteristics of the intended pre-prepared dishes set, and evaluate the uniformity of the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes;

意向发散评估模块:对预制菜常购买用户搜索结果的再更新情况进行分析,评估预制菜常购买用户的预制菜意向发散程度;Intention divergence evaluation module: Analyze the re-update of search results of users who frequently purchase pre-prepared meals, and evaluate the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals;

画像更新判断模块:基于预制菜常购买用户的预制菜意向均一性和预制菜常购买用户的预制菜意向发散程度,评估预制菜常购买用户的用户画像需要被更新的紧迫性程度,并判断是否立即更新用户画像;Profile update judgment module: Based on the uniformity of the pre-prepared food intention of the pre-prepared food frequent purchasing users and the divergence of the pre-prepared food intention of the pre-prepared food frequent purchasing users, the urgency of updating the user profile of the pre-prepared food frequent purchasing users is evaluated, and it is judged whether to update the user profile immediately;

推荐多样评估模块:通过分析预制菜常购买用户搜索关键词的熵,评估电商平台预制菜推荐的多样性需求强度;Recommendation Diversity Evaluation Module: This module analyzes the entropy of keywords searched by users who frequently purchase pre-prepared dishes to evaluate the diversity demand intensity of pre-prepared dishes recommended by e-commerce platforms.

推荐广泛调节模块:通过对预制菜常购买用户的预制菜意向均一性、预制菜常购买用户的预制菜意向发散程度以及电商平台预制菜推荐的多样性需求强度进行综合分析,调节电商平台推荐预制菜给预制菜常购买用户的类别广泛性。Recommendation breadth adjustment module: Through a comprehensive analysis of the uniformity of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, and the intensity of demand for diversity of pre-prepared meal recommendations on e-commerce platforms, the breadth of categories of pre-prepared meals recommended by e-commerce platforms is adjusted.

本发明一种预制菜推荐方法和系统的技术效果和优点:The technical effects and advantages of the method and system for recommending prepared dishes of the present invention are as follows:

1、基于数据库信息将用户分为预制菜常购买和不常购买两大类,针对常购买用户,进一步分析其意向预制菜,包括筛选出意向预制菜集合并评估这些预制菜的特征变化程度。此外,分析用户搜索结果的再更新情况,用以评估用户对预制菜的意向发散程度,这一步骤理解了用户在预制菜选择上的均一性和多样性需求;最后,根据评估结果判断用户画像的更新紧迫性,决定是否立即进行更新,确保推荐内容与用户当前的偏好保持一致。通过分析预制菜常购买用户的搜索关键词的熵,评估了电商平台在推荐预制菜时应考虑的多样性需求强度。搜索关键词的熵反映了用户在搜索预制菜时的探索广度,能够根据用户的探索行为动态调整推荐策略,扩大或缩小推荐的类别范围,这种方法不仅提高了用户满意度,还增强了平台对新市场趋势的响应能力。1. Based on the database information, users are divided into two categories: those who frequently purchase pre-prepared dishes and those who do not frequently purchase them. For users who frequently purchase them, their intended pre-prepared dishes are further analyzed, including screening out the intended pre-prepared dishes set and evaluating the degree of change in the characteristics of these pre-prepared dishes. In addition, the re-update of user search results is analyzed to evaluate the degree of divergence of users' intentions for pre-prepared dishes. This step understands the uniformity and diversity needs of users in the selection of pre-prepared dishes; finally, the urgency of updating the user portrait is judged based on the evaluation results, and it is decided whether to update it immediately to ensure that the recommended content is consistent with the user's current preferences. By analyzing the entropy of the search keywords of users who frequently purchase pre-prepared dishes, the intensity of diversity needs that e-commerce platforms should consider when recommending pre-prepared dishes is evaluated. The entropy of search keywords reflects the breadth of users' exploration when searching for pre-prepared dishes. It can dynamically adjust the recommendation strategy according to the user's exploration behavior and expand or narrow the recommended category range. This method not only improves user satisfaction, but also enhances the platform's responsiveness to new market trends.

2、显著提高了预制菜推荐的准确性和用户满意度。通过动态分析用户的购买和搜索行为以及及时更新用户画像,电商平台能够提供更符合用户当前偏好的推荐,这直接增强了用户的购买动机和信任度。同时,该方法的实施有助于电商平台更有效地预测市场趋势,优化库存管理,减少资源浪费。此外,通过调整推荐的类别广泛性,平台可以更好地满足不同用户群体的需求,尤其是那些寻求新口味和新体验的用户,从而吸引和保留更多的用户。2. Significantly improved the accuracy of pre-prepared meal recommendations and user satisfaction. By dynamically analyzing users' purchase and search behaviors and updating user portraits in a timely manner, e-commerce platforms are able to provide recommendations that are more in line with users' current preferences, which directly enhances users' purchasing motivation and trust. At the same time, the implementation of this method helps e-commerce platforms to more effectively predict market trends, optimize inventory management, and reduce resource waste. In addition, by adjusting the breadth of recommended categories, the platform can better meet the needs of different user groups, especially those seeking new tastes and new experiences, thereby attracting and retaining more users.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明一种预制菜推荐方法示意图;FIG1 is a schematic diagram of a method for recommending pre-prepared dishes according to the present invention;

图2为本发明一种预制菜推荐系统的结构示意图。FIG. 2 is a schematic diagram of the structure of a pre-prepared meal recommendation system according to the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.

实施例1Example 1

图1给出了本发明一种预制菜推荐方法,其包括如下步骤:FIG1 shows a method for recommending prepared dishes according to the present invention, which comprises the following steps:

基于数据库获取预制菜的潜在推荐用户,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户。Based on the database, potential recommended users of pre-prepared dishes are obtained, and the potential recommended users are divided into users who frequently purchase pre-prepared dishes and users who do not frequently purchase pre-prepared dishes.

对预制菜常购买用户的意向预制菜进行分析,筛选得到意向预制菜集合,对意向预制菜集合的特征变化程度进行分析,评估预制菜常购买用户的预制菜意向均一性。The intended pre-prepared dishes of users who frequently purchase pre-prepared dishes are analyzed, and a set of intended pre-prepared dishes is obtained by screening. The degree of change in the characteristics of the set of intended pre-prepared dishes is analyzed, and the uniformity of the intended pre-prepared dishes intention of users who frequently purchase pre-prepared dishes is evaluated.

对预制菜常购买用户搜索结果的再更新情况进行分析,评估预制菜常购买用户的预制菜意向发散程度。Analyze the re-update of search results of users who frequently purchase pre-prepared meals, and evaluate the degree of divergence of their intention for pre-prepared meals.

基于预制菜常购买用户的预制菜意向均一性和预制菜常购买用户的预制菜意向发散程度,评估预制菜常购买用户的用户画像需要被更新的紧迫性程度,并判断是否立即更新用户画像。Based on the uniformity of pre-prepared meal intentions of users who frequently purchase pre-prepared meals and the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, the urgency of updating the user profiles of users who frequently purchase pre-prepared meals is evaluated, and a decision is made as to whether the user profiles should be updated immediately.

通过分析预制菜常购买用户搜索关键词的熵,评估电商平台预制菜推荐的多样性需求强度。By analyzing the entropy of search keywords of users who frequently purchase pre-prepared meals, the intensity of demand for diversity in pre-prepared meal recommendations on e-commerce platforms is evaluated.

通过对预制菜常购买用户的预制菜意向均一性、预制菜常购买用户的预制菜意向发散程度以及电商平台预制菜推荐的多样性需求强度进行综合分析,调节电商平台推荐预制菜给预制菜常购买用户的类别广泛性。By conducting a comprehensive analysis of the uniformity of pre-prepared meal intentions among users who frequently purchase pre-prepared meals, the degree of divergence of pre-prepared meal intentions among users who frequently purchase pre-prepared meals, and the intensity of demand for diversity in pre-prepared meal recommendations on e-commerce platforms, the breadth of categories of pre-prepared meals recommended by e-commerce platforms are adjusted.

基于数据库获取预制菜的潜在推荐用户,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户,具体为:Based on the database, potential recommended users of pre-prepared dishes are obtained, and the potential recommended users are divided into users who often purchase pre-prepared dishes and users who do not often purchase pre-prepared dishes. Specifically:

数据库是包含用户购买历史、浏览历史、用户基本信息、交易信息和产品信息的综合数据库。数据库的数据收集包括以下几个方面:The database is a comprehensive database that contains user purchase history, browsing history, user basic information, transaction information and product information. The data collection of the database includes the following aspects:

用户基本信息:包括但不限于用户ID、年龄、性别、地理位置、注册日期等。User basic information: including but not limited to user ID, age, gender, geographic location, registration date, etc.

交易信息:所有交易记录,包括交易时间、购买的商品、数量、价格、支付方式及交易状态等。Transaction information: all transaction records, including transaction time, purchased goods, quantity, price, payment method and transaction status.

浏览历史:用户在平台上的浏览行为数据,如浏览的商品、浏览时间、页面停留时间等。Browsing history: user’s browsing behavior data on the platform, such as browsed products, browsing time, page dwell time, etc.

产品信息:包含商品的详细描述,如分类ID、名称、描述、价格、库存量、供应商信息等。Product information: Contains detailed description of the product, such as category ID, name, description, price, inventory, supplier information, etc.

为确保数据的质量和分析的准确性,需进行详细的数据预处理操作,包括:To ensure the quality of data and the accuracy of analysis, detailed data preprocessing operations are required, including:

数据清洗:剔除不完整、错误或无关的数据记录,如无效的用户ID、异常的交易记录等。Data cleaning: Eliminate incomplete, erroneous or irrelevant data records, such as invalid user IDs, abnormal transaction records, etc.

数据整合:整合来自不同来源的数据,确保用户的每一次行为都能准确关联到对应的用户ID和产品ID。Data integration: Integrate data from different sources to ensure that every user behavior can be accurately associated with the corresponding user ID and product ID.

数据格式化:对日期、时间等字段进行统一格式化处理,以便于后续分析。Data formatting: uniformly format date, time and other fields to facilitate subsequent analysis.

基于数据库收集的数据构建用于用户分类的特征,用于用户分类的特征包括:Features for user classification are constructed based on the data collected from the database. The features for user classification include:

购买频率:计算每个用户购买预制菜的频率,如每月购买预制菜的次数。Purchase frequency: Calculate the frequency of each user's purchase of pre-prepared meals, such as the number of times each user purchases pre-prepared meals per month.

购买偏好:分析用户购买预制菜的种类,识别出主要偏好的预制菜品类。Purchase preference: Analyze the types of pre-prepared meals purchased by users and identify the main preferred pre-prepared meal categories.

消费水平:根据用户购买预制菜的平均花费及购买频率,评估其消费水平。Consumption level: Assess the user’s consumption level based on their average spending on pre-prepared meals and purchase frequency.

活跃度:通过用户的登录频率、浏览页面数量等指标来衡量用户的活跃度。Activity: User activity is measured through indicators such as user login frequency and number of pages viewed.

根据购买频率给用户打标签。例如,可以设定阈值,如用户在考察期内购买预制菜超过10次,则标记为“常购买”(1),否则为“不常购买”(0)。Users can be labeled based on purchase frequency. For example, a threshold can be set, such that if a user purchases pre-made meals more than 10 times during the observation period, the user is labeled as "frequent purchase" (1), otherwise, the user is labeled as "infrequent purchase" (0).

将数据分为训练集和测试集,常用的比例为80%的数据用于训练模型,20%的数据用于测试模型。这可以使用如Python的Scikit-learn库中的train_test_split函数来实现。Split the data into a training set and a test set, with a common ratio of 80% of the data used for training the model and 20% of the data used for testing the model. This can be achieved using the train_test_split function in Python's Scikit-learn library.

使用随机森林算法训练模型。随机森林是一个包含多个决策树的集成算法,其步骤包括:The model is trained using the random forest algorithm. Random forest is an ensemble algorithm that contains multiple decision trees. Its steps include:

选择随机森林参数:如树的数量(n_estimators),最大深度(max_depth)等。Select random forest parameters: such as the number of trees (n_estimators), maximum depth (max_depth), etc.

训练模型:使用Scikit-learn中的RandomForestClassifier来训练数据。模型将学习如何根据输入的特征来预测用户是“常购买”还是“不常购买”。具体可通过以下代码实现:Training model: Use RandomForestClassifier in Scikit-learn to train the data. The model will learn how to predict whether the user is a "frequent purchaser" or "infrequent purchaser" based on the input features. This can be achieved through the following code:

from sklearn.ensemble import RandomForestClassifierfrom sklearn.ensemble import RandomForestClassifier

from sklearn.model_selection import train_test_splitfrom sklearn.model_selection import train_test_split

# 假设X是特征数据,y是标签数据# Assume X is feature data and y is label data

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

rf_model = RandomForestClassifier(n_estimators=100, max_depth=10,random_state=42)rf_model = RandomForestClassifier(n_estimators=100, max_depth=10,random_state=42)

rf_model.fit(X_train, y_train)rf_model.fit(X_train, y_train)

使用测试集评估模型的性能,关注准确率、召回率、F1分数等指标。可以使用Scikit-learn的classification_report来获取这些指标。具体可通过以下代码实现:Use the test set to evaluate the performance of the model, focusing on indicators such as accuracy, recall, and F1 score. You can use Scikit-learn's classification_report to obtain these indicators. This can be achieved through the following code:

from sklearn.metrics import classification_reportfrom sklearn.metrics import classification_report

y_pred = rf_model.predict(X_test)y_pred = rf_model.predict(X_test)

print(classification_report(y_test, y_pred))print(classification_report(y_test, y_pred))

将训练好的模型用于实时或定期的用户分类,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户。The trained model is used for real-time or periodic user classification to divide potential recommendation users into users who frequently purchase pre-prepared dishes and users who infrequently purchase pre-prepared dishes.

其中,对预制菜常购买用户进行预制菜推荐,通常是基于用户画像进行推荐;基于用户画像对预制菜常购买用户进行预制菜推荐,具体为:Among them, the recommendation of pre-prepared dishes to users who frequently purchase pre-prepared dishes is usually based on user portraits; the recommendation of pre-prepared dishes to users who frequently purchase pre-prepared dishes based on user portraits is specifically as follows:

使用聚类算法(如K-means或层次聚类)对用户进行分群,以发现具有相似购买和浏览行为的用户群体。Use clustering algorithms (such as K-means or hierarchical clustering) to group users to find groups of users with similar purchasing and browsing behaviors.

分析每个群体的特征,定义用户画像。Analyze the characteristics of each group and define user portraits.

根据用户画像进行个性化推荐,选择合适的推荐算法,包括:Make personalized recommendations based on user portraits and select appropriate recommendation algorithms, including:

协同过滤:利用用户-物品交互历史,找出相似用户或物品,进行推荐;可以是基于用户的协同过滤或基于物品的协同过滤。Collaborative filtering: Utilize the user-item interaction history to find similar users or items and make recommendations; it can be user-based collaborative filtering or item-based collaborative filtering.

内容推荐:分析用户画像中的属性,如最喜欢的预制菜类型,推荐具有相似属性的新产品。结合用户的反馈数据调整推荐策略。Content recommendation: Analyze the attributes in the user profile, such as the favorite type of pre-made dishes, and recommend new products with similar attributes. Adjust the recommendation strategy based on user feedback data.

混合推荐系统:结合协同过滤和内容推荐的优点,提高推荐系统的准确性和覆盖面。Hybrid recommendation system: combines the advantages of collaborative filtering and content recommendation to improve the accuracy and coverage of the recommendation system.

对预制菜常购买用户的意向预制菜进行分析,筛选得到意向预制菜集合,对意向预制菜集合的特征变化程度进行分析,评估预制菜常购买用户的预制菜意向均一性,具体为:The intended pre-prepared dishes of users who frequently purchase pre-prepared dishes are analyzed, and a set of intended pre-prepared dishes is obtained by screening. The degree of change in the characteristics of the set of intended pre-prepared dishes is analyzed, and the uniformity of the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes is evaluated. Specifically:

S101:根据预制菜常购买用户的历史购买数据和浏览行为,通过识别频繁购买和浏览的预制菜产品建立意向预制菜集合:S101: Based on the historical purchase data and browsing behavior of users who frequently purchase pre-prepared dishes, a set of intended pre-prepared dishes is established by identifying the pre-prepared dishes that are frequently purchased and browsed:

从电商平台的数据库中提取用户的历史购买和浏览数据,利用数据挖掘技术(如关联规则学习)识别用户频繁购买或浏览的预制菜品种。Extract users’ historical purchase and browsing data from the e-commerce platform’s database, and use data mining techniques (such as association rule learning) to identify pre-prepared dishes that users frequently purchase or browse.

根据识别出的频繁项目建立意向预制菜集合。Establish a set of intended prepared dishes based on the identified frequent items.

识别出用户偏好的预制菜品种有助于更准确地理解用户需求,提高推荐系统的精确度和用户满意度。Identifying the types of pre-prepared dishes that users prefer helps to understand user needs more accurately and improve the accuracy of the recommendation system and user satisfaction.

S102:收集意向预制菜集合的交易记录、用户评价、浏览数据及其他互动数据:S102: Collecting transaction records, user reviews, browsing data, and other interactive data of the intended pre-prepared meal set:

为了全面了解意向预制菜的市场表现和用户互动,需要收集相关的交易记录、用户评价和浏览数据。In order to fully understand the market performance and user interactions of intended pre-prepared meals, it is necessary to collect relevant transaction records, user reviews and browsing data.

访问电商平台的后端数据库,提取相关预制菜的详细交易和互动记录;将购买数据、用户评价、浏览数据等信息按预制菜分类整合。Access the back-end database of the e-commerce platform to extract detailed transaction and interaction records of relevant pre-prepared dishes; integrate purchase data, user reviews, browsing data and other information by pre-prepared dish category.

S103:对意向预制菜集合内每种意向预制菜提取关键特征,关键特征包括便利性、类别以及同质化程度:S103: Extract key features for each intended pre-prepared dish in the intended pre-prepared dish set, where the key features include convenience, category, and homogeneity:

其中,便利性通常与预制菜的准备时间、所需准备步骤和所需工具的复杂性有关。为了数值化便利性,可以采用以下几种方法:Convenience is usually related to the preparation time of the prepared dish, the preparation steps required, and the complexity of the tools required. To quantify convenience, several methods can be used:

将预制菜的准备时间的倒数用于表达便利性,预制菜的准备时间越低,便利性越高。The inverse of the preparation time of the pre-prepared dish is used to express convenience. The lower the preparation time of the pre-prepared dish, the higher the convenience.

将预制菜的所需准备步骤的倒数用于表达便利性,预制菜的所需准备步骤越少,便利性越高。The inverse of the number of steps required to prepare a pre-prepared dish is used to express convenience, and the fewer steps required to prepare a pre-prepared dish, the higher the convenience.

类别可以根据预制菜的种类进行编码,以便在分析中使用。Categories can be coded according to the type of prepared dish for use in analysis.

使用独热编码(One-Hot Encoding)为每个类别分配一个独立的二进制变量。例如,如果有三种类型的预制菜——梅干菜烧肉、寿司和汉堡,那么梅干菜烧肉可以表示为[1,0,0],寿司为 [0,1,0],汉堡为[0,0,1]。Use One-Hot Encoding to assign a separate binary variable to each category. For example, if there are three types of pre-made dishes - pickled mustard greens and pork, sushi, and hamburgers, pickled mustard greens and pork can be represented as [1,0,0], sushi as [0,1,0], and hamburgers as [0,0,1].

同质化程度表示产品与市场上其他类似产品的相似程度。这可以通过比较产品特性的相似性来量化。The degree of homogeneity indicates how similar a product is to other similar products on the market. This can be quantified by comparing the similarity of product characteristics.

通过比较预制菜的关键特性(如成分、营养价值、风味)与市场上类似产品进行匹配。Match prepared meals with similar products on the market by comparing key characteristics (e.g. ingredients, nutritional value, flavor).

将匹配的特性数与总特性数的比值标记为同质化程度,同质化程度越大,表示与市场上其他预制菜更为相似。The ratio of the number of matching features to the total number of features is marked as the degree of homogeneity. The greater the degree of homogeneity, the more similar it is to other pre-prepared dishes on the market.

S104:对每个关键特征进行标准差计算,根据关键特征的标准差计算结果量化关键特征变化的波动性:S104: Calculate the standard deviation of each key feature, and quantify the volatility of the key feature changes based on the standard deviation calculation results of the key features:

对意向预制菜集合内所有的预制菜的便利性进行标准差分析,计算得到便利性对应的标准差计算结果。A standard deviation analysis is performed on the convenience of all pre-prepared dishes in the intended pre-prepared dish set, and the standard deviation calculation result corresponding to the convenience is calculated.

对意向预制菜集合内所有的预制菜的类别进行标准差分析,计算得到类别对应的标准差计算结果。Perform standard deviation analysis on the categories of all pre-prepared dishes in the intended pre-prepared dish set, and calculate the standard deviation calculation results corresponding to the categories.

对意向预制菜集合内所有的预制菜的同质化程度进行标准差分析,计算得到同质化程度对应的标准差计算结果。A standard deviation analysis is performed on the homogeneity of all pre-prepared dishes in the intended pre-prepared dish set, and the standard deviation calculation result corresponding to the homogeneity degree is calculated.

其中,关于便利性、类别以及同质化程度对应的标准差计算是基于现有常见的标准差进行计算的,故此处不再赘述。Among them, the calculation of standard deviations corresponding to convenience, category and degree of homogeneity is based on the existing common standard deviations, so it will not be repeated here.

便利性对应的标准差计算结果越大,意向预制菜集合内预制菜的便利性变化的波动性越大。类别对应的标准差计算结果越大,意向预制菜集合内预制菜的类别变化的波动性越大。同质化程度对应的标准差计算结果越大,意向预制菜集合内预制菜的同质化程度变化的波动性越大。The larger the calculated standard deviation corresponding to convenience, the greater the volatility of changes in convenience of pre-prepared dishes in the intended pre-prepared dish set. The larger the calculated standard deviation corresponding to category, the greater the volatility of changes in category of pre-prepared dishes in the intended pre-prepared dish set. The larger the calculated standard deviation corresponding to the degree of homogeneity, the greater the volatility of changes in the degree of homogeneity of pre-prepared dishes in the intended pre-prepared dish set.

S105:对每个关键特征赋予权重,对关键特征的标准差进行加权处理后求和,获得意向预制菜集合的意向综合变化指数,基于意向综合变化指数评估预制菜常购买用户的预制菜意向均一性:S105: Assign a weight to each key feature, perform weighted processing on the standard deviation of the key features and then sum them up to obtain the comprehensive change index of the intended pre-prepared dishes set, and evaluate the uniformity of the pre-prepared dishes intention of the users who frequently purchase pre-prepared dishes based on the comprehensive change index of the intention:

意向综合变化指数的计算公式为:;其中,为意向综合变化指数,为关键特征的数量,是关键特征的编号,是第个关键特征的权重,是第个关键特征对应的标准差计算结果。The calculation formula of the intention comprehensive change index is: ;in, is the comprehensive change index of intention, is the number of key features, is the key feature number, It is The weight of the key features, It is The standard deviation calculation results corresponding to the key features.

意向综合变化指数越大,预制菜常购买用户的预制菜意向均一性越小;意向综合变化指数越小,预制菜常购买用户的预制菜意向均一性越大,均一性越大意味着用户的购买行为趋向一致,偏好较为集中。The larger the comprehensive change index of intention, the smaller the uniformity of pre-prepared meal intention among users who frequently purchase pre-prepared meals; the smaller the comprehensive change index of intention, the greater the uniformity of pre-prepared meal intention among users who frequently purchase pre-prepared meals. The greater the uniformity, the more consistent the users' purchasing behavior tends to be and their preferences are more concentrated.

通过系统地分析预制菜常购买用户的购买和浏览行为,建立意向预制菜集合,并通过计算意向综合变化指数来评估预制菜的意向均一性,该方案显著提升了电商平台的市场响应能力和客户服务质量。意向综合变化指数使平台能够识别和预测用户需求的动态变化,从而调整推荐算法和营销策略,更精确地满足用户需求。这不仅增强了用户满意度和忠诚度,而且通过优化产品供应链和库存管理,降低了运营成本,提高了运营效率。By systematically analyzing the purchase and browsing behavior of users who frequently purchase pre-prepared meals, establishing a set of intended pre-prepared meals, and evaluating the uniformity of intended pre-prepared meals by calculating the intended comprehensive change index, this solution significantly improves the market responsiveness and customer service quality of the e-commerce platform. The intended comprehensive change index enables the platform to identify and predict the dynamic changes in user needs, thereby adjusting the recommendation algorithm and marketing strategy to meet user needs more accurately. This not only enhances user satisfaction and loyalty, but also reduces operating costs and improves operational efficiency by optimizing product supply chain and inventory management.

对预制菜常购买用户搜索结果的再更新情况进行分析,评估预制菜常购买用户的预制菜意向发散程度,具体为:The update of search results of users who frequently purchase pre-prepared meals is analyzed to evaluate the divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals. Specifically:

将预制菜常购买用户开始搜索关于预制菜至退出电商平台的过程标记为搜索任务,搜索任务是指预制菜常购买用户在电商平台主动搜索关于预制菜的过程。The process from when users who frequently purchase pre-prepared meals start searching for pre-prepared meals to when they exit the e-commerce platform is marked as a search task. The search task refers to the process in which users who frequently purchase pre-prepared meals actively search for pre-prepared meals on the e-commerce platform.

建立搜索任务集合,搜索任务集合包括近期预制菜常购买用户的多个搜索任务。A search task set is established, which includes multiple search tasks of users who frequently purchase pre-prepared meals recently.

判断搜索任务中是否存在再搜索情况,将搜索任务集合内存在再搜索情况的搜索任务标记为发散搜索任务。It is determined whether there is a re-search situation in the search task, and the search task with the re-search situation in the search task set is marked as a divergent search task.

其中,再搜索情况指预制菜常购买用户在一次搜索尝试后未找到满意的结果,因此进行了额外的搜索尝试。Among them, the re-search situation refers to the situation where users who frequently purchase pre-prepared meals did not find satisfactory results after one search attempt, so they made additional search attempts.

将搜索任务集合内发散搜索任务的数量与搜索任务集合内搜索任务的总数量的比值标记为发散搜索比。The ratio of the number of divergent search tasks in the search task set to the total number of search tasks in the search task set is marked as the divergent search ratio.

记录发散搜索任务中预制菜常购买用户进行搜索的总次数,包括初始搜索和所有的再搜索。Record the total number of searches performed by users who frequently purchase pre-prepared meals in the divergent search task, including the initial search and all re-searches.

对于发散搜索任务中每次搜索,包括初始搜索和所有的再搜索,记录预制菜常购买用户在搜索结果页浏览时间。For each search in the divergent search task, including the initial search and all re-searches, the browsing time of users who frequently purchase pre-prepared meals on the search results page is recorded.

计算再搜索浏览时间比值,其表达式为:;其中,为再搜索浏览时间比值,其表示第次再搜索的搜索结果页浏览时间与初始搜索的搜索结果页浏览时间的比值;表示第次再搜索的搜索结果页浏览时间;表示初始搜索的搜索结果页浏览时间。Calculate the ratio of search and browse time, the expression is: ;in, is the ratio of the browsing time of the search, which indicates the The ratio of the search result page view time of the second search to the search result page view time of the initial search; Indicates The search results page browsing time for each search; Represents the search results page view time for the initial search.

如果再搜索浏览时间比值较高,表明预制菜常购买用户在后续搜索中找到了更多的相关内容,或者需要更多时间来评估搜索结果,说明预制菜常购买用户的搜索意向具有较高的不确定性和发散性。If the re-search browsing time ratio is high, it means that users who frequently purchase pre-prepared meals have found more relevant content in subsequent searches, or need more time to evaluate search results, indicating that the search intentions of users who frequently purchase pre-prepared meals have high uncertainty and divergence.

为了反映每次再搜索的重要性或影响力,可以对进行加权,权重可以基于各种因素,如搜索序号或预制菜常购买用户的行为强度。To reflect the importance or influence of each re-search, Weighting can be based on various factors, such as search sequence number or the intensity of behavior of users who frequently purchase pre-made meals.

例如,权重可以随增大而减小,在这种情况下,认为预制菜常购买用户的初次搜索和随后的几次再搜索更重要,因为这些通常是预制菜常购买用户尝试找到满足其需求的内容的阶段。随着再搜索次数的增加,每次再搜索的新增信息可能递减,因此初次搜索后不久的再搜索可能更能反映预制菜常购买用户对推荐系统初步响应的不满,因此赋予更高的权重;比如,如果预制菜常购买用户在短时间内进行多次搜索,可能表示预制菜常购买用户在努力寻找更相关的内容,而这些搜索对于理解预制菜常购买用户的真实需求可能特别关键。For example, the weights can vary Increases and decreases. In this case, the initial search and subsequent re-searches of users who frequently purchase pre-prepared meals are considered more important, because these are usually the stages in which users who frequently purchase pre-prepared meals try to find content that meets their needs. As the number of re-searches increases, the new information in each re-search may decrease, so re-searches shortly after the initial search may better reflect the dissatisfaction of users who frequently purchase pre-prepared meals with the initial response of the recommendation system, and are therefore given a higher weight; for example, if users who frequently purchase pre-prepared meals conduct multiple searches in a short period of time, it may mean that users who frequently purchase pre-prepared meals are trying to find more relevant content, and these searches may be particularly critical to understanding the real needs of users who frequently purchase pre-prepared meals.

通过对发散搜索任务中的再搜索浏览时间比值分别赋予权重后进行求和,计算得到每个发散搜索任务的搜索意向发散值,其表达式为:By assigning weights to the re-search browsing time ratios in the divergent search tasks and summing them up, the search intention divergence value of each divergent search task is calculated, and its expression is: ;

其中,为搜索意向发散值,是根据再搜索的顺序或其他因素确定的权重。in, is the search intent divergence value, The weight is determined based on the order of re-search or other factors.

搜索意向发散值越大,可能表明预制菜常购买用户在多次搜索中持续发现新的、相关的信息,或者需要更多的时间和努力来满足其需求,这表明预制菜常购买用户的搜索意向具有较强的发散性,也可能从侧面反映预制菜常购买用户对当前搜索不满意,表明电商平台的推荐不够准确。The larger the search intention divergence value, the more likely it is that users who frequently purchase pre-prepared meals continue to discover new and relevant information in multiple searches, or that they need more time and effort to meet their needs. This suggests that the search intention of users who frequently purchase pre-prepared meals has a strong divergence. It may also indirectly reflect that users who frequently purchase pre-prepared meals are dissatisfied with their current searches, indicating that the e-commerce platform's recommendations are not accurate enough.

对搜索任务集合内所有发散搜索任务的搜索意向发散值进行求和,得到集合搜索意向发散值。The search intention divergence values of all divergent search tasks in the search task set are summed to obtain the set search intention divergence value.

将发散搜索比与集合搜索意向发散值进行无量纲化处理,将无量纲化处理后的发散搜索比与集合搜索意向发散值进行加权求和,计算得到搜索意向发散程度指数,其表达式为:The divergent search ratio and the set search intention divergence value are dimensionless, and the divergent search ratio after dimensionless processing and the set search intention divergence value are weighted summed to calculate the search intention divergence index, which is expressed as follows: ;

其中,为搜索意向发散程度指数,分别为无量纲化处理后的发散搜索比与集合搜索意向发散值,分别为无量纲化处理后的发散搜索比与集合搜索意向发散值的权重,且均大于0。in, is the search intention divergence index, are the divergent search ratio and the set search intention divergence value after dimensionless processing, are the weights of the divergent search ratio and the divergent value of the set search intention after dimensionless processing, and Both are greater than 0.

搜索意向发散程度指数用于评估预制菜常购买用户的预制菜意向发散程度,搜索意向发散程度指数越大,预制菜常购买用户的预制菜意向发散程度越大。The search intention divergence index is used to evaluate the degree of divergence in pre-prepared meal intention among users who frequently purchase pre-prepared meals. The larger the search intention divergence index, the greater the degree of divergence in pre-prepared meal intention among users who frequently purchase pre-prepared meals.

其中,预制菜常购买用户的预制菜意向发散程度指的是预制菜常购买用户在搜索预制菜时表现出的需求多样性和搜索行为的变化性。Among them, the degree of divergence in pre-prepared meal intention among users who frequently purchase pre-prepared meals refers to the diversity of demands and variability in search behavior shown by users who frequently purchase pre-prepared meals when searching for pre-prepared meals.

通过深入分析发散搜索任务和计算搜索意向发散程度指数,电商平台能够更准确地捕捉和理解用户的需求变化和满意程度。这不仅帮助平台优化搜索算法和推荐策略,减少用户的再搜索次数,也提升用户体验,增加用户在平台上的停留时间和购买转化率。By deeply analyzing divergent search tasks and calculating the search intention divergence index, e-commerce platforms can more accurately capture and understand user demand changes and satisfaction. This not only helps the platform optimize search algorithms and recommendation strategies, reducing the number of users' re-searches, but also improves user experience, increases user stay time on the platform and purchase conversion rate.

基于预制菜常购买用户的预制菜意向均一性和预制菜常购买用户的预制菜意向发散程度,评估预制菜常购买用户的用户画像需要被更新的紧迫性程度,并判断是否立即更新用户画像,具体为:Based on the uniformity of the pre-prepared meal intention of the users who frequently purchase pre-prepared meals and the divergence of their pre-prepared meal intention, the urgency of updating the user profile of the users who frequently purchase pre-prepared meals is evaluated, and it is determined whether to update the user profile immediately. Specifically:

意向综合变化指数越大,预制菜常购买用户的用户画像需要被更新的紧迫性程度越大。The greater the comprehensive change index of intention, the more urgent it is to update the user profile of users who frequently purchase pre-prepared meals.

搜索意向发散程度指数越大,预制菜常购买用户的用户画像需要被更新的紧迫性程度越大。The greater the search intention divergence index, the more urgent it is to update the user profile of users who frequently purchase pre-prepared meals.

当意向综合变化指数小于等于意向综合变化阈值,且搜索意向发散程度指数小于等于搜索意向发散程度阈值时,则判定不立即更新用户画像;否则,则判定立即更新用户画像。When the comprehensive change index of intention is less than or equal to the comprehensive change threshold of intention, and the search intention divergence index is less than or equal to the search intention divergence threshold, it is determined not to update the user portrait immediately; otherwise, it is determined to update the user portrait immediately.

判定不立即更新用户画像时,则是基于预设的更新频率进行用户画像的更新。When it is determined not to update the user portrait immediately, the user portrait is updated based on a preset update frequency.

使用意向综合变化指数和搜索意向发散程度指数作为判断用户画像更新紧迫性的依据,基于用户行为的动态变化对画像的即时性要求。这两个指数反映了用户需求和偏好的变化情况:意向综合变化指数高表示用户的偏好和需求在考虑的特征维度上有显著的变化。这可能是由于市场环境变化、新产品推出或用户个人情况的变动引起的。表明用户的当前画像已不足以准确反映其最新的消费倾向,因此需要立即更新,以保持服务和推荐的相关性和有效性。搜索意向发散程度指数高表明用户在搜索过程中表现出较大的探索性,可能正在寻找新的或不同的产品,这通常意味着用户的需求正在发展或变化。这种发散性的增加同样指示了用户画像需要更新以反映这种变化。The intention comprehensive change index and search intention divergence index are used as the basis for judging the urgency of updating the user portrait, based on the immediacy requirements of the portrait due to the dynamic changes in user behavior. These two indexes reflect the changes in user needs and preferences: a high intention comprehensive change index indicates that the user's preferences and needs have changed significantly in the considered feature dimensions. This may be caused by changes in the market environment, the launch of new products, or changes in the user's personal situation. It indicates that the user's current portrait is no longer sufficient to accurately reflect their latest consumption tendencies, so it needs to be updated immediately to maintain the relevance and effectiveness of services and recommendations. A high search intention divergence index indicates that the user is more exploratory in the search process and may be looking for new or different products, which usually means that the user's needs are developing or changing. This increase in divergence also indicates that the user portrait needs to be updated to reflect this change.

当意向综合变化指数和搜索意向发散程度指数均低于各自的阈值时,意味着用户的行为相对稳定,变化不大,此时按照预设的更新频率进行画像更新即可,无需立即进行,这有助于优化资源使用,避免过度频繁的数据处理和分析。When the comprehensive change index of intention and the search intention divergence index are both lower than their respective thresholds, it means that the user's behavior is relatively stable and does not change much. At this time, the portrait can be updated according to the preset update frequency without immediate update. This helps optimize resource utilization and avoid overly frequent data processing and analysis.

意向综合变化阈值的设定主要基于对历史数据的统计分析,旨在捕捉用户行为中的重大变化,从而触发用户画像的更新。首先,通过收集一段时间内所有用户的意向综合变化指数数据,计算其平均值和标准差。阈值通常设定为平均值加上一定倍数的标准差(如两倍标准差),这种方法确保了只有当用户的行为变化显著偏离常态时,才触发更新,从而平衡了反应灵敏度和操作频率。此外,阈值的设定还需考虑业务周期和市场动态,例如在新产品发布或重大营销活动期间,可能需要暂时调整阈值,以更灵活地适应市场变化。这种动态调整策略帮助平台保持对用户行为变化的敏感度,同时避免过度频繁的用户画像更新,确保了资源的有效利用。The setting of the comprehensive change threshold of intention is mainly based on the statistical analysis of historical data, aiming to capture major changes in user behavior, thereby triggering the update of the user portrait. First, by collecting the comprehensive change index data of intention of all users over a period of time, its mean and standard deviation are calculated. The threshold is usually set to the mean plus a certain multiple of the standard deviation (such as twice the standard deviation). This method ensures that the update is triggered only when the user's behavior changes significantly deviate from the norm, thereby balancing the reaction sensitivity and operation frequency. In addition, the setting of the threshold also needs to take into account the business cycle and market dynamics. For example, during the launch of a new product or a major marketing campaign, the threshold may need to be temporarily adjusted to adapt to market changes more flexibly. This dynamic adjustment strategy helps the platform maintain sensitivity to changes in user behavior while avoiding overly frequent updates of user portraits, ensuring the effective use of resources.

搜索意向发散程度阈值的设定则侧重于评估用户在搜索行为中的探索广度和深度。类似地,通过分析历史数据中的搜索意向发散程度指数,计算其平均值及标准差,通常将阈值设为平均值加上两到三倍的标准差,以识别那些搜索行为显著不同于常规模式的用户。设置如此阈值有助于区分日常的轻微波动与真正需要关注的行为趋势变化,这对于及时调整推荐系统和内容展示至关重要。此外,阈值设定还需动态考虑用户反馈和满意度调查结果,确保阈值的实际应用与用户满意度和业务目标紧密相关。这样的设定方法使得电商平台能够在保持用户体验质量的同时,有效应对用户需求和市场变化的挑战。The setting of the search intention divergence threshold focuses on evaluating the breadth and depth of users' exploration in their search behavior. Similarly, by analyzing the search intention divergence index in historical data, calculating its mean and standard deviation, the threshold is usually set to the mean plus two to three times the standard deviation to identify users whose search behavior is significantly different from the normal pattern. Setting such a threshold helps to distinguish between daily minor fluctuations and changes in behavioral trends that really need attention, which is crucial for timely adjustment of recommendation systems and content display. In addition, threshold setting also needs to dynamically consider user feedback and satisfaction survey results to ensure that the actual application of the threshold is closely related to user satisfaction and business goals. This setting method enables e-commerce platforms to effectively respond to the challenges of user needs and market changes while maintaining the quality of user experience.

此外,电商平台监控用户画像的更新紧迫性可以基于意向综合变化指数和搜索意向发散程度指数。当这些指数超过预定阈值时,表明用户的偏好可能正在经历显著变化,这是电商平台采取行动的信号。在这种情况下,平台可以与预制菜生产者合作,实施动态定价策略。例如,为那些其用户画像显示出显著变化的消费者提供特别优惠,旨在激励他们尝试新的或改良的预制菜产品。这种策略不仅可以增加新产品的试用率,还能通过特价促销活动吸引并保持消费者的兴趣。In addition, the e-commerce platform can monitor the urgency of updating the user profile based on the comprehensive change index of intention and the divergence index of search intention. When these indices exceed the predetermined threshold, it indicates that the user's preferences may be undergoing significant changes, which is a signal for the e-commerce platform to take action. In this case, the platform can work with the pre-prepared meal producers to implement a dynamic pricing strategy. For example, special offers can be provided to consumers whose user profiles show significant changes, aiming to motivate them to try new or improved pre-prepared meal products. This strategy can not only increase the trial rate of new products, but also attract and maintain consumer interest through special promotions.

结合用户画像需要被更新的紧迫性程度和用户的购买历史,评估用户的新品感兴趣程度,根据用户的新品感兴趣程度,电商平台可以发送信号给预制菜的生产者:如果系统检测到某用户的画像需要紧急更新(表明其偏好可能发生较大变化),系统可以提供特别优惠。By combining the urgency with which the user profile needs to be updated and the user's purchase history, the e-commerce platform can evaluate the user's interest in new products. Based on the user's interest in new products, the e-commerce platform can send a signal to the producer of pre-prepared meals: if the system detects that a user's profile needs to be updated urgently (indicating that their preferences may have changed significantly), the system can provide special discounts.

通过这种策略,电商平台能够精准识别并激励潜在对新品感兴趣的用户,促进新品的快速试用和接受。这不仅帮助生产者快速收集市场反馈,优化产品设计,还能加速新产品的市场渗透过程,提高用户满意度。同时,这种策略还能增强用户的购买体验,通过提供个性化的优惠,增强用户对平台的忠诚度和活跃度。Through this strategy, e-commerce platforms can accurately identify and motivate users who are potentially interested in new products, and promote the rapid trial and acceptance of new products. This not only helps producers quickly collect market feedback and optimize product design, but also accelerates the market penetration of new products and improves user satisfaction. At the same time, this strategy can also enhance the user's purchasing experience and increase user loyalty and activity on the platform by providing personalized offers.

通过分析预制菜常购买用户搜索关键词的熵,评估电商平台预制菜推荐的多样性需求强度,具体为:By analyzing the entropy of keywords searched by users who frequently purchase pre-prepared meals, the intensity of demand for diversity in the pre-prepared meal recommendations on e-commerce platforms is evaluated. Specifically:

S201:收集预设区间内预制菜常购买用户在电商平台上针对预制菜进行的所有搜索查询。搜索查询包括预制菜常购买用户输入的关键词、搜索频次以及搜索日期:S201: Collect all search queries for pre-prepared dishes conducted by users who frequently purchase pre-prepared dishes on the e-commerce platform within a preset period. The search queries include keywords entered by users who frequently purchase pre-prepared dishes, search frequency, and search date:

收集预制菜常购买用户在预设区间内关于预制菜的所有搜索查询,以便分析其搜索行为的多样性。Collect all search queries about pre-prepared meals by users who frequently purchase pre-prepared meals within a preset period in order to analyze the diversity of their search behaviors.

预制菜常购买用户ID:标识每一个独特的预制菜常购买用户。Pre-prepared meal frequent purchaser user ID: identifies each unique pre-prepared meal frequent purchaser user.

关键词:预制菜常购买用户在搜索预制菜时输入的词汇。Keywords: Words frequently purchased by users of pre-prepared meals enter when searching for pre-prepared meals.

搜索频次:关键词在特定时间内被搜索的次数。Search frequency: The number of times a keyword is searched within a specific period of time.

搜索日期:进行搜索的具体日期。Search Date: The specific date the search was conducted.

S202:提取所有独立的关键词。整理并清洗关键词,去除无意义的填充词:S202: Extract all independent keywords. Sort and clean the keywords and remove meaningless filler words:

从搜索数据中提取所有预制菜常购买用户输入的关键词。使用文本处理技术去除无意义的填充词(如“的”、“和”等),并剔除噪音数据(如错别字或非相关词汇)。Extract all keywords frequently entered by users who purchase pre-prepared meals from the search data. Use text processing technology to remove meaningless filler words (such as "的", "和", etc.) and eliminate noise data (such as typos or irrelevant words).

填充词:在文本中不携带具体意义的词,对分析无实质性帮助。Filler words: words that carry no specific meaning in the text and do not contribute substantially to the analysis.

噪音数据:错误的输入或与预制菜不相关的关键词。Noisy data: incorrect input or keywords not related to pre-made dishes.

S203:统计每个关键词在所有搜索查询中出现的次数,进而计算每个关键词的出现频率:S203: Count the number of times each keyword appears in all search queries, and then calculate the frequency of occurrence of each keyword:

对每一个关键词,统计在整个数据集中出现的总次数。For each keyword, count the total number of times it appears in the entire data set.

每个关键词的出现频率计算公式为:The frequency of occurrence of each keyword is calculated as follows:

;其中,为第个关键词的出现频率,为第个关键词的出现次数,是所有关键词的总出现次数。 ;in, For the The frequency of occurrence of keywords, For the The number of times a keyword appears, is the total number of occurrences of all keywords.

S204:应用信息熵公式计算得到搜索多样熵评估指数:S204: Apply the information entropy formula to calculate the search diversity entropy evaluation index:

使用信息熵公式计算搜索多样熵评估指数,以量化预制菜常购买用户搜索行为的多样性,其表达式为:是搜索多样熵评估指数,是不同关键词的总数。The information entropy formula is used to calculate the search diversity entropy evaluation index to quantify the diversity of search behaviors of users who frequently purchase pre-prepared meals. The expression is: ; is the search diversity entropy evaluation index, is the total number of different keywords.

搜索多样熵评估指数越大,电商平台预制菜推荐的多样性需求强度越高,表明预制菜常购买用户的搜索行为具有高度多样性,推荐系统应增加推荐列表中的预制菜多样性,展示更广泛的预制菜种类。搜索多样熵评估指数越小,说明预制菜常购买用户搜索较为集中,推荐系统则减少推荐的多样性,更多地推荐预制菜常购买用户可能感兴趣的特定种类的预制菜。The larger the search diversity entropy evaluation index, the higher the demand intensity of diversity in the pre-prepared food recommendations on the e-commerce platform, indicating that the search behavior of users who frequently purchase pre-prepared food is highly diverse. The recommendation system should increase the diversity of pre-prepared food in the recommendation list and display a wider range of pre-prepared food types. The smaller the search diversity entropy evaluation index, the more concentrated the search of users who frequently purchase pre-prepared food is. The recommendation system should reduce the diversity of recommendations and recommend more specific types of pre-prepared food that users who frequently purchase pre-prepared food may be interested in.

其中,是不同关键词的总数,即在数据集中独一无二的关键词种类的数量。它表示了在预制菜常购买用户搜索过程中出现的唯一关键词的种类总数。是所有关键词的总出现次数,也就是所有搜索中关键词出现的累积次数。不论关键词是否重复,每一次出现都计入关注的是关键词的多样性(有多少种不同的关键词被搜索过),而关注的是关键词的使用频率(所有关键词被搜索的总次数)。in, is the total number of different keywords, that is, the number of unique keyword types in the dataset. It represents the total number of unique keyword types that appear in the search process of users who often purchase pre-prepared meals. It is the total number of occurrences of all keywords, that is, the cumulative number of times a keyword appears in all searches. Regardless of whether the keyword is repeated or not, every occurrence is counted. . The focus is on keyword diversity (how many different keywords were searched), while What we focus on is the frequency of keyword usage (the total number of times all keywords are searched).

通过对预制菜常购买用户的预制菜意向均一性、预制菜常购买用户的预制菜意向发散程度以及电商平台预制菜推荐的多样性需求强度进行综合分析,调节电商平台推荐预制菜给预制菜常购买用户的类别广泛性,具体为:Through a comprehensive analysis of the homogeneity of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, the divergence of their pre-prepared meal intentions, and the intensity of the diversity demand for pre-prepared meal recommendations on e-commerce platforms, the breadth of categories of pre-prepared meals recommended by e-commerce platforms to users who frequently purchase pre-prepared meals is adjusted, specifically:

由于意向综合变化指数越大,预制菜常购买用户的预制菜意向均一性越小;搜索意向发散程度指数越大,预制菜常购买用户的预制菜意向发散程度越大;搜索多样熵评估指数越大,电商平台预制菜推荐的多样性需求强度越高。可知,意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数都是和电商平台推荐预制菜给预制菜常购买用户的类别广泛性成正比的,即意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数越大,电商平台推荐预制菜给预制菜常购买用户的类别广泛性应调节的越大。Since the larger the intention comprehensive change index is, the smaller the uniformity of the pre-prepared food intention of users who often purchase pre-prepared food is; the larger the search intention divergence index is, the greater the divergence of the pre-prepared food intention of users who often purchase pre-prepared food is; the larger the search diversity entropy evaluation index is, the higher the diversity demand intensity of the pre-prepared food recommendation of the e-commerce platform is. It can be seen that the intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index are all proportional to the category breadth of the pre-prepared food recommended by the e-commerce platform to users who often purchase pre-prepared food, that is, the larger the intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index are, the greater the category breadth of the pre-prepared food recommended by the e-commerce platform to users who often purchase pre-prepared food should be adjusted.

将意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数进行归一化处理,将归一化处理后的意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数分别赋予预设比例系数后,计算得到推荐广泛评估系数。The intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index are normalized, and after assigning preset proportional coefficients to the normalized intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index respectively, the recommended extensive evaluation coefficient is calculated.

上述计算推荐广泛评估系数的具体实现方式在此不做具体的限定,能实现将归一化处理后的意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数分别赋予预设比例系数后计算得到推荐广泛评估系数的均可,为了实现本发明的技术方案,本发明提供一种具体的推荐广泛评估系数的计算方式,其表达式为:The specific implementation method of calculating the recommended broad evaluation coefficient is not specifically limited here. Any method that can calculate the recommended broad evaluation coefficient by assigning the normalized intention comprehensive change index, search intention divergence index, and search diversity entropy evaluation index to preset proportional coefficients is acceptable. In order to implement the technical solution of the present invention, the present invention provides a specific method for calculating the recommended broad evaluation coefficient, and its expression is: ;

其中,为推荐广泛评估系数,为自然对数底数,分别为意向综合变化指数、搜索意向发散程度指数以及搜索多样熵评估指数的预设比例系数,且均大于0。in, To recommend a broad assessment coefficient, is the base of natural logarithm, are the preset proportional coefficients of the intention comprehensive change index, search intention divergence index and search diversity entropy evaluation index, respectively, and Both are greater than 0.

推荐广泛评估系数与电商平台推荐预制菜给预制菜常购买用户的类别广泛性的关系为:推荐广泛评估系数越大,电商平台推荐预制菜给预制菜常购买用户的类别广泛性应调节的越大;即推荐广泛评估系数越大,表明应增加推荐的类别广泛性,向用户展示更多样化的预制菜选项。The relationship between the recommendation breadth evaluation coefficient and the breadth of the categories of pre-prepared meals recommended by the e-commerce platform to users who frequently purchase pre-prepared meals is: the larger the recommendation breadth evaluation coefficient, the greater the breadth of the categories of pre-prepared meals recommended by the e-commerce platform to users who frequently purchase pre-prepared meals should be adjusted; that is, the larger the recommendation breadth evaluation coefficient, the greater the breadth of the recommended categories should be increased to display more diverse pre-prepared meal options to users.

这种调节可以通过线性或非线性模型来实现,例如,可以设置阈值,当推荐广泛评估系数超过某个阈值时,大幅增加推荐多样性;This regulation can be achieved through linear or nonlinear models. For example, a threshold can be set. When the recommendation extensive evaluation coefficient exceeds a certain threshold, the recommendation diversity is greatly increased;

或者设定阈值确定推荐广泛评估系数的不同阈值,用以区分推荐广泛性的级别。例如,低、中、高三个级别,对应于推荐广泛评估系数的低、中、高值区间。Alternatively, thresholds may be set to determine different thresholds of the recommendation extensive evaluation coefficient to distinguish the levels of recommendation extensiveness, for example, low, medium, and high levels, corresponding to the low, medium, and high value intervals of the recommendation extensive evaluation coefficient.

假设希望推荐系统在推荐广泛评估系数较高时更加敏感地增加推荐多样性,而在推荐广泛评估系数较低时保持较稳定的推荐多样性。可以使用指数函数或对数函数来实现这种非线性关系。使用指数函数来调节推荐的类别广泛性:;其中,为调节后的推荐多样性级别;均为调节系数,用于控制函数的增长率和基线多样性级别。Suppose we want the recommendation system to be more sensitive to increase the diversity of recommendations when the recommendation broad evaluation coefficient is high, and to maintain a more stable diversity of recommendations when the recommendation broad evaluation coefficient is low. We can use an exponential function or a logarithmic function to implement this nonlinear relationship. Use an exponential function to adjust the breadth of recommended categories: ;in, is the adjusted recommended diversity level; Both are adjustment coefficients used to control the growth rate and baseline diversity level of the function.

是增长率控制参数,决定了推荐广泛评估系数增加时推荐多样性增加的速率。较大的值会使得多样性对推荐广泛评估系数的敏感度增加,即推荐广泛评估系数的小变动会导致大的推荐多样性变化。 is the growth rate control parameter that determines the rate at which the diversity of recommendations increases when the recommendation broad evaluation coefficient increases. The value will make the diversity more sensitive to the recommended broad evaluation coefficient, that is, small changes in the recommended broad evaluation coefficient will lead to large changes in the recommended diversity.

是基线多样性级别,即为推荐多样性级别的基准值。通过调整,可以设置不同的初始推荐多样性水平。 is the baseline diversity level, which is the benchmark value of the recommended diversity level. , different initial recommendation diversity levels can be set.

其中,推荐多样性级别是电商平台推荐预制菜给预制菜常购买用户的类别广泛性的数值化表达。Among them, the recommendation diversity level is a numerical expression of the breadth of categories of pre-prepared meals recommended by the e-commerce platform to users who frequently purchase pre-prepared meals.

通过引入推荐广泛评估系数,使预制菜推荐能够动态适应用户的多样性需求。这种方法不仅增强了推荐系统的灵活性,而且提高了其敏感性,使之能够在用户的偏好发生细微变化时即时响应。通过非线性调节,如指数函数,该系统能够在用户探索意愿增强时迅速扩大推荐范围,从而极大地提升用户的满意度和参与度。此外,此方案还有助于提高新产品的曝光率和试用率,最终驱动销售增长和用户忠诚度的提升。这种基于数据驱动的推荐广泛性调节策略为电商平台带来了创新的用户体验优化手段。By introducing a recommendation extensive evaluation coefficient, the pre-prepared meal recommendation can dynamically adapt to the diverse needs of users. This approach not only enhances the flexibility of the recommendation system, but also improves its sensitivity, enabling it to respond instantly to subtle changes in user preferences. Through nonlinear adjustments, such as exponential functions, the system can quickly expand the scope of recommendations when the user's willingness to explore increases, thereby greatly improving user satisfaction and engagement. In addition, this solution also helps to increase the exposure and trial rate of new products, ultimately driving sales growth and user loyalty. This data-driven recommendation extensiveness adjustment strategy brings innovative user experience optimization methods to e-commerce platforms.

实施例2Example 2

本发明实施例2与实施例1的区别在于,本实施例是对一种预制菜推荐系统进行介绍。The difference between Example 2 of the present invention and Example 1 is that this example introduces a pre-prepared meal recommendation system.

图2给出了本发明一种预制菜推荐系统的结构示意图,一种预制菜推荐系统,包括用户划分模块、意向均一评估模块、意向发散评估模块、画像更新判断模块、推荐多样评估模块以及推荐广泛调节模块。Figure 2 shows a structural schematic diagram of a pre-prepared meal recommendation system of the present invention, a pre-prepared meal recommendation system, including a user segmentation module, an intention uniformity evaluation module, an intention divergence evaluation module, a portrait update judgment module, a recommendation diversity evaluation module and a recommendation broad adjustment module.

用户划分模块:基于数据库获取预制菜的潜在推荐用户,将潜在推荐用户分为预制菜常购买用户和预制菜不常购买用户。User segmentation module: obtain potential recommended users of pre-prepared dishes based on the database, and divide the potential recommended users into users who frequently purchase pre-prepared dishes and users who do not frequently purchase pre-prepared dishes.

意向均一评估模块:对预制菜常购买用户的意向预制菜进行分析,筛选得到意向预制菜集合,对意向预制菜集合的特征变化程度进行分析,评估预制菜常购买用户的预制菜意向均一性。Intention uniformity evaluation module: Analyze the intended pre-prepared dishes of users who frequently purchase pre-prepared dishes, screen out the intended pre-prepared dish set, analyze the degree of change in the characteristics of the intended pre-prepared dish set, and evaluate the uniformity of pre-prepared dish intention of users who frequently purchase pre-prepared dishes.

意向发散评估模块:对预制菜常购买用户搜索结果的再更新情况进行分析,评估预制菜常购买用户的预制菜意向发散程度。Intention divergence evaluation module: Analyze the re-update of search results of users who frequently purchase pre-prepared meals, and evaluate the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals.

画像更新判断模块:基于预制菜常购买用户的预制菜意向均一性和预制菜常购买用户的预制菜意向发散程度,评估预制菜常购买用户的用户画像需要被更新的紧迫性程度,并判断是否立即更新用户画像。Portrait update judgment module: Based on the uniformity of pre-prepared meal intentions of users who frequently purchase pre-prepared meals and the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, the urgency of updating the user portraits of users who frequently purchase pre-prepared meals is evaluated, and a judgment is made as to whether the user portraits should be updated immediately.

推荐多样评估模块:通过分析预制菜常购买用户搜索关键词的熵,评估电商平台预制菜推荐的多样性需求强度。Recommendation diversity evaluation module: By analyzing the entropy of search keywords of users who frequently purchase pre-prepared meals, the diversity demand intensity of pre-prepared meal recommendations on e-commerce platforms is evaluated.

推荐广泛调节模块:通过对预制菜常购买用户的预制菜意向均一性、预制菜常购买用户的预制菜意向发散程度以及电商平台预制菜推荐的多样性需求强度进行综合分析,调节电商平台推荐预制菜给预制菜常购买用户的类别广泛性。Recommendation breadth adjustment module: Through a comprehensive analysis of the uniformity of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, the degree of divergence of pre-prepared meal intentions of users who frequently purchase pre-prepared meals, and the intensity of demand for diversity of pre-prepared meal recommendations on e-commerce platforms, the breadth of categories of pre-prepared meals recommended by e-commerce platforms is adjusted.

上述公式均是去量纲取其数值计算,公式是由采集大量数据进行软件模拟得到最近真实情况的一个公式,公式中的预设参数以及阈值选取由本领域的技术人员根据实际情况进行设置。The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.

上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令或计算机程序。在计算机上加载或执行所述计算机指令或计算机程序时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络,或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD),或者半导体介质。半导体介质可以是固态硬盘。The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or may be transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件,或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其他的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,既可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, and may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

最后:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. The recommendation method of the prepared dishes is characterized by comprising the following steps of:
Acquiring potential recommendation users of the prefabricated dishes based on the database, and dividing the potential recommendation users into frequent purchase users of the prefabricated dishes and unusual purchase users of the prefabricated dishes;
analyzing the intention prefabricated dishes of the user who purchases the prefabricated dishes frequently, screening to obtain an intention prefabricated dish set, analyzing the characteristic change degree of the intention prefabricated dish set, and evaluating the intention uniformity of the prefabricated dishes of the user who purchases the prefabricated dishes frequently;
analyzing the re-updating condition of the search result of the user who purchases the prefabricated dish frequently, and evaluating the divergence degree of the intention of the prefabricated dish of the user who purchases the prefabricated dish frequently;
Based on the uniformity of the intention of the prefabricated dishes of the frequent purchasing user and the divergence of the intention of the prefabricated dishes of the frequent purchasing user, evaluating the urgency degree of the user portrait of the frequent purchasing user of the prefabricated dishes to be updated, and judging whether to update the user portrait immediately;
Evaluating the diversity demand intensity of the e-commerce platform prefabricated dish recommendation by analyzing entropy of the user search keywords of the prefabricated dish purchase frequently;
The category universality of the prefabricated dish frequent purchasing user is regulated by comprehensively analyzing the prefabricated dish intention uniformity of the prefabricated dish frequent purchasing user, the prefabricated dish intention divergence degree of the prefabricated dish frequent purchasing user and the diversity demand intensity of the electronic commerce platform prefabricated dish recommendation.
2. The method for recommending prefabricated dishes according to claim 1, wherein the potential recommending users of the prefabricated dishes are obtained based on a database, and the potential recommending users are classified into the frequent purchasing users of the prefabricated dishes and the unusual purchasing users of the prefabricated dishes, specifically:
the data collection of the database comprises user basic information, transaction information, browsing history and product information;
constructing features for user classification based on the data collected by the database, the features for user classification including purchase frequency, purchase preference, consumption level, and liveness;
marking users according to the purchase frequency, dividing the data into a training set and a testing set, and training a model by using a random forest algorithm;
the trained models are used for classifying users, and potential recommendation users are classified into users who purchase the prepared dishes frequently and users who purchase the prepared dishes infrequently.
3. The method for recommending the prefabricated dishes according to claim 2, wherein the method for recommending the prefabricated dishes is characterized in that the prefabricated dishes of the intention of the user who purchases the prefabricated dishes frequently are analyzed, the intention prefabricated dish set is obtained through screening, the characteristic change degree of the intention prefabricated dish set is analyzed, and the intention uniformity of the prefabricated dishes of the user who purchases the prefabricated dishes frequently is evaluated, specifically:
S101: according to historical purchase data and browsing behaviors of a preset vegetable frequent purchasing user, establishing an intention preset vegetable set by identifying preset vegetable products which are frequently purchased and browsed;
S102: collecting transaction records, user evaluation, browsing data and other interactive data of the intent prefabricated dish set;
s103: extracting key features for each intention prefabricated dish in the intention prefabricated dish set, wherein the key features comprise convenience, category and degree of homogeneity;
s104: carrying out standard deviation calculation on each key feature, and quantifying fluctuation of key feature change according to a standard deviation calculation result of the key feature;
S105: giving weight to each key feature, carrying out weighting treatment on standard deviation of the key features, and summing to obtain an intent comprehensive change index of an intent prefabricated dish set, and evaluating the intent uniformity of prefabricated dishes of a frequent purchasing user based on the intent comprehensive change index;
The calculation formula of the meaning comprehensive change index is as follows:
wherein, In order to synthesize the index of change in intent,As a number of key features,Is the number of the key feature(s),Is the firstThe weight of the individual key features is determined,Is the firstAnd calculating the standard deviation corresponding to each key feature.
4. A method for recommending a prefabricated dish according to claim 3, wherein the method for evaluating the divergence of the intention of the user for purchasing the prefabricated dish comprises the steps of:
Marking the process from the start of searching the prefabricated dishes to the exit of the electronic commerce platform by the prefabricated dish frequent purchasing user as a searching task;
Establishing a search task set, wherein the search task set comprises a plurality of search tasks of a user who recently performs frequent purchase of dishes;
Judging whether a re-search condition exists in the search tasks, and marking the search tasks with the re-search condition in the search task set as divergent search tasks;
Marking the ratio of the number of divergent search tasks in the search task set to the total number of search tasks in the search task set as divergent search ratio;
Recording the total times of searching by a preset vegetable frequent purchasing user in a divergent searching task;
For each search in the divergent search task, recording the browsing time of a user who frequently purchases the prefabricated dishes in a search result page;
calculating a re-search browsing time ratio;
The searching intention divergent value of each divergent searching task is obtained by adding weights to the re-searching browsing time ratio in the divergent searching task and then summing the weights;
Summing the search intention divergence values of all divergent search tasks in the search task set to obtain a set search intention divergence value;
Carrying out dimensionless treatment on the divergent search ratio and the set search intention divergent value, carrying out weighted summation on the divergent search ratio subjected to the dimensionless treatment and the set search intention divergent value, and calculating to obtain a search intention divergent degree index, wherein the expression is as follows:
wherein, In order to search for the intent divergence level index,The divergent search ratio and the convergent search intention divergent value after dimensionless treatment are respectively,The divergent search ratio after dimensionless treatment and the weight of the convergent search intention divergent value are respectively thatAre all greater than 0.
5. The method for recommending a pre-made dish according to claim 4, wherein based on the uniformity of the intention of the pre-made dish frequent purchasing user and the divergence of the intention of the pre-made dish frequent purchasing user, the urgency of the user portrayal of the pre-made dish frequent purchasing user to be updated is evaluated, and whether to update the user portrayal immediately is judged, specifically:
When the intent comprehensive change index is smaller than or equal to the intent comprehensive change threshold and the search intent divergence degree index is smaller than or equal to the search intent divergence degree threshold, judging that the user portrait is not updated immediately; otherwise, judging to update the user portrait immediately;
When it is determined that the user portrait is not to be updated immediately, the user portrait is updated based on a preset update frequency.
6. The method for recommending prefabricated dishes according to claim 5, wherein the evaluating the diversity demand strength of the e-commerce platform prefabricated dish recommendation by analyzing entropy of the search keywords of the user for the prefabricated dish is specifically as follows:
S201: collecting all search queries which are performed by a preset interval preset vegetable frequent purchasing user on an electronic commerce platform aiming at the preset vegetable; the search query comprises keywords input by a user for purchasing the prefabricated dishes frequently, search frequency and search date;
S202: extracting all independent keywords; sorting and cleaning keywords, and removing meaningless filling words;
S203: counting the occurrence times of each keyword in all search queries, and further calculating the occurrence frequency of each keyword; the frequency of occurrence calculation formula for each keyword is: ; wherein, Is the firstThe frequency of occurrence of the individual keywords is,Is the firstThe number of occurrences of the individual keywords is,Is the total number of occurrences of all keywords;
S204: and calculating by using an information entropy formula to obtain a search diversity entropy evaluation index, wherein the expression is as follows: Is a search for a diverse entropy evaluation index, Total number of different keywords.
7. The method for recommending prefabricated dishes according to claim 6, wherein the category universality of the prefabricated dishes recommended to the prefabricated dish frequent purchasing user by the e-commerce platform is adjusted by comprehensively analyzing the uniformity of the intention of the prefabricated dishes of the prefabricated dish frequent purchasing user, the divergence of the intention of the prefabricated dishes of the prefabricated dish frequent purchasing user and the diversity demand strength of the prefabricated dishes recommended by the e-commerce platform, specifically:
Normalizing the intent comprehensive change index, the search intent divergence degree index and the search diversity entropy evaluation index, respectively endowing the normalized intent comprehensive change index, the search intent divergence degree index and the search diversity entropy evaluation index with preset proportionality coefficients, and calculating to obtain recommended extensive evaluation coefficients, wherein the expression is as follows:
; wherein, In order to recommend a broad range of evaluation coefficients,Is a natural logarithmic base number, the base number is,Preset proportionality coefficients of intent comprehensive change index, search intent divergence degree index and search diversity entropy evaluation index respectively, andAre all greater than 0;
The relationship between the recommended extensive assessment coefficient and the category universality of recommending the prefabricated dishes to the frequent purchasing users of the prefabricated dishes by the electronic commerce platform is as follows: the larger the recommended extensive assessment coefficient, the larger the e-commerce platform should be to recommend the pre-made dish to the category of the frequent purchasing user of the pre-made dish.
8. A pre-dish recommending system for realizing the pre-dish recommending method according to any one of claims 1 to 7, which is characterized by comprising a user dividing module, an intention uniformity evaluating module, an intention divergence evaluating module, an image updating judging module, a recommending diversity evaluating module and a recommending wide adjusting module;
And a user dividing module: acquiring potential recommendation users of the prefabricated dishes based on the database, and dividing the potential recommendation users into frequent purchase users of the prefabricated dishes and unusual purchase users of the prefabricated dishes;
Intent uniformity evaluation module: analyzing the intention prefabricated dishes of the user who purchases the prefabricated dishes frequently, screening to obtain an intention prefabricated dish set, analyzing the characteristic change degree of the intention prefabricated dish set, and evaluating the intention uniformity of the prefabricated dishes of the user who purchases the prefabricated dishes frequently;
Intent divergence assessment module: analyzing the re-updating condition of the search result of the user who purchases the prefabricated dish frequently, and evaluating the divergence degree of the intention of the prefabricated dish of the user who purchases the prefabricated dish frequently;
And a portrait update judging module: based on the uniformity of the intention of the prefabricated dishes of the frequent purchasing user and the divergence of the intention of the prefabricated dishes of the frequent purchasing user, evaluating the urgency degree of the user portrait of the frequent purchasing user of the prefabricated dishes to be updated, and judging whether to update the user portrait immediately;
recommendation diversity assessment module: evaluating the diversity demand intensity of the e-commerce platform prefabricated dish recommendation by analyzing entropy of the user search keywords of the prefabricated dish purchase frequently;
A broad adjustment module is recommended: the category universality of the prefabricated dish frequent purchasing user is regulated by comprehensively analyzing the prefabricated dish intention uniformity of the prefabricated dish frequent purchasing user, the prefabricated dish intention divergence degree of the prefabricated dish frequent purchasing user and the diversity demand intensity of the electronic commerce platform prefabricated dish recommendation.
CN202411195550.3A 2024-08-29 2024-08-29 Prefabricated dish recommending method and system Active CN118710375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411195550.3A CN118710375B (en) 2024-08-29 2024-08-29 Prefabricated dish recommending method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411195550.3A CN118710375B (en) 2024-08-29 2024-08-29 Prefabricated dish recommending method and system

Publications (2)

Publication Number Publication Date
CN118710375A true CN118710375A (en) 2024-09-27
CN118710375B CN118710375B (en) 2024-11-05

Family

ID=92807579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411195550.3A Active CN118710375B (en) 2024-08-29 2024-08-29 Prefabricated dish recommending method and system

Country Status (1)

Country Link
CN (1) CN118710375B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119323457A (en) * 2024-12-17 2025-01-17 山东管理学院 Commodity search optimization method and system based on historical behavior data
CN119887266A (en) * 2025-03-27 2025-04-25 山东政信大数据科技有限责任公司 Data value analysis method and system based on machine learning

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130092310A (en) * 2012-02-10 2013-08-20 (주)워터빈 Recommendation system for goods
US20230169118A1 (en) * 2021-02-25 2023-06-01 Panasonic Intellectual Property Management Co., Ltd. Information presenting method, recording medium, information presenting system, and terminal device
CN116860820A (en) * 2023-07-26 2023-10-10 盐城师范学院 User product preference analysis method and system based on data security
CN116894692A (en) * 2023-09-11 2023-10-17 北京亿家老小科技有限公司 Method and system for analyzing and monitoring potential demands of online network sales users
CN118333727A (en) * 2024-05-31 2024-07-12 天津辉同科技有限公司 Prefabricated dish recommending method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130092310A (en) * 2012-02-10 2013-08-20 (주)워터빈 Recommendation system for goods
US20230169118A1 (en) * 2021-02-25 2023-06-01 Panasonic Intellectual Property Management Co., Ltd. Information presenting method, recording medium, information presenting system, and terminal device
CN116860820A (en) * 2023-07-26 2023-10-10 盐城师范学院 User product preference analysis method and system based on data security
CN116894692A (en) * 2023-09-11 2023-10-17 北京亿家老小科技有限公司 Method and system for analyzing and monitoring potential demands of online network sales users
CN118333727A (en) * 2024-05-31 2024-07-12 天津辉同科技有限公司 Prefabricated dish recommending method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119323457A (en) * 2024-12-17 2025-01-17 山东管理学院 Commodity search optimization method and system based on historical behavior data
CN119887266A (en) * 2025-03-27 2025-04-25 山东政信大数据科技有限责任公司 Data value analysis method and system based on machine learning

Also Published As

Publication number Publication date
CN118710375B (en) 2024-11-05

Similar Documents

Publication Publication Date Title
CN113077317B (en) Item recommendation method, device, equipment and storage medium based on user data
US20180047071A1 (en) System and methods for aggregating past and predicting future product ratings
KR102227552B1 (en) System for providing context awareness algorithm based restaurant sorting personalized service using review category
CN118710375B (en) Prefabricated dish recommending method and system
KR100961783B1 (en) Apparatus and method for presenting personalized goods and vendors based on artificial intelligence, and recording medium thereof
CN118313906B (en) Personalized product recommendation method
US8943012B2 (en) Information processing device, information processing method, and program
CN116431931B (en) Real-time incremental data statistical analysis method
KR20120076477A (en) Method and systmem for store recommendation
CN117196787B (en) Intelligent decision optimization method and system based on artificial intelligence
CN118822700B (en) A commodity search method based on big data and electronic shopping mall
CN111861679A (en) Commodity recommendation method based on artificial intelligence
CN119398866A (en) Design of a recommendation algorithm based on big data in an e-commerce platform
US20230368226A1 (en) Systems and methods for improved user experience participant selection
CN119693063A (en) Advertisement optimization delivery system and delivery method
CN119311958A (en) User analysis method, device, equipment and medium based on big model
KR101026544B1 (en) Ranking analysis method based on artificial intelligence, recording medium recording the same, apparatus
CN118535483B (en) Big data-based application system evaluation method and system
CN118569936B (en) Advertisement user analysis method and system
CN118799040A (en) Automatic recommendation marketing method and system for online figures
CN117271905B (en) Crowd image-based lateral demand analysis method and system
CN118134598A (en) Personalized marketing method based on intelligent retail cabinets
CN118247015A (en) Real estate recommendation method, system, storage medium and electronic equipment
Fernandes et al. Consumer Behavioral Segmentation Analysis
CN118505315B (en) Advertisement analysis method and system based on big data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant