CN117235093A - Visual risk early warning method, device, system, electronic equipment and medium - Google Patents

Visual risk early warning method, device, system, electronic equipment and medium Download PDF

Info

Publication number
CN117235093A
CN117235093A CN202310490892.7A CN202310490892A CN117235093A CN 117235093 A CN117235093 A CN 117235093A CN 202310490892 A CN202310490892 A CN 202310490892A CN 117235093 A CN117235093 A CN 117235093A
Authority
CN
China
Prior art keywords
early warning
rule
risk early
wind control
execution statement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310490892.7A
Other languages
Chinese (zh)
Inventor
李健青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN202310490892.7A priority Critical patent/CN117235093A/en
Publication of CN117235093A publication Critical patent/CN117235093A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a visual risk early warning method, a device, a system, electronic equipment and a medium, wherein the method comprises the following steps: acquiring early warning configuration parameters of a risk early warning rule through a front end configuration interface, wherein the early warning configuration parameters at least comprise the following elements: features, operators, thresholds, and trigger results; generating an execution statement of a risk early warning rule according to the early warning configuration parameters, and storing the execution statement in a rule base; and responding to the wind control request sent by the service system, calling a wind control engine, inquiring an execution statement corresponding to the wind control request from a rule base, executing the determined execution statement on the wind control request, and returning a wind control result. The application realizes the visual risk early warning of the business development risk early warning rule, and greatly reduces the time, labor and economic cost of risk early warning development; the framework is very lightweight, strong in performance and expansibility, can flexibly configure parameters according to service requirements, is friendly to developers, and can realize secondary development of risk early-warning codes.

Description

Visual risk early warning method, device, system, electronic equipment and medium
Technical Field
The application relates to the technical field of computers and finances, in particular to a visual risk early warning method, a visual risk early warning device, a visual risk early warning system, an electronic device and a visual risk early warning medium.
Background
In financial domain software development, a wind control rules engine is typically required to fully evaluate the risk of a current business.
Some open source rule engine projects in the current market can be referred to, and compared with the open source rule engines named by the open source rule engine projects, the open source rule engines are drools (https:// www.drools.org /), url (https:// www.bstek.com /), and the like, and the open source rule engines are all based on a Rete algorithm, so that some enterprises can perform secondary development and floor production.
Although the engine has powerful functions, the engine is heavy, has poor usability and customization, and has great limitation on secondary development of other language stacks.
Disclosure of Invention
Aiming at the situation, the embodiment of the application provides a visual risk early warning method, a visual risk early warning device, a visual risk early warning system, an electronic device and a visual risk early warning medium, so as to overcome or at least partially overcome the defects of the prior art.
In a first aspect, an embodiment of the present application provides a visual risk early warning method, including:
acquiring early warning configuration parameters of a risk early warning rule through a front-end configuration interface, wherein the early warning configuration parameters at least comprise the following elements: features, operators, thresholds, and trigger results;
generating an execution statement of a risk early warning rule according to the early warning configuration parameters, and storing the execution statement in a rule base;
and responding to the wind control request sent by the service system, calling a wind control engine, inquiring an execution statement corresponding to the wind control request from the rule base, executing the determined execution statement on the wind control request, and returning a wind control result.
In a second aspect, an embodiment of the present application further provides a visual risk early warning device, where the device includes:
the parameter acquisition unit is used for acquiring early warning configuration parameters of the risk early warning rule through the front end configuration interface, and the risk early warning configuration parameters at least comprise the following elements: features, operators, thresholds, and trigger results;
the rule generation unit is used for generating an execution statement of the risk early warning rule according to the risk early warning configuration parameters and storing the execution statement in a rule base;
and the risk early warning unit is used for responding to the wind control request sent by the service system, calling a wind control engine, inquiring an execution statement corresponding to the wind control request from the rule base, executing the determined execution statement on the wind control request, and returning a wind control result.
In a third aspect, an embodiment of the present application includes a visual risk early warning system, including: the early warning server and a plurality of development terminals; each development terminal is in communication connection with the early warning server; the visual risk early warning device is deployed on the early warning server, and the early warning server communicates with at least one service system;
the development terminal is used for displaying a front-end configuration interface provided by the early warning server; and responding to the configuration operation of the front-end configuration interface, and sending the acquired risk early warning configuration parameters to the early warning server.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method described above.
In a fifth aspect, embodiments of the present application also provide a computer-readable storage medium storing one or more programs, which when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the above-described method.
The above at least one technical scheme adopted by the embodiment of the application can achieve the following beneficial effects:
the method acquires the early warning configuration parameters of the risk early warning rule through the visualized front-end configuration interface, wherein the early warning configuration parameters at least comprise: and generating an execution statement of the risk early warning rule according to the early warning configuration parameters, and storing the execution statement in a rule base for calling after the execution statement is generated. After receiving the wind control request of the service system, responding to the wind control request, searching a corresponding execution statement from a rule base, executing the execution statement on the wind control request, obtaining a wind control result, and returning to the service system. The application supports decision design, service strategy updating and deployment, opens a browser, can realize complex rule decision without coding, and service personnel independently configure service rules, almost has no learning cost, realizes instant use by realizing instant distribution through efficient change and online of a visual page, supports local, cloud and container deployment, and supports micro-service architecture; the application realizes the visual risk early warning of the business development risk early warning rule, and greatly reduces the time, labor and economic cost of risk early warning development; the framework is very lightweight, strong in performance and expansibility, can flexibly configure parameters according to service requirements, is friendly to developers, and can easily realize secondary development of risk early-warning codes; the alterability is strong, the participation degree of business personnel is obviously improved, and the risk early warning development accuracy is strong, the period is short and the pertinence is strong; in addition, the practicability is strong, and the application scene is wide.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 shows a flow diagram of a method of visual risk early warning according to one embodiment of the application;
FIG. 2 shows a schematic diagram of a visual risk early warning system according to one embodiment of the present application;
FIG. 3 shows a schematic diagram of a front end configuration interface, according to one embodiment of the application;
FIG. 4 shows a schematic diagram of a front end configuration interface according to another embodiment of the application;
FIG. 5 shows a schematic structural diagram of a visual risk early warning device according to one embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
In the prior art, in the software development in the financial field, a wind control rule engine is generally required to comprehensively evaluate the risk of the current business. At present, a set of business decision engine systems are extremely high in cost and require continuous money adding and customization, some open-source rule engine projects in the market can be referred to, and compared with open-source rule engines which are widely used, namely drools (https:// www.drools.org /), url (https:// www.bstek.com /), and the like, the rule engines are all based on a Rete algorithm, and in use, the open-source rule engines are produced by secondary development of enterprises. While powerful, such engines are sometimes "heavy", cumbersome, and difficult to use and customize, and difficult to develop secondarily for other language stacks, such as drools, which is prohibitively expensive to learn.
Fig. 1 shows a flow chart of a method for visualizing risk early warning of a service according to an embodiment of the present application, and as can be seen from the embodiment shown in fig. 1, the present application at least includes steps S110 to S130:
step S110: acquiring early warning configuration parameters of a risk early warning rule through a front-end configuration interface, wherein the early warning configuration parameters at least comprise the following elements: features, operators, thresholds, and trigger results.
The formation of the risk early warning rules changes the traditional coding-dependent mode, and adopts a configuration mode.
Fig. 2 shows a schematic structural diagram of a visual risk early warning system according to an embodiment of the present application, and as can be seen from fig. 2, a visual risk early warning system 200 of the present application includes: an early warning server 210 and a plurality of development terminals 220; each development terminal 220 is in communication connection with the early warning server 210; the early warning server 210 deploys a visual risk early warning device 500 capable of implementing the visual risk early warning method of the present application, and the early warning server 210 communicates with at least one service system 300.
The front-end configuration interface is provided by the early warning server 210, and can be displayed on the development terminal 220, and a developer or a service person can set early warning configuration parameters on the front-end configuration interface displayed on the development terminal 220. The development terminal 220 transmits to the alert server 210 after receiving the alert configuration parameters.
The early warning configuration parameters may include, but are not limited to, elements such as features, operators, and thresholds, please refer to the following examples, which illustrate what is a rule and decision:
the rules are: "if the ticket opening amount is less than 50 ten thousand, the processing is refused", and abstract modeling is carried out on the rule to form a conditional expression: feature (amount of ticket) operator (less than) threshold (50) - > triggers result (reject). Namely, a feature, an operator and a threshold value, which form a conditional expression condition, and a trigger result definition are added to form a basic element of a rule. To sum up: the method comprises the steps of running a rule, calculating characteristics (invoice amount) through original data (invoice data), substituting conditional expressions (the invoice amount is less than 50 ten thousand) for calculation, performing logic operation on a plurality of expressions, and finally determining a trigger result according to logic operation (true/false).
In order to facilitate the operation of the developer, some parameters in the elements such as the characteristics, operators, threshold values and the like can be set with default values, and if the developer does not modify the parameters, the parameters can be set with default values. And some of these parameters are optional, and may be set or not set as needed, which is not limiting to the present application.
Because the visual risk early warning method can be realized through a simple configuration mode of the front end, in the application, developers are not limited to software development professionals, and common business personnel or operators can also directly develop risk early warning rules.
In some embodiments of the present application, in the above method, the acquiring risk early warning configuration parameters through a front end configuration interface includes: receiving the risk early warning configuration parameters in response to a configuration instruction of the front-end configuration interface, wherein the front-end configuration interface comprises a plurality of types of rule controls; the plurality of types of rule controls include conditional rule controls and scoring rule controls.
In order to realize the visualization of the foregoing functions, multiple controls may be provided in the front-end configuration interface to perform the method and encapsulation of the data. In some embodiments of the application, the front-end configuration interface includes multiple types of rule controls, including, but not limited to: conditional rule controls, scoring rule controls, and the like. The developer can select according to the business requirement.
Wherein, the conditional rule control includes: rule name sub-control, if condition sub-control, then result sub-control, otherwise sub-control. The logical selectable items of the conditional sub-control include: and, or, and logical not, and the condition sub-control includes at least one condition configuration item.
As shown in fig. 3, fig. 3 shows a schematic diagram of a front-end configuration interface according to an embodiment of the present application, which is a front-end configuration interface of a conditional rule, where the conditional rule includes: rule names, conditions, then, else, etc.
Referring to the contents of fig. 3, the rule name is a car as a house transaction; the logical selectable item of conditional is and; and represents the logical relationship between the conditions, including 3 conditions in the condition configuration item, one of which is a debit occurrence greater than 0 and the other of which is a summary or remark comprising: purchase vehicle, purchase room, house loan, vehicle loan, house money, vehicle money, and the summary and remarks do not include: vehicle washing, vehicle washing engineering and vehicle service; then a car as a house transaction; otherwise, others.
In other embodiments of the present application, in the above method, the scoring rule control includes: rule name sub-control, weighting scoring control, total sub-control, calculation mode sub-control, characteristic sub-control, judgment condition sub-control and score threshold sub-control; wherein the selectable items of the weighted scoring control include: yes, and no; selectable items of the computing mode sub-control include: summing, differencing, integrating and integrating; and the feature sub-control is associated with an newly added conditional option and a deleted feature option.
Referring to fig. 4, as shown in fig. 4, fig. 4 is a schematic diagram illustrating a front-end configuration interface according to another embodiment of the present application, which is a front-end configuration interface of a scoring rule, including: rule name sub-control, weighting scoring sub-control, total sub-control, calculation mode sub-control, characteristic sub-control, judgment condition sub-control and score threshold sub-control.
Referring to the contents in fig. 4, the rule names are scoring cards, the weighted scores are no, the total score is 260, the calculation mode is summation, and the characteristics include a plurality of pieces, as shown in the figure, the characteristic with the serial number of 1 is a first content, the condition is larger than a first value, the score is a first score, the characteristic with the serial number of 2 is a second content, the condition is smaller than a second value, the score is a second score, the characteristic with the serial number of 3 is a third content, the condition is smaller than a third value, the score is a third score, the characteristic with the serial number of 4 is a fourth content, the condition is smaller than a fourth value, and the score is a fourth score.
Step S120: and generating an execution statement of the risk early warning rule according to the early warning configuration parameters, and storing the execution statement in a rule base.
After receiving the foregoing early warning configuration parameters, the early warning server 210 may generate an execution statement of the risk early warning rule according to the specific parameters therein, and after receiving the configured features, operators, thresholds, trigger results, and the like, the early warning server 210 abstracts the early warning configuration parameters into an execution statement representing risk early warning service logic, where the execution statement may be, but is not limited to, in the form of an expression.
In some embodiments of the present application, the generating, according to the early warning configuration parameter, an execution sentence of a risk early warning rule and storing the execution sentence in a rule base includes: integrating each element in the risk early warning configuration parameters into yaml format content; calling a parser to parse and convert the yaml format content to generate Java objects in the form of QLExpress expressions; and taking the Java object as the execution statement and storing the Java object in a rule base.
The following is a simplified abstract modeling according to the business to simply explain the generation of the execution statement, firstly, a yaml format is utilized to generate a custom DSL with the semantics of the wind control industry according to the early warning configuration parameters, and the custom DSL is as follows:
ruleId:139
ruleName:"test2"
priority:0
conditions:
-
feature:feature2
operator:"<"
threshold:
type:int
value:18
-
feature:feature3
operator:">"
threshold:
type:int
value:50
logic:"||"
depends:[feature2,feature3]
decision after # hit: pass, reject, record
decision:'pass'。
With the execution statement DSL, it is then parsed to load and convert yaml format data content into Java objects, where the Java objects include QLExpress expressions, which should be noted: the Java object is a character string executable by the wind control engine, and the analysis process of yaml format content can be referred as follows:
@Data
public class RuleDSL implements Serializable{
private static final long serialVersionUID=2705634673516417541L;
/**
* Rule ID
*/
@JsonFormat(shape=JsonFormat.Shape.STRING)
private Long ruleId;
/**
* The higher the priority, the smaller the number, the higher the priority
*/
private Integer priority=0;
/**
* Rule name
*/
private String ruleName;
/**
* One or more expression sets, a plurality of expression sets represent loops to operate on conditions, and then all results are subjected to logic operation according to rule
*/
private List<ConditionDSL>conditions;
/**
* Logical operation between expressions: AND, OR, etc
*/
private String logic;
/**
* Key of feature value for replacing feature placeholder of actual operation rule
*/
private List<String>depends;
/**
* Decision after hit
*/
private DecisionDSL decision;
/**
* Decision after miss
*/
private DecisionDSL elseDecision;
}。
Namely, a parser (also called an adapter) is written into a regular DSL (RuleDSL) structure body to parse, the RuleDSL structure body contains expression conditions, the conditions are circularly operated, then all results are logically operated according to set logic (and/or non-equal logic) again, finally, a wind control result is obtained, if the result is true, a trigger result decision rule.
In the context of fig. 3, the logic expressed by the execution statement of the risk early warning rule that it generates is: if a service satisfies the debit occurrence rate greater than 0, and the abstract or remark comprises: purchase of car, purchase of house, house credit, car credit, house money, car money, and abstract and remarks do not contain: vehicle washing, vehicle washing engineering and vehicle service; then a car as a house transaction; and if one of the items is not satisfied, the other item is the other item.
Referring to fig. 4 again, the logic expressed by the execution statement of the generated risk early warning rule is: and if the characteristic with the sequence number of 1 is met, accumulating the first score, if the characteristic with the sequence number of 2 is met, accumulating the second score, if the characteristic with the sequence number of 3 is met, accumulating the third score, if the characteristic with the sequence number of 4 is met, accumulating the fourth score, and finally adding the first score, the second score, the third score and the fourth score to obtain a final score.
Step S130: and responding to the wind control request sent by the service system, calling a wind control engine, inquiring an execution statement corresponding to the wind control request from the rule base, executing the determined execution statement on the wind control request, and returning a wind control result.
When the risk early warning needs to be performed, the service system 300 can send a wind control request to the visual risk early warning system 200, specifically send the wind control request to the early warning server 210, the early warning server 210 calls a wind control engine preset in the early warning server 210 to analyze the wind control request, obtain information carried in the wind control request, read an execution statement corresponding to the wind control request from a rule base, execute the corresponding execution statement based on the information carried in the wind control request, obtain a wind control result, and return to the service system 300.
In some embodiments of the present application, the responding to the wind control request sent by the service system invokes a wind control engine, queries a target execution statement corresponding to the wind control request from the rule base, executes a determined execution statement for the wind control request, and returns a wind control result, including: inquiring an execution statement corresponding to the determined wind control type from the rule base according to the wind control type of the sub-control request, and taking the execution statement as a target execution statement; analyzing the wind control request to obtain source data carried in the wind control request; taking the source data as characteristic content and adding the characteristic content into the target execution statement; and executing the target execution statement to obtain a wind control result and returning.
After receiving the wind control request, the early warning server 210 analyzes and determines the wind control type of the wind control request, if the wind control request is a conditional early warning, reads the conditional early warning rule from the rule base, adds the source data carried in the wind control request as characteristic content to the corresponding position of the target execution statement, executes the target execution statement, and can obtain the wind control result, and returns to the service system 300.
As can be seen from the method shown in fig. 1, the early warning configuration parameters of the risk early warning rule are obtained through the visual front end configuration interface, wherein the early warning configuration parameters at least comprise: and generating an execution statement of the risk early warning rule according to the early warning configuration parameters, and storing the execution statement in a rule base for calling after the execution statement is generated. After receiving the wind control request of the service system, responding to the wind control request, searching a corresponding execution statement from a rule base, executing the execution statement on the wind control request, obtaining a wind control result, and returning to the service system. The application supports decision design, service strategy updating and deployment, opens a browser, can realize complex rule decision without coding, and service personnel independently configure service rules, almost has no learning cost, realizes instant use by realizing instant distribution through efficient change and online of a visual page, supports local, cloud and container deployment, and supports micro-service architecture; the application realizes the visual risk early warning of the business development risk early warning rule, and greatly reduces the time, labor and economic cost of risk early warning development; the framework is very lightweight, strong in performance and expansibility, can flexibly configure parameters according to service requirements, is friendly to developers, and can easily realize secondary development of risk early-warning codes; the alterability is strong, the participation degree of business personnel is obviously improved, and the risk early warning development accuracy is strong, the period is short and the pertinence is strong; in addition, the practicability is strong, and the application scene is wide.
Fig. 5 shows a schematic structural diagram of a visual risk early warning device according to an embodiment of the present application, and as can be seen from fig. 5, the visual risk early warning device 500 includes:
the parameter obtaining unit 510 is configured to obtain, through a front-end configuration interface, an early-warning configuration parameter of a risk early-warning rule, where the risk early-warning configuration parameter at least includes the following elements: features, operators, thresholds, and trigger results;
a rule generating unit 520, configured to generate an execution statement of the risk early warning rule according to the risk early warning configuration parameter, and store the execution statement in a rule base;
and the risk early-warning unit 530 is configured to respond to a wind control request sent by the service system, call a wind control engine, query an execution statement corresponding to the wind control request from the rule base, execute the determined execution statement on the wind control request, and return a wind control result.
In some embodiments of the present application, in the foregoing apparatus, the parameter obtaining unit 510 is configured to receive the risk early warning configuration parameter in response to a configuration instruction for the front end configuration interface, where the front end configuration interface includes a plurality of types of rule controls; the plurality of types of rule controls include conditional rule controls and scoring rule controls.
In some embodiments of the present application, in the above apparatus, the conditional rule control includes: rule name sub-control, if condition sub-control, then result sub-control, otherwise sub-control; the logical selectable items of the conditional sub-control include: and, or, and logical not, and the condition sub-control includes at least one condition configuration item.
In some embodiments of the present application, in the above apparatus, the scoring rule control includes: rule name sub-control, weighting scoring sub-control, total sub-control, calculation mode sub-control, characteristic sub-control, judgment condition sub-control and score threshold sub-control; wherein the selectable items of the weighted scoring control include: yes, and no; selectable items of the computing mode sub-control include: summing, differencing, integrating and integrating; and the feature sub-control is associated with an newly added conditional option and a deleted feature option.
In some embodiments of the present application, in the above apparatus, the rule generating unit 520 is configured to integrate each element in the risk early warning configuration parameter into yaml format content; calling a parser to parse the yaml format content and converting the yaml format content into a Java object, wherein the Java object comprises a QLExpress expression; and taking the Java object as the execution statement and storing the Java object in a rule base.
In some embodiments of the present application, in the foregoing apparatus, the risk early-warning unit 530 is configured to query, according to the wind control type of the sub-control request, an execution statement corresponding to the determined wind control type from the rule base, as a target execution statement; analyzing the wind control request to obtain source data carried in the wind control request; taking the source data as characteristic content and adding the characteristic content into the target execution statement; and executing the target execution statement to obtain a wind control result and returning.
It should be noted that, the service visual risk early-warning device can implement the service visual risk early-warning method one by one, which is not described here again.
Fig. 6 is a schematic structural view of an electronic device according to an embodiment of the present application. Referring to fig. 6, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then operates the computer program to form the visual risk early warning device of the service on the logic level. And the processor is used for executing the program stored in the memory and particularly used for executing the method.
The method executed by the service visualization risk early warning device disclosed in the embodiment of fig. 5 of the present application can be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the method executed by the service visual risk early-warning device in fig. 5, and implement the function of the service visual risk early-warning device in the embodiment shown in fig. 5, which is not described herein.
The embodiment of the application also provides a computer readable storage medium, which stores one or more programs, the one or more programs include instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to execute the method executed by the visual risk early warning device for services in the embodiment shown in fig. 5, and is specifically used to execute the foregoing method.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. The visual risk early warning method is characterized by comprising the following steps of:
acquiring early warning configuration parameters of a risk early warning rule through a front-end configuration interface, wherein the early warning configuration parameters at least comprise the following elements: features, operators, thresholds, and trigger results;
generating an execution statement of a risk early warning rule according to the early warning configuration parameters, and storing the execution statement in a rule base;
and responding to the wind control request sent by the service system, calling a wind control engine, inquiring an execution statement corresponding to the wind control request from the rule base, executing the determined execution statement on the wind control request, and returning a wind control result.
2. The method of claim 1, wherein the obtaining risk early warning configuration parameters via a front end configuration interface comprises:
receiving the risk early warning configuration parameters in response to a configuration instruction of the front-end configuration interface, wherein the front-end configuration interface comprises a plurality of types of rule controls;
the plurality of types of rule controls include conditional rule controls and scoring rule controls.
3. The method of claim 2, wherein the conditional rule control comprises: rule name sub-control, if condition sub-control, then result sub-control, otherwise sub-control;
the logical selectable items of the conditional sub-control include: and, or, and logical not, and the condition sub-control includes at least one condition configuration item.
4. The method of claim 2, wherein the scoring rule control comprises: rule name sub-control, weighting scoring sub-control, total sub-control, calculation mode sub-control, characteristic sub-control, judgment condition sub-control and score threshold sub-control;
wherein the selectable items of the weighted scoring control include: yes, and no;
selectable items of the computing mode sub-control include: summing, differencing, integrating and integrating;
and the feature sub-control is associated with an newly added conditional option and a deleted feature option.
5. The method according to claim 1, wherein the generating the execution statement of the risk early warning rule according to the early warning configuration parameter and storing the execution statement in a rule base includes:
integrating each element in the risk early warning configuration parameters into yaml format content;
calling a parser to parse the yaml format content and converting the yaml format content into a Java object, wherein the Java object comprises a QLExpress expression;
and taking the Java object as the execution statement and storing the Java object in a rule base.
6. The method according to claim 1, wherein the responding to the wind control request sent by the service system, calling a wind control engine, querying an execution statement corresponding to the wind control request from the rule base, executing the determined execution statement on the wind control request, and returning a wind control result, includes:
inquiring an execution statement corresponding to the determined wind control type from the rule base according to the wind control type of the sub-control request, and taking the execution statement as a target execution statement;
analyzing the wind control request to obtain source data carried in the wind control request;
taking the source data as characteristic content and adding the characteristic content into the target execution statement;
and executing the target execution statement to obtain a wind control result and returning.
7. A visual risk early warning device, the device comprising:
the parameter acquisition unit is used for acquiring early warning configuration parameters of the risk early warning rule through the front end configuration interface, and the risk early warning configuration parameters at least comprise the following elements: features, operators, thresholds, and trigger results;
the rule generation unit is used for generating an execution statement of the risk early warning rule according to the risk early warning configuration parameters and storing the execution statement in a rule base;
and the risk early warning unit is used for responding to the wind control request sent by the service system, calling a wind control engine, inquiring an execution statement corresponding to the wind control request from the rule base, executing the determined execution statement on the wind control request, and returning a wind control result.
8. A visual risk early warning system, the visual risk early warning system comprising: the early warning server and a plurality of development terminals; each development terminal is in communication connection with the early warning server; the visual risk early warning device of claim 7 is deployed on the early warning server, and the early warning server communicates with at least one service system;
the development terminal is used for displaying a front-end configuration interface provided by the early warning server; and responding to the configuration operation of the front-end configuration interface, and sending the acquired risk early warning configuration parameters to the early warning server.
9. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the method of any of claims 1 to 6.
10. A computer readable storage medium storing one or more programs, which when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the method of any of claims 1-6.
CN202310490892.7A 2023-04-28 2023-04-28 Visual risk early warning method, device, system, electronic equipment and medium Pending CN117235093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310490892.7A CN117235093A (en) 2023-04-28 2023-04-28 Visual risk early warning method, device, system, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310490892.7A CN117235093A (en) 2023-04-28 2023-04-28 Visual risk early warning method, device, system, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN117235093A true CN117235093A (en) 2023-12-15

Family

ID=89091773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310490892.7A Pending CN117235093A (en) 2023-04-28 2023-04-28 Visual risk early warning method, device, system, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117235093A (en)

Similar Documents

Publication Publication Date Title
CN113065656B (en) Rule engine configuration method and device, server and readable storage medium
CN107563757B (en) Data risk identification method and device
CN113590497A (en) Business service test method and device, electronic equipment and storage medium
CN111523677B (en) Method and device for realizing interpretation of prediction result of machine learning model
CN110929039A (en) Data processing method, device, equipment and storage medium
CN110674188A (en) Feature extraction method, device and equipment
CN111062490B (en) Method and device for processing and identifying network data containing private data
CN114282011B (en) Knowledge graph construction method and device, and graph calculation method and device
CN110245684B (en) Data processing method, electronic device, and medium
CN111427915A (en) Information processing method and device, storage medium and electronic equipment
CN112149103A (en) Electronic order processing-based E-commerce platform intrusion detection method and computer equipment
CN110972086A (en) Short message processing method and device, electronic equipment and computer readable storage medium
CN112667790A (en) Intelligent question and answer method, device, equipment and storage medium
CN112612872A (en) Method, device, equipment and storage medium for realizing artificial intelligence interpretability
CN109120509B (en) Information collection method and device
CN117235093A (en) Visual risk early warning method, device, system, electronic equipment and medium
JP7504153B2 (en) Apparatus, recording medium, program and method for providing data associated with a shopping mall web page
CN110705637A (en) User classification method and device based on application installation list information and electronic equipment
CN116522131A (en) Object representation method, device, electronic equipment and computer readable storage medium
CN115809259A (en) Data query method, terminal and server based on SQL
CN114611500A (en) Expression processing method and device, electronic equipment and computer readable storage medium
CN113434436A (en) Test case generation method and device, electronic equipment and storage medium
CN117992598B (en) Demand response method, device, medium and equipment based on large model
US20240184996A1 (en) Method and system for generating contextual explanation for model predictions
CN117194094A (en) Data processing method, device, storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination