Commodity identification method and apparatus, electronic device, and storage medium

By performing product detection and feature extraction on the pictures in the shared content, and combining image features and text information for matching, the problem of difficulty in accurately identifying the same product and similar products in the existing technology is solved, and rapid and accurate product identification and Buying experience.

WO2024174469A1PCT designated stage expired Publication Date: 2024-08-29SHUXING TECH (BEIJING) CO LTD

Patent Information

Application Number
PCT/CN2023/109421
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2023-07-26
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

It is difficult to accurately mine the same and similar products corresponding to the pictures in the shared content with the existing technology, causing users to spend extra time searching.

Method used

By detecting and classifying the images in the shared content, the image features of the products to be matched are extracted and matched in the product library. The image features and text information are combined to identify the target products and identify the same or similar products.

Benefits of technology

The accuracy and efficiency of product identification are improved. Users can purchase directly through product links added in shared content, reducing search time and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023109421_29082024_PF_FP_ABST
    Figure CN2023109421_29082024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of computers, and the method comprises: determining candidate commodities similar to a commodity to be matched by means of determining an image feature of the commodity to be matched in an image; and according to the image feature similarity between each candidate commodity and the commodity to be matched, commodity description information of each candidate commodity, and text in shared content, performing target commodity identification on the candidate commodities. The present application can implement accurate identification of a commodity that is the same as or similar to the commodity to be matched on the basis of the image in the shared content.
Need to check novelty before this filing date? Find Prior Art

Description

Commodity identification method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to the Chinese patent application filed with the China Patent Office on February 23, 2023, with application number 202310173653.9 and invention name “Commodity Identification Method, Device, Electronic Device and Storage Medium”, the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0003] The present disclosure relates to the field of computer technology, and in particular to a commodity identification method, device, electronic device, and storage medium. Background Art

[0004] With the development of internet technology, content sharing in the form of images, videos, images + text, and videos + text is becoming increasingly common on internet platforms. After the shared content is published, users may want to purchase the same or similar products based on the images in the shared content. This requires users to spend additional time searching for the same or similar products. Therefore, how to accurately discover the same and similar products based on the images in the shared content is a technical problem that needs to be solved in related technologies. Technical issues

[0005] How to accurately mine identical and similar products based on images in shared content is a technical problem that needs to be urgently addressed in related technologies. Technical Solutions

[0006] In view of the above problems, the embodiments of the present disclosure propose a product identification method, device, electronic device and storage medium to accurately recall the same or similar products based on pictures in shared content.

[0007] According to one aspect of an embodiment of the present disclosure, a product identification method is provided, including: performing product detection and classification on pictures in shared content, determining a first pixel area in the picture where a product to be matched is located and a product category to which the product to be matched belongs; performing feature extraction on the first pixel area using a feature extraction model corresponding to the product category to which the product to be matched belongs, to obtain image features of the product to be matched in the picture; performing product matching in a product library based on the image features of the product to be matched, to determine candidate products similar to the product to be matched; and performing target product identification on the candidate product based on the image feature similarity between the image features of the candidate product and the image features of the product to be matched, product description information of the candidate product in the product library, and text in the shared content.

[0008] According to one aspect of an embodiment of the present disclosure, a product identification device is provided, including: a detection and classification module, configured to perform product detection and classification on images in shared content, and determine a first pixel area in the image where a product to be matched is located and a product category to which the product to be matched belongs; a feature extraction module, configured to perform feature extraction on the first pixel area through a feature extraction model corresponding to the product category to which the product to be matched belongs, and obtain image features of the product to be matched in the image; a product matching module, configured to perform product matching in a product library according to the image features of the product to be matched, and determine candidate products similar to the product to be matched; and a recall module, configured to perform target product identification on the candidate product according to the image feature similarity between the image features of the candidate product and the image features of the product to be matched, the product description information of the candidate product in the product library, and the text in the shared content.

[0009] According to one aspect of an embodiment of the present disclosure, an electronic device is provided, including: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the commodity identification method described above is implemented.

[0010] According to one aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the commodity identification method described above is implemented.

[0011] According to one aspect of an embodiment of the present disclosure, a computer program product is provided, which includes computer instructions, and when the computer instructions are executed by a processor, the above commodity identification method is implemented. Beneficial effects

[0012] In the present disclosure, a feature extraction model is constructed for different product categories, and the image feature extraction of the first pixel area where the product to be matched is located is performed using the feature extraction model corresponding to the product category to which the product to be matched belongs. This ensures that the extracted image features of the product to be matched are representative of the visual characteristics of the product to be matched, ensures the accuracy of the image features of the product to be matched, and thus ensures the accuracy of the candidate products determined for the product to be matched based on the image features of the product to be matched. Moreover, after determining the candidate product for the product to be matched, the candidate product is recalled based on the image feature similarity between the image features of the candidate product and the image features of the product to be matched, the product description information of the candidate product in the product library, and the text in the shared content. This is equivalent to combining the image features (visual features) of the product to be matched and the text in the shared content to identify the target product. Compared with using only information in one modality (for example, only visual features) for identification, the present disclosure can improve the accuracy of identifying the target product. The identified target product can be a similar product or the same product as the product to be matched. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0014] FIG1 is a schematic diagram illustrating an application scenario of the present disclosure according to an embodiment of the present disclosure.

[0015] FIG2 is a flowchart showing a commodity identification method according to an embodiment of the present disclosure.

[0016] FIG3 is a flowchart showing step 210 according to an embodiment of the present disclosure.

[0017] FIG4 is a flowchart showing step 210 according to another embodiment of the present disclosure.

[0018] FIG5 is a flowchart showing step 240 according to an embodiment of the present disclosure.

[0019] FIG6 is a schematic diagram illustrating brand consistency verification and category consistency verification according to an embodiment of the present disclosure.

[0020] FIG. 7 is a flowchart showing step 240 according to another embodiment of the present disclosure.

[0021] FIG8 is a flowchart of a commodity identification method according to a specific embodiment of the present disclosure.

[0022] FIG9 is a block diagram of a commodity identification device according to an embodiment of the present disclosure.

[0023] FIG10 shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure. Modes for Carrying Out the Invention

[0024] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art.

[0025] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0026] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0027] It should be noted that the term "plurality" used in this document refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. The character " / " generally indicates an "or" relationship between the associated objects.

[0028] FIG1 is a schematic diagram of an application scenario of the present disclosure according to an embodiment of the present disclosure. As shown in FIG1 , the application scenario includes a terminal 110 and a server 120. The terminal 110 is connected to the server 120 via a wired or wireless network. The terminal 110 can run a client program of a content sharing application, so that the terminal 110 can display the user interface of the content sharing application and input the content to be shared based on the user interface. After that, the terminal 110 can send the content to be shared to the server 120, and the server 120 will publish the shared content, so that other users in the content sharing application can view the published shared content. A content sharing application refers to an application with a content sharing function. In the present disclosure, the shared content includes at least pictures. Furthermore, the shared content may also include text.

[0029] In the present disclosure, a product library can be deployed in the server 120, and multiple products can be stored in the product library. On this basis, the server 120 can execute the product identification method provided in the present disclosure according to the published shared content and the product library, so as to recall the same or similar products in the shared content. Specifically, the server 120 can implement product recall according to the following process: perform product detection and classification on the pictures in the shared content; perform image feature extraction on the first pixel area where the product to be matched is located; perform product matching in the product library based on the image features; perform target product identification on the candidate products, that is, identify whether the candidate product is the same or similar product to the product to be matched. The implementation details of the product identification performed by the server 120 are described below.

[0030] In some embodiments, the server 120 may also add product links identified as candidate products for the same product or similar products to the shared content. In this way, for users viewing the shared content, if they want to purchase the same product or similar products in the shared content, they can directly purchase them based on the product links added to the shared content without the need for additional product searches, thereby shortening the time it takes for users to purchase the same or similar products and improving the user experience.

[0031] The following describes in detail the implementation details of the technical solution of the embodiment of the present disclosure:

[0032] FIG2 is a flowchart of a commodity identification method according to an embodiment of the present disclosure. The method can be executed by an electronic device with processing capabilities, such as the server 120 in FIG1 . Referring to FIG2 , the method includes at least steps 210 to 240, which are described in detail as follows:

[0033] Step 210 : Perform product detection and classification on the image in the shared content, and determine the first pixel area where the to-be-matched product is located in the image and the product category to which the to-be-matched product belongs.

[0034] Shared content can be content uploaded by a terminal to be distributed, or it can be shared content that has already been published, and is not specifically limited here. In the present disclosure, shared content at least includes an image, which can be an image that is part of the shared content or a video frame in a video included in the shared content. Furthermore, shared content can also include text.

[0035] In some embodiments, the server 120 can determine whether to recall a product based on user feedback on the shared content. User feedback on shared content indicates user feedback behaviors triggered by the shared content. These behaviors include, for example, likes, favorites, forwarding, purchase requests, comments, screenshots, and saving images of the shared content, among others, which are not specifically defined herein. In a specific embodiment, the server 120 can calculate an attention score for the shared content based on user feedback. A higher attention score indicates a higher level of attention for the shared content. Therefore, the server 120 can recall products for shared content whose attention scores exceed a threshold. If a shared content's attention score does not exceed the threshold, it indicates that the shared content is not highly noticed, meaning that users are not particularly interested in the shared content. Therefore, in this case, a product recall for the shared content may not be necessary. This allows the server 120 to perform a targeted product recall based on the shared content, avoiding waste of processing resources within the server 120.

[0036] The shared content may include multiple pictures. For each picture in the shared content, the method disclosed herein can be used to identify the same product or similar products.

[0037] The first pixel region refers to the pixel region in the image where the to-be-matched product is located. The to-be-matched product refers to the product identified in the image. In a specific embodiment, the image may contain one or more products. If there are multiple products in the image, each product in the image may be used as a to-be-matched product, or some of the products in the image may be used as to-be-matched products.

[0038] In some embodiments, as shown in FIG3 , step 210 includes the following steps 310 to 320 :

[0039] Step 310: Perform product detection on the image in the shared content using a product detection model to determine the first pixel area where each to-be-matched product in the image is located.

[0040] Among them, the product detection model refers to a model that detects the product in the image as the target. The product detection model is a model constructed by one or more neural networks, such as recurrent neural networks, convolutional neural networks, fully connected networks, etc., which are not specifically limited here. In some embodiments, the product detection model can also be R-CNN (Regin Convolutional Neural Network, regional convolutional neural network), Fast R-CNN (fast regional convolutional neural network), Faster R-CNN, YOLO (You Only Look Me), R-FCN (Object Detection via Region-based Fully Convolutional Networks, object detection based on region-based fully convolutional network) model, etc.

[0041] In step 310, the image is input into the product detection model, which extracts image features from the image and then identifies the products based on their image features, outputting the position information of the detection frames corresponding to the products in the image. The detection frame corresponding to the product refers to the bounding box surrounding the product in the image, and the detection frame can be a rectangular shape or other shape. Since the product detection model outputs the position information of the detection frame corresponding to each product, the pixel area of ​​the candidate product in the image, i.e., the first pixel area, can be located based on the position information of the detection frame corresponding to the product. That is, the pixel area surrounded by the detection frame corresponding to the candidate product is used as the first pixel area where the candidate product is located.

[0042] As described above, the picture may include multiple products. Therefore, in step 310, the product detection model can output the location information of one detection box or the location information of multiple detection boxes. If the product detection model outputs the location information of multiple detection boxes, it indicates that the product detection model recognizes that the picture includes multiple products.

[0043] It is worth mentioning that in order to ensure the accuracy of the product detection model, before step 310, the product detection model is trained using the first training data, wherein the first training data includes multiple sample images and annotation information of the sample images, and the annotation information of the sample images is used to indicate the products included in the image and the location information of the detection box corresponding to the product in the image.

[0044] Step 320 : Identify the product category based on the first pixel area using a product classification model, and output the product category to which the to-be-matched product belongs.

[0045] The product classification model is used to identify the pixel category of the pixel area where the product is located. The product classification model can also be a model built using one or more neural networks.

[0046] In order to ensure the accuracy of the product classification model in identifying product categories, in step 320, the product classification model is trained using second training data, wherein the second training data includes multiple sample product images and labeling information corresponding to the sample product images, and the labeling information corresponding to the sample product images is used to indicate the product category to which the products in the sample product images belong. During the training process, the sample product images are input into the product classification model, which extracts features from the sample product images, predicts product categories based on the extracted features, and outputs the predicted product category corresponding to the sample product images; thereafter, the loss value is calculated based on the predicted product category corresponding to the sample product images and the product category indicated by the labeling information corresponding to the sample product images, and the parameters of the product classification model are adjusted inversely based on the loss value until the training end conditions are met.

[0047] In step 320, the first pixel area is input into the commodity classification model, which extracts features from the first pixel area, classifies the commodity category based on the extracted features, and outputs the commodity category to which the first pixel area belongs.

[0048] In a specific embodiment, the product categories for products can be divided according to a primary directory or a multi-level directory. In the case where the product categories are divided according to a multi-level directory, the same product belongs to a product category at each level of the multi-level directory.

[0049] For example, under the first-level category of beauty and cosmetics, there are four second-level categories, namely: cosmetics / perfumes / beauty tools; under the second-level category of beauty tools, there is a third-level category: beauty tools; under the third-level category of beauty tools, there is a fourth-level category: makeup brushes; in this way, for a makeup brush of brand A and material B, its fourth-level category is makeup brushes, its third-level category is beauty tools, its second-level category is beauty tools, and its first-level category is beauty and cosmetics.

[0050] Therefore, when the product categories are divided according to a multi-level catalog, in step 320, the product category to which the output first pixel area belongs includes the product category to which the to-be-matched product corresponding to the first pixel area belongs at each level of the category.

[0051] As described above, the image may include multiple products. Therefore, in step 320, the first pixel area of ​​each to-be-matched product in the identified image is input into the product classification model for product category identification to obtain the product category to which each to-be-matched product in the image belongs.

[0052] In some other embodiments, as shown in FIG4 , step 210 includes steps 410 to 440, which are described in detail as follows:

[0053] Step 410: Perform product detection on the image in the shared content using a product detection model to determine the first pixel area where each product in the image is located.

[0054] Step 420 : Identify the product category based on the first pixel area using a product classification model, and output the product category to which each product belongs.

[0055] In this embodiment, the implementation details of step 410 and step 420 are the same as the implementation details of step 310 to step 320, and are not repeated here.

[0056] Step 430 : Sort the products in the image by using a product sorting model according to the first pixel area where each product is located and the product category to which each product belongs, to obtain a product sorting corresponding to the image.

[0057] Step 440 : The first preset number of products in the product ranking are selected as products to be matched, and the first pixel area where each product to be matched is located and the product category to which each product to be matched belongs are output.

[0058] As described above, the picture may include multiple products, and the user may not be very interested in some of the products in the picture. Therefore, in this case, the products identified in the picture can be sorted, and the first preset number of products in the product sorting can be used as products to be matched, so that subsequent product recall can be performed based on the determined products to be matched, and the products ranked later in the product sorting do not need to participate in the subsequent product recall process.

[0059] Thus, the first pixel areas and corresponding product categories corresponding to multiple products in the image can be input into the product ranking model. The product ranking model then determines the importance score of each product in the image based on the first pixel areas and corresponding product categories, and sorts the multiple products in the image in descending order of importance to obtain a corresponding product ranking. Subsequently, a preset number of products in the product ranking are selected as the products to be matched. The preset number can be set according to actual needs, such as 2, 3, etc.

[0060] 2 , step 220 , extracting features from the first pixel region using a feature extraction model corresponding to the product category to which the product to be matched belongs, thereby obtaining image features of the product to be matched in the image.

[0061] In the present disclosure, a feature extraction model corresponding to each product category is constructed. Therefore, after identifying the product category to which the product to be matched belongs, the feature extraction model corresponding to the product category to which the product to be matched belongs is used to extract features of the first pixel area where the product to be matched is located.

[0062] The feature extraction model corresponding to each product category is a model constructed through one or more neural networks. The feature extraction model is constructed and trained specifically for each product category, so that the feature extraction model is targeted at the pixel area where the products belonging to the product category are located, thereby ensuring the accuracy of the image features extracted by the feature extraction model.

[0063] As described above, product categories can be divided according to multi-level catalogs. In this case, a feature extraction model can be constructed for each first-level category, that is, products belonging to the same first-level category share the same feature extraction model. In this way, it can be ensured that the feature extraction model can perform targeted feature extraction on the pixel areas of products in different product categories, and the number of constructed feature extraction models can be reduced.

[0064] Step 230 : Match products in the product library based on the image features of the product to be matched, and determine candidate products similar to the product to be matched.

[0065] The product library stores product information of multiple products, and the product information may include pictures corresponding to the products, or image features corresponding to the product pictures of the products. Based on the image features corresponding to each product in the product library and the image features of the product to be matched, the feature similarity between the image features of the product to be matched and the image features corresponding to each product in the product library can be calculated, and based on the determined feature similarity, candidate products similar to the product to be matched can be determined. In a specific embodiment, a product in the product library whose feature similarity with the product to be matched is greater than a similarity threshold can be determined as a candidate product similar to the product to be matched. The similarity threshold can be set according to actual needs, for example, 85%, 90%, 95%, etc., and is not specifically limited here.

[0066] Step 240 : Target product identification is performed on the candidate product based on the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library, and the text in the shared content.

[0067] In the present disclosure, the product information for each product in the product library also includes product description information. The product description information includes at least the product name and the product category to which the product belongs. Similarly, if the product categories are divided into multiple levels of directories, the product category to which each product in the product library belongs includes the product category to which the product belongs at each level of the product category.

[0068] The target product may be the same product or a similar product to the product to be matched. Target product identification is performed on the candidate product, that is, identifying whether the candidate product is the same product or a similar product to the product to be matched.

[0069] In some embodiments, the target product includes the same product as the product to be matched. In this case, the same product identification can be performed according to the process shown in Figure 5. As shown in Figure 5, when the image feature similarity is greater than the first threshold, step 240 includes the following steps 510-530, which are described in detail as follows:

[0070] Step 510 , determine whether the text in the shared content includes the brand word; if it does, execute the following steps 520 - 530 ; if it does not, execute the following steps 540 - 550 .

[0071] In some embodiments, before step 510, brand word recognition may be performed on the text in the shared content to determine whether the text in the shared content includes brand words. That is, before step 510, the method further includes: obtaining the text in the shared content; performing brand word recognition on the text in the shared content, and determining a brand word recognition result corresponding to the text, where the brand word recognition result indicates whether the text includes brand words.

[0072] In a specific embodiment, the brand word recognition model can be used to identify brand words in the text and output the corresponding brand word recognition results. The brand word recognition model refers to a neural network model used to identify brand words. After the text in the shared content is input into the brand word recognition model, the brand word recognition model extracts semantic features from each word in the text, and then classifies the brand words according to the extracted semantics, and outputs the corresponding brand word recognition results. It can be understood that if the brand word recognition result indicates that the text includes brand words, the brand word recognition result corresponds to the brand words in the identified text.

[0073] In order to ensure the recognition accuracy of the brand word recognition model, it is necessary to pre-train the brand word recognition model using third training data. The third training data includes multiple sample texts and annotation information of the sample texts. The annotation information of the sample texts is used to indicate the brand words included in the sample texts. Afterwards, each sample text is input into the brand word recognition model, which performs brand word recognition on the sample text and outputs the brand word recognition result corresponding to the sample text; then, based on the brand word recognition result corresponding to the sample text and the brand words included in the sample text indicated by the annotation information corresponding to the sample text, the loss value is calculated, and the parameters of the brand word recognition model are adjusted inversely based on the loss value until the training end condition of the brand word recognition model is reached.

[0074] Step 520: Determine the brand of the candidate product from the product description information of the candidate product in the product library.

[0075] As described above, the product description information includes the brand of the product. Therefore, for a candidate product, the brand of the candidate product can be determined from the product description information of the candidate product.

[0076] In step 530 , if the brand to which the candidate product belongs is the same as the brand indicated by the brand word included in the text of the shared content, the candidate product is determined to be the same product as the product to be matched.

[0077] In some embodiments, since some brands may have aliases, there may be two different brand names that actually indicate the same brand. Therefore, in order to avoid incorrect judgment results on whether the brand of the candidate product and the brand word in the text of the shared content belong to the same brand due to the brand alias or other reasons, the brand of the candidate product in the product description information and the brand word in the text of the shared content can be mapped to the same standard brand word library before step 530. In this way, if the brand of the candidate product is represented by an alias, after mapping to the standard brand word library, the brand of the candidate product can be represented by the standard brand word of the brand. Similarly, if the brand word included in the text of the shared content is represented by an alias of the brand, after mapping to the standard brand word library, the brand represented by the brand word in the text of the shared content can be represented by the standard brand word of the brand.

[0078] Since the text in the shared content and the picture in the shared content belong to the same shared content, the text in the shared content can be understood as a text description of the picture in the shared content. On this basis, the brand indicated by the brand word in the text in the shared content can be determined as the brand of the product to be matched. Since the image feature similarity between the image features of the candidate product and the image features of the product to be matched is greater than the first threshold, it indicates that the visual features of the candidate product and the product to be matched are relatively similar. In this case, if the brand to which the candidate product belongs is the same brand as the brand to which the product to be matched belongs, then the probability that the candidate product and the product to be matched belong to the same product is high. Therefore, if it is determined that the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, it can be determined that the candidate product is the same product as the product to be matched, and the candidate product will be recalled accordingly.

[0079] In the embodiment of steps 510 to 530 above, when the image feature similarity is greater than the first threshold and the text in the shared content includes brand words, if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand words included in the text in the shared content, the candidate product is determined to be the same product as the product to be matched. This is equivalent to using image features as the main constraint and using brand words in the text in the shared content for weak supervision to achieve accurate recall of candidate products that are the same as the product to be matched. Since the image features of the product to be matched and the text in the shared content are combined to determine whether the candidate product is the same product as the product to be matched based on information from these two modalities, the accuracy of identifying the same product is improved compared to using information in one modality to identify the same product.

[0080] Step 540 : Determine the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library.

[0081] As described above, the product description information of the candidate product in the product library indicates the product category to which the candidate product belongs. Therefore, the product category to which the candidate product belongs can be determined according to the product description information of the candidate product.

[0082] In some embodiments, step 540 includes: if the product name of the candidate product includes the product category to which the product to be matched belongs, or the semantic similarity between the product category to which the product to be matched belongs and the product category description of the candidate product is greater than the semantic similarity threshold, then determining that the category similarity between the product to be matched and the candidate product is the first category similarity, and the first category similarity is greater than the category similarity threshold; the name of the candidate product and the product category description of the candidate product are obtained from the product description information of the candidate product.

[0083] Typically, for a product, the product name generally reflects the lowest level of the product category to which the product belongs. For example, a brand of makeup brushes generally includes "makeup brushes" in its name, and the lowest level of the product catalog to which the product belongs is also makeup brushes. Therefore, based on the product name of the candidate product and the lowest level of the product category to which the to-be-matched product belongs, if the lowest level of the product category to which the to-be-matched product belongs is in the product name of the candidate product, it can be determined that the to-be-matched product and the candidate product belong to the same product category. Therefore, at this time, it can be determined that the category similarity between the to-be-matched product and the candidate product is large. In this embodiment, when the category similarity between the to-be-matched product and the candidate product is large, the category similarity between the two is unified to the first category similarity that is greater than the category similarity threshold.

[0084] If the semantic similarity between the product category of the to-be-matched product and the product category description of the candidate product is greater than the semantic similarity threshold, it indicates that there is a high probability that the product category of the to-be-matched product and the product category of the candidate product are the same product category. Therefore, in this case, it can be determined that the to-be-matched product and the candidate product belong to the same product category. In this embodiment, if the semantic similarity between the product category of the to-be-matched product and the product category description of the candidate product is greater than the semantic similarity threshold, the category similarity between the two is unified to the first category similarity that is greater than the category similarity threshold.

[0085] Step 550: If the category similarity is greater than the category similarity threshold, the candidate product is determined to be the same product as the product to be matched.

[0086] As described above, when the category similarity is greater than the category similarity threshold, it indicates that there is a high probability that the candidate product and the product to be matched belong to the same category. Since the image feature similarity between the two is also high, it can be approximately considered that the candidate product and the product to be matched are the same product, and the candidate product is recalled accordingly.

[0087] In the embodiment of step 510 and step 540-step 550 above, when the image feature similarity is greater than the first threshold and the text in the shared content does not include brand words, if the category similarity between the product to be matched and the candidate product is greater than the category similarity threshold, the candidate product is recalled, which is equivalent to using image features as the main constraint and the category to which the product belongs as weak supervision to achieve accurate recall of candidate products that are the same as the product to be matched. Since the image features of the product to be matched and the product category to which the product belongs (i.e., the product category to which the candidate product belongs and the product category to which the product to be matched belongs) are combined to determine whether the candidate product is the same product as the product to be matched, the accuracy of identifying the same product is improved compared to using information under one modality to identify the same product.

[0088] In steps 520-530 above, the process of determining whether the brand of the candidate product and the brand indicated by the brand term in the text of the shared content are the same brand based on the brand to which the candidate product belongs and the brand term included in the text of the shared content can be summarized as a brand consistency verification process. In steps 540-550 above, the process of determining the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library, and then determining whether the two are in the same product category based on the category similarity can be summarized as a category consistency verification process.

[0089] On this basis, the embodiment corresponding to Figure 5 can be summarized as the process shown in Figure 6, namely: when the image feature similarity is greater than the first threshold and the text in the shared content includes brand words, brand consistency verification is performed based on the product description information of the candidate product (specifically the brand to which the candidate product belongs in the product description information) and the text in the shared content; when the image feature similarity is not greater than the first threshold and the text in the shared content does not include brand words, category consistency verification is performed based on the product category to which the product to be matched belongs and the product description information of the candidate product (mainly the product category to which the candidate product belongs and the name of the candidate product).

[0090] In some embodiments, the target product also includes similar products to the product to be matched. In this case, identification can be performed according to the process shown in Figure 7. As shown in Figure 7, when the second threshold ≤ image feature similarity ≤ first threshold (it can be understood that the second threshold is less than the first threshold), step 240 includes the following steps 510-520, step 540, and step 710, which are detailed as follows:

[0091] Step 510, determine whether the text in the shared content includes the brand word; if it does, execute the following steps 520, 710-720; otherwise, if it does not, execute the following steps 540 and 720.

[0092] Step 520: Determine the brand of the candidate product from the product description information of the candidate product in the product library.

[0093] Step 540: Determine the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library. The specific implementation details of determining the category similarity are described above and will not be repeated here.

[0094] In step 710 , if the brand to which the candidate product belongs is the same as the brand indicated by the brand word included in the text of the shared content, and the category similarity is greater than the category similarity threshold, the candidate product is determined to be a similar product to the product to be matched.

[0095] In the embodiment of Figure 7, when the second threshold value ≤ image feature similarity ≤ first threshold value, and the text in the shared content includes brand words, it is equivalent to performing both brand consistency verification and category consistency verification. When it is determined based on brand consistency verification that the two belong to the same brand, and based on category consistency verification that the two belong to the same category (that is, the category similarity between the two is greater than the category similarity threshold), the candidate product is recalled. In this embodiment, compared with the embodiment corresponding to Figure 5, the image feature similarity between the image features of the candidate product and the image features of the product to be matched is slightly lower than that of the embodiment corresponding to Figure 5. Therefore, the text in the shared content and the brand to which the candidate product belongs are used as weak supervision at the same time. Not only brand consistency verification is performed on the candidate product, but also category consistency verification is performed, which strengthens the recall constraints of the candidate product, thereby ensuring the accuracy of similar products of the recalled product to be matched.

[0096] In some embodiments, please continue to refer to Figure 7. When the second threshold ≤ image feature similarity ≤ first threshold, step 240 also includes the following steps 540 and 720, namely: if it is determined that the text in the shared content does not include brand words, then execute steps 540 and 720.

[0097] Step 540 : Determine the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library.

[0098] Step 720: If the category similarity is greater than the category similarity threshold and the image feature similarity is greater than the third threshold, the candidate product is determined to be a similar product to the product to be matched, and the third threshold is greater than the second threshold and less than the first threshold.

[0099] In some embodiments, the third threshold may be equal to a product of a penalty factor and the first threshold, where the penalty factor is a number greater than zero and less than 1.

[0100] In this embodiment, when the second threshold ≤ image feature similarity ≤ first threshold, and the text in the shared content does not include brand words, it is equivalent to determining whether the candidate product is a similar product to the product to be matched based on the verification result of the category consistency verification and the penalty factor, that is, when the category consistency conditions are met (that is, the category similarity of the two is greater than the category similarity threshold), and the third threshold < image feature similarity ≤ first threshold, the candidate product is determined to be a similar product to the product to be matched.

[0101] The embodiment corresponding to the above Figure 7 can be summarized as follows: when the second threshold ≤ image feature similarity ≤ first threshold and the text in the shared content includes brand words, brand consistency verification and category consistency verification are performed on the candidate products; when the second threshold ≤ image feature similarity ≤ first threshold and the text in the shared content does not include brand words, category consistency verification is performed on the candidate products, and the requirements for image feature similarity of the same products that need to be recalled are strengthened based on the penalty factor.

[0102] In some embodiments, in order to further distinguish the relationship between the recalled candidate products and the products to be matched, a first threshold can be determined based on the image feature similarity between product images of the same product, and a second threshold can be determined based on the image feature similarity between product images of similar products. Specifically, the first threshold can be set to be slightly greater than the image feature similarity between product images of the same product, or in other words, the first threshold is slightly greater than the image feature similarity threshold corresponding to the same product; the second threshold is slightly less than the image feature similarity between product images of similar products, or in other words, the second threshold is slightly less than the image feature similarity threshold corresponding to similar products. On this basis, the recalled candidate products determined in accordance with the embodiment corresponding to FIG5 can be marked as the same product of the product to be matched, and the recalled candidate products determined in accordance with the embodiment corresponding to FIG7 can be marked as the similar product of the product to be matched, thereby achieving accurate division of the recalled candidate products into similar products and the same products.

[0103] In some embodiments, after step 240, the method further includes adding a product link of a candidate product of the same or similar product to be matched to the shared content. In this way, if a user wants to purchase the same or similar product based on an image in the shared content, they can purchase it through the product link in the shared content without having to conduct an additional product search or search for the same or similar product from other channels.

[0104] In some embodiments, after step 240, the method further includes: determining an attention score corresponding to the shared content based on user feedback on the shared content, and then using the attention score corresponding to the shared content as the attention score of a candidate product identified as a similar product or the same product based on the shared content, and sending a product link of the candidate product to the user based on the attention score of the candidate product, or sorting the products on the product page based on the attention score of the candidate product, so that the candidate products with higher attention scores are located at the front of the product page, so that users can quickly pay attention to products with higher attention scores without spending a lot of time looking for and searching for products.

[0105] In some embodiments, an enhancement factor or enhancement score can be set for the same product. In this way, for candidate products recalled for the same shared content, if the candidate product is the same product, the product of the shared content's attention score and the enhancement factor is used as the corresponding attention score for the product, or the sum of the shared content's attention score and the enhancement score is used as the corresponding attention score for the product; if the candidate product is a similar product, the shared content's attention score is used as the corresponding attention score for the candidate product. In this way, it can be ensured that among the candidate products recalled for the same shared content, the attention score of the same product is higher than that of the similar products. In addition, the same product can be recommended first, or displayed at the front of the product page.

[0106] In the present disclosure, a feature extraction model is constructed for different product categories, and the image feature extraction model corresponding to the product category to be matched is used to extract the image features of the first pixel area where the product to be matched is located. This ensures that the extracted image features of the product to be matched are representative of the visual characteristics of the product to be matched, ensures the accuracy of the image features of the product to be matched, and thus ensures the accuracy of the candidate products determined for the product to be matched based on the image features of the product to be matched. Moreover, after the candidate products are determined for the product to be matched, the candidate products are recalled based on the image feature similarity between the image features of the candidate products and the image features of the product to be matched, the product description information of the candidate products in the product library and the text in the shared content. This is equivalent to combining the image features (visual features) of the product to be matched and the text in the shared content to identify the target product. Compared with using only information in one modality (for example, only visual features) for identification, the present disclosure can improve the accuracy of identifying the target product, wherein the identified target product can be a similar product or the same product as the product to be matched.

[0107] In some embodiments, if the same or similar products are not identified based on the shared content, the possible reason is that the products in the product library are limited. In this case, the pictures in the shared content can be sent to the product review end, and then the user of the product review end manually expands the products based on the pictures in the shared content, and adds the product description information of the expanded products to the product library, which is equivalent to enriching the products in the product library based on the shared content.

[0108] FIG8 is a flow chart of a product identification method according to a specific embodiment of the present disclosure. As shown in FIG8 , the shared content ID of the shared content can be input, and then, based on the shared content ID, the image in the shared content can be obtained. In other embodiments, the image URL (Uniform Resource Locator) of the image can also be input, and the image in the shared content can be obtained based on the image URL.

[0109] Afterwards, the step of matching candidate products can be performed based on the pictures in the shared content. Specifically, as shown in Figure 8, based on the pictures in the shared content, the product detection model, product classification model and product sorting model are used in sequence to output the first pixel area where the product to be matched in the picture is located and the product category to which the product to be matched belongs. Thereafter, according to the product category to which the product to be matched belongs, the feature extraction model corresponding to the product category to which the product to be matched belongs is determined, and the corresponding feature extraction model is used to extract features from the first pixel area where the product to be matched is located to obtain the image features corresponding to the product to be matched. Figure 8 exemplifies a clothing feature extraction model, a shoe feature extraction model, a luggage feature extraction model, a beauty feature extraction model, and the like. It is worth mentioning that the feature extraction models deployed for different product categories are not limited to those shown in Figure 8.

[0110] It is understandable that for a picture, there may be multiple products to be matched. For each identified product to be matched, the subsequent product matching and product identification process is carried out according to the method disclosed in this disclosure. In this way, the problem of identifying the same or similar products in the complex shared content or pictures can be broken down into the problem of recalling the same or similar products of a single product to be matched. After that, simple deduplication can be performed, simplifying the problem of identifying the same or similar products based on shared content and pictures.

[0111] In the embodiment corresponding to FIG8 , the product library includes product sub-libraries for different product categories, such as the apparel product sub-library for apparel, the footwear product sub-library for footwear, the luggage product sub-library for luggage, and the beauty product sub-library for beauty products. In other embodiments, the deployed product sub-libraries are not limited to those shown in FIG8 . Subsequently, for the product to be matched, the product sub-libraries corresponding to the product category to which the product to be matched belongs can be matched based on the image features of the product to be matched extracted by the corresponding feature extraction model, and candidate products similar to the product to be matched can be determined.

[0112] Afterwards, for the determined candidate products, the same product identification or similar product identification processing can be performed. Specifically: you can first call the product information to obtain the RPC (Remote Procedure Call) service to obtain the product description information of the candidate product from the product library. And based on the product description information of the candidate product, the brand word recognition result of the text in the shared content, and the product category to which the product to be matched belongs, perform at least one of brand consistency verification and category consistency verification to determine that the candidate product is identified as the same product or similar product to the product to be matched. For the specific process of performing brand consistency verification and category consistency verification, please refer to the description of the corresponding embodiments in Figures 5 to 7 above, which will not be repeated here.

[0113] Since multiple products to be matched may be identified in a picture in the shared content, multiple candidate products may be determined for each product to be matched, and the shared content may include multiple pictures, duplicate candidate products may be recalled for the same shared content. Therefore, the recalled candidate products can be deduplicated. In a specific embodiment, the candidate products can be deduplicated in the shared content dimension or the picture dimension. Specifically, if the candidate products are deduplicated in the shared content dimension, the multiple candidate products recalled for the same shared content can be deduplicated; if the candidate products are deduplicated in the picture dimension, the multiple candidate products recalled for the same picture can be deduplicated.

[0114] After deduplication of candidate products, the product ID of the candidate product can be written into the first product library, which can be used to actively push products to users in the future, or to add the product link of the candidate product to the corresponding shared content.

[0115] In this embodiment, product detection, product classification, and feature extraction are performed based on the pictures in the shared content to obtain the image features (which can also be understood as visual features) of the products to be matched. Afterwards, the first and second thresholds set for the visual features are used as the main constraints, and the product category and brand words in the text of the shared content are used as weak supervision to perform product recall, which can achieve accurate recall of products from the image threshold to the product threshold.

[0116] The following describes an apparatus embodiment of the present disclosure, which can be used to perform the method described in the above embodiments of the present disclosure. For details not disclosed in the apparatus embodiment of the present disclosure, please refer to the above method embodiment of the present disclosure.

[0117] Figure 9 is a block diagram of a product identification device according to an embodiment of the present disclosure. The product identification device can be configured in an electronic device to implement the product identification method provided by the present disclosure. As shown in Figure 9, the product identification device includes: a detection and classification module 910, which is used to detect and classify products in pictures in shared content, and determine the first pixel area in the picture where the product to be matched is located and the product category to which the product to be matched belongs; a feature extraction module 920, which is used to extract features from the first pixel area using a feature extraction model corresponding to the product category to which the product to be matched belongs, and obtain image features of the product to be matched in the picture; a product matching module 930, which is used to match products in a product library based on the image features of the product to be matched, and determine candidate products similar to the product to be matched; and an identification module 940, which is used to identify target products for candidate products based on the image feature similarity between the image features of the candidate products and the image features of the product to be matched, the product description information of the candidate products in the product library, and the text in the shared content.

[0118] In some embodiments, the target product includes the same product as the product to be matched; the identification module 940 includes: a first identification unit, which is used to determine the brand of the candidate product from the product description information of the candidate product in the product library if the image feature similarity is greater than a first threshold and the text in the shared content includes brand words; if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand words included in the text in the shared content, the candidate product is determined to be the same product as the product to be matched; a second identification unit, which is used to determine the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library if the image feature similarity is greater than a first threshold and the text in the shared content does not include brand words; if the category similarity is greater than the category similarity threshold, the candidate product is determined to be the same product as the product to be matched.

[0119] In some embodiments, the target product also includes similar products of the product to be matched; the identification module 940 also includes: a brand determination unit, which is used to determine the brand of the candidate product from the product description information of the candidate product in the product library if the second threshold ≤ image feature similarity ≤ first threshold and the text in the shared content includes brand words; a category similarity determination unit, which is used to determine the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library; a third identification unit, which is used to determine that the candidate product is a similar product of the product to be matched if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand words included in the text in the shared content, and the category similarity is greater than the category similarity threshold.

[0120] In some embodiments, the identification module 940 also includes: a fourth identification unit, which is used to determine the category similarity between the product to be matched and the candidate product based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library if the second threshold ≤ image feature similarity ≤ first threshold, and the text in the shared content does not include brand words; if the category similarity is greater than the category similarity threshold, and the image feature similarity is greater than the third threshold, then determine that the candidate product is a similar product of the product to be matched, and the third threshold is greater than the second threshold and less than the first threshold.

[0121] In some embodiments, the category similarity determination unit is further configured to: if the product name of the candidate product includes the product category to which the product to be matched belongs, or the semantic similarity between the product category to which the product to be matched belongs and the product category description of the candidate product is greater than the semantic similarity threshold, then the category similarity between the product to be matched and the candidate product is determined to be the first category similarity, and the first category similarity is greater than the category similarity threshold; the name of the candidate product and the product category description of the candidate product are obtained from the product description information of the candidate product.

[0122] In some embodiments, the product identification device also includes: a text acquisition module for acquiring text in the shared content; a brand word recognition module for performing brand word recognition on the text in the shared content, and determining the brand word recognition result corresponding to the text, and the brand word recognition result indicates whether the text includes brand words.

[0123] In some embodiments, the detection and classification module includes: a product detection unit, which is used to perform product detection on pictures in the shared content through a product detection model, and determine the first pixel area where each to-be-matched product in the picture is located; a product category identification unit, which is used to perform product category identification based on the first pixel area through a product classification model, and output the product category to which the to-be-matched product belongs.

[0124] In some embodiments, the product identification device further includes: a product link adding module, configured to add a product link of a candidate product to the shared content.

[0125] Figure 10 is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. The electronic device may be the server in Figure 1, or other devices that can be used to execute the commodity identification method provided by the present disclosure.

[0126] As shown in Figure 10, the electronic device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and optionally, the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. It will be understood by those skilled in the art that the structure of the electronic device shown in Figure 10 does not constitute a limitation of the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0127] As shown in Figure 10 , memory 1005 , a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a program for implementing the commodity identification method. In the electronic device shown in Figure 10 , network interface 1004 is primarily used for communicating with other devices, such as the terminal shown in Figure 1 . User interface 1003 is primarily used to connect to a client (user end) and communicate data with the client. Processor 1001 may be used to invoke the program for implementing the commodity identification method stored in memory 1005 and execute the steps of the commodity identification method described in any of the above method embodiments.

[0128] According to one aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the commodity identification method in any of the above method embodiments is implemented.

[0129] It should be noted that the computer-readable medium shown in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0130] According to one aspect of an embodiment of the present disclosure, a computer program product is provided, which includes computer instructions. When the computer instructions are executed by a processor, the commodity identification method in any of the above method embodiments is implemented.

[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. Each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0133] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0134] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the embodiments disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein.

[0135] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A commodity identification method, characterized in that: include: Performing product detection and classification on the image in the shared content, determining the first pixel area where the to-be-matched product in the image is located and the product category to which the to-be-matched product belongs; Performing feature extraction on the first pixel region using a feature extraction model corresponding to the commodity category to which the to-be-matched commodity belongs, to obtain image features of the to-be-matched commodity in the image; Matching products in a product library according to the image features of the product to be matched, and determining candidate products similar to the product to be matched; The target product is identified for the candidate product according to the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library and the text in the shared content.

2. The method according to claim 1, characterized in that The target product includes the same product as the product to be matched; The target product identification of the candidate product according to the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library and the text in the shared content includes: If the image feature similarity is greater than a first threshold, and the text in the shared content includes a brand word, the brand of the candidate product is determined from the product description information of the candidate product in the product library; if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, the brand word is determined. The candidate product is the same product as the product to be matched; If the image feature similarity is greater than a first threshold, and the text in the shared content does not include brand words, the category similarity between the product to be matched and the candidate product is determined based on the product category to which the product to be matched belongs and the product description information of the candidate product in the product library; if the category similarity is greater than the category similarity threshold, the candidate product is determined to be the same product as the product to be matched.

3. The method according to claim 2, characterized in that The target product also includes similar products to the product to be matched; The step of identifying a target product for the candidate product according to the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library, and the text in the shared content further includes: If the second threshold value is ≤ the image feature similarity ≤ the first threshold value, and the text in the shared content includes a brand word, determining the brand to which the candidate product belongs from the product description information of the candidate product in the product library; Determine the category similarity between the to-be-matched product and the candidate product according to the product category to which the to-be-matched product belongs and the product description information of the candidate product in the product library; If the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, and the category similarity is greater than the category similarity threshold, the candidate product is determined to be a similar product to the product to be matched.

4. The method according to claim 3, characterized in that The step of identifying a target product for the candidate product according to the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library, and the text in the shared content further includes: If the second threshold ≤ the image feature similarity ≤ the first threshold, and the text in the shared content does not include a brand word, determining the category similarity between the to-be-matched product and the candidate product according to the product category to which the to-be-matched product belongs and the product description information of the candidate product in the product library; If the category similarity is greater than the category similarity threshold and the image feature similarity is greater than a third threshold, the candidate product is determined to be a similar product to the product to be matched, and the third threshold is greater than the second threshold and less than the first threshold.

5. The method according to any one of claims 2 to 4, characterized in that The determining, according to the commodity category to which the to-be-matched commodity belongs and the commodity description information of the candidate commodity in the commodity library, the category similarity between the commodity and the candidate commodity includes: If the product name of the candidate product includes the product category to which the to-be-matched product belongs, or the semantic similarity between the product category to which the to-be-matched product belongs and the product category description of the candidate product is greater than a semantic similarity threshold, then the category similarity between the to-be-matched product and the candidate product is determined to be a first category similarity, and the first category similarity is greater than the category similarity threshold; the name of the candidate product and the product category description of the candidate product are obtained from the product description information of the candidate product.

6. The method according to any one of claims 2 to 4, characterized in that Before recalling the candidate product based on the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library and the text in the shared content, the method further includes: Obtaining text in the shared content; Brand word recognition is performed on the text in the shared content to determine a brand word recognition result corresponding to the text, wherein the brand word recognition result indicates whether the text includes a brand word.

7. The method according to claim 1, characterized in that The detecting and classifying products in the image in the shared content, and determining the first pixel area where the product to be matched in the image is located and the product category to which the product to be matched belongs, includes: Performing product detection on the image in the shared content by using a product detection model to determine a first pixel area where each to-be-matched product in the image is located; The commodity category is identified according to the first pixel area through a commodity classification model, and the commodity category to which the to-be-matched commodity belongs is output.

8. A commodity identification device, characterized in that: include: A detection and classification module, used to detect and classify products in the pictures in the shared content, and determine the first pixel area where the product to be matched in the picture is located and the product category to which the product to be matched belongs; A feature extraction module, configured to extract features of the first pixel region by using a feature extraction model corresponding to the commodity category to which the commodity to be matched belongs, so as to obtain image features of the commodity to be matched in the image; The product matching module is used to match the product in the product library according to the image features of the product to be matched. Perform product matching to determine candidate products that are similar to the product to be matched; The recognition module is used to identify the candidate product according to the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library and the text in the shared content.

9. The device according to claim 8, characterized in that The target product includes the same product as the product to be matched; The identification module comprises: A first recognition unit is configured to determine, if the image feature similarity is greater than a first threshold and the text in the shared content includes a brand word, the brand to which the candidate product belongs from the product description information of the candidate product in the product library; if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, then determine that the candidate product is the same product as the product to be matched; The second recognition unit is used to determine the category similarity between the product to be matched and the candidate product according to the product category to which the product to be matched belongs and the product description information of the candidate product in the product library if the image feature similarity is greater than a first threshold and the text in the shared content does not include brand words; if the category similarity is greater than a category similarity threshold, determine that the candidate product is the same product as the product to be matched.

10. The device according to claim 9, characterized in that The target product also includes similar products to the product to be matched; The identification module also includes: A brand determination unit is used to determine the brand if the second threshold value is less than or equal to the image feature similarity value less than or equal to the first threshold value. value, and the text in the shared content includes a brand word, determining the brand to which the candidate product belongs from the product description information of the candidate product in the product library; a category similarity determination unit, configured to determine the category similarity between the to-be-matched product and the candidate product according to the product category to which the to-be-matched product belongs and product description information of the candidate product in the product library; The third identification unit is used to determine that the candidate product is a similar product to the product to be matched if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, and the category similarity is greater than the category similarity threshold.

11. The device according to claim 10, characterized in that The identification module also includes: a fourth identification unit, configured to determine, if the second threshold ≤ the image feature similarity ≤ the first threshold, a category similarity between the product to be matched and the candidate product according to the product category to which the product to be matched belongs and product description information of the candidate product in the product library; The fourth identification unit is also used to determine that the candidate product is a similar product of the product to be matched if the category similarity is greater than the category similarity threshold and the image feature similarity is greater than a third threshold, and the third threshold is greater than the second threshold and less than the first threshold.

12. The device according to any one of claims 9 to 11, characterized in that The category similarity determination unit includes: If the product name of the candidate product includes the product to which the to-be-matched product belongs Category, or the semantic similarity between the product category to which the to-be-matched product belongs and the product category description of the candidate product is greater than a semantic similarity threshold, then the category similarity between the to-be-matched product and the candidate product is determined to be a first category similarity, and the first category similarity is greater than the category similarity threshold; the name of the candidate product and the product category description of the candidate product are obtained from the product description information of the candidate product.

13. The device according to any one of claims 9 to 11, characterized in that The device also includes: A text acquisition module, used to acquire the text in the shared content; The brand word recognition module is used to perform brand word recognition on the text in the shared content and determine the brand word recognition result corresponding to the text, wherein the brand word recognition result indicates whether the text includes a brand word.

14. The device according to claim 8, characterized in that The detection and classification module includes: A commodity detection unit, configured to perform commodity detection on the image in the shared content by using a commodity detection model, and determine a first pixel region where each commodity to be matched in the image is located; A commodity category identification unit is used to identify the commodity category according to the first pixel area through a commodity classification model, and output the commodity category to which the to-be-matched commodity belongs.

15. An electronic device, characterized in that: include: processor; A memory having computer-readable instructions stored therein, wherein when the computer-readable instructions are executed by the processor, the following steps are implemented: Detect and classify products in the shared content to determine the products to be matched in the pictures. The first pixel area where the to-be-matched product is located and the product category to which the to-be-matched product belongs; Extracting features from the first pixel region using a feature extraction model corresponding to the commodity category to which the commodity to be matched belongs, to obtain image features of the commodity to be matched in the image; Matching products in a product library according to the image features of the product to be matched, and determining candidate products similar to the product to be matched; The target product is identified for the candidate product according to the image feature similarity between the image feature of the candidate product and the image feature of the product to be matched, the product description information of the candidate product in the product library and the text in the shared content.

16. The method according to claim 15, characterized in that When the computer readable instructions are executed by the processor, the following steps are also implemented: If the image feature similarity is greater than a first threshold, and the text in the shared content includes a brand word, determining the brand to which the candidate product belongs from the product description information of the candidate product in the product library; if the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, determining that the candidate product is the same product as the product to be matched; If the image feature similarity is greater than a first threshold, and the text in the shared content does not include a brand word, determining the category similarity between the to-be-matched product and the candidate product according to the product category to which the to-be-matched product belongs and product description information of the candidate product in the product library; If the category similarity is greater than the category similarity threshold, the candidate product is determined to be the same product as the product to be matched.

17. The method according to claim 16, characterized in that When the computer readable instructions are executed by the processor, the following steps are also implemented: If the second threshold value is ≤ the image feature similarity ≤ the first threshold value, and the text in the shared content includes a brand word, determining the brand to which the candidate product belongs from the product description information of the candidate product in the product library; Determine the category similarity between the to-be-matched product and the candidate product according to the product category to which the to-be-matched product belongs and the product description information of the candidate product in the product library; If the brand to which the candidate product belongs is the same brand as the brand indicated by the brand word included in the text in the shared content, and the category similarity is greater than the category similarity threshold, the candidate product is determined to be a similar product to the product to be matched.

18. The method according to claim 17, characterized in that When the computer readable instructions are executed by the processor, the following steps are also implemented: If the second threshold ≤ the image feature similarity ≤ the first threshold, and the text in the shared content does not include a brand word, determining the category similarity between the to-be-matched product and the candidate product according to the product category to which the to-be-matched product belongs and the product description information of the candidate product in the product library; If the category similarity is greater than the category similarity threshold and the image feature similarity is greater than a third threshold, the candidate product is determined to be a similar product to the product to be matched, and the third threshold is greater than the second threshold and less than the first threshold.

19. The method according to claim 15, characterized in that When the computer readable instructions are executed by the processor, the following steps are also implemented: The product detection model is used to detect the product in the image in the shared content to determine A first pixel region where each to-be-matched product in the image is located; The commodity category is identified according to the first pixel area through a commodity classification model, and the commodity category to which the to-be-matched commodity belongs is output.

20. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and system for displaying door buster directly

    CN103336796A

  • Integration target attribute identification and precise retrieval method based on depth measurement learning

    CN105808732A

  • Retrieval method and system for same-type commodities in video

    CN107291825A

  • Commodity subclass feature extraction method and device, computer equipment and storage medium

    CN114358821A

  • Method and device for identifying commodities of same type, computer equipment and medium

    CN115034845A

Cited By

  • Commodity matching-oriented artificial intelligence method, apparatus and device, and storage medium

    CN120912274A

  • Labeling method and device based on auxiliary information, storage medium and program product

    CN121434433A