Enterprise portrait method and system based on knowledge graph and graph neural network
By constructing enterprise knowledge graphs and graph neural networks, the problem of insufficient modeling of inter-enterprise relationships in existing technologies is solved, enabling high-precision assessment and dynamic prediction of complex inter-enterprise relationships, and improving the interpretability of assessment results and data utilization.
Patent Information
- Application Number
- CN202611289845.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies lack the ability to model inter-enterprise relationships, the scoring model has a simple structure, cannot capture nonlinear relationships and high-order interaction effects between features, lack time-series dynamic modeling, have a low degree of automation in data preprocessing, and the evaluation results lack interpretability.
We construct an enterprise knowledge graph that includes relationships such as equity and supply chain, use graph neural networks for node representation learning, use multi-layer nonlinear network structures for high-order interaction modeling between features, combine temporal convolutional networks for dynamic modeling, and generate interpretable evaluation results through integral gradient algorithms.
It can accurately capture the inter-enterprise correlation and impact, improve scoring accuracy, support dynamic time-series evaluation, enhance data utilization and interpretability of evaluation results, and reduce misjudgments and data waste.
Smart Images

Figure CN123181035A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of data processing and artificial intelligence technology, specifically to a method and system for enterprise profiling based on knowledge graphs and graph neural networks. Background Technology
[0002] With the rapid development of big data, artificial intelligence, and knowledge graph technologies, enterprise digital governance and intelligent decision-making have become key supporting technologies in areas such as government economic management, financial institution credit risk control, and precise services for industrial parks. As an important component of the national economy, the efficient and accurate assessment of the operating conditions, creditworthiness, and growth potential of SMEs directly affects the efficiency of financial resource allocation, the precision of policy support, and the security of supply chain collaboration. Traditional assessment models based on manual surveys and expert scoring are gradually being replaced by intelligent enterprise profiling systems characterized by data-driven approaches and model-based quantification.
[0003] Currently, the existing technologies most similar to this application mainly include the following two solutions:
[0004] Existing technology 1: A corporate credit scoring system based on multi-dimensional weighted indicators. This approach is represented by Chinese invention patent CN105719073A (A Corporate Credit Evaluation System and Method) and the Small Business Scoring Service (SBSS) of FICO Corporation in the United States. CN105719073A discloses a corporate credit evaluation system and method, which uses a logistic regression algorithm to select variables and establish a credit evaluation model based on preset evaluation dimensions. FICOSBSS integrates personal credit data with corporate business data, using over 100 model combinations to assess the credit risk of small and medium-sized enterprises (SMEs). It is used by the U.S. Small Business Administration (SBA) for enterprise risk assessment and financing eligibility determination. The core of this approach lies in: obtaining structured data from sources such as tax, business registration, and bank statements over the past 1-3 years; performing Min-Max normalization on indicators such as annual revenue, net profit, total assets, total liabilities, number of employees, years of establishment, and number of loan delinquencies; determining the weight coefficients of each dimension and indicator according to preset dimensions such as enterprise size, financial status, performance record, and industry prospects using expert scoring or the Analytic Hierarchy Process (AHP); weighted summing of the internal indicators of each dimension to obtain a dimension score; and then weighted summing of the dimension scores to obtain a comprehensive score, ultimately generating a corporate credit report containing both the comprehensive score and the dimension scores.
[0005] Existing Technology 2: Enterprise Health Assessment Software Based on Static Table Data. This solution is represented by the commercial product Qichacha's "Qicha Score" and the open-source project Company Health Score. Qichacha constructs an enterprise scoring system through big data mining and SaaS risk control models; Company Health Score comprehensively scores the overall health of an enterprise from multiple dimensions such as finance, revenue, products, personnel, and operations. This type of solution uses basic enterprise information tables and financial statements as its core, and employs a preset threshold rule engine for scoring: users import enterprise data through an Excel template, and the system performs non-empty validation and logical error detection on required fields; then, it executes IF-THEN rules to add or subtract points, with an initial score of 60 points. For example, "if profit > 0 and profit growth rate > 20%, then the health score +30; if the debt-to-asset ratio > 0.7, then the health score -20"; after each rule is independently accumulated, a final score of 0-100 points is obtained, and preset labels such as "health," "concern," and "risk" are automatically assigned according to the score range, and finally visualized in the form of statistical charts and dashboards.
[0006] However, the above-mentioned existing technical solutions all have the following shortcomings:
[0007] First, there is a lack of modeling capabilities for inter-enterprise relationships. Existing technologies all use independent data from individual enterprises as input, ignoring the complex network relationships formed between enterprises based on equity control, supply chain interactions, industry clusters, geographical locations, and other factors. SMEs are highly dependent on their upstream and downstream core enterprises. Isolated analysis of a single node cannot identify the transmission path of risk between enterprises, such as the cascading impact of a core enterprise's default on upstream and downstream SMEs. Furthermore, it cannot leverage the industry cluster effect to jointly assess enterprise potential, resulting in blind spots in risk monitoring.
[0008] Second, the scoring model has a simple structure and insufficient expressive power. Existing technologies mostly use linear weighted summation models or IF-THEN rule accumulation models. The scores of each dimension and the overall score are all linear combinations of features. They cannot capture the non-linear relationships and high-order interaction effects between features that are common in enterprise data, resulting in limited scoring accuracy and poor ability to distinguish complex business models.
[0009] Third, it only supports static cross-sectional data and lacks time-series dynamic modeling. Existing technologies mostly use data from the most recent year or a single point in time as input, without utilizing the company's historical time-series information over many years and quarters. This makes it impossible to identify early signals of changes in the company's operating conditions, and it is also difficult to capture potential signs of default in a timely manner and predict the company's future state. As a result, the assessment results lag behind actual changes in operations.
[0010] Fourth, the automation level of data preprocessing is low, and the handling of missing values is simple. Existing technologies mostly use methods such as deleting missing records, constant filling (such as mean filling), or manual supplementation when handling missing values. As a result, when the proportion of missing data is high, a large number of enterprise records are discarded or filled with unreasonable constant values, resulting in data waste and analysis bias.
[0011] Fifth, the evaluation results lack interpretability. Existing technologies either only output a comprehensive score and scores for each dimension, without explaining the contribution value and direction of each original indicator to the final score; or, although the rules are transparent, the IF-THEN summation method cannot quantify the marginal contribution weight of individual rules. Users (such as credit auditors) cannot know the specific origin of a company's score, making it difficult to make specific business decisions based on it. This reduces the credibility and usability of the system, limiting its application value in high-risk decision-making scenarios such as credit approval and policy support.
[0012] To address the shortcomings of existing technologies, this invention provides a method and system for profiling SMEs using knowledge graphs and graph neural networks. This invention constructs an enterprise knowledge graph encompassing relationships such as equity, supply chain, and industry collaboration, and employs graph neural networks for node representation learning. This enables the enterprise profile to encode the influence of its network neighbors, capturing risk transmission and clustering effects. A multi-layered nonlinear network structure composed of cascaded relational graph convolutional networks and temporal convolutional networks is constructed to automatically learn high-order interactions and nonlinear mappings between features. Historical data sequences from multiple years or quarters are used to achieve time-series dynamic modeling and future state prediction. In the preprocessing stage, intelligent missing value filling strategies based on similar samples or statistical features are automatically adopted for different field types. An integral gradient feature attribution algorithm is built into the scoring model to generate quantified feature-level contributions, achieving end-to-end interpretable output of the evaluation results, thus comprehensively overcoming the deficiencies of the existing technologies. Summary of the Invention
[0013] To address the shortcomings of existing technologies, this invention provides a method and system for enterprise profiling based on knowledge graphs and graph neural networks. It aims to solve the technical problem in existing technologies where the lack of multi-dimensional dynamic modeling capabilities for complex enterprise ecosystems leads to a single dimension in enterprise profiling information and evaluation results that deviate from the true state.
[0014] To achieve the above objectives, the present invention provides the following technical solution: a method for profiling small and medium-sized enterprises using knowledge graphs and graph neural networks, comprising the following steps performed sequentially:
[0015] Data preprocessing steps: Obtain multi-source heterogeneous enterprise raw data, perform field mapping, intelligent repair of missing values, identification and merging of duplicate records, format standardization and data logic verification on the enterprise raw data, and output cleaned structured data;
[0016] Knowledge graph construction steps: Based on the cleaned structured data output from the data preprocessing steps, extract enterprise nodes and their attributes, as well as various relationship types between enterprise nodes, and construct a heterogeneous graph knowledge graph containing enterprise nodes and relationship edges;
[0017] The graph representation learning steps are as follows: the initial feature vectors of enterprise nodes in the knowledge graph output from the knowledge graph construction steps are input into the relational graph convolutional network. The information of neighboring nodes under each relation type is aggregated through multi-layer message passing, and the static vector representation of the enterprise node is output. The graph neural network is a relational graph convolutional network, a graph attention network, or a heterogeneous graph Transformer.
[0018] Temporal modeling steps: Obtain data from T consecutive historical time points of the enterprise, generate static vector representation sequences for each time point through the knowledge graph construction step and the graph representation learning step, input the static vector representation sequences into a temporal convolutional network, and output dynamic vector representations that integrate historical evolution information. The temporal network can be a temporal convolutional network, a long short-term memory network, a gated recurrent unit, a Transformer encoder, or a temporal autoregressive model.
[0019] Multimodal fusion evaluation steps: Obtain the structured features, textual semantic features, and dynamic vector representations output by the temporal modeling step of the enterprise; calculate the weights of each modality through an attention mechanism and perform weighted fusion; input the fused feature vectors into a multilayer perceptron and output a comprehensive score or dimension sub-score.
[0020] Interpretability generation step: The integral gradient algorithm is used on the multilayer perceptron used in the multimodal fusion evaluation step to calculate the contribution of the input features to the comprehensive score and generate an interpretable profile report containing contribution information.
[0021] The data preprocessing step provides data input to the knowledge graph construction step, the knowledge graph construction step provides graph structure data input to the graph representation learning step, the graph representation learning step provides node vector representation input for each time point to the temporal modeling step, the temporal modeling step provides dynamic vector representation input to the multimodal fusion evaluation step, and the multimodal fusion evaluation step provides model forward mapping function to the interpretability generation step.
[0022] Preferably, the intelligent missing value repair employs the following parallel filling strategies for different field types:
[0023] For numerical fields, K-nearest neighbor regression is used for imputation. The K nearest neighbors are selected from the missing samples based on their industry code, company size, and years of establishment. The imputation value is then calculated using the weighted average of these K nearest neighbors on the target field, with the weights being the reciprocal of the Euclidean distance. The imputation value is calculated according to the following formula:
[0024] Fill value = Σ(w i ×v i ) / Σw i
[0025] v i d represents the value of the i-th nearest neighbor sample in the target field. i This represents the Euclidean distance between the sample to be filled and its i-th nearest neighbor.
[0026] For categorical fields, use the mode to fill;
[0027] For time series fields, linear interpolation is used for filling, or forward filling or backward filling is used. The value of time point t1 is y1, the value of time point t2 is y2, and the missing values of intermediate time points t are calculated according to the following formula:
[0028] The fill value = y1 + (y2 - y1) × (t - t1) / (t2 - t1), where t1 < t < t2.
[0029] Preferably, the knowledge graph construction steps include the following sub-steps in sequence:
[0030] Enterprises are extracted from structured data as core nodes. The extracted node attributes include enterprise ID, name, unified social credit code, industry, scale, and revenue. Individuals, products, and locations are extracted from unstructured text using the BERT-BiLSTM-CRF model as auxiliary entity nodes. The BERT-BiLSTM-CRF model includes a BERT layer, a bidirectional long short-term memory network layer, and a conditional random field layer.
[0031] The following three methods can be used to construct edges between enterprise nodes:
[0032] (a) Deterministic relationship mapping, including direct mapping of equity relationships, supply chain relationships, and director appointment relationships from database tables;
[0033] (b) Rule-based remote supervision relationship extraction: If two companies jointly win the same project a preset number of times, a competitive relationship edge is added; if the recruitment announcement of company A contains product keywords of company B at a preset frequency, a potential supply relationship edge is added.
[0034] (c) Text similarity calculation: Calculate the cosine similarity of the TF-IDF vectors of the text of the company's main products. If the similarity exceeds the preset threshold, add a competitive edge.
[0035] The company's annual financial indicators, size label, and preprocessing quality score are concatenated into the initial feature vector x of the node. v =(x v1 , x v2 , …, x vd ), where V represents the node index and d represents the number of features involved in the modeling; for non-enterprise entities, their feature vectors are initialized with x v Learnable random embeddings with the same dimensions.
[0036] Preferably, the inter-layer propagation formula of the relational graph convolutional network is:
[0037] h v (k+1) =σ(W self (k) ·h v (k) +Σ r∈R Σ u∈N_r(v) (1 / |N r (v)|)·W r (k) ·h u (k) )
[0038] Where: h v (0) = x v (Initial eigenvector) W self (k) and W r (k) These are the self-connection weight matrix of the k-th layer and the weight matrix of relation r, respectively, both of which are learnable parameters;
[0039] N r (v) is the set of neighboring nodes of node v under relation r;
[0040] |N r (v)| represents the number of neighbors, used for normalization; σ(·) is the ReLU activation function;
[0041] The relational graph convolutional network has L=2 layers, and after two layers of message passing, the output h of the last layer is taken. v (L) As a static vector representation, it has a dimension of 128;
[0042] When the graph neural network is a graph attention network, dynamic weights are learned for different neighbor nodes through the attention mechanism, replacing the fixed normalization aggregation based on relation type in the relation graph convolutional network.
[0043] When the graph neural network is a heterogeneous graph Transformer, heterogeneous nodes and edges are modeled based on the Transformer architecture.
[0044] Preferably, the temporal convolutional network consists of multiple dilated causal convolutional layers, with 3 layers, each with a kernel size of m=3 and a dilation coefficient of dilate = 2. layer-1 The first layer has a dilate value of 1, the second layer has a dilate value of 2, and the third layer has a dilate value of 4. The causal convolution ensures that the output at time t depends only on the input at time t and previous times. Each layer is followed by ReLU activation and residual connection.
[0045] In the T consecutive historical time points, T=8, representing the past 8 quarters;
[0046] When the temporal network is a long short-term memory network or a gated recurrent unit, it processes variable-length sequences based on a recurrent neural network architecture to capture dependencies over long time spans.
[0047] When the temporal network is a Transformer encoder, the dependency relationship between any two time points in the sequence is captured in parallel based on the self-attention mechanism.
[0048] When the time series network is a time series autoregressive model, statistical autoregressive modeling is performed on the historical score sequence of each enterprise to achieve trend prediction.
[0049] Preferably, in the multimodal fusion evaluation step, the structured features include a vector formed by extracting 25 basic financial indicators from the preprocessed table and normalizing them using Min-Max; the text semantic features include a vector obtained by inputting the company's annual report text or news announcement text into the pre-trained BERT model to extract the [CLS] vector and then compressing it to 128 dimensions through a fully connected layer; the dynamic vector is represented as the output of the time-series modeling step.
[0050] Preferably, the attention mechanism calculates the modal weights in the following way:
[0051] α i =exp(v T ·tanh(W i ·f i +b i )) / Σ j∈{tab,txt,gr} exp(v T ·tanh(W j ·fj + b j )), i∈{tab, txt, gr}
[0052] Among them, f i Let W be the feature vector of the i-th mode. i b i Let v be the learnable weight matrix and bias corresponding to the i-th modality, and v be the learnable query vector.
[0053] Preferably, the integral gradient algorithm calculates the contribution of the i-th feature by including the continuous integral definition and its discrete approximation:
[0054] Definition of continuous integral:
[0055]
[0056] The actual calculation uses its discrete Riemann approximation:
[0057]
[0058] Where x is the feature vector of the input sample, x′ is the baseline vector, and x i Let F be the value of the i-th feature of the input sample, F be the forward mapping function from the input feature to the comprehensive score, and m be the number of approximate integration steps. After calculating the contribution of each original feature, the samples are grouped according to their business meaning, and the group-level contributions are obtained by summing the contributions within each group.
[0059] Preferably, the relational graph convolutional network is pre-trained through self-supervised tasks, which include node attribute masking prediction and link prediction. The node attribute masking prediction involves randomly masking the revenue attribute of enterprise nodes, allowing the model to predict the value based on the graph structure and other attributes. The link prediction involves randomly removing some supply edges, training the model to determine whether a supply relationship exists between two enterprises.
[0060] A knowledge graph and graph neural network-based profiling system for small and medium-sized enterprises includes:
[0061] The multi-source data access and preprocessing engine is used to acquire multi-source heterogeneous enterprise raw data, perform field mapping, intelligent repair of missing values, identification and merging of duplicate records, format standardization and data logic verification, and output cleaned structured data.
[0062] An enterprise knowledge graph construction engine is used to extract enterprise nodes and their attributes, as well as various relationship types between enterprise nodes, based on the cleaned structured data, and to construct a heterogeneous graph knowledge graph.
[0063] The graph representation learning engine is used to input the initial feature vectors of enterprise nodes in the knowledge graph into the graph neural network, aggregate neighbor node information through multi-layer message passing, and output the static vector representation of the enterprise nodes.
[0064] The dynamic time-series profiling engine is used to acquire data from T consecutive historical time points of an enterprise. It generates a static vector representation sequence for each time point through the knowledge graph construction engine and the graph representation learning engine, and then inputs it into the time-series network to output a dynamic vector representation.
[0065] The multimodal fusion and interpretability evaluation engine is used to weightedly fuse the structured features, textual semantic features and dynamic vector representations through an attention mechanism, input the fused feature vector into a multilayer perceptron, output a comprehensive score, and use an integral gradient algorithm to calculate the contribution of each input feature to generate an interpretable profile report.
[0066] The front-end visualization module is used to display the interpretable profile report;
[0067] The preprocessing engine, knowledge graph construction engine, graph representation learning engine, dynamic temporal profiling engine, and multimodal fusion and interpretability evaluation engine are connected in sequence, and the output of the multimodal fusion and interpretability evaluation engine is connected to the input of the front-end visualization module.
[0068] Beneficial effects
[0069] This invention provides a method and system for enterprise profiling based on knowledge graphs and graph neural networks, which has the following beneficial effects:
[0070] 1. It can capture the inter-enterprise correlation and influence, resulting in more accurate scoring. Existing technologies only use the independent attributes of enterprises and ignore network relationships such as supply chains and equity. This invention constructs an enterprise knowledge graph and adopts the R-GCN model to aggregate information of neighboring enterprises into the target enterprise representation. For example, when a core supplier of an enterprise experiences a deterioration in its operations, the scoring of this invention will automatically lower the stability and risk scores of that enterprise. Existing technologies cannot reflect such chain reactions. Therefore, the scoring results of this invention are closer to the real situation.
[0071] 2. It has stronger nonlinear modeling capabilities and higher discrimination. Existing technologies use linear weighted summation models, which cannot handle the interaction effects between features. This invention uses multi-layer neural networks for end-to-end learning, which enables it to give more discriminative scores to companies with similar business models but subtle differences, reducing misjudgments.
[0072] 3. Supports dynamic time-series evaluation and can predict future trends. Existing technologies only generate static snapshots based on current cross-sectional data, which cannot identify the evolution trajectory of enterprise status. This invention introduces a TCN time-series encoder to compress the representation sequence of multiple consecutive quarters of an enterprise into a dynamic vector, and on this basis trains future revenue range and default probability prediction tasks. Therefore, this invention can not only evaluate the current status, but also provide early warning of early signals of changes in enterprise operations, providing a reference for credit approval and policy formulation.
[0073] 4. The data preprocessing is highly automated and robust. Existing technologies simply delete missing values or manually fill them in, resulting in low data utilization. This invention uses K-NN regression and mode imputation for numerical and categorical fields respectively, and integrates duplicate merging, format standardization and logical verification to form a fully automated preprocessing pipeline. It can still stably produce effective profiles even when there is a certain proportion of missing data, while existing technologies often discard a large number of records or have large filling deviations.
[0074] 5. The evaluation results are interpretable, facilitating business decision-making. Existing technologies only output total scores or dimensional scores, and users cannot know the source of the scores. This invention introduces an attention mechanism into the multimodal fusion network and uses the integral gradient method to calculate the marginal contribution of each input feature. The final profile report will clearly indicate the attribution information, enabling decision-makers to trust it and take targeted actions accordingly. Attached Figure Description
[0075] Figure 1 This is a diagram showing the overall architecture of the system of the present invention.
[0076] Figure 2 This is a flowchart of the data preprocessing engine workflow of the present invention.
[0077] Figure 3 This is a structural diagram of the dynamic temporal profiling model of the present invention. Detailed Implementation
[0078] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0079] Please see Figure 1-3 This invention provides a technical solution: a method and system for enterprise profiling based on knowledge graphs and graph neural networks, comprising the following steps performed sequentially:
[0080] Data preprocessing steps: Obtain multi-source heterogeneous enterprise raw data, perform field mapping, intelligent repair of missing values, identification and merging of duplicate records, format standardization and data logic verification on the enterprise raw data, and output cleaned structured data;
[0081] Knowledge graph construction steps: Based on the cleaned structured data output from the data preprocessing steps, extract enterprise nodes and their attributes, as well as various relationship types between enterprise nodes, and construct a heterogeneous graph knowledge graph containing enterprise nodes and relationship edges;
[0082] The graph representation learning steps are as follows: the initial feature vectors of enterprise nodes in the knowledge graph output from the knowledge graph construction steps are input into the relational graph convolutional network. The information of neighboring nodes under each relation type is aggregated through multi-layer message passing, and the static vector representation of the enterprise node is output. The graph neural network is a relational graph convolutional network, a graph attention network, or a heterogeneous graph Transformer.
[0083] Temporal modeling steps: Obtain data from T consecutive historical time points of the enterprise, generate static vector representation sequences for each time point through the knowledge graph construction step and the graph representation learning step, input the static vector representation sequences into a temporal convolutional network, and output dynamic vector representations that integrate historical evolution information. The temporal network can be a temporal convolutional network, a long short-term memory network, a gated recurrent unit, a Transformer encoder, or a temporal autoregressive model.
[0084] Multimodal fusion evaluation steps: Obtain the structured features, textual semantic features, and dynamic vector representations output by the temporal modeling step of the enterprise; calculate the weights of each modality through an attention mechanism and perform weighted fusion; input the fused feature vectors into a multilayer perceptron and output a comprehensive score or dimension sub-score.
[0085] Interpretability generation step: The integral gradient algorithm is used on the multilayer perceptron used in the multimodal fusion evaluation step to calculate the contribution of the input features to the comprehensive score and generate an interpretable profile report containing contribution information.
[0086] The data preprocessing step provides data input to the knowledge graph construction step; the knowledge graph construction step provides graph structure data input to the graph representation learning step; the graph representation learning step provides node vector representation input for each time point to the temporal modeling step; the temporal modeling step provides dynamic vector representation input to the multimodal fusion evaluation step; and the multimodal fusion evaluation step provides the model forward mapping function to the interpretability generation step. The intelligent missing value repair employs the following parallel filling strategies for different field types:
[0087] For numerical fields, K-nearest neighbor regression is used for imputation. The K nearest neighbors are selected from the missing samples based on their industry code, company size, and years of establishment. The imputation value is then calculated using the weighted average of these K nearest neighbors on the target field, with the weights being the reciprocal of the Euclidean distance. The imputation value is calculated according to the following formula:
[0088] Fill value = Σ(w i ×v i ) / Σw i
[0089] v i d represents the value of the i-th nearest neighbor sample in the target field. i This represents the Euclidean distance between the sample to be filled and its i-th nearest neighbor.
[0090] For categorical fields, use the mode to fill;
[0091] For time series fields, linear interpolation is used for filling, or forward filling or backward filling is used. The value of time point t1 is y1, the value of time point t2 is y2, and the missing values of intermediate time points t are calculated according to the following formula:
[0092] The fill value = y1 + (y2 - y1) × (t - t1) / (t2 - t1), where t1 < t < t2; the knowledge graph construction steps include the following sub-steps in sequence:
[0093] Enterprises are extracted from structured data as core nodes. The extracted node attributes include enterprise ID, name, unified social credit code, industry, scale, and revenue. Individuals, products, and locations are extracted from unstructured text using the BERT-BiLSTM-CRF model as auxiliary entity nodes. The BERT-BiLSTM-CRF model includes a BERT layer, a bidirectional long short-term memory network layer, and a conditional random field layer.
[0094] The following three methods can be used to construct edges between enterprise nodes:
[0095] (a) Deterministic relationship mapping, including direct mapping of equity relationships, supply chain relationships, and director appointment relationships from database tables;
[0096] (b) Rule-based remote supervision relationship extraction: If two companies jointly win the same project a preset number of times, a competitive relationship edge is added; if the recruitment announcement of company A contains product keywords of company B at a preset frequency, a potential supply relationship edge is added.
[0097] (c) Text similarity calculation: Calculate the cosine similarity of the TF-IDF vectors of the text of the company's main products. If the similarity exceeds the preset threshold, add a competitive edge.
[0098] The company's annual financial indicators, size label, and preprocessing quality score are concatenated into the initial feature vector x of the node. v =(x v1 , x v2 , …, x vd ), where V represents the node index and d represents the number of features involved in the modeling; for non-enterprise entities, their feature vectors are initialized with x v Learnable random embeddings of the same dimension; the inter-layer propagation formula of the relational graph convolutional network is:
[0099] h v (k+1) =σ(W self (k) ·h v (k) +Σ r∈R Σ u∈N_r(v) (1 / |N r (v)|)·W r (k) ·h u (k) )
[0100] Where: h v (0) = x v (Initial eigenvector) W self (k) and W r (k) These are the self-connection weight matrix of the k-th layer and the weight matrix of relation r, respectively, both of which are learnable parameters;
[0101] N r (v) is the set of neighboring nodes of node v under relation r;
[0102] |N r (v)| represents the number of neighbors, used for normalization; σ(·) is the ReLU activation function;
[0103] The relational graph convolutional network has L=2 layers, and after two layers of message passing, the output h of the last layer is taken. v (L) As a static vector representation, it has a dimension of 128;
[0104] When the graph neural network is a graph attention network, dynamic weights are learned for different neighbor nodes through the attention mechanism, replacing the fixed normalization aggregation based on relation type in the relation graph convolutional network.
[0105] 5. When the graph neural network is a heterogeneous graph Transformer, heterogeneous nodes and edges are modeled based on the Transformer architecture; the temporal convolutional network consists of multiple dilated causal convolutional layers, with 3 layers, each convolutional kernel size m=3, and dilation coefficient dilate = 2. layer-1 The first layer has a dilate value of 1, the second layer has a dilate value of 2, and the third layer has a dilate value of 4. The causal convolution ensures that the output at time t depends only on the input at time t and previous times. Each layer is followed by ReLU activation and residual connection.
[0106] In the T consecutive historical time points, T=8, representing the past 8 quarters;
[0107] When the temporal network is a long short-term memory network or a gated recurrent unit, it processes variable-length sequences based on a recurrent neural network architecture to capture dependencies over long time spans.
[0108] When the temporal network is a Transformer encoder, the dependency relationship between any two time points in the sequence is captured in parallel based on the self-attention mechanism.
[0109] When the time-series network is a time-series autoregressive model, statistical autoregressive modeling is performed on the historical rating sequence of each enterprise to achieve trend prediction; in the multimodal fusion evaluation step, the structured features include a vector formed by extracting 25 basic financial indicators from the preprocessed table and normalizing them using Min-Max; the text semantic features include a vector obtained by inputting the enterprise's annual report text or news announcement text into the pre-trained BERT model to extract the [CLS] vector and then compressing it to 128 dimensions through a fully connected layer, and the dynamic vector represents the output of the time-series modeling step; the attention mechanism calculates the modal weights in the following way:
[0110] α i =exp(v T ·tanh(W i ·f i +b i )) / Σ j∈{tab,txt,gr} exp(v T ·tanh(W j ·f j + b j )), i∈{tab, txt, gr}
[0111] 8. Among them, f i Let W be the feature vector of the i-th mode. i b iLet v be the learnable weight matrix and bias corresponding to the i-th mode, and v be the learnable query vector; the integral gradient algorithm calculates the contribution of the i-th feature in the following ways: continuous integral definition and its discrete approximation.
[0112] Definition of continuous integral:
[0113] I
[0114] The actual calculation uses its discrete Riemann approximation:
[0115]
[0116] Where x is the feature vector of the input sample, x′ is the baseline vector, and x i Let F be the value of the i-th feature of the input sample, m be the forward mapping function from the input feature to the comprehensive score, and m be the number of approximate integration steps. After calculating the contribution of each original feature, it is grouped according to business meaning, and the group-level contribution is obtained by summing the contributions within each group. The relational graph convolutional network is pre-trained through a self-supervised task, which includes node attribute mask prediction and link prediction. The node attribute mask prediction involves randomly masking the revenue attribute of enterprise nodes, allowing the model to predict the value based on the graph structure and other attributes. The link prediction involves randomly removing some supply edges, training the model to determine whether a supply relationship exists between two enterprises. A knowledge graph and graph neural network-based SME profiling system includes:
[0117] The multi-source data access and preprocessing engine is used to acquire multi-source heterogeneous enterprise raw data, perform field mapping, intelligent repair of missing values, identification and merging of duplicate records, format standardization and data logic verification, and output cleaned structured data.
[0118] An enterprise knowledge graph construction engine is used to extract enterprise nodes and their attributes, as well as various relationship types between enterprise nodes, based on the cleaned structured data, and to construct a heterogeneous graph knowledge graph.
[0119] The graph representation learning engine is used to input the initial feature vectors of enterprise nodes in the knowledge graph into the graph neural network, aggregate neighbor node information through multi-layer message passing, and output the static vector representation of the enterprise nodes.
[0120] The dynamic time-series profiling engine is used to acquire data from T consecutive historical time points of an enterprise. It generates a static vector representation sequence for each time point through the knowledge graph construction engine and the graph representation learning engine, and then inputs it into the time-series network to output a dynamic vector representation.
[0121] The multimodal fusion and interpretability evaluation engine is used to weightedly fuse the structured features, textual semantic features and dynamic vector representations through an attention mechanism, input the fused feature vector into a multilayer perceptron, output a comprehensive score, and use an integral gradient algorithm to calculate the contribution of each input feature to generate an interpretable profile report.
[0122] The front-end visualization module is used to display the interpretable profile report;
[0123] The preprocessing engine, knowledge graph construction engine, graph representation learning engine, dynamic temporal profiling engine, and multimodal fusion and interpretability evaluation engine are connected in sequence, and the output of the multimodal fusion and interpretability evaluation engine is connected to the input of the front-end visualization display module.
[0124] Those skilled in the art can connect the components in this case sequentially. The specific connection and operation sequence should refer to the working principle described below. The detailed connection methods are well-known in the art. The following mainly introduces the working principle and process.
[0125] like Figure 1 As shown, the system adopts a client-server hybrid architecture. The server side includes the following core functional modules: a multi-source data access and preprocessing engine, an enterprise knowledge graph construction engine, a deep representation learning engine based on relational graph convolutional networks (R-GCN), a dynamic temporal profile engine based on temporal convolutional networks (TCN), a multimodal fusion and interpretability evaluation engine, and a front-end visualization module.
[0126] The system workflow is as follows: Raw enterprise data, including structured business and financial data and unstructured text data, is cleaned, repaired, and standardized by a preprocessing engine. This generates structured feature vectors, which are then input into a knowledge graph construction engine to extract entities such as enterprises, individuals, and products, as well as relationships like equity, supply chain, and competition, forming a heterogeneous graph. This graph data is then fed into the R-GCN engine, where multi-layer message passing yields static vector representations of enterprise nodes. Sequences of these static representations from multiple historical time points are fed into the TCN engine to capture temporal evolution patterns and output dynamic enterprise representations. These dynamic representations, along with structured features and textual semantic features, enter a multimodal fusion evaluation engine. Attention weighting and a multilayer perceptron (MLP) are used to generate a comprehensive score and dimensionality score. Simultaneously, the integral gradient (IG) algorithm is used to calculate the contribution of each feature, ultimately generating an interpretable enterprise profile report. The invention will be further described in detail below through specific embodiments.
[0127] Example 1: This example provides a method for generating intelligent profiles for small and medium-sized enterprises based on knowledge graphs and graph neural networks. The specific workflow of this method is as follows:
[0128] Phase 1: Data Preparation
[0129] Users upload or configure data sources through the front end, and the system calls the unified data access interface to pull raw data. It supports JDBC connection to relational databases, RESTful API to pull cloud data, file upload (Excel / CSV / JSON), and web crawler to collect public data.
[0130] Phase Two: Data Preprocessing
[0131] like Figure 2 As shown, the preprocessing engine performs the following operations in sequence: A built-in metadata mapping table maps field names from different data sources to standard fields. If a standard field is missing or empty in the original record, it is marked as missing. For different field types, the following parallel filling strategies are used for intelligent missing value repair: For numerical fields including revenue, profit, and debt-to-equity ratio, K-nearest neighbor regression is used for filling. The K nearest neighbors are selected from the missing samples based on the three features of industry code, company size, and years of establishment. K is set to 5 by default. A weighted average is used for filling, with the weight being the reciprocal of the Euclidean distance, i.e., the filled value = Σ(w i ×v i ) / Σwi, where wi=1 / di. For categorical fields such as industry classification and registration type, mode filling is used. For time-series fields such as multi-period financial indicators, linear interpolation, or forward or backward filling is used, i.e., filling value = y1 + (y2 - y1) × (t - t1) / (t2 - t1). Duplicate records are identified and merged using the unified social credit code plus the company name as a composite key. Industry classification is mapped based on the national standard dictionary (GB / T 4754-2017). Aliases are fuzzy matched using Levenshtein edit distance with a similarity threshold of 0.85. Company size is automatically calculated based on the number of employees: <10 employees are micro, 10≤<50 employees are small, 50≤<300 employees are medium, and ≥300 employees are large. Business rule assertion checks are performed: revenue ≥0, debt-to-asset ratio ≤1, profit / revenue ≤1, and number of employees ∈ positive integers. Records that fail verification are placed in an exception queue. The cleaned structured data is output after the above processing.
[0132] Phase 3: Knowledge Graph Construction
[0133] The functional goal of the enterprise knowledge graph construction engine is to construct a heterogeneous graph G=(V,E,R) containing various entity and relation types based on preprocessed data, where V is the set of nodes, E is the set of edges, and R is the set of relation types. Enterprises are extracted as core nodes from cleaned structured data, and individuals such as legal representatives, shareholders, and executives are extracted from unstructured text using the BERT-BiLSTM-CRF model. Products and locations are used as auxiliary entity nodes. The BERT-BiLSTM-CRF model is a well-known sequence labeling model in the field, and its structure includes a BERT layer, a Bidirectional Long Short-Term Memory (BiLSTM) layer, and a Conditional Random Field (CRF) layer. First, the BERT layer converts the input text into word vectors containing contextual semantic information. Then, the word vectors are input into the BiLSTM layer to capture contextual dependency features in the text sequence. Finally, the CRF layer decodes the text, predicting the globally optimal label sequence for each element in the input sequence, thereby achieving entity recognition. Edges between enterprise nodes are constructed using three methods:
[0134] (a) Deterministic relationships: directly mapped from database tables, such as equity relationships, supply chain relationships, and director appointment relationships;
[0135] (b) Implicit Relationships: Rule-based remote monitoring. If two companies jointly win the same project ≥ 3 times, add a "competitive relationship" edge; if company A's job postings frequently contain product keywords of company B, add a "potential supply relationship" edge.
[0136] (c) Similarity relationship: Calculate the cosine similarity of the TF-IDF vectors of the company's main product text. If the similarity is >0.8, add the "competition with peers" edge.
[0137] The company's annual financial indicators, such as revenue, profit, and debt-to-equity ratio, along with its size label and preprocessing quality score, are concatenated into an initial feature vector x for each node. v =(x v1 , x v2 , …, x vd V represents the node index, i.e., the enterprise identifier, and d represents the number of features involved in the modeling, which is determined based on the actual number of features, typically 30-50. For non-enterprise entities (e.g., individuals, products), their feature vectors are initialized as learnable random embeddings, with dimensions equal to x. v same.
[0138] The nodes, edges, and attributes are stored using the heterogeneous graph database Neo4j, and exported as a standard heterogeneous graph format supported by DGL (Deep Graph Library) for subsequent use by the R-GCN model.
[0139] Phase Four: R-GCN Graph Representation Learning
[0140] The initial feature vector x of the enterprise node v Input a graph convolutional network, wherein the inter-layer propagation formula of the graph convolutional network is h. v (k+1) =σ(W self (k) ·h v (k) +Σ r∈R Σ u∈N_r(v) (1 / |N r (v)|)·W r (k) ·h u (k) ), where h v (0) = x v W self (k) and W r (k) N is a learnable parameter. r (v) represents the set of neighboring nodes of node v under relation r, σ(·) is the ReLU activation function, the number of layers is set to L=2, and the output h of the last layer is taken after two layers of message passing. v (L) As a static vector representation with 128 dimensions, the pre-training process employs two self-supervised tasks: node attribute mask prediction and link prediction.
[0141] Phase 5: TCN Temporal Modeling
[0142] like Figure 3 As shown, data from the past eight quarters of the enterprise were collected, and phases three and four were repeated at each time point to obtain a static representation sequence (h). v (1) , ..., h v (T) (R-GCN shares weights at each time point), the sequence is arranged into a matrix of shape (8, 128) and input into a temporal convolutional network (TCN). The TCN has 3 dilated causal convolutional layers, with a kernel size m=3 and a dilation coefficient dilate = 2. layer-1 (Layer 1 dilate=1, Layer 2 dilate=2, Layer 3 dilate=4), each layer is followed by ReLU activation and residual connection, outputting a dynamic vector H of dimension 128. v_dynamic A fully connected layer is added on top of the TCN output to perform three-class classification or default probability regression for predicting future revenue ranges, using cross-entropy or mean squared error as the loss function. After the new quarter's data is entered into the database, the system automatically recalculates H using a sliding time window. v_dynamic This enables real-time updates of the profile.
[0143] Phase Six: Multimodal Fusion Evaluation
[0144] Prepare three types of input features: structured features f_tab (25 basic financial indicators normalized by Min-Max), text features f_tab, and text features f_tab. txt Annual report and press release texts are compressed to 128 dimensions after BERT extraction of the [CLS] vector; graph dynamic features f gr (H) v_dynamic (128-dimensional), using a feature-level attention mechanism to calculate the modal weights α. i =exp(v T ·tanh(W i ·f i +b i )) / Σ j∈{tab,txt,gr} exp(v T ·tanh(W j ·f j + b j Given i∈{tab, txt, gr}, we obtain the fusion vector z=α. tab ·f tab +α tx t·f txt +α gr ·f gr The fusion vector z is input into a three-layer MLP with 64, 32, and 1 neurons respectively, and the output is a comprehensive score. comp (0-100 points) At the same time, six parallel small MLPs are derived from the middle layer to output six sub-scores: health, growth, competitiveness, innovation, stability and risk. The total loss of multi-task joint optimization is the weighted sum of the MSE of each score.
[0145] Phase Seven: Interpretability Generation and Output
[0146] The integrated gradient algorithm is applied to the trained MLP model, according to the principle of integrated gradient defined in formula (5): Integrated Grads i =(x i - x' i )×∫ α=0 1 (∂F(x' + α(x-x')) / ∂x i )dα, in actual calculations, m=50 steps are taken, and its Riemann approximation form is adopted, IG i ≈(x i - x' i ) × (1 / m) Σ k=1 m (∂F(x'+(k / m)(x-x')) / ∂xi Calculate the contribution of each original feature, where: x represents the feature vector of the input sample, x′ is the baseline vector, representing a "no information" or "neutral" reference point, usually a zero vector or the industry mean vector, x i Let x represent the value of the i-th feature of the input sample x. i ' represents the value of the i-th feature of the baseline vector x', ∂F(·) / ∂x i This represents the gradient of the model output with respect to the i-th feature, where α is the integration variable, ranging from 0 to 1, representing the path from the baseline x′ linear interpolation to the input x. (IntegratedGrads) i (x) represents the contribution of the i-th feature to the final score, with positive values indicating positive contribution and negative values indicating negative contribution. F(·) is the ratio of the input feature x to the final score. comp The entire forward mapping function.
[0147] After calculating the contribution of each original feature, it is grouped according to business meaning (such as financial indicator group, relationship feature group, text sentiment group). The group-level contribution is summed to obtain a group-level contribution front-end display containing an HTML / PDF interpretable profile report, including comprehensive score, six-dimensional radar chart, contribution ranking from positive to top 5, negative to top 3, group-level contribution distribution, and risk warning. At the same time, the report and intermediate results are stored in the historical database for future retrospective comparison.
[0148] Example 2: This example provides a knowledge graph and graph neural network-based profiling system for small and medium-sized enterprises that implements the method described in Example 1, such as... Figure 1 As shown, the system adopts a client-server hybrid architecture, and the server side includes the following core functional modules:
[0149] The multi-source data access and preprocessing engine is used to acquire heterogeneous enterprise raw data from multiple sources, perform field mapping and intelligent repair of missing values on the enterprise raw data, and adopt K-nearest neighbor regression, mode imputation, linear interpolation or forward or backward imputation, duplicate record identification and merging, format standardization and data logic verification for numerical, categorical and time series fields respectively, and output cleaned structured data.
[0150] The enterprise knowledge graph construction engine extracts enterprises as core nodes from the cleaned structured data output by the preprocessing engine, and extracts individuals, products, and locations as auxiliary entity nodes from unstructured text using the BERT-BiLSTM-CRF model. It constructs edges between enterprise nodes using three methods: deterministic relation mapping, rule-based remote supervised relation extraction, and text similarity calculation. It also concatenates multi-period financial indicators and scale labels of enterprises into initial feature vectors for nodes, thus constructing a heterogeneous knowledge graph containing enterprise nodes and relation edges.
[0151] A deep representation learning engine based on a relational graph convolutional network is used to input the initial feature vectors of enterprise nodes in the knowledge graph output by the knowledge graph construction engine into the relational graph convolutional network, according to the inter-layer propagation formula h. v (k+1) =σ(W self (k) ·h v (k) +Σ r∈R Σ u∈N_r(v) (1 / |N r (v)|)·W r (k) ·h u (k) Perform multi-level message passing, aggregate information of neighbor nodes under each relation type, and output a static vector representation of the enterprise node.
[0152] A dynamic temporal profiling engine based on a temporal convolutional network is used to acquire data from T consecutive historical time points of an enterprise. Static vector representation sequences for each time point are generated through the knowledge graph construction engine and the graph representation learning engine, respectively. These static vector representation sequences are then input into a temporal convolutional network consisting of multiple dilated causal convolutional layers. The network has three convolutional layers, with each layer having a kernel size of m=3 and a dilation coefficient of dilate = 2. layer-1 Each layer is followed by ReLU activation and residual connections. Causal convolution ensures that the output at time t depends only on the input at time t and previous times. The output is a dynamic vector representation that integrates historical evolution information and supports time window sliding to achieve real-time image updates.
[0153] A multimodal fusion and interpretability evaluation engine is used to acquire the enterprise's structured features, textual semantic features, and dynamic vector representations output by the dynamic temporal profiling engine, through an attention mechanism α. i =exp(v T ·tanh(W i ·f i +b i )) / Σ j∈{tab,txt,gr} exp(v T ·tanh(W j ·f j + b j The weights of each modality are calculated and weighted for fusion, i∈{tab, txt, gr}. The fused feature vector is then input into a multilayer perceptron, which outputs a comprehensive score and six sub-scores. The integral gradient algorithm IG_i≈IG is applied to the multilayer perceptron. i ≈(x i - x' i ) × (1 / m) Σ k=1 m(∂F(x'+(k / m)(x-x')) / ∂x i Calculate the contribution of input features to the comprehensive score, and generate an interpretable profile report that includes the comprehensive score, a six-dimensional radar chart, contribution ranking, and risk warning.
[0154] The front-end visualization module is used to display the interpretable profile report generated by the multimodal fusion and interpretability assessment engine.
[0155] The output of the preprocessing engine is connected to the input of the knowledge graph construction engine. The output of the knowledge graph construction engine is connected to the input of the graph representation learning engine. The output of the graph representation learning engine is connected to the input of the dynamic temporal portrait engine. The output of the dynamic temporal portrait engine is connected to the input of the multimodal fusion and interpretability evaluation engine. The output of the multimodal fusion and interpretability evaluation engine is connected to the input of the front-end visualization module.
[0156] Example 3: This example provides an alternative implementation scheme for the enterprise relationship modeling method and dynamic time series modeling method in Example 1.
[0157] I. Alternatives to Enterprise Relationship Modeling
[0158] Implementation Example 1, Phase 3, uses a combination of knowledge graphs and relational graph convolutional networks (R-GCN) to capture inter-enterprise relationships. Alternatively, the following methods can also be used:
[0159] (1) Graph Attention Network (GAT): learns dynamic attention weights for different neighbor nodes, replacing the fixed normalization aggregation based on relation type in R-GCN, and is suitable for scenarios where the relation type is unclear or the edge weights are different.
[0160] (2) Heterogeneous Graph Transformer (HGT): Based on the Transformer architecture, it processes heterogeneous nodes and edges and can model more complex semantic relationships.
[0161] The above alternative is used in the same way as step three of Example 1 to generate the enterprise node representation vector. The difference lies in the different way of aggregating neighbor node information. In actual deployment, it can be flexibly selected according to data characteristics and application scenarios.
[0162] II. Alternatives to Dynamic Temporal Modeling
[0163] In step five of Example 1, a Temporal Convolutional Network (TCN) is used to perform temporal encoding on the static representation sequence of multiple consecutive historical time points of the enterprise. Alternatively, the following methods can also be used to extract dynamic evolution information:
[0164] (1) Long Short-Term Memory (LSTM) or Gated Recurrent Unit (GRU): A natural recurrent neural network, suitable for processing variable-length sequences, but training speed is slightly slower than TCN.
[0165] (2) Transformer encoder: It uses self-attention mechanism to capture the dependency relationship between any two time points in the sequence in parallel. It is suitable for long sequences, but requires a large amount of data.
[0166] (3) Time series autoregressive model: In scenarios where deep learning is not used, statistical modeling can be performed on the rating sequence of each enterprise to achieve trend prediction, which is a lightweight alternative.
[0167] The above alternative is used to output a dynamic vector representation that integrates historical evolution information, just like step five of Example 1. The difference lies in the different methods of capturing temporal dependencies, which can be selected according to the computing resources and data scale of the actual scenario.
[0168] The intelligent profile generation method and system for SMEs provided by this invention can be widely applied to scenarios such as bank credit risk assessment, precise government industrial policy support, industrial park enterprise services, supply chain finance risk control, and equity investment due diligence. This invention can be realized based on a mature big data platform and deep learning framework, and has good industrial reproducibility and commercial application value.
[0169] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, the phrase "comprising an element defined as..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0170] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for enterprise profiling based on knowledge graphs and graph neural networks, characterized in that, The following steps are performed sequentially: Data preprocessing steps: Obtain multi-source heterogeneous enterprise raw data, perform field mapping, intelligent repair of missing values, identification and merging of duplicate records, format standardization and data logic verification on the enterprise raw data, and output cleaned structured data; Knowledge graph construction steps: Based on the cleaned structured data output from the data preprocessing steps, extract enterprise nodes and their attributes, as well as various relationship types between enterprise nodes, and construct a heterogeneous graph knowledge graph containing enterprise nodes and relationship edges; The graph representation learning steps are as follows: the initial feature vectors of enterprise nodes in the knowledge graph output from the knowledge graph construction steps are input into the relational graph convolutional network. The information of neighboring nodes under each relation type is aggregated through multi-layer message passing, and the static vector representation of the enterprise node is output. The graph neural network is a relational graph convolutional network, a graph attention network, or a heterogeneous graph Transformer. Temporal modeling steps: Obtain data from T consecutive historical time points of the enterprise, generate static vector representation sequences for each time point through the knowledge graph construction step and the graph representation learning step, input the static vector representation sequences into a temporal convolutional network, and output dynamic vector representations that integrate historical evolution information. The temporal network can be a temporal convolutional network, a long short-term memory network, a gated recurrent unit, a Transformer encoder, or a temporal autoregressive model. Multimodal fusion evaluation steps: Obtain the structured features, textual semantic features, and dynamic vector representations output by the temporal modeling step of the enterprise; calculate the weights of each modality through an attention mechanism and perform weighted fusion; input the fused feature vectors into a multilayer perceptron and output a comprehensive score or dimension sub-score. Interpretability generation step: The integral gradient algorithm is used on the multilayer perceptron used in the multimodal fusion evaluation step to calculate the contribution of the input features to the comprehensive score and generate an interpretable profile report containing contribution information. The data preprocessing step provides data input to the knowledge graph construction step, the knowledge graph construction step provides graph structure data input to the graph representation learning step, the graph representation learning step provides node vector representation input for each time point to the temporal modeling step, the temporal modeling step provides dynamic vector representation input to the multimodal fusion evaluation step, and the multimodal fusion evaluation step provides model forward mapping function to the interpretability generation step.
2. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The intelligent missing value repair employs the following parallel filling strategies for different field types: For numerical fields, K-nearest neighbor regression is used for imputation. The K nearest neighbors are selected from the missing samples based on their industry code, company size, and years of establishment. The imputation value is then calculated using the weighted average of these K nearest neighbors on the target field, with the weights being the reciprocal of the Euclidean distance. The imputation value is calculated according to the following formula: Fill value = Σ(w i ×v i ) / Σw i v i d represents the value of the i-th nearest neighbor sample in the target field. i This represents the Euclidean distance between the sample to be filled and its i-th nearest neighbor. For categorical fields, use the mode to fill; For time series fields, linear interpolation is used for filling, or forward filling or backward filling is used. The value of time point t1 is y1, the value of time point t2 is y2, and the missing values of intermediate time points t are calculated according to the following formula: The fill value = y1 + (y2 - y1) × (t - t1) / (t2 - t1), where t1 < t < t2.
3. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The knowledge graph construction steps include the following sub-steps in sequence: Enterprises are extracted from structured data as core nodes. The extracted node attributes include enterprise ID, name, unified social credit code, industry, scale, and revenue. Individuals, products, and locations are extracted from unstructured text using the BERT-BiLSTM-CRF model as auxiliary entity nodes. The BERT-BiLSTM-CRF model includes a BERT layer, a bidirectional long short-term memory network layer, and a conditional random field layer. The following three methods can be used to construct edges between enterprise nodes: (a) Deterministic relationship mapping, including direct mapping of equity relationships, supply chain relationships, and director appointment relationships from database tables; (b) Rule-based remote supervision relationship extraction: If two companies jointly win the same project a preset number of times, a competitive relationship edge is added; if the recruitment announcement of company A contains product keywords of company B at a preset frequency, a potential supply relationship edge is added. (c) Text similarity calculation: Calculate the cosine similarity of the TF-IDF vectors of the text of the company's main products. If the similarity exceeds the preset threshold, add a competitive edge. The company's annual financial indicators, size label, and preprocessing quality score are concatenated into the initial feature vector x of the node. v =(x v1 , x v2 , …, x vd ), where V represents the node index and d represents the number of features involved in the modeling; for non-enterprise entities, their feature vectors are initialized with x v Learnable random embeddings with the same dimensions.
4. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The inter-layer propagation formula of the relational graph convolutional network is as follows: h v (k+1) =σ(W self (k) ·h v (k) +S r∈R S u∈N_r(v) (1 / |N r (v)|)·W r (k) ·h u (k) ) Where: h v (0) = x v (Initial eigenvector) W self (k) and W r (k) These are the self-connection weight matrix of the k-th layer and the weight matrix of relation r, respectively, both of which are learnable parameters; N r (v) is the set of neighboring nodes of node v under relation r; |N r (v)| represents the number of neighbors, used for normalization; σ(·) is the ReLU activation function; The relational graph convolutional network has L=2 layers, and after two layers of message passing, the output h of the last layer is taken. v (L) As a static vector representation, it has a dimension of 128; When the graph neural network is a graph attention network, dynamic weights are learned for different neighbor nodes through the attention mechanism, replacing the fixed normalization aggregation based on relation type in the relation graph convolutional network. When the graph neural network is a heterogeneous graph Transformer, heterogeneous nodes and edges are modeled based on the Transformer architecture.
5. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The temporal convolutional network consists of multiple dilated causal convolutional layers, with 3 layers, each with a kernel size of m=3 and a dilation coefficient of dilate = 2. layer-1 The first layer has a dilate value of 1, the second layer has a dilate value of 2, and the third layer has a dilate value of 4. The causal convolution ensures that the output at time t depends only on the input at time t and previous times. Each layer is followed by ReLU activation and residual connection. In the T consecutive historical time points, T=8, representing the past 8 quarters; When the temporal network is a long short-term memory network or a gated recurrent unit, it processes variable-length sequences based on a recurrent neural network architecture to capture dependencies over long time spans. When the temporal network is a Transformer encoder, the dependency relationship between any two time points in the sequence is captured in parallel based on the self-attention mechanism. When the time series network is a time series autoregressive model, statistical autoregressive modeling is performed on the historical score sequence of each enterprise to achieve trend prediction.
6. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, In the multimodal fusion evaluation step, the structured features include vectors formed by extracting 25 basic financial indicators from the preprocessed table and normalizing them using Min-Max; the text semantic features include vectors obtained by inputting the company's annual report text or news announcement text into the pre-trained BERT model to extract the [CLS] vector and then compressing it to 128 dimensions through a fully connected layer; the dynamic vector is represented as the output of the time-series modeling step.
7. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The attention mechanism calculates the modality weights as follows: α i =exp(v T ·tanh(W i ·f i +b i )) / Σ j∈{tab,txt,gr} exp(v T ·tanh(W j ·f j + b j )), i∈{tab, txt, gr} Among them, f i Let W be the feature vector of the i-th mode. i b i Let v be the learnable weight matrix and bias corresponding to the i-th modality, and v be the learnable query vector.
8. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The integral gradient algorithm calculates the contribution of the i-th feature in ways including the continuous integral definition and its discrete approximation: Definition of continuous integral: ; The actual calculation uses its discrete Riemann approximation: ; Where x is the feature vector of the input sample, x′ is the baseline vector, and x i Let F be the value of the i-th feature of the input sample, F be the forward mapping function from the input feature to the comprehensive score, and m be the number of approximate integration steps. After calculating the contribution of each original feature, the samples are grouped according to their business meaning, and the group-level contributions are obtained by summing the contributions within each group.
9. The enterprise profiling method based on knowledge graphs and graph neural networks according to claim 1, characterized in that, The relational graph convolutional network is pre-trained through self-supervised tasks, which include node attribute masking prediction and link prediction. The node attribute masking prediction involves randomly masking the revenue attributes of enterprise nodes, allowing the model to predict the value based on the graph structure and other attributes. The link prediction involves randomly removing some supply edges, training the model to determine whether a supply relationship exists between two enterprises.
10. An enterprise profiling system based on knowledge graphs and graph neural networks, applied to implement the method described in any one of claims 1 to 9, characterized in that, include: The multi-source data access and preprocessing engine is used to acquire multi-source heterogeneous enterprise raw data, perform field mapping, intelligent repair of missing values, identification and merging of duplicate records, format standardization and data logic verification, and output cleaned structured data. An enterprise knowledge graph construction engine is used to extract enterprise nodes and their attributes, as well as various relationship types between enterprise nodes, based on the cleaned structured data, and to construct a heterogeneous graph knowledge graph. The graph representation learning engine is used to input the initial feature vectors of enterprise nodes in the knowledge graph into the graph neural network, aggregate neighbor node information through multi-layer message passing, and output the static vector representation of the enterprise nodes. The dynamic time-series profiling engine is used to acquire data from T consecutive historical time points of an enterprise. It generates a static vector representation sequence for each time point through the knowledge graph construction engine and the graph representation learning engine, and then inputs it into the time-series network to output a dynamic vector representation. The multimodal fusion and interpretability evaluation engine is used to weightedly fuse the structured features, textual semantic features and dynamic vector representations through an attention mechanism, input the fused feature vector into a multilayer perceptron, output a comprehensive score, and use an integral gradient algorithm to calculate the contribution of each input feature to generate an interpretable profile report. The front-end visualization module is used to display the interpretable profile report; The preprocessing engine, knowledge graph construction engine, graph representation learning engine, dynamic temporal profiling engine, and multimodal fusion and interpretability evaluation engine are connected in sequence, and the output of the multimodal fusion and interpretability evaluation engine is connected to the input of the front-end visualization display module.
Citation Information
Patent Citations
Enterprise credit evaluation system and method
CN105719073A
