Commodity matching method and apparatus, computer device and medium

Through multi-stage matching operations and multi-modal feature extraction, the problem of low matching efficiency of the same product in the e-commerce platform is solved, fine-grained product matching and recommendation is achieved, and the management and user experience of the e-commerce platform are improved.

WO2024183225A1PCT designated stage expired Publication Date: 2024-09-12XINGIN INFORMATION TECH (SHANGHAI) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/109429
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-03
Filing Date
2023-07-26
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

There are a large number of identical products on the e-commerce platform, resulting in low product matching efficiency and difficulty in effective product search and recommendation.

Method used

Using multi-stage matching operations, including product library matching, SPU matching and SKU matching, by obtaining the characteristics and inventory information of the target product, combining product images and text information, and using multi-modal feature extraction and matching models to achieve fine-grained product matching .

Benefits of technology

It improves the accuracy and efficiency of product matching, reduces the amount of calculation, can effectively identify and recommend the same product, and improves the management and user experience of the e-commerce platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023109429_12092024_PF_FP_ABST
    Figure CN2023109429_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a commodity matching method and apparatus, a computer device and a medium. The method comprises: acquiring an original commodity library set matching a target commodity library to which a target commodity belongs, and using commodities in each original commodity library of the original commodity library set as an original commodity set for the target commodity (S201); acquiring a target commodity feature of the target commodity, and acquiring a commodity feature of each original commodity in the original commodity set (S202); on the basis of the target commodity feature and the commodity feature of each original commodity, determining a candidate commodity set for the target commodity from the original commodity set (S203); acquiring target inventory unit information of the target commodity, and acquiring inventory unit information of each candidate commodity in the candidate commodity set (S204); and on the basis of the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity, determining a matching commodity of the target commodity from the candidate commodity set (S205). The commodity matching effect can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

A product matching method, device, computer equipment and medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 3, 2023, with application number 2023102025089 and application name “A Product Matching Method, Device, Computer Equipment and Medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of data processing technology, and in particular to a product matching method, apparatus, computer equipment, and medium. Background Art

[0003] With the increasing popularity of the internet and mobile devices, e-shopping has become a widespread part of people's daily lives. The number of products on major e-commerce platforms has also exploded, with an increasing number of merchants listing large quantities of products. However, e-commerce platforms often have a large number of identical products across various merchants. However, matching identical products facilitates product management and helps consumers search for and recommend similar products. Therefore, effective product matching has become a hot topic of research.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a product matching method, apparatus, computer equipment, and medium, which can effectively improve product matching results.

[0006] In a first aspect, an embodiment of the present application discloses a product matching method, the method comprising:

[0007] Acquire an original commodity library set that matches the target commodity library to which the target commodity belongs, and use commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity;

[0008] Obtaining target product features of the target product, and obtaining product features of each original product in the original product set;

[0009] Determining a candidate product set for the target product from the original product set based on the target product feature and the product features of each of the original products;

[0010] Obtaining target inventory unit information of the target product, and obtaining inventory unit information of each candidate product in the candidate product set;

[0011] Based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity, a matching commodity for the target commodity is determined from the candidate commodity set.

[0012] A second aspect of the embodiments of the present application discloses a product matching device, comprising:

[0013] A first acquisition unit is configured to acquire an original commodity library set that matches a target commodity library to which a target commodity belongs, and use commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity;

[0014] a second acquiring unit, configured to acquire target product features of the target product and acquire product features of each original product in the original product set;

[0015] a determining unit, configured to determine a candidate commodity set of the target commodity from the original commodity set based on the target commodity feature and commodity features of each of the original commodities;

[0016] a third acquiring unit, configured to acquire target inventory unit information of the target commodity and acquire inventory unit information of each candidate commodity in the candidate commodity set;

[0017] The matching unit is configured to determine a matching commodity for the target commodity from the candidate commodity set based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity.

[0018] A third aspect of an embodiment of the present application discloses a computer device, comprising a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect above.

[0019] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect.

[0020] The fifth aspect of the embodiments of the present application discloses a computer program product or a computer program, wherein the computer program product or the computer program includes program instructions, and when the program instructions are executed by a processor, the method of the first aspect is implemented.

[0021] In an embodiment of the present application, an original commodity library set that matches the target commodity library to which the target commodity belongs can be obtained, and the commodities in each original commodity library of the original commodity library set can be used as the original commodity set of the target commodity; then, the target commodity features of the target commodity can be obtained, and the commodity features of each original commodity in the original commodity set can be obtained; then, based on the target commodity features and the commodity features of each original commodity, a candidate commodity set of the target commodity can be determined from the original commodity set; further, the target inventory unit information of the target commodity can be obtained, and the inventory unit information of each candidate commodity in the candidate commodity set can be obtained; based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity, the matching commodity of the target commodity can be determined from the candidate commodity set. By implementing the above method, the hierarchical relationship of commodity information can be effectively analyzed, and according to the different integrity and reliability of commodity information at each level, the commodity matching task can be broken down into multiple stages to achieve fine-grained matching, which can reduce the amount of matching calculation and improve the matching effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] FIG1 is a schematic diagram of the architecture of a product matching system provided in an embodiment of the present application;

[0023] FIG2 is a flow chart of a product matching method provided in an embodiment of the present application;

[0024] FIG3a is a schematic diagram of an interface for displaying product library information on an e-commerce platform provided in an embodiment of the present application;

[0025] FIG3 b is a schematic diagram of a process for determining matching requirements provided by an embodiment of the present application;

[0026] FIG3c is a schematic diagram of an interface for displaying product information on an e-commerce platform provided in an embodiment of the present application;

[0027] FIG3 d is a schematic diagram of an interface for displaying inventory unit product information on an e-commerce platform provided by an embodiment of the present application;

[0028] FIG4 is a flow chart of another product matching method provided in an embodiment of the present application;

[0029] FIG5a is a schematic diagram of the structure of a target matching model provided in an embodiment of the present application;

[0030] FIG5 b is a schematic structural diagram of an SPU matching method provided in an embodiment of the present application;

[0031] FIG5c is a schematic diagram of the structure of SKU matching provided in an embodiment of the present application;

[0032] FIG6 is a schematic structural diagram of a product matching device provided in an embodiment of the present application;

[0033] FIG7 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0035] The embodiment of the present application proposes a product matching scheme to determine the matching product corresponding to the target product based on multiple stages of matching operations, wherein the matching product may refer to a product similar to the target product or the same product. The principle of the scheme is as follows: the matching operation in the first stage is for matching the product library. For example, an original product library set that matches the target product library to which the target product belongs can be obtained, so that the products in each original product library of the original product library set are used as the original product set of the target product, that is, the matching product corresponding to the target product is found from the original product set. The matching operation in the second stage is for matching the SPU (Standard Product Unit). For example, the target product features of the target product can be obtained, and the product features of each original product in the original product set can be obtained, so that the original product set can be screened based on the target product features and the product features of each original product to obtain a candidate product set for the target product. The matching operation in the third stage is for SKU (Stock Keeping Unit) matching. For example, the target inventory unit information of the target product can be obtained, and the inventory unit information of each candidate product in the candidate product set can be obtained, so as to determine the matching product of the target product from the candidate product set based on the target inventory unit information of the target product and the inventory unit information of each candidate product.

[0036] Through the above implementation method, the hierarchical relationship of product-related information can be effectively analyzed. According to the different integrity and reliability of product information at each level, the product matching task can be broken down into multiple stages. The corresponding product library can be matched in the product library matching stage to reduce the matching data range; then, matching can be performed at the SPU level and SKU level respectively to achieve fine-grained matching to obtain the final matching result, which can effectively reduce the matching calculation amount and improve the matching effect.

[0037] In a specific implementation, the execution subject of the above-mentioned product matching solution can be a computer device, which can be a terminal or a server. The terminal mentioned here can be a smart phone, tablet computer, laptop computer, desktop computer and other devices; the terminal can run a client (platform) with target functions, for example, a client with functions such as product viewing and purchasing, such as a shopping client, an information flow client, etc., or an e-commerce platform, a shopping platform, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and basic cloud computing services such as big data and artificial intelligence platforms, etc.

[0038] For example, when the computer device is a server, an embodiment of the present application provides a product matching system, as shown in Figure 1, which may include at least one terminal and at least one server; the terminal can obtain the target product and upload the obtained target product to the server (i.e., the computer device) so that the server can obtain the target product and determine the matching product of the target product.

[0039] It should be noted that the data related to user information in the embodiments of the present application are all data authorized by the user.

[0040] Please refer to FIG. 2 , which is a flow chart of a product matching method provided in an embodiment of the present application. The product matching method described in this embodiment can be applied to the aforementioned computer device. As shown in FIG. 2 , the method may include:

[0041] S201 , obtaining an original commodity library set that matches a target commodity library to which a target commodity belongs, and using commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity.

[0042] Among them, the target product can refer to any product on a platform with target functions (such as a shopping platform, e-commerce platform, etc.), such as clothes, food, sports equipment, etc. The product library can refer to the product library under the platform, such as the store where the product is located. The so-called target product library can refer to the store to which the target product belongs.

[0043] In one implementation, the matching data range can be reduced by matching the corresponding product library (store) based on the product library (store) matching phase. For example, matching can be performed based on the product library information of the product library, which may include one or more of the library title, library category, and products in the library. As mentioned above, the product library can be understood as a store, the library title can be understood as the store title, and the library category can be understood as the store category.

[0044] In a specific implementation, the product library information of the target product library to which the target product belongs can be obtained, and the product library information of each reference product library in the reference product library set can also be obtained; after obtaining this product library information, the product library information of the target product library can be matched with the product library information of each reference product library, and the matched reference product library can be added to the original product library set. As mentioned above, the reference product library in the reference product library set can refer to all product libraries (stores) under the platform with the target function.

[0045] In one embodiment, product library matching is described using the example of product library information including library categories. The library category of a target product library can be matched with the library categories of various reference product libraries. If the library category of a reference product library matches the library category of the target product library, the reference product library can be added to the original product library set. If the library category of a reference product library does not match the library category of the target product library, the reference product library can be filtered out. A match here can mean that the two library categories are consistent, while a mismatch can mean that the two library categories are inconsistent.

[0046] In one embodiment, product library matching is described using the example of product library information including library titles. The library title of a target product library can be matched with the library titles of various reference product libraries. If the library title of a reference product library matches the library title of the target product library, the reference product library can be added to the original product library set. If the library title of a reference product library does not match the library title of the target product library, the reference product library can be filtered out. A match here can mean that the overlap ratio of the two library titles is greater than or equal to a preset threshold, while a mismatch can mean that the overlap ratio of the two library titles is less than a preset threshold. The preset threshold can be pre-set, and its specific value is not limited. For example, as shown in Figure 3a, interface 31 is the product library interface corresponding to the target product library, and interface 32 is the product library interface corresponding to a reference product library. The data marked by 301 is the library title corresponding to the target product library, and the data marked by 302 is the library title corresponding to the reference product library. When performing product library matching, the product libraries can be matched based on data 301 and data 302.

[0047] In one embodiment, the matching of commodity libraries is explained by taking the commodity library information including the library category and the library title as an example. First, the library category of the target commodity library can be matched with the library category of each reference commodity library, and the matched reference commodity library can be added as the first commodity library to the first commodity library set; then, the library title of the target commodity library can be matched with the library title of each first commodity library in the first commodity library set, and the matched first commodity library can be added as the original commodity library to the original commodity library set. Among them, the matching operation for the library category and the matching operation for the library title can refer to the above description, and the order of the matching operation for the library category and the matching operation for the library title is not limited. For example, the matching operation for the library title can be performed first, and then the matching operation for the library category can be performed.

[0048] In one implementation, step S201 may be triggered when a matching requirement for a matching product is obtained for the target product.

[0049] Optionally, a matching request for a target product can be obtained on a computer device to determine whether a matching requirement for the target product has been obtained. The matching request can be triggered by an object (which can be any user) performing a related operation on a user operation interface. For example, when an object needs to obtain a matching product corresponding to the target product, it can perform a related operation on the user operation interface output by the terminal used to send a matching request for the target product to the computer device. For example, as shown in Figure 3b, a user operation interface can be displayed on the terminal screen of the terminal used by the object. The user operation interface can include at least a product input area 303 and a confirmation control 304. If the target object wants to obtain a matching product corresponding to the target product, the target object can first enter the relevant information of the target product in the product input area 303 (such as the target product directly, or the link address corresponding to the target product); then, a trigger operation can be performed on the confirmation control 304 (such as clicking, pressing, etc.); after the terminal detects that the confirmation control 304 is triggered, the target product can be obtained based on the information in the input area 303, and after the terminal obtains the target product, a matching request carrying the target product can be sent to the computer device.

[0050] Optionally, the matching request may be a request initiated by the above-mentioned client with target functionality (such as a shopping client), for example, the request may be a search request (search instruction) for similar products (same product) to the target product.

[0051] Optionally, when a matching timed task is triggered, it can be determined that a matching requirement for the target product has been obtained. For example, a matching timed task can be set, and when the triggering condition in the matching timed task is triggered, it can be determined that a matching requirement has been obtained. In one embodiment, a large number of products can be stored in a certain designated area, and the triggering condition can be that the current time reaches the preset processing time, or the remaining storage space of the designated storage area exceeds the preset remaining storage space, etc. The target product can be a product in the designated area, and the products to be matched in the matching set can be other products in the designated area except the target product.

[0052] S202 , obtaining target product features of the target product, and obtaining product features of each original product in the original product set.

[0053] It is understood that a product has a product image, a product title, and structured information (also known as product attribute information). This structured information may include the brand name, product name, product category (which may include primary or multi-level categories), material, color, rules, etc. Based on this, it can be seen that this information can be used to characterize a product.

[0054] In one implementation, the product information of the target product can be obtained first, and the product information of each original product in the original product set can be obtained; wherein, the product information of any product can include one or more of the above-mentioned product images, product titles, and structured information. For example, as shown in Figure 3c, interface 33 is the product interface corresponding to the target product, and interface 34 is the product interface corresponding to a certain original product; wherein, the picture marked by 305 is the product image corresponding to the target product, the data marked by 306 is the product title corresponding to the target product, the picture marked by 307 is the product image corresponding to the original product, and the data marked by 308 is the product title corresponding to the original product. After obtaining the product information, feature extraction can be performed on the product information of the target product to obtain the target product features of the target product, and feature extraction can be performed on the product information of each product in the original product set to obtain the product features of the corresponding original product.

[0055] S203 : Determine a candidate product set of the target product from the original product set based on the target product feature and product features of each original product.

[0056] In one implementation, for any original product in the original product set, a determination can be made as to whether the original product is a candidate for the target product and added to the candidate product set based on the feature distance between the target product feature and the product feature of the original product. As can be seen from the above, the feature distances between the target product feature and the product features of each original product can be calculated. Once the feature distances are obtained, a candidate product set for the target product can be determined from the original product set based on these feature distances.

[0057] Optionally, the feature distances may be sorted in ascending order to obtain a sorted result, and then the original products corresponding to the feature distances in the top N positions in the sorted result are selected as candidate products, thereby obtaining a candidate product set. N is a positive integer, and its specific value is not limited.

[0058] Optionally, each feature distance may be compared with a preset threshold, and original products corresponding to feature distances greater than or equal to the preset threshold are selected as candidate products, thereby obtaining a candidate product set.

[0059] It is understood that since features are represented by vectors, the feature distance between two product features can be calculated by calculating the distance between two vectors. In a specific implementation, the cosine distance between the two product features can be used as the feature distance.

[0060] In summary, it can be seen that based on the product set obtained by matching the product library (i.e., the original product set), the products can be represented by one or more of the product images, product titles, and product structured information, and the representation features can be used for SPU-level matching to fully explore the characteristics of the products themselves and re-screen the original product set to effectively improve the product matching effect.

[0061] In one implementation, the product number and product title of the target product can be obtained, and the product number and product title of each original product can be obtained; if the product number and product title of an original product are consistent with the product number and product title of the target product, the original product can be added to the candidate product set.

[0062] S204 , obtaining target inventory unit information of the target commodity, and obtaining inventory unit information of each candidate commodity in the candidate commodity set.

[0063] It is understandable that a product may have one or more different models. These models may be based on different colors, sizes, or materials. For example, if a product is a mobile phone, it may have different colors or memory sizes. Another example is clothing, which may have different sizes or colors. For a model, the corresponding model of the product can be understood as a stock keeping unit.

[0064] Based on this, it can be seen that for any candidate product in the candidate product set, the candidate product may include one or more inventory unit products. Each inventory unit product has corresponding information, which may include the product image, product title, and structured information corresponding to the inventory unit product. For the convenience of description, the product title here can be referred to as the inventory unit title or SKU title. It should be noted that, considering that the inventory unit product is the product corresponding to a model of the candidate product, the inventory unit product corresponding to the inventory unit product and the structured information of the candidate product to which the inventory unit product belongs can be understood to be the same.

[0065] As can be seen from the above, the SKU information of a candidate commodity may include SKU commodity information corresponding to one or more SKU commodities, and the one or more SKU commodities may be commodities of different models among the candidate commodities.

[0066] The target inventory unit information of the target product may refer to the inventory unit product information of an inventory unit product corresponding to the target product.

[0067] For example, as shown in FIG3d, interface 35 is a product interface for displaying inventory unit products corresponding to the target product, and interface 36 is a product interface for displaying inventory unit products corresponding to a candidate product. As can be seen from the figure, for a product, there can be multiple products of different models under the product, such as the product corresponding to each model can be an inventory unit product. Exemplarily, the data marked by 309 is the inventory unit product information corresponding to a certain inventory unit product in the target product, which can be understood as the target inventory unit information here, and the data marked by 310 is the inventory unit product information corresponding to a certain inventory unit product of a candidate product. It should be noted that the inventory unit product information corresponding to a certain inventory unit product displayed on the product interface here is only an illustrative example. In the database used to record product-related information, the inventory unit product information corresponding to each inventory unit product usually has a complete product description, that is, when obtaining product-related information, it is obtained in the corresponding database.

[0068] S205 : Determine a matching commodity for the target commodity from the candidate commodity set based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity.

[0069] In one implementation, the following takes any candidate product in the candidate product set as an example to explain the specific implementation of whether any candidate product can be used as a matching product for the target product.

[0070] For any candidate product in the candidate product set, the candidate product information for each inventory unit product under the candidate product can be determined based on the inventory unit information of the candidate product. For example, for an inventory unit product, the inventory unit title and structured information corresponding to the inventory unit product can be obtained from the inventory unit information corresponding to the inventory unit product, and the inventory unit title, structured information corresponding to the inventory unit product, and the product title of the candidate product to which the inventory unit product belongs can be used as the candidate product information of the inventory unit product. The target product information of the target product can also be determined based on the target inventory unit information of the target product. For example, the inventory unit title and structured information corresponding to the target product can be obtained from the target inventory unit information, and the obtained inventory unit title, structured information, and product title of the target product can be used as the target product information of the target product.

[0071] After obtaining the target product information of the target product and the candidate product information corresponding to each inventory unit product of any candidate product, the matching product that matches the target product can be determined based on these product information. Optionally, based on the target product information and the candidate product information corresponding to each inventory unit product of any candidate product, the matching values ​​corresponding to each inventory unit product can be determined to determine the matching product of the target product based on each determined matching value. In one embodiment, if there is an inventory unit product with a matching value greater than a preset value in each inventory unit product, then any candidate product can be used as the matching product of the target product. In another embodiment, the inventory unit product with a matching value greater than the preset value can be directly used as the matching product of the target product. The preset value can be set in advance, and the specific value is not limited.

[0072] From the above, it can be seen that, on the basis of SPU-level matching, SKU-level matching can be performed through the information of each inventory unit product under the candidate product, so as to perform a more fine-grained matching operation on the candidate original product set. Considering that SKU-level matching is based on the information of inventory unit products under the candidate product, the target product can be matched with the corresponding candidate product, and can be further matched with the inventory unit products under the candidate product to achieve accurate matching and effectively improve the product matching effect.

[0073] In one implementation, the embodiments of the present application can be applied to scenarios where the same-item product matching is performed, such as matching (identifying) the same item on an e-commerce platform. Specifically, the embodiments can be applied to scenarios such as product standard library management, operational price monitoring, product price comparison, and product promotion activities. For example, in a specific application scenario, a computer device can obtain a search instruction for similar products to a target product, and the search instruction is to find products that match the target product. After obtaining the search instruction, the computer device can respond to the search instruction and obtain matching products for the target product from the product database. The obtained matching products are used as the search results of the search instruction.

[0074] It should be noted that the product matching method proposed in the embodiment of the present application can be an offline process or an online process. For example, in an offline scenario, the products in the product database can be matched offline to determine the product matching relationship between the products; then, when a product matching task for the target product is received, the matching products of the target product can be directly output based on the predetermined product matching relationship. For another example, in an online scenario, when a product matching task for the target product is received, the product matching method proposed in the embodiment of the present application can be executed on the target product in real time to obtain the matching products corresponding to the target product.

[0075] Through the above implementation method, the hierarchical relationship of product information can be effectively analyzed. According to the different integrity and reliability of product information at each level, the product matching task can be broken down into multiple stages. The corresponding product library can be matched in the product library matching stage to reduce the matching data range; then, matching can be performed at the SPU level and SKU level respectively to achieve fine-grained matching to obtain the final matching result, which can reduce the matching calculation amount and improve the matching effect.

[0076] Please refer to FIG4 , which is a flow chart of another product matching method provided in an embodiment of the present application. The product matching method described in this embodiment can be applied to the aforementioned computer device. As shown in FIG4 , the method may include:

[0077] S401 , obtaining an original commodity library set that matches the target commodity library to which the target commodity belongs, and using commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity.

[0078] The specific implementation of this step can refer to the description in the above step S201, which will not be repeated here.

[0079] S402 , obtaining modal information of the target product in multiple modalities, and obtaining modal information of each original product in the original product set in multiple modalities.

[0080] Among them, multiple modalities include image modality and text modality.

[0081] As mentioned above, a product corresponds to a product image, product title, and structured information (or product attribute information). Based on the above description of product information, it can be seen that a product can contain various types of information. This information can be divided into information corresponding to multiple modalities (modal information) according to the different information types. For example, the image information corresponding to the product (such as the product image) can be mapped to the modal information under the image modality, and the text information corresponding to the product (such as the product title and structured information) can be mapped to the modal information under the text modality.

[0082] In the embodiment of the present application, when determining the matching product corresponding to the target product, the modal information under each modality can be used to perform the product matching operation. The following uses the target product as an example to explain the acquisition of modal information under each modality.

[0083] (1) Acquisition of modal information in image mode

[0084] In one implementation, an original image corresponding to the target product may be obtained, where the original image refers to a product image including the target product. The original image may then be used as modal information of the target image in an image modality.

[0085] In one implementation, considering that the original image may include not only the area corresponding to the target product but also some background areas (such as blank areas and areas corresponding to other non-target products), obtaining modal information in the image modality directly based on the original image may affect the accuracy of product matching due to interference from the background areas in the original image. Therefore, to enhance the accuracy of modal information acquisition in the image modality, improve the accuracy of feature representation, and improve the accuracy of product matching, the original image can be cropped so that the cropped image area only includes the area where the target product is located, and this image area is used as the modal information in the image modality.

[0086] In a specific implementation, after obtaining the original image of the target product, object detection can be performed on the original image to obtain an object detection result of the original image. The object detection result may include an object detection frame of the target product; wherein, the object detection frame can be used to indicate the position of the target product in the original image. The object detection frame can be a regular detection frame (such as a rectangular detection frame) or an irregular detection frame (such as an irregular polygonal detection frame), and is not specifically limited. It should be noted that the embodiment of the present application does not limit the object detection method used for the original image; for example, the object detection can be specifically implemented using artificial intelligence, that is, an object detection model with object detection function can be called to perform object detection on the original image to obtain an object detection result of the original image, and the object detection model is not specifically limited.

[0087] After determining the object detection frame in the original image, you can use it to crop the original image to obtain modal information in the image modality. For example, you can crop the area contained by the object detection frame from the original image and use the cropped area as the modal information of the target product in the image modality. This method can relatively reduce the background area in the original image, thereby improving the accuracy of product matching.

[0088] Considering that there may be other objects besides the target product in the original image, the object detection frame obtained above may include not only the position indicating the target product but also the position indicating other objects, that is, the object detection frame may include the target product and other objects; or there may be multiple object detection frames obtained above, and these multiple object detection frames may include object detection frames corresponding to the target product and other objects. In summary, in order to accurately obtain the modal information of the target product in the image modality, the object detection frame can be further detected to obtain more accurate modal information.

[0089] As mentioned above, after obtaining the object detection frame in the original image, the product category of the target product can be further obtained to determine the target detection frame that matches the product category from the object detection frame based on the product category. For example, the area frame where the object that matches the product category is located can be identified from the object detection frame, and the area frame can be used as the target detection frame; after obtaining the target detection frame, the area image contained in the target detection frame can be cropped from the original image, and the cropped area image can be used as the modal information of the target product in the image modality.

[0090] (2) Acquisition of modal information in text mode

[0091] In one implementation, the product title and structured information of the target product may be used as modal information of the target product in text mode.

[0092] In one implementation, the target product's title can be obtained and entity recognition performed on the target product's title to obtain a recognition result. Entity recognition can be implemented using artificial intelligence technology, for example, a neural network model with named entity recognition (NER) can be used to perform entity recognition on the target product's title to obtain a recognition result. NER can extract descriptive terms from the product title, such as names of people, places, products, and brands. Then, the target product's attribute information (i.e., structured information about the product) can be obtained. Furthermore, modal information of the target product in text mode can be obtained from the recognition result and the product attribute information. For example, if the modal information in text mode includes the product name and brand name, all product and brand terms can be extracted from the recognition result and the product attribute information. This extracted information can then serve as the modal information in text mode. Other information (such as product category) can also be used as modal information in text mode, without limitation.

[0093] S403 , feature extraction is performed on the modal information of the target product in multiple modalities to obtain target product features of the target product, and feature extraction is performed on the modal information of each original product in multiple modalities to obtain product features of each original product in the original product set.

[0094] Considering that the methods of obtaining the target product features of the target product and the product features of each original product are the same, the following describes the method of obtaining the target product features of the target product as an example.

[0095] In one implementation, feature extraction can be performed on the modal information of the target product in image mode to obtain image modal features, and feature extraction can be performed on the modal information of the target product in text mode to obtain text modal features, and then the image modal features and text modal features can be used as target product features of the target product.

[0096] Alternatively, image modal features can be acquired using artificial intelligence technology. For example, a neural network model capable of extracting features from images can be used to extract features from the modal information of the target product in the image modality to obtain image modal features. For example, the neural network model can be ResNet (residual neural network).

[0097] Optionally, text modal features can also be acquired through artificial intelligence technology, such as by invoking a neural network model capable of extracting features from text to extract features from the modal information of the target product in the text modality to obtain text modal features. For example, the neural network model can be a natural language processing (NLP) model, such as a recurrent neural network (RNN), a convolutional neural network (CNN), a Transformer network, BERT, etc.

[0098] In another implementation, in order to fuse the modal information in the image modality and the text modality, it is also possible to obtain features that contain modal information in both the image modality and the text modality. For example, this feature can be called a graphic-text modal feature. In this case, the specific implementation of obtaining the target product features of the target product can be: feature extraction can be performed on the modal information of the target product in the image modality to obtain image modal features; and feature extraction can be performed on the modal information of the target product in the text modality to obtain text modal features; and graphic-text modal features can also be determined based on the modal information of the target product in the image modality and the modal information in the text modality; finally, the image modal features, text modal features and graphic-text modal features can be used as target product features of the target product.

[0099] Among them, the above-mentioned image-text modality feature can be used to characterize the matching relationship between modal information in image modality and modal information in text modality. The image-text modality feature can be a CLIP (Contrastive Language-Image Pre-training) feature, that is, a feature obtained by feature extraction using the CLIP model. The CLIP model is a pre-training model based on contrasting text-image pairs, or CLIP is a multimodal model based on contrastive learning. The input data of the CLIP model is a text-image pair. The CLIP model can learn the matching relationship of text-image pairs by contrasting text and images, so that the CLIP feature can be used to characterize the matching relationship between text and image.

[0100] In one implementation, the modal information of the target product in image mode and the modal information in text mode can be input into the CLIP model, so that the CLIP model performs comparative learning on the modal information in image mode and the modal information in text mode to obtain image-text modal features.

[0101] S404: Determine a candidate product set of the target product from the original product set based on the target product feature and the product features of each original product.

[0102] As mentioned above, the product features of any product may include image modal features, text modal features, or image modal features, text modal features, and graphic and text modal features.

[0103] The following describes how to determine a candidate product set using the example of product features including image modal features, text modal features, and image-text modal features. For product features including image modal features and text modal features, the determination of a candidate product set can be similarly described below and will not be further elaborated on.

[0104] In one implementation, a feature distance between a target product feature of the target product and product features of each original product may be obtained, so as to determine a candidate product set of the target product from the original product set based on the feature distance between the target product feature of the target product and product features of each original product.

[0105] First, the acquisition of feature distance is explained. As mentioned above, the target product features of the target product may include image modal features, text modal features and graphic modal features for the target product, and the product features of any original product may include image modal features, text modal features and graphic modal features for the original product; when determining the feature distance between the target product features of the target product and the product features of each original product, it can be determined based on these modal features.

[0106] Optionally, a first characteristic distance between the image modal features of the target product and the image modal features of each original product can be obtained; a second characteristic distance between the text modal features of the target product and the text modal features of each original product can be obtained; and a third characteristic distance between the image modal features of the target product and the image modal features of each original product can also be obtained. For any original product, the characteristic distance between the target product and any original product can be determined based on the first characteristic distance, the second characteristic distance, and the third characteristic distance between the image modal features of the target product and the original product. In one embodiment, the sum of the first characteristic distance, the second characteristic distance, and the third characteristic distance corresponding to the target product and the original product can be calculated, and this sum can be used as the characteristic distance between the target product and the original product. In another embodiment, distance weights corresponding to the first characteristic distance, the second characteristic distance, and the third characteristic distance can be obtained, and the corresponding characteristic distances can be weighted using the distance weights to obtain weighted results corresponding to the first characteristic distance, the second characteristic distance, and the third characteristic distance. The sum of these three weighted results can then be calculated and used as the characteristic distance between the target product and the original product. Among them, each distance weight can be preset, and its specific value is not limited.

[0107] In the above manner, the characteristic distance between the target product and each original product can be determined; further, based on the characteristic distance between the target product and each original product, a candidate product set of the target product can be determined from the original product set. For example, the candidate product set can be determined based on a sorting operation or a threshold comparison operation. In one embodiment, the specific implementation of the sorting operation can be: sorting the characteristic distances in ascending order to obtain the corresponding sorting results, and then taking the original products corresponding to the characteristic distances in the top N positions in the sorting results as candidate products, and adding them to the candidate product set. In another embodiment, the specific implementation of the threshold comparison operation can be: taking the original products corresponding to the characteristic distances greater than the preset threshold distance as candidate products, and adding them to the candidate product set. Among them, the N value and the preset distance can be set by the threshold distance in advance, and the specific values ​​are not limited.

[0108] In one implementation, the feature distances under various modalities may be used to sequentially filter the original product set to obtain a candidate product set.

[0109] Optionally, first, the first feature distance between the image modal features of the target product and the image modal features of each original product can be obtained, and the initial product set of the target product can be determined from each original product based on each first feature distance. Among them, the specific implementation of determining the initial product set based on the first feature distance can adopt the sorting operation or threshold comparison operation mentioned above, and its specific implementation can refer to the above description and will not be repeated here. Then, the second feature distance between the text modal features of the target product and the text modal features of each initial product can be obtained, and the third feature distance between the graphic and text modal features of the target product and the graphic and text modal features of each initial product can be obtained to determine the candidate product set of the target product from the initial product set based on each second feature distance and each third feature distance.

[0110] In one embodiment, for any initial product, the characteristic distance between the target product and any initial product can be determined based on the second characteristic distance and the third characteristic distance corresponding to the target product and the initial product; after obtaining the characteristic distance between the target product and each initial product, a set of candidate products for the target product can be determined from the initial product set based on the characteristic distance between the target product and each initial product.

[0111] Among them, the method for determining the characteristic distance between the target product and any initial product here is similar to the method for determining the characteristic distance between the target product and any original product mentioned above. The specific implementation of determining the candidate product set of the target product based on the characteristic distance between the target product and each initial product is similar to the specific implementation of determining the candidate product set of the target product based on the characteristic distance between the target product and each original product mentioned above, and will not be repeated here.

[0112] It should be noted that the initial product set can be determined first by using the feature distance calculated using the image modal features described above, or by using the feature distance calculated using the text modal features or the feature distance calculated using the graphic and text modal features. There is no specific limitation on this.

[0113] Optionally, first, the first feature distance between the image modal features of the target product and the image modal features of each original product can be obtained, and the first product set of the target product can be determined from each original product based on each first feature distance. Then, the second feature distance between the text modal features of the target product and the text modal features of each first product can be obtained, and the second product set of the target product can be determined from the first product set based on each second feature distance. Finally, the third feature distance between the graphic and text modal features of the target product and the graphic and text modal features of each second product can be obtained, and the candidate product set of the target product can be determined from the second product set based on each third feature distance. Among them, the specific implementation of determining the first product set, the second product set and the candidate product set here is similar to the specific implementation of determining the candidate product set of the target product based on the feature distance between the target product and each original product mentioned above, and will not be repeated here.

[0114] It should be noted that the original product set can be screened in sequence according to the order of the feature distances calculated using the image modal features, text modal features, and graphic-text modal features as described above, or in other orders, such as the order of the feature distances calculated using the text modal features, image modal features, and graphic-text modal features, or any combination of the order of image modal features, text modal features, and graphic-text modal features.

[0115] Considering that the product image can fully represent the product information of a product, the first feature distance corresponding to the image modal feature can be used to filter the original product set first to achieve effective screening and reduce the number of products in the product set obtained after screening, thereby effectively reducing the computational complexity of subsequent re-screening using the feature distances corresponding to other modal features.

[0116] In one implementation, calculating the characteristic distance between two features (such as the first characteristic distance, the second characteristic distance, and the third characteristic distance described above) can be specifically described as follows. It is understood that since features are represented by vectors, the characteristic distance between two features can be calculated by calculating the distance between two vectors. In a specific implementation, the cosine distance between the two features can be used as the characteristic distance.

[0117] In one implementation, in addition to using the distance between image modal features, the distance between text modal features, and the distance between graphic and text modal features mentioned above to screen the original products in the original product set and determine the candidate product set for the target product, one or more of the image distance, entity word (NER word) distance, etc., between the target product and the original product can also be used for screening. The process of screening based on these distances can be similar to the process of screening based on the distances between multiple features, and will not be repeated here.

[0118] Among them, the image distance between the target product and the original product can be determined based on the image information of the target product and the image information of the original product. The image information of any product may include one of the product category and the object detection frame (or target detection frame). For example, in terms of product category, the distance between the product category of the target product and the product category of the original product can be used as the image distance between the target product and the original product. For example, the distance can refer to the cosine distance between the characterization vector corresponding to the product category of the target product and the characterization vector corresponding to the product category of the original product. For another example, in terms of object detection frame, the detection frame difference between the object detection frame of the target product and the object detection frame of the original product can be used as the image distance between the target product and the original product.

[0119] Among them, the entity word distance between the target product and the original product can be based on the entity words identified by the target product for the product title (i.e., the above-mentioned recognition result) and the entity words identified by the original product for the product title, or can be determined based on the modal information of the target product in the text modality and the modal information of the original product in the text modality. As mentioned above, the modal information of the product in the text modality is also composed of various entity words (such as product words, brand words), so when determining the entity word distance between the target product and the original product, it is also to determine the distance between the entity words corresponding to the target product and the entity words corresponding to the original product. Among them, the distance between two entity words can refer to the cosine distance between the representation vectors corresponding to the two entity words.

[0120] S405 , obtaining target inventory unit information of the target commodity, and obtaining inventory unit information of each candidate commodity in the candidate commodity set.

[0121] The specific implementation of this step can refer to the description in the above step S204, which will not be repeated here.

[0122] S406 : Determine a matching commodity for the target commodity from the candidate commodity set based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity.

[0123] Considering that the specific implementation of determining whether any candidate product in the candidate product set can be determined as a matching product is similar, the following description will be given using one candidate product as an example.

[0124] In one implementation, the SKU title corresponding to each SKU product can be obtained from the SKU information of any candidate product, and based on the product title of the candidate product, the SKU titles corresponding to each SKU product, and the product attribute information, candidate product information corresponding to each SKU product of the candidate product can be constructed. In other words, the candidate product information of a SKU product of any candidate product can be composed of the SKU title, product attribute information, and the product title of any candidate product to which the SKU product belongs. The SKU title of the target product can also be obtained from the target SKU information of the target product, and the target product information of the target product can be constructed based on the product title, SKU title, and product attribute information of the target product.

[0125] After obtaining the target product information of the target product and the candidate product information corresponding to each inventory unit product of any candidate product, the matching product corresponding to the target product can be determined based on the target product information of the target product and the candidate product information corresponding to each inventory unit product. Optionally, the matching values ​​corresponding to the target product and each inventory unit product can be determined based on the target product information of the target product and the candidate product information corresponding to each inventory unit product, and the matching product of the target product can be determined based on each determined matching value. For example, if there is an inventory unit product with a matching value greater than a preset value in each inventory unit product, then any candidate product can be used as the matching product of the target product. For another example, the inventory unit product with a matching value greater than the preset value can be directly used as the matching product of the target product. The preset value can be set in advance, and the specific value is not limited.

[0126] In summary, for any candidate product in the candidate product set, in order to determine whether any candidate product or the inventory unit product under any candidate product can become a matching product for the target product, the target product and an inventory unit product under any candidate product can be constructed into a candidate matching pair. In an embodiment of the present application, the target product can be constructed into a candidate matching pair with each inventory unit product under each candidate product, thereby obtaining multiple candidate matching pairs; further, the matching value between the target product and the inventory unit product in each candidate matching pair can be calculated, thereby determining whether the inventory unit product can become a matching product corresponding to the target product based on the calculated matching value, or whether the candidate product to which the inventory unit product belongs can become a matching product corresponding to the target product.

[0127] Wherein, each matching pair may have corresponding matching information, so that the matching value corresponding to the matching can be calculated based on the matching information. In a specific implementation, the inventory unit title and structured information of the goods (such as the target goods and inventory unit goods in the matching pair) can be extracted, and based on these data, they can be processed into an algorithm matching format, and the algorithm matching format can be (goods title + inventory unit title + goods attribute information). Based on the algorithm matching format, the matching information of the matching pair can be determined. For example, the matching information may include the target goods information of the target goods and the candidate goods information of the inventory unit goods; wherein the target goods information can be constructed by the goods title, inventory unit title and goods attribute information of the target goods, and the candidate goods information can be constructed by the goods title, inventory unit title and goods attribute information of the candidate goods to which the inventory unit goods of the inventory unit goods belong.

[0128] The following describes the specific implementation of the matching value between a target product and a SKU, or the matching value corresponding to a match. The matching value between a target product and a SKU may refer to the correlation (or similarity, etc.) between the target product information and the candidate product information for the SKU. This matching value may also be referred to as a similarity correlation score, etc.

[0129] Optionally, the information repetition rate between the target product information and the candidate product information can be calculated and used as the matching value between the target product and any SKU product. Here, information repetition rate = number of identical characters between the target product information and the candidate product information / (number of characters in the target product information + number of characters in the candidate product information).

[0130] Optionally, for any of the SKUs, feature extraction can be performed on the candidate product information corresponding to the SKU to obtain product features for the SKU, and feature extraction can be performed on the target product information to obtain product features for the target product. Furthermore, a matching value between the target product and the SKU can be determined based on the product features of the target product and the product features of the SKU.

[0131] In one embodiment, the distance (such as cosine distance) between the product features of the target product and the product features of any inventory unit product can be calculated, and then the distance can be used as the matching value. It should be noted that, considering that the smaller the distance, the more similar the two product features are, when using the distance as the matching value, the above-mentioned use of the matching value greater than the preset value to determine the matching product can be adjusted to a matching value not greater than the preset value. Under this embodiment, the feature vectors corresponding to the target product information and the candidate product information can be obtained by calling a neural network model with a feature extraction function, such as a BERT model, or other models.

[0132] In another embodiment, the probability of the target product matching any inventory unit product can be predicted based on the product features of the target product and the product features of any inventory unit product, and the probability can be used as the matching value between the target product and any inventory unit product. Under this embodiment, the above-mentioned probability prediction can be achieved by calling a target matching model (or referred to as an SKU matching model), as shown in Figure 5a. The target matching model may include a feature extraction module and a prediction module. The feature extraction module may be used to extract features, and the prediction module may be used to make predictions based on the features obtained by the feature extraction module, and obtain corresponding probabilities. Among them, the backbone network (i.e., the feature extraction module) in the target matching model may be composed of a ChineseBERT network, or other networks with feature extraction functions; the prediction module may be composed of a fully connected network.

[0133] Based on this, the above-mentioned prediction of the probability of the target product matching any inventory unit product can be specifically implemented as follows:

[0134] The candidate product information corresponding to any SKU product is input into a feature extraction module, which then uses the feature extraction module to extract features from the candidate product information to obtain product features for the SKU product. Furthermore, the target product information of the target product can be input into the feature extraction module, which then uses the feature extraction module to extract features from the target product information to obtain product features for the target product. The product features of the SKU product and the target product can then be input into a prediction module, which uses the prediction module to predict the probability of the target product matching the SKU product based on the product features of the SKU product and the target product.

[0135] In summary, when using the target matching model for inference (prediction), you can input the product information (product title + inventory unit title + product attribute information) corresponding to two products (such as the target product and any inventory unit product) to obtain the final predicted probability value through the backbone network, and this probability value can be used as the matching value between the two products. It can be seen that the matching between two products can be achieved directly by calling the neural network model, which can effectively improve the automation and intelligence of matching, and can fully explore the product features corresponding to the products to match based on the characteristics of the products themselves. Compared with manual matching, it can effectively improve the objectivity, accuracy and efficiency of matching.

[0136] In one implementation, the training process of the target matching model can be described as follows.

[0137] First, a training sample set for training a target matching model can be obtained. The training sample set may include one or more training sample pairs, and any training sample pair may include product information corresponding to two sample products. Here, the sample products may refer to inventory unit products, and the product information of a sample product consists of (product title + inventory unit title + product attribute information); that is, the SPU title + SKU title + structured information can be used as input to the target matching model. Any training sample pair has corresponding label data, and this label data can be used to indicate the probability of the two sample products matching. The probability here can be referred to as the sample probability. For any training sample pair in the training sample set, the training sample pair can be input into the target matching model to obtain the predicted probability of the two sample products matching in any training sample pair. Furthermore, the target matching model can be trained based on the predicted probability and sample probability of any training sample pair to obtain a trained target matching model. Optionally, a model loss value of the target matching model can be calculated based on the predicted probability and label probability, and the target matching model can be trained based on the model loss value to obtain a trained target matching model. For example, a model loss function may be used to calculate a model loss value based on predicted data and label data. For example, the model loss function may be a mean square error (MSE) loss function, a cross entropy loss function, etc., without limitation.

[0138] To better understand the three-stage product matching method proposed in the embodiment of the present application, the product matching method is further explained below.

[0139] (1) Store matching:

[0140] In one implementation, you can circle and submit a seed store to match. This seed store can be the store where the target product belongs (i.e., the target product library). Then, you can obtain the store title, store type, and store products of this seed store, and match it with all reference stores (i.e., the reference product library) based on the store title, store type, and store products. The specific matching process can be referred to the relevant description above.

[0141] (2) SPU matching:

[0142] In one implementation, the products in the original store obtained by the store matching operation are used as the product base to be matched (i.e., the original product set), and matching products corresponding to the target product are determined from this product base. The matched products here can be the candidate products mentioned above, and the matching products can also be referred to as SPU products. In a specific implementation, the target product features of the target product can be obtained, and the product features of each original product in the original product set can be obtained. Based on the target product features and the product features of each original product, a candidate product set for the target product can be determined from the original product set. This candidate product set is the matching products for the target product obtained by the SPU matching process.

[0143] The product features of a product may include modal features under multiple modalities, and the following description will be made using the target product features of a target product as an example.

[0144] First, the product information of the target product can be obtained, which may include product images, product titles and structured information (product attribute information), and the product images and product titles of the target product can be extracted, so as to generate the image modal features, text modal features and graphic modal features of the target product based on the product images and product titles.

[0145] 1. Acquisition of image modality features

[0146] First, the object detection model can be used to obtain the product detection frame (i.e., object detection frame) of the original image of the target product. Then, based on the product category of the target product and the object detection frame, the product body frame (i.e., target detection frame) is selected from the object detection frame. Finally, the product body frame and the product image can be combined and features can be obtained through a product image feature extractor. For example, the image of the area contained in the product body frame can be cropped from the original image, and features can be extracted from the image area through a product image feature extractor to obtain features. Among them, the product image feature extractor is the neural network model with image feature extraction mentioned above; this feature is the image modality feature.

[0147] 2. Acquisition of text modal features

[0148] First, the NER results (i.e., recognition results) in the product titles can be extracted through NER (Named Entity Recognition) processing; then, all product words and brand words can be extracted from the NER results and structured information based on the product titles. These product words and brand words are the modal information under the text modality mentioned above; finally, the features of these product words and product titles can be extracted. These features are text modal features, such as feature extraction operations that can be performed through NLP (Natural Language Processing) models.

[0149] 3. Graphical and textual modal features (CLIP features)

[0150] Use the CLIP model to extract CLIP features of the target product.

[0151] Then, the image modal features, text modal features, CLIP features, image information, entity words, etc. corresponding to the two products (such as the target product and any original product) can be combined for matching. For example, based on the image modal features, the top N original products with the closest feature distance for the image modal features can be found from the original product set, and then based on the image distance corresponding to the image information, the feature distance for the CLIP features, the feature distance for the text modal features, and the entity word distance corresponding to the entity words, the top N original products are screened to obtain a candidate product set, and the candidate product set can be retained in the local space. Among them, the specific implementation method for determining the candidate product set here can refer to the above-mentioned related description and will not be repeated here.

[0152] (3) SKU matching

[0153] In one implementation, for any candidate product in the candidate product set, the SKU information associated with the candidate product can be extracted. This SKU information refers to the SKU product information corresponding to all SKU products associated with the candidate product. SKU products can be referred to as SKU products, meaning that information for all SKU products associated with the SPU product can be extracted. Then, the SKU product titles (SPU title and SKU title) and structured information can be extracted and processed into an algorithmic matching format, such as (SPU title + SKU title + structured information). All SKU matching pairs (matching pairs) are generated. A SKU matching pair includes a target product and a SKU product, and a SKU matching pair corresponds to matching information (see the relevant description above). Furthermore, the matching values ​​of all SKU matching pairs can be calculated using a target matching model. For example, the matching information of the SKU matching pairs can be processed using the target matching model to obtain corresponding matching values. Finally, SKU matching pairs with matching values ​​exceeding a preset value can be retained as the final SKU matching results. The SKU products in the retained SKU matching pairs can be used as matching products for the target product.

[0154] In one implementation, the embodiments of the present application can be specifically applied to the task scenario of matching the same type of goods, and for non-standard goods, the embodiments of the present application can also achieve better matching results. For example, for non-standard goods such as clothing accessories, since the descriptions of non-standard goods vary greatly, if matching is achieved directly through text keywords (such as keywords in the product title), matching errors will usually occur. At the same time, there may be some features in the goods that are difficult to describe through text, such as the distribution of buttons on clothes, the matching of accessories on shoes, etc. These features usually require the use of image features to achieve more accurate matching. On the other hand, the completeness and credibility of product information vary greatly at different product levels, so a single-stage matching operation (such as matching only through a product library or matching only through SPU) may easily lead to large matching errors and missed recalls. The embodiments of the present application can analyze the product image of the product to obtain the features of the product in the image mode, and can combine the product title and the structured information of the product to obtain the features of the product in the text mode, so as to characterize the product by combining image mode features and text mode features, which can improve the product characterization effect and thus improve the matching effect. At the same time, the final multimodal matching can be completed through three stages: product library matching, SPU (standardized product unit) matching and SKU (stock keeping unit) matching.

[0155] To better understand the SPU and SKU matching methods proposed in this application, the following further describes these two methods using Figures 5b and 5c, along with specific application scenarios. Figure 5b illustrates the SPU matching process, while Figure 5c illustrates the SKU matching process. For ease of description, products matched in the SPU matching process are referred to as SPU products, and products matched in the SKU matching process are referred to as SKU products.

[0156] For example, as shown in FIG5b, the matching task of determining the SPU product that matches the target product can be generated in a real-time environment (online environment) or in an offline environment. The following describes the SPU matching process using the real-time environment as an example. Taking the target product as an example, if the SPU product that matches the target product needs to be queried, the corresponding SPU matching product (i.e., the SPU product that matches the target product) can be searched from the Redis (Redis is a cache database) business cache. If the SPU matching product corresponding to the target product is hit in the Redis business cache, the hit SPU matching product can be displayed in the form of a product list. If no hit is found or there is a mandatory update requirement, the product information service can be called to search for the product information of each product (such as the original product) in the product library (such as the original product library mentioned above). For example, the product information can include product titles, product images, etc., i.e., the modal information under multiple modalities mentioned above. Then, an online feature service can be called to extract features from this product information, obtaining three types of features corresponding to the target product and each original product (such as image modality features, text modality features, and graphic-text modality features). Next, a KNN (K-Nearest Neighbor) algorithm or an ANN (Approximate Nearest Neighbor) algorithm can be called to obtain a set of candidate products using the three types of features corresponding to the target product and each original product. Optionally, a strategic screening can be performed on this set of candidate products to obtain the final SPU-matched products.

[0157] For example, as shown in Figure 5c, after determining the SPU matching product corresponding to the target product, the SKU products under the SPU matching products are searched for products that match the target product. These products are referred to as SKU matching products. Similarly, the SKU matching process is described below using a real-time environment as an example. To query the SKU matching products for the target product, the corresponding SKU matching products can be first searched in the Redis business cache. If the SKU matching product corresponding to the target product is found in the Redis business cache, the SPU matching product to which the SKU matching product belongs can be used as the final matching product for the target product. If there is no hit or there is a forced update requirement, the product information service can be called to find the product information of each SKU product. Then, the online feature service can be called to use the product information of each SKU product and the target product information of the target product to perform feature extraction to obtain the product features of each SKU product and the target product features of the target product. Furthermore, the matching model (such as the above-mentioned target matching model) can be called to determine the SKU matching product that matches the target product based on the target product features and the product features of each SKU product. If one or more SKU products under a certain SPU matching product can become the SKU matching product that matches the target product, then the SPU matching product can be used as the matching product of the target product, and the corresponding matching result can be correct (Ture). If no SKU product under a certain SPU matching product becomes the SKU matching product that matches the target product, then the SPU matching product cannot be used as the matching product of the target product, and the corresponding matching result can be wrong (False).

[0158] In an embodiment of the present application, the hierarchical relationship of product information can be effectively analyzed, and the product matching task can be broken down into multiple stages according to the different integrity and reliability of product information at all levels. The corresponding product library can be matched first in the product library matching stage to reduce the matching data range; then, matching is performed at the SPU level and the SKU level respectively to achieve fine-grained matching to obtain the final matching result, which can reduce the amount of matching calculations and improve the matching effect. At the same time, the product can also be characterized by combining the information of the product in multiple modes to effectively improve the product characterization effect, thereby improving the matching effect. The matching of the same product in the product library is completed through multi-modal matching combining images and texts, and standard products and non-standard products can also be covered at the same time to achieve a higher matching accuracy and matching recall rate.

[0159] Please refer to Figure 6, which is a schematic diagram of the structure of a product matching device provided in an embodiment of the present application. The product matching device described in this embodiment includes:

[0160] The first acquisition unit 601 is configured to acquire an original commodity library set that matches the target commodity library to which the target commodity belongs, and use commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity;

[0161] The second acquisition unit 602 is configured to acquire target product features of the target product and acquire product features of each original product in the original product set;

[0162] A determining unit 603 is configured to determine a candidate product set of the target product from the original product set based on the target product feature and product features of each of the original products;

[0163] The third acquiring unit 604 is configured to acquire target inventory unit information of the target product and acquire inventory unit information of each candidate product in the candidate product set;

[0164] The matching unit 605 is configured to determine a matching commodity for the target commodity from the candidate commodity set based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity.

[0165] In one implementation, the first acquiring unit 601 is specifically configured to:

[0166] Obtain the product library information of the target product library to which the target product belongs, and obtain the product library information of each reference product library in the reference product library set;

[0167] The commodity library information of the target commodity library is matched with the commodity library information of each reference commodity library, and the matched reference commodity library is added to the original commodity library set.

[0168] In one implementation, the second obtaining unit 602 is specifically configured to:

[0169] Obtaining modal information of the target product in multiple modalities, and obtaining modal information of each original product in the original product set in the multiple modalities; the multiple modalities include image modality and text modality;

[0170] Feature extraction is performed on the modal information of the target product in multiple modalities to obtain the target product feature of the target product, and feature extraction is performed on the modal information of each original product in the multiple modalities to obtain the product feature of each original product in the original product set.

[0171] In one implementation, the second obtaining unit 602 is specifically configured to:

[0172] Extracting features of the modal information of the target product in the image modality to obtain image modal features;

[0173] Extracting features of the modal information of the target product in the text modality to obtain text modal features;

[0174] Determining an image-text modality feature based on the modal information of the target product in the image modality and the modal information in the text modality; the image-text modality feature is used to characterize the matching relationship between the modal information in the image modality and the modal information in the text modality;

[0175] The image modality feature, the text modality feature, and the graphic-text modality feature are used as target product features of the target product.

[0176] In one implementation, the second obtaining unit 602 is specifically configured to:

[0177] Obtain the original image of the target product;

[0178] Performing object detection on the original image to obtain an object detection result of the original image, wherein the object detection result includes an object detection frame of the target product;

[0179] Obtaining a commodity category of the target commodity, and determining a target detection frame matching the commodity category from the object detection frame;

[0180] The region image included in the target detection frame is cropped from the original image, and the cropped region image is used as the modal information of the target product in the image modality.

[0181] In one implementation, the second obtaining unit 602 is specifically configured to:

[0182] Obtaining the product title of the target product, and performing entity recognition on the product title of the target product to obtain a recognition result;

[0183] Obtaining commodity attribute information of the target commodity;

[0184] The modality information of the target product in text mode is obtained from the recognition result and the product attribute information.

[0185] In one implementation, the determining unit 603 is specifically configured to:

[0186] Obtaining first feature distances between the image modal features of the target product and the image modal features of each of the original products, and determining an initial product set of the target product from the original products based on each of the first feature distances;

[0187] Obtaining a second characteristic distance between the text modal feature of the target product and the text modal feature of each of the initial products, and obtaining a third characteristic distance between the image-text modal feature of the target product and the image-text modal feature of each of the initial products;

[0188] A candidate commodity set of the target commodity is determined from the initial commodity set based on the second feature distances and the third feature distances.

[0189] In one implementation, the SKU information of a candidate product includes SKU product information corresponding to one or more SKU products, where the one or more SKU products are different models of the candidate product. The matching unit 605 is specifically configured to:

[0190] For any candidate product in the candidate product set, obtaining the inventory unit title corresponding to each inventory unit product from the inventory unit information of the any candidate product, and constructing candidate product information corresponding to each inventory unit product for the any candidate product based on the product title of the any candidate product, the inventory unit title corresponding to each inventory unit product, and product attribute information;

[0191] Acquire the inventory unit title of the target commodity from the target inventory unit information of the target commodity, and construct the target commodity information of the target commodity based on the commodity title, inventory unit title, and commodity attribute information of the target commodity;

[0192] Determining matching values ​​between the target product and each of the inventory unit products based on the target product information and the candidate product information corresponding to each of the inventory unit products.

[0193] If there is a stock-keeping unit product with a matching value greater than a preset value among the stock-keeping unit products, any of the candidate products is used as a matching product for the target product.

[0194] In one implementation, the matching unit 605 is specifically configured to:

[0195] For any of the SKUs, feature extraction is performed on candidate product information corresponding to the SKU to obtain product features of the SKU, and feature extraction is performed on the target product information to obtain product features of the target product.

[0196] Predicting a probability that the target product matches any of the inventory unit products based on the product characteristics of the target product and the product characteristics of any of the inventory unit products;

[0197] The probability is used as a matching value between the target product and any one of the inventory unit products.

[0198] It is understood that the division of units in the embodiments of the present application is schematic and is merely a logical functional division. In actual implementation, other division methods may be used. The functional units in the embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0199] Please refer to Figure 7, which is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device includes: a processor 701 and a memory 702. Optionally, the computer device may also include a network interface 703. The processor 701, memory 702, and network interface 703 can exchange data.

[0200] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.

[0201] The memory 702 may include a read-only memory and a random access memory, and provides program instructions and data to the processor 701. A portion of the memory 702 may also include a non-volatile random access memory. When the processor 701 calls the program instructions, it is used to execute:

[0202] Acquire an original commodity library set that matches the target commodity library to which the target commodity belongs, and use commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity;

[0203] Obtaining target product features of the target product, and obtaining product features of each original product in the original product set;

[0204] Determining a candidate product set for the target product from the original product set based on the target product feature and the product features of each of the original products;

[0205] Obtaining target inventory unit information of the target product, and obtaining inventory unit information of each candidate product in the candidate product set;

[0206] Based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity, a matching commodity for the target commodity is determined from the candidate commodity set.

[0207] In one implementation, the processor 701 is specifically configured to:

[0208] Obtain the product library information of the target product library to which the target product belongs, and obtain the product library information of each reference product library in the reference product library set;

[0209] The commodity library information of the target commodity library is matched with the commodity library information of each reference commodity library, and the matched reference commodity library is added to the original commodity library set.

[0210] In one implementation, the processor 701 is specifically configured to:

[0211] Obtaining modal information of the target product in multiple modalities, and obtaining modal information of each original product in the original product set in the multiple modalities; the multiple modalities include image modality and text modality;

[0212] Feature extraction is performed on the modal information of the target product in multiple modalities to obtain the target product feature of the target product, and feature extraction is performed on the modal information of each original product in the multiple modalities to obtain the product feature of each original product in the original product set.

[0213] In one implementation, the processor 701 is specifically configured to:

[0214] Extracting features of the modal information of the target product in the image modality to obtain image modal features;

[0215] Extracting features of the modal information of the target product in the text modality to obtain text modal features;

[0216] Determining an image-text modality feature based on the modal information of the target product in the image modality and the modal information in the text modality; the image-text modality feature is used to characterize the matching relationship between the modal information in the image modality and the modal information in the text modality;

[0217] The image modality feature, the text modality feature, and the graphic-text modality feature are used as target product features of the target product.

[0218] In one implementation, the processor 701 is specifically configured to:

[0219] Obtain the original image of the target product;

[0220] Performing object detection on the original image to obtain an object detection result of the original image, wherein the object detection result includes an object detection frame of the target product;

[0221] Obtaining a commodity category of the target commodity, and determining a target detection frame matching the commodity category from the object detection frame;

[0222] The region image included in the target detection frame is cropped from the original image, and the cropped region image is used as the modal information of the target product in the image modality.

[0223] In one implementation, the processor 701 is specifically configured to:

[0224] Obtaining the product title of the target product, and performing entity recognition on the product title of the target product to obtain a recognition result;

[0225] Obtaining commodity attribute information of the target commodity;

[0226] The modality information of the target product in text mode is obtained from the recognition result and the product attribute information.

[0227] In one implementation, the processor 701 is specifically configured to:

[0228] Obtaining first feature distances between the image modal features of the target product and the image modal features of each of the original products, and determining an initial product set of the target product from the original products based on each of the first feature distances;

[0229] Obtaining a second characteristic distance between the text modal feature of the target product and the text modal feature of each of the initial products, and obtaining a third characteristic distance between the image-text modal feature of the target product and the image-text modal feature of each of the initial products;

[0230] A candidate commodity set of the target commodity is determined from the initial commodity set based on the second feature distances and the third feature distances.

[0231] In one implementation, the SKU information of a candidate product includes SKU product information corresponding to one or more SKU products, where the one or more SKU products are products of different models among the candidate products. The processor 701 is specifically configured to:

[0232] For any candidate product in the candidate product set, obtaining the inventory unit title corresponding to each inventory unit product from the inventory unit information of the any candidate product, and constructing candidate product information corresponding to each inventory unit product for the any candidate product based on the product title of the any candidate product, the inventory unit title corresponding to each inventory unit product, and product attribute information;

[0233] Acquire the inventory unit title of the target commodity from the target inventory unit information of the target commodity, and construct the target commodity information of the target commodity based on the commodity title, inventory unit title, and commodity attribute information of the target commodity;

[0234] Determining matching values ​​between the target product and each of the inventory unit products based on the target product information and the candidate product information corresponding to each of the inventory unit products.

[0235] If there is a stock-keeping unit product with a matching value greater than a preset value among the stock-keeping unit products, any of the candidate products is used as a matching product for the target product.

[0236] In one implementation, the processor 701 is specifically configured to:

[0237] For any of the SKUs, feature extraction is performed on candidate product information corresponding to the SKU to obtain product features of the SKU, and feature extraction is performed on the target product information to obtain product features of the target product.

[0238] Predicting a probability that the target product matches any of the inventory unit products based on the product characteristics of the target product and the product characteristics of any of the inventory unit products;

[0239] The probability is used as a matching value between the target product and any one of the inventory unit products.

[0240] An embodiment of the present application further provides a computer storage medium storing program instructions. When the program is executed, the program may include some or all steps of the product matching method in the embodiment corresponding to FIG. 2 or FIG. 4 .

[0241] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0242] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0243] The present application also provides a computer program product or computer program, which includes program instructions that, when executed by a processor, implement some or all of the steps in the above-described method. For example, the program instructions are stored in a computer-readable storage medium. A processor of a computer device reads the program instructions from the computer-readable storage medium and executes the program instructions, causing the computer device to perform the steps performed in the above-described method embodiments.

[0244] The above is a detailed introduction to a product matching method, device, computer equipment and medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A commodity matching method, characterized in that: The method comprises: Acquire an original commodity library set that matches the target commodity library to which the target commodity belongs, and use commodities in each original commodity library of the original commodity library set as the original commodity set of the target commodity; Acquire the target commodity feature of the target commodity, and acquire the commodity feature of each original commodity in the original commodity set; Determining a candidate commodity set of the target commodity from the original commodity set based on the target commodity feature and the commodity features of each of the original commodities; Acquire target inventory unit information of the target commodity, and acquire inventory unit information of each candidate commodity in the candidate commodity set; Based on the target inventory unit information of the target commodity and the inventory unit information of each of the candidate commodities, a matching commodity of the target commodity is determined from the candidate commodity set.

2. The method according to claim 1, characterized in that The step of obtaining an original commodity library set matching the target commodity library to which the target commodity belongs includes: Obtain the product library information of the target product library to which the target product belongs, and obtain the product library information of each reference product library in the reference product library set; The commodity library information of the target commodity library is matched with the commodity library information of each reference commodity library, and the matched reference commodity library is added to the original commodity library set.

3. The method according to claim 1, characterized in that: The step of obtaining the target commodity feature of the target commodity and obtaining the commodity feature of each original commodity in the original commodity set includes: Acquire the modal information of the target product in multiple modalities, and acquire the modal information of each original product in the original product set in the multiple modalities; the multiple modalities include image modality and text modality; Feature extraction is performed on the modal information of the target product in multiple modalities to obtain target product features of the target product, and feature extraction is performed on the modal information of each original product in the multiple modalities to obtain product features of each original product in the original product set.

4. The method according to claim 3, characterized in that: The step of extracting features of the modal information of the target product in multiple modalities to obtain target product features of the target product includes: Extracting features of the modal information of the target product in the image modality to obtain image modal features; Extracting features of the modal information of the target product in text mode to obtain text modal features; Determining an image-text modality feature based on the modality information of the target product in the image modality and the modality information in the text modality; the image-text modality feature is used to characterize the matching relationship between the modality information in the image modality and the modality information in the text modality; The image modality feature, the text modality feature and the graphic-text modality feature are used as target commodity features of the target commodity.

5. The method according to claim 3, characterized in that: The acquiring the modal information of the target product in the image modality includes: Obtain the original image of the target product; Performing object detection on the original image to obtain an object detection result of the original image, wherein the object detection result includes an object detection frame of the target product; Acquire the commodity category of the target commodity, and determine the target detection frame matching the commodity category from the object detection frame; The area image included in the target detection frame is cropped from the original image, and the cropped area image is used as the modal information of the target product in the image modality.

6. The method according to claim 3, characterized in that The obtaining of the modal information of the target product in text mode includes: Obtaining the product title of the target product, and performing entity recognition on the product title of the target product to obtain a recognition result; Acquire commodity attribute information of the target commodity; The modality information of the target product in text mode is obtained from the recognition result and the product attribute information.

7. The method according to claim 4, characterized in that The step of determining a candidate commodity set of the target commodity based on the target commodity feature and the commodity features of each of the original commodities includes: Acquire a first feature distance between the image modal feature of the target product and the image modal features of each of the original products, and determine an initial product set of the target product from the original products based on each of the first feature distances; Acquire a second characteristic distance between the text modal feature of the target product and the text modal feature of each of the initial products, and acquire a third characteristic distance between the graphic and text modal feature of the target product and the graphic and text modal feature of each of the initial products; A candidate commodity set of the target commodity is determined from the initial commodity set based on each second feature distance and each third feature distance.

8. The method according to claim 1, characterized in that The inventory unit information of a candidate commodity includes inventory unit commodity information corresponding to one or more inventory unit commodities, and the one or more inventory unit commodities are commodities of different models among the candidate commodities; the step of determining a matching commodity of the target commodity from the candidate commodity set based on the target inventory unit information of the target commodity and the inventory unit information of each candidate commodity includes: For any candidate product in the candidate product set, obtain the inventory unit title corresponding to each inventory unit product from the inventory unit information of the any candidate product, and construct candidate product information corresponding to each inventory unit product of the any candidate product based on the product title of the any candidate product, the inventory unit title corresponding to each inventory unit product, and product attribute information; Acquire the inventory unit title of the target commodity from the target inventory unit information of the target commodity, and construct the target commodity information of the target commodity based on the commodity title, inventory unit title and commodity attribute information of the target commodity; Determine, based on the target product information and the candidate product information respectively corresponding to any candidate product under each inventory unit product, the matching values ​​respectively corresponding to the target product and each inventory unit product; The inventory unit products with matching values ​​greater than the preset value are used as matching products of the target product.

9. The method according to claim 8, characterized in that The determining, based on the target product information and the candidate product information corresponding to each of the candidate products under each of the inventory unit products, the matching values ​​corresponding to the target product and each of the inventory unit products respectively include: For any inventory unit commodity among the inventory unit commodities, feature extraction is performed on candidate commodity information corresponding to the any inventory unit commodity to obtain commodity features of the any inventory unit commodity, and feature extraction is performed on the target commodity information to obtain commodity features of the target commodity; Based on the product features of the target product and the product features of any of the inventory unit products, predict the probability that the target product matches any of the inventory unit products; The probability is used as a matching value between the target product and any one of the inventory unit products.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Commodity clustering method and apparatus

    CN108171586A

  • Commodity information inputting method and device

    CN109447749A

  • Commodity mounting method and device thereof, electronic equipment and storage medium

    CN112989190A

  • Commodity object information search method and electronic equipment

    CN114117155A

  • Content generation method and device, electronic equipment and storage medium

    CN114820045A