Article recommendation method and device, equipment, medium and program product
By releasing movable objects and updating pheromone values in the item attribute map, the problem of long recommendation time and poor matching of financial products is solved, fast and effective recommendation of target objects is achieved, and the success rate and pertinence of recommendations are improved.
Patent Information
- Application Number
- CN202410951020.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-01
AI Technical Summary
In the financial industry, the wide variety of financial products leads to long time and poor matching of financial products to customers, making it difficult to ensure that customers accept the recommended products.
By releasing multiple movable objects in the item attribute map, the next moving grid is determined based on the grid selection constraints, heuristic function and selection probability function, and the pheromone value is updated until the movable objects reach the end of the path to perform global information Elements are updated to improve item matching probability.
It can quickly and effectively determine the target object's preferred items, improve the recommendation success rate, reduce screening costs, and provide targeted product recommendations for different customers.
Smart Images

Figure CN118735652A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of big data technology, financial technology technology or other related technical fields, and more specifically to an item recommendation method, device, equipment, medium and program product. Background Art
[0002] In the financial industry, it is of great significance to make targeted recommendations for financial products such as credit cards for different customers and in different scenarios. In the related art, in the process of recommending financial products to customers, due to the wide variety of financial products, in the process of determining the financial products to be recommended to customers, it takes a long time to determine the financial products to be recommended, and the determined financial products to be recommended have a poor match with the customers, making it difficult to ensure that the customers accept the recommended financial products.
[0003] Therefore, with an increasing number of financial products, how to quickly and accurately determine the financial products to be recommended to customers so as to increase the success rate of customers' acceptance of the recommended financial products is a technical problem that needs to be solved in related technologies. Summary of the invention
[0004] In view of the above problems, the present disclosure provides an item recommendation method, apparatus, device, medium and program product.
[0005] According to the first aspect of the present disclosure, a method for recommending items is provided, characterized in that the method comprises: when the above-mentioned preset conditions are not satisfied in a cycle round, m movable objects are released in sequence at the starting grid of the item attribute map, and for the kth movable object, based on the current grid where the kth movable object is located, according to the grid selection constraint, the heuristic function and the selection probability function, the next moving grid corresponding to the k movable objects is determined, wherein the item attribute map is constructed based on the item attribute information of each of multiple categories of items, and one grid in the item attribute map represents one type of item; m is an integer greater than or equal to 1, and k is an integer greater than or equal to 1 and less than or equal to m; the grid selection constraint is determined based on the attribute information of the target object; the pheromone value of the next moving grid is updated, wherein the pheromone The value is used to characterize the probability of the grid being selected; when the k-th movable object reaches the path end grid, the pheromone value of each grid in the path corresponding to the k-th movable object is updated, wherein the path end grid is determined according to the path end grid constraint condition, and the path end grid constraint condition is determined according to the attribute information of the target object; when the m movable objects all reach the path end grid corresponding to each movable object, the grids in the item attribute map are globally updated with pheromones; when the above-mentioned cycle rounds meet the above-mentioned preset conditions, based on the probability that the items represented by the grids in the m paths corresponding to the m movable objects match the above-mentioned target object, determine the items to be recommended from the items represented by the grids in the m paths, so as to recommend the above-mentioned items to be recommended to the target object.
[0006] According to an embodiment of the present disclosure, for the k-th movable object, based on the current grid where the k-th movable object is located, according to the grid selection constraint, the heuristic function and the selection probability function, the next moving grid corresponding to the k-th movable object is determined, including: based on the current grid where the k-th movable object is located, according to the grid constraint, determining an alternative grid from grids adjacent to the current grid where the k-th movable object is located; for each of the alternative grids, using the heuristic function, according to the difference in benefits between the items represented by the alternative grid and the current grid, calculating the heuristic value corresponding to the alternative grid; using the selection probability function, according to the pheromone value of the alternative grid, the difference in benefits and the heuristic value, calculating the selection probability corresponding to the alternative grid; based on the selection probability corresponding to each of the alternative grids, determining the next moving grid of the k-th movable object from the alternative grids.
[0007] According to an embodiment of the present disclosure, the updating of the pheromone value of the next moving grid includes: calculating a first pheromone update value corresponding to the next moving grid according to the current pheromone value and attenuation coefficient of the next moving grid; and updating the pheromone value of the next moving grid using the first pheromone update value.
[0008] According to an embodiment of the present disclosure, when the k-th movable object reaches the path end grid, the pheromone value of each grid in the path corresponding to the k-th movable object is updated, including: for each grid in the path corresponding to the k-th movable object, according to the current pheromone value of the grid, the path corresponding to the k-th movable object and the pheromone update coefficient, a second pheromone update value corresponding to the grid is calculated; and the pheromone value of the grid is updated using the second pheromone update value.
[0009] According to an embodiment of the present disclosure, when the m movable objects all reach the path end grid corresponding to each movable object, a global pheromone update is performed on the grids in the item attribute map, including: for each grid in the item attribute map, according to the total amount of pheromones released by the movable object in one cycle and the path corresponding to each movable object, calculating the legacy pheromone value left on the grid by each movable object in the cycle; and updating the pheromone value of the grid according to the legacy pheromone value.
[0010] According to an embodiment of the present disclosure, the above-mentioned updating of the pheromone value of the above-mentioned grid according to the above-mentioned legacy pheromone value includes: calculating the pheromone increment corresponding to the above-mentioned grid according to the number of movable objects among the above-mentioned m movable objects that pass through the above-mentioned grid in the cycle and the above-mentioned legacy pheromone value; calculating the third pheromone update value corresponding to the above-mentioned grid according to the above-mentioned pheromone increment, the pheromone evaporation rate and the current pheromone value of the above-mentioned grid; and updating the pheromone value of the above-mentioned grid using the above-mentioned third pheromone update value.
[0011] According to an embodiment of the present disclosure, the above-mentioned determining the items to be recommended from the items represented by the grids in the m paths corresponding to the m movable objects based on the revenue of the items represented by the grids in the m paths includes: determining the path with the highest probability as the optimal path by comparing the probability of matching the items represented by the grids at the path endpoints of the m paths with the target objects; and determining the items represented by the grids at the path endpoints of the optimal path as the items to be recommended.
[0012] A second aspect of the present disclosure provides an item recommendation device, characterized in that the device includes repeatedly performing the following operations until a preset condition is met: a first determination module is used to release m movable objects in sequence at the starting grid of the item attribute map when the preset condition is not met in a cycle round, and for the kth movable object, based on the current grid where the kth movable object is located, determine the next mobile grid corresponding to the k movable objects according to the grid selection constraint, the heuristic function and the selection probability function, wherein the item attribute map is constructed based on the item attribute information of each of multiple categories of items, and one grid in the item attribute map represents one type of item; m is an integer greater than or equal to 1, and k is an integer greater than or equal to 1 and less than or equal to m; the grid selection constraint is determined based on the attribute information of the target object; a first update module is used to update the pheromone value of the next mobile grid, wherein the The pheromone value is used to characterize the probability of a grid being selected; the second updating module is used to update the pheromone value of each grid in the path corresponding to the kth movable object when the kth movable object reaches the path end grid, wherein the path end grid is determined according to the path end grid constraint condition, and the path end grid constraint condition is determined according to the attribute information of the target object; the third updating module is used to perform a global pheromone update on the grids in the item attribute map when the m movable objects all reach the path end grid corresponding to each movable object; the second determining module is used to determine the items to be recommended from the items represented by the grids in the m paths corresponding to the m movable objects based on the probability that the items represented by the grids in the m paths match the target object when the above-mentioned cycle rounds meet the above-mentioned preset conditions, so as to recommend the above-mentioned items to be recommended to the target object.
[0013] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0014] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0015] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0016] According to an embodiment of the present disclosure, when a cycle round does not meet a preset condition, in an item attribute map composed of item attribute information of multiple types of items, multiple movable objects are released in turn at the starting grid, and for the current grid where each movable object is located, the next moving grid is determined according to the grid selection constraint, the heuristic function and the selection probability function, and the pheromone value of the next moving grid is updated to enhance the pheromone value on the grid, so that subsequent movable objects can select a grid based on the enhanced pheromone value. When all movable objects move from the starting grid to the path end grid, the pheromone value of each grid passed by the movable object in the item attribute map is updated, and then when all movable objects reach their corresponding path end grids, the global pheromone update is performed on all grids in the item attribute map. The subsequent movable objects can ignore those unqualified traces with a high probability and improve their coverage efficiency to find the best items for the target object. When the cycle rounds meet the preset conditions, from the item attribute map after the end of the last cycle, according to the probability of matching the items represented by the grids in the m paths with the target object, the items represented by the grids with the largest matching probability are selected as the items to be recommended for recommendation to the target object, thereby realizing the rapid and effective determination of the target object's preferred items, thereby selecting the best items to be recommended to the target object from multiple categories of items, making the target object more receptive to the items to be recommended, improving the probability of successful recommendation to the target object, and reducing the cost of screening financial products that meet the target object. Further, targeted product recommendations can be made for different target objects to improve the success rate of item recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0018] Figure 1 The application scenario diagram of the item recommendation method according to the embodiment of the present disclosure is schematically shown;
[0019] Figure 2 A flowchart of an item recommendation method according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 3 A flowchart of a method for determining a next moving grid corresponding to a movable object according to the present disclosure is schematically shown;
[0021] Figure 4 A schematic diagram schematically shows an item attribute map according to an embodiment of the present disclosure;
[0022] Figure 5A schematic diagram schematically shows an item to be recommended with the highest selection probability determined based on the item recommendation method according to an embodiment of the present disclosure;
[0023] Figure 6 A structural block diagram of an item recommendation device according to an embodiment of the present disclosure is schematically shown; and
[0024] Figure 7 A block diagram of an electronic device suitable for implementing an item recommendation method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0026] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0027] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0028] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0029] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0030] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0031] In the process of implementing the present disclosure, heuristic algorithms such as genetic algorithms, ant colony algorithms and particle swarm algorithms are usually used to fully search the entire target space to provide a global optimal solution, or evolutionary algorithms such as genetic algorithms, immune algorithms, dragonfly algorithms and particle swarm algorithms are used for global path planning. Therefore, in order to make the financial products recommended to customers more targeted, heuristic algorithms or evolutionary algorithms can be used to search multiple types of financial products to find the best financial products for customers. However, due to the differences in customers and scenarios and the variety of financial products, how to effectively recommend financial products that match different customers is a technical problem that needs to be solved in related technologies.
[0032] In view of this, an embodiment of the present disclosure provides an item recommendation method, comprising: when a cycle round does not meet a preset condition, releasing m movable objects in sequence at the starting grid of the item attribute map, for the kth movable object, based on the current grid where the kth movable object is located, according to the grid selection constraint, the heuristic function and the selection probability function, determining the next moving grid corresponding to the k movable objects, wherein the item attribute map is constructed according to the item attribute information of each of multiple categories of items, and one grid in the item attribute map represents one type of item; m is an integer greater than or equal to 1, and k is an integer greater than or equal to 1 and less than or equal to m; the grid selection constraint is determined according to the attribute information of the target object; updating the pheromone value of the next moving grid, wherein the pheromone value of the next moving grid is updated. The pheromone value is used to characterize the probability of a grid being selected; when the kth movable object reaches the path end grid, the pheromone value of each grid in the path corresponding to the kth movable object is updated, wherein the path end grid is determined according to the path end grid constraint condition, and the path end grid constraint condition is determined according to the attribute information of the target object; when m movable objects all reach the path end grid corresponding to each movable object, the grids in the item attribute map are globally updated with pheromones; when the cycle rounds meet the preset conditions, based on the probability that the items represented by the grids in the m paths corresponding to the m movable objects match the target object, the items to be recommended are determined from the items represented by the grids in the m paths, so as to recommend the items to be recommended to the target object.
[0033] Figure 1 The following schematically shows an application scenario of the item recommendation method according to an embodiment of the present disclosure.
[0034] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0035] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0036] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0037] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0038] It should be noted that the item recommendation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the item recommendation device provided in the embodiment of the present disclosure can generally be set in the server 105. The item recommendation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the item recommendation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0039] It should be understood that Figure 1 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.
[0040] The following will be based on Figure 1 The scene described by Figure 2~Figure 4 The item recommendation method of the disclosed embodiment is described in detail.
[0041] Figure 2 The flowchart of the item recommendation method according to an embodiment of the present disclosure is schematically shown.
[0042] like Figure 2 As shown, the item recommendation method of this embodiment includes operations S210 to S250.
[0043] In operation S210, when the loop round does not meet the preset conditions, m movable objects are released in sequence at the starting grid of the item attribute map, and for the kth movable object, based on the current grid where the kth movable object is located, the next mobile grid corresponding to the k movable object is determined according to the grid selection constraints, the heuristic function and the selection probability function.
[0044] According to an embodiment of the present disclosure, an item attribute map is constructed based on the item attribute information of each of multiple categories of items, and a grid in the item attribute map can represent one type of item; m is an integer greater than or equal to 1, and k is an integer greater than or equal to 1 and less than or equal to m; the grid selection constraint is determined based on the attribute information of the target object.
[0045] According to an embodiment of the present disclosure, the preset condition can be characterized as a preset number of cycles, and the preset number of cycles can be set in advance. When the number of cycles does not meet the preset number of cycles, it is necessary to iterate the cycle to the preset number of cycles to obtain the items to be recommended.
[0046] According to an embodiment of the present disclosure, the starting grid of the item attribute map may represent a preset starting point, that is, all movable objects start to move from the starting grid. For example, the starting grid may be the grid at the bottom left corner of the item attribute map.
[0047] According to the embodiments of the present disclosure, an item may refer to various financial products. When the financial product to be recommended is a credit card, an item attribute map may be constructed based on the credit card information abstraction algorithm and the attribute information of multiple types of credit cards. The attribute information of the credit card may include the type of credit card, the installment of the credit card, the credit card's preferential activities, the credit card's spending limit, and other information.
[0048] For example, the item attribute map can be represented as a digital map including multiple grids generated according to the attribute information of a credit card. Each grid in the digital map can be represented as a credit card product with different credit card attribute information. The movable object moves in the grids in the item attribute map.
[0049] According to an embodiment of the present disclosure, a heuristic function can be used to help guide the selection of a moving grid of a movable object, and the heuristic function is aimed at the highest probability that the target object can purchase the item. The movable object can be a dragonfly.
[0050] According to an embodiment of the present disclosure, the selection probability function may be represented by the selection probabilities of the kth movable object for different next moving grids to be selected.
[0051] According to an embodiment of the present disclosure, the grid selection constraint condition may be characterized as a condition for constraining the range of the next moving grid to be selected by the movable object during the process of the movable object moving in the item attribute map.
[0052] According to an embodiment of the present disclosure, grid selection constraint conditions may be determined based on attribute information of a target object. The target object is an object for which item recommendation is required.
[0053] It should be noted that the attribute information of the target objects involved in the embodiments of the present disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, and do not violate public order and good morals.
[0054] According to an embodiment of the present disclosure, the attribute information of the target object may include whether the target object is a new customer, the target object's age, the target object's occupation, the target object's education, the target object's income, the target object's expenditure, and other basic information corresponding to the target object. For example, the attribute information of the target object may be the type of credit card applied for by the target object and the target object's spending limit, the target object's consumption expenditure feature information, and the target object's social attribute information.
[0055] For example, when the item is a credit card, the attribute information of the credit card may be as shown in Table 1.
[0056]
[0057] As can be seen from Table 1, Table 1 shows the attribute information of the credit card. For example, when the attribute information of the target object is that the consumption amount for shopping and travel is 8,000 yuan, and the number of installments is 12 periods, the grid selection constraint condition can be determined from the attribute information table of the credit card according to the attribute information of the target object. The grid selection constraint condition can be to constrain the selection of credit cards below the gold card level, with the number of installments being less than or equal to 6 times, the consumption limit being less than 10,000 yuan, and the annual fee being less than 100 yuan.
[0058] According to the embodiments of the present disclosure, by performing multi-dimensional and multi-angle comprehensive calculations on the grid selection constraints, heuristic functions and selection probability functions of the movable object, the grid to which the movable object is to move next can be more accurately calculated.
[0059] In operation S220, the pheromone value of the next moving grid is updated.
[0060] According to an embodiment of the present disclosure, the pheromone value may be used to characterize the probability of a grid being selected, that is, the pheromone value of a grid may affect the probability of the grid being selected as the next moving grid.
[0061] According to an embodiment of the present disclosure, when the kth movable object moves to the determined next moving grid, the pheromone value of the next moving grid is updated, that is, since the kth movable object passes through the next moving grid, the pheromone value of the next moving grid needs to be enhanced so that other subsequent movable objects can gradually find the optimal path based on the enhanced pheromone value.
[0062] According to an embodiment of the present disclosure, the initial pheromone value of each grid in the item attribute map is preset so as to be updated based on the initial pheromone value of the grid.
[0063] In operation S230, in a case where the k-th movable object reaches the path end grid, the pheromone value of each grid in the path corresponding to the k-th movable object is updated.
[0064] According to an embodiment of the present disclosure, the path end grid is determined based on the path end grid constraint condition, and the path end grid constraint condition is determined based on the attribute information of the target object, that is, the path end grid constraint condition can be determined based on the attribute information of the target object according to the customer information abstraction algorithm, wherein for different movable objects, the path end grid reached according to the path end grid constraint condition is different.
[0065] According to an embodiment of the present disclosure, when the kth movable object reaches the path end grid, the pheromone values of all the grids passed by the kth movable object are updated again, so that the movable object can accept the pheromones left in the grid each time it selects the next moving grid, so that each movable object can understand whether the grid is the next moving grid to be selected by the movable object based on the size of the pheromone value of the grid at this time, thereby obtaining the optimal planned path and the optimal item to be recommended that is adapted to the target object.
[0066] According to an embodiment of the present disclosure, the path end grid constraint condition can represent the grid used to constrain the movable object to stop moving during the movement of the movable object in the item attribute map, that is, the path end grid of the movable object can be determined according to the path end grid constraint condition.
[0067] In operation S240, when the m movable objects all reach the path end grid corresponding to each movable object, a global pheromone update is performed on the grid in the item attribute map.
[0068] According to an embodiment of the present disclosure, after a cycle ends, that is, the m movable objects all reach their respective path end grids, the grids in the item attribute map can be globally updated with pheromones, that is, the pheromone values of each grid in the item attribute map are updated.
[0069] According to the embodiments of the present disclosure, the updated pheromone value corresponding to each grid can be obtained from the item attribute map after the global pheromone update, and the pheromone value corresponding to each grid can be seen from the number of times the m movable objects pass through the grid during this cycle, that is, for a certain grid, the more movable objects pass through the grid during this cycle, the higher the pheromone value of the grid is.
[0070] According to the embodiment of the present disclosure, the dragonfly algorithm is used to determine the moving grid of the movable objects in the item attribute map, and as the movement of the kth movable object is completed, the pheromone values of all grids in the path are updated to enhance the pheromone concentration of the grids involved in the path in the item attribute map, thereby helping the next movable object to select the moving grid in the item attribute map, so that the subsequent movable objects can ignore the grids with lower pheromones with a greater probability and select the grids with higher pheromones with a greater probability, thereby improving the efficiency of grid selection. When all movable objects move to the grid at the end of the path, the global pheromone of the item attribute map is updated to obtain the pheromone of each grid, so as to facilitate the subsequent determination of the recommended items according to the pheromone value of the grid.
[0071] In operation S250, when the loop round meets the preset conditions, based on the probability that the items represented by the grids in the m paths corresponding to the m movable objects match the target object, the items to be recommended are determined from the items represented by the grids in the m paths to recommend the items to the target object.
[0072] According to the embodiment of the present disclosure, when the cycle round does not meet the preset condition, the above operation S210 to operation S240 need to be repeatedly performed until the cycle round meets the preset condition. When the cycle round reaches the preset number of cycles, the item represented by the grid in the path taken by each of the m movable objects after the last cycle ends can be determined as the item to be recommended based on the probability of matching the item represented by the grid with the highest matching probability with the target object, so as to recommend the item to be recommended to the target object, so that the probability that the target object can accept the item to be recommended is greatly increased.
[0073] According to an embodiment of the present disclosure, when a cycle round does not meet a preset condition, in an item attribute map composed of item attribute information of multiple categories of items, multiple movable objects are released in turn in the starting grid, and for the current grid where each movable object is located, the next moving grid is determined according to the grid selection constraint, the heuristic function and the selection probability function, and the pheromone value of the next moving grid is updated to enhance the pheromone value on the grid, so that the subsequent movable objects can select the grid based on the enhanced pheromone value. When the movable objects all move from the starting grid to the path end grid, the pheromone value of each grid passed by the movable object in the item attribute map is updated, and then when all movable objects have reached their corresponding path end grids, the global pheromone update is performed on all grids in the item attribute map, so that Subsequent movable objects can ignore those unqualified traces with a high probability and improve their coverage efficiency to find the best items for the target object, so that when the cycle rounds meet the preset conditions, from the item attribute map after the end of the last cycle, according to the probability of matching the items represented by the grids in the m paths with the target object, the items represented by the grids with the largest matching probability are selected as the items to be recommended for recommendation to the target object, thereby realizing the rapid and effective determination of the target object's preferred items, thereby selecting the best items to be recommended to the target object from multiple categories of items, making the target object more receptive to the items to be recommended, improving the probability of successful recommendation to the target object, and reducing the cost of screening financial products that meet the target object. Further, targeted product recommendations can be made for different target objects to improve the success rate of item recommendations.
[0074] Figure 3 The flowchart of the method for determining the next moving grid corresponding to the movable object according to the present disclosure is schematically shown.
[0075] like Figure 3 As shown, the method for determining the next moving grid corresponding to the movable object in this embodiment includes operations S310 to S340.
[0076] According to the embodiments of the present disclosure, Figure 2 The operation S210 shown, for the kth movable object, based on the current grid where the kth movable object is located, according to the grid selection constraint condition, the heuristic function and the selection probability function, determines the next moving grid corresponding to the kth movable object, including:
[0077] In operation S310, based on a current grid where a k-th movable object is located, a candidate grid is determined from grids adjacent to the current grid where the k-th movable object is located according to a grid selection constraint condition.
[0078] According to the embodiments of the present disclosure, the grid selection constraint condition can be characterized as a condition for constraining the kth movable object to select an alternative grid from all adjacent grids, and the grid constraint condition can be generated according to the attribute information of the target object. For example, the attribute information of the target object includes: the target object's job, the target object's deposit in the financial institution, and the financial business handled by the target object in the financial institution in the past three years. According to the above attribute information of the target object, the grid constraint condition corresponding to the target object is generated.
[0079] For example, the grid constraint condition of the target object may be to select a product that allows installment payments for credit cards and has a credit card limit of 50,000 yuan.
[0080] According to an embodiment of the present disclosure, the candidate grids may be characterized as a plurality of grids to be moved that can be selected by the kth movable object in the current grid from grids adjacent to the current grid.
[0081] For example, the kth movable object is at the (3, 3) grid. According to the grid constraints, the (2, 3) grid, the (3, 4) grid and the (4, 3) grid are determined as candidate grids from the adjacent grids. The kth movable object at the (3, 3) grid can select another grid from the (2, 3) grid, the (3, 4) grid and the (4, 3) grid as the next moving grid.
[0082] In operation S320, for each candidate grid, a heuristic function is used to calculate a heuristic value corresponding to the candidate grid according to the difference in revenue between the items represented by the candidate grid and the current grid.
[0083] According to an embodiment of the present disclosure, the heuristic function may be as shown in the following formula (1).
[0084] (1);
[0085] Among them, i can be represented as the current grid where the k-th movable object is located, and j can be represented as the candidate grid to be selected by the k-th movable object. It can be represented as the heuristic function of the path of the kth movable object between the i-th grid and the j-th grid, It can be represented as the difference in benefits between the items represented by the alternative grid and the current grid, so as to prompt the kth movable object to select a grid with higher benefits; It can be represented as a safety factor to encourage the kth movable grid to select a grid that is feasible for itself; It can be represented as the difference in benefits between the items represented by the candidate grid and the path end grid, so as to encourage the kth movable object to choose a grid closer to the path end grid, w 1It can be represented as the importance parameter of the difference in revenue between the items represented by the alternative grid and the current grid, w 2 It can be characterized as the importance parameter of the safety factor, w 3 The importance parameter can be represented as the profit difference between the items represented by the starting grid and the path end grid.
[0086] According to an embodiment of the present disclosure, the profit difference between the items represented by the alternative grid and the current grid is It can be obtained according to the formula (2) shown below.
[0087] (2);
[0088] in, It can be represented as the difference in revenue between the items represented by the alternative grid and the current grid. t can be represented as the alternative grid, o can be represented as the current grid, and x t It can be expressed as the horizontal coordinate of the candidate grid in the item attribute map, y t It can be expressed as the vertical coordinate of the candidate grid in the item attribute map, z t It can be expressed as the vertical coordinate of the candidate grid in the item attribute map, x o It can be expressed as the horizontal coordinate of the current grid in the item attribute map, y o It can be expressed as the vertical coordinate of the current grid in the item attribute map, z o It can be expressed as the vertical coordinate of the current grid in the item attribute map. can be expressed as the number of candidate grids, It can be expressed as the weight parameter of the μth candidate grid, n o It can be expressed as the weight parameter of the current grid.
[0089] According to the embodiments of the present disclosure, the safety factor The number of candidate grids that the kth movable object can select in the current grid and the number of grids that the kth movable object cannot select in the current grid can be calculated according to formula (3). Formula (3) is as follows.
[0090] (3);
[0091] in, It can be represented as the safety factor of the kth movable object between the ith grid and the jth grid, m can be represented as the number of alternative grids that the kth movable object can choose in the case of the current grid, and m' can be represented as the number of grids that the kth movable object cannot choose in the case of the current grid, that is, m+m' can be represented as all grids adjacent to the current grid where the kth movable object is located.
[0092] According to an embodiment of the present disclosure, the profit difference between the items represented by the alternative grid and the path end grid is It can be obtained as shown in formula (4).
[0093] (4);
[0094] in, It can be represented as the difference in benefits between the items represented by the starting grid and the end grid of the path of the kth movable object, t can be represented as the alternative grid, d can be represented as the end grid of the path, and x d It can be expressed as the horizontal coordinate of the path end grid in the item attribute map, y d It can be expressed as the vertical coordinate of the path end grid in the item attribute map, z d It can be expressed as the vertical coordinate of the path end grid in the item attribute map, x t It can be expressed as the horizontal coordinate of the candidate grid in the item attribute map, y t It can be expressed as the vertical coordinate of the candidate grid in the item attribute map, z t It can be expressed as the vertical coordinate of the candidate grid in the item attribute map. can be expressed as the number of candidate grids, It can be expressed as the weight parameter of the μth candidate grid, n d Can be expressed as a weight parameter for the route endpoint raster.
[0095] According to an embodiment of the present disclosure, through the above-mentioned heuristic function, the heuristic value corresponding to each alternative grid is calculated according to the profit difference between the item represented by the current grid of the kth movable object and the item represented by each alternative grid. The heuristic value can be represented as a reference basis for helping the movable object select the next moving grid from multiple alternative grids.
[0096] In operation S330, a selection probability function is used to calculate a selection probability corresponding to the candidate grid according to the pheromone value, the benefit difference value, and the heuristic value of the candidate grid.
[0097] According to an embodiment of the present disclosure, the selection probability can be calculated based on the heuristic value of the path between the i-th grid and the j-th grid of the movable object, that is, the heuristic value between the current grid where the k-th movable grid is located and the candidate grid, the difference in benefits between the items represented by the current grid and the candidate grid of the movable object, and the pheromone value of the candidate grid. The selection probability function can be shown in the following formula (5).
[0098] (5);
[0099] in, It can be represented as the selection probability of the k'th movable object in the current i'th grid from the j'th grid in the candidate grids, It can be represented as the pheromone value of the candidate grid, It can be represented as the heuristic value of the path between the i'th starting grid and the j'th path end grid of the k'th movable object. It can be represented as the profit difference between the items represented by the current i'th grid and the j'th grid in the alternative grids of the k'th movable object.
[0100] According to an embodiment of the present disclosure, the selection probabilities of multiple candidate grids are calculated one by one to obtain the selection probabilities corresponding to each candidate grid, so as to select the next moving grid of the movable object according to the selection probability corresponding to each candidate grid.
[0101] In operation S340, a next moving grid of the k-th movable object is determined from the candidate grids based on a selection probability corresponding to each candidate grid.
[0102] According to an embodiment of the present disclosure, based on the selection probability corresponding to each candidate grid, the candidate grid with the highest selection probability may be determined as the next moving grid of the kth movable object.
[0103] According to an embodiment of the present disclosure, through grid selection constraints, multiple candidate grids are determined from grids adjacent to the current grid where the kth movable object is located, and then a heuristic function is used to calculate the difference in benefits between the items represented by the candidate grid and the current grid, and the heuristic value corresponding to each candidate grid is calculated, so that the heuristic value, pheromone value and benefit difference corresponding to each candidate grid are brought into the selection probability function for calculation to obtain the selection probability corresponding to each candidate grid, and then based on the selection probability corresponding to each candidate grid, the candidate grid with the largest selection probability is determined as the next moving grid, thereby realizing the planning of the moving path of the movable object in the item attribute map, and the movable object selects the grid with the largest selection probability before moving, so that the movable object can move to the grid with higher benefits during the movement, thereby improving the success rate of the subsequently selected items to be recommended.
[0104] According to the embodiments of the present disclosure, Figure 2 The operation S220 shown, updating the pheromone value of the next moving grid, includes: calculating a first pheromone update value corresponding to the next moving grid according to the current pheromone value and the attenuation coefficient of the next moving grid; and updating the pheromone value of the next moving grid using the first pheromone update value.
[0105] According to an embodiment of the present disclosure, the first pheromone update value can be calculated according to the current pheromone value of the next moving grid and the attenuation coefficient according to formula (6), and formula (6) is as follows.
[0106] (6);
[0107] in, It can be represented as the first pheromone update value of the next moving grid, It can be represented as the current pheromone value of the next moving grid, It can be characterized as an attenuation coefficient. The setting range of the attenuation coefficient is 0-1, and the attenuation coefficient can be set to 0.7.
[0108] According to an embodiment of the present disclosure, the current pheromone of the next moving grid is updated according to the calculated first pheromone update value, so that the pheromone of the next moving grid is changed to the first pheromone update value.
[0109] According to an embodiment of the present disclosure, when determining the next moving grid of a movable object, the pheromone value of the next moving grid can be updated according to the current pheromone value and attenuation coefficient of the next moving grid, so that after the movable object selects the next moving grid, the pheromone value of the next moving grid can be enhanced so that the subsequent movable object can move based on the updated pheromone value.
[0110] According to the embodiments of the present disclosure, Figure 2 The operation S230 shown, when the k-th movable object reaches the path end grid, updates the pheromone value of each grid in the path corresponding to the k-th movable object, including: for each grid in the path corresponding to the k-th movable object, according to the current pheromone value of the grid, the path corresponding to the k-th movable object and the pheromone update coefficient, calculating the second pheromone update value corresponding to the grid; using the second pheromone update value, updating the pheromone value of the grid.
[0111] According to an embodiment of the present disclosure, the second pheromone update value may be calculated according to formula (7), which is shown below.
[0112] (7);
[0113] in, It can be represented as the second pheromone update value, can be represented as the pheromone update coefficient corresponding to the kth movable object, and K can be represented as the update parameter, It can be characterized as the path length corresponding to the kth movable object.
[0114] According to an embodiment of the present disclosure, the second pheromone update values of all grids in the moving path of the kth movable object are obtained by calculation, so as to provide a reference for the moving path of the subsequent movable object.
[0115] According to an embodiment of the present disclosure, the original pheromone value in the grid is replaced according to the calculated second pheromone update value of each grid in the path corresponding to the k-th movable object, so as to obtain a new pheromone value of the grid on the moving path of the k-th movable object after the update, that is, the pheromone value of the grid after the update is the corresponding second pheromone update value.
[0116] According to an embodiment of the present disclosure, by updating the pheromone value of each grid in the path corresponding to the kth movable object, the pheromone value of each grid of the optimal path corresponding to the kth movable object is increased, thereby enhancing the pheromone concentration of each grid in the optimal path, so that the selection probability of each grid in the item attribute map by the subsequent movable object changes, and preparations are made for the path determination of the movable object. In the process of path determination of the movable object, the pheromone left by the previous movable object can be accepted, so that the current movable object can understand whether the grid in the item attribute map is a path grid that meets the optimization target, thereby obtaining a planning path that better meets the target.
[0117] According to an embodiment of the present disclosure, when the kth movable object reaches the end grid of the path, the pheromone of the grid in the path taken by the kth movable object is updated to prepare for the search and movement of the next movable object, so that the next movable object can search for a better path based on the pheromone value left by the previous movable object.
[0118] According to the embodiments of the present disclosure, Figure 2 The operation S240 shown, when the m movable objects have all reached the path end grid corresponding to each movable object, performs a global pheromone update on the grids in the item attribute map, including: for each grid in the item attribute map, based on the total amount of pheromone released by the movable object in one cycle and the path corresponding to each movable object, calculate the legacy pheromone value left on the grid by each movable object in the cycle; and update the pheromone value of the grid based on the legacy pheromone value.
[0119] According to an embodiment of the present disclosure, the legacy pheromone value may be characterized as the pheromone value left behind when the kth movable object passes through a certain grid during one cycle.
[0120] According to an embodiment of the present disclosure, in one cycle, when all movable objects have moved to the path end grid, the pheromone value of each grid in the item attribute map is updated according to the legacy pheromone value left by each movable object passing through the grid, so that the pheromone value of each grid in the item attribute map can be updated accordingly based on the number of times the movable object has passed through.
[0121] According to an embodiment of the present disclosure, in one cycle, when all movable objects have reached the corresponding path end grid, the pheromone value of each grid in the item attribute map can be updated based on the legacy pheromone value determined by the path taken by each movable object, so that in subsequent cycles, the movable objects can ignore the grids with low pheromone values and select the grids with high pheromone values, thereby making a better selection of the search path in the item attribute map, so as to determine the items to be recommended based on the items represented by the grids in the obtained better path.
[0122] According to an embodiment of the present disclosure, the pheromone value of the grid is updated according to the legacy pheromone value, including: calculating the pheromone increment corresponding to the grid according to the number of movable objects that pass through the grid in a cycle among m movable objects and the legacy pheromone value; calculating the third pheromone update value corresponding to the grid according to the pheromone increment, the pheromone evaporation rate and the current pheromone value of the grid; and updating the pheromone value of the grid using the third pheromone update value.
[0123] According to an embodiment of the present disclosure, the pheromone increment corresponding to the grid can be calculated according to formula (8), and formula (8) is as follows.
[0124] (8);
[0125] in, It can be represented as the pheromone value left in the path of the kth movable object moving from the ith grid to the jth grid, Q 1 It can be characterized as the total amount of pheromones released by a movable object in one cycle, L k It can be characterized as the total length of the path corresponding to the kth movable object.
[0126] According to an embodiment of the present disclosure, when the kth movable object passes through the ith grid and the jth grid, the remaining pheromone value can be calculated according to Q 1 The total length of the path searched by the k-th movable object is determined; when the k-th movable object does not pass through the ith grid and the j-th grid, the remaining pheromone value is 0.
[0127] According to an embodiment of the present disclosure, the pheromone increment can be calculated according to formula (9), which is shown as follows.
[0128] (9);
[0129] in, It can be expressed as the legacy pheromone value of the kth movable object.
[0130] According to the embodiment of the present disclosure, after a cycle is completed, for a certain grid in the item attribute map, the remaining pheromone value can be used to calculate the value of the item attribute. And the number of movable objects passing through the grid, that is, according to the above formula (9), the pheromone increment for the grid is calculated.
[0131] According to an embodiment of the present disclosure, the third pheromone update value corresponding to the grid can be calculated according to formula (10), and formula (10) is as follows.
[0132] (10);
[0133] in, It can be represented as the third pheromone update value, It can be characterized as the pheromone evaporation rate, It can be represented as the current pheromone value of the grid.
[0134] According to an embodiment of the present disclosure, after the third pheromone update value of each grid in the item attribute map is calculated by the above formulas (8) to (10), the pheromone value of the corresponding grid is updated using the third pheromone update value.
[0135] According to an embodiment of the present disclosure, the pheromone value of each grid in the item attribute map is updated based on the number of movable objects passing through the grids in this cycle and combined with the legacy pheromone value determined by the path taken by each movable object. That is, according to the situation of the grids passed by the movable objects in this cycle, the pheromone values of the grids in the item attribute map that the movable objects have passed through many times and have passed through a better path are enhanced, so that in subsequent cycles, the movable objects can ignore the grids with low pheromone values and select the grids with high pheromone values.
[0136] According to an embodiment of the present disclosure, based on the revenue of the items represented by the grids in m paths corresponding to m movable objects, the items to be recommended are determined from the items represented by the grids in the m paths, including: by comparing the probability of matching the items represented by the grids at the end points of the m paths with the target objects, the path with the highest probability is determined as the optimal path; and the items represented by the grids at the end points of the optimal path are determined as the items to be recommended.
[0137] According to an embodiment of the present disclosure, the probability that the item represented by the path end grid matches the target object can be represented by the profit of the item represented by the path end grid, that is, the higher the profit of the item guaranteed by the path end grid, the higher the probability that the item represented by the path end grid matches the target object.
[0138] According to the embodiment of the present disclosure, after the last cycle is finished, the path with the highest probability can be determined as the best path according to the probability of matching the items represented by the path end grids of the m movable objects in this cycle with the target object, so that the items represented by the path end grids of the best path can be determined as the items to be recommended. This is equivalent to determining the path with the highest profit as the best path according to the profits of the items represented by the path end grids of the m paths.
[0139] For example, if the item represented by the path end grid in the determined optimal path is a credit card that can be paid in 12 installments, then the credit card that can be paid in 12 installments is confirmed as the item to be recommended, and the credit card that can be paid in 12 installments is recommended to the target object.
[0140] According to the embodiments of the present disclosure, after the cycle ends, the item with the greatest benefit among the items represented by the path end grids of the m paths taken by the m movable objects in this cycle can be determined as the item to be recommended, so as to recommend the relatively high-profit item to the target object, thereby making the target object have a higher degree of acceptance or purchase success rate for the recommended item, thereby improving the recommendation efficiency and reducing the cost of screening financial products that meet the customer groups. Furthermore, targeted product recommendations can be made for different customer groups, thereby preparing for the sales of the recommended products and improving the recommendation success rate.
[0141] Figure 4 A schematic diagram of an item attribute map according to an embodiment of the present disclosure is schematically shown.
[0142] like Figure 4 As shown, Figure 4 An item attribute map constructed according to item attribute information is shown, wherein each grid can represent items of different categories.
[0143] According to an embodiment of the present disclosure, each grid in the item attribute map can be numbered, and an item number table can be set up, which can include items and numbers corresponding to the items, wherein the number of the grid is consistent with the number of the item represented by the grid, so that the item represented by the grid can be determined directly from the item number table based on the grid number. Figure 4 The grid numbered 12135 can be set as the starting grid in the item attribute map.
[0144] Figure 4 The path shown in is a path taken by the movable object obtained by performing the above operation S210, and grid B is the path end grid of the path. Grid B is determined according to the path end grid constraint condition, that is, it can be determined according to the path end grid constraint condition that the movable object cannot move.
[0145] According to an embodiment of the present disclosure, in Figure 4 When the path shown is the optimal path, the items represented by grid B are the items to be recommended.
[0146] Figure 5 A schematic diagram schematically shows an item to be recommended with the highest selection probability determined based on the item recommendation method according to an embodiment of the present disclosure.
[0147] like Figure 5 As shown, Figure 5 The grid numbered 12135 where the black dot is located is the starting grid in the item attribute map. Figure 5The path shown in is the path with the highest probability that the item represented by the grid matches the target object among the m paths corresponding to the m movable objects obtained by executing the above operations S210 to S250. The item represented by the grid numbered 73725 is the item to be recommended, so that the target object has the highest probability of selecting and accepting the recommended item.
[0148] Based on the above-mentioned item recommendation method, the present disclosure also provides an item recommendation device. Figure 6 The device is described in detail.
[0149] Figure 6 The structural block diagram of the item recommendation device according to an embodiment of the present disclosure is schematically shown.
[0150] like Figure 6 As shown, the data processing device 600 of this embodiment includes a first determining module 610 , a first updating module 620 , a second updating module 630 , a third updating module 640 and a second determining module 660 .
[0151] The first determination module 610 is used to release m movable objects in sequence at the starting grid of the item attribute map when the cycle round does not meet the preset conditions, and for the kth movable object, based on the current grid where the kth movable object is located, according to the grid selection constraint, the heuristic function and the selection probability function, determine the next moving grid corresponding to the k movable objects, wherein the item attribute map is constructed based on the item attribute information of each of multiple categories of items, and one grid in the item attribute map represents one type of item; m is an integer greater than or equal to 1, k is an integer greater than or equal to 1 and less than or equal to m; the grid selection constraint is determined based on the attribute information of the target object. In one embodiment, the first determination module 610 can be used to perform the operation S210 described above, which will not be repeated here.
[0152] The first updating module 620 is used to update the pheromone value of the next moving grid, wherein the pheromone value is used to characterize the probability of the grid being selected. In one embodiment, the first updating module 620 can be used to perform the operation S220 described above, which will not be described in detail here.
[0153] The second updating module 630 is used to update the pheromone value of each grid in the path corresponding to the kth movable object when the kth movable object reaches the path end grid, wherein the path end grid is determined according to the path end grid constraint condition, and the path end grid constraint condition is determined according to the attribute information of the target object. In one embodiment, the second updating module 630 can be used to perform the operation S230 described above, which will not be repeated here.
[0154] The third updating module 640 is used to perform global pheromone update on the grids in the item attribute map when the m movable objects all reach the path end grid corresponding to each movable object. In one embodiment, the third updating module 640 can be used to perform the operation S240 described above, which will not be described in detail here.
[0155] The second determination module 660 is used to determine the recommended items from the items represented by the grids in the m paths corresponding to the m movable objects based on the probability of matching the target object when the cycle round meets the preset conditions, so as to recommend the recommended items to the target object. In one embodiment, the second determination module 660 can be used to perform the operation S260 described above, which will not be repeated here.
[0156] According to an embodiment of the present disclosure, the first determination module 610 includes: a first selection submodule, a first calculation submodule, a second calculation submodule and a first determination submodule.
[0157] The first selection submodule is used to determine a candidate grid from grids adjacent to the current grid where the kth movable object is located based on the current grid where the kth movable object is located and according to the grid selection constraint condition.
[0158] The first calculation submodule is used to calculate, for each candidate grid, a heuristic value corresponding to the candidate grid by using a heuristic function according to the difference in revenue between the items represented by the candidate grid and the current grid.
[0159] The second calculation submodule is used to calculate the selection probability corresponding to the candidate grid according to the pheromone value, benefit difference and heuristic value of the candidate grid by using the selection probability function.
[0160] The first determination submodule is used to determine the next moving grid of the kth movable object from the candidate grids based on the selection probability corresponding to each candidate grid.
[0161] According to an embodiment of the present disclosure, the first updating module 620 includes: a third calculating submodule and a first updating submodule.
[0162] The third calculation submodule is used to calculate the first pheromone update value corresponding to the next moving grid according to the current pheromone value and the attenuation coefficient of the next moving grid.
[0163] The first updating submodule is used to update the pheromone value of the next moving grid by using the first pheromone update value.
[0164] According to an embodiment of the present disclosure, the second updating module 630 includes: a fourth calculation submodule and a second updating submodule.
[0165] The fourth calculation submodule is used to calculate, for each grid in the path corresponding to the kth movable object, a second pheromone update value corresponding to the grid according to the current pheromone value of the grid, the path corresponding to the kth movable object and the pheromone update coefficient.
[0166] The second updating submodule is used to update the pheromone value of the grid using the second pheromone update value.
[0167] According to an embodiment of the present disclosure, the third updating module 640 includes: a fifth calculating submodule and a third updating submodule.
[0168] The fifth calculation submodule is used to calculate, for each grid in the item attribute map, the residual pheromone value left on the grid by each movable object in the cycle according to the total amount of pheromone released by the movable object in one cycle and the path corresponding to each movable object.
[0169] The third updating submodule is used to update the pheromone value of the grid according to the remaining pheromone value.
[0170] According to an embodiment of the present disclosure, the third updating submodule includes: a first calculating unit, a second calculating unit and a first updating unit.
[0171] The first calculation unit is used to calculate the pheromone increment corresponding to the grid according to the number of movable objects passing through the grid in the cycle and the remaining pheromone value among the m movable objects.
[0172] The second determining unit is used to calculate and obtain a third pheromone update value corresponding to the grid according to the pheromone increment, the pheromone evaporation rate and the current pheromone value of the grid.
[0173] The first parsing unit is used to update the pheromone value of the grid by using the third pheromone update value.
[0174] According to an embodiment of the present disclosure, the second determination module 660 includes: a second determination submodule and a third determination submodule.
[0175] The second determination submodule is used to determine the path with the highest probability as the best path by comparing the probability of matching the items represented by the path end grids of the m paths with the target object.
[0176] The third determination submodule is used to determine the items represented by the path end grid of the optimal path as the items to be recommended.
[0177] According to an embodiment of the present disclosure, any multiple modules of the first determination module 610, the first update module 620, the second update module 630, the third update module 640, and the second determination module 660 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determination module 610, the first update module 620, the second update module 630, the third update module 640, and the second determination module 660 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the first determination module 610, the first update module 620, the second update module 630, the third update module 640 and the second determination module 660 may be at least partially implemented as a computer program module, which may perform a corresponding function when executed.
[0178] Figure 7 A block diagram of an electronic device suitable for implementing an item recommendation method according to an embodiment of the present disclosure is schematically shown.
[0179] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 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 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0180] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0181] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 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 portion 708 as needed.
[0182] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0183] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0184] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.
[0185] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0186] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0187] 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 processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0188] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0189] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. 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.
[0190] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0191] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An item recommendation method, characterized in that: The method comprises repeatedly performing the following operations until a preset condition is met: If the cycle does not meet the preset conditions, m movable objects are released in sequence at the starting grid of the item attribute map, and for the kth movable object, based on the current grid where the kth movable object is located, according to the grid selection constraint, the heuristic function and the selection probability function, the next movable grid corresponding to the kth movable object is determined, wherein the item attribute map is constructed according to the item attribute information of each of multiple categories of items, and one grid in the item attribute map represents one type of item; m is an integer greater than or equal to 1, and k is an integer greater than or equal to 1 and less than or equal to m; the grid selection constraint is determined according to the attribute information of the target object; Updating the pheromone value of the next moving grid, wherein the pheromone value is used to represent the probability of the grid being selected; When the k-th movable object reaches a path end grid, updating the pheromone value of each grid in the path corresponding to the k-th movable object, wherein the path end grid is determined according to a path end grid constraint condition, and the path end grid constraint condition is determined according to the attribute information of the target object; When the m movable objects all reach the path end grid corresponding to each movable object, performing global pheromone update on the grid in the item attribute map; In the case where the cycle rounds satisfy the preset conditions, based on the probability that the items represented by the grids in the m paths corresponding to the m movable objects match the target object, determine the items to be recommended from the items represented by the grids in the m paths to recommend the items to the target object.
2. The method according to claim 1, characterized in that The method of determining, for the kth movable object, a next movable grid corresponding to the kth movable object based on the current grid where the kth movable object is located and according to a grid selection constraint condition, a heuristic function and a selection probability function, comprises: Based on the current grid where the kth movable object is located, determining a candidate grid from grids adjacent to the current grid where the kth movable object is located according to the grid selection constraint condition; For each of the candidate grids, using the heuristic function, according to the difference in revenue between the items represented by the candidate grid and the current grid, a heuristic value corresponding to the candidate grid is calculated; Using the selection probability function, according to the pheromone value of the candidate grid, the benefit difference value and the heuristic value, a selection probability corresponding to the candidate grid is calculated; The next moving grid of the kth movable object is determined from the candidate grids based on the selection probability corresponding to each candidate grid.
3. The method according to claim 1, characterized in that The updating of the pheromone value of the next moving grid includes: Calculating a first pheromone update value corresponding to the next moving grid according to the current pheromone value and the attenuation coefficient of the next moving grid; and The pheromone value of the next moving grid is updated using the first pheromone update value.
4. The method according to claim 1, characterized in that: When the k-th movable object reaches the path end grid, updating the pheromone value of each grid in the path corresponding to the k-th movable object comprises: For each grid in the path corresponding to the k-th movable object, a second pheromone update value corresponding to the grid is calculated according to the current pheromone value of the grid, the path corresponding to the k-th movable object and the pheromone update coefficient; and The pheromone value of the grid is updated using the second pheromone update value.
5. The method according to claim 1, characterized in that When the m movable objects all reach the path end grid corresponding to each movable object, performing global pheromone updating on the grid in the item attribute map includes: For each grid in the item attribute map, according to the total amount of pheromones released by the movable object in one cycle and the path corresponding to each movable object, the residual pheromone value left on the grid by each movable object in the cycle is calculated; and The pheromone value of the grid is updated according to the remaining pheromone value.
6. The method according to claim 5, characterized in that The updating of the pheromone value of the grid according to the legacy pheromone value comprises: Calculate the pheromone increment corresponding to the grid according to the number of movable objects among the m movable objects that pass through the grid in the cycle and the remaining pheromone value; Calculating a third pheromone update value corresponding to the grid according to the pheromone increment, the pheromone evaporation rate and the current pheromone value of the grid; and The pheromone value of the grid is updated using the third pheromone update value.
7. The method according to claim 1, characterized in that The determining the to-be-recommended items from the items represented by the grids in the m paths corresponding to the m movable objects based on the revenues of the items represented by the grids in the m paths includes: By comparing the probability of the items represented by the path end grids of the m paths matching the target object, the path with the highest probability is determined as the optimal path; and The item represented by the path end grid of the optimal path is determined as the item to be recommended.
8. An item recommendation device, characterized in that: The device comprises repeatedly performing the following operations until a preset condition is met: A first determination module is used for, when the cycle round does not meet the preset condition, releasing m movable objects in sequence at the starting grid of the item attribute map, and for the kth movable object, based on the current grid where the kth movable object is located, determining the next movable grid corresponding to the kth movable object according to the grid selection constraint, the heuristic function and the selection probability function, wherein the item attribute map is constructed according to the item attribute information of each of multiple categories of items, and one grid in the item attribute map represents one type of item; m is an integer greater than or equal to 1, and k is an integer greater than or equal to 1 and less than or equal to m; and the grid selection constraint is determined according to the attribute information of the target object; A first updating module, used for updating the pheromone value of the next moving grid, wherein the pheromone value is used to represent the probability of the grid being selected; a second updating module, configured to update the pheromone value of each grid in the path corresponding to the k-th movable object when the k-th movable object reaches the path end grid, wherein the path end grid is determined according to the path end grid constraint condition, and the path end grid constraint condition is determined according to the attribute information of the target object; A third updating module is used to perform global pheromone update on the grids in the item attribute map when the m movable objects all reach the path end grid corresponding to each movable object; A second determination module is used to determine the items to be recommended from the items represented by the grids in the m paths corresponding to the m movable objects based on the probability that the items represented by the grids in the m paths correspond to the m movable objects match the target object when the cycle round satisfies the preset condition, so as to recommend the items to be recommended to the target object.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
