A method and device for processing object scene graph
By identifying scene items and their categories from the scene graph of target items, and matching recommended items, the problem of over-reliance on user historical behavior in the existing technology is solved, and a richer and more accurate recommendation effect is achieved.
Patent Information
- Application Number
- CN202010047478.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-01-16
AI Technical Summary
Existing recommendation algorithms rely too much on users' historical behaviors, making it difficult to recommend new products, and the recommendation results are limited to items corresponding to users' historical behaviors, which cannot accurately meet users' needs.
By identifying the scene items and their categories from the scene graph of the target items, matching the corresponding recommended items from the item library, adding them to the recommended candidate set of the target items, and making recommendations based on the characteristics and application scenarios of the items themselves.
It improves the richness and effect of recommended items and increases user satisfaction. There is no difference in the recommendation priority between new and old products. The recommended results are not limited to items corresponding to the user's historical behavior and accurately meet the user's needs.
Smart Images

Figure CN113127728B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing an object scene graph. Background Art
[0002] With the development of Internet technology, E-Business (Electronic Business, E-Business) can be seen everywhere in our daily life. Among them, the recommendation system is very important, which provides users with item information and suggestions by using effective recommendation algorithms.
[0003] At present, existing recommendation algorithms usually find target users similar to the user based on the user's historical behavior (such as browsing history, product ratings, purchase history, etc.), and then recommend items to the target user based on the user's preferences, hoping to find items that the user is interested in.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] There is a problem with recommending items of interest to users based on their preferences. That is, it is too dependent on the user's historical behavior. If a new item has never had a sales history, it will not be recommended by the algorithm and can only be forced to be exposed through other methods. In addition, recommending based on the user's historical behavior will only limit the recommended results to the items corresponding to the user's historical behavior, and other items will find it difficult to stand out. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a method and apparatus for processing an item scene graph to solve the technical problem of over-reliance on user historical behaviors.
[0007] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing an object scene graph is provided, comprising:
[0008] Identify scene objects and their categories from the scene graph of the target object;
[0009] According to the category to which the scene object belongs, matching the recommended items corresponding to the scene object from the item library;
[0010] The recommended item is added to a recommendation candidate set of the target item.
[0011] Optionally, before identifying the scene object from the scene graph of the target object, the method further includes:
[0012] Obtaining a detailed image of the target object; wherein the detailed image at least includes a scene image;
[0013] A scene graph is filtered out from the detail graph of the target object.
[0014] Optionally, filtering out a scene graph from the detail graph of the target object includes:
[0015] Using a text recognition algorithm to identify the number of characters in each detailed image of the target object;
[0016] If the number of characters in any detail image is less than a preset threshold, the detail image is used as the scene image of the target object.
[0017] Optionally, identifying scene objects and their categories from the scene graph of the target object includes:
[0018] Training the neural network with a training set to obtain a trained neural network; the training set includes a plurality of object images and the category to which each object in each object image belongs;
[0019] Using the trained neural network, identify each object and its category from the scene graph of the target object;
[0020] The target object is eliminated from the various objects, thereby obtaining the scene objects and the categories to which they belong.
[0021] Optionally, the neural network is Region-CNN, and the training method of the neural network is stochastic gradient descent.
[0022] Optionally, matching the recommended items corresponding to the scene items from an item library according to the category to which the scene items belong includes:
[0023] According to the category to which the scene object belongs, matching an object set corresponding to the scene object from an object library;
[0024] Based on a preset rule, at least one item is selected from the item set as a recommended item corresponding to the scene item.
[0025] Optionally, before adding the recommended item to the recommendation candidate set of the target item, the method further includes:
[0026] According to the category to which the target item belongs, a recommendation candidate set corresponding to the target item is matched from an item library.
[0027] In addition, according to another aspect of an embodiment of the present invention, a device for processing an object scene graph is provided, comprising:
[0028] A recognition module, used to identify scene objects and their categories from the scene graph of the target object;
[0029] A matching module, used to match the recommended items corresponding to the scene items from an item library according to the categories to which the scene items belong;
[0030] The recommendation module is used to add the recommended item to the recommendation candidate set of the target item.
[0031] Optionally, the identification module is further used for:
[0032] Before identifying the scene object from the scene graph of the target object, obtaining a detail graph of the target object; wherein the detail graph at least includes the scene graph;
[0033] A scene graph is filtered out from the detail graph of the target object.
[0034] Optionally, the identification module is further used for:
[0035] Using a text recognition algorithm to identify the number of characters in each detailed image of the target object;
[0036] If the number of characters in any detail image is less than a preset threshold, the detail image is used as the scene image of the target object.
[0037] Optionally, the identification module is further used for:
[0038] Training the neural network with a training set to obtain a trained neural network; the training set includes a plurality of object images and the category to which each object in each object image belongs;
[0039] Using the trained neural network, identify each object and its category from the scene graph of the target object;
[0040] The target object is eliminated from the various objects, thereby obtaining the scene objects and the categories to which they belong.
[0041] Optionally, the neural network is Region-CNN, and the training method of the neural network is stochastic gradient descent.
[0042] Optionally, the matching module is further used for:
[0043] According to the category to which the scene object belongs, matching an object set corresponding to the scene object from an object library;
[0044] Based on a preset rule, at least one item is selected from the item set as a recommended item corresponding to the scene item.
[0045] Optionally, the recommendation module is further used to:
[0046] Before adding the recommended item to the recommendation candidate set of the target item, a recommendation candidate set corresponding to the target item is matched from an item library according to the category to which the target item belongs.
[0047] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including:
[0048] one or more processors;
[0049] a storage device for storing one or more programs,
[0050] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0051] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0052] One embodiment of the above invention has the following advantages or beneficial effects: because the technical means of identifying the scene objects and their categories from the scene graph of the target object and matching the recommended objects corresponding to the scene objects from the object library according to the categories of the scene objects is adopted, the technical problem of over-reliance on the user's historical behavior in the prior art is overcome. The embodiment of the present invention identifies the scene graph of the target object, identifies the scene objects contained in the scene graph, and then matches them in the object library, and adds the matched recommended objects to the original recommended candidate set of the target object as a supplement. The whole process is simple and time-saving, which greatly improves the richness of the recommended objects, thereby improving the effect of the recommendation and increasing user satisfaction. Based on the characteristics of the object itself and its application scenario, the embodiment of the present invention no longer requires the user's historical behavior, so there is no difference in the recommendation priority of new and old products; and the recommendation results will not be limited to the objects corresponding to the user's historical behavior. As long as the objects may appear in the same application scenario, they may be recommended, thereby accurately hitting the needs of users.
[0053] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0055] Figure 1 is a schematic diagram of the main process of a method for processing an object scene graph according to an embodiment of the present invention;
[0056] Figure 2is a schematic diagram of the main process of a method for processing an object scene graph according to a reference embodiment of the present invention;
[0057] Figure 3 is a schematic diagram of a business detail diagram according to an embodiment of the present invention;
[0058] Figure 4 is a schematic diagram of a scene graph according to an embodiment of the present invention;
[0059] Figure 5 is a schematic diagram of main modules of an apparatus for processing an object scene graph according to an embodiment of the present invention;
[0060] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0061] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0063] Recommendation algorithms usually use unilateral features of items and bilateral features of user interaction behaviors as data features to build models for recommendation, such as collaborative filtering algorithms. The common point of these models is that they need to rely on the user's historical behavior, such as browsing history, item ratings, purchase history, etc. Once the historical records are sparse, they may encounter cold start or limited recommendation results.
[0064] In order to solve the technical problems existing in the prior art, an embodiment of the present invention proposes a method for processing an object scene graph. The method makes recommendations based on the characteristics of the object itself and the scene in which it is located, thereby recommending to the user other items that the user needs to engage in a certain activity or be in a certain scene, thereby accurately meeting the user's needs.
[0065] Figure 1 is a schematic diagram of the main process of the method for processing an object scene graph according to an embodiment of the present invention. As an embodiment of the present invention, Figure 1 As shown, the method for processing an object scene graph may include:
[0066] Step 101 , identifying scene objects and their categories from a scene graph of a target object.
[0067] Generally speaking, a scene graph contains target items and scene items. In order to recommend to users other items they need for a certain activity or in a certain scene, it is necessary to first identify the scene items and the categories to which each scene item belongs from the scene graph containing the target item.
[0068] Optionally, before identifying the scene object from the scene image of the target object, the method further includes: obtaining a detail image of the target object; wherein the detail image at least includes a scene image; and filtering out the scene image from the detail image of the target object. In an embodiment of the present invention, the detail image of the target object is also a commercial detail image, which is called an item introduction detail image, and refers to a picture that appears on the item introduction page and gives a detailed introduction to the appearance, properties, functions, etc. of the item, generally including an item introduction image, an instruction image, a scene image, etc.
[0069] When merchants upload items, they often upload detailed pictures of the items (referred to as business pictures), including pictures of the item introduction, instructions for use, and usage scenarios, to help consumers understand the characteristics of the items more quickly. These pictures usually include the application scenarios of the item, such as outdoor scenes, sports scenes, bedroom scenes, toilet cleaning scenes, etc. There is often a strong connection between items in the same scene, and users are likely to have demand for other items in the same scene when purchasing items. After obtaining the business pictures uploaded by the merchant, the business pictures are initially filtered to select scene pictures, which contain both scene information and items with strong connections in the scene.
[0070] Optionally, the scene graph is screened out from the detail graph of the target object, including: using a text recognition algorithm to identify the number of characters in each detail graph of the target object; if there is any detail graph with a number of characters less than a preset quantity threshold, then the detail graph is used as the scene graph of the target object. Optionally, OCR can be used to identify the number of characters in each detail graph, thereby screening out detail graphs with a number of characters less than the quantity threshold and using them as scene graphs. In an embodiment of the present invention, OCR (Optical Character Recognition) refers to the process in which an electronic device (such as a scanner or digital camera) checks characters printed on paper, determines their shapes by detecting dark and light patterns, and then uses character recognition methods to translate the shapes into computer text.
[0071] It should be noted that the quantity threshold can be preset. If the number of characters in the detail image is less than the set quantity threshold, the detail image can be identified as a scene image. Since the detail image may include an item introduction image, an instruction image, and a scene image, and there may be more than one of these images, a text recognition algorithm is required to sequentially identify the number of characters in each detail image, thereby selecting at least one scene image. Generally speaking, these scene images will contain the target item.
[0072] Optionally, step 101 may include: training a neural network with a training set to obtain a trained neural network; the training set includes multiple object images and the category to which each object in each object image belongs; using the trained neural network to identify each object and its category from the scene image of the target object; removing the target object from the objects to obtain the scene objects and their categories. In an embodiment of the present invention, a pre-trained neural network may be used to identify each object in the scene image to obtain the category to which each object belongs, and the objects after removing the target object are the scene objects.
[0073] It should be noted that the category can be a primary category, a secondary category, a tertiary category, etc. The label of the training sample determines the category of each item identified by the neural network. The embodiment of the present invention does not limit the granularity of the label, and it can be marked as needed. Moreover, each item map can contain one or more items, and each item in the item map can be labeled separately, and each item in the item map can be framed out.
[0074] Optionally, the neural network is Region-CNN. Region-CNN (Region-Convolutional Neural Networks) is the first algorithm that successfully applies deep learning to object detection. It uses an exhaustive method to select the region boxes where all objects may appear in the image, extracts features from these region boxes, and uses image recognition methods to classify them, and finally outputs all objects contained in the image.
[0075] Optionally, the training method of the neural network is stochastic gradient descent. Stochastic gradient descent (SGD) is a classic method for training neural networks, which is used to solve the optimal value problem of multivariate objective functions in deep learning. This method uses the chain rule of gradients and the principle of gradient descent to update the parameters of the neural network multiple times, so that the loss function of the neural network is as close to the global minimum as possible.
[0076] Step 102: According to the category to which the scene object belongs, match the recommended object corresponding to the scene object from the object library.
[0077] After the categories of the scene objects are obtained according to step 102, the categories of the scene objects are input into the object library, so as to match the recommended objects corresponding to the scene objects from the object library.
[0078] Optionally, step 102 may include: matching a set of items corresponding to the scene items from the item library according to the category to which the scene items belong; and filtering out at least one item from the item set as a recommended item corresponding to the scene items based on preset rules. Generally speaking, a large number of items can be matched from the item library by the category of the scene items. In order to improve the accuracy of the recommendation, a small number of items can be further filtered out from these item sets in combination with preset rules as recommended items. Optionally, the preset rules are several items that are ranked at the top of the sales ranking, several items that are hot-selling in the season, several items that are currently being promoted, and so on.
[0079] Step 103: Add the recommended item to the recommendation candidate set of the target item.
[0080] Generally speaking, each target item has its corresponding recommendation candidate set. For example, when a user browses the target item, the server will push the items in the recommendation candidate set to the user. The recommended items matched in step 102 are added to the recommendation candidate set of the target item. Then, when the user browses the target item, the recommended items matched in step 102 will also be pushed to the user, thereby accurately meeting the user's needs.
[0081] Optionally, before step 103, the method further includes: matching a recommendation candidate set corresponding to the target item from an item library according to the category to which the target item belongs. A recommendation algorithm may be used to match a recommendation candidate set corresponding to the target item from an item library according to the category to which the target item belongs.
[0082] According to the various embodiments described above, it can be seen that the present invention solves the technical problem of over-reliance on user historical behavior in the prior art by identifying scene objects and their categories from the scene graph of the target object, and matching recommended objects corresponding to the scene objects from the object library according to the categories of the scene objects. The embodiment of the present invention identifies the scene graph of the target object, identifies the scene objects contained in the scene graph, and then matches them in the object library, and adds the matched recommended objects to the original recommended candidate set of the target object as a supplement. The whole process is simple and time-saving, which greatly improves the richness of the recommended objects, thereby improving the effect of the recommendation and increasing user satisfaction. Based on the characteristics of the object itself and its application scenario, the embodiment of the present invention no longer requires user historical behavior, so there is no difference in the recommendation priority of new and old products; and the recommendation results will not be limited to the objects corresponding to the user's historical behavior. As long as the objects may appear in the same application scenario, they may be recommended, thereby accurately meeting the needs of users.
[0083] Figure 2 is a schematic diagram of the main process of a method for processing an object scene graph according to a reference embodiment of the present invention. As another embodiment of the present invention, Figure 2 As shown, the method for processing an object scene graph may include:
[0084] Step 201, obtaining a detailed image of a target object.
[0085] Taking a certain mountaineering backpack as the target item, the commercial details of the certain mountaineering backpack are obtained from the database, such as Figure 3 As shown, the commercial detailed diagram (i.e., the detailed diagram of the mountaineering backpack) includes an item introduction diagram, a usage instruction diagram, and a scene diagram.
[0086] Step 202: Filter out a scene graph from the detail graph of the target object.
[0087] Optionally, step 202 includes: using a text recognition algorithm to identify the number of characters in each detail image of the target item; if the number of characters in any detail image is less than a preset number threshold, then the detail image is used as the scene image of the target item. For example, OCR can be used to identify the number of characters in each commercial detail image. If the number of characters is less than a preset number threshold (such as 3, 5 or 6, etc.), then the commercial detail image is used as a scene image. Generally speaking, the number of characters in a scene image is relatively small, and this method can filter out non-scene images in the commercial detail image.
[0088] Step 203: using the trained neural network, identify each object and its category from the scene graph of the target object.
[0089] It should be noted that before step 203, the neural network needs to be trained first, for example, Region-CNN can be trained through a training set, and trained using a stochastic gradient descent method to obtain a trained Region-CNN. The training set includes multiple object images and the categories to which each object in each object image belongs. The trained Region-CNN can accurately identify each object in the scene image and its category.
[0090] like Figure 4 As shown in Figure 2, the scene graph is input into the trained Region-CNN, and the trained Region-CNN is used to Figure 3 The scene graph in the image is recognized, and the recognition results are backpack, jacket, trekking pole and tent. Among them, the backpack is the target object, and the jacket, trekking pole and tent are scene objects.
[0091] Step 204: Eliminate the target object from the various objects, thereby obtaining the scene objects and the categories to which they belong.
[0092] Step 205: According to the category to which the scene object belongs, a set of objects corresponding to the scene object is matched from an object library.
[0093] by Figure 4 Taking the identification result shown as an example, through step 204, it can be obtained that the categories to which the scene objects belong include: jacket; trekking pole; tent.
[0094] The categories of the items in these three scenes are input into the item library, and the item sets corresponding to the jackets, trekking poles, and tents are matched from the item library.
[0095] Step 206: Based on a preset rule, at least one item is selected from the item set as a recommended item corresponding to the scene item.
[0096] Since the item set matched in step 205 contains a large number of items, it is not appropriate to directly add a large number of items as recommended items to the recommended candidate set. Therefore, each item in the item set can be filtered based on a preset rule, so as to select at least one item as a recommended item corresponding to each item scene. Optionally, the preset rule is a number of items that are ranked at the top in the item sales ranking.
[0097] For example, taking the above-mentioned jackets, trekking poles and tents as examples,
[0098] Recommended items that can be matched with the jacket include:
[0099] 1) Jacket for men and women, 3-in-1, detachable fleece liner, outdoor mountaineering clothing, winter jacket, couple outdoor travel suit, trendy brand, thickened, warm, windproof and waterproof clothing;
[0100] 2) Outdoor jacket for men and women, three-in-one warm and breathable fleece liner, two-piece set, windproof and waterproof mountaineering suit and jacket.
[0101] Recommended items that can be matched with trekking poles include:
[0102] 1) Carbon fiber trekking pole, ultra-light, short, multifunctional carbon walking stick, foldable and retractable, outdoor portable climbing equipment, walking stick, universal for men and women;
[0103] 2) Outdoor trekking pole, walking stick, crutch, aluminum alloy ultra-short three-section telescopic portable hiking stick for the elderly.
[0104] Recommended items that can be matched with tents include:
[0105] 1) 3-4 people multi-person enlarged fully automatic tent for outdoor camping double-layer Oxford cloth tent;
[0106] 2) Fully automatic tent outdoor rainproof camping double-layer no-build 3-4 person outdoor camping tent.
[0107] Step 207: According to the category to which the target item belongs, a set of recommendation candidates corresponding to the target item is matched from the item library.
[0108] Generally speaking, each target item has its corresponding recommendation candidate set. For example, when a user browses the target item, the server will push the items in the recommendation candidate set to the user.
[0109] Step 208: Add the recommended item to the recommendation candidate set of the target item.
[0110] The recommended items matched in step 206 are added to the recommendation candidate set of the target item. Then, when the user browses the target item, the recommended items matched in step 206 will also be pushed to the user, thereby accurately meeting the user's needs.
[0111] In addition, the specific implementation content of the method for processing an object scene graph in a reference embodiment of the present invention has been described in detail in the method for processing an object scene graph described above, so the repeated content will not be described here.
[0112] Figure 5 is a schematic diagram of main modules of an apparatus for processing an object scene graph according to an embodiment of the present invention, such as Figure 5As shown, the device 500 for processing an object scene graph includes an identification module 501, a matching module 502 and a recommendation module 503. The identification module 501 is used to identify scene objects and their categories from the scene graph of the target object; the matching module 502 is used to match the recommended objects corresponding to the scene objects from the object library according to the categories to which the scene objects belong; and the recommendation module 503 is used to add the recommended objects to the recommendation candidate set of the target object.
[0113] Optionally, the identification module 501 is further used for:
[0114] Before identifying the scene object from the scene graph of the target object, obtaining a detail graph of the target object; wherein the detail graph at least includes the scene graph;
[0115] A scene graph is filtered out from the detail graph of the target object.
[0116] Optionally, the identification module 501 is further used for:
[0117] Using a text recognition algorithm to identify the number of characters in each detailed image of the target object;
[0118] If the number of characters in any detail image is less than a preset threshold, the detail image is used as the scene image of the target object.
[0119] Optionally, the identification module 501 is further used for:
[0120] Training the neural network with a training set to obtain a trained neural network; the training set includes a plurality of object images and the category to which each object in each object image belongs;
[0121] Using the trained neural network, identify each object and its category from the scene graph of the target object;
[0122] The target object is eliminated from the various objects, thereby obtaining the scene objects and the categories to which they belong.
[0123] Optionally, the neural network is Region-CNN, and the training method of the neural network is stochastic gradient descent.
[0124] Optionally, the matching module 502 is further configured to:
[0125] According to the category to which the scene object belongs, matching an object set corresponding to the scene object from an object library;
[0126] Based on a preset rule, at least one item is selected from the item set as a recommended item corresponding to the scene item.
[0127] Optionally, the recommendation module 503 is further used for:
[0128] Before adding the recommended item to the recommendation candidate set of the target item, a recommendation candidate set corresponding to the target item is matched from an item library according to the category to which the target item belongs.
[0129] According to the various embodiments described above, it can be seen that the present invention solves the technical problem of over-reliance on user historical behavior in the prior art by identifying scene objects and their categories from the scene graph of the target object, and matching recommended objects corresponding to the scene objects from the object library according to the categories of the scene objects. The embodiment of the present invention identifies the scene graph of the target object, identifies the scene objects contained in the scene graph, and then matches them in the object library, and adds the matched recommended objects to the original recommended candidate set of the target object as a supplement. The whole process is simple and time-saving, which greatly improves the richness of the recommended objects, thereby improving the effect of the recommendation and increasing user satisfaction. Based on the characteristics of the object itself and its application scenario, the embodiment of the present invention no longer requires user historical behavior, so there is no difference in the recommendation priority of new and old products; and the recommendation results will not be limited to the objects corresponding to the user's historical behavior. As long as the objects may appear in the same application scenario, they may be recommended, thereby accurately meeting the needs of users.
[0130] It should be noted that the specific implementation content of the device for processing the object scene graph described in the present invention has been described in detail in the method for processing the object scene graph described above, so the repeated content will not be described here.
[0131] Figure 6 An exemplary system architecture 600 is shown to which the method for processing an item scene graph or the apparatus for processing an item scene graph according to an embodiment of the present invention can be applied.
[0132] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0133] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0134] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0135] The server 605 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 601, 602, and 603. The backend management server may analyze and process the received data such as the item information query request, and feed back the processing results (such as target push information, item information - only an example) to the terminal device.
[0136] It should be noted that the method for processing an item scene graph provided in the embodiment of the present invention is generally executed by the server 605, and accordingly, the device for processing an item scene graph is generally set in the server 605. The method for processing an item scene graph provided in the embodiment of the present invention can also be executed by the terminal devices 601, 602, and 603, and accordingly, the device for processing an item scene graph can be set in the terminal devices 601, 602, and 603.
[0137] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0138] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0139] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0140] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0141] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0142] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a recognition module, a matching module and a recommendation module, wherein the names of these modules do not constitute a limitation on the modules themselves in some cases.
[0145] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: identifying scene objects and their categories from the scene graph of the target object; matching recommended objects corresponding to the scene objects from the object library according to the categories to which the scene objects belong; and adding the recommended objects to the recommendation candidate set of the target object.
[0146] According to the technical solution of the embodiment of the present invention, because the technical means of identifying the scene objects and their categories from the scene graph of the target object and matching the recommended objects corresponding to the scene objects from the object library according to the categories of the scene objects are adopted, the technical problem of over-reliance on the user's historical behavior in the prior art is overcome. The embodiment of the present invention identifies the scene graph of the target object, identifies the scene objects contained in the scene graph, and then matches them in the object library, and adds the matched recommended objects to the original recommended candidate set of the target object as a supplement. The whole process is simple and time-saving, which greatly improves the richness of the recommended objects, thereby improving the effect of the recommendation and increasing user satisfaction. Based on the characteristics of the object itself and its application scenario, the embodiment of the present invention no longer requires the user's historical behavior, so there is no difference in the recommendation priority of new and old products; and the recommendation results will not be limited to the objects corresponding to the user's historical behavior. As long as the objects may appear in the same application scenario, they may be recommended, thereby accurately hitting the needs of users.
[0147] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing an object scene graph, characterized in that: include: Identify scene objects and their categories from the scene graph of the target object; According to the category to which the scene object belongs, matching the recommended items corresponding to the scene object from the item library; Adding the recommended item to a recommendation candidate set of the target item; Before identifying scene objects from the scene graph of the target object, it also includes: Obtaining a detailed image of the target object; wherein the detailed image at least includes a scene image; Filtering a scene graph from the detail graph of the target object; Filtering a scene graph from the detail graph of the target object includes: Using a text recognition algorithm to identify the number of characters in each detailed image of the target object; If the number of characters in any detail image is less than a preset threshold, the detail image is used as the scene image of the target object.
2. The method according to claim 1, characterized in that Identify scene objects and their categories from the scene graph of the target object, including: Training the neural network with a training set to obtain a trained neural network; wherein the training set includes a plurality of object images and the category to which each object in each object image belongs; Using the trained neural network, identify each object and its category from the scene graph of the target object; The target object is eliminated from the various objects, thereby obtaining the scene objects and the categories to which they belong.
3. The method according to claim 2, characterized in that The neural network is Region-CNN, and the training method of the neural network is stochastic gradient descent.
4. The method according to claim 1, characterized in that According to the category to which the scene object belongs, matching the recommended items corresponding to the scene object from the item library includes: According to the category to which the scene object belongs, matching an object set corresponding to the scene object from an object library; Based on a preset rule, at least one item is selected from the item set as a recommended item corresponding to the scene item.
5. The method according to claim 1, characterized in that Before adding the recommended item to the recommendation candidate set of the target item, the method further includes: According to the category to which the target item belongs, a recommendation candidate set corresponding to the target item is matched from an item library.
6. A device for processing an object scene graph, characterized in that: include: A recognition module, used to identify scene objects and their categories from the scene graph of the target object; A matching module, used to match the recommended items corresponding to the scene items from an item library according to the categories to which the scene items belong; A recommendation module, used for adding the recommended item to a recommendation candidate set of the target item; The identification module is also used for: Before identifying the scene object from the scene graph of the target object, obtaining a detail graph of the target object; wherein the detail graph at least includes the scene graph; Filtering a scene graph from the detail graph of the target object; The identification module is also used for: Using a text recognition algorithm to identify the number of characters in each detailed image of the target object; If the number of characters in any detail image is less than a preset threshold, the detail image is used as the scene image of the target object.
7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and device for identifying association between network users
CN104850567A
Commodity data processing method and device
CN106846122A
