Credit risk assessment method based on heterogeneous information network and deep learning
By constructing a heterogeneous information network and a multi-layer integrated learning model, integrating the correlation between enterprises and natural persons, the problem of existing credit risk assessment methods ignoring the impact of correlation is solved, and the robustness and effectiveness of credit risk assessment of small and micro enterprises are improved. Predict performance.
Patent Information
- Application Number
- CN202411073708.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-09-03
AI Technical Summary
Existing credit risk assessment methods mainly rely on the financial indicators of enterprises and ignore the impact of correlations between enterprises, and the application of graph neural networks in the financial field is limited by issues of interpretability, scalability and robustness.
Construct a credit risk assessment method based on heterogeneous information networks and deep learning. By designing a dynamic update mechanism and a multi-layer integrated learning model, it integrates the correlation between enterprises and natural persons, extracts network-related risk characteristics, and reduces dependence on financial data. And iteratively builds a target propagation variant optimization model.
It provides a new and reliable risk assessment data source for small and micro enterprises, which enhances the robustness and predictive performance of the model, can better handle complex network data, and reduces dependence on financial data.
Smart Images

Figure CN118587005A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of credit risk assessment, and in particular to a credit risk assessment method based on heterogeneous information networks and deep learning. Background Art
[0002] From the perspective of credit risk assessment characteristics, traditional enterprise risk assessment methods mainly rely on the characteristics of various financial indicators of enterprises to measure their credit risks, which is suitable for large enterprises. However, many small and micro enterprises lack complete financial statements and operating records. Even if this information is obtained, under the premise that the small and micro enterprises’ own business management and rules and regulations are not perfect and standardized, unreviewed financial data is not reliable. In this case, non-financial information such as regulatory compliance, filing records, and legal acts that reflect corporate characteristics and operational risks can be used to supplement the missing financial information. However, these financial and non-financial information seem to evaluate enterprises from an independent perspective, but ignore the impact of the relationship between enterprises.
[0003] From the perspective of credit risk assessment models, the earliest can be traced back to the 1960s. These early models mainly used generalized linear regression, including multivariate discriminant analysis and logistic regression. With the rapid development of science and technology, the requirements for data processing methods are constantly increasing, and the outstanding achievements in the field of machine learning have gradually been introduced into risk assessment problems, typically including decision trees, neural networks, support vector machines, etc. These studies have proved that machine learning has better fitting effects and higher prediction performance than traditional linear models, which shows that the impact of variables on corporate credit risk usually has nonlinear characteristics. Tree-based ensemble models, such as random forests, GBDT, and XGBoost, can also achieve excellent results, especially in the credit field. Since the credit data in these studies are usually small, unbalanced, and mainly structured, ensemble models may be more applicable. In addition, various end-to-end deep learning methods are being continuously improved and applied to financial prediction problems, such as convolutional neural networks and recurrent neural networks. This type of deep learning model can not only improve prediction performance by learning the underlying distribution of data through its multi-layer structure, but also help expand pattern recognition and data mining research, thereby further extending graph deep learning methods that can process network graph data, among which graph convolutional networks (GCNs) have been widely used in the financial field. However, the application of graph neural networks in the financial field also faces some challenges, such as interpretability, data availability, scalability, and robustness.
[0004] Most studies on enterprise risk assessment are mainly based on their own information and ignore the impact of association. Although some literature has studied the impact of association risk on enterprise credit risk by constructing networks, they are mainly based on isomorphic information networks containing only one type of nodes and edges, thus ignoring the complexity and heterogeneity of real association risk. In addition, although traditional machine learning methods can achieve good results in the credit field, they are not suitable for network structure data; graph neural networks are a commonly used method for processing network data, but graph neural networks are greatly affected by outliers, have relatively poor robustness, and the requirements of interpretability and scalability also limit their application in the financial field. Therefore, how to combine the deep learning framework to better apply complex network data to the field of credit risk assessment for small and micro enterprises is a difficult problem to be solved. Summary of the invention
[0005] Based on the problems raised by the above background technology, the purpose of the present invention is to provide a credit risk assessment method based on heterogeneous information networks and deep learning, which solves the problem that the existing enterprise risk assessment is based on a homogeneous information network containing only one type of nodes and edges, thereby ignoring the complexity and heterogeneity of real associated risks.
[0006] The present invention is achieved through the following technical solutions: The first aspect of the present invention provides a credit risk assessment method based on heterogeneous information networks and deep learning, comprising the following steps: Step S1: construct a small and micro-enterprise related heterogeneous information network, design a dynamic update mechanism for the small and micro-enterprise related heterogeneous information network, and obtain a dynamic small and micro-enterprise related heterogeneous information network that dynamically evolves over time; Step S2: setting node attributes of the dynamic small and micro enterprise associated heterogeneous information network, and extracting network associated risk features from the dynamic small and micro enterprise associated heterogeneous information network based on node attributes and network topology; Step S3: construct a multi-layer integrated learning model, fuse the non-network features of small and micro enterprises with the network-related risk features to obtain fused features, and use the multi-layer integrated learning model to learn the fused features; Step S4, iteratively construct variants of target propagation, use the variants of target propagation to jointly optimize the multi-layer ensemble learning model, and use the jointly optimized multi-layer ensemble learning model to predict the credit risk of small and micro enterprises.
[0007] In the above technical scheme, a small and micro-enterprise related heterogeneous information network is constructed to include the relationship between enterprises and enterprises, enterprises and natural persons, and more and richer interactive information between them. With the development of small and micro enterprises, the scale of small and micro-enterprise related heterogeneous information networks continues to expand, and the network structure and information are constantly changing. Since information changes over time, the small and micro-enterprise related heterogeneous information network is different at different timestamps. Based on this, this method designs a dynamic update mechanism for the small and micro-enterprise related heterogeneous information network to store information changes. The basic characteristics and risk characteristics of the enterprise are used as the node attributes of the dynamic small and micro-enterprise related heterogeneous information network, and a variety of network-related risk information is extracted in combination with the characterization method, providing a new and reliable data source for small and micro-enterprise risk assessment, reducing the dependence on financial data.
[0008] Since information propagation in the network will trigger a cascade effect, errors or anomalies in a single instance affect many other instances. Even small interference can significantly deteriorate the performance of graph neural networks. A deep learning model of a multi-layer ensemble learning model is constructed by extending ensemble learning to a multi-layer neural network structure, and the characterized small and micro enterprise network and non-network information are fused and input into the multi-layer ensemble learning model. Nonlinear ensemble learning is used as a module of each layer to mine the implicitly associated risk information in the dynamic small and micro enterprise associated heterogeneous information network. Compared with the existing graph neural network with low robustness, the multi-layer ensemble learning model proposed by this method adopts a characterization method to comprehensively calculate the attribute data of all neighborhood nodes, so it has greater resilience to abnormal situations of single instance data, thereby enhancing its overall robustness.
[0009] At the same time, variants of target propagation are iteratively constructed and used for joint optimization, so that the multi-layer ensemble learning model gradually learns better representations in the nonlinear transformation of each layer, thereby improving the prediction performance of the model.
[0010] In an optional embodiment, the step S1 includes the following steps: Step S11: construct a heterogeneous information network with enterprises and natural persons as nodes and association relationships as edges, wherein the heterogeneous information network is represented as follows: ; in, express The enterprise heterogeneous information network at all times, express The set of nodes in the network at that moment, express The set of edges in the network at that moment; Step S12: extracting m small and micro enterprise nodes at time t from the heterogeneous information network, performing network reconstruction on the m small and micro enterprise nodes at time t, and obtaining a reconstructed sub-network set; Step S13: Combining the reconstructed sub-network set to generate a small and micro-enterprise associated heterogeneous information network.
[0011] In an optional embodiment, the step S12 includes the following steps: Step S121: Obtain the nodes of small and micro enterprises in the heterogeneous information network at time t of Order neighborhood: ; in, Is a node At time t The order neighborhood, Representation Node and nodes Between The shortest path distance at time; Step S122: Based on Establish small and micro enterprise nodes in the neighborhood At time t Sub-network: ; ; in, express Time Node and The edge between for Moment Node for Small and Micro Enterprises exist The set of edges in the order neighborhood; Step S123: The association relationships in the sub-network are reconstructed into undirected edges of the same type, and the nodes of small and micro enterprises are obtained. The reconstructed subnetwork of the center .
[0012] In an optional embodiment, step S2 includes the following steps: Step S21: Use enterprise information as node attribute to identify small and micro enterprise nodes Set node properties, including small and micro enterprise nodes With node attributes ; Step S22: extracting the network of small and micro enterprises from the dynamic small and micro enterprise associated heterogeneous information network The neighbor set of small and micro enterprise nodes of The first-order neighbors are small and micro enterprise nodes The shortest distance is Nodes for small and micro enterprises A collection of: ; Step S23: Calculate the network D-order neighbor set, and extract network association risk characteristics according to the calculation results.
[0013] In an optional embodiment, calculating the network D-order neighbor set includes: The D-order neighbor set of the network at time t The order neighbors satisfy the condition The node is recorded as the first node; The D-order neighbor set of the network at time t The order neighbors satisfy the condition and The node is recorded as the second node; Calculate a first node number of the first node and a second node number of the second node, and calculate a ratio of the second node number to the first node number; A sum of the node attributes of the first node and a mean of the node attributes of the first node are calculated.
[0014] In an optional embodiment, the first number of nodes is calculated as follows: ; in, Represents the first node attribute, Representation Node The first node attribute of is the first node attribute condition value, is the node at time t of The order neighbors satisfy the condition A collection of nodes; The second number of nodes is calculated as follows: ; in, Represents the second node attribute, Representation Node The second node attribute, is the attribute condition value of the second node, is the node at time t of The order neighbors satisfy the condition and A collection of nodes; The ratio value is calculated as follows: ; The sum of the node attributes of the first node is calculated as follows: ; in, Representation Node Second level point attributes sum; The mean value of the node attribute of the first node is calculated as follows: .
[0015] In an optional embodiment, step S3 includes the following steps: Step S31: Obtain non-network features of small and micro enterprises, and combine the non-network features with the network-related risk features to obtain fusion information. ; Step S32: construct a multi-layer ensemble learning model with an M-layer ensemble learning layer structure, wherein the layers are nonlinearly mapped. Layer Ensemble learns the positive mapping of the layer The output is recorded as , The fusion information , will Layer to The mapping of the layers is denoted as ; Step S33: Establish the first Layer Ensemble Learning of Pseudo-Inverse Mapping of Layers : ; Step S34: Initialize the established multi-layer model of pseudo-inverse mapping, generate Gaussian noise as the intermediate layer output, and use the intermediate layer output to train and generate the initial mapping , use the tag Set the pseudo label of the Mth ensemble learning layer : ; in, is the learning rate, is the output of the Mth layer of the model With label The loss between.
[0016] In an optional embodiment, random noise is set in the reconstruction loss function, and the random noise is set as follows: ; in, is random noise with a mean of 0 and a standard deviation of The normal distribution of .
[0017] In an optional embodiment, the step S4 includes: Step S41: Pseudo-inverse mapping constructed based on step S33 Assign a pseudo label to each ensemble learning layer from bottom to top : ; Step S42: After assigning pseudo labels, according to the loss function Compute the residual: ; ; in, The positive mapping of the ensemble learning layer The residual of the iteration; Step S43: Fit a new regression tree using the residual ,in Indicates the first a tree; Step S44, by continuously iterating and constructing new trees to reduce the residual, the positive mapping of each ensemble learning layer is optimized, wherein the optimization process is as follows: ; ; in, is the learning rate of a single layer of ensemble learning, Parameters for the number of iterations of a single layer for ensemble learning; Step S45: When the positive mappings of the M-layer integrated learning layer are optimized, move to the next iteration to update the pseudo-inverse mapping , repeat steps S41 to S45 to iterate.
[0018] In an optional embodiment, the pseudo-inverse mapping is updated Including, using the reconstruction loss function to calculate the residual, and using the residual to fit the regression tree : ; ; in, Pseudo-inverse mapping for the ensemble learning layer The residual error at iteration .
[0019] Compared with the prior art, the present invention has the following advantages and beneficial effects: 1. A heterogeneous information network SMERN with three types of relationships and two types of nodes was constructed, and a dynamic update mechanism of SMERN was designed to store information changes. Combined with the characterization method, a variety of network-related risk information was extracted, providing a new and reliable data source for risk assessment of small and micro enterprises, reducing the dependence on financial data; 2. A multi-layer deep neural network structure was constructed, using nonlinear ensemble learning as a module for each layer to mine the implicitly associated risk information in SMERN. The multi-layer ensemble learning model integrates the network and non-network information of SMEs, uses a variant of target propagation for joint optimization, and gradually learns better representations in the nonlinear transformation of each layer, improving the prediction performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 A flow chart of a credit risk assessment method based on heterogeneous information networks and deep learning provided in Example 1 of the present invention; Figure 2 A dynamic update mechanism for small and micro enterprises associated with heterogeneous information networks provided in Example 1 of the present invention; Figure 3 The training optimization process of the multi-layer ensemble learning model provided in Example 1 of the present invention; Figure 4 The prediction results provided by Example 1 of the present invention are compared with the best performing comparison model. DETAILED DESCRIPTION
[0021] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0022] Embodiment 1 of the present invention provides a credit risk assessment method based on heterogeneous information networks and deep learning, such as Figure 1 As shown in FIG. 1 , the credit risk assessment method based on heterogeneous information network and deep learning includes the following steps: Step S1: construct a small and micro-enterprise related heterogeneous information network, design a dynamic update mechanism for the small and micro-enterprise related heterogeneous information network, and obtain a dynamic small and micro-enterprise related heterogeneous information network that dynamically evolves over time; Step S2: setting node attributes of the dynamic small and micro enterprise associated heterogeneous information network, and extracting network associated risk features from the dynamic small and micro enterprise associated heterogeneous information network based on node attributes and network topology; Step S3: construct a multi-layer integrated learning model, fuse the non-network features of small and micro enterprises with the network-related risk features to obtain fused features, and use the multi-layer integrated learning model to learn the fused features; Step S4, iteratively construct variants of target propagation, use the variants of target propagation to jointly optimize the multi-layer ensemble learning model, and use the jointly optimized multi-layer ensemble learning model to predict the credit risk of small and micro enterprises.
[0023] It should be noted that small and micro enterprises generally have behavioral characteristics such as "acquaintance networks" and "related transactions", that is, when a certain enterprise encounters risks, problems or crises, they will be transmitted to other related enterprises along various related relationships, and then spread to the entire group of related enterprises, thus forming a domino effect. The network has become a new source of financial information, and some scholars have begun to use complex network technology to explore the potential related risks of enterprises. However, most existing methods are based on homogeneous information networks, that is, networks with a single category of nodes and edges. When trying to depict the complex associations between different entities, homogeneous networks have difficulty capturing these implicit relationships and cannot distinguish the effects of different associations. In order to include more and richer interactive information, heterogeneous information networks may be a better choice.
[0024] Based on this, the embodiment of the present invention attempts to capture the network-related information of small and micro enterprises by constructing a heterogeneous information network associated with small and micro enterprises and combine it with other information in the loan application stage, predict the potential credit default possibility of small and micro enterprises, and make loan decisions in the loan application stage. However, the complexity of heterogeneous information networks means that excellent learning models are needed to mine the implicit information of SMERNs. Multi-layer ensemble learning has excellent feature learning capabilities due to its multi-layer structure similar to deep learning. In the nonlinear transformation between layers, the model gradually learns better representations. Therefore, this embodiment proposes a hybrid multi-layer ensemble learning model based on heterogeneous information networks and deep learning to evaluate the credit risks of small and micro enterprises, and uses a multi-layer ensemble learning structure to fuse and learn the network information and non-network information of small and micro enterprises to reduce prediction bias.
[0025] The present invention proposes to construct a small and micro-enterprise related heterogeneous information network to include the relationship between enterprises and enterprises, enterprises and natural persons, and more and richer interactive information between them. With the development of small and micro enterprises, the scale of small and micro-enterprise related heterogeneous information networks continues to expand, and the network structure and information are constantly changing. Since information changes over time, the small and micro-enterprise related heterogeneous information networks are different at different timestamps. Based on this, this method designs a dynamic update mechanism for the small and micro-enterprise related heterogeneous information network to store information changes. The basic characteristics and risk characteristics of the enterprise are used as the node attributes of the dynamic small and micro-enterprise related heterogeneous information network, and a variety of network-related risk information is extracted in combination with the characterization method, providing a new and reliable data source for small and micro-enterprise risk assessment, reducing dependence on financial data.
[0026] Since information propagation in the network will trigger a cascade effect, errors or anomalies in a single instance affect many other instances. Even small interference can significantly deteriorate the performance of graph neural networks. A deep learning model of a multi-layer ensemble learning model is constructed by extending ensemble learning to a multi-layer neural network structure, and the characterized small and micro enterprise network and non-network information are fused and input into the multi-layer ensemble learning model. Nonlinear ensemble learning is used as a module of each layer to mine the implicitly associated risk information in the dynamic small and micro enterprise associated heterogeneous information network. Compared with the existing graph neural network with low robustness, the multi-layer ensemble learning model proposed by this method adopts a characterization method to comprehensively calculate the attribute data of all neighborhood nodes, so it has greater resilience to abnormal situations of single instance data, thereby enhancing its overall robustness.
[0027] At the same time, variants of target propagation are iteratively constructed and used for joint optimization, so that the multi-layer ensemble learning model gradually learns better representations in the nonlinear transformation of each layer, thereby improving the prediction performance of the model.
[0028] In an optional embodiment, the step S1 includes the following steps: Step S11, constructing a heterogeneous information network with enterprises and natural persons as nodes and association relationships as edges; Step S12: extracting m small and micro enterprise nodes at time t from the heterogeneous information network, performing network reconstruction on the m small and micro enterprise nodes at time t, and obtaining a reconstructed sub-network set; Step S13: Combining the reconstructed sub-network set to generate a small and micro-enterprise associated heterogeneous information network.
[0029] It should be noted that the purpose of step S11 is to construct a heterogeneous information network represented in the form of a graph database based on the graph database of association relationships. This embodiment develops a graph database of heterogeneous information networks of enterprises based on the public information of the National Enterprise Credit Information Publicity System and the China Judgment Documents Network, which is used to store the complex relationships between Chinese registered enterprises, including the dynamic relationships between shareholders, legal representatives, and senior executives, as well as basic enterprise information. At present, the entire network includes about 700 million edges, 120 million enterprise nodes, and 400 million natural person nodes, which can be mathematically represented as:
[0030] in, express The enterprise heterogeneous information network at all times, express The set of nodes in the network at that moment, express The set of edges in the network at that moment.
[0031] In this embodiment, the relationship network is constructed based on three actual relationships: shareholders, senior executives, and legal representatives.
[0032] The purpose of step S12 is to extract a sub-network centered on each small and micro enterprise based on the enterprise heterogeneous information network, so as to perform local analysis on the neighborhood of the small and micro enterprises.
[0033] In an optional embodiment, the step S12 includes the following steps: Step S121: Obtain the nodes of small and micro enterprises in the heterogeneous information network at time t of order neighborhood; Step S122: Based on Establish small and micro enterprise nodes in the neighborhood At time t Step network; Step S123: The association relationships in the sub-network are reconstructed into undirected edges of the same type, and the nodes of small and micro enterprises are obtained. The reconstructed subnetwork of the center .
[0034] Specifically, Small and micro enterprise nodes in the time network of Order neighborhood:
[0035] in, Is a node At time t The order neighborhood, Representation Node and nodes Between The shortest path distance at time.
[0036] Small and micro enterprise nodes exist Moment Sub-network:
[0037]
[0038] in, express Time Node and The edge between for Moment Node for Small and Micro Enterprises exist The set of edges in the neighborhood of order.
[0039] The method of step S12 is used to respectively perform the operations on the m small and micro enterprise nodes at time t. ( ) network reconstruction can obtain a set of reconstructed sub-networks, and the reconstructed sub-networks are combined to form a heterogeneous information network associated with small and micro enterprises, and the result is:
[0040] Among them, there are about 80 million small and micro enterprise subnetworks in the small and micro enterprise related heterogeneous information network. With the rapid development of small and micro enterprises in my country, the amount of data is still increasing. , so each subnetwork has an average of 6 nodes and 5 edges.
[0041] Furthermore, step S1 also includes step S14 to design a dynamic update mechanism for small and micro enterprises to associate heterogeneous information networks, such as Figure 2 As shown in Figure 1, the dynamic update mechanism of the heterogeneous information network associated with small and micro enterprises includes: adding new nodes to the network when a new enterprise is established, adding corresponding associated edges when a new relationship is formed, and adding new sub-networks to the heterogeneous information network associated with small and micro enterprises when new small and micro enterprises enter. Since information changes over time, At different timestamps is different, that is to say It evolves dynamically over time.
[0042] In an optional embodiment, step S2 includes the following steps: Step S21: Use enterprise information as node attribute to identify small and micro enterprise nodes Set node properties, including small and micro enterprise nodes With node attributes ; Step S22: extracting the network of small and micro enterprises from the dynamic small and micro enterprise associated heterogeneous information network The neighbor set of small and micro enterprise nodes of The first-order neighbors are small and micro enterprise nodes The shortest distance is Nodes for small and micro enterprises A collection of: ; Step S23: Calculate the network D-order neighbor set, and extract network association risk characteristics according to the calculation results.
[0043] It should be noted that the purpose of setting node attributes for small and micro enterprise nodes with enterprise information as node attributes is to quickly obtain information. By storing enterprise information in the form of node attributes in the network, any small and micro enterprise can be quickly located through indexing and all attribute information can be accessed. Among them, all attribute information will follow Updates are performed synchronously.
[0044] After setting the node properties, in order to To obtain effective information from the network, combined with the complex network characterization method, the required small and micro enterprise network-related risk information is extracted from the network, mainly involving network In this embodiment, the first-order neighbor characteristics include the first-order neighbor characteristics of the network that reflect the direct risk impact and the second-order neighbor characteristics of the network that reflect the indirect risk impact.
[0045] First, we obtain the first-order neighbor set and second-order neighbor set of the small and micro enterprises. The first-order neighbors of are Nodes that share an edge A collection of:
[0046] node The second-order neighbors of Nodes with the shortest distance of 2 A collection of:
[0047] Since the third-order and fourth-order higher-order neighbor relationships have relatively weak correlation, limited information, and high potential noise, which may dilute effective information, network characteristics mainly rely on the calculation of first-order and second-order neighbor nodes.
[0048] It should be noted that, in this embodiment, .
[0049] In an optional embodiment, calculating the network D-order neighbor set includes: The D-order neighbor set of the network at time t The order neighbors satisfy the condition The node is recorded as the first node; The D-order neighbor set of the network at time t The order neighbors satisfy the condition and The node is recorded as the second node; Calculate a first node number of the first node and a second node number of the second node, and calculate a ratio of the second node number to the first node number; A sum of the node attributes of the first node and a mean of the node attributes of the first node are calculated.
[0050] It should be noted that in In the process of SMEs, the status of the entities associated with the SMEs will significantly affect the business conditions and decision-making behavior of the SMEs. In particular, when the associated enterprises are in a high-risk state, the risk may spread to the SMEs. Therefore, in this embodiment, under the four categories of legal proceedings, business change risks, enterprise nature and registered capital, various counts, patterns and binary judgment information of the first- and second-order neighboring enterprise states are used to extract the associated risk features, among which the first-order neighbor features are taken as , the second-order neighbor feature is .
[0051] In an optional embodiment, the first number of nodes is calculated as follows: ; in, Represents the first node attribute, Representation Node The first node attribute of is the first node attribute condition value, is the node at time t of The order neighbors satisfy the condition The second node number is calculated as follows: ; in, Represents the second node attribute, Representation Node The second node attribute, is the attribute condition value of the second node, is the node at time t of The order neighbors satisfy the condition and A collection of nodes;
[0052] in, Represents one of the attributes of a node. Indicates that the node Another attribute outside. is the node at time t of The order neighbors satisfy the condition The node set of , that is, the first node; is the node at time t of The order neighbors satisfy the condition and , i.e., the second node.
[0053] The ratio value is calculated as follows: ; The sum of the node attributes of the first node is calculated as follows: ; in, Representation Node The properties of the first node The mean of the node attribute of the first node is calculated as follows: .
[0054] In an optional embodiment, step S3 includes the following steps: Step S31: Obtain non-network features of small and micro enterprises, and combine the non-network features with the network-related risk features to obtain fusion information. ; Step S32: construct a multi-layer ensemble learning model with an M-layer ensemble learning layer structure, wherein the layers are nonlinearly mapped. Layer Ensemble learns the positive mapping of the layer The output is recorded as , The fusion information , will Layer to The mapping of the layers is denoted as ; Step S33: Establish the first Layer Ensemble Learning of Pseudo-Inverse Mapping of Layers : ; Step S34: Initialize the established pseudo-inverse mapping multi-layer model, generate Gaussian noise as the intermediate layer output, and use the intermediate layer output to train and generate the initial mapping , use the tag Set the Mth layer of ensemble learning layer to pseudo label : ; in, is the learning rate, is the output of the Mth layer of the model With label The loss between.
[0055] It should be noted that if Figure 1 As shown in Figure 2, the non-network characteristics of small and micro enterprises Including the basic attribute characteristics of the small and micro enterprises themselves and the risk characteristics of the small and micro enterprises themselves, and compare them with the network-related risk characteristics obtained in step S2 Splice to get fusion information , and is used as the output of the 0th base learning layer of the multi-layer ensemble learning model Input model. Specifically, the output of the 0th layer of the multi-layer ensemble learning model First, input the positive mapping of the first layer of ensemble learning layer In the output . And so on, Layer Ensemble learns the positive mapping of the layer Receive from The layer integrates the data of the learning layer and outputs it through positive mapping , until the output of the Mth integrated learning layer . is the final output of the multi-layer ensemble learning model. Similarly, for the pseudo-inverse mapping, Expressed as Layer ensemble learning layer-by-layer pseudo-inverse mapping . Indicates The layer ensemble learning layer is a pseudo label. In the present invention, Indicates the number of layers in the ensemble learning layer and is used as a subscript for other parameters to indicate the The layer ensemble learns the parameters corresponding to the layer, where .train ,train ,train ,train ,train It is the process path of iterative training.
[0056] In order to retain the adaptability of the tree ensemble model to small-scale tabular data while having the excellent feature learning ability of deep neural networks, the ensemble learning model is expanded into a multi-layer deep neural network structure model, which can integrate the network information associated with small and micro enterprises to learn high-order features, and can also better adapt to credit data characteristics. Specifically, the multi-layer ensemble learning model established by the present invention is a multi-layer model with nonlinear mapping between layers, which realizes distributed representation capabilities by stacking multiple ensemble learning layers to form a deep neural network structure. In this embodiment, a total of M layers of multi-layer ensemble learning layers are constructed. For each layer, in the present invention, a pseudo-inverse mapping is set in the corresponding layer to obtain the label of the layer, wherein the pseudo-inverse mapping is realized by minimizing the expected value of the reconstruction loss function, wherein the specific implementation process is as follows: ; in, is the reconstruction loss, which is consistent with AutoEncoder, is the estimate of the pseudo-inverse mapping of the i-th layer.
[0057] Based on the model constructed in step S32 to step S33, the multi-layer ensemble learning model is initialized, some Gaussian noise is generated as the output of the middle layer, and the output is used to train a partial regression tree as an initial mapping, and the last layer of pseudo labels is defined.
[0058] In an optional embodiment, random noise is set in the reconstruction loss function, and the random noise is set as follows: ; Among them, among them, is random noise with a mean of 0 and a standard deviation of The normal distribution of .
[0059] It should be noted that multi-layer ensemble learning adds random noise to the reconstruction loss in order to make the pseudo-inverse mapping result more robust.
[0060] In an optional embodiment, the step S4 includes: Step S41: Pseudo-inverse mapping constructed based on step S33 Assign a pseudo label to each ensemble learning layer from bottom to top : ; Step S42: After assigning pseudo labels, according to the loss function Compute the residual: ; ; Among them, among them, The positive mapping of the ensemble learning layer The residual of the iteration; Step S43: Fit a new regression tree using the residual ,in Indicates the first a tree; Step S44, by continuously iterating and constructing new trees to reduce the residual, the positive mapping of each ensemble learning layer is optimized, wherein the optimization process is as follows: ; ; in, is the learning rate of a single layer of ensemble learning, Parameters for the number of iterations of a single layer for ensemble learning; Step S45: When the positive mappings of the M-layer integrated learning layer are optimized, move to the next iteration to update the pseudo-inverse mapping , repeat steps S41 to S45 to iterate.
[0061] It should be noted that the back propagation method, which is most commonly used to train deep neural networks, cannot be applied to this non-differentiable structure. Figure 3 As shown, the multi-layer ensemble learning model adopts a target propagation variant to jointly optimize the training process. After the model is initialized in step S3, the multi-layer ensemble learning model is jointly optimized using the target propagation variant.
[0062] Through the iterative optimization of steps S41 to S45, in each iteration, the positive mapping of the integrated learning layer Update forward to get the output of each layer , pseudo-inverse mapping Update backward to obtain pseudo labels for each layer , jointly optimize each layer of nonlinear ensemble learning layer. After the iteration, the optimized multi-layer ensemble learning model is used The final probability of default of small and micro-enterprises’ credit is predicted. Figure 3 As shown, training ,train ,train ,train ,train ,train ,train It is the process path of iterative training.
[0063] In an optional embodiment, the pseudo-inverse mapping is updated Including, using the reconstruction loss function to calculate the residual, and using the residual to fit the regression tree : ; ; in, Pseudo-inverse mapping for the ensemble learning layer The residual error at iteration .
[0064] Embodiment 2 of the present invention proposes a verification process using credit loan data of a bank that provides credit loans to small and micro enterprises to verify the effectiveness of the proposed model.
[0065] This dataset contains the default labels of small and micro enterprises that applied for credit loans from 2019 to 2020. After removing records with obvious errors or missing values, the final sample includes 34,650 small and micro enterprise credit loan applications, of which 31,318 were not in default and 3,332 were in default (the default rate was 9.62%). This example adopts a stratified random sampling method, randomly selecting 60% of the samples as a training set, 20% as a test set, and 20% as a validation set, with the same default ratio.
[0066] During the model training process, the optimization goal is to minimize the cross entropy loss function. The grid search method is used to optimize the model hyperparameters, and the best hyperparameters are determined based on the classification scores of the validation set. The experiment is repeated 30 times, and the average of all test set prediction results is taken.
[0067] The performance evaluation indicators of the model for small and micro enterprise credit risk assessment include: AUC, type I error rate, type II error rate, F1, sensitivity and specificity. The specific calculation method is as follows: First, the confusion matrix is introduced. Based on the classification threshold, the predicted probability is converted into the predicted category, and a 2x2 confusion matrix consisting of four combinations of actual categories and predicted categories is obtained. The confusion matrix is shown in Table 1 below:
[0068] Table 1
[0069] Construct AUC by TPR and FPR:
[0070] With FPR as the horizontal axis and TPR as the vertical axis, connect all the points (TPR, FPR) to draw the ROC graph. AUC is the area under the ROC curve. The closer the AUC is to 1, the better the classification ability of the model. Since AUC uses a series of thresholds to evaluate the classification ability of the model, the value of AUC is not affected by the threshold selection and is insensitive to data imbalance.
[0071] F1 is a comprehensive evaluation index based on precision and recall, and its calculation formula is:
[0072] The Type I error rate and Type II error rate measure the prediction error rates of negative samples and positive samples respectively:
[0073] Sensitivity and specificity are defined as follows;
[0074] Under a certain threshold, sensitivity, specificity, and type I and type II error rates can evaluate the model's ability to distinguish between positive and negative samples. Higher sensitivity and specificity and lower type I and type II error rates indicate better model classification performance. F1 focuses on the accuracy of identifying positive samples, and higher values indicate stronger model recognition capabilities. Therefore, these indicators can compare the prediction performance of the model from multiple perspectives.
[0075] Based on the above evaluation indicators, the prediction results of different models are compared. The experimental results of the comparison models are shown in Table 2 below: Table 2
[0076] Table 2 shows the AUC performance of some compared models. The network model is used as the baseline model that only inputs the network-related risk features extracted by SMERN. The base model is a model that only inputs the enterprise foundation and its own risk features, simulating the situation that actual credit institutions assess the default risk of small and micro enterprises based only on the information provided by the enterprise. The hybrid model is a model that combines the enterprise foundation, its own risk features, and the network-related risk features, and is used as a hybrid model to demonstrate the effectiveness of including network information. As expected, the hybrid model that includes network-related risk information performs best, indicating that non-network features and network-related risk features provide different information, which together can enhance the predictive ability of the model.
[0077] The comparison of different benchmark algorithms in Table 2 shows that the ensemble model is generally better than other models because the tree-based ensemble model can better handle the unbalanced credit data of small and micro enterprises. The best performing comparison model (gradient boosting decision tree) is further compared with the model constructed in this embodiment. Figure 4 As shown, the proposed multi-layer model (i.e. Figure 4 The hybrid model in the above figure has better learning ability for fusion information than the ordinary ensemble learning model (i.e. Figure 4Similar to deep neural networks, stacking multiple ensemble learning layers can obtain hierarchical representation capabilities, thereby increasing the distance between sample classes and reducing the distance within classes, converting data points into a form that is easier to classify to improve the performance of the model.
[0078] For a more in-depth comparison, we analyzed Figure 4 The ability of the three models to distinguish between default samples and non-default samples. The three indicators of type I error rate (error rate 1), type II error rate (error rate 2) and F1 value are used to compare the best performing gradient boosting decision tree and multi-layer ensemble learning algorithm models. The comparison of model results below summarizes these three indicators under the 0.5 threshold and the adjusted threshold. The adjusted threshold is calculated to make the proportion of predicted samples classified as default equal to the proportion of default samples in the training set. The comparison of model results under different thresholds is shown in Table 3 below:
[0079] Table 3
[0080] For such an unbalanced dataset, a model with a threshold of 0.5 will usually predict most samples as negative, i.e., non-default; a threshold adjusted based on the default rate will discriminate more predictions as positive, which makes the predicted class ratio closer to reality. Therefore, under the adjusted threshold, the type I error rate is higher and the type II error rate is lower. Since the loss caused by a "bad" enterprise that is mistakenly classified as "good" may be greater than the loss caused by a rejected but actually "good" enterprise, financial institutions usually pay more attention to "bad" enterprises. It is better to sacrifice some type I error rate in exchange for a lower type II error rate and a higher F1 score, that is, the adjusted threshold should be implemented in practice.
[0081] As shown in the adjusted threshold results in the comparison of model results under different thresholds, the hybrid model containing network and non-network information achieved a lower type I error rate (0.062) and type II error rate (0.582) and a higher F1 value (0.418). Therefore, incorporating SMERN network-related risk information into the default risk prediction model helps to improve the model's ability to distinguish between default samples and non-default samples. As shown in the bold values in the table, under the adjusted threshold, the hybrid multi-layer integrated model proposed in this embodiment also has the lowest type I and type II error rates and the highest F1 value. The lower type II error rate indicates that the model is more capable of identifying small and micro enterprise defaults and reducing losses, which is of great practical significance to credit institutions.
[0082] Graph convolutional neural network (GCN) is a widely used graph neural network model and deep learning algorithm. In this embodiment, the basic characteristics of the enterprise and its own risk characteristics are used as node attributes of SMERN, and SMERN is input into the graph convolutional neural network as a graph. Comparison with the experimental results of the graph convolutional neural network once again proves that the model proposed in this embodiment has superior performance, which may be due to the relatively low robustness of the graph neural network. Information propagation in the network can trigger a cascade effect, causing errors or anomalies in a single instance to affect many other instances. Even small interference can significantly deteriorate the performance of the graph neural network. In contrast, the model proposed in this embodiment uses a characterization method to comprehensively calculate the attribute data of all neighborhood nodes, so it has greater resilience to abnormal situations of single instance data, thereby enhancing its overall robustness. The comparison with the experimental results of the graph convolutional neural network is shown in Table 4 below:
[0083] Table 4
[0084] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A credit risk assessment method based on heterogeneous information networks and deep learning, characterized in that: The steps include: Step S1: construct a small and micro-enterprise related heterogeneous information network, design a dynamic update mechanism for the small and micro-enterprise related heterogeneous information network, and obtain a dynamic small and micro-enterprise related heterogeneous information network that dynamically evolves over time; Step S2: setting node attributes of the dynamic small and micro enterprise associated heterogeneous information network, and extracting network associated risk features from the dynamic small and micro enterprise associated heterogeneous information network based on node attributes and network topology; Step S3: construct a multi-layer integrated learning model, fuse the non-network features of small and micro enterprises with the network-related risk features to obtain fused features, and use the multi-layer integrated learning model to learn the fused features; Step S4, iteratively construct variants of target propagation, use the variants of target propagation to jointly optimize the multi-layer ensemble learning model, and use the jointly optimized multi-layer ensemble learning model to predict the credit risk of small and micro enterprises.
2. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 1, characterized in that: The step S1 comprises the following steps: Step S11: construct a heterogeneous information network with enterprises and natural persons as nodes and association relationships as edges, wherein the heterogeneous information network is represented as follows: ; in, express Heterogeneous information network at all times, express The set of nodes in the network at that moment, express The set of edges in the network at that moment; Step S12: extracting m small and micro enterprise nodes at time t from the heterogeneous information network, performing network reconstruction on the m small and micro enterprise nodes at time t, and obtaining a reconstructed sub-network set; Step S13: Combining the reconstructed sub-network set to generate a small and micro-enterprise associated heterogeneous information network.
3. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 2 is characterized in that: The step S12 comprises the following steps: Step S121: Obtain the nodes of small and micro enterprises in the heterogeneous information network at time t of Order neighborhood: ; in, Is a node At time t The order neighborhood, Representation Node and nodes Between The shortest path distance at time; Step S122: Based on Establish small and micro enterprise nodes in the neighborhood At time t Sub-network: ; ; in, express Time Node and The edge between for Time Node exist The set of edges in the order neighborhood; Step S123: The association relationships in the sub-network are reconstructed into undirected edges of the same type, and the nodes of small and micro enterprises are obtained. The reconstructed subnetwork centered on .
4. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 3 is characterized in that: The step S2 comprises the following steps: Step S21: Use enterprise information as node attribute to identify small and micro enterprise nodes Set node properties, including small and micro enterprise nodes With node attributes ; Step S22: extracting the network of small and micro enterprises from the dynamic small and micro enterprise associated heterogeneous information network The neighbor set of small and micro enterprise nodes of The first-order neighbors are small and micro enterprise nodes The shortest distance is Nodes for small and micro enterprises A collection of: ; Step S23: Calculate the network D-order neighbor set, and extract network association risk characteristics according to the calculation results.
5. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 4 is characterized in that: Calculating the network D-order neighbor set includes: The D-order neighbor set of the network at time t The order neighbors satisfy the condition The node is recorded as the first node; The D-order neighbor set of the network at time t The order neighbors satisfy the condition and The node is recorded as the second node; Calculate a first node number of the first node and a second node number of the second node, and calculate a ratio of the second node number to the first node number; A sum of the node attributes of the first node and a mean of the node attributes of the first node are calculated.
6. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 5 is characterized in that: The first number of nodes is calculated as follows: ; in, Represents the first node attribute, Representation Node The first node attribute of is the first node attribute condition value, is the node at time t of The order neighbors satisfy the condition A collection of nodes; The second number of nodes is calculated as follows: ; in, Represents the second node attribute, Representation Node The second node attribute, is the attribute condition value of the second node, is the node at time t of The order neighbors satisfy the condition and A collection of nodes; The ratio value is calculated as follows: ; The sum of the node attributes of the first node is calculated as follows: ; in, Representation Node Second level point attributes sum; The mean value of the node attribute of the first node is calculated as follows: 。 7. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 1, characterized in that: The step S3 comprises the following steps: Step S31: Obtain non-network features of small and micro enterprises, and combine the non-network features with the network-related risk features to obtain fusion information. ; Step S32: construct a multi-layer ensemble learning model with an M-layer ensemble learning layer structure, wherein the layers are nonlinearly mapped. Layer Ensemble learns the positive mapping of the layer The output is recorded as , The fusion information , will Layer to The mapping of the layers is denoted as ; Step S33: Establish the first Layer Ensemble Learning of Pseudo-Inverse Mapping of Layers : ; Step S34: Initialize the established pseudo-inverse mapping multi-layer model, generate Gaussian noise as the intermediate layer output, and use the intermediate layer output to train and generate the initial mapping , use the tag Set the pseudo label of the Mth ensemble learning layer : ; in, is the learning rate, is the output of the Mth layer of the model With label The loss between.
8. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 7 is characterized in that: Random noise is set in the reconstruction loss function, and the random noise is set as follows: ; in, is the reconstruction loss, is random noise with a mean of 0 and a standard deviation of The normal distribution of .
9. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 7, characterized in that: The step S4 comprises: Step S41: Pseudo-inverse mapping constructed based on step S33 Assign a pseudo label to each ensemble learning layer from bottom to top : ; Step S42: After assigning pseudo labels, according to the loss function Compute the residual: ; ; in, The positive mapping of the ensemble learning layer The residual of the iteration; Step S43: Fit a new regression tree using the residual ,in Indicates the first a tree; Step S44, by continuously iterating and constructing new trees to reduce the residual, each layer of the integrated learning layer is optimized, wherein the optimization process is as follows: ; ; in, is the learning rate of a single layer of ensemble learning, Parameters for the number of iterations of a single layer for ensemble learning; Step S45: When the positive mappings of the M-layer integrated learning layer are optimized, move to the next iteration to update the pseudo-inverse mapping , repeat steps S41 to S45 to iterate.
10. The credit risk assessment method based on heterogeneous information network and deep learning according to claim 9, characterized in that: Update the pseudo-inverse mapping Including, using the reconstruction loss function to calculate the residual, and using the residual to fit the regression tree : ; ; in, Pseudo-inverse mapping for the ensemble learning layer The residual error at iteration .
