Relationship extraction and application method for FMECA document of airborne system
Deep learning technology is used to extract relationships from the FMECA text of the aircraft air-conditioning system and construct a fault tree, which solves the time-consuming and labor-intensive problem of aircraft air-conditioning system fault analysis in the existing technology, realizes efficient fault mode and fault tree construction, and improves analysis efficiency and accuracy.
Patent Information
- Application Number
- CN202410437939.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology relies on manual input and manual modeling in the fault analysis of aircraft air-conditioning systems, which results in the relationship extraction and fault tree construction of FMECA tables being time-consuming and laborious, and there is a lack of efficient computer-assisted means.
The relationship extraction method based on deep learning is adopted, and the BERT-BiLSTM-CRF network is used to perform entity type recognition and relationship extraction on the FMECA text, and a fault tree is constructed, which is combined with the representation in the form of a graph to improve the efficiency of automated construction and maintenance support.
It greatly reduces the import and analysis time of FMECA tables, improves the efficiency of constructing fault modes and fault trees, simplifies hazard analysis, reduces manpower investment, and improves the import speed and accuracy.
Smart Images

Figure CN118535671A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital research and development technology, and in particular to a method for extracting and applying a relationship in an FMECA document of an aircraft onboard system. Background Art
[0002] Aircraft air conditioning system (ACS) is one of the most important subsystems of an aircraft. Due to the lack of a health management system for ACS, ACS failures are mostly sudden failures. In reliability design analysis or equipment failure zeroing work, most of them use FMECA technology or FTA technology to focus on failure modes. At present, aircraft air conditioning systems can already realize the construction of single failure modes and FTA fault trees based on FMEA. Most FMECA tables have vague logic for describing failure modes, effects and causes. There are great difficulties in directly constructing fault trees through FMECA tables. How to assist engineers in constructing fault tree models through computer analysis has become an urgent need. Most of the analysis relies on manual input and manual modeling, which is time-consuming and laborious. Relying on relationship extraction methods to analyze existing FMECA tables has potential value, which is of great significance for assisting the construction of maintenance and support knowledge graphs for single failure modes, the automatic construction of fault trees, and the comprehensive hazard analysis of various components.
[0003] The relation extraction task of FMECA streaming text can be solved by the mainstream relation extraction (RE) method in the field of artificial intelligence. After the deep learning method proposed by Hinton et al. in 2006, artificial intelligence has gradually been commercialized in a large number of fields. At present, many studies have introduced deep learning technology into natural language processing, and have achieved good results in relation extraction. The solution to achieve FMECA analysis at this stage is to analyze FMECA texts using rule-based methods, knowledge graphs, etc., so as to assist engineers in building fault tree models. However, these two computer-assisted methods are still time-consuming and labor-intensive, and heavily rely on manual input and manual modeling. Summary of the invention
[0004] In order to solve the problems and shortcomings in the above-mentioned prior art, the present invention proposes a relationship extraction and application method for FMECA documents of aircraft airborne systems.
[0005] In order to achieve the above-mentioned object of the invention, the technical solution of the present invention is as follows:
[0006] The present invention provides a method for extracting and applying a relationship in an FMECA document of an aircraft airborne system, which specifically includes the following contents:
[0007] Step S1. Streaming document import;
[0008] Step S2. Based on the imported document, perform relation extraction on the FMECA text, including entity type recognition and column number binding of the FMECA header text, as well as entity extraction and type judgment of the internal cells of the table;
[0009] Step S3: construct the triple SOP extracted in step S2 into a fault tree in the form of a graph.
[0010] Preferably, in step S1, for the imported streaming document, the document format is first identified and the header information is read; when there are merged cells in the document header, a database form is constructed according to the minimum granularity of the header.
[0011] Preferably, in step S1, for the imported streaming document, when reading the doc and docx formats, the cells method of the table object in the docx file is used to identify all the cell information of the table as a one-dimensional list data format at one time, and then the header and content are processed separately.
[0012] Preferably, in step S2, entity type identification and column number binding of the header text include:
[0013] The tokenizer of bert4keras is used to segment the text in each header cell at a fine-grained level. Then, a weight and column number are assigned to each segmented word according to its position in the header, and the strings are concatenated. The strings are then input into the entity extraction network based on BERT-BiLSTM-CRF, and the named entities are annotated using the BIOES annotation method.
[0014] Preferably, in step S2, identifying entity of cells inside a table includes:
[0015] After word segmentation and extraction of the text content in the cell, each word is input into the tokenizers interface of bert4keras to be processed into a 1024-dimensional word vector, and then the BiLSTM network is used to learn the relationship between them to obtain the score of each word when it is used as each item in BIOES; through the CRF algorithm, each word is arranged and combined to form a pending entity name, and finally the score of each arrangement and combination is obtained according to the schema rules, and the most appropriate combination is selected as the result of entity name recognition.
[0016] Beneficial effects of the present invention:
[0017] (1) The method provided by the present invention closely follows the characteristics of the FMECA table of aircraft onboard equipment to perform deep learning network structure design and mode setting. Compared with manually reading a large number of FMECA tables to summarize the fault modes and the tree-like relationships between the fault modes, a lot of time can be saved.
[0018] (2) When importing a streaming FMECA document, if the streaming document format is doc or docx, the method provided by the present invention can automatically identify the header structure in the word table, and then create a class and class attributes for it through a class template. Compared with the prior art, the import process is optimized and the number of reconstructions of table objects in doc or docx format files during the import process can be effectively reduced, thereby exponentially increasing the document import speed.
[0019] (3) Using the analysis results provided by the present invention, users can conveniently connect to the failure mode criticality analysis, and conveniently query and obtain the failure probability and other information of the failure mode built by the system. The previous work required a lot of time and manpower investment.
[0020] (4) The present invention combines the specifications compiled by FMECA with the schema rules in CRF, and adds a step of screening to entity recognition to improve the accuracy BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The foregoing and following detailed description of the present invention will become more apparent when read in conjunction with the following drawings, in which:
[0022] Figure 1 This is a schematic diagram of streaming document importing according to the present invention;
[0023] Figure 2 This is a schematic diagram of header information preprocessing of the present invention;
[0024] Figure 3 A flowchart for naming entities for the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions for achieving the purpose of the present invention will be further described below through several specific embodiments. It should be noted that the technical solutions claimed for protection in the present invention include but are not limited to the following embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.
[0026] Aircraft air conditioning system (ACS) is one of the most important subsystems of an aircraft. Due to the lack of a health management system for ACS, ACS failures are mostly sudden failures. In reliability design analysis or equipment failure zeroing work, most of them use FMECA technology or FTA technology to focus on failure modes. At present, aircraft air conditioning systems can already realize the construction of single failure modes and FTA fault trees based on FMEA. Most FMECA tables have vague logic for describing failure modes, effects and causes. There are great difficulties in directly constructing fault trees through FMECA tables. How to assist engineers in constructing fault tree models through computer analysis has become an urgent need. Most of the analysis relies on manual input and manual modeling, which is time-consuming and laborious. Relying on relationship extraction methods to analyze existing FMECA tables has potential value, which is of great significance for assisting the construction of maintenance and support knowledge graphs for single failure modes, the automatic construction of fault trees, and the comprehensive hazard analysis of various components.
[0027] The relation extraction task of FMECA streaming text can be solved by the mainstream relation extraction (RE) method in the field of artificial intelligence. After the deep learning method proposed by Hinton et al. in 2006, artificial intelligence has gradually been commercialized in a large number of fields. At present, many studies have introduced deep learning technology into natural language processing, and have achieved good results in achieving relation extraction. The solution to achieve FMECA analysis at this stage is to analyze FMECA texts using rule-based methods, knowledge graphs, etc., so as to assist engineers in building fault tree models. However, these two computer-assisted methods are still time-consuming and labor-intensive, and rely heavily on manual input and manual modeling. For example, matching with rules not only requires a lot of human experience accumulation, but also requires a lot of time to design and maintain the rule base due to the differences in the product objects analyzed by FMECA and the differences in the expression habits of each editor. The knowledge graph solution is suitable for large-scale text analysis and relationship construction tasks, but its online update and online learning capabilities are weak, and a large amount of text input is required to effectively train the model. In small-scale text analysis tasks, the knowledge graph method is not as fast and effective as the method based on the CRF principle.
[0028] Based on this, the embodiment of the present invention proposes a relationship extraction and application method for FMECA documents of aircraft airborne systems. First, based on the standard FMECA table style characteristics, two streaming document data import methods are designed and proposed, which can realize the automatic recognition of various FMECA header forms and support user customization. This method is of great significance for the construction of maintenance and support knowledge graphs for auxiliary single fault modes, the automatic construction of fault trees, and the comprehensive hazard analysis of various components; secondly, a labeling system, entity types, and a rule and conditional relationship system applicable to the FMECA text content of aircraft airborne equipment are provided, a sentence-level relationship extraction method is adopted, a network is constructed with a typical BiLSTM algorithm and a CRF algorithm, and entity recognition, entity type recognition and relationship extraction are realized in combination with the characteristics of FMECA tables; finally, in view of the long development cycle of the current knowledge graph, based on FMECA single fault mode modeling, an application method based on SOP (S is the subject, O is the object, P is the predicate, SOP represents a storage structure of the relationship between entities) and fault mode query is proposed, which supports the tower to provide fault correction suggestions to the crew in a timely manner. The queryable contents include whether the current aircraft can be dispatched and the restrictions, the error correction methods for single fault modes, etc.
[0029] This embodiment discloses a method for extracting and applying relationships from FMECA documents of aircraft airborne systems. The overall process of the method is as follows:
[0030] 1. Streaming document import
[0031] The user selects the doc, docx, xls, xlsx format file to be imported, and uploads it to the backend through the B / S or C / S architecture. The backend automatically imports the file. For the imported streaming document, first identify the document format and read the header information. Due to its unique compilation requirements, the FMECA table has no possibility of nested table objects in the header and content. Therefore, it directly determines whether there are merged cells and reads the header information. Figure 1 As shown in the upper part, for table headers with merged cells, the database form is constructed according to the minimum granularity of the table header. The name of the newly created database table can be temporarily named with a self-incrementing unique identifier, and then replaced by the "component" entity name after the "component" entity name in the table header information is identified in sub-step 1) of step 2. If the business personnel indicate the component code in the table header during the front-end import, the code in the table header information is identified by regular expression matching, and special attention is paid to underlining if the code starts with a number.
[0032] The entity type and entity have different meanings. The entity type indicates the category to which the FMECA table text, such as failure mode and component, belongs, while the entity indicates the specific failure mode.
[0033] In addition to entity extraction, cells inside the table can also be bound to column numbers, which can be regarded as the same meaning.
[0034] Furthermore, according to different document formats, the present invention provides different import methods to improve the import speed. When reading doc and docx, the _cells method of the table object in the docx file is used to identify all cell information of the table as a one-dimensional list data format at one time, and then the table header and content are processed separately.
[0035] In the present invention, it should be noted that the operation after the document is imported is mainly to check whether there are merged cells in the header of the file and read the header information; split the part with merged cells to achieve a one-to-one correspondence between the document header and the data column; first establish an empty table of the FMECA analysis table in the database according to the header information in preparation for subsequent attribute filling. Furthermore, the purpose of checking the document format is to determine whether a cell splitting operation is required. The document format in which the header and the data column correspond one-to-one after the cell splitting can be used for header information reading and FMECA empty table creation. The final processing results obtained after the document is imported are, first, a table with a one-to-one correspondence between the header and the table column, and second, an FMECA empty table established based on the header.
[0036] 2. Relationship Extraction
[0037] Based on expert knowledge, the relationship type, head entity type and tail entity type involved in the text content of the airborne system FMECA are divided using the relationship system shown in Table 1 below. (This system specifies the representation method of the relationship between different entities, and the specific representation form is a triple in the style of (relationship type, head entity type, tail entity type) to facilitate program calls to generate fault trees)
[0038] Table 1 Relationship type, head entity and tail entity table
[0039]
[0040] Since the head and tail entity combinations of each relationship type do not overlap, the relationship extraction task can be simplified into two steps: entity type identification and column number binding of the FMECA header text, and entity extraction and type judgment of the cells inside the table. Among them, type judgment refers to judging which type the relationship between entities belongs to in Table 1 above.
[0041] For example: the IASCA-2A component itself is listed as a failure mode in the Failure Mode column of the FMECA table. The failure cause identified in the Failure Cause column of this row is naturally bound to the "IASCA-2A" failure mode identified in the Failure Mode column as a "mode_cause" SOP triple. This process does not require the use of a relational extraction algorithm, only named entity recognition is required. FMECA tables usually do not have a large number of merged cells, and the unstructured data in a cell often contains only two or three entity categories, so the recognition accuracy of its entity categories can be effectively guaranteed.
[0042] At the same time, since the FMECA table is highly structured, the unstructured part only exists in the paragraph text (within 500 words) description inside the cell. The present invention reasonably utilizes the structure of the FMECA table to avoid problems such as entity overlap and improve the recognition accuracy of the entity. For example, some FMECA tables describe the failure mode and failure mechanism (cause) in the cells of the same column during the sorting process, and the entity categories in the cells of this column may only have the failure mode and failure cause categories.
[0043] Therefore, the present invention uses the field name of the FMECA table as a constraint condition to perform a preliminary screening of all possible fragments obtained by the deep neural network. The fragments that do not meet the field name constraint condition are screened out, and at the same time, the entity recognition tasks of all columns uniformly use the parameters of a deep neural network model to achieve parameter sharing, reducing human participation and model complexity.
[0044] The main part of the deep neural network algorithm adopts BiLSTM bidirectional long short-term memory recurrent neural network as the main body, and the CRF layer is the structure of the output head. The significance of the BiLSTM network is to analyze the semantics and logical association of the text content after word segmentation. The training of the network adopts the method of BERT4 pre-training model: with mask sentence prediction and mask LM as training targets, the MLM occlusion language model is used for training. The parameters of BiLSTM used in the present invention are the optimal parameters for Chinese semantic analysis at present, and the specific training principle and fine-tuning parameter migration method used in this paper are used.
[0045] 1) Entity type identification and column number binding of header text
[0046] First, the text in each header cell is segmented at a fine-grained level using the Jieba tokenizer or the bert4keras tokenizer commonly used in the Chinese word segmentation field. Then, a weight and column number are assigned to each segmented word according to its position in the header, and the strings are concatenated. The words are then input into the entity recognition extraction network, which uses the typical BERT+BiLSTM+CRF structure.
[0047] The present invention provides the following entity types and annotation methods:
[0048] The named entities are annotated using the BIOES annotation method, as shown in Table 2. This step annotates the words extracted to form the entity, marking which item in BIOES the word belongs to, and then used to determine which part the word belongs to later.
[0049] If the failure mode and cause of a cell in the FMECA table are described as follows: "IASC-2: The cause of this failure mode is signal B error", if the neural network is correctly labeled, the initial letter I should be labeled as (B-failure mode); B means beginning, the letter A should be labeled as (I-failure mode), I means in the entity object; the number "2" should be labeled as (E-failure mode), and E means the entity end boundary. "This", "one", "failure", "mode", "of", "cause", "for" should be labeled as (O), O means out of the entity; "letter" should be labeled as (B-failure cause)... The S in BIOES identifies a single word that constitutes an entity.
[0050] Table 2 Entity type and schema table
[0051]
[0052] Furthermore, for the entity extraction network:
[0053] ①First, the text after word segmentation is vectorized through the currently common text vectorization interface - Bert4keras large model. The input model is the weighted word segmentation token, which is processed by Bert4keras and becomes a vector matrix. The matrix consists of n 1024-dimensional vector rows. N is the number of words after the text segmentation. 1024 is the inherent property of the tokenizer.encode interface of Bert4keras itself and cannot be changed. Its meaning is as follows: Each word in the text corresponds to a row of the matrix, that is, a 1024-dimensional one-dimensional vector, which represents the characteristics of this word. In summary, the matrix output by this sub-step is a matrix of n rows * 1024 columns, and then connected to the BiLSTM bidirectional recurrent convolutional network. The fusion of weights is the feature of this patent.
[0054] ② In the second step, the BiLSTM network structure is used to further extract the relationship between words. The output is a matrix with n rows and 49 columns, where 49 means the following: the labeling result of each word can only be one of the 4×12+1=49 (B entity beginning, I entity inside, E entity end, O entity outside, S single word itself is an independent entity).
[0055] ③ Finally, connect the CRF output head to screen the above annotation results. The CRF introduces the weight information in the previous first step, and the computer annotation results are screened again according to the rules in Table 2 to improve the accuracy.
[0056] ④ The parameters of the Bert4keras model are fine-tuned by transfer learning. This means that the original parameters of the Bert4keras model (a public data model trained with hundreds of millions of data) are assigned to the BERT word vectorization network proposed in this patent, and in the subsequent training process, the parameters are fine-tuned through an automated reverse transfer process to make them conform to the analysis object of this patent - the FMECA text of aircraft onboard equipment. The parameters of the CRF network and the BiLSTM network do not need to be transferred and can be directly randomly initialized. Participate in the overall training process.
[0057] The overall model including bert4keras, BiLSTM and CRF network adopts the online update method of network parameters under remote supervision. The network parameters are trained by gradient descent. The classification score directly output by BiLST network is Emission score and the final score after CRF network tuning is Transition score. The overall process is shown in the attached Figure 3 The loss function of the CRF network adopts the mainstream solution at this stage. The loss function is to use the calibrated data (table the semi-structured small text paragraphs in a large number of cells). The data loss function calculation formula is as follows:
[0058] LossFunctino=log(P1,P2,...,P N );
[0059] Where Pi is the sum of the emission and transition scores of the constant e in the i-th annotation path. In order to avoid traversing all annotation situations, obs and previous are used to temporarily store the intermediate variable matrix in the calculation process.
[0060] The following process is the loss calculation for the sentence [w0, w1], entity category and label set {category l1, category l2}.
[0061] Let the current word vector be w0, obs = [x 01 ,x 02 ], previous = None. x01 and x02 are the current emission scores.
[0062] wo->w1,obs=[x 11 ,x 12 ],previous=[x 01 ,x 02 ].
[0063] The previous dimension is expanded and assigned the value: obs expands to
[0064] Among them, t21 is the transmission score when the annotation path from word w0 to word w1 is "category l2->category l1". The same is true for t11, t12, and t22.
[0065] at this time
[0066] After iteration, previous=[log(e x01+x11+t11 +e x02+x11+t21 ),log(e x01+x12+t11 +e x02+x11+t22 )]. If there are three words w0, w1, w2, just repeat the above steps again. The same goes for more words.
[0067] The above loss calculation process can effectively reduce the loss calculation time.
[0068] The above loss calculation and gradient descent process occur during remote supervised training. When in use, the network parameters are directly called to obtain the score and the column number corresponding to each entity fragment and the type of the entity fragment are bound. For example, the column number 2 corresponding to the entity "cause" is bound to the entity category "fault cause". When identifying the two entity categories of components and systems, the present invention will multiply the scores of the corresponding words by their weight coefficients and then compare them to obtain the results that take into account the table structure, and after obtaining the CRF recommendation score, the legality of the results will be checked according to the schema of Table 2.
[0069] 2) Entity recognition of cells inside tables
[0070] A method similar to the entity recognition in the table header is used to identify the entity content of each cell. The recognition algorithm is also implemented by combining BiLSTM with CRF. The difference is that the schema rule adds restrictions. The rule adds restrictions to entity recognition, which are specifically manifested as text composition rules that specify entity names. For example, it specifies what type of vocabulary the starting word of the entity name is, which is used to increase the difficulty of entity recognition. For example: if the column number identifier of the word vector w0 is bound to the entity type, if the column number identifier of the word vector is 1, and column number 1 is bound to the entity category ["fault mode", "fault cause"], then the label of w0 can only be one of [B_fault mode, I_fault mode, E_fault mode, B_fault cause, I_fault mode, E_fault mode]. Add these restrictions to the schema pattern table. See the attached for the rest of the algorithm. Figure 3 .
[0071] After obtaining various entities in a row of non-header content of the FMECA table, various SOP triples are naturally obtained according to Table 1, and the various SOP triples extracted are stored in the relational database.
[0072] 3. Application of SOP triples
[0073] The SOP triples are constructed as fault trees in the form of graphs and provided to relevant designers. This can greatly reduce the time designers spend manually designing fault trees by looking up FMECA tables. Designers only need to improve the fault trees automatically obtained by the system.
[0074] During takeoff and cruising, the tower can find the crew members' corrective measures corresponding to the fault mode based on the constructed SOP triple relationship and provide timely feedback to the crew to reduce the harm of the fault.
[0075] In the description of the present invention, it is necessary to understand that the terms "center", "longitudinal", "lateral", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as an obstacle to the scope of protection of the present invention.
[0076] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "setting", "installation" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0077] The above description is only a preferred embodiment of the present invention and does not constitute any form of hindrance to the present invention. Any simple modification or equivalent changes made to the above embodiments based on the technical essence of the present invention shall fall within the protection scope of the present invention.
Claims
1. A method for extracting and applying relationships from FMECA documents of aircraft airborne systems, characterized in that: The steps include: Step S1. Streaming document import; Step S2. Based on the imported document, perform relation extraction on the FMECA text, including entity type recognition and column number binding of the FMECA header text, as well as entity extraction and type judgment of the internal cells of the table; Step S3: construct the triple SOP extracted in step S2 into a fault tree in the form of a graph.
2. The method for extracting and applying the relationship of an aircraft airborne system FMECA document according to claim 1 is characterized in that: In step S1, for the imported streaming document, the document format is first identified and the header information is read; when there are merged cells in the document header, a database form is constructed according to the minimum granularity of the header.
3. The method for extracting and applying the relationship of an aircraft airborne system FMECA document according to claim 1 is characterized in that: In step S1, for the imported streaming document, when reading the doc and docx formats, the cells method of the table object in the docx file is used to identify all the cell information of the table as a one-dimensional list data format at one time, and then the table header and content are processed separately.
4. The method for extracting and applying the relationship of an aircraft airborne system FMECA document according to claim 1 is characterized in that: In step S2, entity type identification and column number binding of the header text include: The tokenizer of bert4keras is used to segment the text in each header cell at a fine-grained level. Then, a weight and column number are assigned to each segmented word according to its position in the header, and the strings are concatenated. The strings are then input into the entity extraction network based on BERT-BiLSTM-CRF, and the named entities are annotated using the BIOES annotation method.
5. The method for extracting and applying relationships from FMECA documents of aircraft airborne systems according to claim 1 is characterized in that: In step S2, the entity recognition of cells inside the table includes: After word segmentation and extraction of the text content in the cell, each word is input into the tokenizers interface of bert4keras to be processed into a 1024-dimensional word vector, and then the BiLSTM network is used to learn the relationship between them to obtain the score of each word when it is used as each item in BIOES; through the CRF algorithm, each word is arranged and combined to form a pending entity name, and finally the score of each arrangement and combination is obtained according to the schema rules, and the most appropriate combination is selected as the result of entity name recognition.
Citation Information
Cited By
Complex system FMECA-oriented multi-signal flow graph automatic construction technology
CN119807877A
Knowledge expression-based aircraft system fault diagnosis method
CN121456061A
