Entity relationship extraction method and system for aerospace equipment fault

Through preliminary processing and data annotation of the text of aerospace equipment failures, combined with BERT, BiLSTM and CRF models, the problem of data scarcity and concealment in the extraction of entity information about aerospace equipment failures has been solved, and the extraction accuracy and model generalization ability have been significantly improved. .

CN118780276APending Publication Date: 2024-10-15BEIJING PHILISENSE ELECTRONICS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410999424.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult to extract entity information about aerospace equipment failure because the sample data is small, entities are highly concealed, and entity relationships are not obvious, resulting in inaccurate pattern extraction and entity relationship recognition results.

Method used

An entity relationship extraction method for aerospace equipment faults is adopted, including obtaining the fault judgment text and performing preliminary processing, using Stanford CoreNLP for word segmentation and part-of-speech tagging, extracting schemas and performing data annotation, establishing a relationship classification model and a sequence annotation model, and combining BERT and BiLSTM and CRF models, which enhance model generalization capabilities through MLM tasks and noisy data.

Benefits of technology

The generalization ability and extraction accuracy of the model are significantly improved, and the accuracy of entity relationship extraction of aerospace equipment faults is improved, which is reflected in the significant improvement of precision, recall and f1-score.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780276A_ABST
    Figure CN118780276A_ABST
Patent Text Reader

Abstract

The invention discloses an entity relation extraction method for aerospace equipment faults, and relates to the field of entity relation extraction, and the method comprises the following steps: obtaining fault judgment texts, maintenance records and logs of aerospace equipment, carrying out primary processing on all obtained texts, normalizing the obtained texts by using a synonym replacement library, and extracting the fault judgment texts and the maintenance records and logs of the aerospace equipment; the statements are properly adjusted to be more standard, and entity logic is clearer; performing word segmentation and part-of-speech tagging by using a Stanford CoreNLP tool, and cleaning meaningless words; schema is extracted, and data annotation is carried out; the method comprises the steps of establishing a relation classification model, connecting a BiLSTM layer and a CRF layer in front of an output layer of the relation classification model, establishing a sequence labeling model, training the two models, and performing evaluation according to results obtained by the two models after training is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of entity relationship extraction, and in particular to an entity relationship extraction method and system for aerospace equipment failure. Background Art

[0002] In the aerospace field, fault entity relationship analysis is a common method for equipment fault diagnosis and prediction. This method conducts in-depth analysis of the relationships between components, assemblies, and the entirety of a spacecraft system to identify and predict potential failure modes. It provides a basis for preventive maintenance and repair strategies, and optimizes the design, manufacturing, and operation processes of spacecraft to ensure the safety of spacecraft and the successful execution of their missions.

[0003] The main difficulty in extracting entity information of aerospace equipment failure lies in the small sample data, the strong concealment of entities, and the unclear relationship between entities, which brings certain challenges to pattern extraction and entity relationship recognition. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for extracting entity relationships for aerospace equipment failures, so as to solve the problems of difficulty in extracting entity information and inaccurate results caused by small sample data, strong entity concealment and unclear entity relationships.

[0005] The technical solution of the present invention is to provide an entity relationship extraction method for aerospace equipment failure, the method comprising:

[0006] S1. Obtain the fault judgment text, maintenance records and logs of aerospace equipment, and perform preliminary processing on all the obtained texts. By using the synonym replacement library to normalize the obtained texts, the sentences are appropriately adjusted to make them more standardized and the entity logic clearer;

[0007] S2. Use Stanford CoreNLP tools to perform word segmentation and part-of-speech tagging, and clean up meaningless words;

[0008] S3, extract schemas and annotate data;

[0009] S4, establish a relationship classification model, divide the information of the data annotation completed in step S3 into a training set, a validation set and a test set, perform targeted MLM task processing on the training set and the validation set, use the processed training set to train the relationship classification model, use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds, and complete the relationship classification model training;

[0010] S5. Connect the BiLSTM layer and the CRF layer before the output layer of the relation classification model to establish a sequence labeling model, use the training set processed in step S4 to train the relation classification model, use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds, and complete the sequence labeling model training;

[0011] S6. Input the test set into the relation classification model and the sequence labeling model, and evaluate them based on the results obtained respectively.

[0012] In any of the above technical solutions, further, the relation classification model is based on the BERT pre-training model, and some parameters are adjusted, sigmoid_cross_entropy_with_logits is used as the loss function, the input logits are first calculated by the sigmoid function, and then their cross entropy is calculated. The calculation formula of the cross entropy is as follows:

[0013] y = labels;

[0014]

[0015] loss ij =-[y ij *lnp ij +(1-y ij )ln(1-p ij )];

[0016] loss = AVG (loss ij );

[0017] Among them, labels and logits are two-bit data, i and j represent the subscripts of logits data, and the final loss calculation result takes the mean of each dimension;

[0018] Adam is selected as the optimizer of the model to minimize the loss function and improve the performance of the model.

[0019] In any of the above technical solutions, further, performing targeted MLM task processing on the training set and the validation set includes:

[0020] 80% of the data is marked out and replaced with the [MASK] token to solve the gap problem between pre-training and fine-tuning. Half of the remaining 20% ​​of the data is randomly selected and replaced with text from the same field as noise data to enhance the generalization ability of the model. The noise data can also be used as an entity supplement in the original corpus.

[0021] In any of the above technical solutions, further, the BiLSTM layer of the sequence labeling model includes two parts: a forward LSTM and a backward LSTM. Each LSTM unit includes an input gate, a forget gate, and an output gate, and can capture long-term dependencies in sequence data. The CRF layer performs sequence labeling on the output encoding of the BiLSTM layer, and obtains an output result after processing by a softmax function. The softmax function is defined as follows:

[0022]

[0023] Among them, z i is the output value of the ith node, and C is the number of output nodes, that is, the number of classification categories.

[0024] The beneficial effects of the present invention are:

[0025] The technical solution in the present invention enhances the original data through word segmentation, part-of-speech tagging, data tagging and targeted MLM task processing on the training set and the verification set, thereby improving the generalization ability and extraction accuracy of the model; the present invention adopts a model structure combining BERT, BiLSTM and CRF, uses BERT for pre-training, BiLSTM captures long-term dependencies in sequence data, and CRF is used for sequence tagging, which effectively improves the comprehensive performance of the model; through comparative experiments, it can be seen that the precision, recall and f1-score on the training set and the verification set are significantly improved, which proves the effectiveness of this method in the extraction of entity relationships of aerospace equipment faults. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The advantages of the above and additional aspects of the present invention will become apparent and easily understood in the description of the embodiments in conjunction with the following drawings, in which:

[0027] Figure 1 It is a schematic flow chart of an entity relationship extraction method for aerospace equipment failure according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0029] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0030] like Figure 1 As shown, this embodiment provides an entity relationship extraction method for aerospace equipment failure, the method comprising:

[0031] S1. Obtain the fault judgment text, maintenance records and logs of aerospace equipment, and perform preliminary processing on all the obtained texts. By using the synonym replacement library to normalize the obtained texts, the sentences are appropriately adjusted to make them more standardized and the entity logic clearer.

[0032] Specifically, the fault judgment text of aerospace equipment includes: temperature, pressure, vibration and other parameters recorded by sensors and monitoring equipment equipped on the spacecraft; flight attitude, thrust, fuel consumption and other data recorded by the flight data recorder; relevant data recorded by the ground monitoring system during real-time monitoring of the spacecraft through radar, satellite communications and other means; and investigation reports provided by aerospace agencies after a detailed investigation of the accident.

[0033] Because there are many data sources, there will be inconsistent use of proprietary terms. According to the pre-made synonym replacement library, all synonyms are replaced with the same noun. For example, "integrated control unit" or "single control console" is replaced with "integrated control unit", and "clothing" or "driving clothes" is replaced with "driving clothes".

[0034] Appropriate adjustments are made to the statements manually, for example, "The hub station issues a 100V power transmission command A, but the power transmission indicator light on the dispatching desk is not lit" is changed to "The hub station completes the 100V power transmission and issues a command A, but the power transmission indicator light on the dispatching desk is not lit" to highlight the relationship between entities.

[0035] S2. Use the jieba tool to segment the text, clean up meaningless words, and then use the StanfordCoreNLP tool to tag the parts of speech of the segmented words.

[0036] In practice, we found that Stanford CoreNLP is better than Jieba in terms of accuracy of part-of-speech tagging, but Stanford CoreNLP cannot make custom lexicons. If we only use the Stanford CoreNLP tool to segment the criteria, "center computer" will be segmented into "center" and "computer", and "driving clothing" will be segmented into "driving" and "clothing"; therefore, combining the advantages of both, we first use the Jieba tool with complete word segmentation capabilities to segment words, clean up meaningless words, and then use the Stanford CoreNLP tool with higher part-of-speech tagging accuracy to perform part-of-speech tagging.

[0037] Take the sentence "The switch of the central computer is set to "main", and the cable data transmission of the driving suit fails" as an example. After inputting it into the Stanford CoreNLP tool, the output result is:

[0038] [{"word": "Central computer", "pos": "NN"},

[0039] {"word": "of", "pos": "MD"},

[0040] {"word": "switch", "pos": "NN"},

[0041] {"word": "placed in", "pos": "VV"},

[0042] {"word": "“", "pos": "PU"},

[0043] {"word": "main", "pos": "JJ"},

[0044] {"word": "”", "pos": "PU"},

[0045] {"word": ",", "pos": "PU"},

[0046] {"word": "driving suit", "pos": "VV"},

[0047] {"word": "wired data", "pos": "NN"},

[0048] {"word": "failed to download", "pos": "VV"},

[0049] {"word": ".", "pos": "PU"}]

[0050] Among them, NN, MD, VV, etc. indicate the part of speech of the word.

[0051] Then, clean the above meaningless words. The meaningless words include: stop words listed in the stop word list, such as "is", "of", "in", and the stop word list is pre-organized; special symbols, such as punctuation marks, spaces, garbled characters, etc. The cleaning will also convert all text to lowercase for subsequent processing.

[0052] S3. Extract schemas and perform data annotation.

[0053] S4. Establish a relationship classification model, split the information with data annotation completed in step S3 into a training set, a validation set, and a test set, perform targeted processing on the training set and the validation set for the MLM task, use the processed training set to train the relationship classification model, and adjust the learning rate of the optimizer using the processed validation set every certain number of training rounds to complete the training of the relationship classification model.

[0054] The relation classification model is based on the BERT pre-trained model chinese_L-12_H-768_A-12, and the following parameters are adjusted as shown in Table 1.

[0055] Table 1

[0056]

[0057] The relational classification model uses sigmoid_cross_entropy_with_logits as the loss function. The input logits are first calculated by the sigmoid function, and then their cross entropy is calculated. This embodiment optimizes the calculation method of the cross entropy so that the result does not overflow. The output shape of the output result is the same as that of logits. The calculation formula is as follows:

[0058] y = labels;

[0059]

[0060] loss ij =-[y ij *lnp ij +(1-y ij )ln(1-p ij )];

[0061] loss = AVG (loss ij );

[0062] Among them, labels and logits are two-bit data, i and j represent the subscripts of logits data, and the final loss calculation result is the mean of each dimension.

[0063] Adam is selected as the optimizer for the relational classification model to minimize the loss function and improve the performance of the model.

[0064] In order to use large models to achieve ideal results, a large amount of corpus must be supported, and this also places requirements on the quality of the corpus. This is precisely the shortcoming of the aerospace field, where there is little corpus and the entity information is not obvious.

[0065] Through steps S1-S3, the original data is sorted and enhanced to a certain extent, and then the data is further optimized considering the matching degree between the data and the large model.

[0066] When the BERT model performs the MLM (Mask Language Model) task, the corpus has the [MASK] flag. However, in actual transfer learning, the text input in step S3 does not contain the [MASK] flag, which causes a gap between pre-training and fine-tuning (referring to the performance gap in the model prediction process).

[0067] Targeted processing of the training set and validation set for the MLM task includes:

[0068] 80% of the data is marked out and replaced with [MASK] token to solve the gap problem between pre-training and fine-tuning. Half of the remaining 20% ​​of the data is randomly selected and replaced with knowledge base words in the same field as noise data to enhance the generalization ability of the model. The noise data can also be used as a supplement to the entities in the original corpus, which improves the hidden nature of the entities to a certain extent.

[0069] S5. Connect the BiLSTM layer and the CRF layer before the output layer of the relational classification model to establish a sequence labeling model. Use the training set processed in step S4 to train the relational classification model. Use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds to complete the sequence labeling model training.

[0070] The BiLSTM layer consists of two parts: the forward LSTM and the backward LSTM. Each LSTM unit includes an input gate, a forget gate, an output gate, etc., which can capture the long-term dependencies in the sequence data. The CRF (conditional random field) layer performs sequence labeling on the output encoding of the BiLSTM layer and obtains the output result after processing by the softmax function. The softmax function is defined as follows:

[0071]

[0072] Among them, z i is the output value of the ith node, and C is the number of output nodes, that is, the number of categories. The softmax function can be used to convert the output values ​​of multiple categories into a probability distribution ranging from [0, 1] and 1.

[0073] The sequence labeling model uses sigmoid_cross_entropy_with_logits as the loss function, and the optimizer selects Adam.

[0074] S6. Input the test set into the relation classification model and the sequence labeling model, and evaluate them based on the results obtained respectively.

[0075] In another embodiment of the present invention, the comprehensive prediction performance of the above-mentioned relational classification model and sequence labeling model is evaluated using three indicators: precision, recall, and f1-score. The operating system of the evaluation environment is CentOS, the graphics card is RTX 3090, the python version is 3.7, and the tensorflow is 1.5.0.

[0076] Using real data and processing according to the above process, we obtained 1432 original aerospace equipment fault criteria and extracted 21 schemas. After data enhancement, there are 24372 aerospace equipment fault criteria.

[0077] The present invention has two improvements over the prior art. One is to enhance the original data by using word segmentation, part-of-speech tagging, data tagging, and targeted MLM task processing on the training set and the validation set. The other is to replace the adjustment parameters of the LSTM model used to capture the long-term and short-term dependencies of the data with the BiLSTM model. The original data and the LSTM model are used to perform an evaluation. The results are shown in Table 2 below:

[0078] Table 2

[0079]

[0080] This experiment also conducted the following control groups. One group used BERT, BiLSTM, and CRF modeling to compare the original criterion modeling evaluation results and the evaluation results after data enhancement; the other group used data enhancement to compare the evaluation results of BERT, BiLSTM, CRF modeling and BERT, LSTM, CRF modeling.

[0081] The results of the first group are shown in Table 3 below.

[0082] Table 2

[0083]

[0084] It can be seen that under the premise of using the same model BERT, BiLSTM, and CRF, the generalization results of the model after data enhancement, whether in the training set or the validation set, are significantly improved compared with the modeling results based on the original criteria through the comparison of precision, f1-score, and recall. In the training set, precision is improved by 94.1%, f1-score is improved by 90.8%, and recall is improved by 120.5%; in the validation set, precision is improved by 94.9%, f1-score is improved by 104.1%, and recall is improved by 129.3%, proving that the data enhancement method used in the present invention can significantly increase the comprehensive effect of the model.

[0085] The results of the second group are shown in Table 3 below.

[0086] Table 3

[0087]

[0088] It can be seen that under the premise of using data after data enhancement, the comparison between the models BERT, LSTM, CRF and the models BERT, BiLSTM, CRF shows that the improvement of each indicator of the models BERT, BiLSTM, CRF is small compared with the models BERT, LSTM, and CRF, whether in the training set or the verification set. In the training set, the precision is improved by 1.1%, the f1-score is improved by 7.4%, and the recall is improved by 1.6%; in the verification set, the precision is improved by 2.4%, the f1-score is improved by 2.2%, and the recall is improved by 9.4%, indicating that the models BERT, BiLSTM, and CRF used in this patent are slightly improved compared with BERT, LSTM, and CRF. However, in terms of model training time, the models BERT, BiLSTM, and CRF take 3.1 hours longer than the models BERT, LSTM, and CRF. As the amount of data increases, the training time difference will also increase, so the time cost issue must also be considered.

[0089] In another embodiment of the present invention, the POST interface is used to implement the transcription of the above two models, thereby realizing model deployment.

[0090] For example, the user inputs "the bus station 100V power supply A command is issued, and the power supply indicator light on the dispatch desk is not on."

[0091] POST interface call: post(url="****","s=api / ***",params=param_data,json=data), where post is the interface call type, url is the interface call address, s is the interface name, params is the input parameter group, and json is the Json string entered by the user above.

[0092] Output example: {"text":"1. The bus station 100V power supply A command was issued, but the power supply indicator light on the dispatch desk did not light up.","spo_list":[{"object_type":"fault","predicate":"problem","object":"not lit","subject_type":"equipment","subject":"indicator light"},{"object_type":"sub-equipment","equipment":"sub-equipment","object":"indicator light on","subject_type":"equipment","subject":"dispatcher desk"}],"code":0}.

[0093] In summary, the present invention provides an entity relationship extraction method for aerospace equipment failures, the method comprising:

[0094] S1. Obtain the fault judgment text, maintenance records and logs of aerospace equipment, and perform preliminary processing on all the obtained texts. By using the synonym replacement library to normalize the obtained texts, the sentences are appropriately adjusted to make them more standardized and the entity logic clearer.

[0095] S2. Use the Stanford CoreNLP tool to perform word segmentation and part-of-speech tagging, and clean up meaningless words.

[0096] S3, extract schemas and annotate data.

[0097] S4. Establish a relationship classification model, divide the information of data annotation completed in step S3 into a training set, a validation set and a test set, perform targeted MLM task processing on the training set and the validation set, use the processed training set to train the relationship classification model, use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds, and complete the relationship classification model training.

[0098] S5. Connect the BiLSTM layer and the CRF layer before the output layer of the relational classification model to establish a sequence labeling model. Use the training set processed in step S4 to train the relational classification model. Use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds to complete the sequence labeling model training.

[0099] S6. Input the test set into the relation classification model and the sequence labeling model, and evaluate them based on the results obtained respectively.

[0100] The steps in the present invention can be adjusted in order, combined or deleted according to actual needs.

[0101] The units in the device of the present invention can be combined, divided and deleted according to actual needs.

[0102] Although the present invention is disclosed in detail with reference to the accompanying drawings, it should be understood that these descriptions are merely exemplary and are not intended to limit the application of the present invention. The scope of protection of the present invention is defined by the appended claims and may include various modifications, alterations and equivalents made to the invention without departing from the scope and spirit of the present invention.

Claims

1. A method for extracting entity relations for aerospace equipment failures, characterized in that: The method comprises: S1. Obtain the fault judgment text, maintenance records and logs of aerospace equipment, and perform preliminary processing on all the obtained texts. By using the synonym replacement library to normalize the obtained texts, the sentences are appropriately adjusted to make them more standardized and the entity logic clearer; S2. Use Stanford CoreNLP tools to perform word segmentation and part-of-speech tagging, and clean up meaningless words; S3, extract schemas and annotate data; S4, establish a relationship classification model, divide the information of the data annotation completed in step S3 into a training set, a validation set and a test set, perform targeted MLM task processing on the training set and the validation set, use the processed training set to train the relationship classification model, use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds, and complete the relationship classification model training; S5. Connect the BiLSTM layer and the CRF layer before the output layer of the relation classification model to establish a sequence labeling model, use the training set processed in step S4 to train the relation classification model, use the processed validation set to adjust the learning rate of the optimizer after a certain number of training rounds, and complete the sequence labeling model training; S6. Input the test set into the relation classification model and the sequence labeling model, and evaluate them based on the results obtained respectively.

2. The entity relationship extraction method for aerospace equipment failure according to claim 1 is characterized in that: The relationship classification model is based on the BERT pre-training model, and some parameters are adjusted. The sigmoid_cross_entropy_with_logits is used as the loss function. The input logits are first calculated by the sigmoid function, and then their cross entropy is calculated. The calculation formula of the cross entropy is as follows: y = labels; loss ij =-[y ij *lnp ij +(1-y ij )ln(1-p ij )]; loss=AVG(loss ij ); Among them, labels and logits are two-bit data, i and j represent the subscripts of logits data, and the final loss calculation result takes the mean of each dimension; Adam is selected as the optimizer of the model to minimize the loss function and improve the performance of the model.

3. The entity relationship extraction method for aerospace equipment failure according to claim 1 is characterized in that: Targeted processing of the training set and validation set for the MLM task includes: 80% of the data is marked out and replaced with the [MASK] token to solve the gap problem between pre-training and fine-tuning. Half of the remaining 20% ​​of the data is randomly selected and replaced with text from the same field as noise data to enhance the generalization ability of the model. The noise data can also be used as an entity supplement in the original corpus.

4. The entity relationship extraction method for aerospace equipment failure according to claim 1 is characterized in that: The BiLSTM layer of the sequence labeling model includes two parts: forward LSTM and backward LSTM. Each LSTM unit includes an input gate, a forget gate, and an output gate, which can capture the long-term dependencies in the sequence data. The CRF layer performs sequence labeling on the output encoding of the BiLSTM layer and obtains the output result after processing by the softmax function. The softmax function is defined as follows: Among them, z i is the output value of the ith node, and C is the number of output nodes, that is, the number of classification categories.

Citation Information

Cited By

  • Construction method, device and equipment of aero-engine fault data extraction model

    CN119226378A