Real-time product recommendation method, device, electronic device and readable storage medium
By monitoring the text data and user behavior in the application, updating the tag set and user portrait, and using the product ranking model to perform real-time product recommendations, it solves the problems of insufficient real-time and accuracy in the existing technology and achieves accurate and real-time user identification. Product recommendations.
Patent Information
- Application Number
- CN202111009741.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-30
AI Technical Summary
The existing technology lacks real-time performance and accuracy in product recommendation. In particular, the recommendation method based on user behavior data takes a long time to calculate and is not very real-time.
By monitoring the text data and user behavior published by the target application, the text tag set and user portrait are determined, the product and user interest tag sets are updated, and the product ranking model is used to make real-time product recommendations.
It achieves accurate and real-time product recommendations for users and improves the accuracy and real-time nature of recommendations.
Smart Images

Figure CN113706253B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a real-time product recommendation method, device, electronic device and readable storage medium. Background Art
[0002] With the development of science and technology, product development has become more diversified. How to recommend products of interest to users from a large number of products has become the current focus.
[0003] Currently, there are two common ways to recommend products to users: method 1, recommending products to users based on preset indicators, such as sales volume and popularity; method 2, recommending products to users based on user behavior data. However, method 1 is not very accurate in recommendation, and method 2 is data-intensive and time-consuming to calculate, suitable for offline recommendation, and not very real-time.
[0004] Therefore, there is an urgent need for a real-time product recommendation method to recommend products to users accurately and in real time. Summary of the invention
[0005] In view of the above, it is necessary to provide a real-time product recommendation method, which aims to recommend products to users accurately and in real time.
[0006] The real-time product recommendation method provided by the present invention comprises:
[0007] When it is monitored that the target application publishes text data carrying a product identifier, determining a text tag set corresponding to the published text data, updating a product tag set corresponding to the product identifier based on the text tag set, and storing the text tag set and the product tag set in a first database;
[0008] When it is monitored that the target application generates registration information carrying a user identifier, a user portrait corresponding to the user identifier is constructed based on the registration information, and the user portrait is stored in a second database;
[0009] When a designated user is detected to have clicked on a designated text data of the target application, a target text tag set corresponding to the designated text data is obtained from the first database, an interest tag set of the designated user is updated based on the target text tag set, and a set of products to be recommended corresponding to the designated user is determined based on the updated interest tag set;
[0010] A target product tag set corresponding to each product in the product set to be recommended is obtained from the first database, a target user portrait corresponding to the designated user is obtained from the second database, the target product tag set and the target user portrait are input into a product ranking model, a ranking result of the products in the product set to be recommended is obtained, and a target recommended product is determined based on the ranking result.
[0011] Optionally, determining a text tag set corresponding to the published text data includes:
[0012] Performing word segmentation processing on the published text data to obtain a word set;
[0013] Calculate the word frequency of each word in the word set in the published text data;
[0014] Obtaining a text data set corresponding to the target application, and calculating a relevance value between each word in the word set and the text data set;
[0015] Calculate the importance value of each word in the word set based on the word frequency and the relevance value;
[0016] A first number of words are selected from the word set in descending order of importance as first keywords corresponding to the published text data, and the set of the first keywords is used as a text tag set corresponding to the published text data.
[0017] Optionally, updating the product tag set corresponding to the product identifier based on the text tag set includes:
[0018] Acquire a set of text label sets of each text data corresponding to the product identification to obtain an initial label set corresponding to the product identification;
[0019] The tags in the initial tag set are sorted in descending order according to their importance values, a second number of tags with the highest sorting order are extracted as second keywords corresponding to the product identification, and a set of the second keywords is used as a product tag set corresponding to the product identification.
[0020] Optionally, constructing a user portrait corresponding to the user identifier based on the registration information includes:
[0021] Obtaining a mapping relationship between an indicator value and a label for each indicator item in the registration information;
[0022] Determine, based on the mapping relationship, a target label corresponding to the indicator value of each indicator item in the registration information corresponding to the user identifier;
[0023] The set of target tags is used as the user portrait corresponding to the user identifier.
[0024] Optionally, updating the interest tag set of the designated user based on the target text tag set includes:
[0025] Acquire the interest tag set corresponding to the designated user from a third database, merge the interest tag set and the target text tag set to obtain a merged interest tag set;
[0026] Sort the tags in the merged interest tag set in descending order of importance, extract the top third number of tags as the third keywords corresponding to the designated user, and use the set of the third keywords as the updated interest tag set corresponding to the designated user.
[0027] Optionally, determining the set of products to be recommended corresponding to the designated user based on the updated interest tag set includes:
[0028] Matching the updated interest tag set with the product tag set corresponding to each product of the target application, and taking the set of successfully matched tags as the matching tag set corresponding to each product;
[0029] Calculate the total importance value corresponding to each tag in the matching tag set corresponding to each product, and calculate the matching value between the designated user and each product based on the total importance value;
[0030] The matching values are sorted in descending order, and a set of the fourth largest number of products in the top order is used as a set of products to be recommended corresponding to the designated user.
[0031] Optionally, after determining the set of products to be recommended corresponding to the designated user based on the updated interest tag set, the method further includes:
[0032] Filtering is performed on the products in the set of products to be recommended to obtain an updated set of products to be recommended.
[0033] In order to solve the above problems, the present invention further provides a real-time product recommendation device, the device comprising:
[0034] An update module, for, when monitoring that a target application publishes text data carrying a product identifier, determining a text tag set corresponding to the published text data, updating a product tag set corresponding to the product identifier based on the text tag set, and storing the text tag set and the product tag set in a first database;
[0035] A construction module, for constructing a user portrait corresponding to the user identity based on the registration information when it is detected that the target application generates registration information carrying the user identity, and storing the user portrait in a second database;
[0036] a determination module, configured to, when monitoring a click behavior of a specified user on a specified text data of the target application, obtain a target text tag set corresponding to the specified text data from the first database, update an interest tag set of the specified user based on the target text tag set, and determine a set of products to be recommended corresponding to the specified user based on the updated interest tag set;
[0037] The recommendation module is used to obtain the target product label set corresponding to each product in the product set to be recommended from the first database, obtain the target user portrait corresponding to the specified user from the second database, input the target product label set and the target user portrait into the product ranking model, obtain the ranking result of the products in the product set to be recommended, and determine the target recommended product based on the ranking result.
[0038] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0039] at least one processor; and,
[0040] a memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores a real-time product recommendation program that can be executed by the at least one processor, and the real-time product recommendation program is executed by the at least one processor so that the at least one processor can perform the above-mentioned real-time product recommendation method.
[0042] In order to solve the above problems, the present invention also provides a computer-readable storage medium, on which a real-time product recommendation program is stored. The real-time product recommendation program can be executed by one or more processors to implement the above-mentioned real-time product recommendation method.
[0043] Compared with the prior art, the present invention first determines the text tag set corresponding to the published text data, and updates the corresponding product tag set based on the text tag set; then, builds a user portrait based on the registration information; then, obtains the target text tag set corresponding to the specified text data, updates the interest tag set of the specified user based on the target text tag set, and determines the product set to be recommended corresponding to the specified user based on the updated interest tag set; finally, the target product tag set corresponding to each product in the product set to be recommended and the target user portrait corresponding to the specified user are input into the product ranking model to obtain the ranking result of the products in the product set to be recommended, and determine the target recommended product. The present invention determines the text tag set when the text data is published and builds the user portrait when the user registers, so that the interest tag set can be updated in real time when the user generates a click behavior, and the product set to be recommended is determined based on the interest tag set, and the products in the recommended product set are accurately ranked based on the user portrait, so as to determine the target recommended product, and ensure the real-time and accuracy of the product recommendation. Therefore, the present invention realizes accurate and real-time product recommendation for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A flowchart of a real-time product recommendation method provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of modules of a real-time product recommendation device provided by an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of the structure of an electronic device for implementing a real-time product recommendation method provided by an embodiment of the present invention;
[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0049] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0050] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0051] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0052] The present invention provides a real-time product recommendation method. Figure 1 FIG. 1 is a flow chart of a real-time product recommendation method provided by an embodiment of the present invention. The method can be executed by an electronic device, and the electronic device can be implemented by software and / or hardware.
[0053] In this embodiment, the real-time product recommendation method includes:
[0054] S1. When it is monitored that the target application publishes text data carrying a product identification, determine the text tag set corresponding to the published text data, update the product tag set corresponding to the product identification based on the text tag set, and store the text tag set and the product tag set in the first database.
[0055] In this embodiment, the target application is an application for purchasing insurance products. The text data may be articles or news about insurance products in the target application.
[0056] This embodiment extracts keywords from each text data in the target application, determines a text tag set corresponding to each text data based on the keywords, and determines a product tag set corresponding to each product of the target application based on the text tag set.
[0057] The determining of the text tag set corresponding to the published text data includes:
[0058] A11, performing word segmentation processing on the published text data to obtain a word set;
[0059] In this embodiment, the forward maximum matching method, the reverse maximum matching method or the minimum segmentation method may be used to perform word segmentation processing on the published text data.
[0060] A12, calculating the word frequency of each word in the word set in the published text data;
[0061] The calculation formula of the word frequency is:
[0062]
[0063] in, is the frequency of the i-th word in the word set, is the number of times the i-th word in the word set appears in the published text data, n is the total number of words in the word set, is the number of times the jth word in the word set appears in the published text data.
[0064] A13, obtaining a text data set corresponding to the target application, and calculating a relevance value between each word in the word set and the text data set;
[0065] A word is selected from the word set, and the relevance value of the selected word to the text data set is: the proportion of the amount of text data including the selected word to the total amount of text in the text data set.
[0066] For example, if there are 100 text data in the text data set corresponding to the target application, and the selected word is word 1, and 20 of the 100 text data contain word 1, then the correlation value between word 1 and the text data set is: 20 / 100=0.2.
[0067] A14, calculating the importance value of each word in the word set based on the word frequency and the relevance value;
[0068] The calculation formula of the importance value is: i =a*p i +b*q i , where v i is the importance value of the i-th word in the word set, p i is the frequency of the i-th word in the word set in the published text data, q i is the relevance value between the i-th word in the word set and the text data set, and a and b are the weights corresponding to the predetermined word frequency and relevance value, respectively.
[0069] A15. Filter a first number of words from the word set in descending order of importance as first keywords corresponding to the published text data, and use the set of the first keywords as a text tag set corresponding to the published text data.
[0070] In this embodiment, the first number can be 8. The 8 words with the highest importance values are extracted from the word set as the first keywords of the published text data, the importance value of each first keyword is used as its annotation information, and the set of these 8 first keywords carrying annotation information is used as the text tag set corresponding to the published text data.
[0071] The updating of the product tag set corresponding to the product identification based on the text tag set includes:
[0072] B11, obtaining a set of text label sets of each text data corresponding to the product identification, and obtaining an initial label set corresponding to the product identification;
[0073] For example, if there are 10 text data about product 1 in the target application, the set of text tag sets of these 10 text data is used as the initial tag set of product 1.
[0074] B12. Sort the tags in the initial tag set in descending order of importance, extract the second number of tags with the highest order as the second keywords corresponding to the product identification, and use the set of the second keywords as the product tag set corresponding to the product identification.
[0075] In this embodiment, the second number can be 15, and the 15 tags with the highest importance values in the initial tag set are used as the second keywords of product 1, the importance value of each second keyword is used as its annotation information, and the set of these 15 second keywords carrying annotation information is used as the product tag set of product 1.
[0076] After obtaining the initial tag set corresponding to the product identification, the method further includes:
[0077] The importance values of the same tags in the initial tag set are summed up to obtain updated importance values of the same tags.
[0078] For example, if the importance value of label 1 in the text label set of text data 1 corresponding to product 1 is 2, and the importance value of label 1 in the text label set of text data 3 corresponding to product 1 is 5, then the initial label set corresponding to product 1 contains two labels 1. After adding up the importance values, the updated importance value of label 1 is 5+2=7.
[0079] S2. When it is monitored that the target application generates registration information carrying a user identifier, a user portrait corresponding to the user identifier is constructed based on the registration information, and the user portrait is stored in a second database.
[0080] When a user logs in to the target application for the first time, he needs to register an account. At this time, a user portrait of each user of the target application can be constructed based on the registration information generated when the user registers the account, and each user portrait is stored in the second database.
[0081] The registration information includes the user's age, gender, occupation, place of residence, income, registration time, etc.
[0082] The constructing a user portrait corresponding to the user identifier based on the registration information includes:
[0083] C11. Obtaining a mapping relationship between an indicator value and a label of each indicator item in the registration information;
[0084] In this embodiment, the mapping relationship between the indicator value and the label is explained by taking the indicator items age and registration time as examples.
[0085] The mapping relationship between the indicator value and label of age is as follows:
[0086] Under 18 years old: Juvenile;
[0087] 18~30 years old: youth;
[0088] 31~50 years old: middle-aged;
[0089] Over 50 years old: elderly.
[0090] The mapping relationship between the registration time indicator value and the label is as follows:
[0091] Registration time is less than six months ago: new user;
[0092] Registration time is greater than or equal to six months: old user.
[0093] C12. Determine, based on the mapping relationship, a target label corresponding to the indicator value of each indicator item in the registration information corresponding to the user identifier;
[0094] If the registration information of user 1 shows that the age is 25, the gender is female, the place of residence is Shanghai, the occupation is a foreign company employee, etc., then the target labels corresponding to the indicators of user 1 are youth, female, first-tier city, white-collar worker, etc.
[0095] C13. Use the set of target tags as the user portrait corresponding to the user identifier.
[0096] The labels corresponding to the above indicators are summarized to obtain the user portrait corresponding to the user ID. For example, the user portrait of user 1 obtained according to step C12 is a label array {youth, female, first-tier city, white-collar, ...}.
[0097] S3. When a designated user is monitored to generate a click behavior on a designated text data of the target application, a target text tag set corresponding to the designated text data is obtained from the first database, and the interest tag set of the designated user is updated based on the target text tag set, and a set of recommended products corresponding to the designated user is determined based on the updated interest tag set.
[0098] The click behavior may include searching, browsing, commenting and liking behaviors. The user's click behavior in the text data of the target application reflects the user's preference to a certain extent.
[0099] In this embodiment, a corresponding text tag set has been stored in the first database for each text data in the target application, so that the target text tag set corresponding to the clicked text data can be quickly obtained from the first database, thereby updating the user's interest tag set in real time and determining the user's corresponding set of recommended products.
[0100] The updating of the interest tag set of the designated user based on the target text tag set includes:
[0101] D11, acquiring an interest tag set corresponding to the designated user from a third database, merging the interest tag set and the target text tag set to obtain a merged interest tag set;
[0102] In this embodiment, the third database stores the interest tag set of each user who logs into the target application. The interest tag set is determined based on the user's click behavior and is updated when the user generates a new click behavior.
[0103] For example, when user 1 clicks on text data 1 in the target application for the first time, a preset number of tags in the text tag set corresponding to text data 1 are used as the interest tag set of user 1; when user 1 clicks on text data 2 for the second time, the text tag set corresponding to text data 2 is merged with the interest tag set of user 1, and a preset number of tags with higher importance values in the merged interest tag set are used as the updated interest tag set of user 1, and so on.
[0104] D12. Sort the tags in the merged interest tag set in descending order of importance value, extract the third number of tags with the highest order as the third keywords corresponding to the designated user, and use the set of the third keywords as the updated interest tag set corresponding to the designated user.
[0105] In this embodiment, the third number can be 6. The six tags with the highest importance values in the merged interest tag set are used as the third keywords of the specified user, the importance value of each third keyword is used as its annotation information, and the set of these six third keywords carrying annotation information is used as the updated interest tag set corresponding to the specified user.
[0106] The determining the set of products to be recommended corresponding to the designated user based on the updated interest tag set includes:
[0107] E11, matching the updated interest tag set with the product tag set corresponding to each product of the target application, and taking the set of successfully matched tags as the matching tag set corresponding to each product;
[0108] For example, if the updated interest tag set of a specified user contains a total of 6 tags, the updated interest tag set has 3 identical tags with the product tag set of product 1 and 4 identical tags with the product tag set of product 2, then the matching tag set corresponding to product 1 has 3 tags and the matching tag set corresponding to product 2 has 4 tags.
[0109] E12. Calculate the total importance value of each tag in the matching tag set corresponding to each product, and calculate the matching value between the designated user and each product based on the total importance value;
[0110] For example, the three tags in the matching tag set corresponding to product 1 are tag 1, tag 2 and tag 3. The importance value of tag 1 in the updated interest tag set is 3, and the importance value of tag 1 in the product tag set of product 1 is 1. Then the total importance value of tag 1 in the matching tag set corresponding to product 1 is 3+1=4.
[0111] Add up the total importance value of each tag in the matching tag set corresponding to each product to get the matching value corresponding to each product. For example, in the matching tag set corresponding to product 1, the total importance value of tag 1 is 4, the total importance value of tag 2 is 6, and the total importance value of tag 3 is 2. Then the matching value corresponding to product 1 is 4+6+2=12.
[0112] E13. Sort the products in descending order according to the matching degree values, and use the fourth largest number of products that are ranked first as the to-be-recommended product set corresponding to the designated user.
[0113] In this embodiment, the fourth number may be 10, and a set of 10 products with the highest matching values is used as a set of products to be recommended corresponding to the specified user.
[0114] S4. Obtain a target product tag set corresponding to each product in the product set to be recommended from the first database, obtain a target user portrait corresponding to the designated user from the second database, input the target product tag set and the target user portrait into a product ranking model, obtain a ranking result of the products in the product set to be recommended, and determine a target recommended product based on the ranking result.
[0115] In this embodiment, the product ranking model can be a trained logistic regression model or a trained neural network model. The product ranking model can be used to accurately sort the products in the recommended product set, and the target recommended product corresponding to the specified user can be determined based on the sorting results.
[0116] This embodiment uses a neural network model as an example to illustrate the training process of the model: historical data of the target application in a preset time period is obtained, and the historical data includes the user's order data. For example, in the historical data, user 1 purchased product 1, then the portrait of user 1 and the product label set of product 1 are used as a positive sample (the labeling information of the positive sample is 1, that is, the real interest value of user 1 to product 1 is 1), and the portrait of user 1 and the product label sets of other products are used as negative samples (the labeling information of the negative sample is 0, that is, the real interest value of user 1 to other products is 0), thereby obtaining a positive sample set and a negative sample set, inputting the positive sample set and the negative sample set into the neural network model to obtain a predicted interest value for each sample, determining the structural parameters of the model by minimizing the loss value between the predicted interest value and the real interest value, and obtaining a trained product ranking model, and the loss value can be calculated by the cross entropy loss function.
[0117] The input of the product ranking model is the target user portrait corresponding to the specified user and the target product label set corresponding to each product in the recommended product set. The output is the predicted interest value of the specified user for each product in the recommended product set. The products can be sorted in descending order according to the predicted interest value, and the fifth product with the highest ranking (for example, 3) is used as the target recommended product corresponding to the specified user.
[0118] After determining the set of products to be recommended corresponding to the designated user based on the updated interest tag set, the method further includes:
[0119] Filtering is performed on the products in the set of products to be recommended to obtain an updated set of products to be recommended.
[0120] In this embodiment, the filtering rules can be customized. For example, the products purchased by the specified user can be filtered, the products temporarily offline can be filtered, the products in the product blacklist can be filtered, the products not within the preset price range can be filtered, etc.
[0121] It can be seen from the above embodiments that the real-time product recommendation method proposed by the present invention first determines the text tag set corresponding to the published text data, and updates the corresponding product tag set based on the text tag set; then, builds a user portrait based on the registration information; then, obtains the target text tag set corresponding to the specified text data, updates the interest tag set of the specified user based on the target text tag set, and determines the product set to be recommended corresponding to the specified user based on the updated interest tag set; finally, the target product tag set corresponding to each product in the product set to be recommended and the target user portrait corresponding to the specified user are input into the product ranking model to obtain the ranking result of the products in the product set to be recommended, and determine the target recommended product. The present invention determines the text tag set when the text data is published and builds the user portrait when the user registers, so that the interest tag set can be updated in real time when the user generates a click behavior, and the product set to be recommended is determined based on the interest tag set, and the products in the recommended product set are accurately ranked based on the user portrait, so as to determine the target recommended product, and ensure the real-time and accuracy of the product recommendation. Therefore, the present invention realizes accurate and real-time product recommendation for users.
[0122] like Figure 2 FIG. 1 is a schematic diagram of modules of a real-time product recommendation device provided in one embodiment of the present invention.
[0123] The real-time product recommendation device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the real-time product recommendation device 100 can include an update module 110, a construction module 120, a determination module 130 and a recommendation module 140. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0124] In this embodiment, the functions of each module / unit are as follows:
[0125] The update module 110 is used to determine the text tag set corresponding to the published text data when it is monitored that the target application publishes text data carrying a product identification, update the product tag set corresponding to the product identification based on the text tag set, and store the text tag set and the product tag set in the first database.
[0126] The determining of the text tag set corresponding to the published text data includes:
[0127] A21, performing word segmentation processing on the published text data to obtain a word set;
[0128] A22, calculating the word frequency of each word in the word set in the published text data;
[0129] A23, obtaining a text data set corresponding to the target application, and calculating a relevance value between each word in the word set and the text data set;
[0130] A24, calculating the importance value of each word in the word set based on the word frequency and the relevance value;
[0131] A25. Filter a first number of words from the word set in descending order of importance as first keywords corresponding to the published text data, and use the set of the first keywords as a text tag set corresponding to the published text data.
[0132] The updating of the product tag set corresponding to the product identification based on the text tag set includes:
[0133] B21, obtaining a set of text label sets of each text data corresponding to the product identification, and obtaining an initial label set corresponding to the product identification;
[0134] B22. Sort the tags in the initial tag set in descending order of importance, extract the second number of tags with the highest order as the second keywords corresponding to the product identification, and use the set of the second keywords as the product tag set corresponding to the product identification.
[0135] The construction module 120 is used to construct a user portrait corresponding to the user identifier based on the registration information when it is monitored that the target application generates registration information carrying the user identifier, and store the user portrait in the second database.
[0136] The constructing a user portrait corresponding to the user identifier based on the registration information includes:
[0137] C21. Obtaining a mapping relationship between an indicator value and a label of each indicator item in the registration information;
[0138] C22. Determine, based on the mapping relationship, a target tag corresponding to the indicator value of each indicator item in the registration information corresponding to the user identifier;
[0139] C23. Use the set of target tags as the user portrait corresponding to the user identifier.
[0140] The determination module 130 is used to obtain a target text tag set corresponding to the specified text data from the first database when it is monitored that a specified user generates a click behavior on a specified text data of the target application, update the interest tag set of the specified user based on the target text tag set, and determine the set of products to be recommended corresponding to the specified user based on the updated interest tag set.
[0141] The updating of the interest tag set of the designated user based on the target text tag set includes:
[0142] D21, acquiring the interest tag set corresponding to the designated user from the third database, merging the interest tag set and the target text tag set to obtain a merged interest tag set;
[0143] D22. Sort the tags in the merged interest tag set in descending order of importance value, extract the third number of tags with the highest order as the third keywords corresponding to the designated user, and use the set of the third keywords as the updated interest tag set corresponding to the designated user.
[0144] The determining the set of products to be recommended corresponding to the designated user based on the updated interest tag set includes:
[0145] E21, matching the updated interest tag set with the product tag set corresponding to each product of the target application, and taking the set of successfully matched tags as the matching tag set corresponding to each product;
[0146] E22. Calculate the total importance value corresponding to each tag in the matching tag set corresponding to each product, and calculate the matching value between the designated user and each product based on the total importance value;
[0147] E23. Sort the products in descending order according to the matching degree values, and use the fourth largest number of products as the to-be-recommended product set corresponding to the designated user.
[0148] The recommendation module 140 is used to obtain the target product tag set corresponding to each product in the product set to be recommended from the first database, obtain the target user portrait corresponding to the specified user from the second database, input the target product tag set and the target user portrait into the product ranking model, obtain the ranking result of the products in the product set to be recommended, and determine the target recommended product based on the ranking result.
[0149] After determining the set of products to be recommended corresponding to the designated user based on the updated interest tag set, the recommendation module 140 is further configured to:
[0150] Filtering is performed on the products in the set of products to be recommended to obtain an updated set of products to be recommended.
[0151] like Figure 3 , which is a schematic diagram of the structure of an electronic device for implementing a real-time product recommendation method provided by an embodiment of the present invention.
[0152] The electronic device 1 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The electronic device 1 can be a computer, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets.
[0153] In this embodiment, the electronic device 1 includes, but is not limited to, a memory 11, a processor 12, and a network interface 13, which can be interconnected and communicated via a system bus. The memory 11 stores a real-time product recommendation program 10, and the real-time product recommendation program 10 can be executed by the processor 12. Figure 3 Only the electronic device 1 having components 11-13 and the real-time product recommendation program 10 is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0154] Among them, the memory 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the electronic device 1; the readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. In this embodiment, the readable storage medium of the memory 11 is generally used to store an operating system and various application software installed on the electronic device 1, such as storing the code of the real-time product recommendation program 10 in an embodiment of the present invention. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
[0155] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 12 is generally used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is used to run the program code stored in the memory 11 or process data, such as running the real-time product recommendation program 10.
[0156] The network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is used to establish a communication connection between the electronic device 1 and a client (not shown in the figure).
[0157] Optionally, the electronic device 1 may further include a user interface, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0158] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0159] The real-time product recommendation program 10 stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 12, the following steps can be implemented:
[0160] When it is monitored that the target application publishes text data carrying a product identifier, determining a text tag set corresponding to the published text data, updating a product tag set corresponding to the product identifier based on the text tag set, and storing the text tag set and the product tag set in a first database;
[0161] When it is monitored that the target application generates registration information carrying a user identifier, a user portrait corresponding to the user identifier is constructed based on the registration information, and the user portrait is stored in a second database;
[0162] When a designated user is detected to have clicked on a designated text data of the target application, a target text tag set corresponding to the designated text data is obtained from the first database, an interest tag set of the designated user is updated based on the target text tag set, and a set of products to be recommended corresponding to the designated user is determined based on the updated interest tag set;
[0163] A target product tag set corresponding to each product in the product set to be recommended is obtained from the first database, a target user portrait corresponding to the designated user is obtained from the second database, the target product tag set and the target user portrait are input into a product ranking model, a ranking result of the products in the product set to be recommended is obtained, and a target recommended product is determined based on the ranking result.
[0164] Specifically, the specific implementation method of the processor 12 for the real-time product recommendation program 10 can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0165] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be non-volatile or non-volatile. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0166] The computer-readable storage medium stores a real-time product recommendation program 10, which can be executed by one or more processors to implement the following steps:
[0167] When it is monitored that the target application publishes text data carrying a product identifier, determining a text tag set corresponding to the published text data, updating a product tag set corresponding to the product identifier based on the text tag set, and storing the text tag set and the product tag set in a first database;
[0168] When it is monitored that the target application generates registration information carrying a user identifier, a user portrait corresponding to the user identifier is constructed based on the registration information, and the user portrait is stored in a second database;
[0169] When a designated user is detected to have clicked on a designated text data of the target application, a target text tag set corresponding to the designated text data is obtained from the first database, an interest tag set of the designated user is updated based on the target text tag set, and a set of products to be recommended corresponding to the designated user is determined based on the updated interest tag set;
[0170] A target product tag set corresponding to each product in the product set to be recommended is obtained from the first database, a target user portrait corresponding to the designated user is obtained from the second database, the target product tag set and the target user portrait are input into a product ranking model, a ranking result of the products in the product set to be recommended is obtained, and a target recommended product is determined based on the ranking result.
[0171] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses 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, and there may be other division methods in actual implementation.
[0172] 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 units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0173] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0174] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0175] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0176] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0177] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0178] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A real-time product recommendation method, It is characterized in that The method comprises: When it is monitored that the target application publishes text data carrying a product identifier, determining a text tag set corresponding to the published text data, updating a product tag set corresponding to the product identifier based on the text tag set, and storing the text tag set and the product tag set in a first database; When it is monitored that the target application generates registration information carrying a user identifier, a user portrait corresponding to the user identifier is constructed based on the registration information, and the user portrait is stored in a second database; When a designated user is monitored to generate a click behavior on a designated text data of the target application, a target text tag set corresponding to the designated text data is obtained from the first database, an interest tag set of the designated user is updated based on the target text tag set, a product set to be recommended corresponding to the designated user is determined based on the updated interest tag set, and a filtering process is performed on the products purchased by the designated user, the products temporarily offline, the products in the product blacklist, and the products not within a preset price range in the product set to be recommended, so as to obtain an updated product set to be recommended, wherein the determining the product set to be recommended corresponding to the designated user based on the updated interest tag set includes: matching the updated interest tag set with the product tag set corresponding to each product of the target application, taking the set of successfully matched tags as the matching tag set corresponding to each product, calculating the total importance value corresponding to each tag in the matching tag set corresponding to each product, calculating the matching value between the designated user and each product based on the total importance value, sorting them in descending order according to the matching value, and taking the set of the fourth number of products ranked top as the product set to be recommended corresponding to the designated user; A target product tag set corresponding to each product in the set of products to be recommended is obtained from the first database, a target user portrait corresponding to the designated user is obtained from the second database, the target product tag set and the target user portrait are input into a product ranking model, a ranking result of the products in the set of products to be recommended after the update is obtained, and a target recommended product is determined based on the ranking result.
2. The real-time product recommendation method according to claim 1, It is characterized in that The determining of the text tag set corresponding to the published text data includes: Performing word segmentation processing on the published text data to obtain a word set; Calculate the word frequency of each word in the word set in the published text data; Obtaining a text data set corresponding to the target application, and calculating a relevance value between each word in the word set and the text data set; Calculate the importance value of each word in the word set based on the word frequency and the relevance value; A first number of words are selected from the word set in descending order of importance as first keywords corresponding to the published text data, and the set of the first keywords is used as a text tag set corresponding to the published text data.
3. The real-time product recommendation method according to claim 1, It is characterized in that The updating of the product tag set corresponding to the product identification based on the text tag set includes: Acquire a set of text label sets of each text data corresponding to the product identification to obtain an initial label set corresponding to the product identification; The tags in the initial tag set are sorted in descending order according to their importance values, a second number of tags with the highest sorting order are extracted as second keywords corresponding to the product identification, and a set of the second keywords is used as a product tag set corresponding to the product identification.
4. The real-time product recommendation method according to claim 1, It is characterized in that The constructing a user portrait corresponding to the user identifier based on the registration information includes: Obtaining a mapping relationship between an indicator value and a label for each indicator item in the registration information; Determine, based on the mapping relationship, a target label corresponding to the indicator value of each indicator item in the registration information corresponding to the user identifier; The set of target tags is used as the user portrait corresponding to the user identifier.
5. The real-time product recommendation method according to claim 2, It is characterized in that The updating of the interest tag set of the designated user based on the target text tag set includes: Acquire the interest tag set corresponding to the designated user from a third database, merge the interest tag set and the target text tag set to obtain a merged interest tag set; Sort the tags in the merged interest tag set in descending order of importance, extract the top third number of tags as the third keywords corresponding to the designated user, and use the set of the third keywords as the updated interest tag set corresponding to the designated user.
6. A real-time product recommendation device, It is characterized in that The device comprises: An update module, for, when monitoring that a target application publishes text data carrying a product identifier, determining a text tag set corresponding to the published text data, updating a product tag set corresponding to the product identifier based on the text tag set, and storing the text tag set and the product tag set in a first database; A construction module, for constructing a user portrait corresponding to the user identity based on the registration information when it is detected that the target application generates registration information carrying the user identity, and storing the user portrait in a second database; a determination module, for, when a designated user is detected to have clicked on a designated text data of the target application, obtaining a target text tag set corresponding to the designated text data from the first database, updating an interest tag set of the designated user based on the target text tag set, determining a product set to be recommended corresponding to the designated user based on the updated interest tag set, filtering products purchased by the designated user, products temporarily offline, products in a product blacklist, and products not within a preset price range in the product set to be recommended, to obtain an updated product set to be recommended, wherein determining the product set to be recommended corresponding to the designated user based on the updated interest tag set comprises: matching the updated interest tag set with a product tag set corresponding to each product of the target application, taking a set of successfully matched tags as a matching tag set corresponding to each product, calculating a total importance value corresponding to each tag in the matching tag set corresponding to each product, calculating a matching value between the designated user and each product based on the total importance value, sorting the products in descending order according to the matching value, and taking a set of the fourth number of products ranked top as the product set to be recommended corresponding to the designated user; The recommendation module is used to obtain the target product label set corresponding to each product in the product set to be recommended from the first database, obtain the target user portrait corresponding to the specified user from the second database, input the target product label set and the target user portrait into the product ranking model, obtain the ranking result of the products in the product set to be recommended, and determine the target recommended product based on the ranking result.
7. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a real-time product recommendation program that can be executed by the at least one processor, and the real-time product recommendation program is executed by the at least one processor so that the at least one processor can perform the real-time product recommendation method according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a real-time product recommendation program, which can be executed by one or more processors to implement the real-time product recommendation method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Recommendation model training method and device, and recommendation method and device
CN110046952A
Information recommendation method and device based on user portrait, equipment and storage medium
CN111797210A
Recall method and device based on user portrait label, equipment and storage medium
CN112231555A
Information recommendation method and device, terminal equipment and computer readable storage medium
CN112818218A
Content recommendation method and device, electronic equipment and storage medium
CN112818230A
