Enterprise risk early warning method, device, equipment and readable storage medium
Through the enterprise credit risk early warning model based on graph sequence neural network, the problems of low information processing efficiency and insufficient coverage in enterprise default risk judgment are solved, and more accurate risk early warning and more efficient risk judgment are achieved.
Patent Information
- Application Number
- CN202011035381.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-09-27
AI Technical Summary
The existing technology has problems of low information processing efficiency and insufficient coverage in corporate default risk judgment, making it difficult to effectively use machine learning algorithms for risk warning.
An enterprise credit risk early warning model based on graph sequence neural network is used to draw the enterprise association map by obtaining the status information of entity objects, and the graph attention mechanism neural network and recurrent neural network are used to calculate the risk assessment value, and credit risk prediction is performed based on the time and space dimensions. .
It achieves more accurate enterprise risk warnings, covers more cases, improves the efficiency and accuracy of risk judgment, and can send risk warning messages in a timely manner.
Smart Images

Figure CN112150013B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent decision-making technology, and in particular to an enterprise risk early warning method, device, equipment and readable storage medium. Background Art
[0002] In recent years, domestic corporate bonds have begun to break the rigid redemption rule, default events have occurred, and the number of defaults has shown an increasing trend. Therefore, it is becoming increasingly important to control the risk of the bond market and to issue early warnings to bond issuers with credit risks to avoid major losses to investors. The existing way to judge whether a company has a risk of default is for risk control personnel to use expert experience and their reasoning logic to make risk judgments based on various announcement information of the company. Due to the limitations of the experience and perspective coverage of different professionals, it is difficult to cover all cases and it is easy to miss them. With the continuous development of machine learning algorithms, machine learning algorithms are increasingly being applied to various fields to solve problems such as data prediction, data classification, and data clustering. However, the application of machine learning algorithms to the field of corporate default risk judgment still has the following technical problems: 1) How to process various announcement information of the company into information that can be used by machine learning algorithms, and 2) How to improve the efficiency of machine learning algorithms in using various announcement information of the company. Summary of the invention
[0003] The purpose of the present invention is to provide an enterprise risk early warning method, device, equipment and storage medium, which can determine the risk impact relationship between enterprises, so as to more accurately carry out enterprise risk early warning.
[0004] According to one aspect of the present invention, there is provided a method for early warning of enterprise risks, the method comprising:
[0005] When a risk warning instruction is received, state information of multiple entity objects in multiple continuous time intervals is obtained; wherein the state information includes: association relationships between the entity objects;
[0006] According to the state information of multiple entity objects in each time interval, an enterprise association map corresponding to each time interval is drawn respectively; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects;
[0007] For a target entity object, the risk assessment value of the target entity object is calculated in chronological order according to the enterprise association maps of each time interval and using a preset risk assessment model;
[0008] Determine whether the risk assessment value of each entity object is greater than a preset threshold. If so, send a risk warning message to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold.
[0009] Optionally, drawing the enterprise association graph corresponding to each time interval according to the status information of the multiple entity objects in each time interval includes:
[0010] According to the status information of multiple entity objects in a time interval, drawing nodes representing each entity object in the enterprise association map corresponding to the time interval, and setting node attributes for each node of the entity object; wherein the node attributes include: a potential risk value set for the entity object in the time interval;
[0011] Draw edges between nodes in the enterprise association graph according to the association relationships between entity objects, and set edge attributes for each edge; wherein the edge attributes include: an association vector for characterizing the type of association relationship, the association vector is a 1×N dimensional vector, and N is the number of types of association relationship types.
[0012] Optionally, for a target entity object, the risk assessment value of the target entity object is calculated in chronological order according to the enterprise association graphs of each time interval and using a preset risk assessment model, including:
[0013] For a time interval t of the target entity object, according to the enterprise association graph of the time interval t, obtain the potential risk value of the target entity object in the time interval t and the association vector between the target entity object and the associated object; wherein the associated object is an entity object represented by other nodes connected to the node representing the target entity object through an edge;
[0014] According to the potential risk value, the correlation vector and the hidden risk impact factor H transferred from the last time interval t-1 to the time interval t t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ;
[0015] Calculate the hidden risk impact factor from each time interval to the next time interval in sequence, until the hidden risk impact factor H from the time interval t+N to the current time point is calculated. t+N ; Among them, the time interval t+N is the previous time interval of the current time point;
[0016] According to the hidden risk impact factor H t+N A risk assessment value of the target entity object is calculated.
[0017] Optionally, the hidden risk impact factor H transmitted from the last time interval t-1 to the time interval t is t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ,include:
[0018] The update gate U is calculated according to the following formula: t :
[0019] U t =f(GAT xu (X t ; R t )+GAT hu (X t , H t-1 ; R t ));
[0020] Among them, f() is the sigmoid function;
[0021] X t is the potential risk value of the target entity object in the time interval t;
[0022] R t is the association vector between the target entity object and the associated object within the time interval t;
[0023] H t-1 It is the hidden risk impact factor transferred from the previous time interval t-1 to the time interval t;
[0024] GAT xu It is the first GAT model built based on the graph attention mechanism neural network GAT;
[0025] GAT hu The second GAT model built based on the graph attention mechanism neural network GAT;
[0026] The reset gate S is calculated according to the following formula: t :
[0027] S t =f(GAT xs (X t ; R t )+GAT hs (X t , H t-1 ; R t ));
[0028] Among them, f() is the sigmoid function;
[0029] GATxs The third GAT model is built based on the graph attention mechanism neural network GAT;
[0030] GAT hs The fourth GAT model is built based on the graph attention mechanism neural network GAT;
[0031] Calculate the current risk impact factor H according to the following formula: t- :
[0032] H t- =t(GAT xh (X t ; R t )+S t *GAT hh (X t , H t-1 ; R t ));
[0033] Where t() is the tanh function;
[0034] GAT xh The fifth GAT model built based on the graph attention mechanism neural network GAT;
[0035] GAT hh The sixth GAT model built based on the graph attention mechanism neural network GAT;
[0036] The hidden risk impact factor H from time interval t to the next time interval t+1 is calculated according to the following formula: t :
[0037] H t =(1-U t )*H t- +U t *H t-1 .
[0038] Optionally, the hidden risk impact factor H t+N Calculating the risk assessment value of the target entity object includes:
[0039] Calculate the risk assessment value V of the target entity object according to the following formula + :
[0040] V + =H t+N +V _ ;
[0041] Among them, V _ is the potential risk value of the target entity object at the current time point.
[0042] Optionally, the risk assessment model is a model that combines a graph neural network (GNN) and a recurrent neural network (RNN).
[0043] In order to achieve the above object, the present invention also provides an enterprise risk early warning device, the device comprising:
[0044] The receiving module is used to obtain the state information of multiple entity objects in multiple continuous time intervals respectively when receiving the risk warning instruction; wherein the state information includes: the association relationship between each entity object;
[0045] A drawing module, used to draw an enterprise association map corresponding to each time interval according to the state information of multiple entity objects in each time interval; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects;
[0046] A calculation module, for calculating a risk assessment value of a target entity object according to the enterprise association graphs of each time interval in chronological order and using a preset risk assessment model;
[0047] The warning module is used to determine whether the risk assessment value of each entity object is greater than a preset threshold. If so, a risk warning message is sent to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold.
[0048] Optionally, the drawing module is used to:
[0049] According to the status information of multiple entity objects in a time interval, drawing nodes representing each entity object in the enterprise association map corresponding to the time interval, and setting node attributes for each node of the entity object; wherein the node attributes include: a potential risk value set for the entity object in the time interval;
[0050] Draw edges between nodes in the enterprise association graph according to the association relationships between entity objects, and set edge attributes for each edge; wherein the edge attributes include: an association vector for characterizing the type of association relationship, the association vector is a 1×N dimensional vector, and N is the number of types of association relationship types.
[0051] In order to achieve the above-mentioned purpose, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the enterprise risk warning method introduced above are implemented.
[0052] In order to achieve the above-mentioned object, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the enterprise risk early warning method introduced above are implemented.
[0053] The enterprise risk early warning method, device, equipment and storage medium provided by the present invention are as follows: since in terms of time, the future state of an enterprise is not only related to its own state at the current time point, but also related to its own continuous state in the past period of time; in terms of space, the credit risk of a company is not only related to its own state information, but also affected by its external related parties; therefore, the present invention proposes an enterprise credit risk early warning model based on a graph sequence neural network (GSN), which can predict the future credit risk of an enterprise based on the enterprise's own current state information and combined with the enterprise's state information in two dimensions of space and time, and can determine the risk impact relationship between enterprises, thereby more accurately conducting enterprise risk early warning. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0055] Figure 1 An optional flow chart of the enterprise risk early warning method provided in Example 1;
[0056] Figure 2 A schematic diagram of an optional composition structure of the enterprise risk early warning device provided in Example 2;
[0057] Figure 3 A schematic diagram of an optional hardware architecture of a computer device provided in Example 3. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0059] Embodiment 1
[0060] The embodiment of the present invention provides a method for early warning of enterprise risks. Figure 1 As shown, the method specifically comprises the following steps:
[0061] Step S101: when a risk warning instruction is received, status information of a plurality of entity objects in a plurality of continuous time intervals is obtained; wherein the status information includes: association relationships between the entity objects, and potential risk values of the entity objects.
[0062] Specifically, the entity objects can be: companies, institutions, natural persons; the related relationships include the following types: holding, mortgage, guarantee, actual controller, legal person, and business counterparty.
[0063] Among them, the status information of the multiple entity objects in multiple continuous time intervals is the announcement information stored in the blockchain node; uploading the status information of the multiple entity objects in multiple continuous time intervals to the blockchain can ensure its security and fairness and transparency to users.
[0064] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0065] Step S102: based on the status information of multiple entity objects in each time interval, draw an enterprise association graph corresponding to each time interval respectively; wherein the enterprise association graph includes: nodes representing entity objects and edges representing association relationships between entity objects.
[0066] Specifically, step S102 includes:
[0067] Step A1: based on the status information of multiple entity objects in a time interval, drawing nodes representing each entity object in the enterprise association map corresponding to the time interval, and setting node attributes for each node of the entity object; wherein the node attributes include: a potential risk value set for the entity object in the time interval;
[0068] Step A2: Draw edges between nodes in the enterprise association graph according to the association relationships between entity objects, and set edge attributes for each edge; wherein the edge attributes include: an association vector for characterizing the type of association relationship, the association vector is a 1×N dimensional vector, and N is the number of types of association relationship types.
[0069] In this embodiment, the enterprise association graph can be effectively represented by the enterprise's own information, its related party information and the specific association relationships between them; the specific process of constructing the enterprise association graph is: based on the enterprise information extracted from various announcements and the relationship data between enterprises, important entity objects such as companies, institutions and natural persons are abstracted into nodes in the enterprise association graph, and their corresponding status information is represented in the form of node attributes, and various association relationships between companies, companies and institutions, and companies and personnel (such as holding, mortgage, guarantee, etc.) are abstracted as edges between nodes, and the status information of specific association relationships is represented in the form of edge attributes.
[0070] It should be noted that the experts set the potential risk value for the entity object in the corresponding time interval in advance based on the basic information, business information, loan information, etc. of each entity object in each time interval; the potential risk value is used to characterize the probability of default risk of the entity object; the larger the potential risk value of an entity object, the greater the probability that the entity object has a default risk. In addition, since there can be one or more types of associations between each entity object, in order to be able to represent the various types of associations between each entity object through an enterprise association map, an association vector is used in this embodiment; the value of each dimension of the initial association vector is 0, and each dimension corresponds to a type of association. If there are two types of associations between two entity objects, namely, holding and business dealings, the values of the dimensions representing holding and representing business dealings are set to 1 in the association vector.
[0071] In this embodiment, the relationship edges are innovatively represented by association vectors in vector form, which effectively converts the multilateral and directed graph into a unilateral form, thereby making the constructed enterprise association graph more suitable for the GAT (Graph Attention Network) learning model framework based on the unilateral structure, avoiding the complex GAT learning model framework specially designed based on the multilateral directed graph structure, and making the overall GAT learning model framework simpler.
[0072] Step S103: For a target entity object, the risk assessment value of the target entity object is calculated in chronological order according to the enterprise association graphs of each time interval and using a preset risk assessment model.
[0073] Among them, the risk assessment model is a GSN early warning model, which is a model that combines the graph neural network GNN and the recurrent neural network RNN. Among them, the GNN structure can effectively model the corresponding spatial dimension (the relationship between enterprises), and RNN can effectively model the time series. Specifically, the specific implementation of GNN in this embodiment adopts the graph attention mechanism neural network (GAT) architecture, a GNN structure that is more suitable for credit risk transmission between enterprises, and uses vectors to represent the relationship edges, effectively converting the multilateral and directed graph form into a unilateral form. In addition, the specific implementation of RNN adopts the GRU (Gate Recurrent Unit) structure.
[0074] Specifically, step S103 includes:
[0075] Step B1: for a time interval t of the target entity object, according to the enterprise association graph of the time interval t, obtain the potential risk value of the target entity object in the time interval t and the association vector between the target entity object and the associated object; wherein the associated object is an entity object represented by other nodes connected to the node representing the target entity object through an edge;
[0076] Step B2: Based on the potential risk value, the correlation vector and the hidden risk impact factor H transferred from the last time interval t-1 to the time interval t t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ;
[0077] Step B3: Repeat the above steps until the hidden risk impact factor H transmitted from the time interval t+N to the current time point is calculated. t+N ; Among them, the time interval t+N is the previous time interval of the current time point;
[0078] Step B4: Based on the hidden risk impact factor H t+N A risk assessment value of the target entity object is calculated.
[0079] Further, step B2 includes:
[0080] Step B21: Calculate the update gate U according to the following formula: t :
[0081] U t =f(GAT xu (X t ; R t )+GAT hu (X t , Ht-1 ; R t ));
[0082] Among them, f() is the sigmoid function;
[0083] X t is the potential risk value of the target entity object in the time interval t;
[0084] R t is the association vector between the target entity object and the associated object within the time interval t;
[0085] H t-1 It is the hidden risk impact factor transferred from the previous time interval t-1 to the time interval t;
[0086] GAT xu It is the first GAT model built based on the graph attention mechanism neural network GAT;
[0087] GAT hu The second GAT model built based on the graph attention mechanism neural network GAT;
[0088] Step B22: Calculate the reset gate S according to the following formula: t :
[0089] S t =f(GAT xs (X t ; R t )+GAT hs (X t , H t-1 ; R t ));
[0090] Among them, f() is the sigmoid function;
[0091] GAT xs The third GAT model is built based on the graph attention mechanism neural network GAT;
[0092] GAT hs The fourth GAT model is built based on the graph attention mechanism neural network GAT;
[0093] Step B23: Calculate the current risk impact factor H according to the following formula: t- :
[0094] H t- =t(GAT xh (X t ; R t )+S t *GAT hh (Xt , H t-1 ; R t ));
[0095] Where t() is the tanh function;
[0096] GAT xh The fifth GAT model built based on the graph attention mechanism neural network GAT;
[0097] GAT hh The sixth GAT model built based on the graph attention mechanism neural network GAT;
[0098] Step B24: Calculate the hidden risk impact factor H from time interval t to the next time interval t+1 according to the following formula: t :
[0099] H t =(1-U t )*H t- +U t *H t-1 .
[0100] It should be noted that GRU is a type of recurrent neural network (RNN). In the GRU structure, the update gate U t Used to determine how much past information can be passed on to the future; reset gate S t Used to determine how much past information cannot be carried forward into the future.
[0101] Among them, the input of the first GAT model, the third GAT model, and the fifth GAT model are all X t and R t ; However, the coefficients of the first GAT model, the third GAT model, and the fifth GAT model are different; the inputs of the second GAT model, the fourth GAT model, and the sixth GAT model are all X t , H t-1 and R t , but the coefficients of the second GAT model, the fourth GAT model, and the sixth GAT model are different.
[0102] It should be noted that GAT is a graph neural network model (GNN) based on the graph attention mechanism, which has the end-to-end learning characteristics of neural networks, reducing the tedious feature engineering work of mining transmission path factors. The graph attention mechanism neural network GAT model includes: multiple GAT layers and a fully connected layer, and each GAT layer includes: an attention layer and a residual network layer. GAT automatically learns the degree of influence of associated nodes on target nodes through the attention mechanism, that is, each enterprise can learn the importance of its corresponding different associations. And in the learning process, the enterprise's own state information is a very important feature factor. That is, the comprehensive interaction between the enterprise's own state and related parties is learned at the same time. This is because in reality, the probability of risk transmission is not only related to related parties, but also highly related to its own ability to resist risks. Therefore, GAT has a more accurate advantage over learning algorithms that only focus on the importance of relationships.
[0103] Further, step B4 includes:
[0104] Calculate the risk assessment value V of the target entity object according to the following formula + :
[0105] V + =H t+N +V _ ;
[0106] Among them, V _ is the potential risk value of the target entity object at the current time point.
[0107] In addition, the risk assessment value of each entity object can be uploaded to the blockchain to prevent it from being tampered with; other users can download the risk assessment value of each entity object from the blockchain.
[0108] Step S104: determine whether the risk assessment value of each entity object is greater than a preset threshold, and if so, send a risk warning message to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold.
[0109] Among them, the larger the risk assessment value of an entity object, the greater the probability that a credit risk event will occur in the entity object in the future.
[0110] In terms of time, the future state of an enterprise is not only related to its own state at the current time point, but also to its own continuous state (time series) in the past period of time; in terms of space, the company's credit risk is not only related to its own state information, but also affected by its external related parties. Therefore, this embodiment proposes an enterprise credit risk early warning model based on graph sequence neural network (GSN), which can simultaneously model the time and space dimensions of the enterprise. Due to the high degree of abstraction of the probability of risk transmission between enterprises and the relationship between enterprises, the large number of relationship types between enterprises, the large differences between different relationships, and the combination enhancement effect between different relationships, the generalization performance of the existing model is poor and good results have not been achieved. In this embodiment, a new credit risk transmission model between related enterprises based on GSN is proposed, which comprehensively judges the probability of default risk of enterprises in the future from the two aspects of time dimension and enterprise dimension, and simulates the reality more comprehensively. In addition, this embodiment also innovatively uses vectors to represent the relationship edge, effectively converts the form of a multi-sided and directed graph into a unilateral form, avoids the complex GAT structure specially designed based on a multi-sided directed graph, and makes the GAT structure based on unilateral learning can be applied after simple modification. Compared with risk control personnel, since the model is automatically operated based on the full data set, it can effectively achieve global coverage and improve efficiency.
[0111] Embodiment 2
[0112] The embodiment of the present invention provides an enterprise risk early warning device, such as Figure 2 As shown, the device specifically includes the following components:
[0113] The receiving module 201 is used to obtain the state information of multiple entity objects in multiple continuous time intervals respectively when receiving the risk warning instruction; wherein the state information includes: the association relationship between each entity object;
[0114] A drawing module 202 is used to draw an enterprise association map corresponding to each time interval according to the state information of multiple entity objects in each time interval; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects;
[0115] The calculation module 203 is used to calculate the risk assessment value of a target entity object according to the enterprise association graphs of each time interval in chronological order and using a preset risk assessment model;
[0116] The warning module 204 is used to determine whether the risk assessment value of each entity object is greater than a preset threshold. If so, a risk warning message is sent to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold.
[0117] Specifically, the drawing module 202 is used to:
[0118] According to the status information of multiple entity objects in a time interval, drawing nodes representing each entity object in the enterprise association map corresponding to the time interval, and setting node attributes for each node of the entity object; wherein the node attributes include: a potential risk value set for the entity object in the time interval;
[0119] Draw edges between nodes in the enterprise association graph according to the association relationships between entity objects, and set edge attributes for each edge; wherein the edge attributes include: an association vector for characterizing the type of association relationship, the association vector is a 1×N dimensional vector, and N is the number of types of association relationship types.
[0120] Furthermore, the calculation module 203 specifically includes:
[0121] an acquisition unit, configured to acquire, for a time interval t of the target entity object, a potential risk value of the target entity object in the time interval t and an association vector between the target entity object and an associated object according to the enterprise association graph of the time interval t; wherein the associated object is an entity object represented by other nodes connected to the node representing the target entity object through an edge;
[0122] A calculation unit is used to calculate the hidden risk impact factor H transferred to the time interval t from the last time interval t-1 according to the potential risk value, the correlation vector and the hidden risk impact factor H transferred to the time interval t from the last time interval t-1 t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ;
[0123] The processing unit is used to sequentially calculate the hidden risk impact factor of each time interval transferred to the next time interval until the hidden risk impact factor H of the time interval t+N transferred to the current time point is calculated. t+N ; Among them, the time interval t+N is the previous time interval of the current time point;
[0124] An evaluation unit is used to evaluate the hidden risk impact factor H t+N A risk assessment value of the target entity object is calculated.
[0125] Furthermore, the computing unit is specifically used for:
[0126] The update gate U is calculated according to the following formula: t :
[0127] U t =f(GAT xu (X t ; R t )+GAT hu (X t , H t-1 ; R t ));
[0128] Among them, f() is the sigmoid function;
[0129] X t is the potential risk value of the target entity object in the time interval t;
[0130] R t is the association vector between the target entity object and the associated object within the time interval t;
[0131] H t-1 It is the hidden risk impact factor transferred from the previous time interval t-1 to the time interval t;
[0132] GAT xu It is the first GAT model built based on the graph attention mechanism neural network GAT;
[0133] GAT hu The second GAT model built based on the graph attention mechanism neural network GAT;
[0134] The reset gate S is calculated according to the following formula: t :
[0135] S t =f(GAT xs (X t ; R t )+GAT hs (X t , H t-1 ; R t ));
[0136] Among them, f() is the sigmoid function;
[0137] GAT xs The third GAT model is built based on the graph attention mechanism neural network GAT;
[0138] GAT hs The fourth GAT model is built based on the graph attention mechanism neural network GAT;
[0139] Calculate the current risk impact factor H according to the following formula:t- :
[0140] H t- =t(GAT xh (X t ; R t )+S t *GAT hh (X t , H t-1 ; R t ));
[0141] Where t() is the tanh function;
[0142] GAT xh The fifth GAT model built based on the graph attention mechanism neural network GAT;
[0143] GAT hh The sixth GAT model built based on the graph attention mechanism neural network GAT;
[0144] The hidden risk impact factor H from time interval t to the next time interval t+1 is calculated according to the following formula: t :
[0145] H t =(1-U t )*H t- +U t *H t-1 .
[0146] Furthermore, the evaluation unit is specifically used to:
[0147] Calculate the risk assessment value V of the target entity object according to the following formula + :
[0148] V + =H t+N +V _ ;
[0149] Among them, V _ is the potential risk value of the target entity object at the current time point.
[0150] Furthermore, the risk assessment model is a model that combines a graph neural network (GNN) and a recurrent neural network (RNN).
[0151] Embodiment 3
[0152] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 3 As shown, the computer device 30 of this embodiment includes at least but not limited to: a memory 301 and a processor 302 that can communicate with each other via a system bus. It should be noted that Figure 3 Only computer device 30 is shown with components 301 - 302 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0153] In this embodiment, the memory 301 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 301 can be an internal storage unit of the computer device 30, such as a hard disk or memory of the computer device 30. In other embodiments, the memory 301 can also be an external storage device of the computer device 30, such as a plug-in hard disk equipped on the computer device 30, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 301 can also include both the internal storage unit of the computer device 30 and its external storage device. In this embodiment, the memory 301 is generally used to store the operating system and various application software installed on the computer device 30. In addition, the memory 301 can also be used to temporarily store various types of data that have been output or are to be output.
[0154] In some embodiments, the processor 302 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 302 is generally used to control the overall operation of the computer device 30 .
[0155] Specifically, in this embodiment, the processor 302 is used to execute the program of the enterprise risk early warning method stored in the processor 302, and the program of the enterprise risk early warning method is implemented when being executed:
[0156] When a risk warning instruction is received, state information of multiple entity objects in multiple continuous time intervals is obtained; wherein the state information includes: association relationships between the entity objects;
[0157] According to the state information of multiple entity objects in each time interval, an enterprise association map corresponding to each time interval is drawn respectively; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects;
[0158] For a target entity object, the risk assessment value of the target entity object is calculated in chronological order according to the enterprise association maps of each time interval and using a preset risk assessment model;
[0159] Determine whether the risk assessment value of each entity object is greater than a preset threshold. If so, send a risk warning message to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold.
[0160] The specific implementation process of the above method steps can be found in the first embodiment, and this embodiment will not be repeated here.
[0161] Embodiment 4
[0162] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the following method steps are implemented:
[0163] When a risk warning instruction is received, state information of multiple entity objects in multiple continuous time intervals is obtained; wherein the state information includes: association relationships between the entity objects;
[0164] According to the state information of multiple entity objects in each time interval, an enterprise association map corresponding to each time interval is drawn respectively; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects;
[0165] For a target entity object, the risk assessment value of the target entity object is calculated in chronological order according to the enterprise association maps of each time interval and using a preset risk assessment model;
[0166] Determine whether the risk assessment value of each entity object is greater than a preset threshold. If so, send a risk warning message to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold.
[0167] The specific implementation process of the above method steps can be found in the first embodiment, and this embodiment will not be repeated here.
[0168] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0169] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0171] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An enterprise risk early warning method, characterized in that: The method comprises: When a risk warning instruction is received, state information of multiple entity objects in multiple continuous time intervals is obtained; wherein the state information includes: association relationships between the entity objects; According to the status information of multiple entity objects in each time interval, an enterprise association map corresponding to each time interval is drawn respectively; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects, the node attributes of the nodes include potential risk values set for the entity objects in a time interval, and the edge attributes of the edges include association vectors used to represent association relationship types, the association vector is a 1×N-dimensional vector, and N is the number of types of association relationship types; For a target entity object, the risk assessment value of the target entity object is calculated in chronological order according to the enterprise association graph of each time interval and using a preset risk assessment model; wherein the risk assessment model is a model combining a graph neural network GNN and a recurrent neural network RNN; Determine whether the risk assessment value of each entity object is greater than a preset threshold, and if so, send a risk warning message to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold; The step of calculating the risk assessment value of a target entity object by using a preset risk assessment model in accordance with the enterprise association graphs of each time interval in chronological order includes: For a time interval t of the target entity object, according to the enterprise association graph of the time interval t, obtain the potential risk value of the target entity object in the time interval t and the association vector between the target entity object and the associated object; wherein the associated object is an entity object represented by other nodes connected to the node representing the target entity object through an edge; According to the potential risk value, the correlation vector and the hidden risk impact factor H transferred from the last time interval t-1 to the time interval t t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ; Calculate the hidden risk impact factor from each time interval to the next time interval in sequence, until the hidden risk impact factor H from the time interval t+N to the current time point is calculated. t+N ; Among them, the time interval t+N is the previous time interval of the current time point; According to the hidden risk impact factor H t+N Calculating a risk assessment value of the target entity object; The hidden risk impact factor H transmitted to the time interval t according to the potential risk value, the correlation vector and the last time interval t-1 t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ,include: The update gate U is calculated according to the following formula: t : U t =f(GAT xu (X t ;R t )+GAT hu (X t ,H t-1 ;R t )); Among them, f() is the sigmoid function; X t is the potential risk value of the target entity object in the time interval t; R t is the association vector between the target entity object and the associated object within the time interval t; H t-1 It is the hidden risk impact factor transferred from the previous time interval t-1 to the time interval t; GAT xu It is the first GAT model built based on the graph attention mechanism neural network GAT; GAT hu The second GAT model built based on the graph attention mechanism neural network GAT; The reset gate S is calculated according to the following formula: t : S t =f(GAT xs (X t ;R t )+GAT hs (X t ,H t-1 ;R t )); Among them, f() is the sigmoid function; GAT xs The third GAT model is built based on the graph attention mechanism neural network GAT; GAT hs The fourth GAT model is built based on the graph attention mechanism neural network GAT; Calculate the current risk impact factor H according to the following formula: t- : H t- =t(GAT xh (X t ;R t )+S t *GAT hh (X t ,H t-1 ;R t )); Where t() is the tanh function; GAT xh The fifth GAT model built based on the graph attention mechanism neural network GAT; GAT hh The sixth GAT model built based on the graph attention mechanism neural network GAT; The hidden risk impact factor H from time interval t to the next time interval t+1 is calculated according to the following formula: t : H t =(1-U t )*H t- +U t *H t-1 ; According to the hidden risk impact factor H t+N Calculating the risk assessment value of the target entity object includes: Calculate the risk assessment value V of the target entity object according to the following formula + : V + =H t+N +V - ; Among them, V - is the potential risk value of the target entity object at the current time point.
2. The enterprise risk early warning method according to claim 1, characterized in that: The step of drawing enterprise association graphs corresponding to each time interval according to the state information of the multiple entity objects in each time interval includes: According to the status information of the plurality of entity objects in a time interval, drawing nodes representing the respective entity objects in the enterprise association map corresponding to the time interval, and setting node attributes for the nodes of each entity object; Draw edges between nodes in the enterprise association graph according to the association relationship between each entity object, and set edge attributes for each edge.
3. An enterprise risk early warning device, characterized in that: The device comprises: The receiving module is used to obtain the state information of multiple entity objects in multiple continuous time intervals respectively when receiving the risk warning instruction; wherein the state information includes: the association relationship between each entity object; A drawing module, used to draw an enterprise association map corresponding to each time interval according to the state information of multiple entity objects in each time interval; wherein the enterprise association map includes: nodes representing entity objects and edges representing association relationships between entity objects, the node attributes of the nodes include potential risk values set for the entity objects in a time interval, and the edge attributes of the edges include association vectors used to represent association relationship types, the association vector is a 1×N-dimensional vector, and N is the number of types of association relationship types; A calculation module is used to calculate the risk assessment value of a target entity object according to the enterprise association graphs of each time interval in chronological order and using a preset risk assessment model; wherein the risk assessment model is a model combining a graph neural network GNN and a recurrent neural network RNN; The warning module is used to determine whether the risk assessment value of each entity object is greater than a preset threshold, and if so, send a risk warning message to a designated terminal; wherein the risk warning message includes: entity objects whose risk assessment value is greater than the preset threshold; Wherein, the computing module is specifically used for: For a time interval t of the target entity object, according to the enterprise association graph of the time interval t, obtain the potential risk value of the target entity object in the time interval t and the association vector between the target entity object and the associated object; wherein the associated object is an entity object represented by other nodes connected to the node representing the target entity object through an edge; According to the potential risk value, the correlation vector and the hidden risk impact factor H transferred from the last time interval t-1 to the time interval t t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ; Calculate the hidden risk impact factor from each time interval to the next time interval in sequence, until the hidden risk impact factor H from the time interval t+N to the current time point is calculated. t+N ; Among them, the time interval t+N is the previous time interval of the current time point; According to the hidden risk impact factor H t+N Calculating a risk assessment value of the target entity object; The hidden risk impact factor H transmitted to the time interval t according to the potential risk value, the correlation vector and the last time interval t-1 t-1 , calculate the hidden risk impact factor H of the time interval t transferred to the next time interval t+1 t ,include: The update gate U is calculated according to the following formula: t : U t =f(GAT xu (X t ;R t )+GAT hu (X t ,H t-1 ;R t )); Among them, f() is the sigmoid function; X t is the potential risk value of the target entity object in the time interval t; R t is the association vector between the target entity object and the associated object within the time interval t; H t-1 It is the hidden risk impact factor transferred from the previous time interval t-1 to the time interval t; GAT xu It is the first GAT model built based on the graph attention mechanism neural network GAT; GAT hu The second GAT model built based on the graph attention mechanism neural network GAT; The reset gate S is calculated according to the following formula: t : S t =f(GAT xs (X t ;R t )+GAT hs (X t ,H t-1 ;R t )); Among them, f() is the sigmoid function; GAT xs The third GAT model is built based on the graph attention mechanism neural network GAT; GAT hs The fourth GAT model is built based on the graph attention mechanism neural network GAT; Calculate the current risk impact factor H according to the following formula: t- : H t- =t(GAT xh (X t ;R t )+S t *GAT hh (X t ,H t-1 ;R t )); Where t() is the tanh function; GAT xh The fifth GAT model built based on the graph attention mechanism neural network GAT; GAT hh The sixth GAT model built based on the graph attention mechanism neural network GAT; The hidden risk impact factor H from time interval t to the next time interval t+1 is calculated according to the following formula: t : H t =(1-U t )*H t- +U t *H t-1 According to the hidden risk impact factor H t+N Calculating the risk assessment value of the target entity object includes: Calculate the risk assessment value V of the target entity object according to the following formula + : V + =H t+N +V - ; Among them, V - is the potential risk value of the target entity object at the current time point.
4. The enterprise risk early warning device according to claim 3 is characterized in that: The drawing module is used for: According to the status information of the plurality of entity objects in a time interval, drawing nodes representing the respective entity objects in the enterprise association map corresponding to the time interval, and setting node attributes for the nodes of each entity object; Draw edges between nodes in the enterprise association graph according to the association relationship between each entity object, and set edge attributes for each edge.
5. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 2 when executing the computer program.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
