Large model-based retail industry commodity recommendation method, apparatus and device, and medium

By training Transformer-based recommendation models in the retail industry, we learn the complex relationship between products and user behavior, solve the problem of limited effectiveness of traditional recommendation systems, achieve personalized product recommendations, and improve sales performance and user satisfaction.

CN118657589APending Publication Date: 2024-09-17SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202411004015.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Traditional product recommendation systems are mainly based on users' historical behavioral data and simple machine learning algorithms. The recommendation effect is limited and it is difficult to achieve personalized and accurate product recommendations.

Method used

By collecting relevant data from the retail industry, we train a Transformer-based recommendation model, learn the complex relationship between products and user behavior, and generate a personalized product recommendation list.

Benefits of technology

It achieves accurate prediction of user needs and personalized recommendations of products, improves sales performance and user satisfaction in the retail industry, and enhances the competitiveness of enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657589A
    Figure CN118657589A
Patent Text Reader

Abstract

The invention discloses a retail industry commodity recommendation method and device based on a large model, equipment and a medium, is applied to a commodity retail platform, and relates to the technical field of artificial intelligence, and the method comprises the steps: obtaining initial data of the commodity retail platform, carrying out the data cleaning, carrying out the feature extraction of the cleaned data, and obtaining a data feature; integrating the cleaned data to obtain a training data set; performing fine tuning on a preset commodity recommendation model based on the data features and the training data set to obtain a target recommendation model; and obtaining commodity attribute data and user use data of the commodity retail platform, and generating a commodity recommendation list by using the target recommendation model according to the commodity attribute data and the user use data. By collecting related data of the retail industry, the recommendation model applied to commodity recommendation of the retail industry is trained, so that the recommendation model is utilized to learn a complex relationship between commodities and user behaviors, and accurate prediction of user demands and personalized recommendation of the commodities can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a large model-based retail industry commodity recommendation method, device, equipment and medium. Background Art

[0002] With the rapid development of the Internet and e-commerce, competition in the retail industry is becoming increasingly fierce. In order to improve the user shopping experience and meet the personalized needs of users, intelligent product recommendation systems are of great significance in the retail industry. However, traditional product recommendation systems are mainly based on users' historical behavior data and simple machine learning algorithms, and the recommendation effect is limited. Therefore, how to better provide users with personalized and accurate product recommendations is a problem to be solved in this field. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for recommending goods in the retail industry based on a large model, by collecting relevant data of the retail industry, training a recommendation model for recommending goods in the retail industry, and using the recommendation model to learn the complex relationship between goods and user behaviors, so as to achieve accurate prediction of user needs and personalized recommendation of goods. The specific scheme is as follows:

[0004] In a first aspect, the present application provides a retail industry commodity recommendation method based on a large model, which is applied to a commodity retail platform, including:

[0005] Acquire initial data of the commodity retail platform through a preset data collection interface; the initial data includes commodity recommendation data of the retail industry acquired through an external data source and user usage data and commodity attribute data acquired through the commodity retail platform;

[0006] The initial data is cleaned according to a preset data preprocessing process, and features are extracted from the cleaned initial data to obtain corresponding data features, and the cleaned initial data is integrated to obtain a corresponding training data set;

[0007] Fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer;

[0008] The commodity attribute data of the commodity retail platform and the user usage data of the current user are obtained, and a corresponding commodity recommendation list is generated using the target recommendation model according to the commodity attribute data and the user usage data of the current user.

[0009] Optionally, the obtaining the initial data of the commodity retail platform through a preset data collection interface includes:

[0010] Obtaining the user's operating behavior on the commodity retail platform through the log file of the commodity retail platform to obtain the user's consumption data;

[0011] Acquire the consumption information of the user through the input data of the user, and construct a corresponding personalized data portrait for the user according to the consumption information, so as to construct the user usage data through the consumption data and the personalized data portrait;

[0012] Acquire attribute data of a commodity in the commodity retail platform, and determine first evaluation data of the commodity through the commodity retail platform, so as to construct a commodity portrait of the commodity according to the attribute data and the first evaluation data;

[0013] The second evaluation data of the product in the preset social media is crawled to construct the product attribute data according to the product portrait and the second evaluation data.

[0014] Optionally, the data cleaning of the initial data according to a preset data preprocessing process, feature extraction of the cleaned initial data to obtain corresponding data features, and integration of the cleaned initial data to obtain a corresponding training data set include:

[0015] Removing duplicate data from the initial data, filling missing data in the initial data using a preset data filling method, and processing abnormal data in the initial data using a preset abnormal data processing method, and then standardizing the processed initial data to obtain the cleaned initial data;

[0016] Extracting user features, product features, and context features from the cleaned initial data, and obtaining the data features based on the user features, the product features, and the context features;

[0017] The cleaned initial data is converted into a target data format, and the data fields in the cleaned initial data are normalized and then the corresponding training data set is obtained through data integration.

[0018] Optionally, fine-tuning the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model includes:

[0019] Acquire preset product data, and use the preset product data as negative samples of the preset product recommendation model;

[0020] Based on the negative samples, the data features and the training data set, the preset product recommendation model is fine-tuned using a preset low-rank adaptation matrix to obtain the trained target recommendation model.

[0021] Optionally, the process of fine-tuning the preset product recommendation model based on the data features and the training data set further includes:

[0022] Acquire a verification data set of the preset product recommendation model, and verify the preset product recommendation model according to the verification data set;

[0023] According to the verification result of the preset product recommendation model, the corresponding regularization parameter is adjusted, or the negative sample is increased, so as to continue to fine-tune the preset product recommendation model until the preset product recommendation model meets the preset training goal.

[0024] Optionally, the acquiring the commodity attribute data of the commodity retail platform and the user usage data of the current user, and generating a corresponding commodity recommendation list by using the target recommendation model according to the commodity attribute data and the user usage data of the current user, comprises:

[0025] Acquire the commodity attribute data of the commodity retail platform and the user usage data of the current user;

[0026] Encoding the commodity attribute data, the user usage data and the corresponding context information by using the target recommendation model to calculate the similarity between the current user and the commodities in the commodity retail platform;

[0027] The commodities in the commodity retail platform are sorted according to the similarity, so as to generate the commodity recommendation list for the current user according to the sorting result and a preset recommendation scenario.

[0028] Optionally, after generating a corresponding product recommendation list by using the target recommendation model according to the product attribute data and the user usage data of the current user, the method further includes:

[0029] Acquire first evaluation data of the commodity recommendation list, and determine second evaluation data of the commodity recommendation list according to a preset evaluation index;

[0030] The parameters of the target recommendation model are adjusted according to the first evaluation data and the second evaluation data.

[0031] In a second aspect, the present application provides a large model-based retail industry commodity recommendation device, which is applied to a commodity retail platform, including:

[0032] A data acquisition module, used to acquire initial data of the commodity retail platform through a preset data collection interface; the initial data includes commodity recommendation data of the retail industry acquired through an external data source and user usage data and commodity attribute data acquired through the commodity retail platform;

[0033] A data processing module, used to clean the initial data according to a preset data preprocessing process, extract features from the cleaned initial data to obtain corresponding data features, and integrate the cleaned initial data to obtain a corresponding training data set;

[0034] A model training module, used to fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer;

[0035] The list generation module is used to obtain the commodity attribute data of the commodity retail platform and the user usage data of the current user, and generate a corresponding commodity recommendation list using the target recommendation model according to the commodity attribute data and the user usage data of the current user.

[0036] In a third aspect, the present application provides an electronic device comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the aforementioned large model-based retail industry product recommendation method.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned large-model-based retail industry commodity recommendation method.

[0038] This application first obtains the initial data of the commodity retail platform through a preset data collection interface, and cleans the initial data according to the preset data preprocessing process, then extracts features from the cleaned initial data to obtain corresponding data features, and integrates the cleaned initial data to obtain the corresponding training data set, and fine-tunes the preset commodity recommendation model based on Transformer based on the data features and the training data set. After obtaining the trained target recommendation model, the commodity attribute data of the commodity retail platform and the user usage data of the current user are obtained, and the corresponding commodity recommendation list is generated using the target recommendation model based on the commodity attribute data and the user usage data of the current user. In this way, this application collects commodity data, user behavior data and environmental data in the retail industry, and after processing the collected data, trains a recommendation model for commodity recommendation in the retail industry, so as to use the recommendation model to learn the complex relationship between commodities and user behaviors, and then use the trained model to generate personalized commodity recommendations for users according to the prediction results. In this way, by building a large model for the retail industry to learn commodities and user behaviors in the retail industry, accurate prediction of user needs and personalized recommendation of commodities can be achieved, which will help improve the sales performance and user satisfaction of the retail industry and enhance the competitiveness of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0040] Figure 1 A flow chart of a method for recommending retail industry products based on a large model provided in this application;

[0041] Figure 2 A method and system module diagram for intelligent product recommendation in the retail industry based on a large model provided in this application;

[0042] Figure 3 A flowchart of a retail industry commodity recommendation model training method based on a large model provided in this application;

[0043] Figure 4 A schematic diagram of the structure of a large-model-based retail industry commodity recommendation device provided in this application;

[0044] Figure 5 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0045] 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.

[0046] With the rapid development of the Internet and e-commerce, competition in the retail industry is becoming increasingly fierce, and intelligent product recommendation systems are becoming increasingly important in the retail industry. However, traditional product recommendation systems are mainly based on users' historical behavior data and simple machine learning algorithms, and the recommendation effect is limited. This application collects relevant data from the retail industry and trains a recommendation model for product recommendation in the retail industry. The recommendation model is used to learn the complex relationship between products and user behavior, which can achieve accurate prediction of user needs and personalized recommendation of products.

[0047] See also Figure 1 As shown, the embodiment of the present invention discloses a retail industry commodity recommendation method based on a large model, which is applied to a commodity retail platform, including:

[0048] Step S11, obtaining initial data of the commodity retail platform through a preset data collection interface; the initial data includes commodity recommendation data of the retail industry obtained through an external data source and user usage data and commodity attribute data obtained through the commodity retail platform.

[0049] In this embodiment, it is necessary to first obtain a large amount of raw data from multiple channels to provide input for subsequent data processing and analysis. Specifically, the initial data of the commodity retail platform can be obtained through a preset data collection interface, such as Figure 2 As shown, the above initial data includes the commodity recommendation data of the retail industry obtained through external data sources, namely external data, and the user usage data obtained through the commodity retail platform, namely Figure 2 The user behavior data, social network data, and personalized data in the product retail platform, namely Figure 2 The product attribute data in .

[0050] Specifically, the methods for collecting user behavior data include log file records, API (Application Programming Interface) calls, front-end script triggers, etc.; the methods for collecting product attribute data include obtaining from the product information management system, from product evaluations and question-and-answer sessions, etc.; the methods for collecting social network data include web crawlers, API interface calls, and open data acquisition from social media platforms, etc.; the methods for collecting personalized data include personal profiles filled out by users, device information, location service authorization, etc.; the methods for collecting external data include obtaining industry dynamics, market trends, competitors and other information from third-party data providers or public data sources through API calls, data subscriptions, public data crawling, etc.

[0051] Step S12: clean the initial data according to a preset data preprocessing process, extract features from the cleaned initial data to obtain corresponding data features, and integrate the cleaned initial data to obtain a corresponding training data set.

[0052] In this embodiment, the initial data needs to be cleaned according to the preset data preprocessing process, and the features of the cleaned initial data need to be extracted to obtain the corresponding data features, and the cleaned initial data needs to be integrated to obtain the corresponding training data set, so as to perform data preprocessing through three parts: data cleaning, feature engineering, and data integration, so as to improve the data quality of intelligent recommendation in the retail industry. Among them, data cleaning includes removing duplicate data, filling missing values, processing outliers, and data conversion; feature engineering includes extracting user features, product features, context features, and feature combinations of different features; data integration includes data source integration, data format conversion, data fusion, and data normalization.

[0053] Step S13: fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer.

[0054] In this embodiment, after selecting the Transformer-based pre-trained model as the preset product recommendation model, the preset product recommendation model can be fine-tuned and trained according to the preset training method and training strategy based on the data features and training data set obtained in the above steps to obtain the trained target recommendation model.

[0055] Step S14: Acquire the commodity attribute data of the commodity retail platform and the user usage data of the current user, and generate a corresponding commodity recommendation list using the target recommendation model according to the commodity attribute data and the user usage data of the current user.

[0056] In this embodiment, the similarity or probability distribution between the user and the product can be calculated based on the user's historical behavior data, product feature data, and context information, and a recommendation list for each user can be generated. After the recommendation list is processed for diversity and novelty, the generated recommendation list and recommendation reasons can be output to the user. Figure 2 As shown, first, the commodity attribute data of the commodity retail platform and the user usage data of the current user are obtained, and the target recommendation model is used to encode the commodity attribute data, user usage data and corresponding context information to calculate the similarity between the current user and the commodities in the commodity retail platform, and then the commodities in the commodity retail platform are sorted according to the similarity, and then a commodity recommendation list for the current user is generated according to the sorting results and preset recommendation scenarios.

[0057] In this embodiment, firstly, according to the large model recommendation algorithm, the trained target recommendation model can be used to encode the user portrait, product portrait and context information, calculate the similarity or probability distribution between the user and the product, and thus generate a personalized recommendation list for each user. And what needs to be considered is that in the above similarity calculation process, the cold start problem can be solved and the risk of overfitting can be reduced by methods such as attention mechanism and regularization technology. Then, according to the output results of the target recommendation model, the products on the commodity retail platform are sorted to generate a recommendation list for each user. And in this process, the number of products in the recommendation list can be adjusted according to business needs. At the same time, in order to meet the personalized needs of users, different recommendation scenarios (such as shopping cart recommendations, home page recommendations, etc.) can be set to generate corresponding recommendation lists for different scenarios.

[0058] After generating the product recommendation list for the current user, the product recommendation list can also be processed for recommendation diversity and novelty to improve the user experience and ensure that the recommendation results are both in line with the user's interest preferences and novel. Specifically, the following strategies can be used to process the list diversity: introduce a variety of recommendation strategies, such as content-based recommendation, collaborative filtering recommendation, etc., and combine the recommendation results of the large model to generate a diversified recommendation list; cluster or encode the products, calculate the similarity between the products, and suppress the repeated promotion of similar products; regularly update the product library, mine new products and recommend them, and increase the novelty of the recommendation results; use user feedback information (such as ratings, comments, etc.) to dynamically adjust the recommendation list and improve the quality of the recommendation. In this way, by collecting user behavior data in real time and responding quickly, the recommendation list can be dynamically adjusted to help ensure that users can always see the most interesting and relevant products. Then, the final product recommendation list is output to the user, and the recommendation reasons are provided. In this way, through the specific content of the above recommendation generation module, intelligent product recommendations for users in the retail industry can be realized, and the user's shopping experience and customer stickiness can be improved.

[0059] And in this embodiment, after generating the product recommendation list, Figure 2 As shown, the first evaluation data of the product recommendation list can also be obtained, and the second evaluation data of the product recommendation list can be determined according to the preset evaluation indicators, and then the parameters of the target recommendation model can be adjusted according to the first evaluation data and the second evaluation data to realize the cyclic iteration and continuous optimization of the intelligent product recommendation method and system.

[0060] For the above-mentioned first evaluation data, this embodiment introduces a user feedback mechanism, and users can evaluate and provide feedback on the recommendation results. After obtaining the first evaluation data based on user feedback, the large model and the recommendation generation module can be continuously optimized to improve the performance and accuracy of the recommendation system. It can be understood that during the optimization process, attention should be paid to issues such as the data quality of the model output and the generalization ability of the model.

[0061] And when obtaining the above-mentioned second evaluation data, it can be understood that in order to comprehensively evaluate the quality of the recommendation results, it is necessary to select appropriate evaluation indicators. Common evaluation indicators include accuracy, recall, F1 score, mean square error, etc., and according to the characteristics of the retail industry, indicators such as revenue increase rate and customer satisfaction can also be introduced. And when determining the corresponding evaluation data based on the above-mentioned evaluation indicators, the corresponding evaluation data can be determined based on the evaluation data set according to the evaluation indicators, wherein the evaluation data set should cover various scenarios and user behaviors to ensure the comprehensiveness and accuracy of the evaluation results, and the evaluation data set should include historical purchase records, product attributes, user characteristics, time information, etc. In addition, the data in the evaluation data set can be obtained through manual review, user feedback, etc. In this way, the corresponding second evaluation data can be obtained based on the above-mentioned evaluation indicators and the evaluation data set.

[0062] In this embodiment, the recommendation results generated by the target recommendation model can also be compared with the recommendation results of the benchmark algorithm (such as collaborative filtering, content-based recommendation, etc.) or the competitive product recommendation method, and the evaluation results and the above-mentioned comparison results can be visualized in the form of charts, reports, etc., to facilitate analysis and interpretation. The visualization content should include the comparison of evaluation indicators, rankings, trends, etc. of each recommendation scheme, so as to determine the best performing recommendation scheme through the evaluation results. In this way, the corresponding evaluation results can be obtained through the above-mentioned first evaluation data, second evaluation data and comparison results, and the parameters of the large model can be adjusted and optimized, and the optimal parameter combination can be tried to find the optimal parameter combination, and the intelligent commodity recommendation method for the retail industry based on the large model can be effectively evaluated and improved to improve the recommendation quality. Through the above-mentioned technical solution, the target recommendation model in this embodiment can adapt to the ever-changing market demand and emerging retail scenarios, and has good adaptability to changes in the market and scenarios, ensuring that the recommended content keeps pace with market trends.

[0063] This application first obtains the initial data of the commodity retail platform through a preset data collection interface, cleans the initial data according to a preset data preprocessing process, then extracts features from the cleaned initial data to obtain corresponding data features, and integrates the cleaned initial data to obtain a corresponding training data set, and fine-tunes the preset Transformer-based commodity recommendation model based on the data features and the training data set. After obtaining the trained target recommendation model, the commodity attribute data of the commodity retail platform and the user usage data of the current user are obtained, and the target recommendation model is used to generate a corresponding commodity recommendation list based on the commodity attribute data and the user usage data of the current user. In this way, this application collects commodity data, user behavior data and environmental data in the retail industry, processes the collected data, and trains a recommendation model for commodity recommendation in the retail industry. Then, the recommendation model is used to learn the complex relationship between commodities and user behaviors, and the trained model is used to generate personalized commodity recommendations for users based on the prediction results. In this way, by building a large model for the retail industry to learn about commodities and user behaviors in the retail industry, accurate prediction of user needs and personalized recommendation of commodities can be achieved. By supporting retail companies to conduct more accurate commodity marketing and customer service, it is helpful to improve the sales performance and user satisfaction of the retail industry and enhance the competitiveness of companies.

[0064] Based on the previous embodiment, it can be seen that the present application can train a recommendation model for product recommendation in the retail industry by collecting relevant data of the retail industry, thereby using the recommendation model to learn the relationship between products and user behaviors to generate personalized recommendations for products. Next, the present embodiment will describe in detail the training process of the recommendation model for product recommendation. Figure 3 As shown, the embodiment of the present application discloses a retail industry commodity recommendation model training method based on a large model, including:

[0065] Step S21: Acquire the initial data of the commodity retail platform through a preset data collection interface.

[0066] In this embodiment, when obtaining the initial data of the commodity retail platform through the preset data collection interface, the user's operation behavior on the commodity retail platform can be first obtained through the log file of the commodity retail platform to obtain the user's consumption data, and the user's interest preferences and consumption habits can be obtained by tracking and recording the user's behavior on the retail platform, such as browsing commodities, adding shopping carts, placing orders, and evaluating commodities. In this way, these data can help the recommendation system better understand user needs and improve the accuracy of recommendations. It can be understood that the method of collecting user behavior data includes but is not limited to log file recording, API calls, front-end script triggering, etc.

[0067] In addition to the data of the commodity consumption platform, this embodiment can also collect social network data, by crawling relevant topics, comments and sharing information on social media, to obtain the user's social recognition and reputation for specific commodities or brands, and integrate these data into the recommendation system, wherein the method of collecting social network data includes but is not limited to web crawlers, API interface calls, social media platform open data, etc. At the same time, a personalized data portrait can be built for the user based on the user's personal information, geographic location, consumption records, etc., so that by analyzing personalized data, the recommendation system can achieve precision marketing and improve user satisfaction and retention rate. The method of collecting personalized data includes but is not limited to personal information filled in by the user, device information, location service authorization, etc. In this way, the user's consumption information is obtained through the user's input data, and a corresponding personalized data portrait is built for the user based on the consumption information, and the user's usage data is built through consumption data and personalized data portraits, which can improve the sociality and credibility of the recommendation results.

[0068] In this embodiment, the attribute data of the goods in the commodity retail platform can also be obtained, and the first evaluation data of the goods can be determined through the commodity retail platform to build a commodity portrait of the goods based on the attribute data and the first evaluation data. When collecting commodity attribute data, the attribute data of the goods, such as brand, price, category, inventory, etc., can be obtained from the commodity information management system. In addition, the advantages and disadvantages of the goods, user feedback and other unstructured data can also be obtained from the commodity evaluation and question-and-answer session. Thus, the commodity portrait is built through these data, providing rich commodity information for the recommendation system.

[0069] It is also understandable that in order to improve the richness of data, in this embodiment, information such as industry dynamics, market trends, and competitors can also be obtained from third-party data providers or public data sources, and these external data can be incorporated into the recommendation system. In this way, by crawling the second evaluation data of the product described in the preset social media, the product attribute data is constructed according to the product portrait and the second evaluation data, which helps to improve the foresight and practicality of the recommendation results. The methods of collecting external data include but are not limited to API calls, data subscriptions, public data crawling, etc.

[0070] Through the above technical solution, this embodiment obtains rich and diverse data from multiple channels to provide rich data support for the recommendation system, which helps to improve the accuracy, real-time and personalization of recommendation results.

[0071] Step S22: clean the initial data according to a preset data preprocessing process, extract features from the cleaned initial data to obtain corresponding data features, and integrate the cleaned initial data to obtain a corresponding training data set.

[0072] In this embodiment, the duplicate data in the initial data is first removed, and the missing data in the initial data is filled by a preset data filling method, and after the abnormal data in the initial data is processed according to the preset abnormal data processing method, the processed initial data is standardized to obtain the cleaned initial data. It can be understood that data cleaning is the first step of data preprocessing, which is mainly to remove noise and abnormal values ​​in the original data and improve data quality. In the intelligent recommendation system of the retail industry in this embodiment, data cleaning mainly includes the following aspects: removing duplicate data: performing deduplication processing on duplicate goods, users and other data to avoid the duplication of recommendation results; filling missing values: for missing values ​​in the original data, it can be filled by methods such as mean, median, mode, etc., or estimated by algorithms such as interpolation and prediction; processing abnormal values: for abnormal data such as sales volume and price of goods, it can be processed by methods such as upper and lower limit constraints, box and whisker plots, etc. to eliminate the influence of abnormal values ​​on recommendation results; data conversion: for categorical data in the original data, encoding processing is required, such as unique hot encoding, label encoding, etc. At the same time, for continuous data, normalization or standardization processing can be performed to make it in the same scale.

[0073] After data cleaning, user features, product features and context features in the cleaned initial data can be extracted, and corresponding data features can be obtained based on the user features, product features and context features. In this way, by extracting and converting features of the original data, features with discrimination can be generated for subsequent large model training. In this embodiment, feature engineering mainly includes the following aspects: user features: including basic information of users (such as age, gender, occupation, etc.), user behavior data (such as browsing, collection, purchase, etc.), user historical recommendation records, etc.; product features: including basic information of products (such as brand, type, price, etc.), attributes of products (such as color, size, etc.), sales data of products (such as sales volume, evaluation, etc.); context features: including context information of users and products, such as user's region, visit time, season, etc.; feature combination: combining user features, product features and context features to generate new combined features.

[0074] After that, the cleaned initial data is converted into the target data format, and the data fields in the cleaned initial data are normalized and then the corresponding training data set is obtained through data integration. Data from different sources are integrated through data integration to form a unified data set to provide support for subsequent large model training. In this embodiment, data integration mainly includes the following aspects: data source integration: data from different data sources (such as databases, files, APIs, etc.) are integrated to form a unified data set; data format conversion: for different data formats, conversion is required to make them have a unified format for subsequent processing; data fusion: for data with redundant information, data fusion processing is required, such as removing duplicate data, merging similar data, etc.; data normalization: for the fields in the data set, normalization processing is required to make them have a unified field name and data type.

[0075] In this way, through the above data preprocessing, the data quality of the intelligent recommendation system in the retail industry can be effectively improved, so as to provide support for the large model training module based on information such as customers' historical purchase records, browsing behaviors, personal preferences, and market trends, thereby providing customers with personalized product recommendations and increasing sales and customer satisfaction.

[0076] Step S23: fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer.

[0077] In this embodiment, before model training, the Transformer-based Baichuan2-13B large model with strong expression and generalization capabilities is first used as the basic model of the preset product recommendation model, and then the preset product data is obtained, and the preset product data is used as the negative sample of the preset product recommendation model, so as to fine-tune the preset product recommendation model based on the negative sample, data features and training data set using the preset low-rank adaptation matrix to obtain the trained target recommendation model. It should be pointed out that in this embodiment, the LoRA fine-tuning technology is used to fine-tune the basic model. LoRA fine-tuning is a fine-tuning method suitable for large-scale pre-trained models. By introducing a low-rank adaptation matrix in the model, fine-tuning of specific tasks can be achieved, which can not only improve the performance of the model on specific tasks, but also maintain the performance of the model on general tasks.

[0078] And in the above training process, this embodiment can first formulate the following training strategy to improve the performance of the model in the intelligent commodity recommendation task in the retail industry. The above training strategy specifically includes: using labeled commodity data as negative samples to enhance the model's ability to distinguish positive samples; using a dynamic learning rate adjustment strategy to automatically adjust the learning rate according to the performance of the model on the validation set; using a cross entropy loss function, combined with regularization technology, to prevent the model from overfitting. Therefore, after preparing the training data set based on the above training strategy, the pre-trained Baichuan2-13B large model is first used as the initial model, and then the LoRA fine-tuning technology is used to fine-tune the model for specific tasks. And in the process of fine-tuning the preset commodity recommendation model, the verification data set of the preset commodity recommendation model can also be obtained, and the preset commodity recommendation model is verified according to the verification data set, and the corresponding regularization parameters are adjusted based on the above training strategy according to the verification results of the preset commodity recommendation model, or negative samples are added to continue fine-tuning the preset commodity recommendation model until the preset commodity recommendation model meets the preset training objectives. In this way, by continuously evaluating the performance of the model on the validation set during the training process, it is possible to determine whether the model is overfitting. If the overfitting phenomenon is serious, it is necessary to adjust the regularization parameters or add more negative samples for training in order to provide more accurate product recommendations.

[0079] Through the above technical solution, in this embodiment, by collecting relevant data of the retail industry, a recommendation model for product recommendation in the retail industry is trained, so that the recommendation model is used to learn the relationship between products and user behaviors to generate personalized recommendations for products. The large model has the characteristics of large parameters, strong computing power and good generalization ability. It processes large-scale retail data and learns the relationship between more complex user behavior characteristics and product attributes. It can deeply understand product characteristics and user preferences, better explore the potential rules in user behavior data, and provide users with more personalized and accurate product recommendations. In addition, through the large model structure and algorithm specifically aimed at the characteristics and needs of the retail industry, fast and efficient training and reasoning are achieved to improve the speed and accuracy of product recommendations, which can reduce dependence on manual intervention, reduce labor costs, and improve operational efficiency.

[0080] See also Figure 4 As shown, the embodiment of the present application also discloses a retail industry commodity recommendation device based on a large model, which is applied to a commodity retail platform, including:

[0081] The data acquisition module 11 is used to acquire the initial data of the commodity retail platform through a preset data collection interface; the initial data includes the commodity recommendation data of the retail industry acquired through an external data source and the user usage data and commodity attribute data acquired through the commodity retail platform;

[0082] The data processing module 12 is used to clean the initial data according to a preset data preprocessing process, extract features from the cleaned initial data to obtain corresponding data features, and integrate the cleaned initial data to obtain a corresponding training data set;

[0083] A model training module 13 is used to fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer;

[0084] The list generation module 14 is used to obtain the commodity attribute data of the commodity retail platform and the user usage data of the current user, and generate a corresponding commodity recommendation list using the target recommendation model according to the commodity attribute data and the user usage data of the current user.

[0085] In this embodiment, the initial data of the commodity retail platform is first obtained through the preset data collection interface, and the initial data is cleaned according to the preset data preprocessing process, and then the feature extraction of the cleaned initial data is performed to obtain the corresponding data features, and the cleaned initial data is integrated to obtain the corresponding training data set, and the preset commodity recommendation model based on Transformer is fine-tuned and trained based on the data features and the training data set, and after obtaining the trained target recommendation model, the commodity attribute data of the commodity retail platform and the user usage data of the current user are obtained, and the corresponding commodity recommendation list is generated using the target recommendation model according to the commodity attribute data and the user usage data of the current user. Through the above technical scheme, this embodiment can collect commodity data, user behavior data and environmental data of the retail industry, and after processing the collected data, train a recommendation model applied to the commodity recommendation of the retail industry, so as to use the recommendation model to learn the complex relationship between commodities and user behaviors, and then use the trained model to generate personalized commodity recommendations for users according to the prediction results. In this way, by building a large model of the retail industry to learn commodities and user behaviors in the retail industry, accurate prediction of user needs and personalized recommendation of commodities are achieved, which is helpful to improve the sales performance and user satisfaction of the retail industry and enhance the competitiveness of enterprises.

[0086] In some specific embodiments, the data acquisition module 11 specifically includes:

[0087] A behavior acquisition unit, used to acquire the user's operation behavior on the commodity retail platform through the log file of the commodity retail platform to obtain the user's consumption data;

[0088] A first portrait construction unit, configured to obtain consumption information of the user through input data of the user, and to construct a corresponding personalized data portrait for the user according to the consumption information, so as to construct the user usage data through the consumption data and the personalized data portrait;

[0089] A second image building unit, configured to obtain attribute data of a commodity in the commodity retail platform, and determine first evaluation data of the commodity through the commodity retail platform, so as to build a commodity image of the commodity according to the attribute data and the first evaluation data;

[0090] A data construction unit is used to crawl the second evaluation data of the product in the preset social media to construct the product attribute data according to the product portrait and the second evaluation data.

[0091] In some specific embodiments, the data processing module 12 specifically includes:

[0092] A data preprocessing unit, configured to remove duplicate data from the initial data, fill in missing data in the initial data using a preset data filling method, process abnormal data in the initial data using a preset abnormal data processing method, and then perform standardization on the processed initial data to obtain the cleaned initial data;

[0093] A feature extraction unit, used to extract user features, product features and context features from the cleaned initial data, and obtain the data features according to the user features, product features and context features;

[0094] The data conversion unit is used to convert the cleaned initial data into a target data format, and to obtain the corresponding training data set through data integration after normalizing the data fields in the cleaned initial data.

[0095] In some specific embodiments, the model training module 13 specifically includes:

[0096] A first data acquisition unit, configured to acquire preset commodity data and use the preset commodity data as a negative sample of the preset commodity recommendation model;

[0097] A model fine-tuning unit is used to fine-tune the preset product recommendation model based on the negative samples, the data features and the training data set using a preset low-rank adaptation matrix to obtain the trained target recommendation model.

[0098] In some specific embodiments, the model training module 13 further includes:

[0099] A model verification unit, used to obtain a verification data set of the preset product recommendation model, and verify the preset product recommendation model according to the verification data set;

[0100] The first parameter adjustment unit is used to adjust the corresponding regularization parameter according to the verification result of the preset product recommendation model, or increase the negative sample, so as to continue to fine-tune the training of the preset product recommendation model until the preset product recommendation model meets the preset training goal.

[0101] In some specific embodiments, the list generation module 14 specifically includes:

[0102] A second data acquisition unit, configured to acquire the commodity attribute data of the commodity retail platform and the user usage data of the current user;

[0103] A similarity calculation unit, configured to encode the commodity attribute data, the user usage data and the corresponding context information by using the target recommendation model, so as to calculate the similarity between the current user and the commodities in the commodity retail platform;

[0104] A list generating unit is used to sort the commodities in the commodity retail platform according to the similarity, so as to generate the commodity recommendation list of the current user according to the sorting result and a preset recommendation scenario.

[0105] In some specific embodiments, the list generating module 14 further includes:

[0106] A third data acquisition unit, used to acquire first evaluation data of the commodity recommendation list, and determine second evaluation data of the commodity recommendation list according to a preset evaluation index;

[0107] A second parameter adjustment unit is used to adjust parameters of the target recommendation model according to the first evaluation data and the second evaluation data.

[0108] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0109] Figure 5A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the large model-based retail industry commodity recommendation method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0110] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0111] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0112] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the retail industry commodity recommendation method based on a large model executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.

[0113] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned method for recommending retail industry products based on a large model is implemented. The specific steps of the method can be referred to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0114] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0115] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.

[0116] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

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

[0118] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for recommending retail industry products based on a large model, characterized in that: Applied to commodity retail platforms, including: Acquire initial data of the commodity retail platform through a preset data collection interface; the initial data includes commodity recommendation data of the retail industry acquired through an external data source and user usage data and commodity attribute data acquired through the commodity retail platform; The initial data is cleaned according to a preset data preprocessing process, and features are extracted from the cleaned initial data to obtain corresponding data features, and the cleaned initial data is integrated to obtain a corresponding training data set; Fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer; The commodity attribute data of the commodity retail platform and the user usage data of the current user are obtained, and a corresponding commodity recommendation list is generated using the target recommendation model according to the commodity attribute data and the user usage data of the current user.

2. The method for recommending retail products based on a large model according to claim 1, characterized in that: The obtaining of the initial data of the commodity retail platform through a preset data collection interface includes: Obtaining the user's operation behavior on the commodity retail platform through the log file of the commodity retail platform to obtain the user's consumption data; Acquire the consumption information of the user through the input data of the user, and construct a corresponding personalized data portrait for the user according to the consumption information, so as to construct the user usage data through the consumption data and the personalized data portrait; Acquire attribute data of a commodity in the commodity retail platform, and determine first evaluation data of the commodity through the commodity retail platform, so as to construct a commodity portrait of the commodity according to the attribute data and the first evaluation data; The second evaluation data of the product in the preset social media is crawled to construct the product attribute data according to the product portrait and the second evaluation data.

3. The method for recommending retail products based on a large model according to claim 1, characterized in that: The data cleaning of the initial data according to the preset data preprocessing process, feature extraction of the cleaned initial data to obtain corresponding data features, and integration of the cleaned initial data to obtain corresponding training data sets include: Removing duplicate data from the initial data, filling missing data in the initial data using a preset data filling method, and processing abnormal data in the initial data using a preset abnormal data processing method, and then standardizing the processed initial data to obtain the cleaned initial data; Extracting user features, product features, and context features from the cleaned initial data, and obtaining the data features based on the user features, the product features, and the context features; The cleaned initial data is converted into a target data format, and the data fields in the cleaned initial data are normalized and then the corresponding training data set is obtained through data integration.

4. The method for recommending retail products based on a large model according to claim 1, characterized in that: The fine-tuning training of the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model includes: Acquire preset product data, and use the preset product data as negative samples of the preset product recommendation model; Based on the negative samples, the data features and the training data set, the preset product recommendation model is fine-tuned using a preset low-rank adaptation matrix to obtain the trained target recommendation model.

5. The method for recommending retail products based on a large model according to claim 4, characterized in that: The process of fine-tuning the preset product recommendation model based on the data features and the training data set also includes: Acquire a verification data set of the preset product recommendation model, and verify the preset product recommendation model according to the verification data set; According to the verification result of the preset product recommendation model, the corresponding regularization parameter is adjusted, or the negative sample is increased, so as to continue to fine-tune the preset product recommendation model until the preset product recommendation model meets the preset training goal.

6. The method for recommending retail products based on a large model according to claim 1, characterized in that: The acquiring the commodity attribute data of the commodity retail platform and the user usage data of the current user, and generating a corresponding commodity recommendation list by using the target recommendation model according to the commodity attribute data and the user usage data of the current user, comprises: Acquire the commodity attribute data of the commodity retail platform and the user usage data of the current user; Encoding the commodity attribute data, the user usage data and the corresponding context information by using the target recommendation model to calculate the similarity between the current user and the commodities in the commodity retail platform; The commodities in the commodity retail platform are sorted according to the similarity, so as to generate the commodity recommendation list for the current user according to the sorting result and a preset recommendation scenario.

7. The method for recommending retail products based on a large model according to any one of claims 1 to 6, characterized in that: After generating a corresponding product recommendation list by using the target recommendation model according to the product attribute data and the user usage data of the current user, the method further includes: Acquire first evaluation data of the commodity recommendation list, and determine second evaluation data of the commodity recommendation list according to a preset evaluation index; The parameters of the target recommendation model are adjusted according to the first evaluation data and the second evaluation data.

8. A retail industry commodity recommendation device based on a large model, characterized in that: Applied to commodity retail platforms, including: A data acquisition module, used to acquire initial data of the commodity retail platform through a preset data collection interface; the initial data includes commodity recommendation data of the retail industry acquired through an external data source and user usage data and commodity attribute data acquired through the commodity retail platform; A data processing module, used to clean the initial data according to a preset data preprocessing process, extract features from the cleaned initial data to obtain corresponding data features, and integrate the cleaned initial data to obtain a corresponding training data set; A model training module, used to fine-tune the preset product recommendation model based on the data features and the training data set to obtain a trained target recommendation model; the preset product recommendation model is a pre-trained model based on Transformer; The list generation module is used to obtain the commodity attribute data of the commodity retail platform and the user usage data of the current user, and generate a corresponding commodity recommendation list using the target recommendation model according to the commodity attribute data and the user usage data of the current user.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the large model-based retail industry commodity recommendation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the retail industry commodity recommendation method based on a large model as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Commodity recommendation method and system based on artificial intelligence

    CN119338551A

  • Customer behavior prediction and recommendation system based on AI large model

    CN119515454A

  • A customer behavior prediction and recommendation system based on AI big model

    CN119515454B

  • Retail industry search system and method based on large language model

    CN119669564A

  • Large language model-based item comparison method and apparatus, electronic device, and medium

    WO2026081519A1