Mechanical and electrical equipment fault diagnosis method, device, electronic device and storage medium
By acquiring unstructured and structured data of electromechanical equipment, establishing and integrating fault map diagnosis models, the problem of low accuracy of fault diagnosis of electromechanical equipment is solved, and more efficient fault diagnosis and interpretability are achieved.
Patent Information
- Application Number
- CN202310166413.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-02-24
AI Technical Summary
The accuracy of fault diagnosis of electromechanical equipment in the existing technology is low, and the efficiency of fault diagnosis cannot be effectively improved.
By acquiring unstructured and structured data of electromechanical equipment, an initial fault map diagnosis model is established, and data map fusion is performed to form a target fault map diagnosis model to improve diagnostic accuracy.
It improves the accuracy and interpretability of fault diagnosis of electromechanical equipment, effectively integrates unstructured and structured data, and improves fault diagnosis efficiency.
Smart Images

Figure CN116108183B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment fault diagnosis, and in particular to a method, device, electronic device and storage medium for diagnosing electromechanical equipment faults. Background Art
[0002] With the rapid development of the manufacturing industry, electromechanical equipment has become an indispensable part of production and manufacturing. The safety and reliability of electromechanical equipment have become the key to the operation process. Fault diagnosis of electromechanical equipment is an important part of prediction and maintenance management.
[0003] In the field of electromechanical equipment fault diagnosis, a large amount of unstructured data such as fault cases and fault repair methods as well as structured data monitored by sensors of key components have been accumulated. However, the current knowledge and data have not been effectively organized and utilized, and the efficiency of electromechanical equipment fault diagnosis cannot be effectively improved.
[0004] Therefore, in the prior art, there is a problem of low diagnostic accuracy during the process of diagnosing mechanical and electrical equipment faults. Summary of the invention
[0005] In view of this, it is necessary to provide a method, device, electronic device and storage medium for diagnosing electromechanical equipment faults, so as to solve the problem of low diagnostic accuracy in the process of diagnosing electromechanical equipment faults in the prior art.
[0006] In order to solve the above problems, the present invention provides a method for diagnosing a fault of an electromechanical device, comprising:
[0007] Obtain unstructured data samples and structured data samples of electromechanical equipment failure samples;
[0008] Establishing an initial fault spectrum diagnosis model, the initial fault spectrum diagnosis model includes multiple fault spectrum layers;
[0009] Organically aggregate unstructured data to determine the unstructured data map of the initial fault map diagnosis model;
[0010] Organically aggregate the structured data to determine the structured data graph of the initial fault graph diagnosis model;
[0011] According to the unstructured data graph and the structured data graph, the initial fault graph diagnosis model is fused with data graphs to obtain the target fault graph diagnosis model;
[0012] Unstructured data and / or structured data of the electromechanical equipment to be diagnosed are obtained, and the fault diagnosis result of the electromechanical equipment to be diagnosed is determined based on the target fault spectrum diagnosis model.
[0013] Further, the multiple fault map layers include at least two of a fault layer, a location layer, a fault mode layer, a measurement point layer, a symptom layer, a fault cause layer, and a treatment measure layer; establishing an initial fault map diagnosis model includes:
[0014] According to multiple fault spectrum layers, multiple layer nodes are correspondingly determined;
[0015] According to multiple layer nodes, the triple relationship of the initial fault spectrum diagnosis model is determined.
[0016] Further, the plurality of layer nodes include at least two of a fault node, a location node, a fault mode node, a measurement point node, a symptom node, a fault cause node, and a treatment measure node; and according to the plurality of layer nodes, a triple relationship of an initial fault spectrum diagnosis model is determined, including:
[0017] Determine the location relationship based on the fault node and the location node;
[0018] and / or;
[0019] Determine the fault relationship based on the location node and the fault mode node;
[0020] and / or;
[0021] According to the failure mode node and the symptom node, determining the symptom relationship;
[0022] and / or;
[0023] Determine the detection relationship according to the measuring point node and the fault mode node;
[0024] and / or;
[0025] Determine the cause relationship based on the symptom nodes and fault cause nodes;
[0026] and / or;
[0027] Determine the processing relationship based on the fault cause node and the processing measure node.
[0028] Furthermore, the unstructured data is organically aggregated to determine the unstructured data graph of the initial fault graph diagnosis model, including:
[0029] Perform BIOES annotation on unstructured data to obtain initial text vocabulary data, and input the initial text vocabulary data into the word segmentation model based on the BiLSTM-CRF algorithm to obtain the corresponding text vocabulary data;
[0030] According to multiple fault graph layers, the text vocabulary data is classified to obtain a matching template library;
[0031] The matching template library is input into the Skip-gram model for training to determine the unstructured data graph of the initial fault graph diagnosis model.
[0032] Furthermore, the text vocabulary data is classified according to multiple fault graph layers to obtain a matching template library, including:
[0033] Classify the text vocabulary data according to multiple fault map layers to obtain layer text vocabulary data corresponding to each fault map layer;
[0034] According to the layer text vocabulary data and based on the triple relationship, the text data relationship is determined to obtain a matching template library.
[0035] Furthermore, the structured data is organically aggregated to determine the structured data graph of the initial fault graph diagnosis model, including:
[0036] Construct a fault diagnosis model, input structured data into the fault diagnosis model, and determine the corresponding fault classification results;
[0037] According to the fault classification result, determine the structured fault mode node of the structured data;
[0038] According to the triple relationship and the structured fault mode node, the structured location node and the structured measurement point node of the structured data are determined;
[0039] According to the structured position nodes, the structured fault mode nodes and the structured measuring point nodes, a structured data graph of the initial fault graph diagnosis model is determined.
[0040] Furthermore, according to the unstructured data graph and the structured data graph, the initial fault graph diagnosis model is fused with data graphs to obtain a target fault graph diagnosis model, including:
[0041] According to the unstructured data graph and the structured data graph, an unstructured position node, a structured position node, an unstructured fault mode node, and a structured fault mode node are obtained;
[0042] Determine whether the unstructured location node and the structured location node are consistent;
[0043] If not, the structured location node is added as a new node to the unstructured location node;
[0044] If so, determine whether the unstructured fault mode node and the structured fault mode node are consistent. If not, add the structured fault mode node as a new node to the unstructured fault mode node. If so, merge the unstructured fault mode node and the structured fault mode node, and merge the unstructured position node and the structured position node to obtain the target fault spectrum diagnosis model.
[0045] In order to solve the above problems, the present invention further provides a device for diagnosing faults of electromechanical equipment, comprising:
[0046] A sample acquisition module, used to acquire unstructured data samples and structured data samples of electromechanical equipment fault samples;
[0047] A model building module, used to build an initial fault spectrum diagnosis model, the initial fault spectrum diagnosis model includes multiple fault spectrum layers;
[0048] An unstructured data graph determination module is used to organically aggregate unstructured data and determine an unstructured data graph of an initial fault graph diagnosis model;
[0049] A structured data graph determination module is used to organically aggregate structured data and determine the structured data graph of the initial fault graph diagnosis model;
[0050] A model fusion module is used to fuse the initial fault graph diagnosis model according to the unstructured data graph and the structured data graph to obtain the target fault graph diagnosis model;
[0051] The fault diagnosis module is used to obtain unstructured data / structured data of the electromechanical equipment to be diagnosed, and determine the fault diagnosis result of the electromechanical equipment to be diagnosed based on the target fault spectrum diagnosis model.
[0052] In order to solve the above problems, the present invention also provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, a method for diagnosing electromechanical equipment faults as described in any of the above technical solutions is implemented.
[0053] In order to solve the above problems, the present invention also provides a storage medium, in which computer program instructions are stored. When the computer program instructions are executed by a computer, a method for diagnosing electromechanical equipment faults as described in any of the above technical solutions is implemented.
[0054] The beneficial effect of adopting the above-mentioned embodiment is: the present invention provides a method, device, electronic device and storage medium for electromechanical equipment fault diagnosis, the method comprising: establishing an initial fault spectrum diagnosis model, the initial fault spectrum diagnosis model comprising multiple fault spectrum layers; performing data spectrum fusion on the initial fault spectrum diagnosis model according to the unstructured data spectrum and the structured data spectrum to obtain a target fault spectrum diagnosis model; determining the unstructured data spectrum by organically aggregating the unstructured data to obtain rich nodes and relationships; determining the structured data spectrum by organically aggregating the structured data to obtain accurate fault nodes; since the fault spectrum diagnosis model comprises multiple fault spectrum layers, it is possible to realize the fusion of the unstructured data spectrum and the structured data spectrum, thereby effectively improving the accuracy and interpretability of electromechanical equipment fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for diagnosing a fault of an electromechanical device provided by the present invention;
[0056] Figure 2 A schematic diagram of a flow chart of an embodiment of determining an initial fault spectrum diagnosis model provided by the present invention;
[0057] Figure 3 A schematic diagram of a flow chart of an embodiment of determining a triple relationship of an initial fault spectrum diagnosis model provided by the present invention;
[0058] Figure 4 A schematic diagram of a process for determining an unstructured data graph according to an embodiment of the present invention;
[0059] Figure 5 A schematic diagram of a flow chart of an embodiment of determining a matching template library provided by the present invention;
[0060] Figure 6 A schematic diagram of a process for determining a structured data graph according to an embodiment of the present invention;
[0061] Figure 7 A schematic diagram of a flow chart of an embodiment of obtaining a target fault spectrum diagnostic model provided by the present invention;
[0062] Figure 8 A structural block diagram of an embodiment of a device for diagnosing mechanical and electrical equipment faults provided by the present invention;
[0063] Fig. 9 This is a structural block diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0064] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0065] Before describing the implementation example, the knowledge graph is first described:
[0066] Knowledge Graph, known as knowledge domain visualization or knowledge domain mapping map in the library and information community, is a series of various graphs that show the development process and structural relationship of knowledge. It uses visualization technology to describe knowledge resources and their carriers, and to mine, analyze, construct, draw and display knowledge and their mutual connections. It is a modern theory that combines the theories and methods of applied mathematics, graphics, information visualization technology, information science and other disciplines with metrological citation analysis, co-occurrence analysis and other methods, and uses visualized graphs to vividly display the core structure, development history, frontier fields and overall knowledge architecture of the discipline to achieve the purpose of multidisciplinary integration.
[0067] In the field of electromechanical equipment fault diagnosis, due to the wide range of electromechanical equipment use and long service time, a large amount of unstructured data such as fault cases and fault repair methods as well as structured data monitored by sensors of key components have been accumulated. However, the current knowledge and data have not been effectively organized and utilized, and the efficiency of electromechanical equipment fault diagnosis cannot be effectively improved.
[0068] Therefore, in the prior art, there is a problem of low diagnostic accuracy during the process of diagnosing mechanical and electrical equipment faults.
[0069] In order to solve the above problems, the present invention provides a method, device, electronic device and storage medium for diagnosing faults of electromechanical equipment, which are described in detail below.
[0070] like Figure 1 As shown, Figure 1 This is a flow chart of an embodiment of a method for diagnosing a fault of an electromechanical device provided by the present invention. The method for diagnosing a fault of an electromechanical device includes:
[0071] Step S101: obtaining unstructured data samples and structured data samples of electromechanical equipment fault samples;
[0072] Step S102: establishing an initial fault spectrum diagnosis model, wherein the initial fault spectrum diagnosis model includes multiple fault spectrum layers;
[0073] Step S103: organically aggregate the unstructured data to determine the unstructured data graph of the initial fault graph diagnosis model;
[0074] Step S104: performing organic aggregation on the structured data to determine the structured data graph of the initial fault graph diagnosis model;
[0075] Step S105: performing data graph fusion on the initial fault graph diagnosis model according to the unstructured data graph and the structured data graph to obtain a target fault graph diagnosis model;
[0076] Step S106: Obtain unstructured data / structured data of the electromechanical device to be diagnosed, and determine the fault diagnosis result of the electromechanical device to be diagnosed based on the target fault spectrum diagnosis model.
[0077] In this embodiment, first, unstructured data samples and structured data samples of electromechanical equipment fault samples are obtained; secondly, an initial fault spectrum diagnosis model is established, and the initial fault spectrum diagnosis model includes multiple fault spectrum layers; next, the unstructured data is organically aggregated to determine the unstructured data spectrum of the initial fault spectrum diagnosis model; the structured data is organically aggregated to determine the structured data spectrum of the initial fault spectrum diagnosis model; then, according to the unstructured data spectrum and the structured data spectrum, the initial fault spectrum diagnosis model is subjected to data spectrum fusion to obtain a target fault spectrum diagnosis model; finally, the unstructured data / structured data of the electromechanical equipment to be diagnosed is obtained, and based on the target fault spectrum diagnosis model, the fault diagnosis result of the electromechanical equipment to be diagnosed is determined.
[0078] In this embodiment, the acquired unstructured data and structured data of the electromechanical equipment fault are analyzed and processed through the fault graph diagnosis model. The unstructured data is organically aggregated to obtain rich nodes and relationships, and the unstructured data graph is determined; the structured data is organically aggregated to obtain accurate fault nodes and determine the structured data graph. Since the fault graph diagnosis model includes multiple fault graph layers, it can realize the fusion of unstructured data graphs and structured data graphs, thereby effectively improving the accuracy of electromechanical equipment fault diagnosis.
[0079] It should be noted that in this embodiment, fault diagnosis is performed using existing data. When fault diagnosis is performed on the electromechanical equipment to be diagnosed, the basis for the diagnosis result can be found. Therefore, the explainability of the electromechanical equipment fault diagnosis can be effectively improved.
[0080] As a preferred embodiment, in step S101, M types of electromechanical equipment fault sample sources are collected, wherein the unstructured data includes electromechanical equipment fault history documents, and the structured data includes laboratory measurement fault data and public data sets.
[0081] As a preferred embodiment, in step S102, the multiple fault map layers include at least two of a fault layer, a location layer, a fault mode layer, a measurement point layer, a symptom layer, a fault cause layer, and a treatment measure layer, and the initial fault map diagnosis model also includes multiple nodes and relationships, such as Figure 2 As shown, Figure 2 The present invention provides a flow chart of an embodiment of determining an initial fault spectrum diagnostic model, wherein determining the initial fault spectrum diagnostic model includes:
[0082] Step S121: determining a plurality of layer nodes corresponding to a plurality of fault spectrum layers;
[0083] Step S122: Determine the triple relationship of the initial fault spectrum diagnosis model according to multiple layer nodes.
[0084] In this embodiment, firstly, a plurality of layer nodes are correspondingly determined according to a plurality of fault graph layers; then, a triple relationship of an initial fault graph diagnosis model is determined according to the plurality of layer nodes.
[0085] In this embodiment, multiple fault map layers are classified and distinguished to obtain corresponding multiple layer nodes. Further, the corresponding triple relationship is determined by comparing and fusing the multiple layer nodes to determine the correlation between the multiple fault map layers.
[0086] In a specific embodiment, the fault layer is the top layer of the fault map, the location layer describes the specific electromechanical components of the electromechanical equipment that have failed, the fault mode layer describes the specific type of electromechanical component failure, the symptom layer describes the manifestation of the electromechanical equipment failure, the measurement point layer node describes the measurement items of each sensor in a certain electromechanical component, the fault cause layer describes the cause of the fault, and the treatment measure layer describes the treatment measures when a certain fault occurs. The fault map hierarchical model is recorded as Tree = {fault, loc, dev, mod, dec, per, rea, mea}.
[0087] In other embodiments, the number of fault map layers may be adjusted according to other classification methods based on actual needs, and classification may be performed according to other rules, which are not limited here.
[0088] As a preferred embodiment, in step S121, the plurality of layer nodes include at least two of a fault node, a location node, a fault mode node, a measurement point node, a symptom node, a fault cause node and a treatment measure node.
[0089] In other embodiments, the layer nodes may be classified according to other classification methods based on actual needs, which is not limited here.
[0090] In a specific embodiment, a fault is a top event node, denoted as fault; a location node is denoted as loc={loc1, loc2, ..., loc n}; the fault mode node is recorded as mood = {mod1, mod2, ..., mod n}; the symptom node is recorded as per = {per1, per2, ..., per n}; the measuring point node is recorded as dec = {dec1, dec2, ..., dec n}; The nodes in the fault cause layer are recorded as rea = {rea1, rea2, ..., rea n}; The processing measure node is recorded as mea = {mea1, mea2, ..., mea n Each layer of nodes in the fault graph is filled with specific information extracted from the text.
[0091] As a preferred embodiment, in step S122, in order to determine the triple relationship of the initial fault spectrum diagnosis model, such as Figure 3 As shown, Figure 3 The present invention provides a flow chart of an embodiment of determining a triple relationship of an initial fault spectrum diagnosis model. Determining the triple relationship of the initial fault spectrum diagnosis model includes:
[0092] Step S1221: determining the position relationship according to the fault node and the position node; and / or;
[0093] Step S1222: determining the fault relationship according to the location node and the fault mode node; and / or;
[0094] Step S1223: determining, based on the fault mode node and the symptom node, that there is a symptom relationship; and / or;
[0095] Step S1224: determining a detection relationship according to the measuring point node and the fault mode node; and / or;
[0096] Step S1225: determining the cause relationship according to the symptom node and the fault cause node; and / or;
[0097] Step S1226: Determine the processing relationship according to the fault cause node and the processing measure node.
[0098] In this embodiment, by analyzing the relationships between fault nodes, location nodes, fault mode nodes, measurement point nodes, symptom nodes, fault cause nodes and treatment measure nodes respectively, the relationship between each pair of nodes is determined, thereby determining the relationship between the corresponding fault graph layers.
[0099] In a specific embodiment, the fault layer has a relationship with the location layer <occurrence location>, the location layer has a relationship with the fault mode layer <occurrence of fault>, the fault mode layer has a relationship with the symptom layer <having symptom>, the measurement point layer has a relationship with the fault mode layer <perform detection>, the symptom layer has a relationship with the fault cause layer <occurrence cause>, and the fault cause layer has a relationship with the treatment measure layer <perform treatment>. That is, the relationship between nodes is shown in the following table:
[0100] Parent Node relation Subordinate Node fault Occurrence location <![CDATA[loc n ]]> <![CDATA[loc n ]]> Failure <![CDATA[mod n ]]> <![CDATA[mod n ]]> With symptoms <![CDATA[per n ]]> <![CDATA[dec n ]]> Conduct testing <![CDATA[mod n ]]> <![CDATA[per n ]]> Cause <![CDATA[rea n ]]> <![CDATA[rea n ]]> Processing <![CDATA[tre n ]]>
[0101] Furthermore, the fault graph is composed of relation triples, which are represented by (upper node, relation, lower node). For triple relations, each triple is (fault, occurrence location, loc n ), (loc n , malfunction, mod n ), (mod n , with signs, per n ), (dec n , perform detection, mod n ), (per n , cause,rea n ), (rea n , process, mea n ).
[0102] It should be noted that in other embodiments, the number of layer nodes can be adjusted according to actual needs, that is, the number of triple relationships can be set according to actual needs in the fault graph diagnosis model, and the number of layer nodes and setting rules can be adaptively adjusted, which is not limited here.
[0103] As a preferred embodiment, in step S103, in order to determine the unstructured data graph, such as Figure 4 As shown, Figure 4 A schematic diagram of a process of determining an unstructured data graph according to an embodiment of the present invention, wherein determining an unstructured data graph includes:
[0104] Step S131: perform BIOES annotation on the unstructured data to obtain initial text vocabulary data, and input the initial text vocabulary data into a word segmentation model based on the BiLSTM-CRF algorithm to obtain corresponding text vocabulary data;
[0105] Step S132: classifying the text vocabulary data according to the multiple fault graph layers to obtain a matching template library;
[0106] Step S133: input the matching template library into the Skip-gram model for training to determine the unstructured data graph of the initial fault graph diagnosis model.
[0107] In this embodiment, first, the unstructured data is annotated with BIOES to obtain initial text vocabulary data, and the initial text vocabulary data is input into a word segmentation model based on the BiLSTM-CRF algorithm to obtain corresponding text vocabulary data; then, the text vocabulary data is classified according to multiple fault graph layers to obtain a matching template library; finally, the matching template library is input into the Skip-gram model for training to determine the unstructured data graph of the initial fault graph diagnosis model.
[0108] In this embodiment, the unstructured data is processed into initial text vocabulary data through BIOES annotation, and the initial text vocabulary data is further processed based on the word segmentation model of the BiLSTM-CRF algorithm to obtain the corresponding text vocabulary data, thereby ensuring the accuracy of the text vocabulary data finally obtained; then, the text vocabulary data is classified and processed based on the fault map layer as the allocation basis to obtain the matching template library, thereby realizing the fusion of the unstructured data into the initial fault map diagnosis model; further, the matching template library is input into the Skip-gram model for training, thereby effectively improving the versatility and adaptability of the matching template library, and greatly improving the reliability of the unstructured data map.
[0109] In a specific embodiment, in step S131, after the acquired unstructured data is used as an initial corpus for word segmentation and useless word removal, the word segmentation results in the initial corpus are manually annotated using the "BIOES" annotation specification, where "B" represents the first Chinese character of a word, "I" represents the middle Chinese character of a word, "E" represents the last Chinese character of a word, "S" represents that the word has only one Chinese character, and "O" represents an irrelevant character, thereby obtaining an annotated word segmentation text as text vocabulary data.
[0110] For example, if there is no lubricant or the lubrication is not in place, the area around the rolling element will be dry and cause serious wear, the word segmentation and useless word removal are performed, and then sequence annotation is performed. The annotation results are shown in the following table:
[0111] like fruit without have Run slip Agent Run slip No arrive Bit roll move O O B I I I E B I I I E B I body week Wai Dry Dry shape state make become strict Heavy grind damage I O O B I I E O O B I I E
[0112] Furthermore, in order to obtain the corresponding text vocabulary data, it is also necessary to process the above-mentioned annotated initial text vocabulary data according to the word segmentation model based on the BiLSTM-CRF algorithm to obtain the corresponding text vocabulary data.
[0113] It should be noted that the BiLSTM-CRF algorithm corresponds one-to-one to the above-mentioned "BIOES" annotation specification. The word segmentation model can determine the text vocabulary data corresponding to the initial text vocabulary data through program operation according to the mapping relationship in the BiLSTM-CRF algorithm.
[0114] Further, in step S132, in order to obtain a matching template library, as Figure 5 As shown, Figure 5 The present invention provides a flowchart of an embodiment of determining a matching template library, wherein determining the matching template library includes:
[0115] Step S1321: classifying text vocabulary data according to multiple fault map layers to obtain layer text vocabulary data corresponding to each fault map layer;
[0116] Step S1322: According to the layer text vocabulary data and based on the triple relationship, determine the text data relationship and obtain a matching template library.
[0117] In this embodiment, first, the text vocabulary data is classified according to multiple fault graph layers to obtain layer text vocabulary data corresponding to each fault graph layer; then, according to the layer text vocabulary data, based on the triple relationship, the text data relationship is determined to obtain a matching template library.
[0118] In this embodiment, the relationship between the layer text vocabulary data is fused based on the triple relationship, so as to determine the text data relationship, which effectively improves the viscosity of the unstructured data in the matching template library.
[0119] In a specific embodiment, the text vocabulary data is organically aggregated and divided into a location layer (loc), a fault mode layer (mod), a symptom layer (per), a fault cause layer (rea), and a treatment measure layer (tre), which are represented by "l", "m", "p", "r", and "t", respectively. After the text vocabulary data is classified and labeled, it is used as a matching template library.
[0120] Among them, some examples of matching template libraries are shown in the table:
[0121]
[0122] As a preferred embodiment, in step S104, in order to determine the structured data graph, such as Figure 6 As shown, Figure 6 A schematic diagram of a flow chart of an embodiment of determining a structured data graph provided by the present invention, wherein determining a structured data graph includes:
[0123] Step S141: construct a fault diagnosis model, input the structured data into the fault diagnosis model, and determine the corresponding fault classification result;
[0124] Step S142: determining a structured fault mode node of the structured data according to the fault classification result;
[0125] Step S143: determining the structured position nodes and structured measurement point nodes of the structured data according to the triple relationship and the structured fault mode nodes;
[0126] Step S144: Determine a structured data graph of an initial fault graph diagnosis model according to the structured position nodes, the structured fault mode nodes and the structured measurement point nodes.
[0127] In this embodiment, first, a fault diagnosis model is constructed, structured data is input into the fault diagnosis model, and the corresponding fault classification result is determined; secondly, the structured fault mode node of the structured data is determined according to the fault classification result; then, the structured position node and structured measurement point node of the structured data are determined according to the triple relationship and the structured fault mode node; finally, the structured data graph of the initial fault graph diagnosis model is determined according to the structured position node, the structured fault mode node and the structured measurement point node.
[0128] In this embodiment, the structured data is analyzed and processed through the fault diagnosis model to obtain the corresponding fault classification results, which can effectively improve the efficiency of determining the fault classification results corresponding to the structured data; further, by fusing the triple relationship and the structured fault mode node, the structured position node and the structured measurement point node of the structured data are determined, and the fusion of the structured data and the data triple relationship is realized, thereby effectively improving the reliability of the structured data map.
[0129] In a specific embodiment, the electromechanical equipment sensor data is derived from laboratory data and online public data sets, wherein the electromechanical equipment parts data sets include bearing fault data sets, gear fault data sets, shaft fault data sets, rotor fault data sets, and the like.
[0130] The position nodes are divided into bearings, gears, shafts, rotors, etc. according to the structured data set of electromechanical equipment sensor faults. The fault mode nodes use the fault names marked in each type of electromechanical component fault data set as the nodes of this layer. The bearing fault modes are divided into normal, bearing inner ring fault, bearing outer ring fault, and bearing rolling element fault. The measurement point nodes use the marked names of the measured values as the nodes of this layer; taking the bearing fault data set as an example, the bearing acceleration vibration data is used as the classification basis for the measurement point nodes.
[0131] In a specific embodiment, in step S141, the structured data of each type of electromechanical component is used as a sample, which is input into the LSTM network algorithm for learning and training to establish a fault diagnosis model for this electromechanical component. Taking the bearing fault data as an example, there are four fault modes: normal, bearing inner ring fault, bearing outer ring fault and rolling element fault. 8000 samples of the running data of each fault mode are randomly selected as a training set, and each sample contains 2048 continuous sampling points, which are used as the running data set. In the network model, the input dimension of the LSTM layer is 1, the hidden layer dimension is 20, and the number of layers is 2; the Flatten layer is introduced to perform one-dimensional processing on the upper layer output; the linear layer is introduced, the input dimension is 2048*20, and the output dimension is 128; the relu activation function is introduced; the dropout layer is introduced to prevent overfitting; the linear layer is introduced, the input dimension is 128, and the output dimension is 4. When loading the training set, the batchsize is selected as 8, the cross entropy function is used as the loss function, and Adam is used as the optimizer, and a total of 200 iterations are performed. 2048 consecutive sampling points of the data to be classified are selected as samples and input into the fault diagnosis model to obtain accurate fault classification results.
[0132] As a preferred embodiment, in step S105, in order to obtain the target fault spectrum diagnosis model, such as Figure 7 As shown, Figure 7 The present invention provides a flow chart of an embodiment of obtaining a target fault spectrum diagnostic model, wherein obtaining the target fault spectrum diagnostic model includes:
[0133] Step S151: obtaining an unstructured position node, a structured position node, an unstructured fault mode node, and a structured fault mode node according to the unstructured data graph and the structured data graph;
[0134] Step S152: determining whether the unstructured location node and the structured location node are consistent;
[0135] Step S153: if not, adding the structured location node as a new node to the unstructured location node;
[0136] Step S154: If yes, determine whether the unstructured fault mode node and the structured fault mode node are consistent. If not, add the structured fault mode node as a new node to the unstructured fault mode node. If yes, merge the unstructured fault mode node and the structured fault mode node, merge the unstructured position node and the structured position node, and obtain the target fault spectrum diagnosis model.
[0137] In this embodiment, first, according to the unstructured data graph and the structured data graph, an unstructured position node, a structured position node, an unstructured fault mode node, and a structured fault mode node are obtained; secondly, it is determined whether the unstructured position node and the structured position node are consistent. When the unstructured position node and the structured position node are inconsistent, the structured position node is added as a new node to the unstructured position node to improve the integrity of the unstructured position node; when the unstructured position node and the structured position node are consistent, it is determined whether the unstructured fault mode node and the structured fault mode node are consistent. When the unstructured fault mode node and the structured fault mode node are inconsistent, the structured fault mode node is added as a new node to the unstructured fault mode node to improve the integrity of the unstructured fault mode node; when the unstructured fault mode node and the structured fault mode node are consistent, the unstructured fault mode node and the structured fault mode node are merged, and the unstructured position node and the structured position node are merged to reduce the redundancy of the unstructured fault mode node, and obtain the target fault graph diagnosis model.
[0138] In a specific embodiment, according to the knowledge triples (fault, occurrence location, loc n ), (loc n , malfunction, mod n ), (mod n , with signs, per n ), (per n , cause,rea n ), (rea n , process, mea n ), and the data triples in the structured data graph (loc n , malfunction, mod n ), (dec n , perform detection, mod n ), the fault location loc node and the fault mode mod node in the knowledge triple and the data triple are matched for the same items. If the same items are matched successfully, the two nodes are merged, and the subsequent nodes are continuously associated with this node to form a complete knowledge-data triple; if the match fails, the fault mode mod node is retained, and the (dec n , perform detection, mod n ) is added as a new triple to the knowledge triple to generate a complete knowledge-data triple.
[0139] Through the above method, the acquired unstructured data and structured data of electromechanical equipment faults are analyzed and processed through the fault spectrum diagnosis model, and the M-sourcesN-levels paradigm is constructed to collect M kinds of fault source data and aggregate them into N layers of fault spectrum; by organically aggregating the unstructured data, rich nodes and relationships are obtained, and the unstructured data spectrum is determined; by organically aggregating the structured data, accurate fault nodes are obtained, and the structured data spectrum is determined; because the fault spectrum diagnosis model includes multiple fault spectrum layers, it can realize the fusion of unstructured data spectrum and structured data spectrum, thereby effectively improving the accuracy of electromechanical equipment fault diagnosis.
[0140] In order to solve the above problems, the present invention also provides a mechanical and electrical equipment fault diagnosis device, such as Figure 8 As shown, Figure 8 This is a structural block diagram of an embodiment of a mechanical and electrical equipment fault diagnosis device provided by the present invention. The mechanical and electrical equipment fault diagnosis device 800 includes:
[0141] The sample acquisition module 801 is used to acquire unstructured data samples and structured data samples of electromechanical equipment fault samples;
[0142] A model building module 802 is used to build an initial fault spectrum diagnosis model, wherein the initial fault spectrum diagnosis model includes multiple fault spectrum layers;
[0143] The unstructured data graph determination module 803 is used to organically aggregate the unstructured data and determine the unstructured data graph of the initial fault graph diagnosis model;
[0144] The structured data graph determination module 804 is used to organically aggregate the structured data and determine the structured data graph of the initial fault graph diagnosis model;
[0145] The model fusion module 805 is used to perform data graph fusion on the initial fault graph diagnosis model according to the unstructured data graph and the structured data graph to obtain a target fault graph diagnosis model;
[0146] The fault diagnosis module 806 is used to obtain unstructured data and / or structured data of the electromechanical device to be diagnosed, and determine the fault diagnosis result of the electromechanical device to be diagnosed based on the target fault spectrum diagnosis model.
[0147] The present invention also provides an electronic device, such as Fig. 9 As shown, Fig. 9This is a structural block diagram of an embodiment of an electronic device provided by the present invention. The electronic device 900 can be a computing device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a server. The electronic device 900 includes a processor 901 and a memory 902, wherein the memory 902 stores a mechanical and electrical device fault diagnosis program 903.
[0148] In some embodiments, the memory 902 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 902 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the computer device. Further, the memory 902 may also include both an internal storage unit of the computer device and an external storage device. The memory 902 is used to store application software and various types of data installed in the computer device, such as program codes installed in the computer device. The memory 902 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the electromechanical device fault diagnosis program 903 may be executed by the processor 901, thereby realizing the electromechanical device fault diagnosis method of each embodiment of the present invention.
[0149] In some embodiments, the processor 901 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 902, such as executing a mechanical and electrical equipment fault diagnosis program.
[0150] This embodiment also provides a computer-readable storage medium on which a mechanical and electrical equipment fault diagnosis program is stored. When the computer program is executed by a processor, the mechanical and electrical equipment fault diagnosis method as described in any of the above technical solutions is implemented.
[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0152] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for diagnosing faults in electromechanical equipment, characterized in that: include: Obtain unstructured data samples and structured data samples of electromechanical equipment failure samples; Establishing an initial fault spectrum diagnosis model, wherein the initial fault spectrum diagnosis model includes a plurality of fault spectrum layers; Organically aggregating the unstructured data to determine an unstructured data graph of the initial fault graph diagnosis model; Organically aggregating the structured data to determine a structured data graph of the initial fault graph diagnosis model; According to the unstructured data graph and the structured data graph, data graph fusion is performed on the initial fault graph diagnosis model to obtain a target fault graph diagnosis model; Acquire unstructured data and / or structured data of the electromechanical device to be diagnosed, and determine a fault diagnosis result of the electromechanical device to be diagnosed based on the target fault spectrum diagnosis model; The multiple fault map layers include at least two of a fault layer, a location layer, a fault mode layer, a measurement point layer, a symptom layer, a fault cause layer, and a treatment measure layer; Establish an initial fault spectrum diagnosis model, including: According to the multiple fault map layers, correspondingly determining multiple layer nodes; Determining, according to the plurality of layer nodes, a triple relationship of the initial fault spectrum diagnosis model; Among them, the fault layer is the top layer of the fault map, the location layer describes the specific electromechanical components of the electromechanical equipment that have failed, the fault mode layer describes the specific type of electromechanical component failure, the symptom layer describes the manifestation of electromechanical equipment failure, the measurement point layer describes the measurement items of each sensor in a certain electromechanical component, the fault cause layer describes the cause of the fault, and the treatment measure layer describes the treatment measures when a certain fault occurs; The plurality of layer nodes include at least two of a fault node, a location node, a fault mode node, a measurement point node, a symptom node, a fault cause node, and a treatment measure node; The unstructured data is organically aggregated to determine the unstructured data graph of the initial fault graph diagnosis model, including: Performing BIOES annotation on the unstructured data to obtain initial text vocabulary data, and inputting the initial text vocabulary data into a word segmentation model based on the BiLSTM-CRF algorithm to obtain corresponding text vocabulary data; Classifying the text vocabulary data according to the multiple fault graph layers to obtain a matching template library; Inputting the matching template library into the Skip-gram model for training to determine the unstructured data graph of the initial fault graph diagnosis model; The structured data is organically aggregated to determine the structured data graph of the initial fault graph diagnosis model, including: Constructing a fault diagnosis model, inputting the structured data into the fault diagnosis model, and determining a corresponding fault classification result; Determining a structured fault mode node of the structured data according to the fault classification result; Determine the structured position node and the structured measurement point node of the structured data according to the triple relationship and the structured fault mode node; Determine a structured data graph of the initial fault graph diagnosis model according to the structured position nodes, the structured fault mode nodes and the structured measurement point nodes; According to the unstructured data graph and the structured data graph, the initial fault graph diagnosis model is subjected to data graph fusion to obtain a target fault graph diagnosis model, including: According to the unstructured data graph and the structured data graph, an unstructured position node, a structured position node, an unstructured fault mode node, and a structured fault mode node are obtained; Determining whether the unstructured location node and the structured location node are consistent; If not, adding the structured location node as a new node to the unstructured location node; If so, determine whether the unstructured fault mode node and the structured fault mode node are consistent. If not, add the structured fault mode node as a new node to the unstructured fault mode node. If so, merge the unstructured fault mode node and the structured fault mode node, merge the unstructured location node and the structured location node, and obtain the target fault spectrum diagnostic model.
2. The electromechanical equipment fault diagnosis method according to claim 1, characterized in that: The multiple layer nodes include at least two of a fault node, a location node, a fault mode node, a measurement point node, a symptom node, a fault cause node, and a treatment measure node; and according to the multiple layer nodes, determining a triple relationship of the initial fault spectrum diagnosis model includes: Determine a position relationship according to the fault node and the position node; and / or; Determine a fault occurrence relationship according to the location node and the fault mode node; and / or; Determining, according to the fault mode node and the symptom node, that there is a symptom relationship; and / or; Determining a detection relationship according to the measuring point node and the fault mode node; and / or; Determine a cause relationship according to the symptom node and the fault cause node; and / or; A processing relationship is determined according to the fault cause node and the processing measure node.
3. The electromechanical equipment fault diagnosis method according to claim 2, characterized in that: According to the multiple fault graph layers, the text vocabulary data is classified to obtain a matching template library, including: Classifying the text vocabulary data according to the multiple fault map layers to obtain layer text vocabulary data corresponding to each fault map layer; According to the layer text vocabulary data and based on the triple relationship, the text data relationship is determined to obtain a matching template library.
4. A mechanical and electrical equipment fault diagnosis device, characterized in that: include: A sample acquisition module, used to acquire unstructured data samples and structured data samples of electromechanical equipment fault samples; A model building module, used to build an initial fault spectrum diagnosis model, wherein the initial fault spectrum diagnosis model includes multiple fault spectrum layers; An unstructured data graph determination module, used to organically aggregate the unstructured data to determine the unstructured data graph of the initial fault graph diagnosis model; A structured data graph determination module, used to organically aggregate the structured data to determine the structured data graph of the initial fault graph diagnosis model; A model fusion module, used to perform data graph fusion on the initial fault graph diagnosis model according to the unstructured data graph and the structured data graph to obtain a target fault graph diagnosis model; A fault diagnosis module, used to obtain unstructured data and / or structured data of the electromechanical device to be diagnosed, and determine the fault diagnosis result of the electromechanical device to be diagnosed based on the target fault spectrum diagnosis model; The multiple fault map layers include at least two of a fault layer, a location layer, a fault mode layer, a measurement point layer, a symptom layer, a fault cause layer, and a treatment measure layer; Establish an initial fault spectrum diagnosis model, including: According to the multiple fault map layers, correspondingly determining multiple layer nodes; Determining, according to the plurality of layer nodes, a triple relationship of the initial fault spectrum diagnosis model; Among them, the fault layer is the top layer of the fault map, the location layer describes the specific electromechanical components of the electromechanical equipment that have failed, the fault mode layer describes the specific type of electromechanical component failure, the symptom layer describes the manifestation of electromechanical equipment failure, the measurement point layer describes the measurement items of each sensor in a certain electromechanical component, the fault cause layer describes the cause of the fault, and the treatment measure layer describes the treatment measures when a certain fault occurs; The plurality of layer nodes include at least two of a fault node, a location node, a fault mode node, a measurement point node, a symptom node, a fault cause node, and a treatment measure node; The unstructured data is organically aggregated to determine the unstructured data graph of the initial fault graph diagnosis model, including: Performing BIOES annotation on the unstructured data to obtain initial text vocabulary data, and inputting the initial text vocabulary data into a word segmentation model based on the BiLSTM-CRF algorithm to obtain corresponding text vocabulary data; Classifying the text vocabulary data according to the multiple fault graph layers to obtain a matching template library; Inputting the matching template library into the Skip-gram model for training to determine the unstructured data graph of the initial fault graph diagnosis model; The structured data is organically aggregated to determine the structured data graph of the initial fault graph diagnosis model, including: Constructing a fault diagnosis model, inputting the structured data into the fault diagnosis model, and determining a corresponding fault classification result; Determining a structured fault mode node of the structured data according to the fault classification result; Determine the structured position node and the structured measurement point node of the structured data according to the triple relationship and the structured fault mode node; Determine a structured data graph of the initial fault graph diagnosis model according to the structured position nodes, the structured fault mode nodes and the structured measurement point nodes; According to the unstructured data graph and the structured data graph, the initial fault graph diagnosis model is subjected to data graph fusion to obtain a target fault graph diagnosis model, including: According to the unstructured data graph and the structured data graph, an unstructured position node, a structured position node, an unstructured fault mode node, and a structured fault mode node are obtained; Determining whether the unstructured location node and the structured location node are consistent; If not, adding the structured location node as a new node to the unstructured location node; If so, determine whether the unstructured fault mode node and the structured fault mode node are consistent. If not, add the structured fault mode node as a new node to the unstructured fault mode node. If so, merge the unstructured fault mode node and the structured fault mode node, merge the unstructured location node and the structured location node, and obtain the target fault spectrum diagnostic model.
5. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for diagnosing faults of electromechanical equipment according to any one of claims 1 to 3 is implemented.
6. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the electromechanical equipment fault diagnosis method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Transformer fault diagnosis method and device based on knowledge graph, and electronic equipment
CN113112164A
Method and device for automatically creating fault knowledge graph of fault tree picture
CN114443856A
