Title construction method of aviation finished product fault detection text

By cleaning and feature extraction of the aviation finished product fault inspection text, improving the K-means clustering algorithm, and constructing semantic group titles, the problem of low recognition of proper nouns in the existing technology is solved, and the text in the aviation finished product fault inspection is improved. Analyze accuracy and robustness.

CN118780274APending Publication Date: 2024-10-15NANCHANG HANGKONG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology has low recognition of proper nouns in aviation finished product fault inspection and cannot achieve high robustness, resulting in insufficient efficiency and accuracy in constructing fault description text titles.

Method used

By obtaining the aviation finished product fault inspection text, cleaning and preprocessing, semantic features and statistical features are extracted to form a text representation, and the K-means text clustering algorithm is improved to construct semantic clusters, extract keywords to form annotated semantic cluster titles, and improve professional performance. There is noun recognition and method robustness.

Benefits of technology

It realizes the semantic group title annotation of fault text under unsupervised conditions in aviation finished product fault inspection, improves the recognition of proper nouns and the robustness of the method, and improves the accuracy and efficiency of text analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780274A_ABST
    Figure CN118780274A_ABST
Patent Text Reader

Abstract

The invention discloses a title construction method for an aviation finished product fault detection text, and the method comprises the steps: S1, obtaining an aviation finished product fault detection text, and forming an original text data set; s2, cleaning and preprocessing the original text data set to obtain a processed data set; s3, extracting semantic features and statistical features of the processed data set, and splicing the semantic features and the statistical features to form text representation; s4, improving a Kmeans text clustering algorithm on the basis of text representation, and constructing a semantic class group through the improved Kmeans text clustering algorithm; and S5, extracting keywords based on the semantic class groups, and forming annotated semantic class group titles according to the keywords. According to the method, the identification of proper nouns in aviation finished product fault detection can be improved, and the robustness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of natural language processing, and in particular to a method for constructing a title of an aviation finished product fault inspection text. Background Art At present, the construction of text semantic group titles is a basic and important technology in the field of natural language processing, and is applied to many aspects of industrial production. In the inspection of aviation finished product failures, it is necessary to judge the fault description and mark its type. This work is a very important and tedious task. Therefore, how to use an accurate and efficient means to construct titles for these fault description texts to assist the work is a critical and significant task.

[0002] In the related art, although there are text recognition and type determination methods for some specific fields, these methods have very low recognition for many proper nouns and cannot achieve strong robustness. Summary of the invention

[0003] The purpose of the present invention is to provide a method for constructing a title of an aviation finished product fault inspection text, so as to improve the recognition of proper nouns in the aviation finished product fault inspection and enhance the robustness.

[0004] A method for constructing a title of an aviation finished product fault inspection text comprises the following steps: S1, obtain the aviation finished product fault inspection text to form the original text data set; S2, cleaning and preprocessing the original text data set to obtain a processed data set; S3, extracting semantic features and statistical features of the processed data set, and concatenating the semantic features and statistical features to form a text representation; S4, improve the Kmeans text clustering algorithm based on text representation, and construct semantic clusters through the improved Kmeans text clustering algorithm; S5, extract keywords based on semantic clusters, and form annotated semantic cluster titles based on the keywords.

[0005] According to the title construction method of aviation finished product fault inspection text provided by the present invention, text analysis is performed on the text data set in the field of aviation finished product faults, multi-dimensional semantic features including semantic dimensions and statistical dimensions are extracted and integrated to form a more representative semantic vector, and the traditional kmeans clustering algorithm is improved in a targeted manner. It can realize the semantic group title annotation of fault text under unsupervised conditions, improve the recognition of proper nouns in aviation finished product fault inspection, and enhance the robustness of the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1The present invention is a flowchart of a method for constructing a title of an aviation finished product fault inspection text. DETAILED DESCRIPTION

[0007] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0008] See also Figure 1 The embodiment of the present invention provides a method for constructing a title of an aviation finished product fault inspection text, comprising steps S1 to S5: S1, obtain the aviation finished product fault inspection text to form the original text dataset.

[0009] Specifically, the original text data set includes the name of the faulty product, the fault location, the fault phenomenon, and the fault degree in the aviation finished product fault inspection text.

[0010] Among them, the fault description texts in the aviation finished product manufacturing process are collected. In the aviation finished product manufacturing process, relevant personnel will record the finished product failure information such as product name, fault location, fault phenomenon, fault degree, etc. to form production records or quality inspection record data. By uniformly collecting and collating such data, a series of original fault description text data sets of different finished products, different locations, and different fault types can be obtained. Such fault description texts often have a sentence length of 15-150 characters and belong to short text data sets.

[0011] S2, cleans and preprocesses the original text dataset to obtain the processed dataset.

[0012] Wherein, step S2 specifically includes: The target string in the original text dataset is detected and modified to a replacement string, retaining the text information to the greatest extent (the stop word filtering stage will remove most non-Chinese characters), while assisting the model to understand the original semantics of the text, as shown in Table 1: Table 1

[0013] Based on the word segmentation tool, the text in the replacement special string is segmented to obtain the segmented words. During the word segmentation process, the stop word library and the user word library are configured, and the full-mode combined word segmentation is adopted in the word segmentation process. Multiple word segmentation tools are used to perform full-mode word segmentation on the same fault description text, and the intersection of the word segmentation results is taken.

[0014] Part of the user vocabulary is shown in Table 2: Table 2

[0015] The word segmentation tools used include jieba, pukseg, and ltp. Multiple word segmentation tools are used to perform full-mode word segmentation on the same fault description text, and the intersection of the word segmentation sequence results is taken to retain most of the potential domain terms.

[0016] S3, extracting the semantic features and statistical features of the processed data set, and concatenating the semantic features and statistical features to form a text representation.

[0017] Among them, in step S3, the semantic features of the processed data set are extracted, specifically including: The words in the processed dataset are converted into 128-dimensional word embeddings through the Word2Vec word embedding model; Based on the 128-dimensional word embedding, the position information of the words is modeled to obtain the relative position embedding of the words. The formula is as follows: ; ; in, Relative position embedding of even-numbered words, Relative position embedding of odd-numbered words, POS Indicates the position of a word in a sentence. p represents the word vector dimension, and d represents the dimension of the relative position embedding of the word; Concatenate the 128-dimensional word embedding and the relative position embedding of the words to obtain the Transformer input of the fault text; After the Transformer input of the fault text is trained through the encoding and decoding structure, the average of all hidden states is taken through average pooling to obtain the average hidden state, and then the average hidden state is used as the 128-dimensional sentence vector output by the Transformer; The parts of speech of all segmented words are arranged in the original order of the sentence, and the arranged parts of speech are converted into vectors. Based on the principal component analysis algorithm, the dimensions are uniformly reduced to 32 dimensions, and then concatenated with the 128-dimensional sentence vector output by Transformer into a 160-dimensional vector. The 160-dimensional vector is used as the semantic feature of the processed data set.

[0018] Among them, in step S3, extracting statistical features of the processed data set specifically includes: For each fault text in the processed data set, the Word2Vec word embedding model is trained to 128 dimensions, and then the TF-IDF calculation method is used to calculate the result. N w The TF-IDF vector is then reduced to a 64-dimensional vector based on the principal component analysis algorithm, and the 64-dimensional vector is used as the statistical feature of the processed data set.

[0019] Among them, the TF-IDF calculation method satisfies the following conditional formula: ; ; ; in, Indicates the i-th word t i The importance of The larger the value of , the more it tends to filter out common words and retain important words; Indicates the i-th word t i In the documentation d j The frequency of occurrence in Indicates the i-th word t i In the documentation d j The number of times it appears in Represents the kth word t k In the documentation d j The number of times it appears in N Representation Document d j The total number of non-repeated words in the Represents the inverse document frequency of the i-th word. If it contains the word t i The fewer documents there are, The larger the value, the better the ability of distinguishing categories of words. Represents the number of all documents, Indicates that it contains the i-th word t i The number of documents.

[0020] Finally, the semantic features and statistical features are concatenated to obtain a 224-dimensional vector as text representation.

[0021] S4, improves the Kmeans text clustering algorithm based on text representation, and constructs semantic clusters through the improved Kmeans text clustering algorithm.

[0022] When clustering fault description texts, the existing Kmeans text clustering algorithm tends to cluster together texts that are similar but have low semantic relevance. This problem is clearly exposed in the distance between the samples within the class and the class center. The above distance distribution of the samples of the class with poor clustering effect is relatively discrete. The present invention improves the Kmeans text clustering algorithm.

[0023] Among them, in step S4, the loss function of the improved Kmeans text clustering algorithm is for: ; ; ; represents the error square sum loss function; represents the sample distribution loss function, To a certain extent, it can control the discrete degree of samples within the cluster, making the clustering results more realistic; Indicates v samples, express The center point of the cluster to which it belongs, M represents the total number of samples, represents the intra-class mean, m Indicates the number of samples within a class.

[0024] In addition, in the loss function Based on this, a dynamic clustering threshold is set for the clusters c , distance cluster c The center distance is greater than the dynamic clustering threshold The samples are discarded and are not considered as clusters. c The dynamic clustering threshold Calculated by the following formula: ; in, , , , Respectively represent cluster 1, cluster 2, and cluster m , cluster c The number of samples within a class.

[0025] Improved Kmeans clustering algorithm and dynamic clustering threshold The adjusted clustering results, where each fault cluster will be considered as a final independent semantic group.

[0026] S5, extract keywords based on semantic clusters, and form annotated semantic cluster titles based on the keywords.

[0027] Wherein, step S5 specifically includes: For the fault description text within the semantic group, obtain the sentence vector corresponding to the fault description text. The expression is as follows: ; in, For the semantic group clu The sentence vector corresponding to the fault description text; The sentence vector representing the target text o The word vectors correspond to each word, and the target text refers to the fault description text sentence currently being processed; for The number of words in Based on the sentence vector corresponding to the fault description text, the text connection weight of the target word is calculated. The expression is as follows: ; in, Indicates the textual connection weight of the target word, where the target word refers to the word in the fault description text currently being processed; W Word vectors representing the target text; Calculate the position weight of the word, the expression is as follows: ; in, represents the position weight of the word, Indicates the number of fault description texts in the semantic group, Indicates the first key Non-repeated words in clu The order in which the sentence fault description text first appears; Based on the textual connection weight of the target word and the position weight of the word, the total weight of the non-repeated words is calculated, and the expression is as follows: ; in, Indicates key The total weight of non-repeated words, Indicates the number of non-repeated words in a semantic group; The non-repeating words are sorted in descending order according to the total weight, the non-repeating words with the first preset number of digits are taken as keywords, and the keywords are concatenated to obtain the labeled semantic group title.

[0028] In summary, according to the title construction method of aviation finished product fault inspection text provided by the present invention, text analysis is performed on the text data set in the field of aviation finished product faults, multi-dimensional semantic features including semantic dimensions and statistical dimensions are extracted and integrated to form a more representative semantic vector, and the traditional kmeans clustering algorithm is improved in a targeted manner. It can realize the semantic group title annotation of fault text under unsupervised conditions, improve the recognition of proper nouns in aviation finished product fault inspection, and enhance the robustness of the method.

[0029] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0030] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for constructing a title of an aviation finished product fault inspection text, characterized in that: The following steps are involved: S1, obtain the aviation finished product fault inspection text to form the original text data set; S2, cleaning and preprocessing the original text data set to obtain a processed data set; S3, extracting semantic features and statistical features of the processed data set, and concatenating the semantic features and statistical features to form a text representation; S4, improve the Kmeans text clustering algorithm based on text representation, and construct semantic clusters through the improved Kmeans text clustering algorithm; S5, extract keywords based on semantic clusters, and form annotated semantic cluster titles based on the keywords.

2. The title construction method of the aviation finished product fault inspection text according to claim 1 is characterized in that: The original text data set includes the name of the faulty product, the fault location, the fault phenomenon, and the fault degree in the aviation finished product fault inspection text.

3. The title construction method of the aviation finished product fault inspection text according to claim 1 is characterized in that: Step S2 specifically includes: Detect the target string in the original text dataset and modify the detected target string to a replacement string; Based on the word segmentation tool, the text in the replacement special string is segmented to obtain the segmented words. During the word segmentation process, the stop word library and the user word library are configured, and the full-mode combined word segmentation is adopted in the word segmentation process. Multiple word segmentation tools are used to perform full-mode word segmentation on the same fault description text, and the intersection of the word segmentation results is taken.

4. The title construction method of the aviation finished product fault inspection text according to claim 1 is characterized in that: In step S3, the semantic features of the processed data set are extracted, specifically including: The words in the processed dataset are converted into 128-dimensional word embeddings through the Word2Vec word embedding model; Based on the 128-dimensional word embedding, the position information of the words is modeled to obtain the relative position embedding of the words. The formula is as follows: ; ; in, Relative position embedding of even-numbered words, Relative position embedding of odd-numbered words, POS Indicates the position of a word in a sentence. p represents the word vector dimension, and d represents the dimension of the relative position embedding of the word; Concatenate the 128-dimensional word embedding and the relative position embedding of the words to obtain the Transformer input of the fault text; After the Transformer input of the fault text is trained through the encoding and decoding structure, the average of all hidden states is taken through average pooling to obtain the average hidden state, and then the average hidden state is used as the 128-dimensional sentence vector output by the Transformer; The parts of speech of all segmented words are arranged in the original order of the sentence, and the arranged parts of speech are converted into vectors. Based on the principal component analysis algorithm, the dimensions are uniformly reduced to 32 dimensions, and then concatenated with the 128-dimensional sentence vector output by Transformer into a 160-dimensional vector. The 160-dimensional vector is used as the semantic feature of the processed data set.

5. The method for constructing a title of an aviation finished product fault inspection text according to claim 4, characterized in that: In step S3, the statistical features of the processed data set are extracted, specifically including: For each fault text in the processed data set, the Word2Vec word embedding model is trained to 128 dimensions, and then the TF-IDF calculation method is used to calculate the result. N w The TF-IDF vector is then reduced to a 64-dimensional vector based on the principal component analysis algorithm, and the 64-dimensional vector is used as the statistical feature of the processed data set.

6. The method for constructing a title of an aviation finished product fault inspection text according to claim 5, characterized in that: The TF-IDF calculation method satisfies the following conditions: ; ; ; in, Indicates the i-th word t i The importance of Indicates the i-th word t i In the documentation d j The frequency of occurrence in Indicates the i-th word t i In the documentation d j The number of times it appears in Represents the kth word t k In the documentation d j The number of times it appears in N Representation Document d j The total number of non-repeating words in represents the inverse document frequency of the i-th word, Represents the number of all documents, Indicates that it contains the i-th word t i The number of documents.

7. The method for constructing a title of an aviation finished product fault inspection text according to claim 6, characterized in that: In step S4, the loss function of the improved Kmeans text clustering algorithm is for: ; ; ; represents the error squared sum loss function, represents the sample distribution loss function, Indicates v samples, express The center point of the cluster to which it belongs, M represents the total number of samples, represents the intra-class mean, m Indicates the number of samples within the class; In addition, in the loss function Based on this, a dynamic clustering threshold is set for the clusters c , distance cluster c The center distance is greater than the dynamic clustering threshold The samples are discarded and are not considered as clusters. c The dynamic clustering threshold Calculated by the following formula: ; in, , , , Respectively represent cluster 1, cluster 2, and cluster m , cluster c The number of samples within a class.

8. The method for constructing a title of an aviation finished product fault inspection text according to claim 7, characterized in that: Step S5 specifically includes: For the fault description text within the semantic group, obtain the sentence vector corresponding to the fault description text. The expression is as follows: ; in, For the semantic group clu The sentence vector corresponding to the fault description text, The sentence vector representing the target text o The corresponding word vectors of words are for The number of words in Based on the sentence vector corresponding to the fault description text, the text connection weight of the target word is calculated. The expression is as follows: ; in, represents the textual connection weight of the target word, W Word vectors representing the target text; Calculate the position weight of the word, the expression is as follows: ; in, represents the position weight of the word, Indicates the number of fault description texts in the semantic group, Indicates the first key Non-repeated words in clu The order in which the sentence fault description text first appears; Based on the textual connection weight of the target word and the position weight of the word, the total weight of the non-repeated words is calculated, and the expression is as follows: ; in, Indicates key The total weight of non-repeated words, Indicates the number of non-repeated words in a semantic group; The non-repeating words are sorted in descending order according to the total weight, the non-repeating words with the first preset number of digits are taken as keywords, and the keywords are concatenated to obtain the labeled semantic group title.