A bidirectional coupling updating method of a knowledge graph and a deep learning prediction model

By establishing a bidirectional coupling update method between knowledge graphs and deep learning prediction models, the problem of static priors in knowledge graphs is solved, and dynamic iterative correction of graph attributes and improvement of collaborative performance are achieved, making it suitable for different application scenarios.

CN123140169APending Publication Date: 2026-11-20GUANGZHOU INSTITUTE OF GEOCHEMISTRY CHINESE ACADEMY OF SCIENCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611118501.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-27
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, knowledge graphs are treated as static priors and cannot be iteratively corrected based on feedback from deep learning models. Embedded vectors cannot simultaneously play dual roles at the symbolic and sub-symbolic layers. Furthermore, the lack of a signal-driven graph attribute correction mechanism during model runtime limits the synergistic performance of knowledge graphs and deep learning prediction models.

Method used

By constructing an attention bias matrix, the knowledge graph is coupled with the deep learning prediction model, and the attention weights and feature contributions are fed back to the knowledge graph. The embedded vector nodes assume a dual role, establishing an application-update closed loop to achieve dynamic iterative correction of the graph attributes.

Benefits of technology

It enables dynamic updating of the knowledge graph, improves the adaptive reinforcement capability of weakly covered areas, enhances the synergistic effect between the knowledge graph and the deep learning model, and has good engineering scalability and interpretability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140169A_ABST
    Figure CN123140169A_ABST
Patent Text Reader

Abstract

The application discloses a bidirectional coupling updating method of a knowledge graph and a deep learning prediction model, extracts a hierarchical importance attribute of an evidence graph layer node and a comprehensive weight index fused from the hierarchical importance attribute in a domain knowledge graph; constructs an attention bias matrix according to a graph layer mapping relationship from a concept layer to a physical graph layer, and injects the attention bias matrix into a multi-head self-attention layer of the deep learning prediction model as a priori term; collects an attention weight distribution of the self-attention layer and feature contribution degrees of each graph layer; aggregates observation quantities according to a preset statistical aggregation mode, and feeds back the observation quantities to the knowledge graph as corrected evidence of the hierarchical importance attribute; recalculates the comprehensive weight index based on the corrected attribute, and updates a knowledge graph node attribute, so that an application-updating closed loop is formed. The application changes the knowledge graph from a static priori into a dynamic knowledge system supporting application feedback driven iterative correction, and is used in intelligent prediction scenes in combination with domain knowledge and data driving in fields such as resource exploration, medical diagnosis and industrial fault prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interdisciplinary technology of artificial intelligence and knowledge engineering, specifically to a bidirectional coupling update method for knowledge graphs and deep learning prediction models. Background Technology

[0002] Knowledge graphs, as carriers of structured domain knowledge, have been widely applied in intelligent prediction systems based on deep learning models. The conventional approach is to inject knowledge graphs as static priors into deep learning models, guiding them to perform biased attention allocation or weight modulation among multi-source heterogeneous features. Specific injection paths include, but are not limited to: using node weights as input layer scaling factors, encoding relational semantics into embedding vectors for representation learning, and injecting the concept layer association strength as a bias term in the attention mechanism into the self-attention layer.

[0003] However, existing methods have the following technical shortcomings: First, the knowledge graph is regarded as a static prior. Once injected, it is decoupled from the deep learning model. The rich information about the relative importance of each feature channel revealed by the model during training cannot be fed back to the knowledge graph. As a result, the attribute values ​​of the knowledge graph cannot be iteratively corrected based on feedback from actual applications, and it remains in a passive state of "only being used, not being updated" for a long time.

[0004] Second, for high-dimensional embedding vector features learned by data-driven deep learning models, such as geospatial embeddings generated by remote sensing basic models and image latent space representations generated by visual basic models, existing methods usually either process them only as model inputs without incorporating them into the knowledge graph system, or process them only as knowledge graph nodes without directly participating in model computation. There is a lack of a collaborative mechanism that allows the same embedding vector to play a dual role in both the symbolic knowledge layer and the sub-symbolic model layer.

[0005] Third, there is a lack of quantifiable rules for modifying the attributes of knowledge graph nodes based on the output features of deep learning models. Even if differences are observed in the attention allocation of the model on different feature channels relative to the prior, it is impossible to systematically translate these differences into specific directions and magnitudes of correction for the attribute values ​​of the knowledge graph.

[0006] Fourth, existing knowledge graph correction methods mostly rely on human expert review or incremental supplementation based on new literature, lacking a correction path driven by runtime signals generated by deep learning models in prediction applications. This makes it difficult to identify and strengthen weak areas of knowledge graph coverage through the application itself.

[0007] The aforementioned shortcomings mean that the knowledge graph and the deep learning prediction model always maintain a one-way coupling relationship, which limits the further improvement of their collaborative efficiency and is also not conducive to the adaptive optimization of the knowledge graph in the process of cross-scenario promotion.

[0008] Therefore, this invention provides a bidirectional coupling update method for knowledge graphs and deep learning prediction models, aiming to solve problems in the prior art such as knowledge graphs being used as static priors, model application feedback not being able to transmit back to the graph, embedding vectors not being able to play dual roles in the symbolic layer and sub-symbolic layer at the same time, and the lack of a graph attribute correction mechanism driven by signals during model runtime. Summary of the Invention

[0009] The purpose of this invention is to provide a bidirectional coupling update method for knowledge graphs and deep learning prediction models. The specific steps of the method are as follows: S1. Attribute Extraction: Obtain the nodes and their relationships in the domain knowledge graph, which includes the concept layer, evidence layer, and physical layer. Based on the membership relationship, number of associated edges, and type of associated edges between nodes, calculate the initial hierarchical importance attribute of each evidence layer node. Normalize the initial hierarchical importance attribute and fuse it with the node association strength according to the preset fusion rules to obtain the comprehensive weight index of each evidence layer node. S2, Bias Injection: Based on the layer mapping relationship between the concept layer and the physical layer in the domain knowledge graph, an attention bias matrix is ​​constructed, and the attention bias matrix is ​​injected as a prior term into the multi-head self-attention layer of the deep learning prediction model. S3. Attention Collection: The deep learning prediction model is trained based on the injected attention bias matrix. The attention weight distribution of the multi-head self-attention layer on each physical layer channel and the feature contribution of each physical layer in the model prediction are collected. S4. Backfeedback: After aggregating the attention weight distribution and feature contribution according to a preset statistical aggregation method, backfeedback is sent to the domain knowledge graph as observational evidence for the correction of hierarchical importance attributes. S5. Graph Update: Based on the corrected hierarchical importance attributes, the comprehensive weight index is recalculated, and the attribute values ​​of the corresponding evidence layer nodes in the domain knowledge graph are updated to form an application-update closed loop.

[0010] Furthermore, the domain knowledge graph in S1 contains embedded vector nodes, which simultaneously assume the following dual roles: as a fully distilled feature node in the domain knowledge graph, participating in the synthesis of the comprehensive weight index; and as an independent physical input channel for the deep learning prediction model, inputting into the multi-head self-attention layer in parallel with other evidence layers. The initial hierarchical importance attribute of the embedded vector node is set to the median of the hierarchical importance attributes of the regular evidence layers, and the final effective weight is adaptively adjusted through the attention mechanism of the deep learning prediction model.

[0011] Furthermore, the specific steps for constructing the attention bias matrix in S2 are as follows: S21. Establish layer mapping relationships through asymmetric projection from the concept layer to the physical layer of the domain knowledge graph. Asymmetric projection includes one-to-many mapping and many-to-one mapping. S22. Calculate the element B[i,j] of the attention bias matrix. The element B[i,j] is the mean of the semantic overlap of the corresponding concept layer on the shared semantic node. S23. Weight the elements B[i,j] using the geometric mean of the importance attributes of the corresponding concept layer, and normalize the weighting result to a preset interval; S24. The semantic bias matrix constructed based on the semantic relations of the domain knowledge graph and the physical bias matrix constructed based on physical similarity are linearly fused according to the preset fusion coefficient to obtain the final injected attention bias matrix.

[0012] Furthermore, the specific steps of S3 are as follows: S31. Input the training samples into the deep learning prediction model after injecting the attention bias matrix. Calculate the matching score between the query vector and the key vector for each physical layer channel in the multi-head self-attention layer. Then, normalize the attention bias matrix after superimposing it on the matching score to obtain the attention weight of each attention head on each physical layer channel. S32. Input validation samples into the trained deep learning prediction model, collect the attention weights corresponding to each attention head and each physical layer channel, and calculate the average of the attention weights of the same physical layer channel to obtain the attention weight distribution of that physical layer channel. S33. Calculate the feature contribution of each physical layer channel relative to the model prediction results using the integral gradient method; Furthermore, the observational evidence for the hierarchical importance attribute correction in S4 includes comparing the changes in the feature contribution of the deep learning prediction model on each physical layer before and after the injection of the attention bias matrix. Physical layers with increased feature contribution after injection are identified as weak signal enhancement objects, and their corresponding concept layer hierarchical importance attributes are retained or increased. Physical layers with decreased feature contribution after injection are identified as strong signal constraint objects, and their corresponding concept layer hierarchical importance attributes are adaptively decreased according to the decrease magnitude. The correction magnitude of the adaptive decrease is jointly recalculated and determined with the synthesis system of the comprehensive weight index.

[0013] Furthermore, an automated execution interface based on threshold triggering is set up between the S4 feedback and the S5 graph update. The specific steps of the automated execution interface are as follows: S41.1, Preset attention weight statistical aggregation value correction trigger threshold; S41.2 When the aggregated statistical value deviates from the existing hierarchical importance attribute in the domain knowledge graph to the trigger threshold, S5 is automatically called to perform attribute update and recalculation of the comprehensive weight index. S41.3 The running results of the automated execution interface are recorded as an update log. The update log includes the trigger time, trigger node, attribute values ​​before and after correction, and the difference in the comprehensive weight index.

[0014] Furthermore, the preset statistical aggregation method in S4 adopts a weighted average aggregation method, and the specific steps are as follows: S42.1 Calculate the average attention weight of each attention head for the same physical layer channel to obtain the attention statistics; S42.2 Calculate the average feature contribution of the same physical layer channel on each verification sample to obtain the contribution statistics; S42.3 Normalize the attention statistics and contribution statistics respectively, and sum them according to the preset weight coefficients to obtain the aggregated result of the corresponding physical layer channel; S42.4 Based on the layer mapping relationship between the physical layer channel and the conceptual layer node, the aggregation result is used as observational evidence for the correction of the hierarchical importance attribute of the corresponding conceptual layer node.

[0015] Furthermore, the specific steps of S5 are as follows: S51. Based on observational evidence and the layer mapping relationship between the physical layer channel and the conceptual layer nodes, determine the hierarchical importance attribute correction value for each conceptual layer node. S52. Merge the corrected value of the hierarchical importance attribute with the original hierarchical importance attribute of the corresponding concept layer node, and restrict the fusion result to a preset attribute value range to obtain the updated hierarchical importance attribute. S53. Based on the updated hierarchical importance attribute, recalculate the comprehensive weight index of the corresponding evidence layer node according to the preset fusion rules; S54. Write the updated hierarchical importance attribute and comprehensive weight index into the corresponding node attributes in the domain knowledge graph, and generate an update log containing the updated node, attribute values ​​before and after the update, and changes in the comprehensive weight index.

[0016] This invention has the following advantages: By establishing a bidirectional coupling channel between the knowledge graph and the deep learning prediction model, the knowledge graph is transformed from a static prior into a dynamic knowledge system that supports application feedback-driven iterative correction. This allows each model application to accumulate correction evidence based on runtime signals for the knowledge graph, thereby improving the adaptive reinforcement capability of the knowledge graph in areas with weak coverage.

[0017] This invention sets up embedded vector nodes in the knowledge graph that simultaneously serve as symbolic nodes and physical input channels for the model. This allows high-dimensional embedded vectors learned through data-driven learning to participate in the synthesis of comprehensive weight index and the calculation of model attention. This enables the symbolic knowledge layer and the sub-symbolic model layer to form a collaboratively iterative dual interface on the same vector data, thereby improving their collaborative efficiency.

[0018] This invention establishes a "strengthening weak signals and constraining strong signals" judgment rule based on ablation comparison in the backfeedback stage, so that the deviation of the model attention distribution from the prior can be systematically transformed into the specific correction direction and correction magnitude of the knowledge graph attribute values, making the iteration of knowledge graph attributes interpretable and reproducible.

[0019] This invention supports an automated update process based on threshold triggering and a general rule accumulation mechanism for cross-scenario migration, enabling the bidirectional coupling method to maintain low human intervention during long-term operation and to achieve transferable accumulation of corrective experience during application area expansion. This gives the collaborative application of knowledge graphs and deep learning prediction models good engineering scalability. Attached Figure Description

[0020] Figure 1 This is a flowchart of the present invention; Figure 2 This is a schematic diagram of the end-to-end construction and injection process of the attention bias matrix of the present invention; Figure 3 This is a schematic diagram of the dual-channel role mechanism of the embedded vector node in this invention; Figure 4 This is a schematic diagram illustrating the update path of the attention weight feedback to the importance attribute of the knowledge graph node hierarchy, as described in this invention. Detailed Implementation

[0021] This invention provides a bidirectional coupling update method for knowledge graphs and deep learning prediction models.

[0022] Example 1: In a computing system equipped with a graph database and a deep learning training environment, the graph database stores the concept layer nodes, physical layer nodes, relation edges, and the hierarchical importance attributes and comprehensive weight index of the domain knowledge graph. The deep learning training environment carries the training, inference, and attention weight derivation of the deep learning prediction model.

[0023] S1. The domain knowledge graph includes two types of nodes: concept layer nodes and physical layer nodes. Concept layer nodes are numbered from L01 to Lk (k is the total number of concept layers, k=11 in this embodiment), representing the semantic categories in the domain knowledge system divided according to the knowledge methodology dimension. Physical layer nodes are numbered from P01 to Pn (n is the total number of physical layers, n=12 in this embodiment), corresponding to the actual spatially quantifiable or computable input feature channels. Each concept layer node is accompanied by a layer importance attribute layer_importance, whose value is between [0,1], reflecting the relative priority of the concept layer in the domain knowledge system. Each physical layer node is accompanied by a comprehensive weight index IWI synthesized from the layer importance attribute.

[0024] The specific methods for synthesizing the Integrated Weighted Index (IWI) include, but are not limited to, the following two implementation forms.

[0025] Composition Form 1: Single-Source Weighted Blending. For any physical layer p, IWI(p) is calculated using the following formula: IWI(p) = Σ_{c ∈ M(p)} [ w_c × μ(c, p) × layer_importance(c) ] Where M(p) is the set of all concept layers c mapped to physical layer p; μ(c, p) is the mapping strength coefficient from concept layer c to physical layer p, with a value between [0,1], where 1 indicates direct mapping and less than 1 indicates indirect mapping through intermediate semantic nodes; w_c is the preset normalized weight of concept layer c in the fusion system, satisfying Σ_c w_c = 1; and layer_importance(c) is the hierarchical importance attribute of concept layer c.

[0026] Synthesis Form 2: Linear combination of multiple components. The comprehensive weighted index IWI is synthesized by linear combination of several component indices. The component indices include, but are not limited to, the following three types: Methodological weight component MPW(p): Layer importance contribution obtained based on knowledge methodology dimension partitioning; Feature saliency weight component FSW(p): Layer contribution obtained based on the statistical properties of the feature data itself (including but not limited to variance, information entropy, and mutual information); Spatial correlation weight component GSW(p): Layer contribution obtained based on spatial co-occurrence frequency or spatial correlation measurement.

[0027] The composite weighted index is synthesized using the following formula: IWI(p) = α_1 × MPW(p) + α_2 × FSW(p) + α_3 × GSW(p) Where α_1 + α_2 + α_3 = 1, in this embodiment we take α_1 = α_2 = α_3 = 1 / 3, each component exponent MPW(p), FSW(p), GSW(p) are calculated independently, only the corresponding w_c and μ(c, p) take different values.

[0028] The specific synthesis form of the comprehensive weight index IWI can be selected and determined by those skilled in the art based on the characteristics of multi-source heterogeneous data in the application scenario. The key to this invention is to use the synthesized IWI as the input to the attention bias matrix in the subsequent step S2, and to update it in step S5 based on the reverse feedback signal. S2, Construction and injection of the attention bias matrix, such as Figure 2 As shown, an asymmetric projection layer_mapping is established from the concept layer to the physical layer. The asymmetric projection supports both one-to-many and many-to-one mappings. For example, a concept layer can be mapped to multiple physical layers (one-to-many), and multiple concept layers can also be mapped to the same physical layer (many-to-one). The asymmetric projection is stored in the form of a sparse matrix. The matrix element M[i,j]=1 indicates that there is a mapping edge from concept layer i to physical layer j, otherwise it is 0. S21. Calculate the bias matrix element B[i,j]: For any pair of physical layers (i,j), the formula for calculating B[i,j] is: B[i,j] = mean Jaccard_k(i,j) Where k belongs to the set KP(i,j), KP(i,j) is a shared set of concept layer sets that have mapping relationships with physical layers i and j on a certain intermediate semantic entity (such as process nodes or event nodes in the domain), and Jaccard_k(i,j) is the Jaccard semantic overlap degree under this shared set. S22. Geometric weighting of B[i,j]: Suppose that physical layers i and j are mapped from concept layer groups C_i and C_j respectively, and the geometric mean of their hierarchical importance is defined by the following formula: g(i) = geometric mean of layer_importance(c) on C_i The geometric mean of g(j) = layer_importance(c) on C_j The elements of the weighted bias matrix are as follows: B'[i,j] = B[i,j] × √( g(i) × g(j) ) S23. Normalization: Normalize B'[i,j] to the preset interval [0,1] by performing Min-Max normalization on the maximum value of all elements to obtain the semantic bias matrix R_KG.

[0029] S24. Construct the physical bias matrix R_physical: The physical bias matrix is ​​constructed based on non-semantic similarity measures between physical layers, such as Pearson correlation coefficient and spatial co-occurrence frequency based on raster data.

[0030] Dual-similarity linear fusion: The final injected attention bias matrix B is synthesized according to the following formula: B = α × R_KG + (1-α) × R_physical Wherein, α is a preset fusion coefficient. In this embodiment, α=0.5 is taken into account both domain semantic relationship and physical similarity.

[0031] Injecting a multi-head self-attention layer, the final attention weights in the Scaled Dot-Product Attention of the deep learning prediction model are calculated using the following formula: A_final = softmax( Q·K^T / √d_k + λ·B ) Where Q and K are the query matrix and key matrix, d_k is the key vector dimension, and λ is the learnable scaling factor (kg_scale), which controls the prior injection strength. In this embodiment, λ is determined through hyperparameter search, and the optimal value is approximately 5.47.

[0032] In this embodiment, the dual-channel role mechanism of the embedded vector node, such as Figure 3 As shown, the domain knowledge graph contains at least one embedded vector node, denoted as EV-Node. EV-Node originates from a high-dimensional embedded vector field (such as remote sensing base model, visual base model, language base model, etc.) generated by a pre-trained base model, and its value is a compressed low-dimensional dense vector.

[0033] EV-Node plays a dual role: Role 1 (Symbolic Knowledge Layer): EV-Node exists as a full-process distillation feature node in the domain knowledge graph, establishing relationship edges with other concept layer nodes and participating in the synthesis of the Integrated Weight Index (IWI). Since EV-Node does not directly correspond to any existing semantic category of the concept layer, its initial layer_importance is set to the median of the layer_importance of the regular layer, serving as a placeholder weight.

[0034] Role Two (Sub-symbolic Model Layer): The high-dimensional embedding vectors corresponding to EV-Nodes are processed through anomalous density aggregation to form new physical input channels (e.g., idx=2 channels). These channels are input to the deep learning prediction model in parallel with other regular physical layers, participating in the Q / K / V calculations of the multi-head self-attention layer. The final effective weights of EV-Nodes are not preset manually, but are adaptively adjusted through the attention mechanism of the deep learning prediction model during training. After training, the attention weights and feature contributions of EV-Nodes also enter the reverse feedback process in step S4 to correct their layer_importance in the knowledge graph. S3. Collection of attention weights and feature contributions after training: The collection process includes two parallel sub-processes: exporting attention weight tensors and calculating feature contributions. The final output is a data tuple used by the S4 backfeedback process. S31. Set the deep learning prediction model to inference mode, turn off dropout and batch normalization training state behavior, and fix the model parameters. S32. Sample-by-sample derivation of attention tensor: For each input sample x_s (s=1,…,N, where N is the total number of samples) in the validation or test set, perform forward inference once. At the Scaled Dot-Product Attention computation node of each multi-head self-attention layer in the deep learning prediction model, intercept A_final through the model hook to obtain the attention matrix A^(l,h)_s of sample x_s at the l-th layer and h-th head. The shape of the attention matrix is ​​T×T, where T is the length of the input sequence. S33. Cross-head aggregation: For each sample x_s, the average of the H attention head matrices in each layer l is calculated along the head dimension using the following formula: A^(l)_s = (1 / H) × Σ_h A^(l,h)_s We obtain the single-headed attention matrix A^(l)_s of sample x_s at layer l; S34. Cross-sample aggregation: Average the attention matrices of N samples at layer l according to the sample dimensions, calculated using the following formula: Ā^(l) = (1 / N) × Σ_s A^(l)_s The global attention matrix Ā^(l) of the l-th layer is obtained. In the cross-sample aggregation process, a weighted average method based on prediction confidence can also be used to highlight the attention distribution of high-confidence samples. S35. Cross-layer aggregation: If the deep learning prediction model contains L self-attention layers, the global attention matrix Ā is obtained by averaging across the layer dimensions, calculated using the following formula: Ā = (1 / L) × Σ_l Ā^(l) In this embodiment, L=3. In specific application scenarios, only the last layer or a specified layer (such as layers L=2 and L=3) can be selected to perform weighted aggregation. S36, Channel-level Aggregation: Each row in the global attention matrix Ā corresponds to a position t in the input sequence. Each position t physically belongs to a physical layer channel(t). The global attention score AT(p) of physical layer p is calculated according to the following formula: AT(p) = Σ_{t : channel(t)=p} [ Σ_{t'} Ā[t, t'] ] AT(p) is the sum of the attention weights obtained when all positions belonging to physical layer p are used as query vectors in Ā. AT(p) reflects the attention distribution of the deep learning prediction model among different physical layers. Channel-level aggregation, as an implementation of aggregation by position type, can also be summed by key-side summation or by summing both sides of the position affiliation of the query-key pair in other implementations to obtain an equivalent layer attention measure. S37. Calculate the marginal impact of each physical layer on the prediction output of the deep learning prediction model based on the Permutation Feature Importance method. S37.1 Perform a full inference on the test set and record the baseline prediction metric S_0. The baseline prediction metric includes, but is not limited to, at least one of AUC-ROC, F1-Score, and RMSE. In this embodiment, AUC-ROC is used.

[0035] S37.2 For any physical layer p, randomly permutate the physical layer p channel data of all samples in the test set according to the sample dimension, while keeping the other channel data unchanged, to obtain the permuted test set; S37.3. Re-perform the deep learning prediction model inference on the permuted test set and record the prediction metric S_p after the permutation. S37.4 The feature contribution PFI(p) of the physical layer p is calculated according to the following formula: PFI(p) = S_0 - S_p The larger the value of PFI(p), the greater the marginal impact of the physical layer p on the prediction output of the deep learning prediction model. S37.5 To reduce the statistical noise introduced by random permutation, S37.2 to S37.4 are repeated K times (K=10 in this embodiment), and the average of the K PFI calculation results is taken as the final PFI(p).

[0036] S4. Statistical aggregation and correction direction determination of reverse feedback, such as Figure 4 As shown; S41. Construct ablation comparison pairs: There are two sets of model instances with the same structure but different attention bias matrix B: M_KG (injected B) and M_NoKG (not injected B). The two sets of models use the same architecture and parameter count, and the only difference is whether B is added to the self-attention to ensure fair comparison. S42. Difference Calculation: For each physical layer p, calculate the feature contribution difference using the following formula: ΔPFI(p) = PFI_KG(p) - PFI_NoKG(p) Wherein, ΔPFI(p)>0 indicates that the contribution of the layer increases under KG injection, and is called a weak signal enhancement object; ΔPFI(p)<0 indicates that the contribution of the layer decreases under KG injection, and is called a strong signal constraint object; S43. Correction Direction Judgment Rule: For physical layer p with ΔPFI(p)>0, the corresponding conceptual layer c's layer_importance(c) is retained or increased proportionally, and the increase Δ⁺(c) is calculated according to the following formula: Δ⁺(c) = β⁺ × ΔPFI(p) / max_p|ΔPFI(p)| Where β⁺ is a preset adjustment coefficient, and in this embodiment, β⁺ is taken to belong to the interval [0, 0.10]. For a physical layer p where ΔPFI(p) < 0, the layer_importance(c) of its corresponding conceptual layer c is reduced proportionally, and the reduction magnitude Δ⁻(c) is calculated using the following formula: Δ⁻(c) = β⁻ × |ΔPFI(p)| / max_p|ΔPFI(p)| Where β⁻ is a preset downward adjustment coefficient. In this embodiment, β⁻ is taken to be in the interval [0, 0.10]. The final determination of the above correction magnitude is jointly recalculated with the synthesis system of the comprehensive weight index IWI to avoid the overall weight imbalance caused by single-point correction. S5. Recalculation of comprehensive weight index and updating of map; S51. Recalculate the composite weight index: Substitute the corrected layer importance attribute layer_importance'(c) obtained in S43 into the composite weight index IWI composition formula, and recalculate the composite weight index IWI'(p) for each physical layer. The specific calculation process depends on the IWI composition method adopted. For the implementation scenario of composition according to composition method one, IWI'(p) is calculated according to the following formula: IWI'(p) = Σ_{c ∈ M(p)} [ w_c × μ(c, p) × layer_importance'(c) ] Among them, M(p), w_c, μ(c, p) are the same as those in the first synthesis form, except that the original layer_importance(c) is replaced with the modified layer_importance'(c). The mapping intensity coefficient μ(c, p) and the normalized weight w_c remain unchanged during the closed loop process, and only layer_importance is iteratively modified with the back feedback signal. For the implementation scenario of synthesis in two forms, each component index is recalculated independently: in the synthesis process of component indices MPW(p), FSW(p), and GSW(p), the original layer_importance(c) is replaced with layer_importance'(c) respectively to obtain MPW'(p), FSW'(p), and GSW'(p); then synthesized according to the following formula (18): IWI'(p) = α_1 × MPW'(p) + α_2 × FSW'(p) + α_3 × GSW'(p) Among them, α_1, α_2, and α_3 remain consistent with those used in the original synthesis of the comprehensive weight index; S52. Normalization Processing: To avoid overall weight imbalance or dimensional drift caused by single-point corrections, the IWI'(p) of all physical layers is normalized using the following formula: IWI'_norm(p) = IWI'(p) / max_q IWI'(q) The maximum value is normalized to 1.0, and the rest are scaled proportionally, thereby maintaining the comparability of the relative weight relationships between physical layers in multiple rounds of closed-loop iteration; S53. Difference Record: Calculate the difference ΔIWI(p) before and after correction using the following formula: ΔIWI(p) = IWI'_norm(p) - IWI(p) Specifically, ΔIWI(p) and the corresponding physical layer number p are stored together as the output log entry for this closed loop; S54, Attribute Write-back: Write the corrected layer_importance'(c) and the normalized IWI'_norm(p) back to the attribute fields of the corresponding concept layer node and physical layer node in the domain knowledge graph, and record the write-back timestamp. This completes the application-update closed loop of this round. S55, Continuous Multi-Round Loop Closure (Optional): In continuous application scenarios, the layer_importance'(c) and IWI'_norm(p) written back in this round are used as new prior inputs in the next round S2 to construct a new attention bias matrix B, so that the domain knowledge graph converges to a stable state consistent with the runtime signal in multiple iterations. When the maximum |ΔIWI(p)| between two iterations is lower than the preset convergence threshold, the application-update loop is considered to have reached stability.

[0037] Example 2: Automated Triggered Closed-Loop Update Process In a specific scenario, this invention supports threshold-triggered automated updates: a preset trigger threshold θ_trigger is used. When the statistical aggregation value deviates from the existing layer_importance by θ_trigger, S5 is automatically executed. When max_p|ΔPFI(p)| / max_p PFI_NoKG(p) ≥ θ_trigger, an update is automatically triggered. In this embodiment, θ_trigger can be between 0.2 and 0.5, and the specific value depends on the stability requirements of the application scenario. Each automatic update generates a log entry, including the trigger timestamp, trigger node number, attribute values ​​before and after correction, ΔIWI, and the current attention aggregation statistics.

[0038] Example 3: This invention is applied to the prospecting and prediction scenario of porphyry copper metallogenic belts.

[0039] The knowledge graph comprises 11 conceptual layer nodes: L01 Tectonic Environment, L02 Stratigraphy, L03 Magmatic-Intrusive Rocks, L04 Regional Gravity, L05 Aeromagnetism, L06 Regional Geochemistry, L07 Electrical Resistivity, L08 Geochemical Synthesis, L09 Iron Staining Anomaly, L10 Hydroxyl Anomaly, and L11 Chlorite Alteration; and 12 physical layer nodes: P01 Deep Faults, P02 Fault Density, P03 Contact Zone, P04 Favorable Stratigraphy, P05 Rock Mass Proximity, P06 Regional Gravity Bouguer Anomaly, P07 Regional Aeromagnetism, P08 Cu, P09 Mo, P10 Iron Staining, P11 Hydroxyl, and P12 Chlorite. Each conceptual layer node is accompanied by a layer_importance (value between [0,1]), and each physical layer node is accompanied by an IWI.

[0040] Embedded vector node settings: Add an embedded vector node EV-Node (named AE-EPS) to the domain knowledge graph. It is derived from the 64-dimensional embedded vector field generated by encoding annual time series images of Sentinel-2, Sentinel-1 and Landsat multi-sensor images using the remote sensing basic model. The 64-dimensional embedded vector is subjected to high-dimensional latent space anomaly measurement to obtain pixel-by-pixel anomaly scores. Then, density aggregation is performed with a 500-meter grid to obtain the AE-EPS spatial distribution map. AE-EPS also serves as: (1) the full-process distillation feature node in the knowledge graph participating in IWI synthesis, with the initial layer_importance taken as the median of the regular layer layer_importance; (2) the physical input channel (idx=2) of the deep learning prediction model, which is input in parallel with 12 regular physical layers.

[0041] Construction of bias matrix B: Construct a 12×12 attention bias matrix B according to the formula, where typical mapping relationships include: L01 structure is mapped to {P01 deep fault, P02 fault density} (one-to-many); L08 geochemical exploration is mapped to {P08 element Cu, P09 element Mo} (one-to-many); P12 chlorite is jointly mapped from {L03 magma-intrusive rock, L11 chlorite alteration} (many-to-one), with a fusion coefficient α=0.5.

[0042] Model Architecture and Training: A Convolutional Augmentation Transformer (Conformer) is used as the deep learning prediction model. The model parameters are d_model=120, n_heads=4, n_layers=3, with a total of approximately 953,929 parameters. The model input is a 9×9 grid spatial patch, with each patch containing 13 channels (12 regular layers plus 1 AE-EPS layer). The attention formula is implemented according to the formula. The learnable scaling factor λ is optimized in the range [0.5, 8.0] using the Optuna Bayesian hyperparameter search framework (TPE sampling strategy, MedianPruner pruning), with the final optimal value λ=5.47. The remaining hyperparameters are dropout=0.162, learning_rate=3.31×10⁻ 4 , batch_size=64.

[0043] Before training, we first performed self-supervised pre-training with a mask ratio of 40% and 15 rounds using Masked Autoencoder. For formal training, we used AdamW optimizer, cosine annealing learning rate scheduling, and 25 epochs. The weights of the pre-trained embedding layer were frozen for the first 3 epochs and then unfrozen.

[0044] Ablation comparison experiment: Two control experiments were set up: M_KG (B injected) and M_NoKG (B not injected). The architecture and parameters of the two were completely identical. Overall AUC: M_KG=0.9677, M_NoKG=0.9241.

[0045] Attention weights and feature contributions are collected sequentially from S31 to S37.5 for the trained M_KG. In S32, forward inference is performed on all samples in the test set, and the scaled dot-product of the multi-head self-attention layer (n_heads=4, n_layers=3) is intercepted through model hooks. The attention output yields an attention matrix of shape 81×81 (T=81, corresponding to a 9×9 spatial patch flattening). Sub-steps S3-3 to S3-5 are performed sequentially to obtain the global attention matrix Ā, including cross-head averaging, cross-sample aggregation (N≈25,600 samples), and cross-layer aggregation. Sub-step S3-6 is performed to perform channel-level aggregation, yielding a 13-dimensional attention vector AT (corresponding to 12 regular physical layers plus 1 AE-EPS layer). In S37, the baseline metric is set to S_0=AUC-ROC=0.9677, and K=10 random permutations are performed on each physical layer. The mean value is then taken to obtain the feature contribution vector PFI. Based on the above data collection process, the contribution ranking of each physical layer in M_KG is as follows: P09(Mo)=0.091 > P03(contact_zone)=0.056 > AE-EPS=0.025 > P11(hydroxyl)=0.017 > P04(strata)=0.016. The corresponding ranking for M_NoKG is: P03(contact_zone)=0.073 > P11(hydroxyl)=0.055 > P09(Mo)=0.041 > P02(fault_density)=0.033 > P04(strata)=0.030.

[0046] Correction direction determination: ΔPFI is calculated according to the formula: P09(Mo): ΔPFI = +0.050 (weak signal enhancement object, corresponding to L08 geochemical comprehensive); P06(gravity): ΔPFI = +0.011 (weak signal enhancement object, corresponding to L04); P01(deep_major_fault): ΔPFI = +0.012 (weak signal enhancement object, corresponding to L01); P11(hydroxyl): ΔPFI = -0.038 (strong signal constraint object, corresponding to L10); P02(fault_density): ΔPFI = -0.022 (strong signal constraint object, corresponding to L01 branch); P03(contact_zone): ΔPFI = -0.017 (strong signal constraint object, corresponding to L03).

[0047] Layer_importance correction and IWI recalculation: The correction magnitude is calculated according to the formula, β⁺=β⁻=0.10. For example, the original layer_importance of geochemical composite for L08 is 0.70, and the corrected layer_importance' is 0.70 + 0.10 × (0.050 / 0.050) = 0.80 (the upper limit is taken when the upper limit is reached); the original layer_importance of hydroxyl anomaly for L10 is 0.65, and the corrected layer_importance' is 0.65 - 0.10 × (0.038 / 0.050) = 0.574. The corrected values ​​for other conceptual layers are: L01 tectonic layer_importance' = 0.85 (slightly upward adjustment), L04 regional gravity layer_importance' = 0.62 (slightly upward adjustment), and L03 magmatic-intrusive layer_importance' = 0.74 (slightly downward adjustment).

[0048] Substituting the revised layer_importance'(c) into the formula for morphology one, we recalculate the comprehensive weight index. Taking physical layer P09(Mo) as an example, its mapping source concept layer is L08 geochemical synthesis (direct mapping μ=1.0), and the normalized weight w_{L08}=0.50 (shared equally with another physical layer P08(Cu) under the same concept layer). Therefore: IWI'(P09) = w_{L08} × μ(L08, P09) × layer_importance'(L08) = 0.50× 1.0 × 0.80 = 0.40 Original IWI(P09) = 0.50 × 1.0 × 0.70 = 0.35.

[0049] Taking the physical layer P11 (hydroxyl) as an example, its mapping source concept layer is the L10 hydroxyl anomaly (direct mapping μ=1.0, w_{L10}=1.0), therefore: IWI'(P11) = 1.0 × 1.0 × 0.574 = 0.574; original IWI(P11) = 1.0 × 1.0 ×0.65 = 0.65.

[0050] After recalculating all 12 physical layers and performing global normalization, in this recalculation, max_q IWI'(q) = 0.85 (corresponding to the deep fracture in P01, obtained by multiplying layer_importance' = 0.85 by w_{L01} = 1.0 after L01 construction correction), therefore: IWI'_norm(P09) = 0.40 / 0.85 ≈ 0.471 IWI'_norm(P11) = 0.574 / 0.85 ≈ 0.675 The difference before and after the correction is calculated using the formula: ΔIWI(P09) = 0.471 - 0.412 = +0.059 (positive value, indicating that the weight of the Mo index is increased after the loop closure); ΔIWI(P11) = 0.675 - 0.765 = -0.090 (negative value, indicating that the weight of the hydroxyl index is decreased after the loop closure). The ΔIWI value is consistent with the difference recording format of S53.

[0051] Write the corrected layer_importance'(c) and the normalized IWI'_norm(p) back to the attribute fields of the corresponding concept layer node and physical layer node in the domain knowledge graph, thus completing this round of application-update loop.

[0052] Closed-loop effect: After this round of application-update closed-loop, the relative position of the L08 geochemical comprehensive concept layer in the weight system of the knowledge graph has increased, while the L10 hydroxyl anomaly concept layer has decreased. This adjustment reflects the operational signal revealed by the model in practical applications that "direct geochemical indicators are more discriminative than indirect remote sensing alteration indicators." In the next round of prediction applications, the updated IWI', as a new prior injection into M_KG, is expected to achieve further improvement in cross-validation indicators such as LODO.

[0053] Example 3: Medical Diagnostic Assisted Prediction Scenario: In this scenario, the domain knowledge graph is constructed from disease taxonomy knowledge. The concept layer nodes correspond to knowledge and methodology dimensions such as "symptoms", "signs", "imaging signs", "laboratory examinations", and "pathology". The physical layer corresponds to actual quantifiable examination indicators (such as blood routine tests, CT image features, biochemical indicators, etc.). The deep learning prediction model is a prediction model for multimodal medical data. This invention can be used to iteratively correct the weights of various medical concepts in the diagnosis of different diseases during the application of the model.

[0054] Example 4 Industrial Equipment Fault Prediction Scenario: In this scenario, the domain knowledge graph is constructed from equipment fault mechanism knowledge. Concept layer nodes correspond to different physical failure modes (e.g., fatigue, corrosion, wear, etc.), and physical layers correspond to actual sensor channels (vibration, temperature, current, acoustics, etc.). This invention can be used to iteratively correct the weights of various failure mode knowledge in different fault prediction tasks during the application of the fault prediction model.

[0055] Although specific embodiments of the present invention have been described in detail with reference to the accompanying drawings, this should not be construed as limiting the scope of protection of the present invention. Various modifications and variations that can be made by those skilled in the art without inventive effort within the scope described in the claims are still within the scope of protection of the present invention.

Claims

1. A bidirectional coupling update method for knowledge graphs and deep learning prediction models, characterized in that: The specific steps of the method are as follows: S1. Attribute Extraction: Obtain the nodes and their relationships in the domain knowledge graph, which includes the concept layer, evidence layer, and physical layer. Based on the membership relationship, number of associated edges, and type of associated edges between nodes, calculate the initial hierarchical importance attribute of each evidence layer node. Normalize the initial hierarchical importance attribute and fuse it with the node association strength according to the preset fusion rules to obtain the comprehensive weight index of each evidence layer node. S2, Bias Injection: Based on the layer mapping relationship between the concept layer and the physical layer in the domain knowledge graph, an attention bias matrix is ​​constructed, and the attention bias matrix is ​​injected as a prior term into the multi-head self-attention layer of the deep learning prediction model. S3. Attention Collection: The deep learning prediction model is trained based on the injected attention bias matrix. The attention weight distribution of the multi-head self-attention layer on each physical layer channel and the feature contribution of each physical layer in the model prediction are collected. S4. Backward Feedback: After aggregating the attention weight distribution and feature contribution according to a preset statistical aggregation method, the data is back-feedback to the domain knowledge graph as observational evidence for the correction of hierarchical importance attributes. S5. Graph Update: Based on the corrected hierarchical importance attributes, the comprehensive weight index is recalculated, and the attribute values ​​of the corresponding evidence layer nodes in the domain knowledge graph are updated to form an application-update closed loop.

2. The bidirectional coupling update method of knowledge graph and deep learning prediction model as described in claim 1, characterized in that: The domain knowledge graph in S1 contains embedded vector nodes, which simultaneously assume the following dual roles: as a fully distilled feature node in the domain knowledge graph, participating in the synthesis of the comprehensive weight index; and as an independent physical input channel for the deep learning prediction model, inputting into the multi-head self-attention layer in parallel with other evidence layers. The initial hierarchical importance attribute of the embedded vector node is set to the median of the hierarchical importance attributes of the regular evidence layers, and the final effective weight is adaptively adjusted through the attention mechanism of the deep learning prediction model.

3. The bidirectional coupling update method of knowledge graph and deep learning prediction model as described in claim 1, characterized in that: The specific steps for constructing the attention bias matrix in S2 are as follows: S21. Establish layer mapping relationships through asymmetric projection from the concept layer to the physical layer of the domain knowledge graph. The asymmetric projection includes one-to-many mapping and many-to-one mapping. S22. Calculate the element B[i,j] of the attention bias matrix, where the element B[i,j] is the mean of the semantic overlap of the corresponding concept layer on the shared semantic node; S23. Weight the elements B[i,j] using the geometric mean of the importance attributes of the corresponding concept layer, and normalize the weighting result to a preset interval; S24. The semantic bias matrix constructed based on the semantic relations of the domain knowledge graph and the physical bias matrix constructed based on physical similarity are linearly fused according to the preset fusion coefficient to obtain the final injected attention bias matrix.

4. The bidirectional coupling update method of knowledge graph and deep learning prediction model as described in claim 1, characterized in that: The specific steps of S3 are as follows: S31. Input the training samples into the deep learning prediction model after injecting the attention bias matrix, calculate the matching score of the query vector and the key vector for each physical layer channel in the multi-head self-attention layer, and normalize the attention bias matrix after superimposing it on the matching score to obtain the attention weight of each attention head on each physical layer channel. S32. Input validation samples into the trained deep learning prediction model, collect the attention weights corresponding to each attention head and each physical layer channel, and calculate the average of the attention weights of the same physical layer channel to obtain the attention weight distribution of that physical layer channel. S33. Calculate the feature contribution of each physical layer channel relative to the model prediction results using the integral gradient method; The bidirectional coupling update method for knowledge graph and deep learning prediction model as described in claim 1 is characterized in that: the observational evidence for the hierarchical importance attribute correction in S4 includes comparing the changes in the feature contribution of the deep learning prediction model on each physical layer before and after the injection of the attention bias matrix; determining the physical layer with increased feature contribution after injection as a weak signal enhancement object, and retaining or increasing the hierarchical importance attribute of its corresponding concept layer; determining the physical layer with decreased feature contribution after injection as a strong signal constraint object, and adaptively decreasing the hierarchical importance attribute of its corresponding concept layer according to the decrease magnitude; the correction magnitude of the adaptive decrease is jointly recalculated and determined with the synthesis system of the comprehensive weight index.

5. The bidirectional coupling update method of knowledge graph and deep learning prediction model as described in claim 1, characterized in that: An automated execution interface based on threshold triggering is set between the S4 reverse feedback and the S5 map update. The specific steps of the automated execution interface are as follows: S41.1, Preset attention weight statistical aggregation value correction trigger threshold; S41.2 When the aggregated statistical value deviates from the existing hierarchical importance attribute in the domain knowledge graph to the trigger threshold, S5 is automatically invoked to perform attribute update and recalculation of the comprehensive weight index. S41.3 The running results of the automated execution interface are recorded as an update log, which includes the trigger time, trigger node, attribute values ​​before and after correction, and the difference between the comprehensive weight index.

6. The bidirectional coupling update method of knowledge graph and deep learning prediction model as described in claim 1, characterized in that: The preset statistical aggregation method in S4 adopts a weighted average aggregation method, and the specific steps are as follows: S42.1 Calculate the average attention weight of each attention head for the same physical layer channel to obtain the attention statistics; S42.2 Calculate the average feature contribution of the same physical layer channel on each verification sample to obtain the contribution statistics; S42.3 Normalize the attention statistics and contribution statistics respectively, and sum them according to the preset weight coefficients to obtain the aggregated result of the corresponding physical layer channel; S42.4 Based on the layer mapping relationship between the physical layer channel and the conceptual layer node, the aggregation result is used as observational evidence for the correction of the hierarchical importance attribute of the corresponding conceptual layer node.

7. The bidirectional coupling update method of knowledge graph and deep learning prediction model as described in claim 1, characterized in that: The specific steps of S5 are as follows: S51. Based on the observational evidence and the layer mapping relationship between the physical layer channel and the conceptual layer nodes, determine the hierarchical importance attribute correction value for each conceptual layer node. S52. The hierarchical importance attribute correction value is fused with the original hierarchical importance attribute of the corresponding concept layer node, and the fusion result is restricted to a preset attribute value range to obtain the updated hierarchical importance attribute. S53. Based on the updated hierarchical importance attribute, recalculate the comprehensive weight index of the corresponding evidence layer node according to the preset fusion rule; S54. Write the updated hierarchical importance attribute and comprehensive weight index into the corresponding node attributes in the domain knowledge graph, and generate an update log containing the updated node, attribute values ​​before and after the update, and changes in the comprehensive weight index.