A knowledge graph construction method based on aircraft component reliability
By constructing a knowledge graph based on BERT+Bi-LSTM+CRF, it solves the problem that existing aircraft fault diagnosis methods cannot quickly and accurately determine complex system faults, realizes autonomous knowledge extraction and interpretability of system fault diagnosis, and improves fault diagnosis. Diagnostic efficiency and knowledge utilization.
Patent Information
- Application Number
- CN202310625264.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-05-30
AI Technical Summary
Existing aircraft fault diagnosis methods mainly analyze a single aircraft system and cannot quickly and accurately determine the fault diagnosis and health status of complex aircraft. Moreover, data-driven methods cannot utilize expert knowledge, and the results have poor interpretability.
Use the entity recognition model based on BERT+Bi-LSTM+CRF and the relationship extraction model of the self-attention mechanism to build a knowledge graph. Through entity extraction, relationship extraction and entity alignment, combined with Pytorch and Neo4j graph database, intelligent question answering and fault diagnosis are realized. analyze.
It realizes autonomous knowledge extraction of system fault diagnosis text, improves the interpretability of fault diagnosis, integrates domain knowledge, improves the utilization and efficiency of fault diagnosis knowledge, and reduces dependence on the experience of technical backbones.
Smart Images

Figure CN116644192B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of knowledge graph construction, and in particular to a knowledge graph construction method based on aircraft component reliability. Background Art
[0002] Currently, aircraft fault diagnosis mostly analyzes a single aircraft system, for example, only the hydraulic system is evaluated and analyzed for fault diagnosis.
[0003] With the development of science and technology, the complexity of aircraft design is increasing, and the threat of aircraft systems to aircraft flight safety is also increasing. Therefore, it is necessary to quickly and accurately judge their fault diagnosis and health status. Commonly used data-driven fault diagnosis analysis cannot utilize expert knowledge, and the results are poorly interpretable, which brings inconvenience to practical use. Summary of the invention
[0004] The content of the present invention is to provide a knowledge graph construction method based on aircraft component reliability, which can overcome certain or some defects of the prior art.
[0005] A method for constructing a knowledge graph based on aircraft component reliability according to the present invention comprises the following steps:
[0006] Step 1: Build the ontology of the knowledge graph, that is, clarify the entities, relationships, attribute types and definitions required for the knowledge graph in the original data;
[0007] Step 2: Extract entities. According to the clear entity definition type, use the entity extraction corpus annotated by BMEO to train the bidirectional long short-term memory network Bi-LSTM and use it to extract entities from unstructured and semi-structured texts.
[0008] Step 3: Extract the relationship and extract the semantic relationship between entities from the text data;
[0009] Step 4: Perform entity alignment processing;
[0010] Step 5: Use Pytorch and Neo4j graph database to build a knowledge graph for aircraft equipment using the extracted entities and relationships;
[0011] Step six: Use knowledge graphs to implement intelligent question answering and fault diagnosis and analysis.
[0012] As a preferred method, in step one, the data features are cleaned, redundant and erroneous information is deleted, the expert knowledge in the aviation field is combined, the text description is unified, a standardized structured text is formed, and the internal connections between entities, relationships and attributes in the preprocessed text are found; the clear ontology includes: ① determining the professional field and scope of the domain ontology; ② considering reusing existing ontologies; ③ listing the important terms in the fields involved in the ontology; ④ defining classification concepts and concept classification levels; ⑤ defining the relationship between concepts.
[0013] Preferably, in step one, ontology construction is confirmed by a seven-step method, which includes: ① using expert knowledge methods to clarify the key indicators, attributes, and dimensions required for aircraft component reliability, and initially defining the scope; ② collecting and verifying whether there is overlap with ontologies in other fields, and if there is overlap, directly using it to facilitate the formation of a unified expression form; ③ extracting the attributes of the entity according to the relevant requirements of civil aviation reliability; ④ classifying the entities to obtain a hierarchical structure diagram of the entity; ⑤ defining the attributes of the class; ⑥ defining the classification of the attributes; ⑦ creating the ontology.
[0014] Preferably, in step 2, the specific steps include: ① using the text data generated by the classification result of step 1 as the input layer of the BERT model; ② building a BERT model to extract text features; ③ passing the extracted text features to the Bi-LSTM layer, using BMEO annotation for training, extracting keywords from the training text, and completing the entity annotation task; ⑤ using the annotated text after setting the weights as the input layer of the CRF, correcting the annotation errors, and completing the entity extraction task.
[0015] Preferably, in step three, the specific steps include: ① inputting the text data in the entity extraction into the embedding layer to generate word vectors; ② optimizing the word vectors through the Bi-LSTM layer; ③ the self-attention layer generates weight vectors by optimizing the word vectors and then merges them into sentence-level feature vectors; ④ finally using the sentence-level feature vectors for relationship extraction.
[0016] Preferably, in step 4, the specific steps include: ① calculating the similarity between words in the text data based on the edit distance similarity method; ② setting a threshold, and identifying the same entity and relationship within the threshold range.
[0017] Preferably, in step six, the specific steps include:
[0018] 1) Maintenance personnel input faulty equipment;
[0019] 2) Text similarity matching;
[0020] 3) Determine whether the similarity meets the threshold, if yes, proceed to the next step; if no, proceed to step 7);
[0021] 4) Match the ATA100 device number;
[0022] 5) Use the new faulty equipment to match the solution;
[0023] 6) Recommend diagnostic options;
[0024] 7) Extract the entity of the input fault device;
[0025] 8) Retrieve knowledge graph for entity matching;
[0026] 9) Calculate and return the faulty device with the highest score, and then proceed to step 4).
[0027] The beneficial effects of the present invention are as follows:
[0028] (1) The entity recognition model based on BERT+Bi-LSTM+CRF and the relationship extraction model based on the self-attention mechanism can realize autonomous knowledge extraction of system fault diagnosis text.
[0029] (2) Using the framework and technology proposed in this invention, a system fault diagnosis knowledge graph with a certain data scale is constructed, which can provide knowledge support for applications such as intelligent question answering and attribution analysis, and to a certain extent provide an explainable basis for fault diagnosis.
[0030] (3) The application system fault diagnosis knowledge graph realizes the structured storage of unstructured fault diagnosis knowledge, which can effectively integrate domain knowledge and gather expert experience, which is conducive to improving the utilization rate of historical fault diagnosis knowledge and fault diagnosis efficiency, and reducing dependence on the experience of technical backbones.
[0031] With the continued development of new technologies such as artificial intelligence, big data, and cloud computing, knowledge graphs have broad application space in aviation fault diagnosis management, quality control, safety supervision, etc. In the future, we will further improve the knowledge extraction algorithm, expand the coverage of knowledge graphs, and carry out knowledge engineering exploration for intelligent terminals such as images, audio and video, and sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flowchart of a method for constructing a knowledge graph based on aircraft component reliability in an embodiment;
[0033] Figure 2 A flowchart for constructing the ontology in the embodiment;
[0034] Figure 3 It is a basic flow chart of entity extraction in the embodiment;
[0035] Figure 4 This is a diagram of the basic steps of relationship extraction in the embodiment;
[0036] Figure 5It is a flowchart of intelligent question answering and fault diagnosis analysis in the embodiment;
[0037] Figure 6 Schematic diagram of a system fault diagnosis entity recognition model in an embodiment;
[0038] Figure 7 Schematic diagram of the relationship extraction model in the embodiment. DETAILED DESCRIPTION
[0039] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments are only for explaining the present invention and are not intended to limit it.
[0040] Example
[0041] like Figure 1 As shown, this embodiment provides a method for constructing a knowledge graph based on aircraft component reliability, which includes the following steps:
[0042] Step 1: Construct the ontology of the knowledge graph, that is, clarify the entities, relationships, attribute types and definitions required by the knowledge graph in the original data; in the case of the aviation manufacturing industry, the data features are multimodal, heterogeneous and strongly correlated. Clean them, delete redundant and erroneous information, combine the knowledge of aviation experts, unify the text description, form a standardized structured text, find out the internal connection between entities, relationships and attributes in the preprocessed text, and lay the foundation for subsequent entity and relationship extraction, such as Figure 2 As shown in the figure, a clear ontology includes: ① determining the professional field and scope of the domain ontology; ② considering reusing existing ontologies; ③ listing important terms in the domain involved in the ontology; ④ defining classification concepts and concept classification levels; ⑤ defining the relationship between concepts.
[0043] The ontology construction is confirmed by a seven-step method. Its advantage is that it effectively avoids the interference of redundant information and clarifies entities more objectively. The seven-step method includes: ① Using expert knowledge methods to clarify the key indicators, attributes, dimensions, etc. required for the reliability of aircraft components, and initially define the scope; ② Collect and verify whether there is overlap with ontologies in other fields. If there is overlap, it can be used directly to facilitate the formation of a unified expression form; ③ According to the relevant requirements of civil aviation reliability, extract the attributes of the entity; ④ Classify the entities to obtain a hierarchical structure diagram of the entity; ⑤ Define the attributes of the class; ⑥ Define the classification of attributes; ⑦ Create the ontology.
[0044] Step 2: Extract entities, also known as named entity recognition (NER) task. According to the clear entity definition type, use the BMEO annotated entity extraction corpus to train the bidirectional long short-term memory network (Bi-LSTM) and use it to extract entities from unstructured and semi-structured texts, such as Figure 3As shown in the figure, the specific steps include: ① Use the text data generated by the classification result of step 1 as the input layer of the BERT model; ② Build the BERT model to extract text features; ③ Pass the extracted text features to the Bi-LSTM layer, use BMEO annotation for training, extract the keywords of the training text and complete the entity annotation task; ⑤ Use the annotated text after setting the weight as the input layer of the CRF, correct the annotation errors, and complete the entity extraction task.
[0045] The main functions of feature extraction are twofold: ① The input data set is text data, which makes it inconvenient for computer training models to identify the corresponding characters or words, so feature extraction is required to convert them into word vectors; ② Good text expression can improve training efficiency.
[0046] Step three, to extract relations, it is necessary to extract semantic relations between entities from text data, where relation classification is to find semantic relations between pairs of entities. The advantage of using Bi-LSTM is that only text training is required to extract relations, without using external semantic resources and system features of NLP. Therefore, based on step two, the relationship extraction corpus after relationship annotation is used to train a bidirectional long short-term memory network based on the attention mechanism. The relationship annotation also adopts the BMEO annotation method, and then the text data annotated in the entity extraction stage is used to extract relations between entities. The purpose of building this model is to capture important semantic information in the text and extract relations between entities, such as Figure 4 The specific steps include: ① Input the text data in entity extraction into the embedding layer to generate word vectors; ② The word vectors are optimized through the Bi-LSTM layer; ③ The self-attention layer generates weight vectors by optimizing the word vectors and then merges them into sentence-level feature vectors; ④ Finally, the sentence-level feature vectors are used for relationship extraction.
[0047] Step 4: Perform entity alignment. This is a key technology for knowledge graph fusion. The construction of a knowledge graph requires dynamic updates in combination with third-party data. Entity alignment aims to cluster words with the same meaning as the same entity or relationship. The specific steps include: ① Calculate the similarity between words based on the edit distance similarity method for text data; ② Set a threshold and identify them as the same entity and relationship within the threshold range.
[0048] Step 5: Use Pytorch and Neo4j graph database to build a knowledge graph for aircraft equipment using the extracted entities and relationships;
[0049] Step 6: Use knowledge graphs to implement intelligent question answering and fault diagnosis analysis applications, such as Figure 5 As shown, the specific steps include:
[0050] 1) Maintenance personnel input faulty equipment;
[0051] 2) Text similarity matching;
[0052] 3) Determine whether the similarity meets the threshold, if yes, proceed to the next step; if no, proceed to step 7);
[0053] 4) Match the ATA100 device number;
[0054] 5) Use the new faulty equipment to match the solution;
[0055] 6) Recommend diagnostic options;
[0056] 7) Extract the entity of the input fault device;
[0057] 8) Retrieve knowledge graph for entity matching;
[0058] 9) Calculate and return the faulty device with the highest score, and then proceed to step 4).
[0059] This embodiment is based on the entity recognition model of BERT+Bi-LSTM+CRF and the relationship extraction model of the self-attention mechanism, which can realize the autonomous knowledge extraction of the system fault diagnosis text. Using the framework and technology proposed in this embodiment, a system fault diagnosis knowledge graph with a certain data scale is constructed, which can provide knowledge support for applications such as intelligent question answering and attribution analysis, and to a certain extent provide an explainable basis for fault diagnosis. The application system fault diagnosis knowledge graph of this embodiment realizes the structured storage of unstructured fault diagnosis knowledge, which can effectively integrate domain knowledge and gather expert experience, which is conducive to improving the utilization rate of historical fault diagnosis knowledge and the efficiency of fault diagnosis, and reducing the dependence on the experience of technical backbones.
[0060] Example
[0061] This example uses the operation and maintenance records of an airline's ARJ-900 aircraft as raw data to construct an aircraft equipment fault diagnosis knowledge graph and conduct intelligent applications. The proposed knowledge graph construction method is verified by case studies, and the entity extraction and relationship extraction effects of the method used are analyzed with indicators such as accuracy and recall rate to prove its effectiveness. The working process or usage is as follows:
[0062] a. Knowledge graph model layer construction (ontology construction)
[0063] Step 1. Before constructing the knowledge ontology, discuss the business needs of aircraft fault diagnosis and analysis with experts in the field and relevant maintenance personnel to clarify the application purpose of constructing the ontology;
[0064] Step 2. Check whether there are reusable ontologies in other fields (such as medical diagnosis, power grid fault diagnosis and processing, etc.);
[0065] Step 3. Construct a conceptual system in the field of system fault diagnosis and define the core concepts of fault diagnosis knowledge;
[0066] Step 4. Refer to the definitions of professional terms in national standards, national military standards and industry standards related to the aviation field to standardize the concepts related to fault diagnosis;
[0067] Step 5. Return to Step 3 to improve and optimize the fault diagnosis knowledge model. Through multiple iterations, a practical and universal fault diagnosis knowledge ontology model is finally constructed.
[0068] b. Knowledge graph data layer construction (entity and relationship extraction)
[0069] Named entity recognition is the most core technology in the process of knowledge graph construction, which mainly includes entity recognition and relationship extraction.
[0070] Step 1. Entity recognition uses a recognition method based on bidirectional long short-term memory neural network (Bi-LSTM) and conditional random field (CRF). At the same time, the BERT pre-training model is added to realize the entity recognition task. The aircraft system entity recognition model is as follows: Figure 6 shown.
[0071] Step 2. Relationship extraction There is a certain correlation between entities in the knowledge text related to aircraft fault diagnosis information. Extracting the implicit relationship from the unstructured fault diagnosis record text is a difficult point in knowledge extraction. The relationship extraction method based on deep learning has great advantages in improving the efficiency of relationship classification and the accuracy of relationship extraction. Therefore, a bidirectional long short-term memory neural network model based on the self-attention mechanism is used to realize relationship extraction, such as Figure 7 shown.
[0072] The calculation formula of the bidirectional long short-term memory neural network is:
[0073] f(t)=σ(W f h t-1 +U f x t +b f )
[0074] i(t)=σ(W i h t-1 +U i x t +b i )
[0075] o(t)=σ(W o h t-1 +U o xt +b o )
[0076] Where: x t represents the input at time t, h t-1 represents the hidden layer state value at time t-1; W f , W i , W o They represent the forget gate, input gate, output gate and h in the feature extraction process respectively. t-1 The weight coefficient of U f , U i , U o Respectively represent x t The weight coefficient of ; b represents the bias value.
[0077] Step 3. In the relation extraction model based on the self-attention mechanism, the calculation of the self-attention weight vector y and the calculation of the entity relationship probability distribution P are the key to achieving relation extraction. The calculation formula is:
[0078] y=softmax(b att ·[tanh(H)] T )
[0079] P = softmax(W · [tanh(y · H)] T +k T )
[0080] H=(h1,h2,h3,…,h n ) T
[0081] Where: b att is a weight vector of dimension 2u, where u is the size of the BiLSTM hidden layer; H is the feature matrix obtained after Bi-LSTM encoding, with dimension n×2u; W is the weight matrix representing the importance of words, with dimension c×2u, where c is the number of relationship types to be output; k is a bias parameter vector of dimension n; tanh(●) is the hyperbolic tangent activation function; softmax(●) is the normalized exponential function.
[0082]
[0083]
[0084] c. Entity alignment
[0085] ① After the above-mentioned entity and relationship extraction, since the text may contain the same entity but different expressions, such as "landing gear failure" and "landing gear failure" have the same meaning, fusion processing is required. Another example is "oil leakage" but the object may be "lubricating oil system" or "fuel system", which also needs to be processed. After obtaining the entity, relationship and entity attribute information from the original data through information extraction, it is necessary to logically attribute the data and filter out redundant / errors through knowledge fusion. That is, it requires two processes: entity linking and knowledge merging.
[0086] Step 1. According to the above process, the knowledge extracted from the unstructured aircraft fault diagnosis record text may contain a large amount of fuzzy and repeated data. The purpose of knowledge fusion is to effectively integrate and unify them to improve the knowledge quality of the knowledge graph database. The knowledge fusion tasks are mainly entity disambiguation and coreference disambiguation;
[0087] Step 2 Entity disambiguation technology is used to deal with the problem that entities with the same name refer to different objective things. For example, "oil leakage" in some texts describes "oil leakage in the lubricating oil system", while in others it describes "oil leakage in the fuel system". Therefore, it is necessary to connect the semantics of the context to clarify the correct meaning of entities with the same name. Co-reference resolution technology is used to deal with the problem that multiple expressions correspond to the same entity object. For example, "haifu", "engine accessory casing" and "accessory casing" all correspond to the unit entity of "engine accessory casing". Especially for manually written fault diagnosis records, troubleshooting experience, etc., the phenomenon of non-standard terms is relatively common, so unified and standardized entity names are needed. This embodiment uses a combination of cosine distance and Jaccard correlation coefficient to calculate the similarity between system entities, and determines whether the entities to be aligned match by setting a threshold to achieve knowledge fusion. The corresponding calculation formula is as follows:
[0088]
[0089]
[0090] Where: s1 and s2 are two system entities; A(s) is the attribute string of entity s. The larger the Similarity value, the higher the semantic similarity between the two.
[0091] d. Knowledge storage
[0092] Through the above processing flow, multi-source heterogeneous data has been converted into structured knowledge. Knowledge storage requires storing various types of knowledge in the form of "entity-relationship-entity / attribute" triples to support the effective management and calculation of large-scale graph data. In view of the characteristics of clear fault diagnosis record structure and rich relationships between entities, this embodiment uses Pytorch and NEO4j graph database as the storage system, which can display the aircraft fault diagnosis knowledge graph from multiple dimensions.
[0093] e. Intelligent applications based on knowledge graphs
[0094] Step 1: Intelligent question and answer based on knowledge graph.
[0095] The knowledge graph based question answering system (KBQA) is a question answering mechanism that performs semantic analysis and intent recognition on user input questions, converts them into computer query language, and seeks answers in the constructed knowledge graph. The KBQA architecture includes technologies such as question classification, knowledge retrieval, and answer generation. Among them, question classification is the key to implementing KBQA. The core task of question classification is to identify the intent of the user's questions and provide useful information for building answer generation strategies.
[0096] Step 1-1 Naive Bayes classifier. This classification model based on probability statistics is currently widely used in question classification in intelligent question-answering technologies in industries such as power grids, medical care, and subways. Question classification is achieved by extracting feature words from user question segmentation and corresponding to the corresponding question-answering template.
[0097] Step 1-2 uses this classification method to build a classification model using the question feature words after Jieba segmentation and the custom question categories as training samples to achieve the intention recognition of the question, so as to correspond the obtained classification results to the corresponding question and answer template. Let x = (x1.x2,…,x n ) represents the n feature word vectors after question segmentation, A=(a1.a2,…,a m ) represents the custom m categories. Under the assumption that the feature word variables in each class are independent of each other, according to the maximum posterior probability, the naive Bayesian classification will select the class with the largest posterior probability as the class label for the unknown problem feature word vector x, that is,
[0098]
[0099] Where: P(a j ) is category a j The prior probability can be obtained by j The frequency of occurrence of the class is used to calculate; P(x i|a j ) is in a j Class x i The probability of occurrence, j=1,2,…,m.
[0100] About P(x i |a j ), we usually use word frequency to calculate, that is,
[0101]
[0102] It can be seen that the numerator of the formula has a great influence on the entire calculation result. At the same time, some core words are found during classification. These core words are a special kind of keywords. They are often representative of certain categories. They may not appear many times, but they have a great influence on the classification of questions. If for the core word x i In calculating P(x i |a j ) still uses the above calculation formula, which will result in low model classification accuracy. In order to solve this problem, it is necessary to correct this calculation formula, which will result in low model classification accuracy. This embodiment uses a weighted method to correct it, and the corrected formula is
[0103]
[0104] Where: k is the importance of the core word in affecting the problem classification, k>1. The core words of the problem category can be selected by using category information keywords and expert experience.
[0105] Step 2 Fault diagnosis analysis based on knowledge graph
[0106] Fault diagnosis Bayesian network construction and knowledge graph construction can well realize the role of real-time monitoring of aircraft fault diagnosis. Combined with the previous aircraft equipment fault diagnosis and positioning results, the knowledge graph subgraph of fault diagnosis is obtained as the structural basis of the Bayesian network, and a network relationship diagram including ATA100 chapter number, maintenance parts, and maintenance processing methods is constructed. And with the fault diagnosis component as the core, the fault diagnosis component or system is forward deduced from ATA100. According to the ATA100 chapter number maintenance information and the association structure between maintenance parts, the Bayesian network structure is constructed.
[0107] The fault diagnosis analysis combines the component fault diagnosis information given in the aircraft record data, counts the fault diagnosis frequency, and consults experts to assign corresponding probability parameter values to the Bayesian network: specifically, the fault diagnosis probability of the fault diagnosis component, the prior probability of the occurrence of the fault diagnosis phenomenon, and the conditional probability between the three types of nodes.
[0108] Step 2-1 For the probability of fault diagnosis of the fault diagnosis component (the prior probability of the node), we can refer to the fault diagnosis theory, assuming that the life of the component follows an exponential distribution, and the component is divided into two states: normal and failure. i is the service life of component i, assuming t i It obeys exponential distribution, that is, t i ~E(λ i ). Then the probability of fault diagnosis occurring at time t is Then, statistical analysis is performed based on the fault diagnosis record and other data to obtain the corresponding parameter values.
[0109] Step 2-2 The prior probability of the occurrence of the fault diagnosis component, that is, the probability of the occurrence of the fault diagnosis component under normal circumstances needs to be determined first, which can be obtained by analyzing past data. It is assumed that the prior probability of all fault diagnosis nodes is the same, so that the posterior probability can be emphasized through new observations. When no new fault diagnosis phenomenon is observed, the probability of the fault diagnosis (cause) not occurring is 98%, and there is a 2% probability that it will occur. The conditional probability between nodes is given in combination with past statistical data and expert interviews.
[0110] Step 2-3 is based on the quantitative analysis of the Bayesian network in two directions, namely forward analysis (prediction) and reverse analysis (diagnosis). In the forward analysis, the probability of occurrence of any node is calculated based on the prior probability of the root node and the conditional probability of each node. Such as: when a certain fault diagnosis is known to occur, the probability of the fault diagnosis phenomenon that may occur; when the use time of a certain component is known, the probability of the corresponding fault diagnosis cause. In the reverse analysis (diagnostic reasoning), when the probability of a child node is updated, the posterior probability of the parent node can be updated according to the Bayesian formula, which is the actual reasoning process of the fault diagnosis. Generally, the greater the difference between the prior probability and the posterior probability of the fault diagnosis, the higher the probability of the corresponding fault diagnosis. The fault diagnosis method can provide the possibility of the occurrence of the fault diagnosis, but it cannot obtain a clear diagnosis result. Therefore, according to engineering experience, it is generally necessary to set a threshold value of the probability of the occurrence of the fault diagnosis to assist in the judgment. This embodiment defines two judgment rules to output the fault diagnosis evaluation level.
[0111] The present invention and its embodiments are described schematically above, and the description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by it and designs a structural method and an embodiment similar to the technical solution without creativity without departing from the purpose of the invention, they shall all fall within the protection scope of the present invention.
Claims
1. Knowledge graph construction method based on aircraft component reliability, Features: The following steps are involved: Step 1: Build the ontology of the knowledge graph, that is, clarify the entities, relationships, attribute types and definitions required for the knowledge graph in the original data; Step 2: Extract entities. According to the clear entity definition type, use the entity extraction corpus annotated by BMEO to train the bidirectional long short-term memory network Bi-LSTM and use it to extract entities from unstructured and semi-structured texts. Step 3: Extract the relationship and extract the semantic relationship between entities from the text data; In step three, the specific steps include: ① inputting the text data in entity extraction into the embedding layer to generate word vectors; ② optimizing the word vectors through the Bi-LSTM layer; ③ the self-attention layer generates weight vectors by optimizing the word vectors and then merges them into sentence-level feature vectors; ④ finally using the sentence-level feature vectors for relationship extraction; Step 4: Perform entity alignment processing; In step 4, the specific steps include: ① calculating the similarity between words in the text data based on the edit distance similarity method; ② setting a threshold, and identifying the same entity and relationship within the threshold range; After the above entity and relationship extraction, since the text may contain the same entity but different expressions, it is necessary to perform fusion processing; after obtaining the entity, relationship and entity attribute information from the original data through information extraction, it is necessary to logically attribute the data and filter out redundancy and errors through knowledge fusion; that is, it requires two processes: entity linking and knowledge merging; Step 1. According to the above process, the knowledge extracted from the unstructured aircraft fault diagnosis record text may contain a large amount of fuzzy and repeated data. The purpose of knowledge fusion is to effectively integrate and unify them to improve the knowledge quality of the knowledge graph database; the knowledge fusion task is entity disambiguation and coreference disambiguation; Step 2: Entity disambiguation technology is used to deal with the problem that entities with the same name refer to different objective things. It is necessary to connect the semantics of the context to clarify the correct meaning of the entities with the same name; co-reference resolution technology is used to deal with the problem that multiple expressions correspond to the same entity object, which requires a unified and standardized entity name; the similarity between system entities is calculated by combining cosine distance and Jaccard correlation coefficient, and the threshold is set to determine whether the entities to be aligned match to achieve knowledge fusion; the corresponding calculation formula is as follows: Where: s 1 and 2 are two system entities respectively; A(s) is the attribute string of entity s; the larger the Similarity value is, the higher the semantic similarity between the two entities is; Step 5: Use Pytorch and Neo4j graph database to build a knowledge graph for aircraft equipment using the extracted entities and relationships; Step 6: Use knowledge graphs to implement intelligent question answering and fault diagnosis analysis. In step six, the specific steps include: 1) Maintenance personnel input faulty equipment; 2) Text similarity matching; 3) Determine whether the similarity meets the threshold, if yes, proceed to the next step; if no, proceed to step 7); 4) Match the ATA100 device number; 5) Use the new faulty equipment to match the solution; 6) Recommend diagnostic options; 7) Extract the entity of the input fault device; 8) Retrieve knowledge graph for entity matching; 9) Calculate and return the faulty device with the highest score, and then proceed to step 4).
2. The method for constructing a knowledge graph based on aircraft component reliability according to claim 1, Features: In step one, the data features are cleaned, redundant and erroneous information is deleted, and the expert knowledge in the aviation field is combined to unify the text description to form a standardized structured text, and find out the internal connections between entities, relationships and attributes in the preprocessed text; the clear ontology includes: ① determining the professional field and scope of the domain ontology; ② considering reusing existing ontologies; ③ listing the important terms in the fields involved in the ontology; ④ defining classification concepts and concept classification levels; ⑤ defining the relationship between concepts.
3. The method for constructing a knowledge graph based on aircraft component reliability according to claim 2, Features: In step one, the ontology construction is confirmed using a seven-step method, which includes: ① Using expert knowledge methods to clarify the key indicators, attributes, and dimensions required for the reliability of aircraft components, and initially define the scope; ② Collect and verify whether there is any overlap with ontologies in other fields. If there is an overlap, use it directly to facilitate the formation of a unified expression form; ③ According to the relevant requirements of civil aviation reliability, extract the attributes of the entity; ④ Classify the entities to obtain a hierarchical structure diagram of the entity; ⑤ Define the attributes of the class; ⑥ Define the classification of the attributes; ⑦ Create the ontology.
4. The method for constructing a knowledge graph based on aircraft component reliability according to claim 3, Features: According to the knowledge graph construction method based on aircraft component reliability according to claim 2, it is characterized in that: in step 2, the specific steps include: ① using the text data generated by the classification result of step 1 as the input layer of the BERT model; ② building a BERT model to extract text features; ③ passing the extracted text features to the Bi-LSTM layer, using BMEO annotation for training, extracting keywords from the training text and completing the entity annotation task; ⑤ using the annotated text after setting the weight as the input layer of the CRF, correcting the annotation errors, and completing the entity extraction task.
