Generating data object labels, data object search method, device and electronic device
Through training samples and user behavior analysis, the classification model is used to automatically generate image labels for data objects, which solves the problem of generating data object labels in cross-border scenarios, improves the accuracy and efficiency of labels, and improves search matching and data object identification. exposure.
Patent Information
- Application Number
- CN202011255763.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-11-11
AI Technical Summary
In cross-border scenarios, it is difficult for existing technologies to effectively automatically generate data object labels. Especially in different language environments, labels need to be generated based on the text features of different languages, resulting in a heavy workload and low accuracy.
Through training samples, including images of target data objects with annotation information, the classification model is used to automatically generate text labels, and the vocabulary of search hot attributes is determined based on user search records and behavior analysis, and is used for labeling and training the model, and then automatically Generate image labels for data objects.
It improves the accuracy and efficiency of label generation, can automatically generate language-independent data object labels in cross-border scenarios, improves the match between search results and search needs, and increases the exposure of data objects.
Smart Images

Figure CN113297471B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to methods, devices and electronic devices for generating data object tags, searching for data objects. Background Art
[0002] In the search / recommendation scenario of the data object (commodity object or service, etc.) information service system, various tags are usually added to the data objects, such as the attribute information of the commodity object such as style, pattern, color, and the sales information of the commodity such as promotion and discount. When users search for data objects through vocabulary, if the search terms hit these tag information, the data objects with these tag information will be returned first due to their high relevance, so that users can obtain the information of the data objects closest to the original intention. In other words, the label of the data object is a more fine-grained feature description of the data object, which has a key impact on improving the exposure, click and purchase rate of the data object.
[0003] The generation technology of data object labels can generally be divided into two categories: manual filling and algorithm automatic filling. In the manual filling method, when publishing a data object, the merchant user selects the corresponding category information and adds the corresponding text label description information. However, the manual filling method is not very accurate, and there are still cases where the addition is abandoned due to reasons such as uncertainty about how to add.
[0004] There are many methods for automatic algorithm filling, such as based on product text features, by building a text feature data base, and calculating the similarity between the text features of the current data object (usually extracted from the details page) and the text data features of the base, to automatically generate labels for use in specific data object search, recommendation and other scenarios. However, in cross-border scenarios, the same data object may need to be published in multiple different languages so that it can be browsed by users in multiple countries or regions with different languages. At this time, if labels are still automatically generated based on text feature comparison, it is necessary to generate labels for text features in different languages separately, which will be a very large workload.
[0005] Therefore, how to automatically generate labels for data objects more effectively becomes a technical problem that needs to be solved by those skilled in the art. Summary of the invention
[0006] The present application provides a method, device and electronic device for generating data object labels and searching data objects, which can obtain more effective training samples and thus automatically generate labels for data objects more effectively.
[0007] This application provides the following solutions:
[0008] A method for generating a data object label, comprising:
[0009] Obtaining a classification model, wherein the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword;
[0010] Determine the data object to be predicted and its corresponding image information;
[0011] The image information of the data object to be predicted is input into the classification model to obtain a corresponding text label.
[0012] A method for providing data object search information, comprising:
[0013] A data object information library is established, wherein the information library stores text label information associated with the data object, wherein the text label information includes a target word with a search hotspot attribute; the text label information is determined by predicting an image of the data object using a classification model; the classification model is obtained by training with training samples, wherein the training samples include an image of a target data object with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing a target user behavior record, wherein the target user behavior record includes: a user behavior record after a search is initiated using the target word as a keyword;
[0014] Receive search requests and determine search keywords;
[0015] Search results are provided according to the matching degree between the text label of the data object and the search keyword.
[0016] A method for obtaining training sample data, comprising:
[0017] Determine target words with search hotspot attributes according to user search records within a target time period, wherein the target words with search hotspot attributes include: words whose search frequency meets the target condition;
[0018] Analyze the user behavior records after initiating a search using the target word as a keyword, and determine the target data object having a target relationship with the target word from the search results;
[0019] The target vocabulary is used to annotate the image corresponding to the target data object, and the image with the annotated information is determined as a training sample. The training sample is used to train the target model. The target model is used to take the image of the data object to be predicted as input and output the matching target vocabulary for determining as the text label of the data object to be predicted.
[0020] A method for processing a classification model, comprising:
[0021] Acquire a training sample, wherein the training sample includes an image of a target data object with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword;
[0022] The classification model is trained using the training samples.
[0023] A device for generating a data object label, comprising:
[0024] A classification model obtaining unit, used to obtain a classification model, wherein the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated with the target word as a keyword;
[0025] An image determination unit, used to determine a data object to be predicted and its corresponding image information;
[0026] The prediction unit is used to input the image information of the data object to be predicted into the classification model to obtain a corresponding text label.
[0027] A device for providing data object search information, comprising:
[0028] A data object information library establishment unit is used to establish a data object information library, wherein the information library stores text label information associated with the data object, wherein the text label information includes a target word with a search hotspot attribute; the text label information is determined by predicting the image of the data object using a classification model; the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing the target user behavior record, wherein the target user behavior record includes: a user behavior record after a search is initiated using the target word as a keyword;
[0029] A search request receiving unit, used to receive a search request and determine a search keyword;
[0030] The search result providing unit is used to provide search results according to the matching degree between the text label of the data object and the search keyword.
[0031] A device for obtaining training sample data, comprising:
[0032] A target vocabulary determination unit, configured to determine a target vocabulary with a search hotspot attribute according to user search records within a target time period, wherein the target vocabulary with a search hotspot attribute includes: a vocabulary whose search frequency meets a target condition;
[0033] A target data object determination unit, configured to analyze the user behavior record after initiating a search using the target word as a keyword, and determine a target data object having a target relationship with the target word from the search results;
[0034] A labeling unit is used to label the image corresponding to the target data object using the target vocabulary, and determine the image with the labeling information as a training sample, the training sample is used to train the target model, and the target model is used to take the image of the data object to be predicted as input and output the matching target vocabulary for determining as the text label of the data object to be predicted.
[0035] A classification model processing device, comprising:
[0036] A sample acquisition unit is used to acquire training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation results of the images of the target data objects are determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword;
[0037] A training unit is used to train the classification model using the training samples.
[0038] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0039] Through the embodiment of the present application, in order to automatically generate text labels based on the image of the data object, and make the specific text label have the search hotspot attribute, it can be processed in the stage of training the model. Specifically, the target vocabulary with the search hotspot attribute can be determined first according to the user search record within a certain period of time, and this target vocabulary can be added to the tag library. In addition, in addition to determining the target vocabulary, the data object image can also be annotated with the specific target vocabulary, and the annotated result can be used as a training sample to train the model. For this reason, the embodiment of the present application can also analyze the user behavior record after searching with this target vocabulary as a keyword. If the user performs the target behavior on some data objects in the search record, it can be proved that these data objects have a relatively deep association with the current search keyword. Further, the target vocabulary corresponding to the search keyword can be used to annotate the image corresponding to the data object, and this data object image with annotated information can be used as a training sample for training a specific model.
[0040] In the model training phase, when obtaining specific training samples, such training samples are not directly read from the merchant's annotation results and other data, but can be analyzed by analyzing the user behavior after the user uses the target word as the keyword to search, and the data objects with a certain depth of association with the specific search keyword are mined from such user behavior data, and then the images of the data objects are annotated using the target word corresponding to the search keyword, and used as training samples. In this way, the quality of the training samples can be improved, which is convenient for improving the prediction accuracy of the model.
[0041] After completing the training of the model, when the model is used for prediction, the target vocabulary that matches the image of the target data object can be determined from the label library and added as the label of the data object. Since only the image of the data object is used as input information when automatically generating labels in the embodiment of the present application, and there is no need to rely on text content, it can be used in cross-border scenarios. In addition, since the target vocabulary in the specific label library has a search hotspot attribute, and the label page specifically added to the data object has a search hotspot attribute, this type of label is more suitable for use in search scenarios, which is beneficial to improving the matching degree between search results and search requirements, and also improves the exposure rate of data objects with corresponding attributes.
[0042] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a schematic diagram of the system architecture provided by the embodiment of the present application;
[0045] Figure 2 is a flow chart of the first method provided in an embodiment of the present application;
[0046] Figure 3 is a schematic diagram of the model structure provided in the embodiment of the present application;
[0047] Figure 4 is a flow chart of the second method provided in an embodiment of the present application;
[0048] Figure 5 is a flowchart of the third method provided in an embodiment of the present application;
[0049] Figure 6 is a flowchart of the fourth method provided in an embodiment of the present application;
[0050] Figure 7 is a schematic diagram of a first device provided in an embodiment of the present application;
[0051] Figure 8 is a schematic diagram of a second device provided in an embodiment of the present application;
[0052] Fig. 9 is a schematic diagram of a third device provided in an embodiment of the present application;
[0053] Fig.10 is a schematic diagram of a fourth device provided in an embodiment of the present application;
[0054] Fig.11 It is a schematic diagram of an electronic device provided in an embodiment of the present application;. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0056] In the embodiments of the present application, for cross-border scenarios, a solution can be provided for automatically generating text labels for data objects based on images of data objects (e.g., product images, etc.). In specific implementation, the model can be trained in advance using images associated with labeled texts. After the training is completed, the image of the product object can be used as the input of the model. The model automatically generates text labels for output by performing feature extraction and other processing on the image.
[0057] Since the image of a data object is usually language-independent, for example, if a specific data object is a commodity object corresponding to a certain clothing item, its image is usually a photo of the clothing item, or a photo of a model wearing the clothing item, etc., so as to convey relevant information of the data object to the user through a specific image without relying on text content. In other words, in a cross-border scenario, the text content of the same data object in different language environments may be different (described in different languages), but its image is often the same. Therefore, in an embodiment of the present application, a text label can be automatically generated based on the image associated with the data object.
[0058] However, the inventors of the present application also found in the process of implementing the present application that there are usually two main application scenarios for automatically generating tags for data objects. One is to recommend tags to users in the process of data objects being published by merchants and other users so that users can choose from the recommended tags. The other is to automatically generate tags for published data objects so that in the process of data object search, etc., search results can be provided to users through the matching degree between tags and search keywords, etc. In two different scenarios, the types of tags generated can have different focuses, so as to improve the effectiveness of tags in different scenarios. For example, in the first case, the tags generated can mainly be tags of data object attribute classes, for example, the style, style, color, etc. of data objects belong to this type of tags. In the second case, since the search terms and data object tags are matched in the search scenario, the specific tags generated can be tags that are more easily matched with the search terms in the search scenario, so as to improve the exposure rate of data objects in the search scenario.
[0059] To this end, the embodiment of the present application also provides a corresponding solution for the above second situation. In this solution, not only can the image of the data object be used as input information to automatically generate a label, but also the model can be trained by using special training samples so that the label generated by the model can have properties such as "search hot words". Specifically, when obtaining the above special training samples, first, the search words with search hot attributes can be analyzed from the search records of multiple users in the target time period (for example, the last month, etc.). The so-called search hot attribute is the number of times or frequencies used as search words by users that are higher than a certain threshold or ranked relatively high. Then, the data object image related to the above hot words is obtained. When obtaining such a data object image, it can be directly obtained from the data object to which the label has been added in the data object information library. However, on the one hand, the existing data object labels in the database may be inaccurate, or, on the other hand. There are also a large number of data objects that are actually related to a hot word, but the label is not added.
[0060] In view of the above situation, the embodiment of the present application also provides a scheme for obtaining training samples according to the user behavior records in the specific search scenario. Specifically, after determining the hot words, the user behavior information after initiating the search with the above hot words can be analyzed. For example, if a user clicks to view details, collects, adds to a collection to be purchased (for example, "shopping cart", etc.), purchases, etc. of a data object in the search results, it proves that the data object has a relatively deep binding relationship with the current hot words, and then a "deep binding" relationship can be established between the hot words and the image of the data object, and the hot words with this "deep binding relationship" and the corresponding data object image are used as training samples for training a specific model. In this way, the trained model learns the intrinsic relationship between the image of the data object and the hot words. Therefore, when the model automatically generates a label for the data object, the image of the data object can be input into the model. Correspondingly, the model can classify the image of the data object and determine the matching label, and the label is a label with the search hotspot attribute.
[0061] In specific implementation, from the perspective of system architecture, the embodiment of the present application can provide corresponding functions in the data object information service system, and the data object information service system can include two parts: a server and a client. Among them, operations such as collecting training samples and training models, and then automatically generating tags with search hotspot attributes for data objects can be completed on the server. For example, the server can use the full amount of data objects in the system database (or part of them) as the data objects to be predicted, so as to generate tags with search hotspot attributes for specific data objects respectively (of course, for data objects not related to search hotspots, the generated tags can be empty). The tags with search hotspot attributes predicted specifically for the data objects can be saved in the data object information library, so as to improve the exposure rate of the corresponding data objects in the search scenario. In addition, since there are often newly released data objects in the system, the server can also re-execute the operation of automatic tag generation at a certain frequency, and the re-executed automatic tag generation process is mainly performed on the newly released data objects in the system, and the data object information library is updated. Specifically, it can be updated once a day, or it can also be performed at other frequencies, for example, once every two days or once a week, and so on. In addition, since the search hotspot attributes of specific words may also change dynamically, in practical applications, the training of specific models can also be repeated at regular intervals. When retraining the model, the target words with search hotspot attributes can be re-determined, and the images of data objects can be re-labeled based on the user's behavior records on the search results, and so on.
[0062] The client is mainly used to interact with users. For example, a search entry can be provided on a specific page, and users can enter specific keywords to initiate a search. At this time, the server can also provide specific search results based on the degree of match between the label of a specific data object in the data object information library and the keyword.
[0063] The specific implementation scheme provided in the embodiments of the present application is described in detail below.
[0064] Embodiment 1
[0065] First, this embodiment 1 provides a method for obtaining training sample data. The execution subject of this embodiment 1 can be the aforementioned server. For details, see Figure 2 , the method may include:
[0066] S201: determining target words with search hotspot attributes according to user search records within a target time period, wherein the target words with search hotspot attributes include: words whose search frequency meets a target condition;
[0067] In the embodiment of the present application, the exposure rate of the data object in the search scenario is improved mainly by adding a tag with a search hotspot attribute to the data object. The search hotspot attribute is usually a dynamically changing attribute. For example, a certain word may have a high search popularity in a certain period of time, and the popularity may decrease after this period of time, etc. Among them, there are usually many factors that affect the popularity of specific search keywords over time. For example, some keywords may be affected by seasons, festivals, etc., and some keywords may be affected by hot events, etc.
[0068] Therefore, in a specific implementation, it is firstly possible to determine which words can exist as tags with search hotspot attributes. To this end, in an embodiment of the present application, it can be determined based on user search records within a period of time. For example, based on user search records within the last month, search keywords with a relatively high number of searches or frequencies or relatively high rankings are determined, and words with search hotspot attributes are determined based on these keywords. Such words can be added to the tag library, and after the specific model training is completed, specific tags are selected for specific data objects from these words.
[0069] When determining the target words with the search hotspot attribute, the occurrence frequency of the search keywords can be directly counted, and then, based on the statistical results, the search keywords that meet the conditions (for example, the search frequency is higher than the target threshold) are determined as the target words. Alternatively, the search keywords can be processed before determining the specific target words.
[0070] For example, if users are located in different countries and the search keywords are not in a unified language, the search keywords may be first translated into a unified language (such as Chinese or English).
[0071] In addition, you can also perform word segmentation on the search keywords and filter out the words that have no actual meaning. For example, taking English word segmentation as an example, since the basic unit of the English language is the word, you can first separate them according to spaces, symbols / paragraphs, etc., and use regular expressions for separation operations to split the phrases of a single search record into several words. Then, exclude high-frequency words such as and / of / the / a, which will have a greater impact on the word frequency statistics and have no actual hot word meaning.
[0072] In addition, since there are some tense and singular and plural labels in the English language, the plural of the word can be restored to the singular, and the tense changes such as ing and ed can be restored to the general present tense. After word segmentation, filtering, stem extraction and other processing, the frequency of occurrence of the word is counted to determine the vocabulary with search hotspot attributes. For example, the frequency of the word after word segmentation can be counted according to the number of search items, and a certain frequency threshold can be selected. The words above this frequency threshold are defined as high-frequency hot words, and so on.
[0073] S202: analyzing the user behavior records after initiating a search using the target word as a keyword, and determining a target data object having a target relationship with the target word from the search results;
[0074] After obtaining the words with the search hotspot attribute, the user behavior records after searching with the target words as keywords can be analyzed. Among them, the so-called user behavior records after the search specifically refer to the behavior performed by the user on the search results. Specifically, since the search result list page can usually include multiple search results, the user can obtain summary information about each search result through the list page, including pictures, titles, price attribute information, etc., and can determine whether to click on a specific search result to enter the corresponding data object detail page for browsing based on this summary information. After entering the detail page, it can also be determined based on the detail information whether to perform further collection, add to the collection to be purchased (for example, shopping cart, etc.), obtain customer service provided by the seller user through "private chat", create orders, and complete transactions.
[0075] If the user performs the above actions on a data object, the data object and the search keyword have a strong association, or the search keyword can be used as a description of these data objects. Accordingly, it can be determined that the data object has the target relationship with the search keyword, and the target relationship can also be called a "strong association relationship", etc.
[0076] S203: Annotate the image corresponding to the target data object using the target vocabulary, and determine the image with the annotation information as a training sample, wherein the training sample is used to train a target model, and the target model is used to take the image of the data object to be predicted as input and output a matching target vocabulary for determining as a text label of the data object to be predicted.
[0077] After determining the data object that has a target relationship with the target vocabulary, the association relationship between the image corresponding to the data object and the target vocabulary can be determined as a training sample, and then the target model is trained. That is to say, since the embodiment of the present application automatically generates labels based on the image of the data object, after specifically determining the data object with a binding relationship and the target vocabulary, the image of the data object (for example, the main image of the commodity object, etc.) can be annotated using the target vocabulary, and the data object image with annotated information can be used as a training sample for training a specific model.
[0078] It should be noted that there are many types of target vocabulary, and through the above-mentioned method, the image of each data object may be labeled with multiple target vocabulary. The embodiment of the present application mainly analyzes the image of the data object from a visual perspective. Therefore, in the specific implementation, some target vocabulary labels that cannot be visually identified can also be filtered out, so that the labels associated with the data object image are all visually determinate labels. For example, some brand words, or sales attribute words such as "free shipping", etc., can be filtered out to improve the quality of training samples.
[0079] The visually separable target words selected in the previous step can be added to the tag library. Each tag in the tag library can be digitally encoded so that each tag corresponds to a unique digital identifier, and then multiple tags can be encoded and associated for each image. After that, the specific model training process can be entered.
[0080] For a specific model, a variety of specific algorithms or structures can be used to implement it. For example, in one way, a multi-label neural network can be constructed. An optional network structure can be as follows Figure 3 As shown, the "circles" in the left column represent the backbone network, and ResNet50 can be used as the backbone neural network (not limited to this network structure); the "circles" in the right column represent the last layer of neurons, and the sigmoid function can be used as the activation function of the output layer. In addition, the cross entropy loss function can be selected, and so on.
[0081] After the structure of the model is determined, the model can be trained using previously acquired training samples. Through multiple rounds of iterations, the parameters in the model (for example, the weight matrix in the neural network, etc.) can be gradually updated. After training, a specific model can be used to generate specific text labels for data objects. This type of text label is a word with search hotspot attributes. Therefore, in subsequent search scenarios, this type of text label can be used to provide search results for users to improve the matching degree between search results and search requirements, while also increasing the exposure rate of data objects with corresponding attributes.
[0082] In short, through the embodiment of the present application, in order to automatically generate text labels based on the image of the data object, and make the specific text label have the search hotspot attribute, it can be processed in the stage of training the model. Specifically, the target vocabulary with the search hotspot attribute can be determined first according to the user search record within a certain period of time, and this target vocabulary can be added to the tag library. In addition, in addition to determining the target vocabulary, the data object image can also be annotated with the specific target vocabulary, and the annotated result can be used as a training sample to train the model. For this reason, the embodiment of the present application can also analyze the user behavior record after searching with this target vocabulary as a keyword. If the user performs the target behavior on some data objects in the search record, it can be proved that these data objects have a relatively deep association with the current search keyword. Further, the target vocabulary corresponding to the search keyword can be used to annotate the image corresponding to the data object, and this data object image with annotated information can be used as a training sample for training a specific model. In the model training phase, when obtaining specific training samples, such training samples are not directly read from the merchant's annotation results and other data, but can be analyzed by analyzing the user behavior after the user uses the target word as the keyword to search, and the data objects with a certain depth of association with the specific search keyword are mined from such user behavior data, and then the images of the data objects are annotated using the target word corresponding to the search keyword, and used as training samples. In this way, the quality of the training samples can be improved, which is convenient for improving the prediction accuracy of the model.
[0083] After completing the training of the model, when the model is used for prediction, the target vocabulary that matches the image of the target data object can be determined from the label library and added as the label of the data object. Since only the image of the data object is used as input information when automatically generating labels in the embodiment of the present application, and there is no need to rely on text content, it can be used in cross-border scenarios. In addition, since the target vocabulary in the specific label library has a search hotspot attribute, and the label page specifically added to the data object has a search hotspot attribute, this type of label is more suitable for use in search scenarios, which is beneficial to improving the matching degree between search results and search requirements, and also improves the exposure rate of data objects with corresponding attributes.
[0084] Embodiment 2
[0085] The second embodiment corresponds to the first embodiment, and provides a method for processing a classification model for the model training process after obtaining the training samples. Figure 4 , the method may include:
[0086] S401: Acquire a training sample, wherein the training sample includes an image of a target data object with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined by statistically analyzing user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword;
[0087] S402: Train the classification model using the training samples.
[0088] Embodiment 3
[0089] This third embodiment is also corresponding to the first embodiment. After completing the model training, a method for generating a data object label is provided for the process of using the classification model to predict the data object. Figure 5 , the method may include:
[0090] S501: Obtaining a classification model, wherein the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined by statistically analyzing user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated with the target word as a keyword;
[0091] If the user performs a target operation on one or more data objects in the search results, the one or more data objects are the target data objects. The target operation may specifically include browsing detail pages, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
[0092] S502: Determine the data object to be predicted and its corresponding image information;
[0093] S503: Input the image information of the data object to be predicted into the classification model to obtain a corresponding text label.
[0094] Embodiment 4
[0095] The fourth embodiment is also corresponding to the first embodiment, and provides a method for providing data object search information for a specific data object search process, see Figure 6 , the method may specifically include:
[0096] S601: Establish a data object information library, wherein the information library stores text label information associated with the data object, wherein the text label information includes a target word with a search hotspot attribute; the text label information is determined by predicting an image of the data object using a classification model; the classification model is obtained by training with training samples, wherein the training samples include an image of a target data object with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing a target user behavior record, wherein the target user behavior record includes: a user behavior record after a search is initiated using the target word as a keyword;
[0097] If the user performs a target operation on one or more data objects in the search results, the one or more data objects are the target data objects. The target operation may specifically include browsing detail pages, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
[0098] S602: receiving a search request and determining a search keyword;
[0099] S603: providing search results according to the matching degree between the text tag of the data object and the search keyword.
[0100] In specific implementation, the visual semantic information of the data object image associated with the search result can also be obtained, and the search results can be grouped according to the visual semantic information before being returned to the client for display. The so-called visual semantics refers to the result of the gradual accumulation of non-verbal semantic information, such as type color information in an image, or the movement characteristics of an animal or a person in a dynamic image, etc. There are many ways to obtain the visual semantics of a specific image. For example, relevant models in existing technologies can be used for extraction, etc. In this way, search results with the same visual semantics can be aggregated together and provided to users for easy browsing.
[0101] For the parts not described in detail in the aforementioned embodiments 2 to 4, please refer to the description in embodiment 1, which will not be repeated here.
[0102] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).
[0103] Corresponding to the first embodiment, the present application embodiment also provides a device for obtaining training sample data, see Figure 7 , the device may include:
[0104] The target vocabulary determination unit 701 is used to determine the target vocabulary with the search hotspot attribute according to the user search records in the target time period, wherein the target vocabulary with the search hotspot attribute includes: the vocabulary whose search frequency meets the target condition;
[0105] A target data object determination unit 702 is used to analyze the user behavior record after initiating a search using the target word as a keyword, and determine a target data object having a target relationship with the target word from the search results;
[0106] The labeling unit 703 is used to label the image corresponding to the target data object using the target vocabulary, and determine the image with the labeling information as a training sample, the training sample is used to train the target model, and the target model is used to take the image of the data object to be predicted as input and output the matching target vocabulary for determining as the text label of the data object to be predicted.
[0107] The target data object determination unit may be specifically used for:
[0108] If the user performs a target operation on one or more data objects in the search results, the one or more data objects are determined as the target data objects.
[0109] The target operation includes: browsing detail pages, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
[0110] Specifically, the user search records within the target time period include search keywords corresponding to multiple different languages;
[0111] The target vocabulary determination unit may specifically include:
[0112] A translation subunit, configured to translate the search keywords in the plurality of different languages into a target language;
[0113] A word segmentation processing subunit, used for performing word segmentation processing on the search keyword in the target language to obtain a plurality of words;
[0114] An irrelevant vocabulary filtering subunit, used to filter out vocabulary irrelevant to the data object description information and then count the search frequency information of the vocabulary;
[0115] The target word determination subunit is used to determine the target words with search hotspot attributes according to the search frequency information of each word.
[0116] Wherein, if the target language is English, the device may further include:
[0117] The stem extraction unit is used to extract stems after obtaining multiple words through word segmentation processing, wherein the stem extraction includes: restoring the plural state of the word to the singular, or restoring the tense change of the word to the simple present tense.
[0118] In addition, the device may also include:
[0119] The vocabulary filtering unit is used to filter out target words that cannot be recognized by computer vision.
[0120] A digital encoding unit is used to digitally encode the target vocabulary and associate corresponding digital codes with the image of the target data object for training the target model.
[0121] Corresponding to the second embodiment, the present application embodiment also provides a processing device for a classification model, see Figure 8 , the device may include:
[0122] The sample acquisition unit 801 is used to acquire training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation results of the images of the target data objects are determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword;
[0123] The training unit 802 is used to train the classification model using the training samples.
[0124] Corresponding to the third embodiment, the present application embodiment also provides a device for generating a data object tag, see Fig. 9 , the device may include:
[0125] The classification model obtaining unit 901 is used to obtain a classification model, wherein the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is target words with search hotspot attributes, wherein the target words are determined based on statistics of user search records within a target time period, and the annotation results of the images of the target data objects are determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target words as keywords;
[0126] An image determination unit 902 is used to determine a data object to be predicted and its corresponding image information;
[0127] The prediction unit 903 is used to input the image information of the data object to be predicted into the classification model to obtain a corresponding text label.
[0128] If the user performs a target operation on one or more data objects in the search results, the one or more data objects are the target data objects. The target operation may specifically include browsing detail pages, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
[0129] Corresponding to the fourth embodiment, the present application embodiment also provides a device for providing data object search information, see Fig.10 , the device may include:
[0130] The data object information library establishment unit 1001 is used to establish a data object information library, wherein the information library stores text label information associated with the data object, wherein the text label information includes a target word with a search hotspot attribute; the text label information is determined by predicting the image of the data object using a classification model; the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing the target user behavior record, wherein the target user behavior record includes: a user behavior record after a search is initiated using the target word as a keyword;
[0131] The search request receiving unit 1002 is used to receive the search request and determine the search keyword;
[0132] The search result providing unit 1003 is used to provide search results according to the matching degree between the text label of the data object and the search keyword.
[0133] If the user performs a target operation on one or more data objects in the search results, the one or more data objects are the target data objects. The target operation may specifically include browsing detail pages, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
[0134] In a specific implementation, the device may further include:
[0135] A visual semantics acquisition unit, used to acquire visual semantic information of the data object image associated with the search result;
[0136] A grouping unit is used to group the search results according to the visual semantic information.
[0137] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
[0138] And an electronic device, comprising:
[0139] one or more processors; and
[0140] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
[0141] in, Fig.11 The architecture of the electronic device is shown as an example, which may include a processor 1110, a video display adapter 1111, a disk drive 1112, an input / output interface 1113, a network interface 1114, and a memory 1120. The processor 1110, the video display adapter 1111, the disk drive 1112, the input / output interface 1113, the network interface 1114, and the memory 1120 may be communicatively connected via a communication bus 1130.
[0142] Among them, the processor 1110 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.
[0143] The memory 1120 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1120 can store an operating system 1121 for controlling the operation of the electronic device 1100, and a basic input and output system (BIOS) for controlling the low-level operation of the electronic device 1100. In addition, a web browser 1123, a data storage management system 1124, and a tag processing system 1125, etc. can also be stored. The above-mentioned tag processing system 1125 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided in the present application is implemented by software or firmware, the relevant program code is stored in the memory 1120 and is called and executed by the processor 1110.
[0144] The input / output interface 1113 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0145] The network interface 1114 is used to connect to a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0146] The bus 1130 comprises a pathway for transmitting information between the various components of the device (eg, the processor 1110 , the video display adapter 1111 , the disk drive 1112 , the input / output interface 1113 , the network interface 1114 , and the memory 1120 ).
[0147] It should be noted that, although the above device only shows a processor 1110, a video display adapter 1111, a disk drive 1112, an input / output interface 1113, a network interface 1114, a memory 1120, a bus 1130, etc., in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.
[0148] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0149] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0150] The above is a detailed introduction to the data object tag generation, data object search method, device and electronic device provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for generating a data object label, characterized in that: include: Obtaining a classification model, wherein the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword; Determine the data object to be predicted and its corresponding image information; The image information of the data object to be predicted is input into the classification model to obtain a corresponding text label.
2. The method according to claim 1, characterized in that If the user performs a target operation on one or more data objects in the search results, the one or more data objects are the target data objects.
3. The method according to claim 2, characterized in that The target operation includes: browsing the detail page, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
4. A method for providing data object search information, characterized in that: include: Establishing a data object information library, wherein the information library stores text label information associated with the data object, wherein the text label information includes target words with search hotspot attributes; The text label information is determined by predicting the image of the data object using a classification model; the classification model is obtained by training with training samples, the training samples include images of target data objects with annotation information, the annotation information is a target word with a search hotspot attribute, the target word is determined based on statistics of user search records within a target time period, the annotation result of the image of the target data object is determined by analyzing the target user behavior record, the target user behavior record includes: user behavior record after initiating a search with the target word as a keyword; Receive search requests and determine search keywords; Search results are provided according to the matching degree between the text tag of the data object and the search keyword.
5. The method according to claim 4, characterized in that If the user performs a target operation on one or more data objects in the search results, the one or more data objects are the target data objects.
6. The method according to claim 5, characterized in that The target operation includes: browsing the detail page, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
7. The method according to claim 4, characterized in that Also includes: Acquire visual semantic information of the data object image associated with the search result; The search results are grouped according to the visual semantic information.
8. A method for obtaining training sample data, characterized in that: include: Determine target words with search hotspot attributes according to user search records within a target time period, wherein the target words with search hotspot attributes include: words whose search frequency meets the target condition; Analyze the user behavior records after initiating a search using the target word as a keyword, and determine the target data object having a target relationship with the target word from the search results; The target vocabulary is used to annotate the image corresponding to the target data object, and the image with the annotated information is determined as a training sample. The training sample is used to train the target model. The target model is used to take the image of the data object to be predicted as input and output the matching target vocabulary for determining as the text label of the data object to be predicted.
9. The method according to claim 8, characterized in that The step of determining the target data object having a target relationship with the hot word from the search results includes: If the user performs a target operation on one or more data objects in the search results, the one or more data objects are determined as the target data objects.
10. The method according to claim 9, characterized in that The target operation includes: browsing the detail page, adding to favorites, adding to a to-be-purchased collection, creating an order, completing a transaction, or obtaining customer service resources.
11. The method according to claim 8, characterized in that The user search records within the target time period include search keywords corresponding to multiple different languages; The step of determining a target word with a search hotspot attribute according to user search records within a target time period includes: translating the search keywords in the multiple different languages into a target language; Performing word segmentation processing on the search keyword in the target language to obtain a plurality of words; After filtering out words that are not related to the data object description information, counting the search frequency information of the words; According to the search frequency information of each word, the target word with the search hotspot attribute is determined.
12. The method according to claim 11, characterized in that If the target language is English, the method further comprises: After a plurality of words are obtained through word segmentation, stem extraction is performed, wherein the stem extraction includes: restoring the plural state of the word to the singular, or restoring the tense change of the word to the simple present tense.
13. The method according to claim 8, characterized in that Also includes: Filter out target words that cannot be recognized by computer vision.
14. The method according to claim 8, characterized in that Also includes: The target vocabulary is digitally encoded, and a corresponding digital encoding is associated with the image of the target data object for training the target model.
15. A method for processing a classification model, characterized in that: include: Acquire a training sample, wherein the training sample includes an image of a target data object with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword; The classification model is trained using the training samples.
16. A device for generating a data object label, characterized in that: include: A classification model obtaining unit, used to obtain a classification model, wherein the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated with the target word as a keyword; An image determination unit, used to determine a data object to be predicted and its corresponding image information; The prediction unit is used to input the image information of the data object to be predicted into the classification model to obtain a corresponding text label.
17. A device for providing data object search information, characterized in that: include: A data object information library establishment unit is used to establish a data object information library, wherein the information library stores text label information associated with the data object, wherein the text label information includes a target word with a search hotspot attribute; the text label information is determined by predicting the image of the data object using a classification model; the classification model is obtained by training with training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation result of the image of the target data object is determined by analyzing the target user behavior record, wherein the target user behavior record includes: a user behavior record after a search is initiated using the target word as a keyword; A search request receiving unit, used to receive a search request and determine a search keyword; The search result providing unit is used to provide search results according to the matching degree between the text label of the data object and the search keyword.
18. A device for obtaining training sample data, characterized in that: include: A target vocabulary determination unit, configured to determine a target vocabulary with a search hotspot attribute according to user search records within a target time period, wherein the target vocabulary with a search hotspot attribute includes: a vocabulary whose search frequency meets a target condition; A target data object determination unit, configured to analyze the user behavior record after initiating a search using the target word as a keyword, and determine a target data object having a target relationship with the target word from the search results; A labeling unit is used to label the image corresponding to the target data object using the target vocabulary, and determine the image with the labeling information as a training sample, the training sample is used to train the target model, and the target model is used to take the image of the data object to be predicted as input and output the matching target vocabulary for determining as the text label of the data object to be predicted.
19. A processing device for a classification model, characterized in that: include: A sample acquisition unit is used to acquire training samples, wherein the training samples include images of target data objects with annotation information, wherein the annotation information is a target word with a search hotspot attribute, wherein the target word is determined based on statistics of user search records within a target time period, and the annotation results of the images of the target data objects are determined by analyzing target user behavior records, wherein the target user behavior records include: user behavior records after a search is initiated using the target word as a keyword; A training unit is used to train the classification model using the training samples.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 15 are implemented.
21. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of claims 1 to 15.
