A method and system for named entity recognition and reorganization of automobile system fault knowledge graph

By removing redundant information and semantic extraction, combined with a multi-strategy dynamic weighted identification model, the fault location and failure form entities in the automobile fault data are identified and reorganized, solving the problem of named entity identification in the existing technology and improving the accuracy of fault analysis. nature and completeness of the knowledge graph.

CN118428368BActive Publication Date: 2024-10-22CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410543664.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-10-22
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

There is redundancy, diversity and unstructuredness in the existing automobile fault data text, which makes it difficult for the named entity recognition method to extract fault phenomena and fault causes efficiently, accurately and completely, especially the processing capabilities of complex fault descriptions are insufficient.

Method used

By obtaining the original text of the processing result field in the automobile fault data, removing redundant information, performing semantic extraction, using a multi-strategy dynamic weighting recognition model to process the semantic position vector, identifying and reorganizing the fault location and failure form entities, and constructing an automobile system. Fault knowledge graph.

Benefits of technology

It improves the speed and accuracy of named entity recognition, is suitable for named entity recognition of complex sentence structures, enhances the integrity and reliability of the knowledge graph, and provides richer and more accurate information for fault analysis and diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428368B_ABST
    Figure CN118428368B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for recognizing and reorganizing named entities in an automobile system fault knowledge graph, the method comprising: obtaining an original text set of a processing result field in an automobile fault data set; removing redundant information in the original text set to obtain a preprocessed text set; performing semantic extraction on the preprocessed text set to obtain a semantic position vector set; processing the semantic position vector of each preprocessed text using a multi-strategy dynamic weighted recognition model to identify the fault part entity and failure form entity in each preprocessed text; reorganizing the fault part entity and failure form entity of each preprocessed text, and using each reorganized result as a named entity in an automobile system fault knowledge graph. The present invention accelerates the speed and accuracy of named entity recognition, completely extracts named entities, and can be applied to named entity recognition of complex sentence structures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of knowledge graph technology, and in particular to a method and system for recognizing and reorganizing named entities in a knowledge graph of automobile system failures. Background Art

[0002] A knowledge graph is a semantic network that reveals the relationships between entities and can formally describe real-world affairs and their relationships. A knowledge graph consists of multiple triples, and the general structure of a triple is "entity-relationship-entity" or "entity-attribute value".

[0003] Existing automobile fault data sets usually include fields such as automobile type and processing results. Since the content of the processing result field is closely related to the fault, most of them are based on the content of the processing result field to build the automobile system fault knowledge graph. The entities of the constructed automobile system fault knowledge graph generally include fault location, failure form, fault phenomenon and fault cause. Among them, fault phenomenon and fault cause are named entities, and accurate named entities can improve the accuracy of the knowledge graph. Therefore, whether the named entities such as fault phenomenon and fault cause can be accurately and completely extracted from the content of the processing result field of the automobile fault data set is the key to building the automobile fault diagnosis knowledge graph.

[0004] Compared with the text in general fields, the field content of the processed result of the automobile fault dataset has the following characteristics:

[0005] First, redundancy: The content of the processing result field includes multiple aspects such as fault description, troubleshooting process, fault cause, replacement parts, etc., but in fact, the troubleshooting process and replacement parts do not contribute much to the extraction of named entities, resulting in information redundancy in the content of the processing result field;

[0006] The second is diversity and large amounts of data: the processing result fields contain many professional terms, and the use of conventional word segmentation tools may lead to inaccurate entity recognition;

[0007] Third, it is unstructured: the entity relationships in the text of the processing result field are fuzzy, and there are entity nesting and continuous entity phenomena, which increase the difficulty of named entity annotation and extraction. Entity nesting means that one entity contains another entity, such as the example: "The left front wheel of the car is leaking", the fault part entity is the left front wheel, the fault phenomenon entity is the left front wheel leaking, and the fault part entity is embedded in the fault phenomenon entity. A common continuous entity phenomenon is a continuous failure form, which is manifested by the same subject and the presence of more than two fault descriptions. For example, in the example "The wiper makes abnormal noise and cannot be wiped cleanly", the fault part "wiper" is the subject of the failure form entities "abnormal noise" and "cannot be wiped cleanly".

[0008] In the process of constructing the automobile fault diagnosis knowledge graph, the existing named entity recognition methods include rule-based methods, statistical methods, machine learning-based methods, deep learning-based methods, and methods based on transfer learning and pre-trained models.

[0009] However, rule-based methods lack flexibility and are difficult to adapt to new entity types or entities that do not conform to the rules. They are not effective in recognizing complex or irregular text entities. Statistical methods (such as Hidden Markov Models HMM) are very sensitive to the quality and quantity of labeled data. If they encounter entity types or contexts that do not appear in the training set, their performance will degrade. Machine learning-based methods (such as conditional random fields CRF and support vector machines SVM) require a large amount of labeled data to train the model, and the model training and adjustment process may be complicated. Deep learning-based methods (such as neural network models using BERT and LSTM) require a lot of computing resources for training. It may still be challenging to identify new or rare entities outside the training data. Methods based on transfer learning and pre-trained models (such as GPT and BERT) are usually very large models that require a lot of computing resources for fine-tuning and running, and may have limited adaptability to specific fields or small data sets.

[0010] It can be seen that the named entity recognition method commonly used in constructing the automobile fault knowledge graph cannot adapt well to the characteristics of the processing result field text in the automobile fault data, resulting in the inability to perform named entity recognition efficiently, accurately and completely, and the poor ability to process complex fault descriptions. Summary of the invention

[0011] The present invention aims to solve the technical problems in the prior art that named entity recognition cannot be performed efficiently, accurately and completely in text and the processing capability of complex fault descriptions is weak. A method and system for named entity recognition and reorganization of an automobile system fault knowledge graph is provided, which is well adapted to the characteristics of the processing result field text, accelerates the speed and accuracy of named entity recognition, completely extracts named entities, and can be applied to named entity recognition of complex sentence structures.

[0012] In order to achieve the above-mentioned purpose of the present invention, according to the first aspect of the present invention, the present invention provides a method for named entity recognition and reorganization of an automobile system fault knowledge graph, comprising: obtaining an original text set of a processing result field in an automobile fault data set; removing redundant information in the original text set to obtain a preprocessed text set; performing semantic extraction on the preprocessed text set to obtain a semantic position vector set; using a multi-strategy dynamic weighted recognition model to process the semantic position vector of each preprocessed text, and identifying the fault part entity and failure form entity in each preprocessed text; reorganizing the fault part entity and failure form entity of each preprocessed text, and using each reorganization result as a named entity of the automobile system fault knowledge graph.

[0013] In order to achieve the above-mentioned purpose of the present invention, according to the second aspect of the present invention, the present invention provides a named entity recognition and reorganization system for automobile system fault knowledge graph, which is used to implement the automobile system fault knowledge graph named entity recognition and reorganization method described in the first aspect of the present invention, including: an input layer, which obtains the original text set of the processing result field in the automobile fault data set; a text pre-classification layer, which removes redundant information in the original text set to obtain a preprocessed text set; a semantic extraction layer, which performs semantic extraction on the preprocessed text set to obtain a semantic position vector set; a multi-strategy dynamic weighted entity recognition layer, which uses a multi-strategy dynamic weighted recognition model to process the semantic position vector of each preprocessed text, and identifies the fault part entity and failure form entity in each preprocessed text; an entity reorganization layer, which reorganizes the fault part entity and failure form entity of each preprocessed text, and uses each reorganization result as a named entity of the automobile system fault knowledge graph.

[0014] In order to achieve the above-mentioned purpose of the present invention, according to the third aspect of the present invention, the present invention provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the automobile system fault knowledge graph named entity recognition and reorganization method described in the first aspect of the present invention.

[0015] The present invention first removes redundant information in the processing result field to reduce the complexity and error range of subsequent processing, and then performs semantic extraction processing on the preprocessed text set after removing the redundant information, so as to better understand the deep meaning of the text, which can improve the entity recognition accuracy of the subsequent multi-strategy dynamic weighted recognition model, and also provide a solid foundation for subsequent entity reorganization, especially when processing automobile fault descriptions containing complex sentence structures and professional terms, it can effectively improve the processing capability and robustness of the multi-strategy dynamic weighted recognition model. In addition, the fault part entity and failure form entity of each preprocessed text are reorganized, which can enhance the integrity of the named entity and ensure the reliability of the subsequent construction of the automobile system fault knowledge graph, so that the constructed automobile system fault knowledge graph can provide richer and more accurate information for subsequent fault analysis and diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of a method for recognizing and reorganizing named entities in a knowledge graph of automobile system faults in a preferred embodiment of the present invention;

[0017] Figure 2 is a schematic diagram of a process of removing redundant information in a preferred embodiment of the present invention;

[0018] Figure 3 This is a schematic diagram of the attention mechanism in a preferred embodiment of the present invention;

[0019] Figure 4 This is a schematic diagram of the entity reorganization process in an example;

[0020] Figure 5 It is a flowchart of a named entity recognition and reorganization system for automobile system fault knowledge graph in a preferred embodiment of the present invention;

[0021] Figure 6 It is a hardware structure diagram of an electronic device in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0023] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship 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 a limitation on the present invention.

[0024] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0025] The present invention discloses a method for recognizing and reorganizing named entities in a knowledge graph of automobile system faults. In a preferred embodiment, Figure 1 As shown, including:

[0026] Step S1, obtaining the original text set of the processing result field in the automobile fault data set.

[0027] Specifically, the original text set can be obtained by directly extracting the processing result field content from the automobile fault data set. The original text set includes multiple original texts, and the original text can be a sentence or a paragraph. An example is: "The engine makes an abnormal sound when starting."

[0028] Step S2, removing redundant information in the original text set to obtain a preprocessed text set.

[0029] Since the processing result field contains multiple aspects such as fault description, troubleshooting process, fault cause, replacement parts, etc., but in fact, the troubleshooting process, replacement parts and other aspects do not contribute much to the extraction of named entities. Therefore, in order to reduce the difficulty of entity extraction and improve the accuracy and efficiency of entity extraction, preferably, step S2 includes:

[0030] Step S21, segmenting the original text and removing stop words to obtain the first text. The above example is segmented as: "engine / start / when / issues / abnormal / sound", and after removing the stop word "when", the first text obtained is: "engine / start / issues / abnormal / sound".

[0031] Step S22, inputting the first text into the trained pre-classification model to obtain the pre-classification type of the first text, the pre-classification type including fault description, troubleshooting process, fault cause and replacement parts.

[0032] Step S23: extracting the first texts of pre-classified types of fault description and fault cause to form a pre-processed text set.

[0033] Step S3, performing semantic extraction on the preprocessed text set to obtain a semantic position vector set.

[0034] Through step S3, rich and accurate semantic information can be extracted from the preprocessed text, providing necessary pre-information for the subsequent multi-strategy dynamic weighted entity recognition layer and the entity reorganization layer based on grammatical rules. It is preferred but not limited to using the existing graph neural network (GNN) to extract the complex semantic information and the relationship between entities in the preprocessed text, which can effectively process nonlinear and unstructured data and is particularly effective for identifying and modeling complex relationships between entities.

[0035] Step S4, using a multi-strategy dynamic weighted recognition model to process the semantic position vector of each preprocessed text, and identify the fault part entity and failure form entity in each preprocessed text.

[0036] Step S5, reorganize the fault part entity and failure form entity of each preprocessed text, and use each reorganization result as a named entity of the automobile system fault knowledge graph. The reorganized named entities can be the fault phenomenon and the fault cause.

[0037] In a preferred embodiment, in order to accurately pre-classify the first text, the first text about the troubleshooting process and the replacement of accessories is eliminated, referring to Figure 2 , the pre-classification models include:

[0038] (1) Embedding layer, performing word embedding processing on the first text to obtain a word embedding matrix. The embedding layer preferably, but not limited to, uses the existing Trans former architecture, BERT or GPT to perform word embedding processing on the first text to obtain a word embedding matrix corresponding to each first text. In the word embedding process, each word in the first text is mapped to a high-dimensional space vector, and the high-dimensional space vectors of all words in the first text constitute the word embedding matrix corresponding to the first text. In the above example, word mapping is performed on the five words of the first text "engine / start / issue / abnormal / sound" respectively, and the embedding dimension is d, then the size of the word embedding matrix obtained is 5*d.

[0039] (2) In the series convolution layer, different convolution kernels are used to extract feature maps of different lengths in the word embedding matrix. A series of convolution kernels are defined in the series convolution layer to extract n-gram feature maps of different lengths. Let the convolution kernel W in the series convolution layer be kThe size of is h*d, where h is the number of words covered (e.g. 2-4 words), h is the length of the extracted feature map, and d is the word vector dimension. By applying convolution kernels of different sizes to the word embedding matrix, different semantic information from local to global can be captured. For example, a small convolution kernel may focus on the relationship between "engine" and "start", while a larger convolution kernel can capture the entire "unusual noise when starting" scenario.

[0040] For a convolution kernel W k , the formula for the convolution operation is:

[0041] c i’ =f(W·E i’:i’+h-1 +b)

[0042] Among them, c i’ is the feature map element at position i', and W is the convolution kernel W k The convolution kernel weight, E i’:i’+h-1 represents a window slice of h word length of the word embedding matrix, b is the bias term, and f is the activation function, such as the ReLU activation function.

[0043] (3) Pooling layer, using pooling operation to extract important features of each feature map of the first text. The pooling operation is preferentially the maximum pooling operation, which is used to extract important features from each feature map. If multiple convolution kernels of different sizes are used, each convolution kernel will produce a feature map, and the pooling operation will select the strongest signal, that is, the important feature, from each feature map. Through the pooling operation, the model selects important features from each feature map, which helps to reduce the feature dimension and reduce the amount of calculation. The formula for maximum pooling is:

[0044]

[0045] in, is the maximum value obtained by pooling, indicating the important features captured by the convolution kernel, n is the input sequence length, and h is the size of the convolution kernel.

[0046] (4) Connection layer: connect all important features of the first text to form the first vector. Connect all the important features after pooling to form a long vector.

[0047] (5) A fully connected layer processes the first vector to obtain the predicted probability that the first text belongs to each pre-classification type, and determines the pre-classification type of the first text according to the predicted probability. The final classification is performed through the fully connected layer. The pre-classification type with the largest predicted probability can be used as the final pre-classification type of the first text.

[0048] Specifically, the softmax function is used to predict the prediction probability of each pre-classified type. Let the output of the fully connected layer be o and the output of the softmax function be p, then:

[0049]

[0050] p = softmax(o)

[0051] Among them, W f is the weight of the fully connected layer, is the first vector from the pooling layer, b f is the bias term and p is the predicted probability of each pre-classified type.

[0052] In this embodiment, the cross entropy loss function L1 is used to measure the difference between the predicted probability p and the true label during the pre-classification model training:

[0053]

[0054] Among them, y i is the one-hot encoding of the first text’s true pre-classification type label, p i It is the probability distribution predicted by the pre-classification model. Through the optimization algorithm (such as Adam), W, b, W are continuously adjusted. f , and b f , to minimize the loss function.

[0055] The purpose of minimizing the loss function is to adjust the pre-classification model parameters, including the weights W and bias b of the convolutional layer, and the weights W of the fully connected layer. f and bias b f , and the word embedding matrix. This process is done through the gradient descent algorithm, one of the most commonly used variants is the Adam optimizer. This optimizer adjusts the learning rate to more efficiently find the global minimum of the loss function.

[0056] In a preferred embodiment, in order to extract the deep semantic information of the preprocessed text and effectively capture the long-distance dependencies and complex semantic information in the preprocessed text, step S3 includes:

[0057] Step S31, input the preprocessed text set into the Transformer model to obtain an embedding vector set.

[0058] In the Transformer model, each input character (in this case, a token encoded for each word or byte pair) is first converted into a vector in a high-dimensional space. For the preprocessed text, word segmentation is first performed. For example, in a preprocessed text example, the fault description can be divided into: "The vehicle / engine / suddenly / stalls / while / driving / at / high speed", and the processing result can be divided into: "Inspected / found / fuel pump / circuit / badly connected / , / replaced / fuel pump / after / problem solved".

[0059] Assuming that the converted vector is represented as E, the representation of each word can be obtained by the following formula:

[0060] E=[e1,e2,...,e m ]

[0061] Among them, e1 is the vector representation of the first word in the preprocessed text, and m is the length of the word sequence of the input preprocessed text.

[0062] In the Transformer model, multiple encoding layers are stacked, each of which includes a self-attention mechanism and a simple feedforward neural network. These encoding layers work together to capture semantic features ranging from simple to complex.

[0063] The output of each encoding layer is used as the input of the next encoding layer until the last encoding layer. At the last encoding layer, the Transformer model generates a highly abstract representation, namely the embedding vector, which captures the deep semantic information of the input preprocessed text. For this example, this means that the model can understand that "the engine suddenly stalls" is a fault phenomenon, and "the fuel pump circuit connection is poor" is the cause of the fault.

[0064] In each encoding layer of the Transformer, the self-attention mechanism helps the model understand the relationship between each word and other words. Position encoding provides the model with word order information, which is crucial for capturing temporal relationships in phrases such as "driving at high speed".

[0065] refer to Figure 3The essential idea of ​​the attention mechanism is to regard Source as a series of<key,value> For a certain element in Target, record it as Query, then calculate the correlation or similarity between Query and a series of Keys, and obtain a coefficient matrix, which represents the mapping weight of each Key to the corresponding Value. Finally, use this matrix and Value for weighted summation to get the final result as the value of self-attention. So, in simple terms, the self-attention mechanism is to perform a weighted summation operation on the value of each key-value pair in Source. The weight coefficient is derived by calculating the similarity between Query and Key. The process can be expressed by the following formula:

[0066] The self-attention calculation formula is:

[0067] Purpose: Improve the model’s understanding of the context of the entire input sequence.

[0068] Specifically, the process of calculating self-attention is mainly divided into the following three steps:

[0069] ① Calculate the similarity between Query and Key and get the similarity score.

[0070] ② Normalize the obtained similarity scores. This step generally uses the softmax(·) function.

[0071] ③Finally, use the normalized weight coefficient and Va 1ue to perform weighted summation to obtain the final self-attention.

[0072] Q: Query matrix, representing the vector of the current word.

[0073] K: Key matrix (Key), representing the word vectors in the entire input sequence.

[0074] V: Value matrix, which also represents the word vector in the input sequence.

[0075] Normalization factor for scaling, where dk is the dimension of the key vector, used to stabilize training.

[0076] K T : Transpose of the key matrix.

[0077] Computes a compatibility score for the query and the key.

[0078] softmax(·): An activation function that converts the compatibility scores into a probability distribution, representing how much each token cares about other tokens.

[0079] Step S32, position encoding is performed on the preprocessed text to obtain a word position vector.

[0080] Since the Transformer model itself does not have the ability to process sequence order, it is necessary to add position information through position encoding. Position encoding provides word order information, which is crucial for capturing the temporal relationship in phrases such as "while driving at high speed".

[0081] The positional encoding is a vector added to the embedding vector that provides the position information of each word:

[0082]

[0083] Among them, pos is the word position and i is the position encoding dimension. m o del Indicates the length of the preprocessed text. In this way, the vector of each word not only contains its own semantic information, but also incorporates the position information.

[0084] Step S33, adding the word position vector and the embedding vector of each preprocessed text to obtain the semantic position vector of each preprocessed text.

[0085] Step S34, the semantic position vectors of all preprocessed texts in the preprocessed text set form a semantic position vector set.

[0086] In this implementation, contrast loss is often used to learn the distance metric in the embedding space, and optimizes the Transformer model by shortening the distance between positive samples and increasing the distance between negative samples. In the semantic extraction task, contrast loss can help the Transformer model better distinguish different categories of semantic information. The contrast loss function L2 is:

[0087]

[0088] Where d is the distance between the embedding vectors of the sample pair, y is the label (if it is a similar sample pair, y = 1; if it is dissimilar, y = 0), and margin is a hyperparameter used to control the minimum distance between dissimilar sample pairs.

[0089] In a preferred embodiment, in order to integrate the advantages of M entity recognition models, make the overall recognition process more accurate, and effectively improve the accuracy and coverage of named entity recognition, the multi-strategy dynamic weighted recognition model of the present application includes:

[0090] M entity recognition models process the semantic position vector of the same preprocessed text respectively to obtain M entity prediction label sequences of the same preprocessed text, where M is an integer greater than or equal to 2. The entity recognition model can select deep learning models such as HMM, CRF, BiLSTM, BiLSTM-CRF and Lat t ice LSTM, and can also select machine learning models such as random forest and gradient boosted decision tree (GBDT) to improve the accuracy of entity recognition from different angles.

[0091] The integrated prediction module determines the final entity label sequence of the same preprocessed text based on the weights of the M entity recognition models and the M entity prediction label sequences, and determines the fault part entity and failure form entity in the same preprocessed text based on the final entity label sequence. Specifically, based on the weight of each entity recognition model, a weighted majority voting mechanism is used to determine the final entity label sequence. For each word or character in the preprocessed text, the final label Label of the word or character is calculated based on the entity prediction labels of the M entity recognition models and their corresponding weights. final :

[0092]

[0093] Among them, I() is the indicator function. When the i-th entity recognition model predicts the label Label for a word or character in the preprocessed text, i When it is k', the value is 1, otherwise it is 0. k' represents the predicted label value of the fault location or the predicted label value of the failure form; Label final is the final label result, w i is the weight of the i-th entity recognition model.

[0094] In a preferred embodiment, in order to more accurately extract entities (fault location entities and failure form entities) in the preprocessed text, the weights of the entity recognition model are dynamically set according to the automobile fault data set to be processed. In step S4, the semantic position vector set is processed using a multi-strategy dynamic weighted recognition model, including:

[0095] Step 1: Extract training set and validation set from the semantic position vector set, and annotate the entity true label sequence in each preprocessed text corresponding to the training set and validation set. Both the training set and validation set are subsets of the semantic position vector set, and the entity true label sequence includes the true fault part label and the true failure form label.

[0096] Step 2: Use the training set to perform initial training on each entity recognition model; use the verification set to verify the performance of each entity recognition model after initial training to obtain the performance value of each entity recognition model; based on the relationship between the performance value of each entity recognition model and the total performance values ​​of the M entity recognition models, calculate the initial weight of each entity recognition model.

[0097] Further preferably, the performance value is preferably but not limited to accuracy. The accuracy calculation formula of the i-th entity recognition model is:

[0098]

[0099] Among them, Acc i is the accuracy of the i-th entity recognition model, TP i , T.N. i ,FPi,FN i are the number of true positives, true negatives, false positives, and false negatives, respectively.

[0100] The initial weight calculation formula for the i-th entity recognition model is:

[0101]

[0102] Among them, α j is the smoothing parameter of the j-th entity recognition model, α i is the smoothing parameter of the i-th entity recognition model, which is used to adjust the sensitivity of weight distribution.

[0103] Step 3, use the training set to iteratively optimize the M entity recognition models until the iteration stop condition is reached. In each iterative optimization training process, the entity prediction label sequence output by the M entity recognition models and the weights of the M entity recognition models are substituted into the total loss function, and the weight of each entity recognition model is updated according to the gradient descent of the total loss function.

[0104] The iteration stopping condition is preferably, but not limited to, that the accuracy of the multi-strategy dynamic weighted recognition model on the validation set reaches a preset accuracy threshold, or that the number of iterative optimizations reaches a preset maximum number of iterations.

[0105] In order to dynamically adjust the weight of each entity recognition model, the total loss function combines the prediction consistency of the entity recognition model and the prediction accuracy of the entity recognition model, which can promote the prediction consistency between different entity recognition models while maintaining a high accuracy of the entity's true label as the basis for dynamically adjusting the weight. Preferably, the total loss function L is:

[0106] L=λL consistency +(1-λ)L accuracy

[0107]

[0108] Among them, λ represents the weight coefficient; L consistency Represents the consistency loss; N represents the number of semantic position vectors currently participating in iterative optimization training; Represents the entity prediction label sequence of the preprocessed text corresponding to the nth semantic position vector obtained by the i-th entity recognition model; Represents the entity prediction label sequence of the preprocessed text corresponding to the nth semantic position vector obtained by the jth entity recognition model; express and The Hamming distance of accuracy Indicates loss of accuracy; represents the probability that the entity prediction label sequence of the preprocessed text corresponding to the nth semantic position vector obtained by the i-th entity recognition model is the entity's true label sequence; w i Represents the weight of the i-th entity recognition model. (n) Represents the nth semantic position vector data, is the entity true label sequence of the preprocessed text corresponding to the nth semantic position vector.

[0109] Further preferably, in each iterative optimization training, the weight of the i-th entity recognition model is updated according to the following formula:

[0110]

[0111] in, Represents the updated weight of the i-th entity recognition model; represents the weight of the i-th entity recognition model before updating; η represents the learning rate; Represents the weight w of the total loss function L on the i-th entity recognition model i The partial derivative of .

[0112] The weights are updated by backpropagating the gradient of the total loss function to better reflect the contribution of each entity model to the prediction performance.

[0113] Step 4: Input the semantic position vector set into the M entity recognition models after iterative optimization training, so that the preprocessed text corresponding to each semantic position vector obtains M entity prediction label sequences.

[0114] Step 5: The integrated prediction module uses the weights of the M entity recognition models obtained after the optimization training and the M entity prediction label sequences of the preprocessed text output by the M entity recognition models to determine the fault part entity and failure form entity in the preprocessed text.

[0115] In this embodiment, the multi-strategy dynamic weight assignment recognition model dynamically adjusts weights by considering the performance of different entities on specific texts. This mechanism enables the present invention to adaptively adjust the recognition strategy when facing fault description texts of different types and formats. The improvement of this adaptability and flexibility means that the present invention can be widely applied to different automotive systems and fault types, having broader practicality.

[0116] In a preferred embodiment, after extracting the fault location entity and the failure mode entity, to enhance the integrity and reliability of the subsequent construction of the knowledge graph, accurately reorganize the identified entities and their relationships, precisely map the fault entities and their mutual relationships, construct a complete named entity (fault phenomenon and fault cause entity), and effectively solve the word nesting problem and the continuous failure mode problem. In step S5, reorganize the fault location entity and the failure mode entity of each preprocessed text, including:

[0117] Step A, obtain a first index list and a second index list based on the indexes of the fault location entity and the failure mode entity in the preprocessed text. Among them, the first index list is a sequence formed by arranging the indexes of all fault location entities and all failure mode entities in order, and the second index list is a sequence formed by arranging the indexes of all failure mode entities in order. The index is the starting position or the ending position of the entity.

[0118] In an example, let the preprocessed text be "The reverse light, the right front headlight, and the left front side light are not on, and the engine makes abnormal noises". The fault location entities identified by the multi-strategy dynamic weight assignment recognition model are [reverse light, right front headlight, left front side light, engine], and the failure mode entities are [not on, abnormal noise]. Sequentially obtain the first index list L1 of the fault location entity and the failure mode entity in the preprocessed text, and the second index list L2 of the failure mode entity. L1 is [0, 4, 9, 13, 16, 19], and L2 is [13, 19]. In this example, the index is the serial number of the starting position of the entity in the preprocessed text.

[0119] Step B, let the first index list be [index1 … index k … index K , the serial number k ∈ [1, K], where K represents the total number of the fault location entity and the failure mode entity in the preprocessed text. Traverse each index in the first index list and execute:

[0120] For the kth index index k , when k < K, execute step B1, and when k = K, execute step B2;

[0121] Step B1, if index does not exist in the second index list k, then index k Push into the stack; if the index index exists in the second index list k , further determine whether the index index exists in the second index list k+1 , if the index index exists in the second index list k+1 (Indicates index k and index k+1 The entity mapped by the top index of the stack is mapped to the index index k The mapped entity matches a named entity, and the top index is not popped from the stack. If the index index does not exist in the second index list, k+1 (Indicates index k and index k+1 does not constitute a continuous failure form), then all index-mapped entities in the stack are mapped to index k The mapped entity matches obtain one or more named entities, and all indexes in the stack are popped;

[0122] Step B2: compare all index-mapped entities in the stack with index k The mapped entity matches one or more named entities, and all indexes in the stack are popped. k The last entity identified in the preprocessed text is an invalid form entity according to Chinese grammatical rules and description habits.

[0123] Figure 4 Schematic diagram of the process of executing step B for the above example. Push the index of L1 into the stack in order, and check whether it is the index of the failure form entity. If it is, pair all the fault part indexes in the stack with the failure form index, and pop all the fault part indexes in the stack. In this way, the matching index pairs are mapped with the specific fault part entity and the failure form entity, so as to identify the specific fault phenomenon or fault cause.

[0124] According to the specific characteristics of the pre-processed text of automobile failure, this embodiment develops a set of grammatical rule-based templates specifically for the effective reorganization of entities.

[0125] In an example, the preprocessed text is "wiper makes abnormal noise, cannot wipe cleanly", and the multi-strategy dynamic weighted recognition model identifies the wiper as the fault part entity, "abnormal noise" and "cannot wipe cleanly" as two consecutive failure form entities. When executing step B, after "wiper" and "abnormal noise" are paired as the named entity "wiper makes abnormal noise", the "wiper" index in the stack is not popped out. When traversing to the "cannot wipe cleanly" index, "wiper" and "cannot wipe cleanly" are paired again as the named entity "wiper cannot wipe cleanly", which completely solves the problem of incomplete named entity extraction when there are continuous failure forms in the text, so that the named entities can be extracted more accurately.

[0126] In an application scenario of this embodiment, the specific algorithm is as follows:

[0127] enter:

[0128] List L1: Index list of fault part entity and failure form entity in the original text.

[0129] List L2: List of invalid form entity indexes.

[0130] Output:

[0131] List matched_entities: contains the matched fault part and failure mode entity index pairs, each element is a tuple containing the fault part index and the corresponding failure mode index.

[0132] Algorithm steps:

[0133] 1. Initialization:

[0134] Create an empty stack.

[0135] Create an empty list matched_entities to store the matching results.

[0136] 2. Extract entities and indexes:

[0137] Fault part entities and failure form entities are extracted from the text, and their indexes in the text are determined.

[0138] parts: fault part entity.

[0139] failures: failure form entity.

[0140] part s_i ndex: The position index list of the fault part entity in the text.

[0141] failures_index: A list of indices of the locations of the failure form entities in the text.

[0142] List L1: Index list of fault part entities and failure form entities in the original text, i.e. [parts_index+failures_index].

[0143] List L2: Failure form entity index list, i.e. [failures_index].

[0144] 3. Traverse the index list:

[0145] The indices of all entities in the text are processed in the order in which they appear in the text.

[0146] 4. Process the entity index of the fault location and failure mode:

[0147] (1) If the current index represents the fault location entity, push it into the stack.

[0148] (2) If the current index represents an invalid form entity, the following processing is performed:

[0149] ① Determine whether it is a continuous failure form entity

[0150] 1) If the stack is not empty and is not a continuous invalidation form entity:

[0151] A. Match the current failure form entity with the fault part entity at the top of the stack, add the matching result to matched_entities, and pop out the top index of the stack.

[0152] B. Continue operation A until the top of the stack is empty.

[0153] 2) If the stack is not empty and is a continuous invalidation form entity:

[0154] A. Match the current failure form entity with the fault part entity at the top of the stack, add the matching result to matched_entities, retain the top index of the stack, and do not pop it out.

[0155] B. Return to step 3 and continue traversing the index list.

[0156] 5. Return results:

[0157] Output the matched fault phenomenon entity pair list matched_entities. The pseudo code is as follows:

[0158]

[0159]

[0160] The present invention also discloses a vehicle system fault knowledge graph named entity recognition and reorganization system, which is used for the above-mentioned vehicle system fault knowledge graph named entity recognition and reorganization method, referring to Figure 5 ,include:

[0161] Input layer, obtains the original text set of the processing result field in the automobile failure dataset;

[0162] A text pre-classification layer, removing redundant information in the original text set to obtain a pre-processed text set;

[0163] A semantic extraction layer, performing semantic extraction on the preprocessed text set to obtain a semantic position vector set;

[0164] The multi-strategy dynamic weighted entity recognition layer uses a multi-strategy dynamic weighted recognition model to process the semantic position vector of each pre-processed text and identify the fault part entity and failure form entity in each pre-processed text;

[0165] The entity reorganization layer reorganizes the fault part entity and failure form entity of each preprocessed text, and uses each reorganization result as a named entity in the automobile system fault knowledge graph.

[0166] In this embodiment, the input layer, text pre-classification layer, semantic extraction layer, multi-strategy dynamic weighted entity recognition layer and entity reorganization layer correspond one by one to step S1, step S2, step S3, step S4 and step S5 of the named entity recognition and reorganization method of the automobile system fault knowledge graph provided by the present invention, respectively. Please refer to the above description and will not be repeated here.

[0167] The automobile system fault knowledge graph named entity recognition and reorganization system provided by the present invention has the following technical effects:

[0168] 1. Improve the accuracy and coverage of fault identification

[0169] The core processing flow is subdivided into four layers: text pre-classification layer, semantic extraction layer, multi-strategy dynamic weighted entity recognition layer, and entity reorganization layer. Among them, the text pre-classification layer reduces the complexity and error range of subsequent processing by pre-classifying the first text. The multi-strategy dynamic weighted entity recognition layer combines the advantages of multiple models such as HMM, CRF, BiLSTM, and adaptively optimizes the model weights through a dynamic weighting mechanism, making the overall recognition process more accurate, effectively improving the accuracy and coverage of entity recognition.

[0170] 2. Strengthen the model’s ability to handle complex text

[0171] The semantic extraction layer uses the Transformer model, which uses its self-attention mechanism to capture long-distance dependencies in the text, thereby better understanding the deep semantics of the text. This deep understanding provides a solid foundation for the accurate identification of fault entities and subsequent reorganization, especially when dealing with automobile fault descriptions containing complex sentence structures and professional terms, which can effectively improve the model's processing capabilities and robustness.

[0172] 3. Enhance the integrity and reliability of the knowledge graph

[0173] The entity reorganization layer based on grammatical rules can accurately reorganize the identified entities and their relationships according to predefined grammatical rules and templates, which not only enhances the integrity of the knowledge graph but also ensures its reliability. By accurately mapping the fault entities and their relationships, the constructed knowledge graph can provide richer and more accurate information for subsequent fault analysis and diagnosis.

[0174] 4. Improve the adaptability and flexibility of the system

[0175] The multi-strategy dynamic weighted entity recognition layer dynamically adjusts the weights by considering the performance of different entity recognition models on specific texts. This mechanism enables the present invention to adaptively adjust the recognition strategy when facing fault description texts of different types and formats. This improvement in adaptability and flexibility means that the present invention can be widely applied to different automotive systems and fault types, and has wider practicality.

[0176] The present invention also discloses an electronic device. In one embodiment, the electronic device includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the automobile system fault knowledge graph named entity recognition and reorganization method provided by the present invention.

[0177] like Figure 6 , which is a schematic diagram of the structure of an electronic device for a method for recognizing and reorganizing a named entity in a knowledge graph of automobile system failures provided by an embodiment of the present invention. The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a program for recognizing and reorganizing a named entity in a knowledge graph of automobile system failures.

[0178] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a method for recognizing and reorganizing named entities in a knowledge graph of automobile system faults, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.

[0179] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the automobile system fault knowledge graph named entity recognition reorganization method program, but also can be used to temporarily store data that has been output or is to be output.

[0180] The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0181] The communication interface 13 is used for communication between the above-mentioned electronic device and other electronic devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0182] Figure 6 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently. For example, although not shown, the electronic device may also include a power supply (such as a battery) for supplying power to each component. Preferably, the power supply may be logically connected to at least one processor 10 through a power management device, so that functions such as charging management, discharging management, and power consumption management are implemented through the power management device. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

Claims

1. A method for named entity recognition and reorganization of automobile system fault knowledge graph, characterized in that: include: Get the original text set of the processed result field in the car failure dataset; Removing redundant information from the original text set to obtain a preprocessed text set; Performing semantic extraction on the preprocessed text set to obtain a semantic position vector set; The semantic position vector of each preprocessed text is processed using a multi-strategy dynamic weighted recognition model to identify the fault location entity and failure form entity in each preprocessed text; Reorganize the fault part entity and failure form entity of each preprocessed text, and use each reorganization result as a named entity in the automobile system fault knowledge graph; The multi-strategy dynamic weighted identification model includes: M entity recognition models process the semantic position vectors of the same preprocessed text respectively to obtain M entity prediction label sequences of the same preprocessed text, where M is an integer greater than or equal to 2; An integrated prediction module determines the final entity label sequence of the same preprocessed text according to the weights of the M entity recognition models and the M entity prediction label sequences, and determines the fault part entity and the failure form entity in the same preprocessed text according to the final entity label sequence; The semantic position vector set is processed using a multi-strategy dynamic weighted recognition model, including: Step 1, extracting a training set and a verification set from the semantic position vector set, and marking an entity true label sequence in each preprocessed text corresponding to the training set and the verification set; Step 2: Perform initial training on each entity recognition model using the training set; perform performance verification on each entity recognition model after initial training using the verification set to obtain a performance value of each entity recognition model; calculate the initial weight of each entity recognition model based on the relationship between the performance value of each entity recognition model and the total performance values ​​of the M entity recognition models; Step 3, respectively use the training set to iteratively optimize the M entity recognition models until the iteration stop condition is reached. In each iterative optimization training process, the entity prediction label sequence output by the M entity recognition models and the weights of the M entity recognition models are substituted into the total loss function, and the weight of each entity recognition model is updated according to the gradient descent of the total loss function; Step 4, inputting the semantic position vector set into the M entity recognition models after iterative optimization training, so that the preprocessed text corresponding to each semantic position vector obtains M entity prediction label sequences; Step 5, the integrated prediction module uses the weights of the M entity recognition models obtained after the optimization training is completed and the M entity prediction label sequences of the preprocessed text output by the M entity recognition models to determine the fault part entity and the failure form entity in the preprocessed text; The step of reorganizing the fault part entity and the failure form entity of each preprocessed text includes: Step A, obtaining a first index list and a second index list based on the indexes of the fault part entities and the failure form entities in the preprocessed text, wherein the first index list is a sequence in which the indexes of all the fault part entities and all the failure form entities are arranged in sequence, and the second index list is a sequence in which the indexes of all the failure form entities are arranged in sequence, and the index is the starting position or the ending position of the entity; Step B: Assume the first index list is [index1…index k …index K ], serial number k∈[1,K], K represents the total number of fault part entities and failure form entities in the preprocessed text, traverse each index in the first index list and execute: For the k-th index k , when k < K, execute step B1, and when k = K, execute step B2; Step B1: If the index does not exist in the second index list k , then index k Push into the stack; if the index index exists in the second index list k , further determine whether the index index exists in the second index list k+1 , if the index index exists in the second index list k+1 , then the entity mapped by the top index of the stack is mapped to index index k The mapped entity matches a named entity, and the top index is not popped from the stack. If the index index does not exist in the second index list, k+1 , then all index-mapped entities in the stack are mapped to index k The mapped entity matches obtain one or more named entities, and all indexes in the stack are popped; Step B2: compare all index-mapped entities in the stack with index k The mapped entity matches obtain one or more named entities, and all indexes in the stack are popped.

2. The method for named entity recognition and reorganization of automobile system fault knowledge graph according to claim 1, characterized in that: Removing redundant information from the original text set to obtain a preprocessed text set includes: Segment the original text and remove stop words to obtain the first text; Inputting the first text into the trained pre-classification model to obtain a pre-classification type of the first text, wherein the pre-classification type includes fault description, troubleshooting process, fault cause, and replacement parts; The first texts of pre-classified types of fault description and fault cause are extracted to form a pre-processed text set.

3. The method for named entity recognition and reorganization of automobile system fault knowledge graph according to claim 2, characterized in that: The pre-classification model includes: An embedding layer performs word embedding processing on the first text to obtain a word embedding matrix; A series of convolutional layers extracts feature maps of different lengths in the word embedding matrix through convolution kernels of different sizes; A pooling layer, which uses a pooling operation to extract important features of each feature map of the first text; A connection layer connects all important features of the first text to form a first vector; The fully connected layer processes the first vector to obtain the predicted probability that the first text belongs to each pre-classified type, and determines the pre-classified type of the first text according to the predicted probability.

4. The method for named entity recognition and reorganization of automobile system fault knowledge graph according to claim 1, characterized in that: Performing semantic extraction on the preprocessed text set to obtain a semantic position vector set includes: Input the preprocessed text set into the Transformer model to obtain an embedding vector set; Perform position encoding on the preprocessed text to obtain the word position vector; The word position vector and the embedding vector of each preprocessed text are added together to obtain the semantic position vector of each preprocessed text.

5. The method for named entity recognition and reorganization of automobile system fault knowledge graph according to claim 1, characterized in that: The total loss function L is: L=λL consistency +(1-λ)L accuracy Among them, λ represents the weight coefficient; L consistency Represents consistency loss; N represents the number of semantic position vectors currently participating in iterative optimization training; Represents the entity prediction label sequence of the preprocessed text corresponding to the nth semantic position vector obtained by the i-th entity recognition model; Represents the entity prediction label sequence of the preprocessed text corresponding to the nth semantic position vector obtained by the jth entity recognition model; express and The Hamming distance of accuracy Indicates loss of accuracy; represents the probability that the entity prediction label sequence of the preprocessed text corresponding to the nth semantic position vector obtained by the i-th entity recognition model is the entity's true label sequence; w i Represents the weight of the i-th entity recognition model.

6. A vehicle system fault knowledge graph named entity recognition and reorganization system, used to implement the vehicle system fault knowledge graph named entity recognition and reorganization method according to any one of claims 1 to 5, characterized in that: include: Input layer, obtains the original text set of the processing result field in the automobile failure dataset; A text pre-classification layer, removing redundant information in the original text set to obtain a pre-processed text set; A semantic extraction layer, performing semantic extraction on the preprocessed text set to obtain a semantic position vector set; The multi-strategy dynamic weighted entity recognition layer uses a multi-strategy dynamic weighted recognition model to process the semantic position vector of each pre-processed text and identify the fault part entity and failure form entity in each pre-processed text; The entity reorganization layer reorganizes the fault part entity and failure form entity of each preprocessed text, and uses each reorganization result as a named entity in the automobile system fault knowledge graph; The multi-strategy dynamic weighted identification model includes: M entity recognition models process the semantic position vectors of the same preprocessed text respectively to obtain M entity prediction label sequences of the same preprocessed text, where M is an integer greater than or equal to 2; An integrated prediction module determines the final entity label sequence of the same preprocessed text according to the weights of the M entity recognition models and the M entity prediction label sequences, and determines the fault part entity and the failure form entity in the same preprocessed text according to the final entity label sequence; The semantic position vector set is processed using a multi-strategy dynamic weighted recognition model, including: Step 1, extracting a training set and a verification set from the semantic position vector set, and marking an entity true label sequence in each preprocessed text corresponding to the training set and the verification set; Step 2: Perform initial training on each entity recognition model using the training set; perform performance verification on each entity recognition model after initial training using the verification set to obtain a performance value of each entity recognition model; calculate the initial weight of each entity recognition model based on the relationship between the performance value of each entity recognition model and the total performance values ​​of the M entity recognition models; Step 3, respectively use the training set to iteratively optimize the M entity recognition models until the iteration stop condition is reached. In each iterative optimization training process, the entity prediction label sequence output by the M entity recognition models and the weights of the M entity recognition models are substituted into the total loss function, and the weight of each entity recognition model is updated according to the gradient descent of the total loss function; Step 4, inputting the semantic position vector set into the M entity recognition models after iterative optimization training, so that the preprocessed text corresponding to each semantic position vector obtains M entity prediction label sequences; Step 5, the integrated prediction module uses the weights of the M entity recognition models obtained after the optimization training is completed and the M entity prediction label sequences of the preprocessed text output by the M entity recognition models to determine the fault part entity and the failure form entity in the preprocessed text; The step of reorganizing the fault part entity and the failure form entity of each preprocessed text includes: Step A, obtaining a first index list and a second index list based on the indexes of the fault part entities and the failure form entities in the preprocessed text, wherein the first index list is a sequence in which the indexes of all the fault part entities and all the failure form entities are arranged in sequence, and the second index list is a sequence in which the indexes of all the failure form entities are arranged in sequence, and the index is the starting position or the ending position of the entity; Step B: Assume the first index list is [index1…index k …index K ], serial number k∈[1,K], K represents the total number of fault part entities and failure form entities in the preprocessed text, traverse each index in the first index list and execute: For the k-th index k , when k < K, execute step B1, and when k = K, execute step B2; Step B1: If the index does not exist in the second index list k , then index k Push into the stack; if the index index exists in the second index list k , further determine whether the index index exists in the second index list k+1 , if the index index exists in the second index list k+1 , then the entity mapped by the top index of the stack is mapped to index index k The mapped entity matches a named entity, and the top index is not popped from the stack. If the index index does not exist in the second index list, k+1 , then all index-mapped entities in the stack are mapped to index k The mapped entity matches obtain one or more named entities, and all indexes in the stack are popped; Step B2: compare all index-mapped entities in the stack with index k The mapped entity matches obtain one or more named entities, and all indexes in the stack are popped.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, A memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the automobile system fault knowledge graph named entity recognition and reorganization method as described in any one of claims 1 to 5.