A business execution method, device, storage medium and equipment

Through the decision tree, users are divided layer by layer, and business strategies are determined based on characteristics and identifiers. This solves the problem that unified strategies cannot adapt to the needs of different users, and achieves personalization and improved effect of business execution.

CN115048386BActive Publication Date: 2024-09-13ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210752054.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-09-13
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

In the existing business execution methods, unified policies cannot flexibly adapt to the needs of different users, resulting in poor business execution effects, and the label-based diversion logic is simple and unsuitable for complex business logic.

Method used

Using the decision tree method, users are diverted layer by layer through rule nodes and diversion nodes, and appropriate business strategies are determined based on user characteristic data and identification to achieve personalized service execution for users.

Benefits of technology

It achieves flexible determination of strategies based on user characteristics and needs, improves the rationality and effect of business execution, is suitable for complex business logic scenarios, and adjusts diversion rules and intervals through feedback data to continuously optimize strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115048386B
    Figure CN115048386B
Patent Text Reader

Abstract

This specification discloses a service execution method, device, storage medium and equipment, which determine the decision tree and each user matched by the decision request, and divert each user in the following manner for each layer of the decision tree starting from the root node: for the rule node, according to the diversion rule of the rule node and the characteristic data of the user distributed by the parent node of the rule node, determine the user matched by the rule node among the users distributed by the parent node; for the diversion node, according to the diversion interval of the diversion node and the identifier of the user distributed by the parent node of the diversion node, determine the user distributed by the diversion node among the users distributed by the parent node of the diversion node, until all users are diverted to the leaf node, and for each leaf node, according to the policy of the service to which the leaf node belongs, execute the service of the user distributed by the leaf node. Users can be diverted layer by layer based on the rules and diversion intervals of the decision tree nodes, and different policies corresponding to different users can be reasonably determined based on the diversion results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a service execution method, device, storage medium and equipment. Background Art

[0002] At present, when executing services, the service platform usually adopts a unified strategy to execute services for different users. However, the determination of the unified strategy lacks reliable basis and is usually determined manually based on experience.

[0003] It can be seen that executing services based on a unified strategy is not flexible enough and does not meet user needs: different users have different needs when executing the same service, and a unified strategy may not be suitable for all users. Executing services based on a unified strategy is not reasonable and can easily lead to poor service execution results. Summary of the invention

[0004] The present specification provides a service execution method and device to implement user diversion based on a decision tree, and determine appropriate strategies for different users based on the diversion results to execute services based on the strategies.

[0005] This manual adopts the following technical solutions:

[0006] The present specification provides a service execution method, wherein a decision tree for determining a service execution strategy includes at least a rule node, a shunt node, and a leaf node, wherein the child nodes of the shunt node are leaf nodes or rule nodes, and different leaf nodes correspond to different service strategies, and the method includes:

[0007] Receive a decision request, and determine a decision tree matching the decision request and each user corresponding to the decision request;

[0008] Starting from the root node of the decision tree, for each layer of the decision tree, the following method is used to divert the users:

[0009] For the rule node of this layer, according to the diversion rule of the rule node and the characteristic data of the user distributed by the parent node of the rule node, the user matched by the rule node is determined among the users distributed by the parent node; for the diversion node of this layer, according to the diversion interval corresponding to the diversion node and the identifier of the user distributed by the parent node of the diversion node, the user distributed by the diversion node is determined among the users distributed by the parent node of the diversion node;

[0010] Until all users corresponding to the decision request are diverted to the leaf nodes of the decision tree, for each leaf node, the business of the user assigned to the leaf node is executed according to the strategy of the business to which the leaf node belongs.

[0011] Optionally, the root node of each decision tree stores at least a business type, where the business type is a business type of a business for which a decision is made based on the decision tree;

[0012] Receiving a decision request and determining a decision tree matching the decision request and each user corresponding to the decision request specifically includes:

[0013] receiving a decision request, wherein the decision request carries at least a service type of the service for which a decision is requested;

[0014] According to the business type carried in the decision request and the business type stored in the root node of each decision tree, the decision tree matching the decision request is determined; and the users of the business currently executing the decision request are determined as the users corresponding to the decision request.

[0015] Optionally, the diversion rule consists of several conditions;

[0016] According to the diversion rule of the rule node and the characteristic data of the users distributed by the parent node of the rule node, determining the users matched by the rule node from the users distributed by the parent node specifically includes:

[0017] Determine the conditions constituting the diversion rule of the rule node and the features included in the conditions;

[0018] For each user assigned to the parent node of the rule node, determine the feature value of each feature of the user;

[0019] Determine the conditions that the user matches based on the features included in each condition and the feature values ​​of each feature of the user;

[0020] Determine the user matched by the rule node according to the conditions matched by the user and the logical calculation relationship of the conditions in the rule node;

[0021] Wherein, the characteristics at least include user behavior characteristics.

[0022] Optionally, for each condition, the condition is composed of a preset right value, a comparison operator, and a characteristic as a left value;

[0023] According to the features included in each condition and the feature values ​​of each feature of the user, the conditions that the user matches are determined, specifically including:

[0024] For each condition, when it is determined that the left value of the condition and the right value of the condition satisfy the comparison relationship corresponding to the comparison operator of the condition based on the feature value of the feature contained in the condition, the condition is determined to be a condition that matches the user; otherwise, it is determined that the user does not match the condition.

[0025] Optionally, according to the diversion interval corresponding to the diversion node and the identifier of the user allocated to the parent node of the diversion node, determining the user allocated to the diversion node from the users allocated to the parent node of the diversion node specifically includes:

[0026] For each user assigned to the parent node of the shunt node, determine the hash value corresponding to the user through a hash function according to the identifier of the user and the layer where the shunt node is located;

[0027] Taking a modulus of the hash value according to a preset value, to obtain a diversion value corresponding to the user;

[0028] A preset diversion interval corresponding to the diversion node is determined, and users whose diversion values ​​fall within the diversion interval among the users diverted by the parent node of the diversion node are used as users diverted by the diversion node.

[0029] Optionally, the sum of the interval ranges of the diversion intervals of each diversion node that is a child node of the same parent node is the same as the preset value; the user identification includes at least one of the user's identity identification, web browsing data, and an operation identification of the operation performed by the user when executing the current business.

[0030] Optionally, for each leaf node, according to the policy of the service to which the leaf node belongs, executing the service of the user allocated to the leaf node specifically includes:

[0031] For each leaf node, execute the user's service assigned to the leaf node according to the policy of the service to which the leaf node belongs;

[0032] Obtain feedback data from users of each leaf node after executing the corresponding strategy;

[0033] According to the obtained feedback data, adjusting the diversion intervals corresponding to at least some of the diversion nodes in the decision tree, and / or the diversion rules corresponding to at least some of the rule nodes;

[0034] Continue to receive decision requests, and based on the decision tree after adjusting the diversion interval and / or diversion rules, continue to divert users corresponding to the decision requests matched by the decision tree, and execute services according to the policies of the services to which the leaf nodes belong, until the stop conditions are met.

[0035] The present specification provides a service execution device, wherein a decision tree for determining a service execution strategy includes at least a rule node, a shunt node, and a leaf node, wherein the child nodes of the shunt node are leaf nodes or rule nodes, and different leaf nodes correspond to different service strategies, and the device includes:

[0036] A matching module, used to receive a decision request, determine a decision tree that matches the decision request and each user corresponding to the decision request;

[0037] A traversal module is used to start from the root node of the decision tree and, for each layer of the decision tree, sequentially divert the users in the following manner: for the rule node of the layer, according to the diversion rule of the rule node and the characteristic data of the user diverted by the parent node of the rule node, determine the user matched by the rule node among the users diverted by the parent node; for the diversion node of the layer, according to the diversion interval corresponding to the diversion node and the identifier of the user diverted by the parent node of the diversion node, determine the user diverted by the diversion node among the users diverted by the parent node of the diversion node;

[0038] The service execution module is used to divert all users corresponding to the decision request to the leaf nodes of the decision tree, and for each leaf node, execute the service of the user assigned to the leaf node according to the policy of the service to which the leaf node belongs.

[0039] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned service execution method is implemented.

[0040] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned service execution method when executing the program.

[0041] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0042] In the above-mentioned business execution method, the decision tree and each user matched by the decision request are determined, and each layer of the decision tree starting from the root node is diverted in the following manner: for the rule node, the user matched by the rule node among the users distributed by the parent node is determined according to the diversion rule of the rule node and the characteristic data of the user distributed by the parent node of the rule node; for the diversion node, the user distributed by the diversion node among the users distributed by the parent node of the diversion node is determined according to the diversion interval of the diversion node and the identifier of the user distributed by the parent node of the diversion node, until all users are diverted to the leaf node, and for each leaf node, the business of the user distributed by the leaf node is executed according to the policy of the business to which the leaf node belongs.

[0043] It can be seen from the above content that the service execution method provided in this specification can divert users layer by layer based on the rules of decision tree nodes and diversion intervals, and reasonably determine different strategies corresponding to different users based on the diversion results. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The exemplary embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification.

[0045] In the figure:

[0046] Figure 1 A flowchart of a method for executing a service in this specification;

[0047] Figure 2 A schematic diagram of a process of traversing a decision tree provided in this specification;

[0048] Figure 3 A schematic diagram of a decision tree provided in this specification;

[0049] Figure 4 A schematic diagram of the corresponding relationship between the branches of a decision tree and the experiment provided in this specification;

[0050] Figure 5 A schematic diagram of a decision tree provided in this specification;

[0051] Figure 6 A schematic diagram of a system architecture corresponding to a service execution method provided in this specification;

[0052] Figure 7 A schematic diagram of a monitoring and evaluation module provided in this specification;

[0053] Figure 8 A schematic diagram of a service execution device provided in this specification;

[0054] Fig. 9 A schematic diagram of an electronic device provided in this specification. DETAILED DESCRIPTION

[0055] At present, when executing services, the service platform usually adopts a unified policy to execute services for different users. This method lacks a reliable basis for determining the unified policy, which is usually determined by humans based on experience, and it is easy for humans to make mistakes when specifying policies. Executing services based on a unified policy is not flexible enough and does not meet user needs: different users have different needs when executing the same service, and a unified policy may not be suitable for all users. Executing services based on a unified policy is not reasonable and can easily lead to poor service execution results.

[0056] For example, when the determined strategy is a risk prompt method for executing to users, the strategy may include voice prompts and graphic prompts. For visually impaired users, their needs are voice prompts. For hearing impaired users, their needs are graphic prompts. The difference in needs means that when two types of users execute services based on the same strategy, one user's service execution effect will always be unsatisfactory.

[0057] In order to solve the above problems, one method is to determine the same strategy for users with the same tag based on the user's tag (such as gender), and determine different strategies for users with different tags. However, the description of users by tags is relatively simple, and only the allocation of user strategies under simple logic can be achieved based on tags. It is not accurate enough to classify users to allocate different strategies, especially when determining strategies corresponding to services with complex business logic for users, users with the same tag may not be suitable for the same strategy. Therefore, the strategies for different users determined by this tag-based method are not reasonable enough, and for some users, the business execution effect is not good.

[0058] Another method is based on A / B experiment (i.e. comparative experiment). This method is based on user tags, and different users are assigned to perform different A / B experiments to determine the corresponding strategies for different users. Among them, users with the same tag are used to perform a comparative experiment. When performing the comparative experiment, by diverting users, the corresponding strategy can be determined for each user based on the diversion results. Different strategies can also be determined for different users corresponding to the same comparative experiment.

[0059] Specifically, the method based on comparative experiments is to compare the labels given to users so as to divert users with different labels to different comparative experiments, thereby realizing the definition of users by comparative experiments. Defined users are users that are suitable for the comparative experiment and match the strategy of the comparative experiment. For example, labels may include gender, age, whether they are mothers, whether they are elderly, whether they are young, etc. Different users can be assigned to different comparative experiments based on different labels. For example, for a comparative experiment to determine the color tone of a business interface for female applications, it is necessary to define female users based on labels. After defining female users based on labels, female users need to be randomly diverted to experimental group A and experimental group B of the comparative experiment. The strategies corresponding to experimental group A and experimental group B are different. For example, the strategy corresponding to experimental group A is to display a cold-toned business interface for users, and the strategy corresponding to experimental group B is to display a warm-toned business interface for users. After users are diverted to different experimental groups, services can be executed based on the strategies corresponding to different experimental groups.

[0060] In this way, users can be diverted to different experimental groups of different comparative experiments to determine corresponding strategies for different users. However, this method still relies on user tags, and the diversion of users to different comparative experiments based on tags is not flexible enough, and the diversion logic is simple, which is not suitable for comparative experiments corresponding to businesses with complex logic.

[0061] In addition, the business requirements of the business will change over time, and the experimental scenarios and experimental requirements of the comparative experiments corresponding to the business will also change accordingly. For complex experimental scenarios and experimental requirements, the method of defining users for comparative experiments based on labels is difficult to meet the experimental requirements. When the users defined for the comparative experiment are not reasonable, it is also difficult to reasonably divide the users for each experimental group of the comparative experiment, and the effect of executing the business based on the strategy determined by the diversion results of the comparative experiment will also be poor.

[0062] Among them, A / B experiment: that is, formulate multiple plans for the same goal, and randomly divert user traffic to different plans. An A / B experiment may include at least two experimental groups, one experimental group is based on a group of users, and the two experimental groups correspond to different users. Moreover, one experimental group corresponds to one plan, and the two experimental groups serve as control groups for each other. As in the above example, the cold-toned business interface is one plan, and the warm-toned business interface is another plan. Moreover, the plan corresponds to the strategy in this specification. Then a comparative experiment may include multiple experimental groups. For example, for a comparative experiment to determine the color of a button on a page, the comparative experiment may include three experimental groups: red button, black button, and white button. The users defined by the comparative experiment can be randomly diverted to three experimental groups.

[0063] In order to solve the above problems, this specification provides a business execution method (hereinafter referred to as the business execution method, and when the method is mentioned later, it only refers to the business execution method).

[0064] In this method, the decision tree may correspond to at least one comparative experiment. Through the service execution method, users are identified for the comparative experiment based on the decision tree and the users are diverted to different leaf nodes. Different leaf nodes correspond to different experimental groups and also to different strategies. The process of executing services based on strategies is also the process of conducting comparative experiments.

[0065] In this specification, the users are delineated to a comparative experiment based on the diversion rules of the rule nodes contained in the decision tree, and the diversion of different experimental groups in the same comparative experiment is achieved based on the diversion intervals of the diversion nodes of the decision tree.

[0066] Different rule nodes of the decision tree correspond to different diversion rules, which can be calculated by the rule engine. In addition, the rules can be flexibly modified and configured based on the rule engine according to business needs. The rule engine is a component embedded in the application that can separate the diversion rules from the application code, write diversion rules using predefined semantic modules, accept data input, interpret the rules, and make decisions and conclusions based on the rules.

[0067] In this specification, the diversion rules based on the decision tree and the characteristic data of the user can be used to delineate the users to different comparative experiments, and the diversion interval based on the decision tree and the user's identification can be used to divert the users to different experimental groups under a comparative experiment. After the decision tree diverts the users layer by layer and diverts the users to the leaf nodes of the decision tree, the corresponding policies for the users can be determined based on the leaf nodes. Compared with labels, the flexible diversion rules in the decision tree can realize the reasonable delineation of users matched with comparative experiments in complex experimental scenarios, so as to divert the delineated users to different experimental groups. The determination of different user policies is based on the complex diversion rules corresponding to the nodes at different layers of the decision tree and the user characteristic data as a reasonable basis, and the rules can be flexibly configured or adjusted based on business needs and experimental needs, so that the policies determined for different users are reasonable enough, and the effect of executing business based on the policies is better.

[0068] Furthermore, in the process of conducting comparative experiments corresponding to the decision tree, the strategies corresponding to different users can be adjusted based on the business execution results, so as to gradually determine a reasonable strategy for each user to ensure the business execution effect of each user.

[0069] Based on this method, even if a unified strategy is finally determined for each user among different strategies corresponding to different users, the determined strategy is more reasonable than the unified strategy determined manually.

[0070] In one or more embodiments of the present specification, the decision tree for determining the business execution strategy includes at least a rule node, a shunt node, and a leaf node. Different leaf nodes of the decision tree correspond to different business strategies. The child nodes of the shunt node of the decision tree are leaf nodes or rule nodes, and there is no restriction on the child nodes of the rule node, which can be a rule node, a shunt node, or a leaf node.

[0071] The strategy is the strategy that needs to be executed when executing the business corresponding to the user.

[0072] For example, in the above example of the comparative experiment of determining the color of a button on a page, the comparative experiment includes strategies corresponding to three experimental groups: a red button, a black button, and a white button.

[0073] Or, for example, in a risk control scenario, the strategy determined for a user who is performing a business that requires risk control may be a way of providing risk reminders to the user. For example, the strategy may include: test paper (intelligent interactive test paper) reminder, outbound call (intelligent voice outbound call) reminder, etc.

[0074] For ease of understanding, the business execution method provided in this specification is described in the following application scenario of risk control. When a user executes a business that requires risk control (such as a risky business such as a lending business or a payment business), the business execution method can be triggered. That is, the diverted user in this specification is a user who is executing a business that requires risk control.

[0075] In one or more embodiments of the present specification, each user for whom a strategy is determined based on a decision tree may specifically be a user who is executing a business requiring risk control and who is determined by a risk control engine to be a risky user (risky user).

[0076] In this specification, the service execution method can be executed by a decision server of a service platform. When a user is executing a service, the service server can trigger a decision request based on the user executing the service. The decision server can execute the service execution method upon receiving the decision request.

[0077] It should be noted that when referring to the decision server later, it is referred to as the server for short. It refers to the business server only when it is clearly stated that it is a "business" server. If it is not specified, the "server" only refers to the decision server.

[0078] Furthermore, an A / B experiment does not necessarily include only two experimental groups. This specification does not limit the number of experimental groups included in an A / B experiment, and at least two experimental groups are required. In addition, the risk control scenario is only an example, and can also be applied to other application scenarios that require the identification and diversion of users to determine the corresponding strategy to execute the business.

[0079] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0080] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0081] Figure 1 The following is a flow chart of a method for executing a service in this specification, which specifically includes the following steps:

[0082] S100: receiving a decision request, and determining a decision tree matching the decision request and each user corresponding to the decision request.

[0083] In this specification, different comparative experiments can be performed for different types of services, and different types of services correspond to different decision trees for determining service execution strategies. Therefore, the server of the service platform can receive a decision request, and after receiving the decision request, determine the decision tree that matches the decision request and each user corresponding to the decision request.

[0084] As described above, the decision tree used for the comparative experiment includes at least a rule node, a branch node, and a leaf node.

[0085] Different rule nodes correspond to different diversion rules. The rule nodes are used to calculate the diversion rules. The rule nodes whose diversion rules are satisfied can be allocated to users who satisfy their diversion rules.

[0086] In one or more embodiments of the present specification, the decision tree also includes a root node. The root node of each decision tree stored by the server stores at least a business type, which is a business type of a business based on the decision tree, that is, a business type to which the decision tree is applicable.

[0087] When receiving a decision request, the server may perform routing of the decision tree based on the decision request and the root node of the decision tree used to determine policies for different services, and determine an adapted decision tree for the decision request.

[0088] In one or more embodiments of the present specification, when determining the decision tree that matches the decision request and the users corresponding to the decision request, specifically, the server may receive a decision request, wherein the decision request carries at least the business type of the business requested to make a decision. Afterwards, the server may determine the decision tree that matches the decision request based on the business type carried by the decision request and the business type stored in the root node of each decision tree. And determine the users currently executing the business requested to make a decision as the users corresponding to the decision request.

[0089] It should be noted that one decision tree may correspond to multiple business types. One business type of business may also correspond to multiple decision trees. Moreover, the process of determining the decision tree that matches the decision request and the process of determining each user corresponding to the decision request do not interfere with each other and can be executed simultaneously.

[0090] In one or more embodiments of the present specification, the server may use a decision tree whose business type in the root node is consistent with the business type carried in the decision request as a decision tree that matches the decision request.

[0091] In one or more embodiments of the present specification, the root node may also store policies corresponding to each leaf node of the decision tree to which the root node belongs, so that the server can determine a matching decision tree for the decision request based on the service type and policy.

[0092] In one or more embodiments of the present specification, the decision request received by the server may be one decision request corresponding to multiple users, or one decision request corresponding to one user, or of course, multiple decision requests corresponding to multiple users.

[0093] When there is one decision request corresponding to multiple users, the business server can determine, for each type of business, the users corresponding to the business who currently need to determine a policy based on the decision tree, and determine a decision request corresponding to each user.

[0094] When it is a decision request corresponding to a user, the server performing the comparative experiment may receive the decision requests corresponding to each user, and classify each decision request to determine a matching decision tree for each type of decision request.

[0095] Furthermore, the server may determine matching decision trees for decision requests in real time or at certain time intervals. For example, when a decision request is received, its matching decision tree may be determined immediately, or, after the time interval has been satisfied since the last time a matching decision tree was determined for a decision request, matching decision trees may be determined for decision requests accumulated within the time interval.

[0096] S102: Starting from the root node of the decision tree, for each layer of the decision tree, the following methods are used to divert the users: for the rule node of the layer, according to the diversion rule of the rule node and the characteristic data of the users allocated by the parent node of the rule node, the users matched by the rule node are determined among the users allocated by the parent node; for the diversion node of the layer, according to the diversion interval corresponding to the diversion node and the identifier of the user allocated by the parent node of the diversion node, the users allocated by the diversion node are determined among the users allocated by the parent node of the diversion node.

[0097] After determining the decision tree, the server can start from the root node of the decision tree and divert users layer by layer for each layer of the decision tree in turn until all users are diverted to the leaf nodes of the decision tree. Finally, the policy corresponding to the leaf node is the policy corresponding to the users diverted to the leaf node.

[0098] In one or more embodiments of the present specification, in a layer of a decision tree, all nodes in the layer may be rule nodes, all nodes in the layer may be diversion nodes, or both rule nodes and diversion nodes may be included in the layer.

[0099] Rule nodes are used to identify users for a comparative experiment. Different diversion nodes corresponding to a comparative experiment correspond to different experimental groups. Diversion nodes are used to further divert users identified by their parent nodes and determine the users diverted by the diversion node from the users identified by the parent node. Based on diversion nodes, the parent node of the diversion node can be diverted to nodes corresponding to different experimental groups.

[0100] Since the functions of rule nodes and diversion nodes are different, when diverting users layer by layer from top to bottom based on the decision tree, the following method is used to divert each user corresponding to the decision request:

[0101] For the rule node of this layer, according to the diversion rule of the rule node and the characteristic data of the user distributed by the parent node of the rule node, the user matched by the rule node is determined among the users distributed by the parent node. For the diversion node of this layer, according to the diversion interval corresponding to the diversion node and the identifier of the user distributed by the parent node of the diversion node, the user distributed by the diversion node is determined among the users distributed by the parent node of the diversion node.

[0102] Among them, the users matched by the rule node are the users circled by the rule node.

[0103] S104: until all users corresponding to the decision request are diverted to the leaf nodes of the decision tree, for each leaf node, according to the policy of the business to which the leaf node belongs, the business of the user assigned to the leaf node is executed.

[0104] In one or more embodiments of the present specification, by diverting users layer by layer from top to bottom based on a decision tree until all users corresponding to the decision requests are diverted to the leaf nodes of the decision tree, the server can execute the business of the users assigned to each leaf node according to the policy of the business to which each leaf node belongs, for each leaf node.

[0105] In one or more embodiments of the present specification, the process of executing a service based on a policy before a stop condition corresponding to the comparative experiment is met is also the process of conducting a comparative experiment based on a policy.

[0106] In one or more embodiments of the present specification, the server may execute the policy corresponding to each user corresponding to the decision request during the process of the user executing the business corresponding to the decision request. For example, the policies corresponding to different leaf nodes may include: risk questionnaires, pop-up prompts, voice phone prompts, information prompts and other prompts. Assume that the policy corresponding to the leaf node A finally determined is a risk questionnaire, and the corresponding user is each user A, the policy corresponding to the leaf node B is a pop-up prompt, and the corresponding user is each user B, and the policy corresponding to the leaf node C is to send an information prompt, and the corresponding user is user C.

[0107] By executing the policies corresponding to leaf nodes A, B, and C, a risk questionnaire can be displayed to user A who is executing the business corresponding to the decision request to remind the user that the business he is executing may currently involve risks. A pop-up window prompt can be displayed to user B who is executing the business corresponding to the decision request to remind him that the business he is executing may currently involve risks. An information prompt can also be sent to user C who is executing the business corresponding to the decision request to remind him that the business he is executing may currently involve risks.

[0108] In one or more embodiments of the present specification, after executing the corresponding policies corresponding to the corresponding services for different users, the corresponding policies for the users can be evaluated based on the feedback operations of the users within a preset time. Based on the evaluation results, the range of the diversion intervals of different branches of the decision tree can be adjusted when diversion is performed.

[0109] For example, for a branch whose evaluation result meets the requirements, the range of the diversion interval of the corresponding branch can be increased so that more users can be diverted to the branch. Alternatively, the diversion rule corresponding to the rule node can also be adjusted.

[0110] Therefore, the server can execute the services of the users assigned to each leaf node according to the service strategy of the leaf node, and obtain the feedback data of the users of each leaf node after executing the corresponding strategy. According to the obtained feedback data, the diversion intervals corresponding to at least some diversion nodes in the decision tree and / or the diversion rules corresponding to at least some rule nodes can be adjusted.

[0111] Afterwards, continue to receive decision requests, and based on the decision tree after adjusting the diversion interval and / or diversion rules, continue to divert users corresponding to the decision requests matched by the decision tree, and execute services according to the policies of the services to which the leaf nodes belong, until the stop conditions are met.

[0112] The feedback data is data on the effect of the execution of the feedback strategy, such as user comments on the business, complaint data, rights protection data, etc., or risk data after the business is executed. The stop condition may include a stop condition corresponding to the experiment duration and / or a stop condition corresponding to the number of users participating in the comparative experiment.

[0113] For example, the server may determine that the stop condition is satisfied for each comparative experiment when it is determined that the duration of the experiment reaches a preset duration. Alternatively, the server may determine that the stop condition is satisfied for each comparative experiment when it is determined that the number of users participating in the comparative experiment reaches a preset number. Alternatively, the server may determine that the stop condition is satisfied for each comparative experiment when it is determined that the duration of the comparative experiment reaches a preset duration and the number of users participating in the experiment reaches a preset number.

[0114] When it is determined that the stop condition is met, the server can use the policy corresponding to each user finally determined based on the decision tree as the policy for executing the service. For the same service, the policies finally corresponding to different users can be the same or different.

[0115] based on Figure 1 The security calculation method shown determines the decision tree and each user that matches the decision request, and diverts each user in the following manner for each layer of the decision tree starting from the root node: for the rule node, according to the diversion rule of the rule node and the characteristic data of the user allocated by the parent node of the rule node, determine the user matched by the rule node among the users allocated by the parent node; for the diversion node, according to the diversion interval of the diversion node and the identifier of the user allocated by the parent node of the diversion node, determine the user allocated to the diversion node among the users allocated by the parent node of the diversion node, until all users are diverted to the leaf node, and for each leaf node, according to the policy of the business to which the leaf node belongs, execute the business of the user allocated to the leaf node.

[0116] It can be seen from the above method that this method can divert users layer by layer based on the rules and diversion intervals of the decision tree nodes, and reasonably determine different strategies corresponding to different users based on the diversion results, so as to execute services based on reasonable strategies. For services with complex business logic, strategies can also be reasonably determined for their users. In addition, by conducting comparative experiments, the diversion rules and / or diversion intervals corresponding to the decision tree can also be adjusted based on user feedback data, which is more flexible and reasonable.

[0117] In one or more embodiments of the present specification, a diversion rule may be composed of several conditions, including at least one condition. The diversion rule may specify the logical calculation relationship of each condition included in the diversion rule. When the user satisfies the logical calculation relationship, it can be determined that the user satisfies the diversion rule.

[0118] In step S102, when determining the users matched by the rule node among the users assigned to the parent node of the rule node, specifically, the server may determine the conditions constituting the diversion rule of the rule node and the features included in the conditions, and determine the feature values ​​of the features of the user for each user assigned to the parent node of the rule node. Afterwards, the conditions matched by the user are determined based on the features included in the conditions and the feature values ​​of the features of the user, and the users matched by the rule node are determined based on the conditions matched by the user and the logical calculation relationship of the conditions in the rule node. The users matched by the rule node are users who satisfy the logical calculation relationship of the conditions corresponding to the rule node.

[0119] The characteristic data may include several characteristic values. Therefore, the server may obtain the characteristic data corresponding to the user and the diversion rule, and determine the characteristic value of each characteristic of the user according to the characteristic data.

[0120] In one or more embodiments of the present specification, the server may implement the feature data corresponding to the feature by querying a database or calling a corresponding service.

[0121] In one or more embodiments of the present specification, the features include at least user behavior features.

[0122] In one or more embodiments of this specification, the feature may be associated with the application scenario of the business execution method. For example, the feature in the risk control scenario may be a feature that can be used to determine the risk of the business executed by the user. For example, the feature may be: whether the user transfers money to a stranger within a preset period of time, the number of transfers to strangers within a preset period of time, whether a screenshot of the business page is taken within a preset period of time, the number of screenshots of the business page within a preset period of time, etc. Of course, the feature may also include other features, such as whether it is on the risk control blacklist, the default list, etc. Of course, the feature may also include other content, which is not limited by this specification.

[0123] Alternatively, in one or more embodiments of the present specification, the server may also determine that the user is a user matched by the rule node when the user matches all conditions corresponding to the rule node.

[0124] In addition, in one or more embodiments of the present specification, for each condition, the condition may be composed of a preset right value, a comparison operator, and a characteristic as a left value.

[0125] For example, suppose the diversion rule of one of the rule nodes of the decision tree is: condition 11&&(condition 12or condition 13). The condition in the diversion rule can be in the form of "cal(featueId) comparison operator Value", where featueId is the left value (feature) and Value is the preset right value. cal(featueId) means determining the feature value of the user and the feature by querying the database or calling the service. The comparison operator may include: eq (equal), lt (less than), gt (greaterthan). Of course, the comparison operator may also include others, for example, not equal to.

[0126] When determining the conditions that match the user based on the features included in each condition and the feature values ​​of the features of the user, specifically, the server may, for each condition, determine that the condition is a condition that matches the user when it is determined, based on the feature values ​​of the features included in the condition, that the left value of the condition and the right value of the condition satisfy the comparison relationship corresponding to the comparison operator of the condition. Otherwise, it is determined that the user does not match the condition.

[0127] It should be noted that for each user assigned to the parent node of the rule node of this layer, there is a rule node in this layer that can match the user. However, for each rule node of this layer, the rule node may not necessarily match the user.

[0128] In addition, in step S102 of the present specification, when determining the user assigned to the shunt node among the users assigned to the parent node of the shunt node according to the shunt interval corresponding to the shunt node and the identifier of the user assigned to the parent node of the shunt node, specifically, the server can determine the hash value corresponding to the user for each user assigned to the parent node of the shunt node according to the identifier of the user and the layer where the shunt node is located through a hash function. Afterwards, the hash value is modulo the preset value to obtain the shunt value corresponding to the user. Finally, the preset shunt interval corresponding to the shunt node is determined, and the users whose shunt values ​​fall into the shunt interval among the users assigned to the parent node of the shunt node are used as the users assigned to the shunt node.

[0129] The identifier includes at least one of the user's identity identifier, web browsing data (cookies), and an operation identifier of the user's operation when executing the current business. In addition, the sum of the interval ranges of the diversion intervals of each diversion node as a child node of the same parent node is the same as the preset value, so that the determined diversion value can fall into the diversion interval corresponding to one of the diversion nodes.

[0130] For example, suppose a parent node has two child nodes, one of which has a branch interval of [0, 49] and a range of 50. The other has a branch interval of [50, 99] and a range of 50. The sum of the ranges of the two branch intervals is 100. The preset value for taking the modulus of the hash value is also 100, so that the number obtained after taking the modulus is in [0, 99] and always falls into one of the branch intervals.

[0131] It should be noted that the hash function-based diversion method in this specification is unbiased hash diversion. For the same user, if the diversion rules or diversion intervals in the decision tree are not modified, when the user executes the business at different times (that is, when the user corresponds to different decision requests), the leaf nodes to which the user is diverted through the decision tree through unbiased hash diversion are the same.

[0132] For example, without modifying the diversion rules or diversion intervals in the decision tree, when a user performs the service one week ago and one week later, the leaf nodes to which the user is diverted are the same, and the corresponding strategies are also the same.

[0133] For ease of understanding, this manual also provides Figure 2 A schematic diagram of the process of traversing a decision tree is shown in FIG.

[0134] S300: Get the root node of the decision tree, and for each layer of the decision tree, for the rule node in the layer that serves as a matching node, determine the users matched by the rule node among the users allocated by the parent node of the rule node, for the diversion node in the layer that serves as a matching node, determine the users allocated by the diversion node among the users allocated by the parent node of the diversion node, and use the nodes in the node of the layer that obtain users from their own parent nodes as matching nodes.

[0135] After starting the traversal, the server can first determine the root node of the decision tree, and then divert users to the matching nodes in each layer under the root node. Since the diversion interval of the diversion node is the same as the preset value modulo the hash value, all diversion nodes are matching nodes. However, there may be non-matching nodes in the rule nodes.

[0136] S302: until all users corresponding to the decision request are diverted to the leaf nodes of the decision tree, for each leaf node, according to the policy of the business to which the leaf node belongs, the business of the user assigned to the leaf node is executed.

[0137] It should be noted that the specific contents of the above steps S300 to S302 can refer to the above steps S100 to S104, and will not be elaborated in this specification.

[0138] For ease of understanding, this specification also provides a schematic diagram of a decision tree, such as Figure 3 shown.

[0139] like Figure 3 As shown in the figure, the triangle represents the root node of the decision tree, the rectangle represents the rule node of the decision tree, the circle represents the diversion node, and the pentagon represents the leaf node of the strategy associated with different services. It can be seen that the rule nodes at different layers are connected through the diversion nodes. Among them, some rule nodes can also be directly connected to the leaf nodes, and some leaf nodes are connected to the rule nodes through the diversion nodes.

[0140] It can be seen that in the first layer of the decision tree, the rule nodes from left to right correspond to Rule 1 and Rule 2. In the two diversion nodes connected by the rule node corresponding to Rule 1, the diversion probability corresponding to each diversion node is 50%.

[0141] For each diversion node, the diversion probability of the diversion node is the ratio of the diversion interval of the diversion node to the sum of the interval ranges of the diversion intervals of other diversion nodes connected to the same parent node as the diversion node.

[0142] For example, suppose that among the diversion nodes corresponding to rule 1, the diversion interval of the diversion node on the left is [0, 49], with an interval range of 50, and the diversion interval of the diversion node on the right is [50, 99], with an interval range of 50. When the node corresponding to rule 1 is a matching node, when the user matched by the matching node is diverted, when the calculated diversion value of the user is an integer from 0 to 49, the user is diverted to the diversion node corresponding to the diversion interval of [0, 49], and when the calculated diversion value of the user is an integer from 0 to 49, the user is diverted to the diversion node corresponding to the diversion interval of [50, 99]. The diversion probabilities of the two diversion nodes are both 50 / (50+50)=50%, and the diversion probability of the diversion node is the probability that the user is diverted to the branch corresponding to the diversion node.

[0143] For the shunt nodes corresponding to different branches, different shunt intervals can be pre-configured so that different shunt nodes correspond to different shunt probabilities. Figure 3 , the root node is divided into branches corresponding to rule 1 and branches corresponding to rule 2. The two branches have different shunting probabilities for the two shunting nodes corresponding to rule 1 on the left and the two shunting nodes corresponding to rule 2 on the right. The shunting probabilities of the two shunting nodes corresponding to rule 1 are both 50%, and the shunting probabilities of the two shunting nodes corresponding to rule 2 are 40% and 60% respectively. As the layers of the decision tree deepen, the difference in the shunting probabilities of the two shunting nodes connected to the same rule node can increase. The shunting probabilities of the shunting nodes corresponding to rule 3 are 20% and 80% respectively, and the shunting probabilities of the shunting nodes corresponding to rule 6 are 35% and 65% respectively. Among them, the rule nodes corresponding to rules 5 and 4 are directly connected to leaf nodes.

[0144] Among them, security bodyguard, test paper (intelligent interactive test paper), outbound call (intelligent voice outbound call), picture and text (picture and text reminder), assistant (intelligent interactive assistant), etc. are all strategies corresponding to leaf nodes, and test paper + outbound call, picture and text + assistant are strategies corresponding to the combined prompting methods. For example, assuming that user A is diverted to the leaf node with the strategy of "picture and text + assistant" through a diversion node with a diversion probability of 80%, then when executing this strategy, the user is reminded that the current business is risky by giving a picture and text reminder to the user and an interactive reminder by the intelligent interactive assistant.

[0145] In one or more embodiments of this specification, since a user may match multiple different rule nodes, resulting in the user being diverted to different leaf nodes, the user traffic of different parallel comparative experiments should be mutually exclusive, and in several parallel comparative experiments, a user only matches one of the comparative experiments. Therefore, different leaf nodes may correspond to different priorities, and the server may determine the policy corresponding to the leaf node with the highest priority as the policy corresponding to the user diverted to multiple leaf nodes according to the priority of the leaf node corresponding to the user.

[0146] For example, user B satisfies both rules 3 and 4, so the nodes corresponding to rules 3 and 4 are both matching nodes. The user is diverted to the branch corresponding to the diversion node with a diversion probability of 20% in rule 3, and the strategy of this branch is "exam paper + outbound call". Similarly, the user is also associated with the strategy "security bodyguard" of the branch corresponding to rule 4. Then, a strategy to be executed on the user can be determined based on the priority of the leaf node corresponding to "exam paper + outbound call" and the priority of the leaf node corresponding to "security bodyguard".

[0147] In addition, in one or more embodiments of the present specification, there may be nodes in the decision tree that have dual “identities”, namely, nodes that serve as both rule nodes and diversion nodes.

[0148] It should be noted that, as mentioned above, in a decision tree, different branches of the decision tree and combinations of different branches may correspond to different comparative experiments. Figure 4 As shown. Figure 3 same, Figure 4 The middle triangle represents the root node of the decision tree, the rectangle represents the rule node of the decision tree, the circle represents the diversion node, and the pentagon represents the leaf node that associates the strategies of different comparative experiments.

[0149] Figure 4The branch combination formed by the arrows with singular numbers (B1, B3, ... B19, B21) corresponds to a comparative experiment, and the branches corresponding to numbers B3 and B7 and numbers B5, B9, B11, B13, B15, B17, B19, B21 are two experimental groups included in the comparative experiment. Alternatively, the four branches corresponding to numbers B3 and B7, the branches corresponding to numbers B5, B9, B13, B19, the branches corresponding to B5, B9, B15, B21, and the branches corresponding to numbers B5, B11, B17 are the four experimental groups included in the comparative experiment. In addition, the branches corresponding to numbers B9, B13, B15, B19, B21 and the branches corresponding to B11 and B17 correspond to two comparative experiments. Based on the corresponding rule nodes, the users who match each other can be delineated, among which the branches corresponding to B13 and B19 and the branches corresponding to B15 and B21 are two experimental groups under the comparative experiment.

[0150] Figure 4 The branch combination formed by the even-numbered arrows (B2, B4...B16, B18) corresponds to another comparative experiment parallel to the comparative experiment corresponding to the odd-numbered arrows (B1, B3,...B19, B21). The branches corresponding to B4 and B8 and the branches corresponding to B6, B10, B12, B14, B16, B18 are two experimental groups included in the even-numbered comparative experiment. The branches corresponding to B10, B12, B14, B16, B18 are another comparative experiment. The branches corresponding to B12 and B16 and the branches corresponding to B14 and B18 are two experimental groups under this comparative experiment.

[0151] It can be seen that this specification implements the stratification of users of the comparative experiment based on the decision tree.

[0152] certainly, Figure 3 , Figure 4 This is just an example of a decision tree. Figure 5 is a schematic diagram of another decision tree. Figure 3 same, Figure 5 The middle triangle represents the root node of the decision tree, the rectangle represents the rule node of the decision tree, the circle represents the diversion node, and the pentagon represents the leaf node associated with different comparative experimental strategies. In addition, in the same layer, both rule nodes and diversion nodes can be included, as well as both rule nodes and leaf nodes, and even various types of nodes except the root node can be included.

[0153] This specification also provides an embodiment of executing the business execution method in a risk control scenario:

[0154] The server may receive a decision request corresponding to a risk business, and determine a decision tree matched by the decision request, and risk users currently executing the risk business corresponding to the decision request.

[0155] The risky business may include at least one of a payment business and a lending business. A risky business is a business that requires risk control. A risky user is a user who may be at risk among the users currently executing the risky business as determined by the risk control engine.

[0156] After determining the decision tree that matches the decision request, the server can divide the risky users based on the determined decision tree through the above step S102.

[0157] Until all users corresponding to the decision request are diverted to the leaf nodes of the decision tree, the server can, for each leaf node, provide risk warnings to the risky users in the process of executing the business of the risky users assigned to the leaf node according to the strategy of the business to which the leaf node belongs.

[0158] Afterwards, the server may determine whether the business corresponding to each user is at risk based on the feedback data corresponding to each user after executing the corresponding strategy, and re-determine the strategy corresponding to each user based on the judgment result.

[0159] For example, the server can adjust the diversion rules of at least some rule nodes of the decision tree according to the users corresponding to the risky business, so as to make the delineation of users based on the rule nodes more reasonable and reduce the probability that risks will occur when executing the business based on the determined strategy. Or adjust the diversion interval of at least some diversion nodes so that more users can be diverted to the leaf nodes corresponding to the strategies without risks.

[0160] Before the stopping condition is met, the strategy corresponding to each user is re-determined multiple times, and the best strategy can be determined for each user.

[0161] In addition, in order to understand how to implement the service execution method provided in this specification from a system perspective, this specification also provides Figure 6 A schematic diagram of the system architecture corresponding to the business execution method shown.

[0162] like Figure 6 The system architecture includes a management module, an experimental component, and a monitoring and evaluation module. The management module includes: an experiment management module, a scenario management module, and a whitelist management module. Among them, the experiment management module is used to configure parameters for each experiment corresponding to the decision tree, for example, the diversion interval and diversion probability of the diversion node of each decision tree. The scenario management module is used to configure the rules corresponding to each rule node of the decision tree. The whitelist management module is used to limit the diversion results of some whitelist users so that the whitelist users are diverted to the specified leaf nodes.

[0163] The experimental component includes an interface layer, a strategy layer, a diversion layer, and a storage layer. The interface layer is the Application Programming Interface (API) layer, which is used to provide different businesses with interfaces for initiating decision requests to call decision trees. The strategy layer is used to calculate diversion rules to define the population for comparative experiments. The storage layer is used to load the configuration data of the management module (i.e., the data configured by the experiment management module, the scenario management module, and the whitelist management module) into the memory according to a certain data structure for use by each layer of the experimental component. The monitoring and evaluation module monitors and evaluates each experiment based on the configuration data of the management module and the diversion data of the experimental component.

[0164] The monitoring and evaluation module is as follows: Figure 7 As shown. Figure 7 , the monitoring and evaluation module evaluates and monitors the policy-based business execution results offline and in real time based on the diversion data, configuration data and the policies for executing the services corresponding to each leaf node for users, according to the user's behavior data (such as feedback data). Among them, the link corresponding to the slash filled arrow is the offline evaluation link, and the link corresponding to the unfilled arrow is the real-time online monitoring link. When evaluating, the evaluation module collects the diversion data, user's behavior data, and configuration data through the embedding point, and then synchronizes them to the offline open data processing service (Open Data Processing Service, ODPS). After offline task cleaning and aggregation, they flow back to the online relational database (such as MySQL) table, and provide business execution result evaluation capabilities through the evaluation service. When monitoring, the monitoring module collects the diversion data, user's behavior data, and experimental configuration data through real-time logs and messages, and then cleans and aggregates them through the stream processing framework (Flink), and writes them to the search server (ElasticSearch, ES), providing real-time monitoring capabilities by providing online monitoring services.

[0165] Figure 8 A schematic diagram of a service execution device provided in this specification, wherein a decision tree for determining a service execution strategy includes at least a rule node, a shunt node, and a leaf node, wherein the child nodes of the shunt node are leaf nodes or rule nodes, and different leaf nodes correspond to different service strategies, and the device includes:

[0166] A matching module 200 is used to receive a decision request, determine a decision tree that matches the decision request and each user corresponding to the decision request;

[0167] The traversal module 201 is used to start from the root node of the decision tree and, for each layer of the decision tree, sequentially divert the users in the following manner: for the rule node of the layer, according to the diversion rule of the rule node and the characteristic data of the user diverted by the parent node of the rule node, determine the user matched by the rule node among the users diverted by the parent node; for the diversion node of the layer, according to the diversion interval corresponding to the diversion node and the identifier of the user diverted by the parent node of the diversion node, determine the user diverted by the diversion node among the users diverted by the parent node of the diversion node;

[0168] The service execution module 202 is used to distribute all users corresponding to the decision request to the leaf nodes of the decision tree, and for each leaf node, execute the service of the user allocated to the leaf node according to the policy of the service to which the leaf node belongs.

[0169] Optionally, the root node of each decision tree stores at least a business type, and the business type is the business type of the business based on the decision tree for decision making. The matching module 200 is also used to receive a decision request, and the decision request carries at least the business type of the business for which a decision is requested. According to the business type carried in the decision request and the business type stored in the root node of each decision tree, the decision tree that matches the decision request is determined; and the users who are currently executing the business requested to make a decision are determined as the users corresponding to the decision request.

[0170] Optionally, the diversion rule is composed of several conditions, and the traversal module 201 is also used to determine the conditions constituting the diversion rule of the rule node and the features contained in the conditions, and for each user obtained from the parent node of the rule node, determine the feature values ​​of the user's features, determine the conditions matched by the user based on the features contained in the conditions and the feature values ​​of the user's features, and determine the user matched by the rule node based on the conditions matched by the user and the logical calculation relationship between the conditions in the rule node, wherein the features include at least user behavior features.

[0171] Optionally, for each condition, the condition is composed of a preset right value, a comparison operator and a feature as a left value. The traversal module 201 is also used to, for each condition, when it is determined based on the feature value of the feature contained in the condition that the left value of the condition and the right value of the condition satisfy the comparison relationship corresponding to the comparison operator of the condition, determine that the condition is a condition that matches the user; otherwise, determine that the user does not match the condition.

[0172] Optionally, the traversal module 201 is also used to determine, for each user allocated to the parent node of the diversion node, a hash value corresponding to the user according to the user's identifier and the layer where the diversion node is located, through a hash function, modulo the hash value according to a preset value to obtain a diversion value corresponding to the user, determine a preset diversion interval corresponding to the diversion node, and use the users allocated to the parent node of the diversion node whose diversion values ​​fall into the diversion interval as users allocated to the diversion node.

[0173] Optionally, the sum of the interval ranges of the diversion intervals of each diversion node that is a child node of the same parent node is the same as the preset value; the user identification includes at least one of the user's identity identification, web browsing data, and an operation identification of the operation performed by the user when executing the current business.

[0174] Optionally, the business execution module 202 is also used to execute the business of the users assigned to each leaf node according to the policy of the business to which the leaf node belongs, obtain feedback data of the users of each leaf node after executing the corresponding policy, and adjust the diversion intervals corresponding to at least some of the diversion nodes in the decision tree and / or the diversion rules corresponding to at least some of the rule nodes according to the obtained feedback data, continue to receive decision requests, and based on the decision tree after adjusting the diversion intervals and / or diversion rules, continue to divert users corresponding to the decision requests matched by the decision tree, and execute the business according to the policy of the business to which the leaf node belongs until a stop condition is met.

[0175] This specification also provides a computer-readable storage medium, which stores a computer program, and the computer program can be used to execute the above-mentioned service execution method.

[0176] This manual also provides Fig. 9 The schematic structure diagram of the electronic device shown in FIG. Fig. 9 As described above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above-mentioned service execution method. Of course, in addition to the software implementation method, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0177] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0178] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0179] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0180] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0181] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0182] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0185] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0186] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0187] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0188] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0189] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0190] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0191] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0192] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A service execution method, wherein a decision tree for determining a service execution strategy comprises at least a rule node, a shunt node and a leaf node, wherein the child nodes of the shunt node are leaf nodes or rule nodes, and different leaf nodes correspond to different service strategies, and the method comprises: Receive a decision request, and determine a decision tree matching the decision request and each user corresponding to the decision request; Starting from the root node of the decision tree, for each layer of the decision tree, the following method is used to divert the users: For the rule node of this layer, according to the diversion rule of the rule node and the characteristic data of the user distributed by the parent node of the rule node, the user matched by the rule node is determined among the users distributed by the parent node; for the diversion node of this layer, according to the diversion interval corresponding to the diversion node and the identifier of the user distributed by the parent node of the diversion node, the user distributed by the diversion node is determined among the users distributed by the parent node of the diversion node; Until all users corresponding to the decision request are diverted to the leaf nodes of the decision tree, for each leaf node, according to the policy of the service to which the leaf node belongs, the service of the user assigned to the leaf node is executed; The root node of each decision tree stores at least a business type, where the business type is the business type of the business for which a decision is made based on the decision tree; Receiving a decision request and determining a decision tree matching the decision request and each user corresponding to the decision request specifically includes: receiving a decision request, wherein the decision request carries at least a service type of the service for which a decision is requested; According to the business type carried in the decision request and the business type stored in the root node of each decision tree, the decision tree matching the decision request is determined; and the users of the business currently executing the decision request are determined as the users corresponding to the decision request.

2. The method according to claim 1, wherein the diversion rule is composed of a plurality of conditions; According to the diversion rule of the rule node and the characteristic data of the users distributed by the parent node of the rule node, determining the users matched by the rule node from the users distributed by the parent node specifically includes: Determine the conditions constituting the diversion rule of the rule node and the features included in the conditions; For each user assigned to the parent node of the rule node, determine the feature value of each feature of the user; Determine the conditions that the user matches based on the features included in each condition and the feature values ​​of each feature of the user; Determine the user matched by the rule node according to the conditions matched by the user and the logical calculation relationship of the conditions in the rule node; Wherein, the characteristics at least include user behavior characteristics.

3. The method as claimed in claim 2, wherein for each condition, the condition is composed of a preset right value, a comparison operator and a characteristic as a left value; According to the features included in each condition and the feature values ​​of each feature of the user, the conditions that the user matches are determined, specifically including: For each condition, when it is determined that the left value of the condition and the right value of the condition satisfy the comparison relationship corresponding to the comparison operator of the condition based on the feature value of the feature contained in the condition, the condition is determined to be a condition that matches the user; otherwise, it is determined that the user does not match the condition.

4. The method according to claim 1, determining the user allocated to the diversion node from the users allocated to the parent node of the diversion node according to the diversion interval corresponding to the diversion node and the identifier of the user allocated to the parent node of the diversion node, specifically comprising: For each user assigned to the parent node of the shunt node, determine the hash value corresponding to the user through a hash function according to the identifier of the user and the layer where the shunt node is located; Taking a modulus of the hash value according to a preset value, to obtain a diversion value corresponding to the user; A preset diversion interval corresponding to the diversion node is determined, and users whose diversion values ​​fall within the diversion interval among the users diverted by the parent node of the diversion node are used as users diverted by the diversion node.

5. According to the method as claimed in claim 4, the sum of the interval ranges of the diversion intervals of each diversion node that is a child node of the same parent node is the same as the preset value; the user identification includes at least one of the user's identity identification, web browsing data, and an operation identification of the operation performed by the user when executing the current business.

6. The method according to claim 1, for each leaf node, executing the user's service allocated to the leaf node according to the policy of the service to which the leaf node belongs, specifically comprises: For each leaf node, execute the user's service assigned to the leaf node according to the policy of the service to which the leaf node belongs; Obtain feedback data from users of each leaf node after executing the corresponding strategy; According to the obtained feedback data, adjusting the diversion intervals corresponding to at least some of the diversion nodes in the decision tree, and / or the diversion rules corresponding to at least some of the rule nodes; Continue to receive decision requests, and based on the decision tree after adjusting the diversion interval and / or diversion rules, continue to divert users corresponding to the decision requests matched by the decision tree, and execute services according to the policies of the services to which the leaf nodes belong, until the stop conditions are met.

7. A service execution device, wherein a decision tree for determining a service execution strategy comprises at least a rule node, a shunt node, and a leaf node, wherein the child nodes of the shunt node are leaf nodes or rule nodes, and different leaf nodes correspond to different service strategies, and the device comprises: A matching module, used to receive a decision request, determine a decision tree that matches the decision request and each user corresponding to the decision request; A traversal module is used to start from the root node of the decision tree and, for each layer of the decision tree, sequentially divert the users in the following manner: for the rule node of the layer, according to the diversion rule of the rule node and the characteristic data of the user diverted by the parent node of the rule node, determine the user matched by the rule node among the users diverted by the parent node; for the diversion node of the layer, according to the diversion interval corresponding to the diversion node and the identifier of the user diverted by the parent node of the diversion node, determine the user diverted by the diversion node among the users diverted by the parent node of the diversion node; A service execution module, used to distribute all users corresponding to the decision request to the leaf nodes of the decision tree, and for each leaf node, execute the service of the user allocated to the leaf node according to the policy of the service to which the leaf node belongs; The root node of each decision tree stores at least a business type, where the business type is the business type of the business for which a decision is made based on the decision tree; The matching module is specifically used for: receiving a decision request, wherein the decision request carries at least a service type of the service for which a decision is requested; Determine a decision tree that matches the decision request according to the service type carried in the decision request and the service type stored in the root node of each decision tree; The users who are currently executing the business requested to make a decision are determined as the users corresponding to the decision request.

8. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the program.