Enterprise credit risk scoring method, device, equipment and storage medium

By building an enterprise knowledge graph and credit risk model, and combining the multi-dimensional relationships between the enterprise and relevant subjects and objects, the problem of low accuracy of enterprise credit risk assessment in the existing technology is solved, achieving more accurate and timely risk prediction, and improving the Decision-making capabilities of financial institutions.

CN114202223BActive Publication Date: 2024-09-24WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111543805.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-09-24
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

When assessing corporate credit risks, the existing technology mainly relies on corporate financial data and less considers the indirect risk correlations between companies and the indirect risk correlations between legal representatives, senior executives and companies, resulting in low prediction accuracy.

Method used

By obtaining basic enterprise data, constructing an enterprise knowledge graph, extracting enterprise feature sets of different dimensions, and using credit risk models for iterative training, risk prediction is performed based on multi-dimensional relationships between enterprises and relevant subjects and objects, thereby improving the accuracy of credit scores.

Benefits of technology

By deeply exploring the implicit relationships between enterprises and legal representatives, the accuracy and timeliness of corporate credit risk predictions are improved, and financial institutions are helped to make more effective risk ratings and decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114202223B
    Figure CN114202223B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for scoring enterprise credit risk, wherein the enterprise credit risk scoring method comprises: obtaining enterprise basic data, wherein the enterprise basic data comprises enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise, constructing an enterprise knowledge graph of the target enterprise based on the enterprise basic data, extracting enterprise feature sets of different dimensions of the target enterprise based on the enterprise knowledge graph, predicting the risk based on the enterprise feature sets of different dimensions through a credit risk model, and obtaining an enterprise credit scoring result, wherein the target credit risk control model is obtained by iteratively training the feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained. The present application solves the technical problem of low accuracy in predicting enterprise credit risk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology in financial technology (Fintech), and in particular to a method, device, equipment and storage medium for enterprise credit risk scoring. Background Art

[0002] With the continuous development of financial technology, especially Internet technology finance, more and more technologies (such as distributed, artificial intelligence, etc.) are applied in the financial field, but the financial industry also puts forward higher requirements for technology.

[0003] At present, corporate credit risk mostly manifests itself as loan risk, which mainly refers to the overdue or bad debts caused by the failure of enterprises to repay the loans borrowed from banks on the agreed period, thus causing losses to the banks. The existing assessment of corporate risk mainly evaluates corporate credit risk by constructing an indicator system with corporate financial data as the core, or trains models with corporate financial data as the core to predict credit risk, that is, measuring corporate credit risk through structured indicators directly related to the enterprise, such as repayment indicators, profit indicators, performance indicators, etc., and rarely considers the indirect risk correlation between enterprises, as well as the indirect risk correlation between legal representatives and senior executives of enterprises and enterprises, which leads to low accuracy in predicting corporate credit risk. Summary of the invention

[0004] The main purpose of this application is to provide a corporate credit risk scoring method, device, equipment and storage medium, aiming to solve the technical problem of low accuracy in predicting corporate credit risk in the prior art.

[0005] To achieve the above objectives, the present application provides a method for scoring corporate credit risk, which includes:

[0006] Acquire enterprise basic data, wherein the enterprise basic data includes enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise;

[0007] Based on the basic enterprise data, construct an enterprise knowledge graph of the target enterprise;

[0008] Based on the enterprise knowledge graph, extract enterprise feature sets of different dimensions of the target enterprise;

[0009] Based on the enterprise feature sets of different dimensions, the risk is predicted through a credit risk model to obtain an enterprise credit score result, wherein the target credit risk control model is obtained by extracting feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained and performing iterative training.

[0010] The present application also provides an enterprise credit risk scoring device, which is a virtual device and includes:

[0011] An acquisition module is used to acquire enterprise basic data, wherein the enterprise basic data includes enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise;

[0012] A construction module, used to construct an enterprise knowledge graph of the target enterprise based on the enterprise basic data;

[0013] A feature extraction module, used to extract enterprise feature sets of different dimensions of the target enterprise based on the enterprise knowledge graph;

[0014] The risk prediction module is used to predict the risk based on the enterprise feature sets of different dimensions through a credit risk model to obtain an enterprise credit score result, wherein the target credit risk control model is obtained by iteratively training the feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained.

[0015] The present application also provides an enterprise credit risk scoring device, which is a physical device. The enterprise credit risk scoring device includes: a memory, a processor, and an enterprise credit risk scoring program stored on the memory. The enterprise credit risk scoring program is executed by the processor to implement the steps of the above-mentioned enterprise credit risk scoring method.

[0016] The present application also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores an enterprise credit risk scoring program, and the enterprise credit risk scoring program is executed by a processor to implement the steps of the enterprise credit risk scoring method as described above.

[0017] The present application provides a method, device, equipment and storage medium for scoring corporate credit risk. Compared with the technical means used in the prior art to train models based on corporate financial data to predict credit risk, the present application first obtains basic corporate data, wherein the basic corporate data includes corporate data of a target enterprise and corporate data corresponding to subject objects associated with the target enterprise, and then constructs an enterprise knowledge graph of the target enterprise based on the basic corporate data, that is, obtains the corporate knowledge graph of the target enterprise and subject objects associated with the target enterprise, so as to better and more deeply mine valuable information such as explicit and implicit associations between enterprises and legal persons, as well as hidden associations between enterprises based on the corporate knowledge graph. Furthermore, based on the corporate knowledge graph, extracts a set of corporate features of different dimensions of the target enterprise, and then based on The enterprise feature sets of different dimensions are used to predict the risks through a credit risk model to obtain an enterprise credit scoring result, wherein the target credit risk control model is obtained by iteratively training the feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained, thereby realizing the combination of feature sets of different dimensions, and providing an enterprise credit risk scoring method that integrates the enterprise and the subject objects related to the enterprise. The target credit risk control model is built according to the feature sets of different dimensions, and the problem is analyzed from a multi-relationship perspective. The potential relationship between subject objects and the value behind the data is deeply excavated to improve the information value density, so that the target credit risk control model can be used to more accurately and timely discover the enterprise credit risk, so that financial institutions can make effective risk ratings and decisions, thereby improving the accuracy of enterprise credit risk prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0020] Figure 1 This is a flow chart of the first embodiment of the enterprise credit risk scoring method of the present application;

[0021] Figure 2 This is a flow chart of the second embodiment of the enterprise credit risk scoring method of this application;

[0022] Figure 3This is a flow chart of the third embodiment of the enterprise credit risk scoring method of the present application;

[0023] Figure 4 This is a schematic diagram of the directed graph structure of the enterprise knowledge graph for this application;

[0024] Figure 5 A schematic diagram of the structure of an enterprise credit risk scoring device in the hardware operating environment involved in the embodiment of the present application;

[0025] Figure 6 This is a schematic diagram of the functional modules of the enterprise credit risk scoring device of this application.

[0026] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0027] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0028] The present application embodiment provides a method for scoring corporate credit risk. In the first embodiment of the present application corporate credit risk scoring method, refer to Figure 1 , the enterprise credit risk scoring method includes:

[0029] Step S10, acquiring enterprise basic data, wherein the enterprise basic data includes enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise;

[0030] In this embodiment, it should be noted that the basic enterprise data includes the enterprise's risk information, entity attribute information, and the structural information between the enterprise and other entities in the enterprise knowledge graph. The subject objects include organizational subjects, person subjects, etc. This application comprehensively considers the data of direct and indirect associations with the target enterprise, and deeply explores valuable information such as explicit and implicit associations between individuals and enterprises, as well as hidden associations between enterprises, so as to make the credit risk prediction more credible.

[0031] Step S20, constructing an enterprise knowledge graph of the target enterprise based on the enterprise basic data;

[0032] In this embodiment, it should be noted that the enterprise knowledge graph is used to characterize the entities, attributes and relationships between entities of the subject object itself. The enterprise knowledge graph is a structured symbolic expression of the objective physical world, and it is also a network knowledge base, which is composed of entities with attributes linked by relationships, and the relationships also include their own attributes. From the perspective of graph theory, the enterprise knowledge graph is essentially a conceptual network, whose nodes represent entities in the objective physical world, and the edges represent various semantic relationships between entities. In this application, the key point of the construction of the enterprise knowledge graph is the mining of relationships between enterprises and between enterprises and people. Through these relationships, an enterprise relationship network, that is, an enterprise knowledge graph, can be constructed. Constructing an enterprise knowledge graph can help us dig out potential connections between enterprises from a large amount of messy data.

[0033] Specifically, based on the enterprise basic data, the entities corresponding to the enterprise basic data, the association relationships between entities, and the entity attribute information are extracted, that is, data in three dimensions: entity attribute information, enterprise risk information, and enterprise external relations are extracted, so as to construct an enterprise knowledge graph between enterprises, enterprises and legal representatives, enterprises and enterprise risk information, and individuals and enterprise risk information.

[0034] Step S30, extracting enterprise feature sets of different dimensions of the target enterprise based on the enterprise knowledge graph;

[0035] In this embodiment, it should be noted that the enterprise feature sets of different dimensions include enterprise structure features, enterprise risk features, and enterprise attribute features of the target enterprise.

[0036] Based on the enterprise knowledge graph, a set of enterprise features of different dimensions of the target enterprise is extracted. Specifically, based on the enterprise risk information and entity attribute information in the enterprise knowledge graph, the enterprise risk features and enterprise attribute features corresponding to the target enterprise are extracted through a preset feature extraction algorithm, and then the heterogeneous knowledge graph of the enterprise knowledge graph is converted into a homogeneous knowledge graph to obtain the converted enterprise knowledge graph. Further, it should be noted that since the enterprise structure features will fluctuate greatly according to the addition of points and edges in the enterprise knowledge graph, therefore, in the process of extracting enterprise structure features, it is first determined whether there are new subject object nodes or new edges in the enterprise knowledge graph corresponding to the enterprise to be trained at the current time point. If not, the structural feature vectors of each subject object node in the enterprise knowledge graph are extracted through a graph node embedding algorithm. If so, a depth-first traversal of a preset depth is performed with the new subject object node or the new edge as the center to form a target sub-knowledge graph, and then the structural feature vector extracted at the previous time point is integrated into each subject object node of the target sub-knowledge graph corresponding to the current time point for local training, thereby realizing dynamic incremental update of enterprise structure features.

[0037] Step S40, based on the enterprise feature sets of different dimensions, the risk is predicted through a credit risk model to obtain an enterprise credit score result, wherein the target credit risk control model is obtained by iteratively training the feature sets of different dimensions extracted from the enterprise knowledge graph of the enterprise to be trained.

[0038] In this embodiment, it should be noted that the feature sets of different dimensions include features corresponding to enterprise entity attribute information, enterprise risk information, and enterprise external relationships.

[0039] Based on the enterprise feature sets of different dimensions, the risk is predicted through the credit risk model to obtain the enterprise credit score result, wherein the target credit risk control model is obtained by extracting the feature sets of different dimensions in the enterprise knowledge graph of the enterprise to be trained and iteratively training. Specifically, first, the historical data corresponding to the enterprise to be trained and the subject objects having an associated relationship with the enterprise to be trained are obtained in advance, and then the association relationship between each subject object, entity attribute information and other information are extracted based on the historical data to construct the enterprise knowledge graph corresponding to the enterprise to be trained, and then based on the enterprise knowledge graph, feature data of different dimensions of enterprise structure characteristics, enterprise risk characteristics and enterprise attribute characteristics are extracted. Further, based on the enterprise risk characteristics and the enterprise attribute characteristics, the sub-model to be trained is iteratively trained to obtain an intermediate training model. Further, it should be noted that since the enterprise structure characteristics will fluctuate greatly according to the addition of points and edges in the enterprise knowledge graph, therefore, in the process of extracting the enterprise structure characteristics, the structural feature vectors of each subject object node in the enterprise knowledge graph are extracted through the graph node embedding algorithm to obtain the structure of the enterprise knowledge graph. feature vector, if it is detected that the enterprise knowledge graph corresponding to the enterprise to be trained has a new subject object node or a new edge at the current time point, a depth-first traversal of a preset depth is performed with the new subject object node or the new edge as the center to form a target sub-knowledge graph, and then the structural feature vector extracted at the previous time point is feature fused, and each subject object node of the target sub-knowledge graph corresponding to the current time point is locally trained to obtain the enterprise structure feature at the current time point, thereby realizing the dynamic incremental update of the enterprise structure feature, and then based on the dynamic incremental update of the enterprise structure feature, the intermediate training model obtained by training based on the enterprise risk feature and the enterprise attribute feature is iteratively trained to obtain a credit risk model with the enterprise as the core, and further, the feature data corresponding to the three dimensions of enterprise entity attribute information, enterprise risk information, and enterprise external relations are used as the input of the credit risk model to predict the risk and obtain the enterprise credit score result, thereby providing the ability to analyze problems from a multi-relationship perspective, deeply exploring the potential relationship between individuals and the value behind the data, and improving the value density of risk information, thereby helping banks evaluate risk optimization decisions.

[0040] The embodiment of the present application provides a method for scoring corporate credit risk. Compared with the technical means used in the prior art to train models based on corporate financial data to predict credit risk, the embodiment of the present application first obtains basic corporate data, wherein the basic corporate data includes corporate data of a target enterprise and corporate data corresponding to subject objects associated with the target enterprise, and then constructs an enterprise knowledge graph of the target enterprise based on the basic corporate data, that is, obtains the corporate knowledge graph of the target enterprise and subject objects associated with the target enterprise, so as to better and more deeply mine valuable information such as explicit and implicit associations between enterprises and legal persons, as well as hidden associations between enterprises based on the corporate knowledge graph. Furthermore, based on the corporate knowledge graph, extracts a set of corporate features of different dimensions of the target enterprise, and then extracts the corporate features of different dimensions based on the corporate knowledge graph. The enterprise feature set of the same dimension is used to predict the risk through the credit risk model to obtain the enterprise credit scoring result, wherein the target credit risk control model is obtained by iteratively training the feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained, thereby realizing the combination of feature sets of different dimensions, and providing an enterprise credit risk scoring method that integrates the enterprise and the subject objects related to the enterprise. The target credit risk control model is built according to the feature sets of different dimensions, and the problem is analyzed from a multi-relationship perspective. The potential relationship between the subject objects and the value behind the data is deeply excavated to improve the information value density, so that the target credit risk control model can be used to more accurately and timely discover the enterprise credit risk, so that financial institutions can make effective risk ratings and decisions, thereby improving the accuracy of enterprise credit risk prediction.

[0041] Further, refer to Figure 2 Based on the first embodiment of the present application, in another embodiment of the present application, the risk is predicted based on the enterprise feature set of different dimensions by a target credit risk control model to obtain an enterprise credit score result, wherein the target credit risk control model is obtained by extracting feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained and iteratively training the target credit risk control model, and before the step of obtaining the same, the enterprise credit risk scoring method further includes:

[0042] Step A10, obtaining historical data of subject objects to be trained, wherein the subject objects include an enterprise to be trained and a plurality of subject objects associated with the enterprise to be trained;

[0043] In this embodiment, historical data to be trained of subject objects are obtained, wherein the subject objects include an enterprise to be trained and multiple subject objects associated with the enterprise to be trained. Specifically, historical data to be trained corresponding to the enterprise to be trained and multiple subject objects associated with the enterprise to be trained are obtained. The purpose of collecting historical data to be trained of multiple subject objects associated with the enterprise to be trained is to expand the consideration of indirect risk associations between enterprises, as well as indirect risk associations between legal representatives of enterprises, senior executives of enterprises and enterprises, so as to improve the robustness of the model.

[0044] Step A20, constructing an enterprise knowledge graph corresponding to the enterprise to be trained based on the historical data to be trained;

[0045] In this embodiment, based on the historical data to be trained, an enterprise knowledge graph corresponding to the enterprise to be trained is constructed. Specifically, based on the historical data to be trained, entity information and attribute information are extracted from the historical data to be trained, wherein the entity information includes entities and relationship information between entities, and then knowledge capture and entity linking are performed on the entity information and the attribute information, that is, the knowledge is integrated to form an enterprise knowledge graph with relationships between entities.

[0046] The step of constructing the enterprise knowledge graph corresponding to the enterprise to be trained based on the historical data to be trained includes:

[0047] Step A21, determining the entity information and attribute information corresponding to the historical data to be trained;

[0048] In this embodiment, the entity information and attribute information corresponding to the historical data to be trained are determined. Specifically, based on the historical data to be trained, the entities corresponding to the historical data to be trained are extracted, and the association relationship between the entities is extracted, that is, the association relationship between the enterprise to be trained and multiple subject objects associated with the enterprise to be trained is extracted, and the entities and the association relationship between the entities are used as the entity information, wherein the association relationship between the entities includes the position relationship between the person entity and the enterprise entity, the investment relationship between the enterprise entities, or the associated transaction relationship related to equity transactions between the enterprise entities. Furthermore, the attribute information corresponding to each entity is also extracted.

[0049] Step A22: Based on the entity information and the attribute information, knowledge is extracted from the historical data to be trained to obtain the enterprise knowledge graph of the enterprise to be trained.

[0050] In this embodiment, based on the entity information and the attribute information, knowledge extraction is performed on the historical data to be trained to obtain the enterprise knowledge graph of the enterprise to be trained. Specifically, knowledge capture and entity linking are performed on the entity information and the attribute information to form knowledge graph information with relationships between entities. The integrated knowledge graph information is then added to a structured knowledge base, and the knowledge graph is demonstrated using knowledge reasoning of the structured knowledge base to obtain the enterprise knowledge graph. For example, assuming that enterprise A invests in company B and the legal representative of company B is C, the enterprise knowledge graph can be expressed as A->B<-C.

[0051] Step A30, extracting features from the enterprise knowledge graph to obtain a set of enterprise features to be trained, wherein the set of enterprise features to be trained includes enterprise structure features, enterprise risk features, and enterprise attribute features;

[0052] In this embodiment, it should be noted that the enterprise risk characteristics are relevant characteristics of enterprise risk information in the enterprise knowledge graph, the enterprise attribute characteristics refer to the characteristics of entity attribute information in the enterprise knowledge graph, and the enterprise structure characteristics refer to the vector representation of the homogeneity and structure of the enterprise with other entities in the knowledge graph, wherein the homogeneity means that the embedding feature vectors of nodes with similar distances should be as similar as possible, and the structure means that the embeddings of nodes with similar structures should be as close as possible.

[0053] Feature extraction is performed on the enterprise knowledge graph to obtain a set of enterprise features to be trained, wherein the set of enterprise features to be trained includes enterprise structure features, enterprise risk features and enterprise attribute features. Specifically, feature extraction is performed on entity attribute information and enterprise risk information in the enterprise knowledge graph to obtain the enterprise attribute features and the enterprise risk features. In one embodiment, the feature extraction method includes a gradient boosting decision tree, a neural network, etc. for feature extraction, such as gradient boosting decision trees such as GBDT, XBGoost and LightGBM. Furthermore, when extracting enterprise structure features, the heterogeneous knowledge graph in the enterprise knowledge graph can be first converted into a homogeneous knowledge graph. When the subject object nodes in the enterprise knowledge graph are dynamically extracted by a graph node embedding algorithm, the embedding structure feature vectors of each subject object node in the converted enterprise knowledge graph are learned to obtain the enterprise structure features. wherein the graph node embedding algorithm includes Including node2vec, word2vec, doc2vec and other algorithms. In the present application, preferably, the node2vec algorithm is selected for feature extraction. Furthermore, since the enterprise structure characteristics will fluctuate greatly with the addition of enterprise knowledge graph points and edges, therefore, if the converted knowledge graph has a newly added subject object node or a newly added edge at the current time point, a target sub-knowledge graph centered on the newly added subject object node or the newly added edge is obtained, and then based on the structural feature vector at the previous time point, each subject object node of the target sub-knowledge graph at the current time is fused and trained to obtain the enterprise structure characteristics at the current time point, wherein the method for forming the target sub-knowledge graph can be a depth-first traversal with a preset depth centered outward from the current newly added subject object node or the newly added edge, or a breadth-first traversal with the current newly added subject object node or the newly added edge as the center until all nodes adjacent to the newly added subject object node or the newly added edge are traversed.

[0054] The step of extracting features from the enterprise knowledge graph to obtain a feature set of enterprises to be trained includes:

[0055] Step A31, based on a preset feature extraction algorithm, feature extraction is performed on the entity attribute information and the enterprise risk information in the enterprise knowledge graph to obtain the enterprise attribute features and the enterprise risk features;

[0056] Step A40, based on the enterprise risk characteristics and enterprise attribute characteristics, iteratively train the sub-model to be trained to obtain an intermediate training model;

[0057] In this embodiment, it should be noted that, in the enterprise feature set to be trained, enterprise risk features and enterprise attribute features belong to a relatively stable feature variable set, which is not easily affected by changes in the enterprise knowledge graph structure.

[0058] Based on the enterprise risk characteristics and enterprise attribute characteristics, the sub-model to be trained is iteratively trained to obtain an intermediate training model. Specifically, before performing iterative training, the sub-model to be trained is first obtained, and then the sub-model to be trained is iteratively trained and optimized, and it is determined whether the optimized sub-model to be trained meets the preset training end conditions, wherein the preset training end conditions include conditions such as loss function convergence and reaching the maximum number of iterations threshold. If the conditions are met, the intermediate training model is obtained; if not, the execution step is returned to: based on the enterprise risk characteristics and enterprise attribute characteristics, the sub-model to be trained is iteratively trained.

[0059] Step A50: Based on the enterprise structure characteristics, the intermediate training model is trained to obtain the credit risk model.

[0060] The step of training the intermediate training model based on the enterprise structure characteristics to obtain the credit risk model includes:

[0061] Step A51, inputting the enterprise structure characteristics into the intermediate training model to obtain the prediction result corresponding to the enterprise to be trained;

[0062] Step A52, calculating the model loss based on the prediction result and the credit risk label corresponding to the enterprise to be trained;

[0063] In this embodiment, it should be noted that the credit risk labels corresponding to the enterprises to be trained will be marked before model training.

[0064] Based on the prediction result and the credit risk label corresponding to the enterprise to be trained, the model loss is calculated. Specifically, based on the difference between the prediction result and the credit risk label corresponding to the enterprise to be trained, the model loss is calculated by a preset loss function, for example, the model loss is calculated by an L2 loss function.

[0065] Step A53, based on the calculated gradient of the model loss, iteratively train and optimize the intermediate training model to obtain the credit risk model.

[0066] In this embodiment, based on the calculated gradient of the model loss, the intermediate training model is iteratively trained and optimized to obtain the credit risk model. Specifically, based on the calculated gradient of the model loss, the intermediate training model is iteratively trained to optimize the intermediate training model, and it is determined whether the optimized intermediate training model meets the preset training end condition. If so, the credit risk model is obtained. If not, the execution returns to the step of obtaining the historical data to be trained of the subject object.

[0067] An embodiment of the present application provides a method for scoring corporate credit risk, that is, obtaining historical data to be trained of a subject object, wherein the subject object includes a to-be-trained enterprise and multiple subject objects associated with the to-be-trained enterprise, constructing an enterprise knowledge graph corresponding to the to-be-trained enterprise based on the historical data to be trained, performing feature extraction on the enterprise knowledge graph, and obtaining a feature set of the to-be-trained enterprise, wherein the feature set of the to-be-trained enterprise includes enterprise structure features, enterprise risk features, and enterprise attribute features, iteratively training a sub-model to be trained based on the enterprise risk features and enterprise attribute features to obtain an intermediate training model, and model training is performed on the intermediate training model based on the enterprise structure features to obtain the credit risk model. The construction of the knowledge graph is based on data of different subject object data structures, which can more comprehensively and objectively reflect the association relationship between entities and expand the data dimension of the constructed model, thereby improving the accuracy of the credit risk prediction of the enterprise by the model trained based on data of different dimensions.

[0068] Further, refer to Figure 3 Based on the second embodiment of the present application, in another embodiment of the present application, the step of extracting features from the enterprise knowledge graph to obtain a feature set of the enterprise to be trained includes:

[0069] Step B10, converting the heterogeneous knowledge graph in the enterprise knowledge graph into a homogeneous knowledge graph to obtain a converted knowledge graph;

[0070] Step B20, dynamically extracting the structural feature vector of each subject object node in the converted knowledge graph to obtain the enterprise structural features.

[0071] In this embodiment, it should be noted that the algorithms for extracting feature vectors include graph node embedding algorithms, neural networks, etc. Preferably, the graph node embedding algorithm is selected.

[0072] Specifically, based on the converted knowledge graph, it is necessary to determine at each time point whether there are new subject object nodes or new edges in the converted knowledge graph. If not, the structural feature vectors of each subject object node in the converted knowledge graph are directly extracted through the graph node embedding algorithm to obtain the enterprise structure features. If so, it means that the structure of the converted knowledge graph has changed. It should be further explained that since the enterprise knowledge graph in the present application is a directed graph, and the directed graph includes two directions, out-degree and in-degree, in one feasible implementation method, with the new subject object node or the new edge as the center, a depth-first traversal of a preset depth is performed outward according to the out-degree direction to obtain the target sub-knowledge graph, and the feature information of the target sub-knowledge graph is extracted through the graph node embedding algorithm, and then the enterprise structure features extracted at the previous time point and the feature information of the target sub-knowledge graph are feature fused to obtain the enterprise structure features at the current time point, thereby realizing dynamic incremental update of the enterprise structure features, without the need to recalculate the full network structure features of the converted knowledge graph, thereby improving the efficiency of enterprise structure feature extraction.

[0073] The step of dynamically extracting the structural feature vectors of each subject object node in the converted knowledge graph to obtain the enterprise structural features includes:

[0074] Step B21, based on the network structure properties of the converted knowledge graph, extracting the structural feature vector of each subject object node in the converted knowledge graph through a graph node embedding algorithm;

[0075] In this embodiment, it should be noted that the network structure properties of the converted knowledge graph include the same properties and structure between the subject object nodes. Figure 4 , Figure 4 This is a schematic diagram of the directed graph structure of the enterprise knowledge graph of this application, wherein node E1 and node E2 are the central nodes of their respective networks and have similar structures, and the expressions of their embedding structure feature vectors should also be similar, which is a manifestation of structurality. Furthermore, the expressions of the embedding structure feature vectors of node E1 and its connected nodes E3 and E3 should be close, which is a manifestation of homogeneity.

[0076] Specifically, the converted knowledge graph is extracted through a graph node embedding algorithm to perform structural feature extraction, its knowledge is vectorized, the entities and the relationships between entities in the converted knowledge graph are embedded into dense low-dimensional vectors, and the structural feature vector of the converted knowledge graph is obtained. In one feasible implementation method, the node2vec algorithm is used to map the features in the corresponding network of the converted knowledge graph to a vectorized representation in a high-dimensional space, and the relevant feature vectors are accumulated to obtain the structural feature vectors of each subject object node in the converted knowledge graph.

[0077] Step B22: If there is a newly added subject object node or a newly added edge in the converted knowledge graph at the current time point, a depth-first traversal of a preset depth is performed with the newly added subject object node or the newly added edge as the center to form a target sub-knowledge graph;

[0078] In this embodiment, it should be noted that the newly added subject object nodes include new legal representatives, newly added shareholding investment enterprises, etc. The enterprise structure characteristics will fluctuate greatly with the addition of new points and edges in the enterprise knowledge graph, and each time the enterprise knowledge graph changes, all node structure feature vectors need to be recalculated, which will lead to large consumption of computing resources and poor traceability of structure vectors. Furthermore, since the enterprise knowledge graph of this application belongs to a factual relationship, it can be understood that each newly added subject object node and edge only changes the graph structure to a small extent.

[0079] Specifically, when a new subject object node or a new edge is detected in the converted knowledge graph at the current time point, it proves that the structure of the converted knowledge graph will change, and then starting outward with the new subject object node or the new edge as the center, a depth-first traversal is performed according to the pre-set traversal depth step, so as to obtain a target sub-knowledge graph with the new subject object node or the new edge as the center, for example, a new subject object node S corresponding to an investment enterprise is added to the converted knowledge graph.

[0080] Step B23, feature fusion is performed on the feature information of the target sub-knowledge graph and the enterprise structure feature of the current newly added node corresponding to the previous time point to obtain the enterprise structure feature.

[0081] In this embodiment, specifically, the structural feature vector of the previous time point is integrated into each main object node of the target sub-knowledge graph corresponding to the current time, so as to locally train and integrate each main object node of the target sub-knowledge graph, and continuously iterate the training to obtain the updated enterprise structural features, thereby realizing dynamic incremental update of enterprise structural features through traffic, so that each time there are newly added nodes and edges, only the small part of the changed structure needs to be recalculated, thereby avoiding recalculation of the entire network.

[0082] Reference Figure 5 , Figure 5 It is a schematic diagram of the structure of an enterprise credit risk scoring device in the hardware operating environment involved in the embodiment of the present application.

[0083] like Figure 5As shown, the enterprise credit risk scoring device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0084] Optionally, the enterprise credit risk scoring device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WIFI interface).

[0085] Those skilled in the art will understand that Figure 5 The structure of the enterprise credit risk scoring device shown in the figure does not constitute a limitation on the enterprise credit risk scoring device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0086] like Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating device, a network communication module and an enterprise credit risk scoring program. The operating device is a program that manages and controls the hardware and software resources of the enterprise credit risk scoring device, and supports the operation of the enterprise credit risk scoring program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the enterprise credit risk scoring device.

[0087] exist Figure 5 In the enterprise credit risk scoring device shown, the processor 1001 is used to execute the enterprise credit risk scoring program stored in the memory 1005 to implement the steps of any of the above-mentioned enterprise credit risk scoring methods.

[0088] The specific implementation methods of the enterprise credit risk scoring device of the present application are basically the same as the embodiments of the above-mentioned enterprise credit risk scoring method, and will not be repeated here.

[0089] In addition, please refer to Figure 5 , Figure 5: is a functional module diagram of the enterprise credit risk scoring device of the present application. The present application also provides an enterprise credit risk scoring device, which includes:

[0090] An acquisition module is used to acquire enterprise basic data, wherein the enterprise basic data includes enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise;

[0091] A construction module, used to construct an enterprise knowledge graph of the target enterprise based on the enterprise basic data;

[0092] A feature extraction module, used to extract enterprise feature sets of different dimensions of the target enterprise based on the enterprise knowledge graph;

[0093] The risk prediction module is used to predict the risk based on the enterprise feature sets of different dimensions through a credit risk model to obtain an enterprise credit score result, wherein the target credit risk control model is obtained by iteratively training the feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained.

[0094] Optionally, the enterprise credit risk scoring device is also used to:

[0095] Acquire historical data to be trained of a subject object, wherein the subject object includes an enterprise to be trained and a plurality of subject objects associated with the enterprise to be trained;

[0096] Based on the historical data to be trained, construct an enterprise knowledge graph corresponding to the enterprise to be trained;

[0097] Extracting features from the enterprise knowledge graph to obtain a set of enterprise features to be trained, wherein the set of enterprise features to be trained includes enterprise structure features, enterprise risk features, and enterprise attribute features;

[0098] Based on the enterprise risk characteristics and enterprise attribute characteristics, iteratively train the sub-model to be trained to obtain an intermediate training model;

[0099] Based on the enterprise structure characteristics, the intermediate training model is trained to obtain the credit risk model.

[0100] Optionally, the enterprise credit risk scoring device is also used to:

[0101] Based on a preset feature extraction algorithm, feature extraction is performed on the entity attribute information and the enterprise risk information in the enterprise knowledge graph to obtain the enterprise attribute features and the enterprise risk features;

[0102] Optionally, the enterprise credit risk scoring device is also used to:

[0103] Converting the heterogeneous knowledge graph in the enterprise knowledge graph into a homogeneous knowledge graph to obtain a converted knowledge graph;

[0104] The structural feature vectors of each subject object node in the converted knowledge graph are dynamically extracted to obtain the enterprise structural features.

[0105] Optionally, the enterprise credit risk scoring device is also used to:

[0106] Based on the network structure properties of the converted knowledge graph, a structural feature vector of each subject object node in the converted knowledge graph is extracted by a graph node embedding algorithm;

[0107] If there is a newly added subject object node or a newly added edge in the converted knowledge graph at the current time point, a depth-first traversal of a preset depth is performed with the newly added subject object node or the newly added edge as the center to form a target sub-knowledge graph;

[0108] Based on the structural feature vector at the previous time point before the target sub-knowledge graph is formed, local training is performed on each main object node corresponding to the target sub-knowledge graph at the current time point to obtain updated enterprise structural features.

[0109] Optionally, the enterprise credit risk scoring device is also used to:

[0110] Determine entity information and attribute information corresponding to the historical data to be trained;

[0111] Based on the entity information and the attribute information, knowledge is extracted from the historical data to be trained to obtain an enterprise knowledge graph of the enterprise to be trained.

[0112] Optionally, the enterprise credit risk scoring device is also used to:

[0113] Inputting the enterprise structure characteristics into the intermediate training model to obtain the prediction result corresponding to the enterprise to be trained;

[0114] Calculating model losses based on the prediction results and the credit risk labels corresponding to the enterprises to be trained;

[0115] Based on the calculated gradient of the model loss, the intermediate training model is iteratively trained and optimized to obtain the credit risk model.

[0116] The specific implementation of the enterprise credit risk scoring device of the present application is basically the same as the various embodiments of the above-mentioned enterprise credit risk scoring method, and will not be repeated here.

[0117] An embodiment of the present application provides a storage medium, which is a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned enterprise credit risk scoring methods.

[0118] The specific implementation methods of the computer-readable storage medium of the present application are basically the same as the above-mentioned embodiments of the enterprise credit risk scoring method, and will not be repeated here.

[0119] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A method for scoring corporate credit risk, characterized in that: The enterprise credit risk scoring method includes: Acquire enterprise basic data, wherein the enterprise basic data includes enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise; Based on the basic enterprise data, construct an enterprise knowledge graph of the target enterprise; Based on the enterprise knowledge graph, extract enterprise feature sets of different dimensions of the target enterprise; Based on the enterprise feature sets of different dimensions, risk prediction is performed through a credit risk model to obtain an enterprise credit score result, wherein the credit risk model is obtained by extracting feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained and performing iterative training; The enterprise feature set includes enterprise structure features of the target enterprise, and the step of extracting enterprise feature sets of different dimensions of the target enterprise based on the enterprise knowledge graph includes: Converting the heterogeneous knowledge graph of the enterprise knowledge graph into a homogeneous knowledge graph; Determine whether there is a newly added subject object node or a newly added edge in the converted enterprise knowledge graph at the current time point; If it does not exist, then extract the structural feature vector of each subject object node in the enterprise knowledge graph through a graph node embedding algorithm; If it exists, a depth-first traversal of a preset depth is performed with the newly added subject object node or the newly added edge as the center to form a target sub-knowledge graph, and based on the structural feature vector at the previous time point, local training is performed on each subject object node of the target sub-knowledge graph corresponding to the current time point to obtain the updated enterprise structure characteristics.

2. The enterprise credit risk scoring method according to claim 1, characterized in that: Before the step of performing risk prediction based on the enterprise feature sets of different dimensions through a credit risk model to obtain an enterprise credit score result, wherein the credit risk model is obtained by iteratively training the feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained, the enterprise credit risk scoring method further includes: Acquire historical data to be trained of a subject object, wherein the subject object includes an enterprise to be trained and a plurality of subject objects associated with the enterprise to be trained; Based on the historical data to be trained, construct an enterprise knowledge graph corresponding to the enterprise to be trained; Extracting features from the enterprise knowledge graph to obtain a set of enterprise features to be trained, wherein the set of enterprise features to be trained includes enterprise structure features, enterprise risk features, and enterprise attribute features; Based on the enterprise risk characteristics and enterprise attribute characteristics, iteratively train the sub-model to be trained to obtain an intermediate training model; Based on the enterprise structure characteristics, the intermediate training model is trained to obtain the credit risk model.

3. The enterprise credit risk scoring method according to claim 2, characterized in that: The step of extracting features from the enterprise knowledge graph to obtain a feature set of enterprises to be trained comprises: Converting the heterogeneous knowledge graph in the enterprise knowledge graph into a homogeneous knowledge graph to obtain a converted knowledge graph; The structural feature vectors of each subject object node in the converted knowledge graph are dynamically extracted to obtain the enterprise structural features.

4. The enterprise credit risk scoring method according to claim 2, characterized in that: The step of extracting features from the enterprise knowledge graph to obtain a feature set of enterprises to be trained comprises: Based on a preset feature extraction algorithm, feature extraction is performed on the entity attribute information and the enterprise risk information in the enterprise knowledge graph to obtain the enterprise attribute features and the enterprise risk features.

5. The enterprise credit risk scoring method according to claim 2, characterized in that: The step of constructing the enterprise knowledge graph corresponding to the enterprise to be trained based on the historical data to be trained includes: Determine entity information and attribute information corresponding to the historical data to be trained; Based on the entity information and the attribute information, knowledge is extracted from the historical data to be trained to obtain an enterprise knowledge graph of the enterprise to be trained.

6. The enterprise credit risk scoring method according to claim 2, characterized in that: The step of training the intermediate training model based on the enterprise structure characteristics to obtain the credit risk model comprises: Inputting the enterprise structure characteristics into the intermediate training model to obtain the prediction result corresponding to the enterprise to be trained; Calculating model losses based on the prediction results and the credit risk labels corresponding to the enterprises to be trained; Based on the calculated gradient of the model loss, the intermediate training model is iteratively trained and optimized to obtain the credit risk model.

7. An enterprise credit risk scoring device, characterized in that: The enterprise credit risk scoring device comprises: An acquisition module is used to acquire enterprise basic data, wherein the enterprise basic data includes enterprise data of a target enterprise and enterprise data corresponding to a subject object associated with the target enterprise; A construction module, used to construct an enterprise knowledge graph of the target enterprise based on the enterprise basic data; A feature extraction module, used to extract enterprise feature sets of different dimensions of the target enterprise based on the enterprise knowledge graph; A risk prediction module, used to perform risk prediction based on the enterprise feature sets of different dimensions through a credit risk model to obtain an enterprise credit score result, wherein the credit risk model is obtained by extracting feature sets of different dimensions corresponding to the enterprise knowledge graph of the enterprise to be trained and performing iterative training; The enterprise feature set includes enterprise structure features of the target enterprise, and the feature extraction module is further used to: Converting the heterogeneous knowledge graph of the enterprise knowledge graph into a homogeneous knowledge graph; Determine whether there is a newly added subject object node or a newly added edge in the converted enterprise knowledge graph at the current time point; If it does not exist, then extract the structural feature vector of each subject object node in the enterprise knowledge graph through a graph node embedding algorithm; If it exists, a depth-first traversal of a preset depth is performed with the newly added subject object node or the newly added edge as the center to form a target sub-knowledge graph, and based on the structural feature vector at the previous time point, local training is performed on each subject object node of the target sub-knowledge graph corresponding to the current time point to obtain the updated enterprise structure characteristics.

8. An enterprise credit risk scoring device, characterized in that: The enterprise credit risk scoring device comprises: a memory, a processor and an enterprise credit risk scoring program stored in the memory, The enterprise credit risk scoring program is executed by the processor to implement the steps of the enterprise credit risk scoring method according to any one of claims 1 to 6.

9. A storage medium, the storage medium being a computer-readable storage medium, characterized in that: The computer-readable storage medium stores an enterprise credit risk scoring program, and the enterprise credit risk scoring program is executed by a processor to implement the steps of the enterprise credit risk scoring method as claimed in any one of claims 1 to 6.