Information decision rule configuration method and device, electronic equipment and storage medium
By providing decision variables, components and flow configuration interfaces, users can generate detailed decision rules, solving the problems of insufficient flexibility and detailedness of decision rule configuration in the prior art, and improving work efficiency and accuracy.
Patent Information
- Application Number
- CN202411344453.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-31
AI Technical Summary
The existing decision-making platform has problems such as insufficient flexibility and insufficient detailed rules in the configuration of decision-making rules, resulting in low work efficiency and high logical error rates.
Provides an information decision rule configuration method, which allows users to generate decision variable sets, decision components and decision flow information to achieve more detailed decision rules by outputting decision variable configuration interfaces, decision component configuration interfaces and decision flow configuration interfaces to users. Configuration.
It improves the operational convenience and flexibility of visual configuration, reduces communication costs, enhances the functions of the decision engine, and can respond more quickly to changes in market and customer groups.
Smart Images

Figure CN119232606A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information decision rule configuration method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of Internet technology, the popularity of various Internet-based services is increasing. Some services require differentiated decision-making management of user attributes such as identity and behavior in order to provide users with appropriate services.
[0003] For example, in the field of financial services, in order to manage credit risks, it is necessary to conduct differentiated marketing decision management for financial customer groups, and at the same time, in risk decision management, it is also necessary to quickly iterate and output risk decisions according to market changes and customer group changes. This also puts higher requirements on the functions of the decision engine. On the one hand, a more comprehensive and stable data support platform is required, and on the other hand, the decision engine is required to provide flexible applications such as feature derivation, process configuration, decision branching, and multi-source data application in combination with actual business needs.
[0004] The decision-making platforms currently used are divided into the following two types:
[0005] 1. Use hard-coded rules, such as scripting languages such as Java, Python, or Drools. The general working mode is that the policy personnel propose the policy logic, and then the developers implement the script writing and then deploy it online. This solution has low work efficiency, high logic error rate, and cannot verify and adjust the policy logic in real time.
[0006] 2. Use a configurable interface, and let the policy personnel configure the logic by themselves, and then deploy it online. This solution decouples the work of policy personnel and program developers, and reduces communication costs. However, there are generally problems such as low degree of configuration and insufficient details of decision rules. Summary of the invention
[0007] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide an information decision rule configuration method, device, electronic device and computer-readable storage medium.
[0008] In a first aspect, an embodiment of the present application provides an information decision rule configuration method, the method comprising: outputting a decision variable configuration interface to a terminal device used by a decision configuration user; generating a decision variable set based on the variable configuration operation performed by the decision configuration user using the decision variable configuration interface; outputting a decision component configuration interface to the terminal device; generating at least one decision component based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface, wherein each decision component in at least one decision component includes at least one decision variable and at least one logical operation rule; outputting a decision flow configuration interface to the terminal device; and orchestrating at least one decision component to generate decision flow information based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface.
[0009] In one possible implementation, a decision variable set is generated based on a variable configuration operation performed by a decision configuration user using a decision variable configuration interface, including: obtaining basic variables input by the decision configuration user in the decision variable configuration interface; obtaining derivative logic information configured by the decision configuration user in the decision variable configuration interface, and generating derived variables based on the derivative logic information and the basic variables; obtaining data source interface information configured by the decision configuration user in the decision variable configuration interface, and generating interface variables based on the data source interface information; and generating a decision variable set based on at least one of the basic variables, the derived variables, and the interface variables.
[0010] In one possible implementation, at least one decision component is generated based on a decision component configuration operation performed by a decision configuration user using a decision component configuration interface, including: selecting at least one initial decision component from at least two preset initial decision components, wherein the at least one initial decision component includes at least one of the following: a decision tree, a decision table, a scoring card, and a rule set; setting decision variables corresponding to at least one initial decision component from a decision variable set, and setting operation rule information; and determining at least one initial decision component for which decision variables and operation rule information are set as the at least one generated decision component.
[0011] In one possible implementation, based on a decision flow configuration operation performed by a decision configuration user using a decision flow configuration interface, at least one decision component is orchestrated to generate decision flow information, including: based on the decision flow configuration operation, generating at least one decision flow path and decision nodes on each decision flow path; setting a corresponding decision node for each decision component in at least one decision component to obtain decision flow information including at least one decision flow path.
[0012] In one possible implementation, after at least one decision component is orchestrated to generate decision flow information based on a decision flow configuration operation performed by a decision configuration user using a decision flow configuration interface, the method further includes: based on the decision flow information, executing a decision process on preset test data to obtain a test result; if the test result is consistent with the preset reference data, publishing the decision flow information to a decision engine service.
[0013] In one possible implementation, after at least one decision component is orchestrated and decision flow information is generated based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, the method further includes: receiving data to be decided sent by the decision request end; based on the decision flow information, executing the decision process on the decision data to be decided, obtaining a decision execution result, and returning the decision execution result to the decision request end.
[0014] In one possible implementation, based on the decision flow information, a decision process is executed on the decision data to obtain a decision execution result, and the decision execution result is returned to the decision request end, including: determining a pre-configured decision execution mode; if the decision execution mode is an asynchronous decision mode, saving the data to be decided; in response to triggering and starting a decision execution task, based on the decision flow information, executing the decision process on the decision data to obtain a decision execution result; in response to receiving a decision query request, returning the decision execution result to the decision request end; if the decision execution mode is a synchronous decision mode, based on the decision flow information, executing the decision process on the decision data in real time to obtain a decision execution result, and returning the decision execution result to the decision request end.
[0015] In one possible implementation, based on the decision flow information, a decision process is executed on the decision data to obtain a decision execution result, and the decision execution result is returned to the decision request end, including: determining whether an exception occurs in the decision process; if it is determined that an exception occurs in the decision process, sending a decision exception prompt message to the manual review end; receiving an updated decision execution result obtained by the manual review end after repairing the decision exception prompt message; and returning the updated decision execution result to the decision request end.
[0016] In a second aspect, an embodiment of the present application provides an information decision rule configuration device, which includes: a first output module, used to output a decision variable configuration interface to a terminal device used by a decision configuration user; a first generation module, used to generate a decision variable set based on the variable configuration operation performed by the decision configuration user using the decision variable configuration interface; a second output module, used to output a decision component configuration interface to the terminal device; a second generation module, used to generate at least one decision component based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface, wherein each decision component in at least one decision component includes at least one decision variable and at least one logical operation rule; a third output module, used to output a decision flow configuration interface to the terminal device; a third generation module, used to orchestrate at least one decision component and generate decision flow information based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, a method of any embodiment of the information decision rule configuration method of the first aspect of the present application is implemented.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method as in any embodiment of the information decision rule configuration method of the first aspect described above is implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code runs on a device, the processor in the device implements a method as described in any embodiment of the information decision rule configuration method of the first aspect above.
[0020] The information decision rule configuration method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application provide users with a decision variable configuration interface, a decision component configuration interface and a decision flow configuration interface, so that users can perform variable configuration operations, decision component configuration operations and decision flow configuration operations on the above interfaces to generate a decision variable set, at least one decision component and decision flow information. According to the generated decision flow information, the decision process can be executed, thereby realizing more detailed decision rule configuration in a visual interface, and greatly improving the operational convenience and configuration flexibility of the visual configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0023] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0024] Figure 1 A flowchart of an information decision rule configuration method provided in an embodiment of the present application;
[0025] Figure 2 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0026] Figure 3 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0027] Figure 4 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of decision flow information provided for an embodiment of the present application;
[0029] Figure 6 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0030] Figure 7 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0031] Figure 8 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0032] Fig. 9 A flowchart of another information decision rule configuration method provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of the structure of an information decision rule configuration device provided in an embodiment of the present application;
[0034] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0036] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0037] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0038] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0039] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0040] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0041] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0042] Technologies, circuits, and devices known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, circuits, and devices should be considered as part of the specification.
[0043] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0044] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0045] In order to solve the technical problems that the decision rule configuration in the prior art is not flexible enough and the decision rules are not detailed enough, the present application provides an information decision rule configuration method, which can greatly improve the operational convenience and configuration flexibility of the visual configuration decision rules.
[0046] Figure 1 A flow chart of an information decision rule configuration method provided for an embodiment of the present application. This method is usually applied on a server, and can also be applied to one or more electronic devices such as a desktop computer, a portable computer, a notebook computer, a smart phone, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or it can be implemented as a single software or software module. It is not specifically limited here.
[0047] like Figure 1 As shown, the method specifically includes:
[0048] Step 101: output a decision variable configuration interface to a terminal device used by a decision configuration user.
[0049] In this embodiment, the decision configuration user is a decision configuration user who configures decision rules. For example, in the field of financial services, the decision configuration user may be an administrator who reviews credit rules. The administrator configures credit approval decision rules and automatically approves credit requests from different users based on the rules.
[0050] When the decision configuration user needs to configure the decision rules, the terminal device can be used to communicate with the execution subject of this embodiment, and the above-mentioned execution subject provides a visual decision variable configuration interface to the terminal device.
[0051] Step 102 : generating a decision variable set based on the variable configuration operation performed by the decision configuration user using the decision variable configuration interface.
[0052] In this embodiment, the decision variable configuration interface may include multiple variable type options, and the decision configuration user may perform variable configuration operations in the interface to set various decision variables. The decision variable represents the type of data required to judge various attributes of the user when executing the decision rule. For example, the user's age, ID number, credit rating, etc. may each correspond to a decision variable. When determining a decision rule for a certain user, the data corresponding to the user may be obtained according to the set decision variables to execute the subsequent decision process.
[0053] Step 103: output the decision component configuration interface to the terminal device.
[0054] In this embodiment, the decision component configuration interface is used to provide a variety of decision components to the decision configuration user. In the decision component configuration interface, the user can select a decision component and perform rule configuration on the selected decision component.
[0055] Step 104: Generate at least one decision component based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface.
[0056] In this embodiment, each decision component in at least one decision component includes at least one decision variable and at least one logical operation rule. The logical operation rule is used to perform logical judgment, calculation and other operations on the corresponding decision variables. The above-mentioned decision component is a decision rule configuration template that conforms to a specific form and is provided to the decision configuration user. In each decision component, corresponding decision variables and logical operation rules can be set. For example, the decision component may include a scoring card, and the scoring card is set so that the scoring card includes variables such as user age, region, and gender, and each variable can correspond to a logical operation rule. For example, multiple intervals are set for the age variable, and different intervals correspond to different scoring weights; regional levels are set for the regional variable, and different regional levels correspond to different scoring weights.
[0057] Step 105: output the decision flow configuration interface to the terminal device.
[0058] In this embodiment, the decision flow configuration interface is used to provide a tool for configuring the decision flow to the decision configuration user.
[0059] Step 106: based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, orchestrate at least one decision component to generate decision flow information.
[0060] In this embodiment, the decision configuration user can arrange and adjust the order of various decision components in the decision flow configuration interface by dragging, connecting, inputting commands, etc., so as to generate decision flow information. Generally, the decision configuration user can set multiple nodes and connect these nodes to form multiple decision paths. In each node, the decision component established above can be applied, so that in the actual decision scenario, according to the acquired data, according to the nodes on the path, the rules represented by the corresponding decision component are executed to generate the decision execution result.
[0061] As an example, in a financial credit business scenario, the decision flow information generated by the above arrangement can realize the execution of decision actions in the order represented by the decision flow information, thereby scheduling external third-party credit data and the People's Bank of China's credit data.
[0062] The information decision rule configuration method provided in the embodiment of the present application provides the user with a decision variable configuration interface, a decision component configuration interface and a decision flow configuration interface, so that the user can perform variable configuration operations, decision component configuration operations and decision flow configuration operations on the above interfaces, generate a decision variable set, at least one decision component and decision flow information, and the decision process can be executed according to the generated decision flow information, thereby realizing a more detailed decision rule configuration in the visual interface, and the operational convenience and configuration flexibility of the visual configuration are greatly improved.
[0063] In some optional implementations of this embodiment, such as Figure 2 As shown, step 102 includes:
[0064] Step 1021, obtaining the basic variables input by the decision configuration user in the decision variable configuration interface.
[0065] Among them, basic variables are used to describe and measure the key factors and data involved in the decision-making process, and are used as input parameters to participate in rule judgment and decision generation. For example, a bank card number can be a basic variable, which is used in the rule to check whether the owner of the bank card meets the credit requirements. For another example, the credit risk level can be a basic variable, which can be a variable output by the decision engine (i.e., a variable output after executing the decision process based on the decision flow information), indicating the risk level of the current user.
[0066] Step 1022, obtaining the derived logic information configured by the decision configuration user in the decision variable configuration interface, and generating derived variables according to the derived logic information and the basic variables.
[0067] Among them, derived variables are additional information obtained from basic variables through a series of calculations and logical operations, which are used to assist the decision-making process and generate more accurate decision results. Derivative logical information is configured by the decision configuration user and is used to perform logical operations on basic variables. For example, age can be a derived variable used to identify the user's age, whether they are minors, etc. This variable can be calculated from the user's ID number, and the user's ID number is the basic variable.
[0068] Step 1023, obtaining the data source interface information configured by the decision configuration user in the decision variable configuration interface, and generating interface variables according to the data source interface information.
[0069] The interface variables are information obtained from external data sources, which are used to support data analysis and judgment in the decision-making process to provide more comprehensive decision support. For example, the number of days the current user's loan repayment is overdue can be received from the relevant interface and parsed from the PBOC message.
[0070] Step 1024: Generate a decision variable set based on at least one of the basic variables, the derived variables, and the interface variables.
[0071] That is, the decision variable set includes at least one of the above variables.
[0072] This embodiment provides a configuration interface for basic variables, derived variables and interface variables to the decision configuration user, thereby providing richer variables for the decision process, allowing the decision flow information to execute a decision process in more dimensions, thereby obtaining more accurate decision results.
[0073] In some optional implementations of this embodiment, such as Figure 3 As shown, step 104 includes:
[0074] Step 1041: Select at least one initial decision component from at least two preset initial decision components.
[0075] The selection of the initial component can be achieved through the configuration operation of the decision configuration user. The initial decision component is a configurable component template provided to the decision configuration user. The at least one initial decision component includes but is not limited to at least one of the following: a decision tree, a decision table, a score card, and a rule set.
[0076] The above decision tree is a data structure that uses a tree structure to express business rules. It can quickly and effectively associate multiple related rules. Through the tree relationship, the decision logic at each level can be clearly represented. When the decision process is executed, each decision node can be quickly traversed to check whether the conditions are met. If the conditions are met, it can be traversed further to eventually find the logical conditions and calculation methods used. For example, in a credit business scenario, the business logic of each node is judged, and by judging whether the user has a history of repayment, it is determined to which category the user ultimately belongs and what decision method is executed.
[0077] The above decision table is a graphical decision-making method in the form of a table. It is suitable for handling situations where there are many judgment conditions, and the conditions are combined with each other and there are multiple decision-making options. The corresponding actions or decisions are executed after multiple conditions are met. For example, in the credit business decision-making process, it is necessary to output the user's credit rating in combination with the user's risk rating and consumption capacity, and finally determine the user's approval result and loan amount through the rating. The cross matrix of the decision table can clearly and quickly complete the corresponding decision output.
[0078] The above-mentioned scorecard is a numerical expression after analyzing and integrating the relevant information of the target object (such as an individual user), which can usually be used for risk management and assessment of the target object. The scorecard uses a two-dimensional form to display the various attributes of the target object, set conditions for different sections for different attributes, and set corresponding scores and weights. When the decision-making process is executed, the score of the target object will be automatically calculated according to the defined channel conditions (such as user age, region, occupation, etc.), and whether the target object meets the relevant conditions will be defined based on the score. For example, the score is used to determine whether the user meets the loan conditions.
[0079] The above rule set may include judgment rules, logic rules, conditional rules, action rules and other types. The decision configuration user can select the variables to be used to perform relevant logical judgments and action outputs. For example, during the decision execution process, the user's geographical location can be used to determine whether to approve or reject the user.
[0080] Step 1042: Set the decision variables corresponding to at least one initial decision component from the decision variable set, and set the operation rule information.
[0081] Since the initial decision component provides a corresponding decision template, the decision configuration user can further configure each initial decision component and set the corresponding decision variables and operation rules in each initial decision component. The operation rule information may include information such as logical operators, arithmetic operators, and numerical thresholds. This information constitutes the operation rules to operate or judge the corresponding variables.
[0082] For example, in the scorecard component, you can set decision variables such as user age, region, and occupation. According to the set operation rule information, the score of the target object is automatically calculated, and based on the score, it is defined whether the target object meets the relevant conditions.
[0083] Step 1043: determine at least one initial decision component that is set with decision variables and operation rule information as at least one generated decision component.
[0084] This embodiment provides multiple initial decision components to the decision configuration user in a visual manner, and the decision configuration user configures the corresponding variables and operation rules for each selected initial decision component, so that the decision rules of each decision component can be richer and more accurate, which helps to improve the accuracy of executing the decision process based on decision flow information.
[0085] In some optional implementations of this embodiment, such as Figure 4 As shown, step 106 includes:
[0086] Step 1061: Based on the decision flow configuration operation, generate at least one decision flow path and a decision node on each decision flow path.
[0087] Specifically, the decision configuration user can create new decision nodes and decision paths in the decision flow configuration interface. The decision nodes and decision paths can be displayed in a visual manner in the decision flow configuration interface. The decision configuration user can configure each decision node and adjust the direction of the decision path.
[0088] Optionally, the types of decision nodes may include aggregation nodes, grouping nodes, diversion nodes, champion nodes, etc. Among them, the aggregation node refers to a node that merges multiple branch paths, that is, multiple paths pass through the aggregation node. Each branch path passing through the aggregation node and the decision nodes on the branch path are isolated from each other and executed in parallel.
[0089] A grouping node refers to a node belonging to a group of branch paths among multiple branch paths. In each group of branch paths, only one group of branch paths will be hit and executed for the current decision data.
[0090] A diversion node is a node that diverts the data traffic passing through the node according to a set percentage.
[0091] The champion node includes a champion branch path and at least one challenge branch path. Each branch path is isolated from each other and runs independently. Only the champion branch path participates in the final decision, and the challenge branch path does not participate in the final decision.
[0092] Step 1062: Set a corresponding decision node for each decision component in at least one decision component to obtain decision flow information including at least one decision flow path.
[0093] Optionally, the above decision nodes may also include nodes that do not have corresponding decision components. For example, the decision configuration user may customize the logical operation rules of the decision nodes.
[0094] The overall structure of the above decision flow information is similar to a workflow, which is used to arrange the execution of existing decision trees, decision tables, scorecards or sub-decision flows to clearly and intuitively implement a large and complex business rule. Decision configuration users can quickly arrange the various components they need to use and adjust the decision order through operations such as dragging and dropping.
[0095] Optionally, the decision flow information itself can represent an independent business flow, and also supports being nested as a sub-flow into a large decision parent flow for diversion management and business decision-making. This method can not only intuitively represent the execution logic of business decisions, but also ensure that each sub-decision flow does not interfere with each other.
[0096] like Figure 5 As shown, it shows a schematic diagram of decision flow information, which includes multiple nodes, data diversion is implemented at node B, data aggregation is implemented at node E, node A corresponds to a rule set, nodes C and D correspond to a decision tree respectively, node E corresponds to a decision table, node F corresponds to a scorecard, and node G performs decision result generation and output functions.
[0097] This embodiment allows decision configuration users to configure decision flow paths and decision nodes in a visual manner, and set decision components to corresponding decision nodes, thereby making the method of configuring decision flows more convenient and flexible, and helping to improve the accuracy of executing decision processes based on decision flow information.
[0098] In some optional implementations of this embodiment, such as Figure 6 As shown, after step 106, the method further includes:
[0099] Step 107: Based on the decision flow information, a decision process is executed on the preset test data to obtain a test result.
[0100] The test data can be pre-collected data that can be used to execute the decision-making process. For example, when the version of the decision flow information is upgraded from A to B, the decision flow of version B is not verified. If it is launched rashly, there will be certain risks. Therefore, a test task needs to be created, which inputs the data processed by version A into version B as test data, and the decision flow information of version B is used to perform the decision process.
[0101] Usually, a test center can be set up. After the decision flow information is generated, the decision flow information is first set to the test center, and the test center executes the test process to obtain the test results.
[0102] Step 108: If the test result is consistent with the preset reference data, the decision flow information is published to the decision engine service.
[0103] Among them, the reference data can be set according to the rules for executing the decision flow information. Continuing with the above example, after the test task executes all the test data, the output of the decision flow of version B is compared with the output of the decision flow of version A. The data output by version A is processed by the same logic as version B to obtain the reference data. If the test result is consistent with the reference data, it is determined that the decision flow information of version B meets the business requirements and can be published to the online decision engine service. The decision engine service can use the decision flow information of version B in actual scenarios to make decisions on the collected business data and obtain decision results.
[0104] This embodiment tests the generated decision flow information and publishes it to the decision engine service after passing the test, thereby ensuring that the decision flow information meets the decision requirements and improving the accuracy of the decision.
[0105] In some optional implementations of this embodiment, such as Figure 7 As shown, after step 106, the method further includes:
[0106] Step 109: receiving the data to be decided sent by the decision requesting end.
[0107] Usually, after the above decision flow information is generated, the decision flow information will be published to the decision engine service, and the decision engine service will execute the decision process for various data in the actual scenario. The above decision request end can be a terminal used by a real user. For example, if this method is applied on a server, the user can send the data to be decided to the server through a terminal such as a mobile phone or a computer.
[0108] Step 110, based on the decision flow information, execute the decision process on the decision data, obtain the decision execution result, and return the decision execution result to the decision request end.
[0109] As an example, the data to be decided can be user data (such as the user's age, occupation, credit rating, etc.) sent by a user terminal (decision request end) to a server providing credit services. A decision engine service is set up on the server. The decision engine service executes a credit review process on the user data and outputs a decision execution result containing information indicating whether the user meets the credit conditions, the loan amount, etc.
[0110] Optionally, this embodiment can be combined with the above Figure 6In combination with the corresponding embodiment, after the decision flow information is tested and qualified, it is deployed to the decision engine service, and the decision engine service executes the decision process in the actual scenario.
[0111] This embodiment deploys the decision flow information online after generating it, and executes the decision process on various data to be decided, thereby effectively utilizing the characteristic of the decision flow information that can make comprehensive decisions on data of various dimensions, and improving the accuracy of the decision process.
[0112] In some optional implementations of this embodiment, such as Figure 8 As shown, step 110 includes:
[0113] Step 1101, determine a pre-configured decision execution method.
[0114] Among them, the decision execution mode may include an asynchronous decision execution mode and a synchronous decision execution mode. If it is an asynchronous decision execution mode, execute step 1102; if it is a synchronous decision execution mode, execute step 1105.
[0115] Step 1102: If the decision execution mode is an asynchronous decision execution mode, save the data to be decided.
[0116] The data to be decided can be stored permanently or temporarily within a set period of time.
[0117] Step 1103, in response to triggering the decision execution task, the decision process is executed on the decision data based on the decision flow information to obtain a decision execution result.
[0118] The decision execution task can be triggered in various ways, such as timed triggering, or after a certain amount of data to be decided is accumulated. After starting the decision execution task, the decision flow information can be called, and the saved data to be decided can be obtained. The decision process is executed on the decision data to generate the decision execution result.
[0119] Step 1104, in response to receiving the decision query request, returning the decision execution result to the decision request end.
[0120] Typically, when the data to be decided is received, a corresponding request identifier (or serial number) can be generated. The upstream system of the decision engine service (such as a query server or a decision request end) sends a decision query request to the decision engine service (such as periodic loop sending), calls the decision execution result corresponding to the above request identifier, and returns the decision execution result directly or indirectly (for example, sent through the above query server) to the decision request end.
[0121] Step 1105, if the decision execution mode is a synchronous decision execution mode, based on the decision flow information, the decision data is treated in real time to execute the decision process, the decision execution result is obtained, and the decision execution result is returned to the decision request end.
[0122] When the decision execution mode is synchronous decision execution mode, the decision engine service can directly call the decision flow information, execute the decision process in real time, obtain the decision execution result, and return the decision execution result to the decision request end in real time.
[0123] The two decision execution modes provided in this embodiment can be arbitrarily set according to needs, so that the decision execution process can adapt to a variety of application scenarios, thereby improving the applicability of decision scenarios.
[0124] In some optional implementations of this embodiment, such as Fig. 9 As shown, step 110 includes:
[0125] Step 1106, determining whether an abnormality occurs in the decision-making process.
[0126] The method of determining whether an exception occurs can be implemented in various ways. For example, a timeout period can be set. If the execution time of the decision process exceeds the timeout period, it is determined that an exception occurs in the decision process. For another example, the valid intervals of the decision-making data of various dimensions can be set. If the corresponding valid intervals are exceeded, it is determined that an exception occurs.
[0127] Step 1107: If it is determined that an abnormality occurs in the decision-making process, a decision abnormality prompt message is sent to the manual review end.
[0128] Among them, the manual review end is the terminal where abnormal phenomena are repaired manually.
[0129] Step 1108, receiving the updated decision execution result obtained by the manual review end after repairing the decision abnormality prompt information.
[0130] The manual review end can manually analyze the decision data and repair the decision execution results; the above-mentioned decision flow information can also be set on the manual review end to manually control the decision process; the decision data can also be manually resent to the decision engine service, and the decision engine service will execute the decision process again.
[0131] Step 1109, returning the updated decision execution result to the decision requesting end.
[0132] This embodiment sets up a manual review process. When an abnormality occurs in the decision-making process, the decision execution result is repaired manually, thereby ensuring the accuracy of the decision execution result.
[0133] Fig.10A structural diagram of an information decision rule configuration device provided in an embodiment of the present application. Specifically comprising: a first output module 1001, used to output a decision variable configuration interface to a terminal device used by a decision configuration user; a first generation module 1002, used to generate a decision variable set based on a variable configuration operation performed by a decision configuration user using a decision variable configuration interface; a second output module 1003, used to output a decision component configuration interface to a terminal device; a second generation module 1004, used to generate at least one decision component based on a decision component configuration operation performed by a decision configuration user using a decision component configuration interface, wherein each decision component in at least one decision component includes at least one decision variable and at least one logical operation rule; a third output module 1005, used to output a decision flow configuration interface to a terminal device; a third generation module 1006, used to orchestrate at least one decision component and generate decision flow information based on a decision flow configuration operation performed by a decision configuration user using a decision flow configuration interface.
[0134] In some optional implementations of this embodiment, the first generation module includes: a first acquisition unit, used to acquire the basic variables entered by the decision configuration user in the decision variable configuration interface; a second acquisition unit, used to acquire the derived logic information configured by the decision configuration user in the decision variable configuration interface, and generate derived variables based on the derived logic information and the basic variables; a third acquisition unit, used to acquire the data source interface information configured by the decision configuration user in the decision variable configuration interface, and generate interface variables based on the data source interface information; the first generation unit, used to generate a decision variable set based on at least one of the basic variables, derived variables and interface variables.
[0135] In some optional implementations of this embodiment, the second generation module includes: a selection unit, used to select at least one initial decision component from at least two preset initial decision components, wherein the at least one initial decision component includes at least one of the following: a decision tree, a decision table, a scoring card and a rule set; a first setting unit, used to set decision variables corresponding to at least one initial decision component from a decision variable set, and set operation rule information; a first determination unit, used to determine at least one initial decision component that has set decision variables and operation rule information as at least one generated decision component.
[0136] In some optional implementations of this embodiment, the third generation module includes: a second generation unit, used to generate at least one decision flow path and decision nodes on each decision flow path based on the decision flow configuration operation; a second setting unit, used to set a corresponding decision node for each decision component in at least one decision component to obtain decision flow information including at least one decision flow path.
[0137] In some optional implementations of this embodiment, the device also includes: a testing module, which is used to execute a decision process on preset test data based on the decision flow information to obtain a test result; and a publishing module, which is used to publish the decision flow information to the decision engine service if the test result is consistent with the preset reference data.
[0138] In some optional implementations of this embodiment, the device also includes: a receiving module, used to receive the data to be decided sent by the decision request end; a decision module, used to execute a decision process on the decision data based on the decision flow information, obtain a decision execution result, and return the decision execution result to the decision request end.
[0139] In some optional implementations of this embodiment, the decision module includes: a second determination unit, used to determine a pre-configured decision execution mode; a saving unit, used to save the data to be decided if the decision execution mode is an asynchronous decision execution mode; a first decision unit, used to respond to the trigger to start the decision execution task, and based on the decision flow information, execute the decision process on the decision data to obtain the decision execution result; a first sending unit, used to respond to receiving a decision query request and return the decision execution result to the decision request end; a second decision unit, used to respond to the synchronous decision execution mode, and based on the decision flow information, execute the decision process on the decision data in real time to obtain the decision execution result, and return the decision execution result to the decision request end.
[0140] In some optional implementations of the present embodiment, the decision module includes: a third determination unit, used to determine whether an exception occurs in the decision process; a second sending unit, used to send a decision exception prompt message to the manual review end if it is determined that an exception occurs in the decision process; a receiving unit, used to receive an updated decision execution result obtained by the manual review end after repairing the decision exception prompt message; and a third sending unit, used to return the updated decision execution result to the decision request end.
[0141] The information decision rule configuration device provided in this embodiment can be as follows Fig.10 The information decision rule configuration device shown in can execute all the steps of the above information decision rule configuration methods, thereby realizing the technical effects of the above information decision rule configuration methods. For details, please refer to the above related description. For the sake of brevity, it will not be repeated here.
[0142] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Fig.11The electronic device 1100 shown includes: at least one processor 1101, a memory 1102, at least one network interface 1104 and other user interfaces 1103. The various components in the electronic device 1100 are coupled together via a bus system 1105. It is understood that the bus system 1105 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 1105 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 1105 is not described in detail. Fig.11 Various buses are labeled as bus system 1105.
[0143] The user interface 1103 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0144] It can be understood that the memory 1102 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 1102 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0145] In some embodiments, the memory 1102 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 11021 and an application program 11022 .
[0146] Among them, the operating system 11021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 11022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 11022.
[0147] In this embodiment, by calling the program or instruction stored in the memory 1102, specifically, the program or instruction stored in the application 11022, the processor 1101 is used to execute the method steps provided by each method embodiment, for example, including:
[0148] Output a decision variable configuration interface to a terminal device used by a decision configuration user; generate a decision variable set based on the variable configuration operation performed by the decision configuration user using the decision variable configuration interface; output a decision component configuration interface to the terminal device; generate at least one decision component based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface, wherein each decision component in at least one decision component includes at least one decision variable and at least one logical operation rule; output a decision flow configuration interface to the terminal device; and based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, orchestrate at least one decision component to generate decision flow information.
[0149] The method disclosed in the above embodiment of the present application can be applied to the processor 1101, or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1101. The above processor 1101 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1102, and the processor 1101 reads the information in the memory 1102 and completes the steps of the above method in combination with its hardware.
[0150] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0151] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0152] The electronic device provided in this embodiment may be Fig.11 The electronic device shown in can execute all the steps of the above-mentioned information decision rule configuration methods, and thus achieve the technical effects of the above-mentioned information decision rule configuration methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0153] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0154] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned information decision rule configuration method executed on the electronic device side can be implemented.
[0155] The processor is used to execute the program stored in the memory to implement the following steps of the information decision rule configuration method executed on the electronic device side:
[0156] Output a decision variable configuration interface to a terminal device used by a decision configuration user; generate a decision variable set based on the variable configuration operation performed by the decision configuration user using the decision variable configuration interface; output a decision component configuration interface to the terminal device; generate at least one decision component based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface, wherein each decision component in at least one decision component includes at least one decision variable and at least one logical operation rule; output a decision flow configuration interface to the terminal device; and based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, orchestrate at least one decision component to generate decision flow information.
[0157] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different circuits to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0158] The steps of the circuits or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, software modules executed by a processor, or a combination of the two. The software modules may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0159] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The circuit steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0160] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for configuring information decision rules, characterized in that: The method comprises: Outputting a decision variable configuration interface to a terminal device used by a decision configuration user; Generate a decision variable set based on the variable configuration operation performed by the decision configuration user using the decision variable configuration interface; Outputting a decision component configuration interface to the terminal device; Based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface, generating at least one decision component, wherein each decision component in the at least one decision component includes at least one decision variable and at least one logical operation rule; Outputting a decision flow configuration interface to the terminal device; Based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, the at least one decision component is orchestrated to generate decision flow information.
2. The method according to claim 1, characterized in that The variable configuration operation performed by the decision configuration user using the decision variable configuration interface to generate a decision variable set includes: Obtaining basic variables input by a decision configuration user on the decision variable configuration interface; Acquire the derived logic information configured by the decision configuration user in the decision variable configuration interface, and generate derived variables according to the derived logic information and the basic variables; Acquire the data source interface information configured by the decision configuration user in the decision variable configuration interface, and generate interface variables according to the data source interface information; A decision variable set is generated based on at least one of the basic variables, the derived variables and the interface variables.
3. The method according to claim 1, characterized in that The generating at least one decision component based on the decision component configuration operation performed by the decision configuration user using the decision component configuration interface comprises: Selecting at least one initial decision component from at least two preset initial decision components, wherein the at least one initial decision component comprises at least one of the following: a decision tree, a decision table, a score card, and a rule set; From the decision variable set, setting the decision variables corresponding to the at least one initial decision component respectively, and setting the operation rule information; The at least one initial decision component in which the decision variables and the operation rule information are set is determined as at least one generated decision component.
4. The method according to claim 1, characterized in that: The step of orchestrating the at least one decision component based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface to generate decision flow information includes: Based on the decision flow configuration operation, generating at least one decision flow path and a decision node on each decision flow path; A corresponding decision node is set for each decision component in the at least one decision component to obtain decision flow information including the at least one decision flow path.
5. The method according to claim 1, characterized in that After orchestrating the at least one decision component and generating decision flow information based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, the method further includes: Based on the decision flow information, a decision process is executed on the preset test data to obtain a test result; If the test result is consistent with the preset reference data, the decision flow information is published to the decision engine service.
6. The method according to claim 1, characterized in that After orchestrating the at least one decision component and generating decision flow information based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface, the method further includes: Receive the decision-to-be-decision data sent by the decision request end; Based on the decision flow information, a decision process is executed on the data to be decided, a decision execution result is obtained, and the decision execution result is returned to the decision request end.
7. The method according to claim 6, characterized in that The step of executing a decision process on the data to be decided based on the decision flow information to obtain a decision execution result, and returning the decision execution result to the decision request end includes: Determine the pre-configured decision execution method; If the decision execution mode is an asynchronous decision execution mode, saving the data to be decided; In response to triggering the decision execution task, based on the decision flow information, the decision process is executed on the data to be decided to obtain a decision execution result; In response to receiving the decision query request, returning the decision execution result to the decision request end; If the decision execution mode is a synchronous decision execution mode, based on the decision flow information, the decision process is executed on the data to be decided in real time to obtain a decision execution result, and the decision execution result is returned to the decision request end.
8. The method according to claim 6, characterized in that The step of executing a decision process on the data to be decided based on the decision flow information to obtain a decision execution result, and returning the decision execution result to the decision request end includes: Determining whether an anomaly occurs in the decision-making process; If it is determined that an abnormality occurs in the decision-making process, a decision abnormality prompt message is sent to the manual review end; Receiving an updated decision execution result obtained by the manual review end after repairing the decision abnormality prompt information; The updated decision execution result is returned to the decision requesting end.
9. An information decision rule configuration device, characterized in that: The device comprises: A first output module, used to output a decision variable configuration interface to a terminal device used by a decision configuration user; A first generating module, configured to generate a decision variable set based on a variable configuration operation performed by a decision configuration user using the decision variable configuration interface; A second output module, used to output a decision component configuration interface to the terminal device; A second generating module, configured to generate at least one decision component based on a decision component configuration operation performed by the decision configuration user using the decision component configuration interface, wherein each decision component in the at least one decision component includes at least one decision variable and at least one logical operation rule; A third output module, used to output a decision flow configuration interface to the terminal device; The third generating module is used to arrange the at least one decision component and generate decision flow information based on the decision flow configuration operation performed by the decision configuration user using the decision flow configuration interface.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the information decision rule configuration method described in any one of claims 1 to 8 is implemented.
