Fault-related data processing method, device, computer equipment and storage medium

By obtaining and evaluating the fault causality in equipment operation faults, and using the Transformer model and causality reasoning model, the problem of insufficient reasoning capabilities in the existing technology is solved, and the fault analysis capabilities and operation and maintenance environment in smart building operation and maintenance scenarios are improved. reliability.

CN116756250BActive Publication Date: 2024-09-20UNIV OF ELECTRONICS SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310670713.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-09-20
Estimated Expiration
2043-06-06

AI Technical Summary

Technical Problem

Existing knowledge reasoning algorithms, especially the TransE algorithm, have insufficient reasoning capabilities in smart building operation and maintenance scenarios, making it difficult to construct a knowledge reasoning model that is adaptable to the system and has complete performance, especially in knowledge graphs with few relationships.

Method used

A method for processing data related to equipment operation faults is proposed. By obtaining the fault causal relationship between entities, feature fusion and evaluation are performed, and the Transformer model and causal relationship reasoning model are used to improve reasoning capabilities and are suitable for smart building operation and maintenance scenarios.

Benefits of technology

It improves the reasoning ability of equipment operation faults, enhances the reliability of the operation and maintenance environment, enables more accurate analysis of fault causes and processes, and maintains a good operation and maintenance environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116756250B
    Figure CN116756250B
Patent Text Reader

Abstract

The present invention discloses a method, device, computer equipment and storage medium for processing fault-related data. First, a fault causal relationship between a first entity and a second entity is obtained, and the cause and process of the fault occurrence are better understood and analyzed through the obtained fault causal relationship between the first entity and the second entity. Then, the first fused feature data corresponding to the first entity and the second entity and the causal relationship representation data of the fault causal relationship are feature fused to obtain second fused feature data; finally, the fault causal relationship is evaluated based on the second fused feature data to obtain evaluation data for describing the possibility of a fault causal relationship between the first entity and the second entity. The possibility of a fault causal relationship between the first entity and the second entity is described by the evaluation data to determine whether the fault causal relationship can be regarded as the real cause of the fault between the first entity and the second entity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment fault diagnosis, and in particular to a method, device, computer equipment and storage medium for processing fault-related data. Background Art

[0002] Knowledge graphs can reveal the dynamic development of knowledge fields and realize knowledge sharing and reuse. For knowledge graphs with few relationships, how to construct a knowledge reasoning model that adapts to the system and has complete performance is a key issue.

[0003] In related technologies, the TransE (Translational Embedding) algorithm can be used to construct knowledge reasoning models suitable for different application scenarios. However, the reasoning ability of the TransE algorithm in some application scenarios (such as smart building operation and maintenance scenarios) needs to be improved. Therefore, it is necessary to propose a new method for processing data related to equipment operation failures to maintain a reliable operation and maintenance environment. Summary of the invention

[0004] The embodiments of this specification are intended to solve at least one of the technical problems in the related art to a certain extent. To this end, the embodiments of this specification propose a method, device, computer equipment and storage medium for processing fault-related data.

[0005] The present specification provides a method for processing data related to equipment operation failures, the method comprising:

[0006] Acquire a fault causal relationship between a first entity and a second entity; wherein the first entity and the second entity are used to represent objects related to the equipment operation fault; and the first entity and the second entity correspond to first fusion feature data;

[0007] Performing feature fusion on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data;

[0008] The fault causal relationship is evaluated based on the second fused feature data to obtain evaluation data for the fault causal relationship; wherein the evaluation data is used to describe the possibility of the fault causal relationship existing between the first entity and the second entity.

[0009] In one implementation manner, obtaining the fault causal relationship between the first entity and the second entity includes:

[0010] Acquire the first fusion feature data corresponding to the first entity and the second entity;

[0011] Relationship prediction is performed based on the first fused feature data to obtain a fault causal relationship between the first entity and the second entity.

[0012] In one embodiment, performing relationship prediction based on the first fused feature data to obtain a fault causal relationship between the first entity and the second entity includes:

[0013] Performing encoding processing and linear conversion according to the first fused feature data to obtain corresponding first target feature data;

[0014] Normalization processing and classification processing are performed according to the first target feature data to obtain the fault causal relationship.

[0015] In one embodiment, the first fusion feature data is generated in a manner including:

[0016] Determining a first entity and a second entity associated with a device operation failure;

[0017] The first fused feature data is obtained by performing feature fusion based on the first entity representation data of the first entity and the second entity representation data of the second entity.

[0018] In one embodiment, the evaluating the fault causality based on the second fused feature data to obtain evaluation data for the fault causality includes:

[0019] Performing encoding processing and linear conversion according to the second fused feature data to obtain corresponding second target feature data;

[0020] Normalization processing and classification processing are performed on the second target feature data to obtain the evaluation data.

[0021] In one implementation manner, the fault causal relationship is obtained through a causal relationship reasoning model, and the training process of the causal relationship reasoning model includes:

[0022] Determine a maintenance data triple based on the maintenance record data; wherein the maintenance data triple includes head entity representation data, tail entity representation data, and relationship representation data;

[0023] Inputting the head entity representation data and the tail entity representation data into the causal relationship reasoning model for prediction to obtain predicted causal relationship data;

[0024] The parameters of the causal relationship inference model are updated based on the predicted causal relationship data and the relationship representation data until a model training stop condition is met.

[0025] In one embodiment, determining the maintenance data triplet based on the maintenance record data includes:

[0026] Data extraction and graph construction are performed based on maintenance record data to obtain the corresponding maintenance knowledge graph;

[0027] The maintenance knowledge graph is initialized in terms of relational structure through a vector translation model to obtain maintenance data triples that can reflect the relational structure between the head entity and the tail entity.

[0028] In one embodiment, the evaluation data is obtained through a causal relationship evaluation model, and the training process of the causal relationship evaluation model includes:

[0029] Determine maintenance data triples based on maintenance record data and construct a positive sample set; wherein the maintenance data triples include head entity representation data, tail entity representation data, and relationship representation data;

[0030] For any maintenance data triple, replace the entity representation data in the maintenance data triple to obtain a corresponding negative sample triple, and construct a negative sample set; wherein the entity representation data is the head entity representation data or the tail entity representation data;

[0031] Based on the similarity between any maintenance data triplet and the negative sample triplet, the negative sample set is screened to obtain negative samples corresponding to the similarity that meet the preset conditions, and a target negative sample set is constructed;

[0032] The causal relationship assessment model is trained based on the target negative sample set and the positive sample set until a model training stop condition is met.

[0033] The embodiment of this specification provides a device for processing data related to equipment operation failure, the device comprising:

[0034] A fault causal relationship acquisition module is used to acquire a fault causal relationship between a first entity and a second entity; wherein the first entity and the second entity are used to represent objects related to the equipment operation fault; and the first entity and the second entity correspond to first fusion feature data;

[0035] a fused feature data determination module, configured to perform feature fusion on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data;

[0036] An evaluation data determination module is used to evaluate the fault causal relationship based on the second fused feature data to obtain evaluation data for the fault causal relationship; wherein the evaluation data is used to describe the possibility of the existence of the fault causal relationship between the first entity and the second entity.

[0037] An embodiment of the present specification provides a computer device, which includes: a memory, and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors to enable the one or more processors to implement the steps of the method described in any of the above embodiments.

[0038] The embodiments of this specification provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method described in any of the above embodiments are implemented.

[0039] An embodiment of the present specification provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of a computer device, the computer device is enabled to perform the steps of the method described in any one of the above embodiments.

[0040] In the implementation of the above specification, first, the fault causal relationship between the first entity and the second entity is obtained, and the cause and process of the fault are better understood and analyzed through the obtained fault causal relationship between the first entity and the second entity. Then, the first fused feature data corresponding to the first entity and the second entity and the causal relationship representation data of the fault causal relationship are feature fused to obtain the second fused feature data; finally, the fault causal relationship is evaluated based on the second fused feature data to obtain evaluation data for describing the possibility of the existence of a fault causal relationship between the first entity and the second entity. The possibility of describing the fault causal relationship between the first entity and the second entity through the evaluation data is determined to determine whether the fault causal relationship can be regarded as the real cause of the fault between the first entity and the second entity, and the reliability of the fault causal relationship between the first entity and the second entity is improved to maintain the reliability of the operation and maintenance environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1a A schematic diagram of an application scenario provided for the implementation methods of this specification;

[0042] Figure 1b A schematic diagram of a method for processing application scenario operation failure related data provided in an embodiment of this specification;

[0043] Figure 1cA flowchart of a method for processing data related to equipment operation failures provided in one embodiment of this specification;

[0044] Figure 1d A schematic diagram of second fused feature data provided in an embodiment of this specification;

[0045] Figure 2 A schematic diagram of a process for obtaining a fault causal relationship provided in an embodiment of this specification;

[0046] Figure 3a A schematic diagram of a flow chart for obtaining a fault causal relationship provided in another embodiment of this specification;

[0047] Figure 3b A schematic diagram of the structure of a causal relationship reasoning model provided for the implementation mode of this specification;

[0048] Figure 4a A schematic diagram of a process for generating first fusion feature data provided in an embodiment of this specification;

[0049] Figure 4b A schematic diagram of the first fusion feature data provided in an embodiment of this specification;

[0050] Figure 5a A schematic diagram of a process for obtaining evaluation data provided in an embodiment of this specification;

[0051] Figure 5b A schematic diagram of the structure of a causal relationship assessment model provided for the implementation mode of this specification;

[0052] Figure 6a A flowchart of the training process of the causal relationship reasoning model provided in the embodiments of this specification;

[0053] Figure 6b A schematic diagram of entities and relationships provided for implementation of this specification;

[0054] Figure 7a A schematic diagram of a process for determining a maintenance data triplet provided in an embodiment of this specification;

[0055] Figure 7b A schematic diagram of generating a maintenance data triple is provided for the implementation mode of this specification;

[0056] Figure 8 A flowchart of the training process of the causal relationship assessment model provided in the embodiments of this specification;

[0057] Fig. 9 A flowchart of a method for processing equipment operation failure related data provided by another embodiment of this specification;

[0058] Fig.10 A schematic diagram of a device for processing data related to equipment operation failures provided in an embodiment of this specification;

[0059] Fig.11 An internal structural diagram of a computer device provided for an embodiment of this specification. DETAILED DESCRIPTION

[0060] 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 intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0061] Knowledge graph reasoning can be the process of inferring new knowledge and conclusions from existing knowledge. Knowledge graph reasoning can use previously acquired knowledge to generate new knowledge to solve problems and support decision-making. Knowledge graph reasoning can be applied to recommendation systems, intelligent dialogues, natural language processing and other fields to help humans understand and apply knowledge more efficiently.

[0062] The knowledge reasoning algorithm determines the performance of the system to a large extent, such as the meanrank and hit@10 of the link prediction task. Therefore, different knowledge reasoning algorithms need to be used according to different application scenarios and the scale and structure of the knowledge graph. There are currently three commonly used knowledge reasoning algorithms: the first is an algorithm based on vector representation, such as the translation-based algorithm TransE and the convolutional network-based algorithm convE (Convolutional Knowledge Graph Embeddings). The second is a path-based algorithm, such as the path ranking algorithm PRA (Path Ranking Algorithm). The third is a rule-based algorithm, such as AMIE (Associate Member of the Institution of Engineers) and RuleN (Rule Network Algorithm). The above knowledge reasoning algorithms are limited by the different structures and sizes of knowledge graphs. Therefore, for knowledge graphs with few relationships, how to construct a knowledge reasoning model that adapts to the system and has complete performance is a key issue.

[0063] When constructing a knowledge reasoning model, an algorithm with good performance will be selected. For example, TransE, a knowledge reasoning algorithm with good performance, can be selected. However, after analysis by the inventor, it is found that the scoring function of TransE is h+rt, which will limit the reasoning ability of the TransE model. The Transformer model can solve the above problems well due to its unique attention mechanism. When constructing a knowledge reasoning model, the Transformer model is introduced to increase the reasoning ability of the knowledge reasoning model, and the Transformer model is applied to the construction of a knowledge reasoning model in the smart building operation and maintenance scenario. Furthermore, combined with the small number of relationships between entities in the smart building operation and maintenance scenario, which is usually around 10, such as relationships involving at least one of 8 categories, 9 categories, 10 categories, 11 categories or 12 categories, that is, the building smart operation and maintenance knowledge graph has the characteristic of few relationships compared with other types of knowledge graphs. Based on the building smart operation and maintenance knowledge graph with few relationships, the inventor innovatively proposes to treat the relationship between entities as a category for multi-classification prediction, and fuse entity features with relationship features to make full use of the characteristics of entities and relationships for binary classification scoring, improve the reasoning effect in the building smart operation and maintenance scenario, and maintain a reliable operation and maintenance environment.

[0064] Based on this, the implementation manner of this specification provides a method for processing data related to equipment operation faults. First, the fault causal relationship between the first entity and the second entity is obtained, and the cause and process of the fault occurrence are better understood and analyzed through the obtained fault causal relationship between the first entity and the second entity. Then, the first fused feature data corresponding to the first entity and the second entity and the causal relationship representation data of the fault causal relationship are feature fused to obtain second fused feature data; finally, the fault causal relationship is evaluated based on the second fused feature data to obtain evaluation data for describing the possibility of a fault causal relationship between the first entity and the second entity. The possibility of a fault causal relationship between the first entity and the second entity is described by the evaluation data to determine whether the fault causal relationship can be regarded as the real cause of the fault between the first entity and the second entity, thereby improving the reliability of the fault causal relationship between the first entity and the second entity, so as to maintain the reliability of the operation and maintenance environment. The method for processing data related to equipment operation faults provided in the implementation manner of this specification can be applied to Figure 1a The building intelligent operation and maintenance knowledge graph reasoning system can include three modules, namely, data processing module, relationship prediction module and relationship scoring module. The data processing module includes entity and relationship extraction module and TransE initialization module. The data processing module is used to extract the entities and relationships required to construct the knowledge graph from the collected maintenance records of building intelligent operation and maintenance and process them into knowledge graph triples. Please refer to Figure 1b, use the TransE initialization module to initialize the vectors of the head entity (head), tail entity (tail), and relation (relation) of the knowledge graph triple, and you can get the head entity vector, tail entity vector, and relation vector. Finally, organize the data format for use by subsequent modules. The relation prediction module includes the feature extraction module, the Transformer module, and the MLP multi-classification network module. Please continue to refer to Figure 1b The relationship prediction module is used to extract features from the head entity vector and tail entity vector in the building intelligent operation and maintenance knowledge graph processed by the TransE initialization module to obtain the feature matrix A. The feature matrix A is input into the encoder (Transformer Encoder1) module and then the matrix A is output. 1 , the matrix A 1 Then input the MLP multi-classification network module for relationship prediction. The relationship scoring module includes feature fusion module, Transformer module and logistic regression binary classification network module. Please continue to refer to Figure 1b The relationship scoring module is used to fuse the relationship vectors in the building intelligent operation and maintenance knowledge graph processed by the TransE initialization module and the feature matrix A in the relationship prediction module to obtain the feature matrix B. The feature matrix B is input into the encoder (Transformer Encoder2) module and then the matrix B is output. 1 , the matrix B 1 Then input the logistic regression binary classification network for relationship scoring. The building intelligent operation and maintenance knowledge graph reasoning system has a clear hierarchical structure, and each functional module is independent of each other, which can achieve high performance. It can realize the rapid and accurate reasoning of the building intelligent operation and maintenance knowledge graph. After a new triple event occurs, it can score the authenticity of the event, and can also predict the relationship between entity pairs with unknown relationships to help the entity pairs analyze the cause of the failure. In this way, a reliable operation and maintenance environment can be maintained, providing users with a good user experience.

[0065] This specification provides a method for processing data related to equipment operation failures. Figure 1c , the method may include the following steps:

[0066] S110: Acquire a fault causal relationship between the first entity and the second entity.

[0067] S120 , feature fusion is performed on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data.

[0068] Among them, entities are the basic units of information in the knowledge graph, and specific objects in the real world are represented by entities. In this embodiment, the first entity and the second entity are used to represent objects related to equipment operation failures. Entity types include equipment, components, fault phenomena, and fault causes. That is, the first entity or the second entity can be equipment related to equipment operation failures, can be components related to equipment operation failures, can be fault phenomena related to equipment operation failures, and can be fault causes related to equipment operation failures. Exemplarily, for example, the first entity can be an air conditioner, the second entity can be a compressor, and the relationship between the air conditioner entity and the compressor entity is that the compressor is a component of the air conditioner; the first entity can be a compressor, the second entity can be a compressor that is difficult to start, and the relationship between the compressor entity and the compressor start difficulty entity is a fault. The first entity can be a capacitor damage, the second entity can be a compressor that is difficult to start, and the relationship between the capacitor damage entity and the compressor start difficulty entity is a causal relationship.

[0069] Among them, the first entity and the second entity correspond to the first fused feature data. The first fused feature data can be obtained by fusing the feature data of the first entity and the feature data of the second entity. Exemplarily, if the first entity is a compressor, the feature data of the first entity can be a vector representation obtained by embedding the text data "compressor"; if the second entity is a compressor that is difficult to start, the feature data of the second entity can be a vector representation obtained by embedding the text data "compressor is difficult to start"; the first fused feature data is a fused vector obtained by splicing the vector representation of the text data "compressor" with the vector representation of the text data "compressor is difficult to start".

[0070] Specifically, in order to evaluate the fault causal relationship between the first entity and the second entity, the fault causal relationship can be indirectly obtained by predicting the relationship between the first entity and the second entity; or the fault causal relationship between the provided first entity and the second entity can be directly obtained. In order to introduce the first fused feature data corresponding to the first entity and the second entity into the evaluation process of the fault causal relationship, the causal relationship representation data corresponding to the fault causal relationship is spliced ​​with the first fused feature data to obtain the second fused feature data. In some embodiments, please refer to Figure 1d , a relationship token may be added in front of the causal relationship representation data to mark the relationship represented by the causal relationship representation data. The marked causal relationship representation data 106 and the first fused feature data 102 are concatenated to obtain the second fused feature data 104. The token may be a string used to identify the identity of a vector.

[0071] S130 . Evaluate the fault causality based on the second fused feature data to obtain evaluation data for the fault causality.

[0072] The evaluation data is used to describe the possibility that a fault causal relationship exists between the first entity and the second entity.

[0073] Specifically, the second fused feature data can be input into the causality evaluation model, and the fault causality between the first entity and the second entity can be evaluated through the causality evaluation model to obtain evaluation data for the fault causality. The possibility of the real existence of the fault causality between the first entity and the second entity can be determined through the evaluation data of the fault causality.

[0074] In the above implementation, first, the fault causal relationship between the first entity and the second entity is obtained, and the cause and process of the fault occurrence are better understood and analyzed through the obtained fault causal relationship between the first entity and the second entity; then, the first fused feature data corresponding to the first entity and the second entity and the causal relationship representation data of the fault causal relationship are feature fused to obtain the second fused feature data; finally, the fault causal relationship is evaluated based on the second fused feature data to obtain evaluation data for describing the possibility of the existence of a fault causal relationship between the first entity and the second entity. The possibility of describing the fault causal relationship between the first entity and the second entity through the evaluation data is determined to determine whether the fault causal relationship can be regarded as the real cause of the fault between the first entity and the second entity, and the reliability of the fault causal relationship between the first entity and the second entity is improved to maintain the reliability of the operation and maintenance environment.

[0075] In some embodiments, see Figure 2 , obtaining a fault causal relationship between a first entity and a second entity may include the following steps:

[0076] S210: Obtain first fusion feature data corresponding to the first entity and the second entity.

[0077] S220 , performing relationship prediction based on the first fused feature data to obtain a fault causal relationship between the first entity and the second entity.

[0078] Specifically, the first entity and the second entity can be initialized in the relationship structure, and the first entity representation data of the first entity and the second entity representation data of the second entity can be obtained. The first entity representation data of the first entity and the second entity representation data of the second entity are feature fused to obtain first fused feature data corresponding to the first entity and the second entity. The first fused feature data can then be input into a causal relationship reasoning model for relationship prediction, and the fault causal relationship between the first entity and the second entity can be obtained through the causal relationship reasoning model.

[0079] In the above implementation, the first fused feature data corresponding to the first entity and the second entity are obtained, and a relationship prediction is performed based on the first fused feature data to obtain a fault causal relationship between the first entity and the second entity. By obtaining the fault causal relationship between the first entity and the second entity, the cause and process of the fault can be better understood and analyzed.

[0080] In some embodiments, see Figure 3a , performing relationship prediction based on the first fused feature data to obtain a fault causal relationship between the first entity and the second entity may include the following steps:

[0081] S310: Perform encoding processing and linear conversion according to the first fused feature data to obtain corresponding first target feature data.

[0082] The encoding process may refer to a process of converting one data format into another data format.

[0083] Specifically, the first fused feature data may be encoded and then linearly processed to obtain the corresponding first target feature data. This may be used to subsequently determine the fault causal relationship corresponding to the first fused feature data. For example, see Figure 3b , the first fused feature data can be input into the Transformer model, and the first fused feature data can be encoded by the InputEmbedding layer, Self-Attention layer, Norm layer, Feed Forward layer, and Norm layer included in the Transformer model in sequence, and the first fused feature data can be encoded by the Linear layer included in the Transformer model, and the first fused feature data can be linearly converted by the Linear layer, and the first fused feature data can be converted into a vector through the Linear layer to obtain the corresponding first target feature data. The formula that can be used in the Self-Attention layer is as follows:

[0084]

[0085] Among them, Attention represents the result of the self-attention layer of the Transformer model. Q, K, and V can be the query matrix, key matrix, and value matrix generated by the feature matrix for self-attention calculation. Softmax represents the normalization operation.

[0086] The formula for the Feed Forward layer of the Transformer model is as follows:

[0087] max(0,XW 1 +b 1 )W 2 +b 2

[0088] Among them, Feed Forward is a two-layer fully connected layer. The activation function of the first layer is the Relu function, and the second layer does not use an activation function.

[0089] S320 , performing normalization processing and classification processing according to the first target feature data to obtain a fault cause-effect relationship.

[0090] Among them, normalization is a method of data preprocessing, which is used to scale each feature of the data set to the same range (generally between 0 and 1). It can eliminate the proportional differences between different features and make the weights of different features more equal, thereby more accurately performing data analysis and modeling.

[0091] Specifically, the first target feature data may be normalized, and then the normalized first target feature data may be classified. The classification process may obtain the fault causal relationship between the first entity and the second entity.

[0092] For example, please refer to Figure 3b , the first target feature data can be input into the softmax layer contained in the Transformer model, and the first target feature data can be normalized through the softmax layer. Then the normalized first target feature data can be input into the MLP multi-classification network, and the fault causal relationship corresponding to the first target feature data can be predicted through the MLP multi-classification network. The output vector of the MLP multi-classification network can be directly used as the fault causal relationship. The MLP multi-classification network formula is as follows:

[0093] o=g(x,θ)

[0094] The output is o, which can be the predicted category in this embodiment; the input is x, which can be the vector after the linear transformation and normalization of the Transformer in this embodiment; g represents the mapping function of the network. The specific mapping function formula is as follows:

[0095]

[0096] Among them, θ represents the parameter group of the network, including the connection weights w, v, bias neurons b 1 、b 2etc. l represents the number of hidden layer neurons, and σ represents the activation function. The activation function used in this embodiment is the Sigmoid activation function, and its formula is as follows:

[0097]

[0098] In the above implementation, encoding processing and linear transformation are performed on the first fused feature data to obtain corresponding first target feature data, and normalization processing and classification processing are performed on the first target feature data to obtain the fault causal relationship. By obtaining the fault causal relationship between the first entity and the second entity, the cause and process of the fault can be better understood and analyzed.

[0099] In some embodiments, see Figure 4a The method for generating the first fusion feature data may include the following steps:

[0100] S410: Determine a first entity and a second entity related to a device operation failure.

[0101] S420: Perform feature fusion based on the first entity representation data of the first entity and the second entity representation data of the second entity to obtain first fused feature data.

[0102] Specifically, when a device operation failure occurs, a first entity and a second entity related to the device operation failure are determined; then the first entity and the second entity are initialized in a relationship structure to obtain first entity representation data of the first entity and second entity representation data of the second entity; and the first entity representation data of the first entity and the second entity representation data of the second entity are concatenated to obtain first fusion feature data.

[0103] In some embodiments, see Figure 4b , a head entity token may be added in front of the first entity representation data to mark the relationship represented by the first entity representation data, and a tail entity token may be added in front of the second entity representation data to mark the relationship represented by the second entity representation data. The marked first entity representation data 402 and the second entity representation data 404 are concatenated to obtain the first fused feature data 102. By adding identifiers, the first entity representation data and the second entity representation data can be distinguished, which is helpful for the subsequent learning of the causal relationship reasoning model and can improve the expression ability of the model.

[0104] In some embodiments, see Figure 5a , evaluating the fault causality based on the second fused feature data to obtain evaluation data for the fault causality may include the following steps:

[0105] S510: Perform encoding processing and linear conversion according to the second fused feature data to obtain corresponding second target feature data.

[0106] Specifically, the second fused feature data may be encoded and then linearly transformed to obtain corresponding second target feature data. The second target feature data may be used to subsequently evaluate the fault causal relationship corresponding to the second fused feature data to obtain evaluation data for the fault causal relationship.

[0107] For example, see Figure 5b , the second fused feature data can be input into the Transformer model, the second fused feature data can be sequentially passed through the Input Embedding layer, the Self-Attention layer, the Norm layer, the Feed Forward layer, and the Norm layer included in the Transformer model to realize encoding processing of the second fused feature data, and the encoded second fused feature data can be linearly converted through the Linear layer included in the Transformer model, and the encoded second fused feature data can be converted into a vector through the Linear layer to obtain the corresponding second target feature data.

[0108] S520: Perform normalization and classification processing on the second target feature data to obtain evaluation data.

[0109] Specifically, the second target feature data may be normalized, and then the normalized second target feature data may be classified. The classification process may evaluate the fault causal relationship corresponding to the second fused feature data to obtain evaluation data for the fault causal relationship.

[0110] For example, see Figure 5b , the second target feature data can be input into the softmax layer contained in the Transformer model, and the second target feature data can be normalized through the softmax layer. Then the normalized second target feature data can be input into the logistic regression binary classification network, and the relationship score of the second target feature data can be performed through the logistic regression binary classification network. The logistic regression binary classification network formula is as follows:

[0111]

[0112] Wherein, g(z) represents the probability obtained by logistic regression, which is represented as the score of the relationship in this implementation. The formula of z is as follows:

[0113] z=h(w)=w 1 x 1 +w 2 x 2 +w 3 x 3 …+b

[0114] Where x represents the normalized vector, w and b represent the parameters of the network.

[0115] In the above implementation, encoding processing and linear transformation are performed on the second fused feature data to obtain corresponding second target feature data, and normalization processing and classification processing are performed on the second target feature data to obtain evaluation data. The authenticity of the fault causal relationship between the first entity and the second entity can be determined through the evaluation data to determine whether the fault causal relationship can be regarded as the true fault cause between the first entity and the second entity.

[0116] In some embodiments, see Figure 6a ,The causal relationship of the fault is obtained through the causal relationship reasoning model. The training process of the causal relationship reasoning model can include the following steps:

[0117] S610: Determine a maintenance data triplet based on maintenance record data.

[0118] Among them, the maintenance data triple includes head entity representation data, tail entity representation data, and relationship representation data. The head entity representation data can be a vector corresponding to the head entity, the tail entity representation data can be a vector corresponding to the tail entity, and the relationship representation data can be a vector corresponding to the relationship. The head entity and the tail entity refer to the two entities involved in a relationship. The head entity is the subject in the relationship, and the tail entity is the object in the relationship. A relationship refers to a certain connection or association between the head entity and the tail entity. The entities determined based on the maintenance record data can include four entity types, namely large equipment (such as air conditioners), small components (such as compressors included in air conditioners), fault phenomena (such as air conditioners cannot cool down), and fault causes (such as capacitor damage).

[0119] For example, see Figure 6b, the air conditioner can be the head entity, the compressor can be the tail entity, and the component can be the relationship between the air conditioner entity and the compressor entity, that is, the compressor is a component of the air conditioner. The compressor can be the head entity, the capacitor can be the tail entity, and the component can be the relationship between the compressor entity and the capacitor entity, that is, the capacitor is a component of the compressor. The air conditioner can be used as the head entity, the inability to cool can be used as the tail entity, and the fault can be the relationship between the air conditioner entity and the inability to cool entity, that is, the fault of the air conditioner is the inability to cool. The compressor can be used as the head entity, the compressor startup difficulty can be used as the tail entity, and the fault can be the relationship between the compressor entity and the compressor startup difficulty entity, that is, the compressor startup difficulty. The capacitor can be used as the head entity, the capacitor damage can be used as the tail entity, and the fault can be the relationship between the capacitor entity and the capacitor damage entity, that is, the capacitor fault is the capacitor damage. The capacitor damage can be used as the head entity, the compressor startup difficulty can be used as the tail entity, and the relationship between the capacitor damage entity and the compressor startup difficulty entity is a causal relationship, that is, the capacitor damage can cause the compressor to start difficulty. The compressor startup difficulty can be used as the head entity, the inability to cool can be used as the tail entity, and the relationship between the compressor startup difficulty entity and the inability to cool entity is a causal relationship, that is, the compressor startup difficulty can cause the inability to cool.

[0120] S620: Input the head entity representation data and the tail entity representation data into the causal relationship reasoning model for prediction to obtain predicted causal relationship data.

[0121] In some cases, the occurrence of a fault phenomenon is caused by a fault cause. The head entity can be the fault phenomenon, the tail entity can be the fault cause, and the tail entity fault cause can be the cause of the occurrence of the head entity fault phenomenon. There is a causal relationship between the two. In the knowledge graph, a causal connection line can be established between the fault cause and the fault phenomenon to better understand and analyze the cause and process of the fault. Figure 6b The head entity failure phenomenon may be that the air conditioner cannot cool down, and the tail entity failure cause may be capacitor damage. The causal reasoning model can be used to analyze the relationship between the inability to cool down and capacitor damage; the head entity failure phenomenon may be that the air conditioner cannot cool down, and the tail entity failure cause may be lack of refrigerant. The causal reasoning model can be used to analyze the relationship between the inability to cool down and lack of refrigerant.

[0122] Specifically, the maintenance data triples including head entity representation data, tail entity representation data and relationship representation data can be determined through the maintenance record data. The head entity representation data and the tail entity representation data can be feature fused to obtain a feature matrix, and then the obtained feature matrix is ​​input into the causal relationship reasoning model for prediction. The predicted causal relationship data between the head entity representation data and the tail entity representation data can be obtained through the causal relationship reasoning model.

[0123] Exemplarily, the causal reasoning type can be composed of a Transformr model and an MLP multi-classification network model; the causal reasoning type can also be composed of a CNN model (convolutional neural network model) and an MLP multi-classification network model.

[0124] S630: Update the parameters of the causal relationship reasoning model based on the predicted causal relationship data and the relationship representation data until the model training stop condition is met.

[0125] Specifically, based on the obtained predicted causal relationship data and the relationship representation data in the maintenance data triplet, the loss value of the causal relationship reasoning model can be determined, and the parameters of the initial causal relationship reasoning model can be updated based on the model loss value. Similarly, the updated initial causal relationship reasoning model continues to be trained, and when the model training stop condition is reached, the target causal relationship reasoning model can be obtained. Among them, the model training stop condition can be that the model loss value tends to converge, or that the training rounds reach a preset number of rounds.

[0126] In the above implementation, the maintenance data triples are determined based on the maintenance record data, the head entity representation data and the tail entity representation data are input into the causal relationship reasoning model for prediction, and the predicted causal relationship data are obtained. The parameters of the causal relationship reasoning type are updated based on the predicted causal relationship data and the relationship representation data until the model training stop condition is met. By training the causal relationship reasoning model, the relationship between entities can be predicted, and by determining the relationship between entities, the fault detection of the equipment can be realized.

[0127] In some embodiments, see Figure 7a , determining the maintenance data triplet based on the maintenance record data may include the following steps:

[0128] S710: Extract data and construct a graph based on the maintenance record data to obtain a corresponding maintenance knowledge graph.

[0129] Among them, graph construction can refer to building a graph containing entities, attributes and relationships by collecting, integrating, analyzing and organizing various data and information.

[0130] Specifically, maintenance record data can be collected through actual application situations, and natural language processing technology can be used to perform entity recognition and relationship extraction on maintenance record data, and entities and relationships can be extracted from maintenance record data, wherein the types of extracted relationships are sufficiently streamlined, and the accuracy of predicting relationships between entities can be improved by streamlining the types of relationships. There are usually about 10 types of relationships, and in the subsequent process of predicting the relationship between entities through the causal relationship reasoning model, the relationship between entities can be used as predicted causal relationship data. Then the extracted entities and relationships can be organized into a graph to obtain the corresponding maintenance knowledge graph to realize the graph construction of maintenance record data.

[0131] S720. Initialize the maintenance knowledge graph in terms of relational structure through a vector translation model to obtain a maintenance data triple that can reflect the relational structure between the head entity and the tail entity.

[0132] Specifically, by initializing the maintenance knowledge graph in terms of relational structure through a vector translation model, head entity representation data, tail entity representation data, and relational representation data can be obtained. The head entity representation data, tail entity representation data, and relational representation data obtained through the vector translation model all contain feature identifiers, and the feature identifiers can be used to distinguish which head entity representation data, tail entity representation data, and relational representation data are in the same set of maintenance data triples. The head entity representation data, tail entity representation data, and relational representation data can constitute a maintenance data triple that reflects the relational structure between the head entity and the tail entity. Exemplarily, the vector translation model can be a TransE model. Please refer to Figure 7b Through the TransE model, the head entity, tail entity, and relationship in the relational structure of the maintenance knowledge graph can be initialized, and the head entity vector, tail entity vector, and relationship vector can be obtained. The head entity vector, tail entity vector, and relationship vector can constitute a maintenance data triple.

[0133] It should be noted that before using the TransE model, the TransE model needs to be trained. The triples of the knowledge graph to be initialized can be used as the input of the TransE model, and the triples of the knowledge graph to be initialized are initialized in terms of relational structure. The loss function formula of the TransE model during initialization is as follows:

[0134]

[0135] in, represents the loss function, S represents the triple set of the knowledge graph to be initialized; h represents the head entity in the triple set of the knowledge graph to be initialized; t represents the tail entity in the triple set of the knowledge graph to be initialized; h′ represents the replaced head entity; t′ represents the replaced tail entity; l represents the relationship in the triple set of the knowledge graph to be initialized; γ represents an interval for setting the initial value, which can be set to 1.0; S′ (h,l,t) Represents a set of negative examples that randomly replaces the head entity or the tail entity. The definition formula is as follows:

[0136] S′ (h,l,t) ={(h′,l,t)∣h′∈E}∪{(h,l,t′)∣t′∈E}

[0137] Among them, E can represent the set of triples of the initialized knowledge graph except (h, l, t).

[0138] d(h+l,t) represents the distance function defined by the TransE model. The distance formula of d(h+l,t) is as follows:

[0139] d(h+l,t)=(h+lt) 2

[0140] Based on the loss function, the parameters of the TransE model can be updated until the expected effect is achieved, and the training of the TransE model can be stopped.

[0141] In the above implementation, data extraction and graph construction are performed based on the maintenance record data to obtain the corresponding maintenance knowledge graph. The maintenance record data can be processed into a knowledge graph with few relations. The maintenance knowledge graph is initialized in the relational structure through a vector translation model to obtain maintenance data triples that can reflect the relationship structure between the head entity and the tail entity. The quality of the maintenance data triples can be guaranteed, that is, the quality of subsequent application module training is guaranteed.

[0142] In some embodiments, see Figure 8 , the evaluation data is obtained through the causal relationship evaluation model. The training process of the causal relationship evaluation model can include the following steps:

[0143] S810: Determine maintenance data triples based on maintenance record data and construct a positive sample set.

[0144] Among them, the maintenance data triplet includes head entity representation data, tail entity representation data, and relationship representation data. The positive sample set can be a data set containing positive examples used for training and testing in machine learning algorithms. Positive examples refer to samples that meet specific standards or conditions. For example, in a binary classification problem, positive examples usually refer to the target category required for classification. In machine learning algorithms, positive sample sets are very important. Positive sample sets can train models to identify positive examples and perform predictions and classifications in subsequent applications.

[0145] Specifically, entities and relationships used to construct maintenance data triples can be extracted from maintenance record data. If the relationship between the first entity and the second entity is accurate, that is, the relationship can represent the association between the first entity and the second entity, the first entity, the second entity, and the relationship between the first entity and the second entity can be determined as positive samples. The positive samples are initialized in the relationship structure through the vector translation model to obtain positive sample triples. Multiple groups of positive sample triplets can constitute a positive sample set.

[0146] S820: For any maintenance data triple, replace the entity representation data in any maintenance data triple to obtain a corresponding negative sample triple, and construct a negative sample set.

[0147] The entity representation data is the head entity representation data or the tail entity representation data. A negative sample set may refer to a set of samples that are not related to the target classification and are marked as negative in the samples used to train the model in machine learning. Negative samples are usually randomly selected data that do not contain target features and are used to train the model to distinguish between positive and negative samples.

[0148] In some cases, the negative sample set can enable the model to effectively learn negative class features and reduce the model's misjudgment rate.

[0149] Specifically, for any maintenance data triplet, the head entity representation data in any maintenance data triplet can be replaced with the entity representation data of the remaining maintenance data triples except the maintenance data triplet, or the tail entity representation data in any maintenance data triplet can be replaced with the entity representation data of the remaining maintenance data triples except the maintenance data triplet, or the head entity representation data and the tail entity representation data in any maintenance data triplet can be replaced with the entity representation data of the remaining maintenance data triples except the maintenance data triplet, and the maintenance data triplet that realizes the replacement of entity representation data can be determined as a negative sample triplet, and multiple groups of negative sample triplets can constitute a negative sample set.

[0150] For example, there are maintenance data triples (h, l, t), (h 1 ,l 1 ,t1 )、(h 2 ,l 2 ,t 2 ). The head entity representation data h of the maintenance data triple (h, l, t) can be replaced to obtain (h 1 ,l,t)、(t 2 ,l,t) and other negative sample triplets. The tail entity representation data t of the maintenance data triple (h,l,t) can be replaced to obtain (h,l,t 2 )、(h,l,h 1 ) and other negative sample triplets. The head entity representation data h and the tail entity representation data t of the maintenance data triple (h, l, t) can be replaced to obtain (h 1 ,l,t 2 )、(h 2 ,l,t 1 )、(h 2 ,l,h 1 ) and other negative sample triplets.

[0151] S830, screening the negative sample set based on the similarity between any maintenance data triplet and the negative sample triplet, obtaining negative samples corresponding to the similarity that meet preset conditions, and constructing a target negative sample set.

[0152] The similarity may refer to the degree of similarity between two objects or a measure of the degree of similarity. Commonly used similarity measurement methods may include cosine similarity, Euclidean distance, Hamming distance, and Jaccard similarity. The preset condition may be set according to actual conditions, and the preset condition may be to select the maximum similarity.

[0153] In some cases, by selecting the negative sample triples that are most similar to the repair data triples as the target negative samples, the learning expression ability of the model can be improved, and more accurate evaluation of the causal evaluation data can be performed.

[0154] Specifically, any maintenance data triplet M may correspond to multiple groups of negative sample triplets. The similarity between each group of negative sample triplets in the multiple negative sample triplets corresponding to the maintenance data triplet M and the maintenance data triplet M may be calculated to obtain the similarity value between each group of negative sample triplets and the maintenance data triplet M. Then, the similarity value between each group of negative sample triplets and the maintenance data triplet M may be screened, and the negative sample triplet corresponding to the largest similarity value may be taken as the target negative sample. Multiple groups of maintenance data triplets correspond to multiple groups of target negative samples, and multiple groups of target negative samples may constitute a target negative sample set.

[0155] For example, the maintenance data triplet M corresponds to the negative sample triplet C, D, and E. The similarity value V between the maintenance data triplet M and the negative sample triplet C can be obtained by the cosine similarity method. 1 is 0.74. The similarity value V between the maintenance data triplet M and the negative sample triplet D can be obtained by the cosine similarity method. 2 is 0.89. The similarity value V between the maintenance data triplet M and the negative sample triplet E can be obtained by the cosine similarity method. 3 is 0.70. Compare the similarity value V 1 、V 2 、V 3 , we can conclude that the maximum value is the similarity value V 2 , so the similarity value V 2 The corresponding negative sample triplet D is used as the negative sample of the maintenance data triplet M.

[0156] S840: Train the causal relationship assessment model based on the target negative sample set and the positive sample set until a model training stop condition is met.

[0157] In some cases, the relationship between the inability to cool down and capacitor damage, as well as the relationship between the inability to cool down and lack of refrigerant, can be evaluated through a causal relationship assessment model, and evaluation data of the relationship between the inability to cool down and capacitor damage, can be obtained. Evaluation data of the relationship between the inability to cool down and lack of refrigerant can be obtained. Through the evaluation data, it can be determined whether the relationship between the inability to cool down and capacitor damage, as well as the relationship between the inability to cool down and lack of refrigerant is accurate. If it is accurate, the relationship can be used to infer the existence of equipment faults.

[0158] Specifically, the label of each negative sample in the target negative sample set can be set to 0, and the label of a positive sample in the positive sample set can be set to 1. The target negative sample set and the positive sample set can be used as inputs of the causal relationship evaluation model to obtain causal relationship evaluation data. Based on the obtained causal relationship evaluation data and labels, the loss value of the causal relationship evaluation model can be determined, and the parameters of the initial causal relationship evaluation model can be updated based on the model loss value. Similarly, the updated initial causal relationship evaluation model continues to be trained, and when the model training stop condition is reached, the target causal relationship evaluation model can be obtained. The model training stop condition can be that the model loss value tends to converge, or that the training rounds reach a preset number of rounds.

[0159] In some implementations, a threshold may be set, and the threshold may be set in combination with actual conditions. The evaluation data of the causal relationship exceeding the threshold is set to 1, and the evaluation data of the causal relationship not exceeding the threshold is set to 0.

[0160] Exemplarily, the causal relationship evaluation model can be composed of a Transformr model and a logistic regression binary classification network model.

[0161] In the above implementation, maintenance data triples are determined based on maintenance record data, and a positive sample set is constructed. For any maintenance data triple, the entity representation data in any maintenance data triple is replaced to obtain the corresponding negative sample triple, and a negative sample set is constructed. The negative sample set is screened based on the similarity between any maintenance data triple and the negative sample triple to obtain negative samples corresponding to the similarity that meets the preset conditions, and a target negative sample set is constructed. The causal relationship evaluation model is trained based on the target negative sample set and the positive sample set until the model training stop condition is met. The evaluation data of the fault causal relationship can be determined by the trained causal relationship evaluation model, and the authenticity of the fault causal relationship between the first entity and the second entity can be determined by the evaluation data to determine whether the fault causal relationship can be regarded as the true cause of the fault between the first entity and the second entity.

[0162] The present specification also provides a method for processing data related to equipment operation failure. Fig. 9 The method for processing data related to equipment operation failure may include the following steps:

[0163] S902: Determine a first entity and a second entity related to the device operation failure.

[0164] The first entity and the second entity are used to represent objects related to the equipment operation failure.

[0165] S904: Perform feature fusion based on the first entity representation data of the first entity and the second entity representation data of the second entity to obtain first fused feature data.

[0166] S906: Perform encoding processing and linear conversion according to the first fused feature data to obtain corresponding first target feature data.

[0167] S908. Perform normalization and classification processing according to the first target feature data to obtain a fault cause-effect relationship.

[0168] S910 , feature fusion is performed on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data.

[0169] S912. Perform encoding processing and linear conversion according to the second fused feature data to obtain corresponding second target feature data.

[0170] S914. Perform normalization and classification processing according to the second target feature data to obtain evaluation data.

[0171] The evaluation data is used to describe the possibility that a fault causal relationship exists between the first entity and the second entity.

[0172] This specification provides a device 1000 for processing data related to equipment operation failures. Fig.10 The device 1000 for processing equipment operation fault related data includes: a fault causal relationship acquisition module 1010, a fusion feature data determination module 1020, and an evaluation data determination module 1030.

[0173] A fault causal relationship acquisition module 1010 is used to acquire a fault causal relationship between a first entity and a second entity; wherein the first entity and the second entity are used to represent objects related to the equipment operation fault; and the first entity and the second entity correspond to first fusion feature data;

[0174] A fused feature data determination module 1020 is used to perform feature fusion on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data;

[0175] The evaluation data determination module 1030 is used to evaluate the fault causal relationship based on the second fused feature data to obtain evaluation data for the fault causal relationship; wherein the evaluation data is used to describe the possibility of the existence of the fault causal relationship between the first entity and the second entity.

[0176] For a detailed description of the device for processing data related to equipment operation failures, reference may be made to the description of the method for processing data related to equipment operation failures above, which will not be repeated here.

[0177] In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.11As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing data related to equipment operation failure is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0178] Those skilled in the art will understand that Fig.11 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution disclosed in this specification, and does not constitute a limitation on the computer device to which the solution disclosed in this specification is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0179] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the method steps in the above embodiments when executing the computer program.

[0180] An embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.

[0181] One embodiment of the present specification provides a computer program product, which includes instructions. When the instructions are executed by a processor of a computer device, the computer device can perform the steps of the method of any of the above embodiments.

[0182] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

Claims

1. A method for processing data related to equipment operation failure, characterized in that: The method is applicable to a knowledge reasoning model, wherein the knowledge reasoning model includes a causal relationship reasoning model and a causal relationship evaluation model, wherein the causal relationship reasoning model includes a first encoder and a multi-classification model, and wherein the causal relationship evaluation model includes a second encoder and a binary classification model. The method includes: Acquire first fusion feature data corresponding to a first entity and a second entity; wherein the first entity and the second entity are used to represent objects related to the equipment operation failure; the first entity is any one of equipment, a component in the equipment, a fault phenomenon, and a fault cause; the second entity is any one of equipment, a component in the equipment, a fault phenomenon, and a fault cause; Using the first encoder to process the first fused feature data to obtain normalized first target feature data; Performing relationship prediction on the normalized first target feature data through the multi-classification model to obtain a fault causal relationship between the first entity and the second entity; wherein the fault causal relationship is used to represent a predicted fault cause between the first entity and the second entity; Performing feature fusion on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data; Using the second encoder to perform data processing on the second fused feature data to obtain normalized second target feature data; The normalized second target feature data is evaluated by the binary classification model to obtain evaluation data for the fault causal relationship to determine whether the fault causal relationship can be regarded as the real fault cause between the first entity and the second entity; wherein the evaluation data is used to describe the possibility of the existence of the fault causal relationship between the first entity and the second entity.

2. The method according to claim 1, characterized in that The using the first encoder to perform data processing on the first fused feature data to obtain normalized first target feature data includes: Performing encoding processing and linear conversion according to the first fused feature data to obtain corresponding first target feature data; Normalization processing is performed on the first target feature data to obtain the normalized first target feature data.

3. The method according to claim 1, characterized in that The obtaining of first fusion feature data corresponding to the first entity and the second entity includes: Determining a first entity and a second entity associated with a device operation failure; The first fused feature data is obtained by performing feature fusion based on the first entity representation data of the first entity and the second entity representation data of the second entity.

4. The method according to claim 1, characterized in that: The using the second encoder to perform data processing on the second fused feature data to obtain normalized second target feature data includes: Performing encoding processing and linear conversion according to the second fused feature data to obtain corresponding second target feature data; Normalization processing is performed on the second target feature data to obtain the normalized second target feature data.

5. The method according to claim 1, characterized in that The training process of the causal relationship inference model includes: Determine a maintenance data triple based on the maintenance record data; wherein the maintenance data triple includes head entity representation data, tail entity representation data, and relationship representation data; Inputting the head entity representation data and the tail entity representation data into the causal relationship reasoning model for prediction to obtain predicted causal relationship data; The parameters of the causal relationship reasoning model are updated based on the predicted causal relationship data and the relationship representation data until a model training stop condition is met.

6. The method according to claim 5, characterized in that The step of determining the maintenance data triplet based on the maintenance record data includes: Data extraction and graph construction are performed based on maintenance record data to obtain the corresponding maintenance knowledge graph; The maintenance knowledge graph is initialized in terms of relational structure through a vector translation model to obtain maintenance data triples that can reflect the relational structure between the head entity and the tail entity.

7. The method according to claim 1, characterized in that The training process of the causal relationship evaluation model includes: Determine maintenance data triples based on maintenance record data and construct a positive sample set; wherein the maintenance data triples include head entity representation data, tail entity representation data, and relationship representation data; For any maintenance data triple, replace the entity representation data in the maintenance data triple to obtain a corresponding negative sample triple, and construct a negative sample set; wherein the entity representation data is the head entity representation data or the tail entity representation data; Based on the similarity between any maintenance data triplet and the negative sample triplet, the negative sample set is screened to obtain negative samples corresponding to the similarity that meet the preset conditions, and a target negative sample set is constructed; The causal relationship assessment model is trained based on the target negative sample set and the positive sample set until a model training stop condition is met.

8. A device for processing data related to equipment operation failure, characterized in that: The device is applicable to a knowledge reasoning model, wherein the knowledge reasoning model includes a causal relationship reasoning model and a causal relationship evaluation model, wherein the causal relationship reasoning model includes a first encoder and a multi-classification model, and wherein the causal relationship evaluation model includes a second encoder and a binary classification model. The device includes: A fusion feature data acquisition module, used to acquire first fusion feature data corresponding to a first entity and a second entity; wherein the first entity and the second entity are used to represent objects related to the equipment operation failure; the first entity is any one of equipment, a component in the equipment, a fault phenomenon and a fault cause; the second entity is any one of equipment, a component in the equipment, a fault phenomenon and a fault cause; a first fused feature data processing module, configured to use the first encoder to perform data processing on the first fused feature data to obtain first target feature data that has been normalized; a fault causal relationship determination module, configured to perform relationship prediction on the normalized first target feature data through the multi-classification model to obtain a fault causal relationship between the first entity and the second entity; wherein the fault causal relationship is used to represent a predicted fault cause between the first entity and the second entity; a fused feature data determination module, configured to perform feature fusion on the first fused feature data and the causal relationship representation data of the fault causal relationship to obtain second fused feature data; A second fused feature data processing module is provided, which is used to use the second encoder to perform data processing on the second fused feature data to obtain normalized second target feature data; an evaluation data determination module is provided, which is used to evaluate the normalized second target feature data through the binary classification model to obtain evaluation data for the fault causal relationship to determine whether the fault causal relationship can be regarded as the real fault cause between the first entity and the second entity; wherein the evaluation data is used to describe the possibility of the existence of the fault causal relationship between the first entity and the second entity.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.