Knowledge graph construction method and system
By optimizing the semantic relationship feature vector through the information bottleneck algorithm and the classifier module, the problem of the impact of redundant information in the construction of the knowledge graph is solved, and the accuracy of extracting relationships between entities and the reliability of the knowledge graph are improved.
Patent Information
- Application Number
- CN202410542443.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the relationships between entities extracted by knowledge graph construction methods are easily affected by redundant information in the text to be processed, resulting in low reliability of the generated knowledge graph.
The information bottleneck algorithm and classifier module are used to optimize and compress the semantic relationship feature vectors determined by the text description of the target system and the identified entities, calculate the total loss function and iteratively update the parameters, reduce the impact of redundant features, and improve the relationship between entities. Extraction accuracy of relationships.
Effectively discarding features that are irrelevant to the relationship between entities and retaining key features, it improves the reliability of the knowledge graph and reduces the impact of redundant information on relationship extraction.
Smart Images

Figure CN118536583A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power system knowledge graphs, and specifically relates to a knowledge graph construction method and system. Background Art
[0002] As one of the infrastructures for social and economic development, the power system is large in scale, with complex and diverse elements and rich interrelationships. The construction of the power system knowledge graph aims to model the power system more comprehensively and deeply with the help of advanced graph models, so as to deeply explore the complex and huge knowledge relationships within the system. The main motivation for this construction goal is to provide more comprehensive and in-depth information support for the operation, management and optimization of the power system to cope with the increasingly complex energy environment and system requirements.
[0003] The construction of the power knowledge graph aims to model the power system through a graph model, explore the knowledge relationships within the system, and provide more comprehensive and in-depth information support for the operation, management, and optimization of the power system. The core concept of the knowledge graph is to establish associations between entities so that information is no longer isolated data points, but connected in a more meaningful way. This structured data model helps to deeply understand the semantic relationships between entities and provide more accurate and comprehensive information for intelligent systems; relationship extraction, as an important part of building the power knowledge graph, is crucial for efficient graph construction.
[0004] For example, a Chinese invention patent with application publication number CN115238029A provides a method and device for constructing a power fault knowledge graph. The scheme first extracts the subject and the core predicate through semantic role recognition; then, through dependency syntactic analysis, the object and subject related to the meaning of the core predicate are found, and finally, through dependency syntactic analysis, the relevant dependency relationships in the power fault text and the entity relationships based on the ontology structure are obtained for constructing a power fault knowledge graph; specifically, entity extraction and relationship extraction are performed on the power fault text to be processed through a model training module, and word vectors in the preprocessed data are obtained, and the word vectors are input into a bidirectional long short-term memory network for entity extraction, and entity relationships are extracted according to dependency analysis; and then a graph construction module is used to generate a knowledge graph including the entities and the relationships between the entities according to the entities and relationships extracted by the model training module. When performing relationship extraction, this scheme needs to consider the mutual correlation between the entire sentences of the text to be processed (such as the power failure text). However, the text to be processed for relationship extraction may still contain a lot of redundant information irrelevant to the power failure information, making the relationship between the extracted entities easily affected by the redundant information, resulting in low reliability of the knowledge graph generated based on the extracted relationship. Summary of the invention
[0005] The purpose of the present invention is to provide a knowledge graph construction method and system for solving the problem that the relationships between entities extracted by the knowledge graph construction method in the prior art are easily affected by redundant information in the text to be processed, resulting in low reliability of the knowledge graph generated based on the extracted relationships.
[0006] In order to achieve the above-mentioned object, the present invention provides a method for constructing a knowledge graph, which uses a trained information bottleneck algorithm and a classifier module to obtain extracted entity relationships by determining a feature vector containing semantic relationships between entities based on a text description of a target system and entities identified in the text description, and is used to construct a knowledge graph of the target system;
[0007] The training method of the information bottleneck algorithm includes: optimizing and compressing a feature vector containing semantic relationships between entities determined according to a text description of a target system in a training set and entities in the identified text description using the information bottleneck algorithm, obtaining an optimized vector and inputting it into the classifier module, calculating a total loss function and iteratively updating parameters of the information bottleneck algorithm accordingly until an iteration stop condition is met;
[0008] The total loss function is: the set loss function corresponding to the difference between the actual and extracted entity relationships superimposed on the loss function of the information bottleneck algorithm as a regularization term.
[0009] Furthermore, a method of determining a feature vector containing semantic relations between entities according to the text description of the target system and the entities identified in the text description includes:
[0010] The text description of a certain sentence / paragraph target system is divided into multiple vocabulary units through a word segmentation algorithm; the feature vector containing the semantic information of the text description of the target system corresponding to each vocabulary unit is obtained through a pre-trained natural language processing algorithm;
[0011] The vocabulary units corresponding to the entities in the identified text description are determined, and the feature vectors containing the semantic relationship between the entities are determined based on the feature vectors containing the semantic information of the text description of the target system corresponding to these vocabulary units.
[0012] Furthermore, the classifier module includes a softmax linear classifier; the optimization vector is input into the classifier module to obtain the extracted entity relationship in the following manner:
[0013] The 1×2M-dimensional optimization vector is input into the 2M×W-dimensional softmax linear classifier in the classifier module to obtain the probability scores of the entity relationships corresponding to the optimization vector; wherein M is the feature dimension of the optimization vector, which is the same as the feature dimension of the feature vector containing semantic relationships between entities corresponding to a single vocabulary unit; W corresponds to the number of entity relationships; and the extracted entity relationships are obtained based on the entity relationship corresponding to the highest probability score.
[0014] Furthermore, the target system is an electric power system; and the text description of the target system includes a text description of secondary equipment in the electric power system.
[0015] Furthermore, the secondary equipment includes one or more of station control layer secondary equipment, bay layer secondary equipment, process layer secondary equipment and network secondary equipment.
[0016] Furthermore, the loss function of the information bottleneck algorithm is calculated as:
[0017]
[0018] Among them, L IB is the loss function of the information bottleneck algorithm, log() is the natural logarithm function, n is the total number of entity relationships, Y(i) is the probability score of the ith entity relationship in the probability scores of the actual entity relationships corresponding to the text description of the target system in the training set; Q(i) is the probability score of the ith entity relationship in the probability scores of each entity relationship corresponding to the optimization vector.
[0019] Furthermore, the loss function corresponding to the difference between the actual and extracted entity relationships is set to the cross entropy loss function, which is calculated as:
[0020]
[0021] Among them, L REC is the cross entropy loss function, log() is the natural logarithm function, n is the total number of relationships between entities, and y i is the probability score of the ith entity relationship in the probability score of the actual entity relationship corresponding to the text description of the target system in the training set; p i The probability score of the i-th entity relationship among the probability scores of the entity relationships corresponding to the optimization vector.
[0022] Furthermore, the entities in the text description are identified based on a pre-trained natural language processing algorithm.
[0023] The above technical solution of the present invention provides a new knowledge graph construction method, and its beneficial effects include:
[0024] The feature vector containing the semantic relationship between entities is optimized and compressed through the information bottleneck. At the same time, the loss function of the information bottleneck is added as a regularization term to the total loss function to iteratively update the parameters of the feature optimization module. This ensures that in the process of optimizing and compressing the feature vector by the trained information bottleneck algorithm, features that are not related to the relationship between entities (i.e., useless features that are not needed when extracting the relationship between entities) are discarded as much as possible, and features related to the relationship between entities (i.e., key features required when extracting the relationship between entities) are retained, thereby reducing the influence of redundant features that are not related to the extraction of the relationship between entities. Therefore, the extracted relationship between entities can be avoided as much as possible from being affected by the redundant information in the text to be processed, thereby improving the reliability of the knowledge graph constructed based on the extracted relationship between entities.
[0025] The present invention also provides a knowledge graph construction system, including a processor, wherein the processor includes executable program instructions, and the executable program instructions are used to be executed to implement the knowledge graph construction method as described above.
[0026] The technical solution of the knowledge graph construction system mentioned above in the present invention can achieve the same beneficial effects as the knowledge graph construction method mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of the knowledge graph construction method in the embodiment of the knowledge graph construction method of the present invention;
[0028] Figure 2 A schematic diagram of the principle of extracting relationships between entities by the knowledge graph construction method in an embodiment of the knowledge graph construction method of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0030] Knowledge graph construction method embodiment
[0031] This embodiment provides a technical solution for a knowledge graph construction method. Figure 1 , using the trained information bottleneck algorithm and classifier module, by determining the feature vector containing the semantic relationship between entities according to the text description of the target system and the entities in the identified text description, the extracted entity relationship is obtained to construct the knowledge graph of the target system;
[0032] The training method of the above-mentioned information bottleneck algorithm includes: optimizing and compressing the feature vector containing the semantic relationship between entities determined according to the text description of the target system in the training set and the entities in the identified text description by the information bottleneck algorithm, obtaining the optimized vector and inputting it into the classifier module, calculating the total loss function and iteratively updating the parameters of the information bottleneck algorithm accordingly until the iteration stop condition is met;
[0033] The total loss function is: the set loss function corresponding to the difference between the actual entity relationship and the extracted entity relationship superimposed on the loss function of the information bottleneck algorithm as a regularization term.
[0034] Specifically, the target systems mentioned in this embodiment are all power systems; in other embodiments, the knowledge graph construction method of this embodiment can also be used to construct a knowledge graph for other systems that can obtain corresponding text descriptions, and the principles and processes are the same.
[0035] Therefore, the knowledge graph construction method optimizes and compresses the feature vector containing the semantic relationship between entities through the information bottleneck, and at the same time adds the loss function of the information bottleneck as a regularization term to the total loss function to iteratively update the parameters of the feature optimization module. It can ensure that in the process of optimizing and compressing the feature vector by the trained information bottleneck algorithm, the features that are not related to the relationship between entities (that is, useless features that are not needed when extracting the relationship between entities) are discarded as much as possible, and the features related to the relationship between entities (that is, the key features required when extracting the relationship between entities) are retained, which reduces the influence of redundant features that are not related to the extraction of the relationship between entities. Therefore, it can avoid the extracted relationship between entities from being affected by the redundant information in the text to be processed as much as possible, and improve the reliability of the knowledge graph constructed based on the extracted relationship between entities.
[0036] Among them, refer to Figure 2 , a method of determining a feature vector containing semantic relations between entities according to a text description of a target system and entities identified in the text description includes:
[0037] The text description of a certain sentence / paragraph target system is divided into multiple vocabulary units through a word segmentation algorithm; the feature vector containing the semantic information of the text description of the target system corresponding to each vocabulary unit is obtained through a pre-trained natural language processing algorithm;
[0038] The vocabulary units corresponding to the entities in the identified text description of the target system are determined, and the feature vectors containing the semantic relationship between the entities are determined based on the feature vectors containing the semantic information of the text description of the target system corresponding to these vocabulary units.
[0039] Specifically, the text description of the target system will obtain multiple different features after being processed by the natural language processing algorithm. These features are the digital abstract description and mining of the semantic information in the text description of the fault. The feature dimension of the feature vector containing the semantic information of the text description of the target system is the number of these features. That is, for a sentence of a text description of a target system that is divided into multiple vocabulary units after the word segmentation algorithm, and then processed by a natural language processing algorithm such as BERT, each vocabulary unit in the sentence corresponds to a feature vector containing the semantic information of the text description of the target system. The number of features in each feature vector is the feature dimension.
[0040] In this embodiment, the vocabulary units corresponding to the entities in the text description of the identified target system are first determined, and then the feature vectors corresponding to these vocabulary units containing the semantic information of the text description of the target system (i.e., the feature vectors corresponding to the entities containing the semantic relationship between the entities) are merged to obtain a feature vector containing the semantic relationship between the entities; for example, for two entities identified in a certain sentence of the text description of the target system, the two entities correspond to two vocabulary units, and the feature vectors corresponding to the semantic information of the text description of the target system of the two vocabulary units are two 1×M-dimensional feature vectors, respectively. After merging the two, a 1×2M-dimensional feature vector is obtained as a feature vector containing the semantic relationship between the entities. The specific method of identifying the entities in the text description of the target system belongs to the prior art. For example, the model of the pre-trained natural language processing algorithm such as BERT can be used to identify entities in the text, such as names, places, organizations, etc., so it will not be repeated here.
[0041] In addition, the classifier module used in this embodiment includes a softmax linear classifier; the optimized vector is input into the classifier module to obtain the extracted entity relationship, including:
[0042] Input the 1×2M-dimensional optimization vector into the 2M×W-dimensional softmax linear classifier in the classifier module to obtain the probability scores of the inter-entity relationships corresponding to the input optimization vector; where M is the feature dimension of the optimization vector, which is the same as the feature dimension of the feature vector containing the semantic relationship between entities corresponding to a single vocabulary unit; W corresponds to the number of inter-entity relationships; according to the inter-entity relationship corresponding to the highest probability score, the extracted inter-entity relationship is obtained. Specifically, for example, the dimension corresponding to W is 90, and each dimension corresponds to a different inter-entity relationship; the dimension corresponding to the highest probability score is 36, then the inter-entity relationship corresponding to the highest probability score is the inter-entity relationship corresponding to the 36-dimensional dimension; usually, the inter-entity relationship corresponding to the highest probability score can be directly used as the extracted inter-entity relationship.
[0043] It should be noted that the W types of entity relationships corresponding to the softmax linear classifier are preset in advance;
[0044] For example, take W=4, that is, 4 types of entity relationships have been predefined (i.e. preset in advance), such as R1, R2, R3 and R4; then after the 1×2M-dimensional optimization vector is input into the 2M×W-dimensional softmax linear classifier in the classifier module, four probabilities will be obtained, that is, the probability scores of each entity relationship corresponding to the input optimization vector, such as 0.6, 0.1, 0.1 and 0.2, then R1 with the largest probability is the predicted result, that is, the relationship between the two entities, that is, the knowledge graph construction method of this embodiment is equivalent to selecting which of the W types of entity relationships the relationship between the two entities belongs to according to the feature vector corresponding to the entity containing the semantic relationship between the entities among the preset W types of entity relationships, thereby determining the relationship between the two entities.
[0045] In the training phase of the information bottleneck algorithm, the loss related to the judgment of the relationship between entities (i.e., the set loss function corresponding to the difference between the actual and extracted entity relationships) and the loss of the information bottleneck algorithm itself are constrained by the total loss function; on the basis that the classifier module includes a softmax linear classifier, the difference between the actual and extracted entity relationships is obtained by comparing the probability score of the actual entity relationship corresponding to the text description of the target system in the training set with the probability score of each entity relationship corresponding to the optimization vector, for example, the highest probability score 0.5 corresponding to the optimization vector corresponds to a dimension of 36, and the probability score of the entity relationship with a dimension of 24 is 0.2; and among the probability scores of the actual entity relationships, except for the probability score of the entity relationship with a dimension of 24 being 1, the probability scores of other entity relationships are all 0; the set loss function corresponding to the difference between the actual entity relationship and the extracted entity relationship can be calculated according to the distribution of the two; specifically, in this embodiment, the difference between the actual and extracted entity relationships is determined according to the output of the classifier module and the actual entity relationship corresponding to the text description; in this embodiment, the set loss function is a cross entropy loss function, and the calculation method is:
[0046]
[0047] Among them, L REC is the cross entropy loss function, log() is the natural logarithm function, n is the total number of relationships between entities, and y i is the probability score of the ith entity relationship in the probability score of the actual entity relationship corresponding to the text description of the target system in the training set; p i is the probability score corresponding to the i-th inter-entity relationship in the output of the classifier module (i.e., the probability score of the i-th inter-entity relationship in the probability scores of each inter-entity relationship corresponding to the optimization vector).
[0048] For example, to identify whether the fault is entity relationship A, entity relationship B, or entity relationship C, if the fault corresponding to the text description of the target system in the given training set is entity relationship B, that is, the label is [0,1,0], then if the probability distribution (that is, the probability score of each entity relationship corresponding to the optimization vector) obtained after the classifier module is [0.1,0.7,0.2], then the loss function calculated by the cross entropy formula is:
[0049]
[0050] And because the loss function of the information bottleneck algorithm is calculated as:
[0051]
[0052] Among them, L IB is the loss function of the information bottleneck algorithm, log() is the natural logarithm function, n is the total number of entity relationships, Y(i) is the probability score of the ith entity relationship in the probability scores of the actual entity relationships corresponding to the text description of the target system in the training set; Q(i) is the probability score of the ith entity relationship in the probability scores of each entity relationship corresponding to the optimization vector.
[0053] Then the total loss function L = L REC +λL IB ; where L REC Set the loss function corresponding to the difference between the actual and extracted entity relations, L IBis the loss function of the information bottleneck algorithm, and λ is the set hyperparameter; by calculating the gradient of the total loss function relative to the corresponding parameters of the information bottleneck algorithm, the back propagation algorithm is used to calculate the updated parameters of the information bottleneck algorithm; this process aims to reduce the loss, that is, to make the entity relationship (i.e., the extracted entity relationship) obtained by the classifier after being processed by the information bottleneck algorithm closer to the true label, and specifically use an optimizer (such as Adam) to update the parameters of the information bottleneck algorithm according to the gradient calculated by back propagation; for the information bottleneck algorithm after updating the parameters, the new text description of the target system in the training set and the feature vector containing the semantic relationship between the entities determined by the entities in the identified text description are input for optimization and compression to obtain the optimized The vector is input into the classifier module, the total loss function is calculated and the parameters of the information bottleneck algorithm are updated accordingly until the iteration stop condition is met; each iteration is intended to further reduce the value of the total loss function; since the parameters of the information bottleneck algorithm are optimized through the total loss function, it can be ensured that the optimization direction of the information bottleneck algorithm is to make the extracted entity relationship closer to the actual entity relationship, so it can naturally be achieved to ensure that the information bottleneck algorithm minimizes the features that are not related to the extracted entity relationship when performing feature optimization compression, and maximizes the effect of the features related to the extracted entity relationship; since the method of optimizing and updating the corresponding algorithm or model parameters according to the loss function through reverse gradient and optimizer belongs to the prior art, it will not be repeated here. When the total loss function is less than the set loss threshold or the number of iterations is greater than the set number threshold, it is determined that the iteration stop condition is met and the training of the information bottleneck algorithm is completed.
[0054] In this embodiment, the text description of the target system includes a text description of the secondary equipment in the power system, and the secondary equipment in the power system includes one or more of the secondary equipment at the station control layer, the secondary equipment at the interval layer, the secondary equipment at the process layer, and the secondary equipment at the network layer. Taking the construction of the knowledge graph of a certain power system as an example, in the power system, the information collection of key components such as transformers, transmission lines, generators, etc. is the basis. For example, for a transformer, its manufacturer, model, installation date, last maintenance time, load capacity and other attributes are all information that may be involved in establishing a knowledge graph. The knowledge graph constructed from this information can be used to support subsequent analysis and fault prediction.
[0055] The BERT model is used to analyze the maintenance record text of the power system (i.e., the text description of the power system). For a certain text description of the power system, entities such as "North China Substation" (location entity) and "500kV transmission line" (attribute entity) can be identified. Based on the extracted entities, the relationship between the "North China Substation" and "500kV" entities can be extracted as the "equipment" relationship between the "North China Substation" and "500kV transmission line" through the trained information bottleneck algorithm and classifier module. When generating a knowledge graph, the knowledge graph can be generated through the existing knowledge graph generation method based on the identified entities and the relationship between the extracted entities.
[0056] After simulation experiments, the knowledge graph generation method of this embodiment has performance advantages compared with other existing knowledge graph generation algorithms as shown in Table 1:
[0057] Table 1
[0058] Model Precision Recall F1(F1 score) BiLSTM 0.46 0.57 0.509 PCNN 0.29 0.40 0.336 GRU 0.45 0.57 0.503 Our Model 0.59 0.68 0.632
[0059] The three indicators are precision, recall and F1 score. The results corresponding to the BiLSTM and other models in Table 3 are the results obtained by replacing the natural language processing algorithms such as BERT and the information bottleneck algorithm in the knowledge graph construction method of this embodiment (i.e., Our Model) to construct the knowledge graph, and the other modules remain unchanged. In other words, the results obtained by the knowledge graph construction method of this embodiment and other models are a B*N*D matrix. B represents the batch size, that is, how many sentences are processed at a time. N represents how many vocabulary units each sentence is divided into. D represents the dimension of the feature vector containing the semantic information of the text description of the target system corresponding to each vocabulary unit.
[0060] Knowledge graph construction system implementation example
[0061] This embodiment provides a technical solution for a knowledge graph construction system, which includes a processor, and the processor includes executable program instructions, which are used to be executed to implement the knowledge graph construction method in the above-mentioned knowledge graph construction method embodiment.
[0062] Since the specific working principle and working method of the knowledge graph construction system of this embodiment have been described in detail in the above-mentioned knowledge graph construction method embodiment, they will not be repeated here.
[0063] The present invention has the following characteristics:
[0064] The feature vector containing the semantic relationship between entities is optimized and compressed through the information bottleneck. At the same time, the loss function of the information bottleneck is added as a regularization term to the total loss function to iteratively update the parameters of the feature optimization module. This ensures that in the process of optimizing and compressing the feature vector by the trained information bottleneck algorithm, features that are not related to the relationship between entities (i.e., useless features that are not needed when extracting the relationship between entities) are discarded as much as possible, and features related to the relationship between entities (i.e., key features required when extracting the relationship between entities) are retained, thereby reducing the influence of redundant features that are not related to the extraction of the relationship between entities. Therefore, the extracted relationship between entities can be avoided as much as possible from being affected by the redundant information in the text to be processed, thereby improving the reliability of the knowledge graph constructed based on the extracted relationship between entities.
[0065] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, but do not constitute a limitation to the present invention.
Claims
1. A knowledge graph construction method, characterized in that: Using the trained information bottleneck algorithm and classifier module, extracting the relationship between entities by determining a feature vector containing semantic relationships between entities based on a text description of the target system and the entities identified in the text description, and using the extracted relationship between entities to construct a knowledge graph of the target system; The training method of the information bottleneck algorithm includes: optimizing and compressing a feature vector containing semantic relationships between entities determined according to a text description of a target system in a training set and entities in the identified text description using the information bottleneck algorithm, obtaining an optimized vector and inputting it into the classifier module, calculating a total loss function and iteratively updating parameters of the information bottleneck algorithm accordingly until an iteration stop condition is met; The total loss function is: the set loss function corresponding to the difference between the actual and extracted entity relationships superimposed on the loss function of the information bottleneck algorithm as a regularization term.
2. The knowledge graph construction method according to claim 1, characterized in that: A method of determining a feature vector containing semantic relations between entities according to a text description of a target system and entities in the identified text description includes: The text description of a certain sentence / paragraph target system is divided into multiple vocabulary units through a word segmentation algorithm; the feature vector containing the semantic information of the text description of the target system corresponding to each vocabulary unit is obtained through a pre-trained natural language processing algorithm; The vocabulary units corresponding to the entities in the identified text description are determined, and the feature vectors containing the semantic relationship between the entities are determined based on the feature vectors containing the semantic information of the text description of the target system corresponding to these vocabulary units.
3. The knowledge graph construction method according to claim 2, characterized in that: The classifier module includes a softmax linear classifier; the optimization vector is input into the classifier module to obtain the extracted entity relationship in the following manner: The 1×2M-dimensional optimization vector is input into the 2M×W-dimensional softmax linear classifier in the classifier module to obtain the probability scores of the entity relationships corresponding to the optimization vector; wherein M is the feature dimension of the optimization vector, which is the same as the feature dimension of the feature vector containing semantic relationships between entities corresponding to a single vocabulary unit; W corresponds to the number of entity relationships; and the extracted entity relationships are obtained based on the entity relationship corresponding to the highest probability score.
4. The method for constructing a knowledge graph according to any one of claims 1 to 3, characterized in that: The target system is an electric power system; the text description of the target system includes a text description of secondary equipment in the electric power system.
5. The knowledge graph construction method according to claim 4, characterized in that: The secondary equipment includes one or more of the station control layer secondary equipment, the bay layer secondary equipment, the process layer secondary equipment and the network secondary equipment.
6. The method for constructing a knowledge graph according to any one of claims 1 to 3, characterized in that: The loss function of the information bottleneck algorithm is calculated as: Among them, L IB is the loss function of the information bottleneck algorithm, log() is the natural logarithm function, n is the total number of entity relationships, Y(i) is the probability score of the ith entity relationship in the probability scores of the actual entity relationships corresponding to the text description of the target system in the training set; Q(i) is the probability score of the ith entity relationship in the probability scores of each entity relationship corresponding to the optimization vector.
7. The knowledge graph construction method according to claim 3, characterized in that: The loss function corresponding to the difference between the actual and extracted entity relationships is set to the cross entropy loss function, which is calculated as: Among them, L REC is the cross entropy loss function, log() is the natural logarithm function, n is the total number of relationships between entities, and y i is the probability score of the ith entity relationship in the probability score of the actual entity relationship corresponding to the text description of the target system in the training set; p i The probability score of the i-th entity relationship among the probability scores of the entity relationships corresponding to the optimization vector.
8. The method for constructing a knowledge graph according to any one of claims 1 to 3, characterized in that: The entities in the text description are identified based on a pre-trained natural language processing algorithm.
9. A knowledge graph construction system, characterized in that: It includes a processor, which includes executable program instructions, and the executable program instructions are used to be executed to implement the knowledge graph construction method according to any one of claims 1-8.
Citation Information
Patent Citations
Method and device for constructing power failure knowledge graph
CN115238029A
Electric power plan knowledge graph construction method and system based on bidirectional gating circulation unit
CN112100397A
Power equipment triple construction method based on deep learning algorithm
CN113987211A
Knowledge graph generation method and device, computer equipment and storage medium
CN115048536A
Induction relation prediction method based on information bottleneck
CN117668247A
Cited By
AI intelligent vehicle, object and property damage assessment method and system supporting multi-mode interaction
CN121707745A
