Commodity category prediction method, device, equipment, system and storage medium
By conducting category classification and probability distribution analysis on product release information on second-hand e-commerce platforms, the target category is predicted, which solves the problem of low efficiency and accuracy in user selection of product categories and increases the probability of product sales.
Patent Information
- Application Number
- CN202310409994.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-22
AI Technical Summary
In second-hand e-commerce platforms, the efficiency and accuracy of users selecting product categories are low. Especially when there are many categories, it takes a long time and is highly subjective, which affects the probability of the product being sold.
By determining the release characteristics corresponding to the product release information input by the user, perform category classification, obtain the category probability distribution, select candidate categories, and predict the target category from them, improving the efficiency and accuracy of product category determination.
It achieves quick and accurate determination of product categories, reduces user input costs and subjectivity, improves product sales efficiency, and ensures that products are listed in the correct category.
Smart Images

Figure CN118822604A_ABST
Abstract
Description
Technical Field
[0001] The implementation methods in this specification relate to the field of second-hand e-commerce technology, specifically to commodity category prediction technology under the field of second-hand e-commerce technology, and more specifically to a commodity category prediction method, device, equipment, system and storage medium. Background Art
[0002] A second-hand e-commerce platform is a trading platform for second-hand goods. When users sell second-hand goods on a second-hand e-commerce platform, they need to publish the second-hand goods on the second-hand e-commerce platform under the category to which the second-hand goods belong, so as to ensure the probability of the goods being sold. At present, users usually select the category to which the goods to be sold belong from all the categories on the second-hand e-commerce platform. When there are many categories, it takes a long time to select the category to which the goods to be sold belong, which affects the efficiency of determining the product category. In addition, users choose the category to which the goods to be sold belong by themselves. Due to their lack of understanding of the category system, they are highly subjective, which affects the accuracy of the selected product category. Summary of the invention
[0003] Multiple embodiments in this specification provide a product category prediction method, device, equipment, system and storage medium to solve the problem of low efficiency and accuracy in determining product categories in the existing technology.
[0004] The technical solutions proposed in this application are as follows:
[0005] One embodiment of the present specification provides a commodity category prediction method, including:
[0006] Determine a publishing feature corresponding to the product publishing information input by the user, wherein the publishing feature is a feature that characterizes the category to which the product belongs;
[0007] Classifying the release feature into categories to obtain a category probability distribution corresponding to at least one category level; the category probability distribution includes categories and category probabilities corresponding to the categories, and the category probabilities corresponding to the categories represent the probability that the release feature belongs to the category;
[0008] Determine candidate categories corresponding to the category level according to the category probability distribution corresponding to the category level;
[0009] The product release information and the corresponding target category are selected from multiple candidate categories according to the category probabilities corresponding to the candidate categories.
[0010] One embodiment of the present specification provides a commodity category prediction device, including:
[0011] A feature determination module, used to determine the publishing feature corresponding to the product publishing information input by the user, wherein the publishing feature is a feature that characterizes the category to which the product belongs;
[0012] A category classification module, used to classify the release feature into categories to obtain a category probability distribution corresponding to at least one category level; the category probability distribution includes categories and category probabilities corresponding to the categories, and the category probabilities corresponding to the categories represent the probability that the release feature belongs to the category;
[0013] A category determination module, configured to determine a candidate category corresponding to the category level according to a probability distribution of categories corresponding to the category level;
[0014] The category selection module is used to select a target category corresponding to the product release information from multiple candidate categories according to the category probabilities corresponding to the candidate categories.
[0015] One embodiment of the present specification provides a commodity category prediction device, including: a memory and a processor;
[0016] Wherein, the memory is connected to the processor and is used to store programs;
[0017] The processor is used to implement the above-mentioned commodity category prediction method by running the program in the memory.
[0018] One embodiment of the present specification provides a commodity category prediction system, including: a user terminal and a transaction platform;
[0019] The user terminal is used to obtain the commodity release information input by the user, and send the commodity release information to the trading platform;
[0020] The trading platform is used to execute the processing steps of the above commodity category prediction method;
[0021] The user terminal is also used to receive and display the target category sent by the trading platform.
[0022] One embodiment of the present specification provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned commodity category prediction method is implemented.
[0023] The multiple implementation methods provided in this specification determine the product release information input by the user and the corresponding release features that characterize the category to which the product belongs; classify the release features into categories to obtain a category probability distribution corresponding to at least one category level; the category probability distribution includes categories and category probabilities corresponding to the categories, and the category probability corresponding to the category characterizes the probability that the release features belong to the category; according to the category probability distribution corresponding to the category level, determine the candidate category corresponding to the category level; according to the category probability corresponding to the candidate category, select the target category corresponding to the product release information from multiple candidate categories. By adopting the technical solution of the present application, the product release information and the corresponding category can be directly predicted based on the product release information, which improves the efficiency of determining the product category, and compared with manually determining the product category, the subjectivity of determining the product category and the input cost of the user are reduced, thereby improving the accuracy of determining the product category, assisting users to mount the released products under the correct category, thereby improving the sales efficiency of the products. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0025] Figure 1 This is an application scenario of a commodity category prediction method provided in an embodiment of the present application.
[0026] Figure 2 It is a flowchart of a commodity category prediction method provided in an embodiment of the present application.
[0027] Figure 3 It is a structural diagram of a text category classification model provided in an embodiment of the present application.
[0028] Figure 4 It is a flowchart of another commodity category prediction method provided in an embodiment of the present application.
[0029] Figure 5 It is a flowchart of another commodity category prediction method provided in an embodiment of the present application.
[0030] Figure 6 It is a schematic diagram of the overall process of commodity category prediction provided by an embodiment of the present application.
[0031] Figure 7 It is a structural diagram of a commodity category prediction device provided in an embodiment of the present application.
[0032] Figure 8It is a structural diagram of a commodity category prediction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] Overview
[0034] E-commerce platforms are platforms for commodity trading, where both commodity sales and commodity purchases can be made. Second-hand commodity trading has the advantages of low prices and resource conservation, and has gradually gained popularity among people in modern society, leading to the rapid development of second-hand commodity trading platforms. Users can publish second-hand commodities for sale through second-hand commodity trading platforms, and can also purchase the second-hand commodities they need through second-hand commodity trading platforms.
[0035] When users sell second-hand goods through a second-hand goods trading platform, they need to publish the product information of the second-hand goods on the second-hand goods trading platform so that buyers can browse the second-hand goods from the second-hand goods platform. The goods on the second-hand goods trading platform are classified and stored according to the categories to which the goods belong. When buyers need a certain type of goods, they can directly search for all goods under the category by selecting or entering the category corresponding to the type, and thus select the goods they need. Therefore, when users publish product information through a second-hand goods trading platform, they need to publish the product information under the category to which it belongs, so as to ensure the probability of the product being sold.
[0036] In a second-hand goods trading platform, users need to select the category to which the goods to be published belong, so that the product information of the goods can be published and stored in the category to which it belongs. At present, users usually select the category to which the goods to be sold belong from all the categories on the second-hand e-commerce platform. However, when there are many categories, it takes a long time to select the category to which the goods to be sold belong, which affects the efficiency of determining the product category. In addition, the user's selection of the category to which the goods to be sold belong is highly subjective, which affects the accuracy of the selected product category.
[0037] Therefore, it is necessary to provide a commodity category prediction method, device, equipment, system and storage medium, which can directly predict the category corresponding to the commodity release information based on the commodity release information, thereby improving the efficiency of determining the commodity category, and compared with manually determining the commodity category, reducing the subjectivity of determining the commodity category and the user's input cost, thereby improving the accuracy of determining the commodity category, assisting users to mount the released commodities under the correct category, thereby improving the sales efficiency of the commodities.
[0038] Example scenario
[0039] Figure 1 This is an application scenario of a commodity category prediction method provided by an embodiment of the present application, such as Figure 1In the application scenario shown, a commodity category prediction system is provided. In this embodiment, the commodity category prediction system is used to perform commodity category prediction. The commodity category prediction system includes: a user terminal 10 and a trading platform 20. The user terminal 10 is connected to the trading platform 20 to perform data interaction. The trading platform 20 in this embodiment is used to implement the commodity category prediction method in the specific implementation method of the specification.
[0040] Specifically, the user can input the commodity release information of the commodity to be sold by the user through the user terminal 10, and the user terminal 10 sends the commodity release information to the trading platform 20. The trading platform 20 first determines the release feature corresponding to the commodity release information input by the user, wherein the release feature is a feature that characterizes the category to which the commodity belongs. Then, the release feature is classified into categories to obtain a category probability distribution corresponding to at least one category level, and according to the category probability distribution corresponding to the category level, the candidate category corresponding to the category level and the category probability corresponding to the candidate category are determined. Finally, according to the category probability corresponding to the candidate category, the target category corresponding to the commodity release information is selected from multiple candidate categories. Among them, the category probability corresponding to the category level includes the category under the category level and the category probability corresponding to each category, and the category probability corresponding to the category characterizes the probability that the release feature belongs to the category. After the trading platform 20 predicts the target category corresponding to the commodity release information, it sends the target category to the user terminal 10 that publishes the commodity release information, so that the user terminal 10 displays the target category, so that the user can select the category to which the commodity release information finally belongs from the target category. Compared to manually selecting the category to which the product release information belongs from all categories, the trading platform 20 first predicts the target category corresponding to the product release information, and the user then selects the final category from the target category. This can improve the efficiency of determining the product category and reduce the subjectivity of the product category and the user's input cost, thereby improving the accuracy of determining the product category and assisting users to mount the released products under the correct category, thereby improving the sales efficiency of the products.
[0041] Furthermore, in this embodiment, when classifying the release features into categories for different category levels, the category classification of various category levels can be performed in parallel to obtain the category probability distribution corresponding to each category level, thereby improving the efficiency of commodity category prediction.
[0042] Furthermore, in this embodiment, the product release information includes: text information and image information. The trading platform 20 determines the release features corresponding to the product release information by first preprocessing the image information and the text information respectively, obtaining the image features corresponding to the image information and the text features corresponding to the text information; then, the image features are classified into categories at the first category level to obtain the image category probability distribution corresponding to the image features; finally, the probability corresponding to the aggregated category in the image category probability distribution is used as the weight of the aggregated category, and all aggregated categories are weightedly aggregated to obtain the prior features corresponding to the product release information, wherein the aggregated category is the category corresponding to the first category level; and the prior features are feature spliced with the text features to obtain the release features. Since the release features determined by the trading platform 20 include the prior features obtained by pre-classifying the image information of the product to be released contained in the product release information, the classification accuracy of the trading platform 20 when classifying the release features can be improved, thereby improving the prediction accuracy of the product category.
[0043] Further, the trading platform 20 stores the categories whose number of sold goods is less than a preset sales volume threshold, and / or whose click volume is less than a preset click volume threshold as cold start categories. When training for category classification, the number of goods or click volume under the cold start category is small, so that the training data for predicting the category probability of the cold start category is small, resulting in low accuracy in determining the category probability corresponding to the cold start category. Therefore, in practical applications, when classifying the release features, the category probability corresponding to the cold start category cannot be accurately determined. The trading platform 20 can also determine, from the pre-stored cold start categories, the category that matches the text feature corresponding to the text information included in the product release information as the top target category corresponding to the product release information, and also transmit the top target category to the user terminal 10 for display, so that the category in the cold start category that matches the product release information can be determined, thereby improving the accuracy of product category prediction.
[0044] Furthermore, the trading platform 20 can sort the target categories according to the weights corresponding to the target categories and the downgraded flags carried by the target categories to obtain a first category sequence, and insert the top target category before the first category in the first category sequence to obtain a second category sequence, so that the user terminal 10 displays each target category in the second category sequence according to the category order of the second category sequence. Among them, the weight corresponding to the target category is calculated based on the category probability corresponding to the target category and the category probability corresponding to the parent category to which the target category belongs. The target category is a subcategory of the parent category to which the target category belongs, and the downgraded flag is used to characterize whether the category is downgraded. By sorting and outputting the target categories, the inspiration effect of the target category on the user's selection of the category to which the product belongs can be improved.
[0045] System Architecture
[0046] The implementation method of this specification provides a system architecture for commodity category prediction, which may include a client and a server. The client may be an electronic device with network access capability. Specifically, for example, the client may be a desktop computer, a tablet computer, a laptop computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a television, a smart speaker, a microphone, etc. Among them, smart wearable devices include but are not limited to smart bracelets, smart watches, smart glasses, smart helmets, smart necklaces, etc. Alternatively, the client may also be software that can be run in the electronic device. The server may be an electronic device with certain computing and processing capabilities. It may have a network communication module, a processor, and a memory, etc. Of course, the server may also refer to software running in the electronic device. The server may also be a distributed server, which may be a system with multiple processors, memories, network communication modules, etc. operating in collaboration. Alternatively, the server may also be a server cluster formed by several servers. Alternatively, with the development of science and technology, the server may also be a new technical means that can realize the corresponding functions of the implementation method of the specification. For example, it may be a new form of "server" based on quantum computing.
[0047] exist Figure 1 In the application scenario shown, the trading platform 20 can be built on the server of this embodiment.
[0048] Example Method
[0049] One embodiment of the present specification provides a commodity category prediction method, which can be applied to the server in the above system architecture, and specifically, can be applied to the trading platform 20 built on the server in the above system architecture. Figure 2 is a flowchart of a commodity category prediction method provided in an embodiment of the present application, see Figure 2 As shown, the method may include the following steps.
[0050] Step S101: Determine the publishing features corresponding to the product publishing information input by the user.
[0051] When a user needs to sell goods, the user can use the user terminal 10 to input the product release information of the goods to be sold. After the user terminal 10 obtains the product release information, it transmits the product release information to the trading platform 20. The trading platform 20 determines the release feature corresponding to the product release information, wherein the release feature is a feature that characterizes the category to which the goods belong. In this embodiment, the product release information includes text information of the goods to be sold, and the text information is information input by the user to describe the goods to be sold, such as "new babycare diapers, xx1 size four packs 200 free shipping", wherein the product name (diapers), product brand (babycare), product size (xx1 code), etc. in the text information can all characterize the category to which the goods belong. Therefore, the release feature corresponding to the product release information is also a feature that can characterize the category to which the goods belong. When determining the release feature corresponding to the product release information input by the user, the text information in the product release information is preprocessed and sent to a text classification network (such as a TextCNN network) to extract sentence features, thereby determining the text feature corresponding to the text information, and using the text feature as the release feature corresponding to the product release information. The text preprocessing of the text information includes performing character normalization and symbol preprocessing on the text information to obtain text features corresponding to the text information. In this embodiment, a convolutional neural network can be used to preprocess the text information, thereby extracting sentence vector features corresponding to the text information as text features corresponding to the text information.
[0052] Furthermore, in this embodiment, when a user uses the user terminal 10 to input text information of the goods to be sold, the user can also upload the image information of the goods to be sold at the same time, so that the goods release information obtained by the trading platform 20 includes text information and image information, and the image features corresponding to the image information are used to first classify the image features into categories, and the classification results are used as the prior knowledge of the text classification network. Based on the prior knowledge, the category classification is then performed, which can improve the accuracy of the category classification of the release features. That is, when the goods release information includes text information and image information, determining the release features corresponding to the goods release information input by the user specifically includes the following steps:
[0053] First, the image information and the text information are preprocessed respectively to obtain image features corresponding to the image information and text features corresponding to the text information.
[0054] This embodiment performs text preprocessing on the text information in the product release information, sends it to the classification network of this article to extract sentence features, and obtains text features corresponding to the text information. Image preprocessing is performed on the image information in the product release information to obtain image features corresponding to the image information. Among them, the text preprocessing of the text information can use a convolutional neural network, so as to propose sentence vector features corresponding to the text information as the text features corresponding to the text information. Image preprocessing of image information can eliminate noise data in the image information (i.e., irrelevant information in the image), restore useful real information, enhance the detectability of relevant information and simplify data to the maximum extent. Image preprocessing generally includes steps such as image graying, image geometric transformation, and image enhancement. The specific steps of image preprocessing can be implemented by those skilled in the art according to existing image preprocessing methods, and this embodiment will not be specifically described.
[0055] Second, the image features are classified into categories at the first category level to obtain the image category probability distribution corresponding to the image features.
[0056] In this embodiment, the trading platform 20 will pre-set at least one category level. When the set category level is more than one, the category level may include a main level and a sub-level. The sub-level category is a sub-category of the main level category. For example, when the main level category is a bicycle, the sub-level category corresponding to the main level category may include: mountain bikes, ordinary bicycles and multi-person bicycles, etc., wherein mountain bikes, ordinary bicycles and multi-person bicycles are all sub-categories of bicycles. The scope of the main level category is larger than that of the sub-level category. In addition, the main level may also include a primary level and a secondary level, and the sub-level includes a third level. The third level category is a sub-category of the secondary category, and the secondary category is a sub-category of the primary category. For example, when the primary category is a means of transportation, the secondary category corresponding to the primary category may include electric vehicles, bicycles and motorcycles, etc., and the corresponding third level category may include sub-categories of the secondary category, such as sub-categories of bicycles (mountain bikes, ordinary bicycles and multi-person bicycles, etc.). The trading platform 20 in this embodiment usually sets three category levels, namely, first-level categories, second-level categories and third-level categories. The larger the scope, the fewer the number of categories. For example, in actual applications, the trading platform 20 sets 43 first-level categories, 569 second-level categories and 6275 third-level categories. This embodiment does not limit the number of categories at each category level.
[0057] After the trading platform 20 determines the image features corresponding to the image information in the product release information, it performs category classification of the image features at the first category level, thereby obtaining the image category probability distribution corresponding to the image features. Among them, the image category probability distribution is used to characterize the correspondence between the categories and the category probabilities at the first category level, that is, the image category probability distribution includes the categories at the first category level and the category probabilities corresponding to the categories, and the category probabilities corresponding to the categories represent the probability that the image features belong to the categories. The first category level can be any category level, but since the fewer the number of categories, the higher the accuracy of category classification, in order to improve the accuracy of category classification of image features, in this embodiment, the first category level is preferably a category level with a larger range, such as the main level, and most preferably the first level, that is, the image features are classified into the first-level categories, so that the image category probability distribution corresponding to the image features is the first-level category probability distribution, that is, the probability that the image features belong to each first-level category.
[0058] Specifically, in this embodiment, the first category level category classification of image features can be performed by calculating image similarity to determine the image category probability distribution, for example, calculating the similarity between the image features and the image of a certain category of goods, and determining the category probability of the category based on the similarity. Existing classifiers can also be used for classification, and an image category classification model can be constructed to classify image features, such as an image category classification model composed of a pre-trained model Resnet101 and a finetue classification network.
[0059] Third, the probability corresponding to the aggregated category in the probability distribution of image categories is used as the weight of the aggregated category, and all aggregated categories are weightedly aggregated to obtain the prior features corresponding to the product release information.
[0060] In this embodiment, the category corresponding to the first category level is used as the aggregate category. For example, when the first category level is set to level one, that is, when the image features are classified into the level one category, the aggregate category is the level one category. When the first category level is set to level two, that is, when the image features are classified into the level two category, the aggregate category is the level two category. When the first category level is set to level three, that is, when the image features are classified into the level three category, the aggregate category is the level three category. The image category probability distribution obtained by classifying the image features includes the category probabilities corresponding to each aggregate category. The category probabilities corresponding to each aggregate category are used as the weights of the aggregate categories. All aggregate categories are weighted and aggregated to obtain the prior features corresponding to the product release information. The calculation formula for the prior features is as follows:
[0061]
[0062] Where n represents the number of aggregated categories, y irepresents the weight of the ith aggregate category (i.e., the category probability of the ith aggregate category), e i Represents the category feature of the ith aggregate category (the category feature of an aggregate category is a vector that characterizes the aggregate category).
[0063] Fourth, concatenate the prior features with the text features to obtain the release features.
[0064] This embodiment concatenates the prior features with the text features, and uses the concatenated features as the release features corresponding to the product release information, so that when the release features are classified into categories, the prior features can improve the accuracy of category classification. This embodiment can use a feature concatenation network to concatenate the prior features with the text features, wherein the feature concatenation network is any network that can realize feature concatenation, and this embodiment does not specifically limit it.
[0065] Figure 3 Schematic diagram of a text category classification model provided in an embodiment of the present application. Figure 3 As shown, an image category classification model is set to classify the image features corresponding to the image information and output the image category probability distribution. The image category probability distribution is input into the embedding layer Embedding1, and the text information is input into the embedding layer Embedding2. Both the embedding layer Embedding1 and the embedding layer Embedding2 perform dimension mapping on the input data, map the image category probability distribution and the text information to data of the same dimension, and map the low-dimensional data to high-dimensional data, so that the data features can be amplified. The embedding layer Embedding2 inputs the upgraded text information into the convolutional neural network CNN to extract the text features corresponding to the text information. The embedding layer Embedding2 inputs the upgraded image category probability distribution into the prior network. The prior network performs weighted aggregation on each aggregated category according to the image category probability distribution to obtain and output the prior features. The prior features and text features are input into the feature splicing network. The feature splicing network splices the prior features and text features to obtain and output the release features. Figure 3 The prior network in is any network that can realize weighted aggregation of each aggregation category, and this embodiment does not limit it specifically.
[0066] Step S202: classify the release features into categories to obtain a category probability distribution corresponding to at least one category level.
[0067] Specifically, at least one category level is pre-set in the trading platform 20. This embodiment classifies categories for each category level, so as to obtain the category probability distribution corresponding to each category level. The category probability distribution corresponding to the category level includes the categories under the category level and the category probabilities corresponding to each category, and the category probability corresponding to the category represents the probability that the published feature belongs to the category.
[0068] When there is only one category level, the release features are only classified into categories for this category level to obtain a category probability distribution. When there are two category levels, the category level can include a main level and a sub-level, and the sub-level category is a sub-category of the main level category. At this time, the release features are classified into categories of the main level category and the sub-level category, respectively, so as to obtain the main level category probability distribution and the sub-level category probability distribution. When there are three category levels, the main level category level can include the first level and the second level, and the sub-level category level can include the third level, the third level category is a sub-category of the second level category, and the second level category is a sub-category of the first level category. At this time, the release features are classified into categories of the first level category, the second level category and the third level category, respectively, so as to obtain the first level category probability distribution, the second level category probability distribution and the third level category probability distribution. Specifically, in this embodiment, the category classification of the release features can be performed by calculating feature similarity to determine the category probability distribution, for example, calculating the similarity between the release features and the product information of a certain category, or merging the features of multiple product information under a certain category, using the fused features as the category features of the category, calculating the similarity between the release features and the category features, and determining the category probability corresponding to the category based on the similarity. The existing classifier can also be used for classification, etc. Figure 3 As shown, when the category levels include primary, secondary, and tertiary, classifier 1 corresponding to the primary category, classifier 2 corresponding to the secondary category, and classifier 3 corresponding to the tertiary category are set, and the release features are input into classifier 1, classifier 2, and classifier 3 respectively. Classifier 1 outputs the probability distribution of the primary category, classifier 2 outputs the probability distribution of the secondary category, and classifier 3 outputs the probability distribution of the tertiary category.
[0069] In this embodiment, when there are multiple category levels, category classification for each category level is performed in parallel, that is, the classifier corresponding to each category level is a parallel structure, and each classifier simultaneously classifies the release features into categories, thereby improving the efficiency of classifying distribution features into categories.
[0070] Step S203: Determine candidate categories corresponding to the category level according to the category probability distribution corresponding to the category level.
[0071] Specifically, this embodiment selects candidate categories corresponding to the category level from all categories under the category level according to the determined category probability distribution corresponding to each category level, and obtains the category probability of each candidate category from the category probability distribution. This embodiment selects candidate categories from all categories under the category level according to the size of the category probability corresponding to each category, that is, all categories under the category level are sorted from large to small according to the category probability, and a preset number of categories in front are used as candidate categories corresponding to the category level, that is, a preset number of categories with the largest category probability under the category level are selected as candidate categories corresponding to the category level. Among them, the preset number is preferably set to 5. Since this embodiment sets at least one category level, a preset number of candidate categories can be obtained for each category level.
[0072] Step S204: selecting a target category corresponding to the product release information from multiple candidate categories according to the category probabilities corresponding to the candidate categories.
[0073] In this embodiment, a random selection method can be used to select the target category corresponding to the product release information from the candidate categories corresponding to the category level. Specifically, if only one category level is set, a target number of categories are randomly selected from all candidate categories under the category level as the target category corresponding to the product release information; if the category level is set to two levels, namely, the main level and the sub-level, a random selection method can be used to select a target number of categories from the main level candidate categories and the sub-level candidate categories as the target category; if the category level is set to three levels, namely, the first level, the second level, and the third level, a random selection method can be used to select a target number of categories from the first level candidate categories, the second level candidate categories, and the third level candidate categories as the target category.
[0074] Furthermore, this embodiment can also sort the candidate categories according to certain rules based on the category probabilities corresponding to the candidate categories and the levels of the candidate categories, so as to select a preset number of categories from the candidate categories as target categories according to the sorting results. The specific steps are as follows:
[0075] First, the weight of the candidate category is calculated according to the category probability corresponding to the candidate category and the category probability corresponding to the upper-level candidate category to which the candidate category belongs.
[0076] In this embodiment, the product of the category probability corresponding to the candidate category and the category probability corresponding to the upper-level candidate category to which the candidate category belongs may be used as the weight of the candidate category. The candidate category is a subcategory of the upper-level candidate category to which the candidate category belongs.
[0077] If only one category level is set, and the candidate category does not have any upper-level candidate category, then the weight of the candidate category is the category probability of the candidate category.
[0078] If the category level is set to two types, main level and sub-level, the upper candidate category to which the candidate category of the sub-level belongs is the candidate category in the main level. For example, the candidate categories of the main level include: bicycles, motorcycles, etc., and the candidate categories of the sub-level include: ordinary bicycles, off-road motorcycles, etc., among which ordinary bicycles are sub-categories of bicycles, and off-road motorcycles are sub-categories of motorcycles. Then the upper candidate category of ordinary bicycles is bicycles, and the upper candidate category of off-road motorcycles is motorcycles. Therefore, the weight of ordinary bicycles is the category probability of bicycles × the category probability of bicycles, and the weight of off-road motorcycles = the category probability of off-road motorcycles × the category probability of motorcycles. The weights of the candidate categories of other sub-levels are calculated in this way, which will not be elaborated in detail in this embodiment. If the candidate category of the main level does not have an upper candidate category, then the weight of the candidate category of the main level is the category probability of the candidate category.
[0079] If the category level is set to level one, level two, and level three, the superior candidate category to which the candidate category of level three belongs includes the candidate category of level two to which the candidate category of level three belongs and the candidate category of level one to which the candidate category of level two belongs. The superior candidate category to which the candidate category of level two belongs includes the candidate category of level one to which the candidate category of level two belongs. For example, the candidate categories of level one include: transportation tools, etc., the candidate categories of level two include: bicycles, motorcycles, etc., and the candidate categories of level three include: ordinary bicycles, off-road motorcycles, etc., among which ordinary bicycles are subcategories of bicycles, off-road motorcycles are subcategories of motorcycles, and both bicycles and motorcycles are subcategories of transportation tools. Then the superior candidate category of ordinary bicycles is bicycles and transportation tools, the superior candidate category of off-road motorcycles is motorcycles and transportation tools, the superior candidate category of bicycles is transportation tools, and the superior candidate category of motorcycles is transportation tools. Therefore, the weight of ordinary bicycles is increased by the category probability of bicycles × the category probability of bicycles × the category probability of vehicles, the weight of off-road motorcycles = the category probability of off-road motorcycles × the category probability of motorcycles × the category probability of vehicles, and the weights of the other three levels of candidate categories are calculated in this way, which will not be elaborated in detail in this embodiment. The weight of bicycles = the category probability of bicycles × the category probability of vehicles, the weight of motorcycles = the category probability of motorcycles × the category probability of vehicles, and the weights of the other two levels of candidate categories are calculated in this way, which will not be elaborated in detail in this embodiment. If the first-level candidate category does not have a superior candidate category, then the weight of the first-level candidate category is the category probability of the candidate category.
[0080] Second, according to the weights and category levels of the candidate categories, a preset number of categories are selected from multiple candidate categories as product release information and corresponding target categories.
[0081] If only one category level is set, the candidate categories are sorted from large to small according to their weights, and the category with a preset number of categories at the front of the sorting result is used as the product release information and the corresponding target category, that is, the preset number of categories are selected as the target category according to the candidate category weights from large to small.
[0082] If the category level is set to two types, main and sub-level, since the scope of the sub-level category is smaller than that of the main-level category, the candidate categories of the sub-level are more revealing to users than the candidate categories of the main level. Therefore, the target category is first selected from the candidate categories of the sub-level. When the number of candidate categories of the sub-level is less than the preset number of categories, it is supplemented by the candidate categories of the main level. Specifically, the candidate categories of the sub-level are sorted from large to small according to the weight, and the category with the preset number of categories at the front of the sorting result is used as the target category corresponding to the product release information, that is, the preset number of categories are selected from the candidate categories of the sub-level according to the weight from large to small as the target category. If the number of candidate categories of the sub-level is less than the preset number of categories, the category is selected from the candidate categories of the main level according to the weight from large to small as the target category until the number of target categories reaches the preset number of categories.
[0083] If the category level is set to level one, level two, and level three, since the scope of the level three category is smaller than that of the level two category, and the scope of the level two category is smaller than that of the level one category, the level three candidate category has a better enlightenment effect on users than the level two candidate category, and the level two candidate category has a better enlightenment effect on users than the level one candidate category. Therefore, the target category is first selected from the level three candidate category. When the number of level three candidate categories is less than the preset number of categories, it is supplemented from the level two candidate category. When the sum of the number of level three candidate categories and the number of level two candidate categories is still less than the preset number of categories, it is supplemented from the level one candidate category. Specifically, the level three candidate categories are sorted from large to small according to the weight, and the category with the preset number of categories at the front of the sorting result is used as the corresponding target category for the product release information, that is, the preset number of categories are selected from the level three candidate categories as the target category according to the weight from large to small. If the number of candidate categories at the third level is less than the preset number of categories, categories are selected from the candidate categories at the second level as target categories according to the weights from large to small until the number of target categories reaches the preset number of categories. If the number of candidate categories at the third level plus the number of candidate categories at the second level is still less than the preset number of categories, categories are selected from the candidate categories at the first level as target categories according to the weights from large to small.
[0084] In the above embodiments, the product release information input by the user and the corresponding release features representing the category to which the product belongs are determined; the release features are classified into categories to obtain a category probability distribution corresponding to at least one category level; the category probability distribution is used to represent the corresponding relationship between the category and the category probability, and the category probability corresponding to the category represents the probability that the release feature belongs to the category; according to the category probability distribution corresponding to the category level, the candidate category corresponding to the category level and the category probability corresponding to the candidate category are determined; according to the category probability corresponding to the candidate category, the target category corresponding to the product release information is selected from multiple candidate categories. By adopting the technical solution of this embodiment, the category corresponding to the product release information can be directly predicted based on the product release information, which improves the efficiency of determining the product category, and compared with manually determining the product category, the subjectivity of determining the product category is reduced, thereby improving the accuracy of determining the product category.
[0085] As an optional implementation, Figure 4 is a flow chart of another commodity category prediction method provided in an embodiment of the present application. Figure 4 As shown, in another embodiment of the present application, a commodity category prediction method includes the following steps:
[0086] Step S401: Determine the product release information input by the user and the corresponding release features.
[0087] Step S402: classify the release features into categories to obtain a category probability distribution corresponding to at least one category level.
[0088] Step S403: Determine the candidate categories corresponding to the category level and the category probabilities corresponding to the candidate categories according to the category probability distribution corresponding to the category level.
[0089] Step S404: Based on the candidate categories corresponding to the main level, constrain the candidate categories corresponding to the sub-level to obtain the constrained candidate categories corresponding to the sub-level.
[0090] If there are multiple category levels, the more categories a category level contains, the lower the accuracy of category classification for the category level. Therefore, the accuracy of category classification for the sub-level is lower than the accuracy of category classification for the main level. Then the accuracy of the candidate category corresponding to the main level is higher than the accuracy of the candidate category corresponding to the sub-level. Since the target category is selected from the candidate category, the accuracy of the target category can be improved by improving the accuracy of the candidate category corresponding to the sub-level, that is, the accuracy of the commodity category prediction can be improved. This embodiment can use the candidate category corresponding to the main level with higher accuracy to constrain the candidate category corresponding to the sub-level, and eliminate the category with lower accuracy in the candidate category, so as to improve the accuracy of the candidate category corresponding to the sub-level.
[0091] Specifically, if the first candidate category is a candidate category corresponding to the sub-level, and the first candidate category does not belong to a sub-category of any candidate category in the candidate category corresponding to the main level, it means that the upper-level category corresponding to the first candidate category does not exist in the candidate category corresponding to the main level, and the first candidate category is eliminated from the candidate category corresponding to the sub-level. All candidate categories in the candidate category corresponding to the sub-level that do not have corresponding upper-level categories in the candidate category corresponding to the main level are eliminated, thereby realizing the constraint on the candidate category corresponding to the sub-level, and obtaining the candidate category corresponding to the sub-level after the constraint, so that when selecting the target category in step S405, it is selected from the candidate category corresponding to the main level and the candidate category corresponding to the sub-level after the constraint. Among them, the candidate categories corresponding to the sub-level after the constraint are all sub-categories of the candidate category corresponding to the main level. For example, the candidate categories corresponding to the sub-level include: ordinary bicycles, multi-person bicycles, off-road motorcycles and car models, and the candidate categories corresponding to the main level include: bicycles and motorcycles. The parent category of ordinary bicycles and multi-person bicycles is bicycles, and the parent category of off-road motorcycles is motorcycles. Therefore, ordinary bicycles, multi-person bicycles, and off-road motorcycles all have corresponding parent categories in the candidate categories of the main level, while the car model is not a subcategory of bicycles, nor a subcategory of motorcycles. In other words, there is no parent category corresponding to the car model in the candidate categories corresponding to the main level. Therefore, the car model needs to be removed from the candidate categories corresponding to the sub-level. The resulting constrained candidate categories corresponding to the sub-level include ordinary bicycles, multi-person bicycles, and off-road motorcycles.
[0092] If the main level includes the first and second levels, and the sub-level includes the third level, the candidate categories corresponding to the third level can be constrained based on the candidate categories corresponding to the first level and the candidate categories corresponding to the second level, that is, the candidate categories corresponding to the third level that do not have a parent category in the candidate categories corresponding to the first level and the candidate categories corresponding to the second level are removed from the candidate categories corresponding to the third level. For the explanation of the parent category, if the parent category of category A is category B, then category A is a subcategory of category B. If category A is a subcategory of category B, then category B is the parent category of category A.
[0093] Step S405: selecting a target category corresponding to the product release information from multiple candidate categories according to the category probabilities corresponding to the candidate categories.
[0094] Figure 4 Steps S401-S403 shown in FIG. Figure 2 The execution steps of steps S201-S203 shown in are the same. Figure 4 Step S405 shown in Figure 2 The execution steps of step S204 shown in FIG. 1 are the same as those in the above embodiment. Figure 2The execution steps of steps S201-S204 in the embodiment will not be described in detail in this embodiment. Steps S401-S403 and step S405 are described in detail.
[0095] As an optional implementation, Figure 5 is a flow chart of another commodity category prediction method provided in an embodiment of the present application, such as Figure 5 As shown, in another embodiment of the present application, the commodity category prediction method further includes the following steps:
[0096] Step S501: From pre-stored cold start categories, determine a category that matches the text feature as a top target category corresponding to the product release information.
[0097] In this embodiment, the trading platform 20 determines whether a category is a cold start category based on the number of goods for sale contained in the category and the number of clicks on the category. A cold start category is a category that contains a number of goods for sale that is less than a preset sales volume threshold, and / or a number of clicks that is less than a preset click volume threshold. Since the number of goods or clicks under the cold start category is small, when training the category classification, there is less training data for predicting the category probability of the cold start category, so that the accuracy of determining the category probability corresponding to the cold start category is low. Therefore, in this embodiment, a category that matches the text feature corresponding to the text information included in the product release information can be determined from the pre-stored cold start categories as the top target category corresponding to the product release information, and the top target category is also transmitted to the user terminal 10 for display, so that the category in the cold start category that matches the product release information can be determined, thereby improving the accuracy of product category prediction.
[0098] Specifically, this embodiment configures the cold start categories according to the commodity information under the cold start categories, calculates the similarity between the text features and the category keywords of each cold start category, and uses the cold start categories with similarity greater than the set similarity threshold as the top target categories. Among them, this embodiment can use AC automaton to perform the matching operation between the text features and the cold start categories.
[0099] Step S502: sorting the target categories based on the weights corresponding to the target categories and the downgraded flags carried by the target categories to obtain a first category sequence.
[0100] After determining the target category corresponding to the product release information, this embodiment first sorts the target category according to the weight of the target category and the category level corresponding to the target category to obtain an initial category sequence. The weight of the target category is calculated in the same way as the weight of the candidate category in the above embodiment, that is, the product of the category probability corresponding to the target category and the category probability corresponding to the upper category to which the target category belongs is used as the weight of the target category, which will not be elaborated in detail in this embodiment. The manner of sorting according to the weight of the target category and the category level corresponding to the target category is the same as the manner of sorting the candidate categories according to the weight and category level of the candidate categories determined in the above embodiment, that is, when the category levels corresponding to the respective target categories are all of the same category level, the target categories are sorted from large to small according to the weight of each target category; when the category levels corresponding to the target categories include level three and level two, the target categories of level three are arranged in front, the target categories of level two are arranged in the back, and the target categories of the same category level are arranged in descending order according to the weight; when the category levels corresponding to the target categories include level three, level two and level one, the target categories of level three are arranged in front, the target categories of level two are arranged in the middle, the target categories of level one are arranged in the end, and the target categories of the same category level are arranged in descending order according to the weight.
[0101] Then, according to the downgraded flag carried by the target category, the arrangement order of the target category in the initial category sequence is adjusted to obtain the first category sequence. The downgraded flag carried by the target category is used to indicate whether the category is downgraded. If the downgraded flag carried by the target category indicates that the category is downgraded, the position of the target category in the initial category sequence is adjusted backward. If the downgraded flag carried by the target category indicates that the category is not downgraded, there is no need to change the position of the target category in the initial category sequence.
[0102] Step S503: inserting the top target category before the first category in the first category sequence to obtain a second category sequence.
[0103] After all target categories are sorted, a first category sequence is obtained, and then after matching with the cold start category, the top target category is inserted before the first target category in the first category sequence, thereby obtaining a second category sequence. The trading platform 20 sends the second category sequence to the user terminal 10 that sends the product release information. After the user terminal 10 receives the second category sequence, the target categories in the second category sequence are arranged and displayed in the order of the target categories in the second category sequence. The user can select the category to which the product to be sold ultimately belongs from the displayed target categories. Among them, the higher the accuracy of the categories displayed in the front, the higher the arrangement order of each target category can also serve as a revelation for the user to select the category of the product to be sold.
[0104] As an optional implementation, Figure 6 is a schematic diagram of the overall process of commodity category prediction provided by an embodiment of the present application, such as Figure 6 As shown, in another embodiment of the present application, an overall process of commodity category prediction is disclosed.
[0105] First, the data acquisition module is used to collect data to obtain text information and image information of the goods to be sold, and then the preprocessing module is used to preprocess the text information and image information respectively to obtain text features corresponding to the text information and image features corresponding to the image information.
[0106] Secondly, the preprocessed image features are input into the image category classification model in the algorithm module. The image category classification model classifies the image features at the first category level to obtain the image category probability distribution corresponding to the image features. The image category probability distribution and the preprocessed text features are input into the text category classification model in the algorithm module. The text category classification model uses the category probability corresponding to the aggregated category in the image category probability distribution as the weight of the aggregated category, performs weighted aggregation on all aggregated categories, obtains the prior features corresponding to the product release information, and concatenates the prior features with the text features to obtain the release features. Afterwards, the text category classification model classifies the release features again to obtain the category probability distribution corresponding to at least one category level. At the same time, the preprocessed text features are input into the AC automaton in the algorithm module. The AC automaton determines the category matching the text features from the pre-stored cold start categories as the top target category corresponding to the product release information.
[0107] Then, the result aggregation module determines the candidate categories corresponding to the category level and the category probabilities corresponding to the candidate categories according to the category probability distribution corresponding to the category level; based on the candidate categories corresponding to the main level, the candidate categories corresponding to the sub-level are constrained to obtain the candidate categories corresponding to the sub-level after constraints ( Figure 6 According to the category probability corresponding to the candidate category, the target category corresponding to the product release information is selected from multiple candidate categories. According to the weight corresponding to the target category and the category level corresponding to the target category, the target categories are sorted to obtain the initial category sequence ( Figure 6 According to the downgraded flags carried by the target categories, the target categories in the initial category sequence are sorted and adjusted to obtain the first category sequence ( Figure 6 The top target category output by the AC automaton is inserted before the first category in the first category sequence to obtain a second category sequence.
[0108] Finally, the second category sequence is sent to the user terminal 10 .
[0109] The specific implementation methods of each step in this embodiment have been described in the above embodiments and will not be repeated in this embodiment.
[0110] Example devices, electronic devices, storage media, and software
[0111] Corresponding to the above-mentioned commodity category prediction method, this embodiment also provides a commodity category prediction device. Figure 7 is a schematic diagram of the structure of a commodity category prediction device provided in an embodiment of the present application, such as Figure 7 As shown, the commodity category prediction device includes:
[0112] The feature determination module 100 is used to determine the publishing feature corresponding to the product publishing information input by the user, where the publishing feature is a feature that characterizes the category to which the product belongs;
[0113] The category classification module 110 is used to classify the release feature into categories and obtain a category probability distribution corresponding to at least one category level; the category probability distribution includes categories and category probabilities corresponding to the categories, and the category probabilities corresponding to the categories represent the probability that the release feature belongs to the category;
[0114] A category determination module 120, configured to determine candidate categories corresponding to the category level according to the category probability distribution corresponding to the category level;
[0115] The category selection module 130 is used to select a target category corresponding to the product release information from multiple candidate categories according to the category probabilities corresponding to the candidate categories.
[0116] In the above embodiments, the category corresponding to the product release information can be directly predicted based on the product release information, thereby improving the efficiency of determining the product category. Compared with manually determining the product category, the subjectivity of determining the product category and the user input cost are reduced, thereby improving the accuracy of determining the product category, assisting users to mount the released products under the correct category, thereby promoting users to sell products faster.
[0117] As an optional implementation, another embodiment of the present application discloses that the category levels of the above embodiment include: main level and sub-level; the sub-level category is a sub-category of the main level category. The commodity category prediction device also includes: a category constraint module.
[0118] The category constraint module is used to constrain the candidate categories corresponding to the sub-level based on the candidate categories corresponding to the main level, so as to obtain the candidate categories corresponding to the sub-level after being constrained; wherein the candidate categories corresponding to the sub-level after being constrained are all sub-categories of the candidate categories corresponding to the main level.
[0119] As an optional implementation, another embodiment of the present application discloses that the main level of the above embodiment includes: a primary level and a secondary level, and the sub-level includes: a third level;
[0120] The third-level categories are subcategories of the first-level categories and the second-level categories, and the second-level categories are subcategories of the first-level categories.
[0121] As an optional implementation, another embodiment of the present application discloses that the category selection module 130 in the above embodiment is specifically used for:
[0122] Calculate the weight of the candidate category according to the category probability corresponding to the candidate category and the category probability corresponding to the upper-level candidate category to which the candidate category belongs; wherein the candidate category is a subcategory of the upper-level candidate category to which the candidate category belongs;
[0123] According to the weights and category levels of the candidate categories, a preset number of categories are selected from multiple candidate categories as target categories corresponding to the product release information.
[0124] As an optional implementation, another embodiment of the present application discloses that the product release information of the above embodiment includes: text information and image information. The feature determination module 100 in the product category prediction device is specifically used for:
[0125] Preprocess the image information and text information respectively to obtain image features corresponding to the image information and text features corresponding to the text information;
[0126] Performing first-category level classification on the image features to obtain the image category probability distribution corresponding to the image features;
[0127] The category probability corresponding to the aggregated category in the image category probability distribution is used as the weight of the aggregated category, and all aggregated categories are weightedly aggregated to obtain the prior features corresponding to the product release information, where the aggregated category is the category corresponding to the first category level;
[0128] The prior features are concatenated with the text features to obtain the release features.
[0129] As an optional implementation, another embodiment of the present application discloses that the product release information of the above embodiment includes text information, and the release features include: text features corresponding to the text information. The product category prediction device also includes: a category matching module.
[0130] The category matching module is used to determine a category that matches the text feature from pre-stored cold start categories as the top target category corresponding to the product release information; wherein the cold start category is a category whose number of sold products is less than a preset sales volume threshold, and / or whose click volume is less than a preset click volume threshold.
[0131] As an optional implementation, another embodiment of the present application discloses that the commodity category prediction device of the above embodiment further includes: a category sorting module and a category insertion module.
[0132] A category sorting module is used to sort the target categories based on the weights corresponding to the target categories and the downgraded flags carried by the target categories to obtain a first category sequence; wherein the weights corresponding to the target categories are calculated based on the category probabilities corresponding to the target categories and the category probabilities corresponding to the upper-level categories to which the target categories belong, the target categories are subcategories of the upper-level categories to which the target categories belong, and the downgraded flags are used to indicate whether the categories are downgraded;
[0133] The category insertion module is used to insert the top target category before the first category in the first category sequence to obtain a second category sequence, so that the user terminal displays each target category in the second category sequence according to the category order of the second category sequence.
[0134] Specifically, for the specific working contents of each unit of the above-mentioned commodity category prediction device, please refer to the contents of the above-mentioned commodity category prediction method embodiment, which will not be repeated here.
[0135] Corresponding to the above-mentioned commodity category prediction method, this embodiment also provides a commodity category prediction device. Figure 8 is a schematic diagram of the structure of a commodity category prediction device provided in an embodiment of the present application, such as Figure 8 As shown, the commodity category prediction device includes: a memory 200 and a processor 210;
[0136] The memory 200 is connected to the processor 210 and is used to store programs;
[0137] The processor 210 is used to implement the commodity category prediction method disclosed in any of the above embodiments by running the program stored in the memory 200.
[0138] Specifically, the above-mentioned commodity category prediction device may further include: a bus, a communication interface 220 , an input device 230 and an output device 240 .
[0139] The processor 210, the memory 200, the communication interface 220, the input device 230 and the output device 240 are connected to each other via a bus.
[0140] A bus may include a pathway that transfers information between components of a computer system.
[0141] The processor 210 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0142] The processor 210 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0143] The memory 200 stores a program for executing the technical solution of the present application, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes computer operation instructions. More specifically, the memory 200 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0144] The input device 230 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0145] Output device 240 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.
[0146] The communication interface 220 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0147] The processor 210 executes the program stored in the memory 200 and calls other devices, which can be used to implement each step of the commodity category prediction method provided in the above-mentioned embodiment of the present application.
[0148] The embodiments of the present specification also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the computer executes the commodity category prediction method in any of the above embodiments.
[0149] The embodiments of the present specification also provide a computer program product including instructions, which, when executed by a computer, enables the computer to execute the commodity category prediction method in any of the above embodiments.
[0150] It should be understood that the specific examples herein are only intended to help those skilled in the art to better understand the embodiments of the present specification, rather than to limit the scope of the present invention.
[0151] It can be understood that in the various implementations of this specification, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of this specification.
[0152] It can be understood that the various embodiments described in this specification can be implemented individually or in combination, and the embodiments of this specification are not limited to this.
[0153] Unless otherwise specified, all technical and scientific terms used in the embodiments of this specification have the same meaning as those generally understood by those skilled in the art of the technical field of this specification. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the scope of this specification. The term "and / or" used in this specification includes any and all combinations of one or more related listed items. The singular forms of "a", "above", and "the" used in the embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0154] It can be understood that the processor of the embodiment of this specification can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method implementation can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Spedfic Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiment of this specification can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of this specification can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0155] It is understood that the memory in the embodiments of this specification may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasablePROM, EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0156] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this specification.
[0157] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method implementation methods and will not be repeated here.
[0158] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0159] The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0160] In addition, each functional unit in each embodiment of the present specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0161] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this specification, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0162] The above is only a specific implementation of this specification, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in this specification, which should be included in the protection scope of this specification. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A commodity category prediction method, characterized in that: include: Determine a publishing feature corresponding to the product publishing information input by the user, wherein the publishing feature is a feature that characterizes the category to which the product belongs; Classifying the release features into categories to obtain a category probability distribution corresponding to at least one category level; The category probability distribution includes categories and category probabilities corresponding to the categories, and the category probabilities corresponding to the categories represent the probability that the release feature belongs to the category; Determining candidate categories corresponding to the category level according to the category probability distribution corresponding to the category level; According to the category probabilities corresponding to the candidate categories, a target category corresponding to the product release information is selected from multiple candidate categories.
2. The method according to claim 1, characterized in that The category levels include: main level and sub-level; sub-level categories are sub-categories of main level categories; Before selecting a target category corresponding to the product release information from multiple candidate categories according to the category probabilities corresponding to the candidate categories, the method further includes: Based on the candidate categories corresponding to the main level, the candidate categories corresponding to the sub-level are constrained to obtain the candidate categories corresponding to the sub-level after the constraints; wherein the candidate categories corresponding to the sub-level after the constraints are all sub-categories of the candidate categories corresponding to the main level.
3. The method according to claim 2, characterized in that The main level includes: level one and level two, and the sub-level includes: level three; The third-level categories are subcategories of the first-level and second-level categories, and the second-level categories are subcategories of the first-level categories.
4. The method according to claim 2, characterized in that: According to the category probabilities corresponding to the candidate categories, a target category corresponding to the product release information is selected from multiple candidate categories, including: Calculate the weight of the candidate category according to the category probability corresponding to the candidate category and the category probability corresponding to the upper-level candidate category to which the candidate category belongs; wherein the candidate category is a subcategory of the upper-level candidate category to which the candidate category belongs; According to the weights and category levels of the candidate categories, a preset number of categories are selected from the plurality of candidate categories as target categories corresponding to the product release information.
5. The method according to claim 1, characterized in that The product release information includes: text information and image information; The determining of the publishing feature corresponding to the product publishing information input by the user includes: Preprocessing the image information and the text information respectively to obtain image features corresponding to the image information and text features corresponding to the text information; Performing category classification of the image features at a first category level to obtain an image category probability distribution corresponding to the image features; Taking the category probability corresponding to the aggregated category in the image category probability distribution as the weight of the aggregated category, performing weighted aggregation on all aggregated categories to obtain the prior features corresponding to the product release information, wherein the aggregated category is the category corresponding to the first category level; The prior features and the text features are concatenated to obtain release features.
6. The method according to claim 1, characterized in that The commodity release information includes text information, and the release characteristics include: text characteristics corresponding to the text information; The commodity category prediction method further includes: From the pre-stored cold start categories, determine a category matching the text feature as the top target category corresponding to the product release information; wherein the cold start category is a category whose number of sold products is less than a preset sales volume threshold, and / or whose click volume is less than a preset click volume threshold.
7. The method according to claim 6, characterized in that Also includes: Based on the weight corresponding to the target category and the downgraded flag carried by the target category, the target category is sorted to obtain a first category sequence; wherein the weight corresponding to the target category is calculated based on the category probability corresponding to the target category and the category probability corresponding to the upper-level category to which the target category belongs, the target category is a subcategory of the upper-level category to which the target category belongs, and the downgraded flag is used to indicate whether the category is downgraded; The top target category is inserted before the first category in the first category sequence to obtain a second category sequence, so that the user terminal displays each target category in the second category sequence according to the category order of the second category sequence.
8. A commodity category prediction device, characterized in that: include: A feature determination module, used to determine the publishing feature corresponding to the product publishing information input by the user, wherein the publishing feature is a feature that characterizes the category to which the product belongs; A category classification module, used to classify the release features into categories and obtain a category probability distribution corresponding to at least one category level; The category probability distribution includes categories and category probabilities corresponding to the categories, and the category probabilities corresponding to the categories represent the probability that the release feature belongs to the category; A category determination module, configured to determine a candidate category corresponding to the category level according to a probability distribution of categories corresponding to the category level; The category selection module is used to select a target category corresponding to the product release information from multiple candidate categories according to the category probabilities corresponding to the candidate categories.
9. A commodity category prediction device, characterized in that: include: Memory and processor; Wherein, the memory is connected to the processor and is used to store programs; The processor is configured to implement the commodity category prediction method according to any one of claims 1 to 7 by running the program in the memory.
10. A commodity category prediction system, characterized in that: include: User terminals and trading platforms; The user terminal is used to obtain the commodity release information input by the user, and send the commodity release information to the trading platform; The trading platform is used to execute the processing steps of the commodity category prediction method according to any one of claims 1 to 7; The user terminal is also used to receive and display the target category sent by the trading platform.
11. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the commodity category prediction method according to any one of claims 1 to 7 is implemented.
