Method, system, electronic device and storage medium for predicting gender attributes of products
By calculating the ratio or difference of gender-tagged products in product categories and historical user portrait data, the gender attributes of products are accurately predicted, solving the problem of difficulty in judging gender attributes in product recommendations in the existing technology, and improving the user shopping experience.
Patent Information
- Application Number
- CN202010001676.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-01-02
AI Technical Summary
The product recommendation method in the existing technology cannot effectively determine the gender attribute of the product, which affects the user's shopping experience.
By determining the category to which the product belongs, and calculating the ratio or difference based on the number of gender-tagged products in the category and the total number of products, it is judged whether the category has gender attributes. If so, the product gender is further predicted based on the number of gender-tagged products; if No, it combines historical user portrait data to determine the gender of purchasing users and predict product gender.
It achieves accurate prediction of product gender attributes, improves the accuracy of product recommendations, and improves user shopping experience.
Smart Images

Figure CN112308647B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, system, electronic device and storage medium for predicting the gender attribute of a product and the gender attribute of a potential purchasing user of the product. Background Art
[0002] In recent years, with the rapid development of e-commerce platforms, the technology of personalized product recommendation has also been greatly improved. Among them, the core content of the product recommendation system is the recommendation method, that is, how to accurately recommend products that are consistent with the user's interests to the user.
[0003] At present, product recommendation methods mainly include content-based recommendations, in which the system uses machine learning methods to obtain products that are consistent with the user's purchasing interests from product feature information (product price, product type, product order volume, etc.). Among them, the gender attribute of the product is one of the important features that affect the effectiveness of the recommendation system. If women's clothing is recommended to male users and men's bags are recommended to female users, it will seriously affect the user's shopping experience. Therefore, accurately determining the gender attribute of the product is one of the key factors that determine the quality of the recommendation system. In addition, the objective attributes of the product are not completely consistent with the gender of its purchasing group. For example, although products in product categories such as flowers and diamonds are suitable for women, the actual purchasing group is mostly men. Usually, such products are purchased by men as gifts for women. Summary of the invention
[0004] The technical problem to be solved by the present invention is that the product recommendation method in the prior art has the defect of being unable to effectively judge the gender attribute of the product, thereby affecting the user's shopping experience. The purpose is to provide a method, system, electronic device and storage medium for predicting the gender attribute of a product.
[0005] The present invention solves the above technical problems through the following technical solutions:
[0006] The present invention provides a method for predicting the gender attribute of a product, the method comprising:
[0007] Determine the product category to which the target product belongs;
[0008] Determining whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category;
[0009] If the product category has a gender attribute, the gender attribute of the target product is predicted according to the number of products with a first gender label in the product category and the number of products with a gender label in the product category.
[0010] Preferably, the prediction method further comprises:
[0011] If the product category does not have a gender attribute, the gender attribute of the purchasing user of the target product is determined based on historical user portrait data, and the gender attribute of the target product is predicted based on the gender attribute of the purchasing user.
[0012] Preferably, the step of determining whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category comprises:
[0013] Calculating a first ratio between the number of products with gender labels in the product category and the total number of products in the product category;
[0014] Determine whether the first ratio is greater than a first set threshold value, if so, determine that the product category has a gender attribute; otherwise, determine that the product category does not have a gender attribute; or,
[0015] Calculate a first difference between the total number of products in the product category and the number of products with gender labels in the product category;
[0016] It is determined whether the first difference is greater than a second set threshold value. If so, it is determined that the product category has a gender attribute; otherwise, it is determined that the product category does not have a gender attribute.
[0017] Preferably, the step of predicting the gender attribute of the target product according to the number of products with the first gender label in the product category and the number of products with the gender label in the product category comprises:
[0018] calculating a second ratio between the number of products in the product category that are provided with the first gender label and the number of products in the product category that are provided with the gender label;
[0019] Determine whether the second ratio is greater than a third set threshold value, and if so, determine that the gender attribute of the target product is the first gender; or,
[0020] Calculating a second difference between the number of products with gender labels in the product category and the number of products with first gender labels in the product category;
[0021] determining whether the second difference is greater than a fourth set threshold, and if so, determining that the gender attribute of the target product is the first gender;
[0022] The first gender includes male or female.
[0023] Preferably, after the step of determining that the gender attribute of the target product is the first gender, the step further includes:
[0024] The gender attribute of the products without gender labels in the product category is determined to be the first gender.
[0025] Preferably, before the step of determining the product category to which the target product belongs, the step further includes:
[0026] Obtain the name information of the target product, and determine whether the name information contains content related to gender. If the name information does not contain content related to gender, determine whether the name information includes content related to gender. If the name information does not contain content related to gender, determine the product category to which the target product belongs.
[0027] If the name information contains content related to gender, it is determined whether the name information contains interference words; if not, it is determined that the gender attribute corresponding to the gender contained in the name information is the gender attribute of the target product.
[0028] Preferably, the step of determining the gender attribute of the user who purchased the target product according to the historical user portrait data, and predicting the gender attribute of the target product according to the gender attribute of the user who purchased the target product comprises:
[0029] Obtaining some of the historical user portrait data;
[0030] The historical user portrait data includes user gender, historical order record information and / or historical click record information;
[0031] Determine the gender attribute of the user who purchased the target product based on the historical user portrait data;
[0032] The gender attribute of the user who purchased the target product is determined as the gender attribute of the target product.
[0033] Preferably, the step of determining the gender attribute of the user who purchased the target product based on the historical user portrait data includes:
[0034] Calculating, according to the historical order record information, a third ratio between the order quantity of users of the first gender and the total order quantity in the historical orders corresponding to the target product;
[0035] Determine whether the third ratio is greater than a fifth set threshold value, and if so, determine that the gender attribute of the user who purchased the target product is the first gender; and / or,
[0036] Calculating, based on the historical click record information, a fourth ratio between the number of clicks by users of the first gender and the total number of clicks in the historical records corresponding to the target product;
[0037] determining whether the fourth ratio is greater than a sixth set threshold, and if so, determining that the gender attribute of the user who purchased the target product is the first gender;
[0038] The first gender includes male or female.
[0039] The present invention also provides a prediction system for the gender attribute of a product, the prediction system comprising a product category determination module, a category gender determination module and a product gender prediction module;
[0040] The product category determination module is used to determine the product category to which the target product belongs;
[0041] The category gender determination module is used to determine whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category;
[0042] If the product category has a gender attribute, the product gender prediction module is used to predict the gender attribute of the target product according to the number of products with a first gender label in the product category and the number of products with a gender label in the product category.
[0043] Preferably, if the product category does not have a gender attribute, the product gender prediction module is used to determine the gender attribute of the purchasing user of the target product based on historical user portrait data, and predict the gender attribute of the target product based on the gender attribute of the purchasing user.
[0044] Preferably, the category gender determination module includes a first ratio calculation unit and a first judgment unit;
[0045] The first ratio calculation unit is used to calculate a first ratio between the number of products with gender labels in the product category and the total number of products in the product category;
[0046] The first judgment unit is used to judge whether the first ratio is greater than a first set threshold value, and if so, it is determined that the product category has a gender attribute; otherwise, it is determined that the product category does not have a gender attribute; or,
[0047] The category gender determination module includes a first difference calculation unit and a second judgment unit;
[0048] The first difference calculation unit is used to
[0049] Calculate a first difference between the total number of products in the product category and the number of products with gender labels in the product category;
[0050] The second judgment unit is used to judge whether the first difference is greater than a second set threshold value. If so, it is determined that the product category has a gender attribute; otherwise, it is determined that the product category does not have a gender attribute.
[0051] Preferably, the product gender prediction module includes a second ratio calculation unit and a third judgment unit;
[0052] The second ratio calculation unit is used to calculate a second ratio between the number of products with a first gender label in the product category and the number of products with a gender label in the product category;
[0053] The third judgment unit is used to judge whether the second ratio is greater than a third set threshold value, and if so, determine that the gender attribute of the target product is the first gender; or,
[0054] The product gender prediction module includes a second difference calculation unit and a fourth judgment unit;
[0055] The second difference calculation unit is used to calculate a second difference between the number of products with gender labels in the product category and the number of products with first gender labels in the product category;
[0056] The fourth judgment unit is used to judge whether the second difference is greater than a fourth set threshold value, and if so, determine that the gender attribute of the target product is the first gender;
[0057] The first gender includes male or female.
[0058] Preferably, the product gender prediction module is further used to determine that the gender attribute of the product without gender label in the product category is the first gender.
[0059] Preferably, the prediction system further includes a judgment module;
[0060] The determination module is used to obtain the name information of the target product and determine whether the name information contains content related to gender. If the name information does not contain content related to gender, the determination module is called to determine the product category.
[0061] The judgment module is also used to judge whether the name information contains interference words when the name information contains gender words. If it does not contain interference words, determine that the gender attribute corresponding to the gender words contained in the name information is the gender attribute of the target product.
[0062] Preferably, the product gender prediction module includes a portrait data acquisition unit, a user gender determination unit and a product gender determination unit;
[0063] The portrait data acquisition unit is used to acquire a number of the historical user portrait data;
[0064] The historical user portrait data includes user gender, historical order record information and / or historical click record information;
[0065] The user gender determination unit is used to determine the gender attribute of the user who purchased the target product according to the historical user portrait data;
[0066] The product gender determination unit is used to determine the gender attribute of the user who purchased the target product as the gender attribute of the target product.
[0067] Preferably, the user gender determination unit includes a third ratio calculation subunit and a first judgment subunit;
[0068] The third ratio calculation subunit is used to calculate a third ratio between the order quantity of users of the first gender and the total order quantity in the historical orders corresponding to the target product according to the historical order record information;
[0069] The first judgment subunit is used to judge whether the third ratio is greater than a fifth set threshold value, and if so, determine that the gender attribute of the user who purchased the target product is the first gender; and / or the user gender determination unit includes a fourth ratio calculation subunit and a second judgment subunit;
[0070] The fourth ratio calculation subunit is used to calculate a fourth ratio between the number of clicks by the first gender user and the total number of clicks in the historical records corresponding to the target product according to the historical click record information;
[0071] The second judgment subunit is used to judge whether the fourth ratio is greater than a sixth set threshold value, and if so, determine that the gender attribute of the purchaser of the target product is the first gender;
[0072] The first gender includes male or female.
[0073] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for predicting the gender attribute of a product when executing the computer program.
[0074] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for predicting the gender attribute of the above-mentioned product are implemented.
[0075] The positive and progressive effects of the present invention are:
[0076] In the present invention, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category; for product categories with gender attributes, the gender attribute of the product is determined by calculating the ratio or difference between the number of products with a certain gender label and the number of all products with gender labels; for product categories without gender attributes, the gender attribute of the user who purchases the product is determined by combining a number of historical user portrait data, and then the gender attribute of the product is determined, that is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with the same interests to users, thereby improving the shopping experience of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 This is a flow chart of the method for predicting the gender attribute of a product according to Example 1 of the present invention.
[0078] Figure 2 This is a first flow chart of the method for predicting the gender attribute of a product according to Embodiment 3 of the present invention.
[0079] Figure 3 This is a second flow chart of the method for predicting the gender attribute of a product according to Embodiment 3 of the present invention.
[0080] Figure 4 This is a module diagram of a system for predicting gender attributes of products according to Example 4 of the present invention.
[0081] Figure 5 This is a module diagram of a system for predicting gender attributes of products according to Example 5 of the present invention.
[0082] Figure 6 This is a module diagram of a system for predicting gender attributes of products according to Example 6 of the present invention.
[0083] Figure 7 This is a schematic diagram of the structure of an electronic device for implementing the method for predicting the gender attribute of a product in Example 7 of the present invention. DETAILED DESCRIPTION
[0084] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0085] Example 1
[0086] like Figure 1 As shown, the method for predicting the gender attribute of a product in this embodiment includes:
[0087] S101. Determine the product category to which the target product belongs;
[0088] S102, determining whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category;
[0089] S103: If the product category has a gender attribute, predict the gender attribute of the target product according to the number of products with a first gender label in the product category and the number of products with a gender label in the product category.
[0090] Herein, the first gender includes male or female.
[0091] In this embodiment, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category. For product categories with gender attributes, the gender attribute of the product is determined by the number of products with a certain gender label and the number of all products with gender labels. That is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with consistent interests to users, thereby improving the user's shopping experience.
[0092] Example 2
[0093] The method for predicting the gender attribute of a product in this embodiment is a further improvement on the method in Embodiment 1. Specifically:
[0094] Before step S101, the following steps are also included:
[0095] Obtain the name information of the target product, and determine whether the name information contains content related to gender. If not, continue to determine whether the name information includes content related to gender. If not, execute step S101.
[0096] If the name information contains content of gender, it is determined whether the name information contains interference words. If it does not contain interference words, it is determined that the gender attribute corresponding to the gender word contained in the name information is the gender attribute of the target product.
[0097] Among them, content containing gender words refers to content that directly includes the words "male" and "female", such as "men's bag", "women's bag", etc.; content related to gender refers to interpersonal relationship vocabulary that indicates gender, such as "mother", "girlfriend", "wife", etc.; interference words refer to descriptive words in other specific fields and are not applicable to Internet shopping platforms, such as "female singer, actress", etc.
[0098] In addition, a first mapping table of interference words is pre-set according to data statistics. When the name information contains gender content and interference words in the first mapping table, the name information is determined to be an interference word that is not suitable for the Internet shopping platform, and the gender attribute recognition operation is not performed at this time.
[0099] A second mapping table between gender-related content and its corresponding gender is pre-set based on data statistics. When the name information does not contain gender-related content but contains gender-related content, the gender attribute of the target product is determined directly based on the gender corresponding to the gender-related content in the second mapping table.
[0100] Step S102 includes:
[0101] Calculate a first difference between the total number of products in the product category and the number of products with gender labels in the product category;
[0102] Determine whether the first difference is greater than a second set threshold value, if so, determine that the product category has a gender attribute; otherwise, determine that the product category does not have a gender attribute. Or,
[0103] Step S102 includes:
[0104] Calculating a first ratio between the number of products with gender labels in the product category and the total number of products in the product category;
[0105] Determine whether the first ratio is greater than a first set threshold value, if so, determine that the product category has a gender attribute; otherwise, determine that the product category does not have a gender attribute;
[0106] Step S103 includes:
[0107] calculating a second ratio between the number of products in the product category that have the first gender label and the number of products in the product category that have the gender label;
[0108] Determine whether the second ratio is greater than a third set threshold value, and if so, determine that the gender attribute of the target product is the first gender; or,
[0109] Calculate a second difference between the number of products with gender labels in the product category and the number of products with first gender labels in the product category;
[0110] It is determined whether the second difference is greater than a fourth set threshold value. If so, the gender attribute of the target product is determined to be the first gender.
[0111] The first set threshold value may be 0.91, and the third set threshold value may be 0.92. The first set threshold value and the second set threshold value may also be adjusted according to actual conditions.
[0112] The following is a detailed description based on an actual situation:
[0113] Some products in the database of general Internet platforms have gender labels, while others do not. When the user inputs "dress" on the Internet platform, the product category to which "dress" belongs is determined to be "skirt" based on the "dress".
[0114] Get the ratio of the number of products with gender labels in all products corresponding to the product category "skirt" in the database to the total number of products under the product category. If the ratio is greater than 0.91, it is determined that the product category "skirt" has a gender attribute; continue to calculate the ratio of the number of products with female labels in all products corresponding to the product category "skirt" to the number of all labeled products. If the ratio is greater than 0.92, it is determined that the gender attribute of "dress" is female.
[0115] Similarly, the second set threshold and the fourth set threshold can also be set according to actual needs, and the first difference and the second difference can be combined to determine whether the product category to which the input "dress" belongs has gender attributes, and if it has gender attributes, determine the gender attribute corresponding to the "dress".
[0116] In addition, after determining that the gender attribute of the target product is the first gender, the following steps are also included:
[0117] The gender attribute of the product without a gender label in the product category is determined to be the first gender, so that the gender attribute corresponding to the product without a gender label in the product category can be determined quickly and accurately.
[0118] In this embodiment, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category; for product categories with gender attributes, the gender attribute of the product is determined by calculating the ratio or difference between the number of products with a certain gender label and the number of all products with gender labels. That is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with consistent interests to users, thereby improving the user's shopping experience.
[0119] Example 3
[0120] like Figure 2 As shown, the method for predicting the gender attribute of a product in this embodiment is a further improvement on Embodiment 2, specifically:
[0121] After step S103, the following steps are also included:
[0122] S104: If the product category does not have a gender attribute, determine the gender attribute of the user who purchased the target product based on historical user portrait data, and predict the gender attribute of the target product based on the gender attribute of the purchasing user.
[0123] like Figure 3As shown, step S104 includes:
[0124] S1041. Obtain some historical user portrait data;
[0125] Among them, the historical user portrait data includes user gender, as well as historical order record information and / or historical click record information.
[0126] S1042. Determine the gender attribute of the user who purchased the target product based on the historical user portrait data;
[0127] Specifically, according to the historical order record information, a third ratio between the order quantity of the first gender user and the total order quantity in the historical orders corresponding to the target product is calculated;
[0128] Determine whether the third ratio is greater than a fifth set threshold value, and if so, determine that the gender attribute of the purchaser of the target product is the first gender; and / or,
[0129] Calculate, based on the historical click record information, a fourth ratio between the number of clicks by users of the first gender and the total number of clicks in the historical records corresponding to the target product;
[0130] determining whether the fourth ratio is greater than a sixth set threshold value, and if so, determining that the gender attribute of the purchaser of the target product is the first gender;
[0131] S1043: Determine the gender attribute of the user who purchased the target product as the gender attribute of the target product.
[0132] The following is a detailed description based on an actual situation:
[0133] Generally speaking, diamond jewelry, plush fabrics, and gender products suitable for women are usually purchased by male users. At this time, diamond jewelry, plush fabrics, gender products, and other products with female gender attributes should be recommended to men. Therefore, the gender attributes of the products need to be adjusted according to the gender of the users who actually purchase the products to avoid recommending products that do not match the gender or interests of users.
[0134] Specifically, based on information such as the user's historical order record information and / or historical click record information, it is calculated whether each target product is more popular among men or women; if the order volume of a target product generated by male users is much larger than the order volume generated by female users, then the gender attribute of the potential purchasing user of the target product is considered to be male, and the Internet platform will automatically recommend diamond jewelry, plush fabrics, and gender products to male users.
[0135] In this embodiment, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category; for product categories with gender attributes, the gender attribute of the product is determined by calculating the ratio or difference between the number of products with a certain gender label and the number of all products with gender labels; for product categories without gender attributes, the gender attribute of the user who purchases the product is determined by combining a number of historical user portrait data, and then the gender attribute of the product is determined, that is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with consistent interests to users, thereby improving the user's shopping experience.
[0136] Example 4
[0137] like Figure 4 As shown, the system for predicting the gender attribute of a product in this embodiment includes a product category determination module 1 , a category gender determination module 2 and a product gender prediction module 3 .
[0138] The product category determination module 1 is used to determine the product category to which the target product belongs;
[0139] The category gender determination module 2 is used to determine whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category;
[0140] If the product category has a gender attribute, the product gender prediction module 3 is used to predict the gender attribute of the target product according to the number of products with a first gender label in the product category and the number of products with a gender label in the product category.
[0141] Herein, the first gender includes male or female.
[0142] In this embodiment, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category. For product categories with gender attributes, the gender attribute of the product is determined by the number of products with a certain gender label and the number of all products with gender labels. That is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with consistent interests to users, thereby improving the user's shopping experience.
[0143] Example 5
[0144] like Figure 5 As shown, the prediction system of the gender attribute of the product in this embodiment is a further improvement of the embodiment 4, specifically:
[0145] The prediction system also includes a judgment module 4 .
[0146] The judgment module 4 is used to obtain the name information of the target product and judge whether the name information contains gender content. If it does not contain gender content, it continues to judge whether the name information includes content related to gender. If it does not contain content related to gender, the product category determination module 1 is called.
[0147] The judgment module 4 is also used to judge whether the name information contains interference words when the name information contains gender words. If it does not contain interference words, the gender attribute corresponding to the gender words contained in the name information is determined as the gender attribute of the target product.
[0148] Among them, content containing gender words refers to content that directly includes the words "male" and "female", such as "men's bag", "women's bag", etc.; content related to gender refers to interpersonal relationship vocabulary that indicates gender, such as "mother", "girlfriend", "wife", etc.; interference words refer to descriptive words in other specific fields and are not applicable to Internet shopping platforms, such as "female singer, actress", etc.
[0149] In addition, a first mapping table of interference words is pre-set according to data statistics. When the name information contains gender content and interference words in the first mapping table, the name information is determined to be an interference word that is not suitable for the Internet shopping platform, and the gender attribute recognition operation is not performed at this time.
[0150] A second mapping table between gender-related content and its corresponding gender is pre-set based on data statistics. When the name information does not contain gender-related content but contains gender-related content, the gender attribute of the target product is determined directly based on the gender corresponding to the gender-related content in the second mapping table.
[0151] The category gender determination module 2 includes a first ratio calculation unit 5 and a first judgment unit 6 .
[0152] The first ratio calculation unit 5 is used to calculate a first ratio between the number of products with gender labels in the product category and the total number of products in the product category;
[0153] The first judgment unit 6 is used to judge whether the first ratio is greater than a first set threshold value. If so, it is determined that the product category has a gender attribute; otherwise, it is determined that the product category does not have a gender attribute;
[0154] The first set threshold value may be 0.91, and the third set threshold value may be 0.92. The first set threshold value and the second set threshold value may also be adjusted according to actual conditions.
[0155] The following is a detailed description based on an actual situation:
[0156] Some products in the database of general Internet platforms have gender labels, while others do not. After obtaining the user's input of "dress" on the Internet platform, the product category to which "dress" belongs is determined to be "skirt";
[0157] Get the ratio of the number of products with gender labels in all products corresponding to the product category "skirt" in the database to the total number of products under the product category. If the ratio is greater than 0.91, it is determined that the product category "skirt" has a gender attribute; continue to calculate the ratio of the number of products with female labels in all products corresponding to the product category "skirt" to the number of all labeled products. If the ratio is greater than 0.92, it is determined that the gender attribute of "dress" is female.
[0158] Similarly, the second threshold and the fourth threshold can be set according to actual needs, and the first difference and the second difference can be combined to determine whether the product category to which the input "dress" belongs has a gender attribute, and if it has a gender attribute, determine the gender attribute corresponding to "dress". Or,
[0159] The category gender determination module 2 includes a first difference calculation unit 7 and a second judgment unit 8 .
[0160] The first difference calculation unit 7 is used to calculate a first difference between the total number of products in the product category and the number of products with gender labels in the product category.
[0161] The second judgment unit 8 is used to judge whether the first difference is greater than a second set threshold value. If so, it is determined that the product category has a gender attribute; otherwise, it is determined that the product category does not have a gender attribute.
[0162] The product gender prediction module 3 includes a second ratio calculation unit 9 and a third judgment unit 10 .
[0163] The second ratio calculation unit 9 is used to calculate a second ratio between the number of products with the first gender label in the product category and the number of products with the gender label in the product category;
[0164] The third judgment unit 10 is used to judge whether the second ratio is greater than a third set threshold value. If so, the gender attribute of the target product is determined to be the first gender; or,
[0165] The product gender prediction module 3 includes a second difference calculation unit 11 and a fourth judgment unit 12 .
[0166] The second difference calculation unit 11 is used to calculate a second difference between the number of products with gender labels in the product category and the number of products with first gender labels in the product category.
[0167] The fourth judgment unit 12 is used to judge whether the second difference is greater than a fourth set threshold value. If so, the gender attribute of the target product is determined to be the first gender.
[0168] The product gender prediction module 3 is also used to determine that the gender attribute of the product without gender label in the product category is the first gender, so that the gender attribute corresponding to the product without gender label in the product category can be determined quickly and accurately.
[0169] In this embodiment, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category; for product categories with gender attributes, the gender attribute of the product is determined by calculating the ratio or difference between the number of products with a certain gender label and the number of all products with gender labels. That is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with consistent interests to users, thereby improving the user's shopping experience.
[0170] Example 6
[0171] like Figure 6 As shown, the prediction system for the gender attribute of the product in this embodiment is a further improvement of the embodiment 5, specifically:
[0172] If the product category does not have a gender attribute, the product gender prediction module 3 is used to determine the gender attribute of the purchasing user of the target product based on the historical user portrait data, and predict the gender attribute of the target product based on the gender attribute of the purchasing user.
[0173] Specifically, the product gender prediction module 3 includes a portrait data acquisition unit 13 , a user gender determination unit 14 and a product gender determination unit 15 .
[0174] The portrait data acquisition unit 13 is used to acquire some historical user portrait data;
[0175] Among them, the historical user portrait data includes user gender, as well as historical order record information and / or historical click record information.
[0176] The user gender determination unit 14 is used to determine the gender attribute of the user who purchased the target product based on the historical user portrait data;
[0177] Wherein, the user gender determination unit 14 includes a third ratio calculation subunit and a first judgment subunit;
[0178] The third ratio calculation subunit is used to calculate a third ratio between the order quantity of the first gender user and the total order quantity in the historical orders corresponding to the target product according to the historical order record information;
[0179] The first judgment subunit is used to judge whether the third ratio is greater than a fifth set threshold value, and if so, determine that the gender attribute of the purchaser of the target product is the first gender; and / or,
[0180] The user gender determination unit 14 includes a fourth ratio calculation subunit and a second judgment subunit;
[0181] The fourth ratio calculation subunit is used to calculate a fourth ratio between the number of clicks by users of the first gender and the total number of clicks in the historical records corresponding to the target product according to the historical click record information;
[0182] The second judgment subunit is used to judge whether the fourth ratio is greater than a sixth set threshold value, and if so, determine that the gender attribute of the purchaser of the target product is the first gender;
[0183] The product gender determination unit 15 is used to determine the gender attribute of the user who purchased the target product as the gender attribute of the target product.
[0184] The following is a detailed description based on an actual situation:
[0185] Generally speaking, diamond jewelry, plush fabrics, and gender products suitable for women are usually purchased by male users. At this time, diamond jewelry, plush fabrics, gender products, and other products with female gender attributes should be recommended to men. Therefore, the gender attributes of the products need to be adjusted according to the gender of the users who actually purchase the products to avoid recommending products that do not match the gender or interests of users.
[0186] Specifically, based on information such as the user's historical order record information and / or historical click record information, it is calculated whether each target product is more popular among men or women; if the order volume of a target product generated by male users is much larger than the order volume generated by female users, then the gender attribute of the potential purchasing user of the target product is considered to be male, and the Internet platform will automatically recommend diamond jewelry, plush fabrics, and gender products to male users.
[0187] In this embodiment, the product category to which the target product belongs is determined, and whether it has a gender attribute is determined based on the number of products with gender labels and the total number of products under the product category; for product categories with gender attributes, the gender attribute of the product is determined by calculating the ratio or difference between the number of products with a certain gender label and the number of all products with gender labels; for product categories without gender attributes, the gender attribute of the user who purchases the product is determined by combining a number of historical user portrait data, and then the gender attribute of the product is determined, that is, by accurately predicting the gender attribute corresponding to each product, it is possible to accurately and effectively recommend products with consistent interests to users, thereby improving the user's shopping experience.
[0188] Example 7
[0189] Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment 7 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the method for predicting the gender attribute of a product in any one of Embodiments 1 to 3 is implemented. Figure 7 The electronic device 30 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0190] like Figure 7 As shown, the electronic device 30 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).
[0191] The bus 33 includes a data bus, an address bus, and a control bus.
[0192] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .
[0193] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0194] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32, such as the method for predicting the gender attribute of a product in any one of Embodiments 1 to 3 of the present invention.
[0195] The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 35. Furthermore, the model generating device 30 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. Figure 7As shown, the network adapter 36 communicates with other modules of the model-generated device 30 via the bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0196] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0197] Example 8
[0198] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method for predicting the gender attribute of a product in any one of Embodiments 1 to 3 are implemented.
[0199] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0200] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps in the method for predicting the gender attributes of a product in any one of embodiments 1 to 3.
[0201] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0202] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that these are only examples, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A method for predicting the gender attribute of a product, characterized in that: The prediction method comprises: Determine the product category to which the target product belongs; Determining whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category; If the product category has a gender attribute, predicting the gender attribute of the target product according to the number of products with a first gender label in the product category and the number of products with a gender label in the product category; The step of determining the product category to which the target product belongs also includes: Obtain the name information of the target product, and determine whether the name information contains gender information; If the name information does not contain the content of gender, then executing the step of determining the product category to which the target product belongs; If the name information contains content related to gender, determining whether the name information contains interference words in a preset first mapping table; If the name information contains interference words in the first mapping table, the gender attribute of the target product is not determined according to the content of the gender word contained in the name information; If the name information does not contain the interference words in the first mapping table, determining that the gender attribute corresponding to the gender word contained in the name information is the gender attribute of the target product; The step of determining whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category comprises: Calculating a first ratio between the number of products with gender labels in the product category and the total number of products in the product category; Determine whether the first ratio is greater than a first set threshold value, if so, determine that the product category has a gender attribute; otherwise, determine that the product category does not have a gender attribute; or, Calculate a first difference between the total number of products in the product category and the number of products with gender labels in the product category; Determining whether the first difference is greater than a second set threshold, if so, determining that the product category has a gender attribute; otherwise, determining that the product category does not have a gender attribute; The prediction method further comprises: If the product category does not have a gender attribute, determining the gender attribute of the user who purchased the target product based on historical user portrait data, and predicting the gender attribute of the target product based on the gender attribute of the user who purchased the target product; The step of determining the gender attribute of the purchasing user of the target product according to the historical user portrait data, and predicting the gender attribute of the target product according to the gender attribute of the purchasing user comprises: Obtaining some of the historical user portrait data; The historical user portrait data includes user gender, historical order record information and / or historical click record information; Determine the gender attribute of the user who purchased the target product based on the historical user portrait data; Determine the gender attribute of the user who purchased the target product as the gender attribute of the target product; The step of determining the gender attribute of the user who purchased the target product according to the historical user portrait data includes: Calculating, according to the historical order record information, a third ratio between the order quantity of users of the first gender and the total order quantity in the historical orders corresponding to the target product; Determine whether the third ratio is greater than a fifth set threshold value, and if so, determine that the gender attribute of the user who purchased the target product is the first gender; and / or, Calculating, based on the historical click record information, a fourth ratio between the number of clicks by users of the first gender and the total number of clicks in the historical records corresponding to the target product; determining whether the fourth ratio is greater than a sixth set threshold, and if so, determining that the gender attribute of the user who purchased the target product is the first gender; The first gender includes male or female.
2. The method for predicting the gender attribute of a product according to claim 1, characterized in that: The step of predicting the gender attribute of the target product according to the number of products with the first gender label in the product category and the number of products with the gender label in the product category comprises: calculating a second ratio between the number of products in the product category that are provided with the first gender label and the number of products in the product category that are provided with the gender label; Determine whether the second ratio is greater than a third set threshold value, and if so, determine that the gender attribute of the target product is the first gender; or, Calculating a second difference between the number of products with gender labels in the product category and the number of products with first gender labels in the product category; determining whether the second difference is greater than a fourth set threshold, and if so, determining that the gender attribute of the target product is the first gender; The first gender includes male or female.
3. The method for predicting the gender attribute of a product according to claim 2, characterized in that: After the step of determining that the gender attribute of the target product is the first gender, the following step is further included: The gender attribute of the products without gender labels in the product category is determined to be the first gender.
4. The method for predicting the gender attribute of a product according to claim 1, characterized in that: If the name information does not contain gender information, before executing the step of determining the product category to which the target product belongs, the step further includes: Continue to determine whether the name information includes content associated with gender. If it does not include content associated with gender, execute the step of determining the product category to which the target product belongs.
5. A system for predicting gender attributes of a product, characterized in that: The prediction system includes a product category determination module, a category gender determination module and a product gender prediction module; The product category determination module is used to determine the product category to which the target product belongs; The category gender determination module is used to determine whether the product category has a gender attribute according to the number of products with gender labels in the product category and the total number of products in the product category; If the product category has a gender attribute, the product gender prediction module is used to predict the gender attribute of the target product according to the number of products with a first gender label in the product category and the number of products with a gender label in the product category; The prediction system also includes a judgment module; The judgment module is used to obtain the name information of the target product and judge whether the name information contains the content of the gender word; if the name information does not contain the content of the gender word, call the product category determination module to execute the step of determining the product category to which the target product belongs; if the name information contains the content of the gender word, judge whether the name information contains the interference words in the preset first mapping table; if the name information contains the interference words in the first mapping table, the gender attribute of the target product is not determined according to the content of the gender word contained in the name information; if the name information does not contain the interference words in the first mapping table, call the product category determination module to determine that the gender attribute corresponding to the gender word contained in the name information is the gender attribute of the target product; The category gender determination module includes a first ratio calculation unit and a first judgment unit; The first ratio calculation unit is used to calculate a first ratio between the number of products with gender labels in the product category and the total number of products in the product category; The first judgment unit is used to judge whether the first ratio is greater than a first set threshold value, and if so, it is determined that the product category has a gender attribute; otherwise, it is determined that the product category does not have a gender attribute; or, The category gender determination unit includes a first difference calculation unit and a second judgment unit; The first difference calculation unit is used to calculate a first difference between the total number of products in the product category and the number of products with gender labels in the product category; The second judgment unit is used to judge whether the first difference is greater than a second set threshold value, and if so, determine that the product category has a gender attribute; otherwise, determine that the product category does not have a gender attribute; If the product category does not have a gender attribute, the product gender prediction module is used to determine the gender attribute of the purchasing user of the target product based on historical user portrait data, and predict the gender attribute of the target product based on the gender attribute of the purchasing user; The product gender prediction module includes a portrait data acquisition unit, a user gender determination unit and a product gender determination unit; The portrait data acquisition unit is used to acquire a number of historical user portrait data; The historical user portrait data includes the user's gender, as well as historical order record information and / or historical click record information; The user gender determination unit is used to determine the gender attribute of the user who purchased the target product based on the historical portrait data; The product gender determination unit is used to determine the gender attribute of the user who purchased the target product as the gender attribute of the target product; The user gender determination unit includes a third ratio calculation subunit and a first judgment subunit; The third ratio calculation subunit is used to calculate a third ratio between the order quantity of users of the first gender and the total order quantity in the historical orders corresponding to the target product according to the historical order record information; The first judgment subunit is used to judge whether the third ratio is greater than a fifth set threshold value, and if so, determine that the gender attribute of the purchaser of the target product is the first gender; and / or, The user gender determination unit includes a fourth ratio calculation subunit and a second judgment subunit; The fourth ratio calculation subunit is used to calculate a fourth ratio between the number of clicks by users of the first gender and the total number of clicks in the historical records corresponding to the target product according to the historical click record information; The second judgment subunit is used to judge whether the fourth ratio is greater than a sixth set threshold value, and if so, determine that the gender of the purchaser of the target product is the first gender; The first gender includes male or female.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for predicting the gender attribute of the product according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for predicting the gender attribute of a product according to any one of claims 1 to 4 are implemented.
