A method of equipment fault diagnosis based on knowledge and data fusion drive

By constructing equipment fault maps, combining mechanism knowledge and operating data, and using optimized long-short-term memory network models and convolutional neural networks, the problem of difficulty in establishing mechanism models and data-driven methods requiring long-term accumulation of data in complex equipment fault diagnosis is solved. Achieving high accuracy and fast fault diagnosis.

CN114528897BActive Publication Date: 2024-08-23HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110851686.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-08-23
Estimated Expiration
2041-07-27

AI Technical Summary

Technical Problem

Existing equipment fault diagnosis methods are difficult to establish accurate mechanism models when faced with mixed faults of complex equipment, and data-driven methods require the accumulation of comprehensive data over a long period of time, making it difficult to meet the needs of real-time diagnosis.

Method used

Using a method driven by knowledge and data fusion, by extracting rules from equipment mechanism knowledge and symbolizing indicators, combined with an optimized two-way long short-term memory network model and convolutional neural network, an equipment fault map is constructed to achieve fault diagnosis.

Benefits of technology

It improves the accuracy and convergence speed of multi-fault classification, enables accurate identification and diagnosis of equipment faults in a short time, and is suitable for fault diagnosis of complex mechanical equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528897B
    Figure CN114528897B
Patent Text Reader

Abstract

The present invention discloses a method for equipment fault diagnosis based on knowledge and data fusion drive, including the following steps: S1. Collecting equipment mechanism knowledge and equipment operation data of the target equipment for diagnosis; S2. Extracting classification indicators in the equipment mechanism knowledge, and combining them to obtain the rule nodes of the spectrum; S3. Using the rule nodes as the classification basis, marking the equipment operation data; S4. Classifying through an improved long short-term memory network model, extracting the relationship between the rule nodes; S5. Combining the rule nodes with the node relationship to construct a fault spectrum; S6. Inputting the fault equipment data into the fault spectrum for classification, and outputting the fault type and related faults. The present invention aims at the problem that the traditional fault diagnosis method relies on single knowledge or data, and combines the equipment mechanism knowledge and the equipment operation data to construct a fault spectrum for diagnosis, thereby ensuring the full use of knowledge and data, and the accuracy of equipment fault diagnosis under multiple classifications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment fault diagnosis, and in particular to an equipment fault diagnosis method based on knowledge and data fusion drive. Background Art

[0002] Under the background of Industry 4.0, mechanical equipment is becoming increasingly large-scale, complex in structure, automated and intelligent in operation. Once abnormal failures occur in certain components, problems may occur in the entire equipment. Therefore, accurate and timely fault diagnosis and prediction are becoming increasingly important and have become a research hotspot in the field of intelligent manufacturing.

[0003] At present, equipment fault diagnosis is usually divided into mechanism modeling methods and data-driven methods. Among them, the method based on mechanism modeling only requires a small amount of detection data for analysis and diagnosis, and has a high accuracy rate for single fault judgment. For example, the article [Zheng Jinde et al. Mechanical fault diagnosis method based on adaptive empirical Fourier decomposition [J]. Journal of Mechanical Engineering, 2020, 56(09): 125-136.] proposed an adaptive empirical Fourier decomposition function for vibration data fault diagnosis, which can adaptively decompose a non-stationary signal into the sum of several Fourier intrinsic mode functions with physical meaning at instantaneous frequencies. [Lin Rong et al. Data enhancement algorithm for bearing fault diagnosis [J]. Computer Engineering and Applications, 2021, 57(07): 269-278.] The original vibration signal is resampled in the time domain to generate an analog signal, and then the amplitude of the signal is recalculated to offset the influence of time domain resampling and environmental noise on the energy of the original signal. The above methods solve the obvious single fault very well. However, due to the increasing complexity of modern equipment, mixed faults occur frequently and the cause mechanism is complex. Therefore, it is difficult to establish an accurate mathematical model simply by relying on mechanism modeling. The data-driven method does not need to understand the fault principle of mechanical equipment, but directly mines from the state data. With the development of the Internet of Things, it is easier to obtain state data, and data-driven equipment fault diagnosis has been well developed. For example, [Long et al. A New Convolutional Neural Network-Based Data-Driven Fault Diagnosis Method [J]. IEEE Transactions on Industrial Electronics, 2017.] proposed a convolutional neural network (CNN) based on LeNet-5 for fault diagnosis. This method converts the signal into a two-dimensional (2-D) image, extracts the features of the converted 2-D image, and eliminates the influence of manual features. [Liu Jing et al. Data fusion driven waste heat boiler valve regulation method [J]. Journal of Yanshan University, 2021, 45(01): 76-86+94.] proposed a cold air valve regulation prediction model based on oversampling decision tree and an inlet valve & bypass valve regulation prediction model based on LSTM-BP shared weight neural network, realizing data fusion driven waste heat boiler valve regulation. The above methods have achieved good results, but in practical applications, the data-driven method requires comprehensive data coverage of working conditions. In practical applications, it takes a long time to accumulate effective data, which is difficult to meet. Summary of the invention

[0004] In order to solve the problems of the prior art, the present invention provides a Fault Diagnosis Method for Equipment Driven by Knowledge and Data Fusion (FDM-KDF for short). First, the rules in the equipment mechanism knowledge are extracted and the indicators are symbolized, and the combination is used as the rule nodes of the fault map; secondly, the convolutional neural network and the attention mechanism are integrated through the optimized bidirectional long-short memory network model (OBiLSTM for short), and the fault classification prediction is performed and used as the extraction of the rule node relationship. Finally, a fault map of equipment mechanism knowledge and operation data is established to realize the map construction in the field of equipment fault diagnosis, and the effect of accurately identifying equipment faults by combining knowledge and data is achieved.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A device fault diagnosis method based on knowledge and data fusion drive includes the following steps:

[0007] S1: Collect text information and time series sample data about the target device for diagnosis, where the text information is used as device mechanism knowledge and the time series sample data is used as device operation data;

[0008] S2: Extract rules for equipment mechanism knowledge, symbolize the rules and extract index 1 (f1), index 2 (f2) and index n (f n );

[0009] S3: Combine and classify the extracted indicators to obtain different levels and different types of rule nodes of the knowledge graph, including first-level rule nodes (F1), second-level rule nodes F1-F2, ..., n-level rule nodes (F1-F2-...-F n );

[0010] S4: Use the rule nodes as the classification basis to mark the equipment operation data and divide them into data segments of uniform length;

[0011] S5: Classification training is performed through the improved long short-term memory network model to extract the classification relationship of the equipment operation data corresponding to the rule nodes at different levels in the graph;

[0012] S6: construct relationship triples by combining the rule nodes extracted from the mechanism knowledge and the node relationships extracted from the equipment operation data, and import the rule nodes and node relationships into the Neo4j database in the form of csv files to generate a fault map;

[0013] S7: Input the equipment fault data into the fault map for fault diagnosis, and obtain the fault diagnosis result and fault related information.

[0014] Furthermore, in step S3, the extracted indicators are combined and classified to obtain rule nodes at different levels of the knowledge graph:

[0015] According to the knowledge of equipment mechanism, the size, location, damage depth and other characteristics of equipment data are summarized as classification indicators, and the summarized indicators are symbolized, and the indicator symbols are combined as rule nodes. The first-level rule node F1 takes the minimum number of indicators (such as f1) as the basis for node division, and increases the number of indicators (such as f1, f2) on the basis of F1 to obtain a more detailed second-level rule node F1-F2, and even adds all indicator combinations (such as f1, f2, ..., f n ) of n-level rule nodes F1-F2-...-F n , rule nodes of the same level are divided into the same level, and the subordinate rule nodes (such as F1-F2) and the superior rule nodes (such as F1) are in a belong to (belongsto) relationship. Belongsto means that the subordinate rule node belongs to the superior rule node and is one of the classification types of the superior rule node. Nodes of multiple levels are combined to form a tree structure.

[0016] Furthermore, in step S5, classification training is performed through an improved long short-term memory network model to extract classification relationships of equipment operation data corresponding to rule nodes at different levels in the graph, including the following steps:

[0017] 1-1) One-Hot Encoding is used to mark the fault categories;

[0018] 1-2) Add one-dimensional convolutional neural network (1D-CNN) to extract local non-correlation features and weak periodicity of the original equipment operation data;

[0019] 1-3) A bidirectional long short-term memory network (BiLSTM) model is added to extract the contextual data features of the temporal data of the vibration signal processed by 1D-CNN. At the same time, a batch normalization (BN) layer and a Dropout layer are added to prevent overfitting;

[0020] 1-4) Take the global average of all feature values ​​in the BiLSTM channel and obtain the weight of each channel through the Sigmoid activation function. Finally, different channels are multiplied by different weights to realize the attention mechanism for the key feature channel domain;

[0021] 1-5) Repeat 1-3) to further extract contextual data features of temporal data;

[0022] 1-6) The final classification layer uses a Softmax multi-classifier to obtain the probability distribution of fault samples with different faults of the specified number of classifications, and uses the cross-entropy cost function as the verification loss function of the model to output the classification results.

[0023] Furthermore, in step S6, the rule nodes extracted according to the mechanism knowledge and the node relationships extracted according to the equipment operation data are used to construct a relationship triple, and the rule nodes and node relationships are imported into the Neo4j database in the form of a csv file to generate a fault map. The specific steps are as follows:

[0024] 2-1) Connect each rule node through the relationship to build a relationship triple (F1-F2-...-Fn, R n , F1-F2-...-F n-1 ), indicating that the n-level rule node F1-F2-...-Fn and the n-1-level rule node F1-F2-...-F n-1 The relationship between them is Rn;

[0025] 2-2) Save the relationship triples in the form of a csv table file, which contains the start node id (start_id), the start node name (start_name), the end node id (end_id), the end node name (end_name), and the relation column;

[0026] 2-3) Use py2neo to write Cypher database statements, including creating new nodes, creating new node attributes, creating new node relationships, deleting nodes and relationships, querying nodes, querying relationships, etc., to generate a graph construction model. Py2neo is the python driver package for the Neo4j database, and Cypher is a descriptive graph query language suitable for the Neo4j database.

[0027] 2-4) Read the rule node and node relationship csv file, import it into the Neo4j database through the graph construction model, and generate knowledge graph nodes, attributes, and relationships. Neo4j is a graph database that can generate and display knowledge graphs.

[0028] The beneficial effects of adopting the above technical solution are:

[0029] The present invention proposes a method for equipment fault diagnosis based on knowledge and data fusion drive. The method aims at the existing problems in equipment fault diagnosis, such as it is difficult to establish a mechanism model for complex fault types, and pure data drive ignores mechanism knowledge. The present invention improves the two processes of equipment fault mechanism modeling and fault type diagnosis based on the equipment fault diagnosis method driven by knowledge graph and improved long short-term memory network fusion. The improved knowledge graph and long short-term memory network algorithm of the present invention is called a method for equipment fault diagnosis based on knowledge and data fusion drive. The method realizes the transition from a model that simply relies on mechanism knowledge or data drive to a fault diagnosis driven by the fusion of data drive and knowledge guidance; and designs a model suitable for multi-fault classification to meet the needs of improving the accuracy of multi-classification and displaying fault information.

[0030] Compared with the traditional long short-term memory network algorithm, the present invention: (1) proposes a device fault diagnosis method based on knowledge and data fusion drive, which combines the equipment mechanism knowledge and equipment operation data for fault diagnosis, provides a construction idea of ​​equipment fault diagnosis field map, and effectively solves the problems of mixed fault mechanism difficult to describe and state big data processing difficulties; (2) constructs a knowledge graph model that integrates equipment mechanism knowledge and equipment operation data, materializes knowledge, extracts data feature relationships, and realizes the fusion of mechanism knowledge and equipment operation data; (3) proposes an optimized bidirectional long short-term memory network model OBiLSTM for multi-classification fault data, integrates convolutional neural network and attention mechanism, optimizes the hierarchical structure of traditional LSTM model, and improves the accuracy and convergence speed in multi-fault classification scenarios.

[0031] The method proposed in the present invention is applied to the faulty bearing dataset of Case Western Reserve University in the United States. Through experimental analysis, the effectiveness of the proposed equipment fault diagnosis method driven by knowledge and data fusion is verified. Compared with the 1DCNN-LSTM model, the fault diagnosis accuracy is improved by 2.52% when the fault classification is 97 categories. At the same time, compared with the LSTM model without the 1DCNN module, the accuracy is significantly improved and the model convergence speed is improved. In addition, the display of fault information and related faults can be realized, which can realize the accurate fault diagnosis of bearing components of mechanical equipment in the industrial field. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of equipment fault diagnosis method driven by knowledge and data fusion;

[0033] Figure 2 This is the optimized bidirectional long short-term memory network model framework diagram;

[0034] Figure 3 It is a diagram of the fault map construction process;

[0035] Figure 4It is a display diagram of the fault map query results;

[0036] Figure 5 This is a comparison chart of the accuracy of the LSTM model under different numbers of classifications;

[0037] Figure 6 This is a comparison chart of the accuracy of the OBiLSTM model under different numbers of classifications;

[0038] Figure 7 This is a comparison chart of the accuracy of the OBiLSTM model and other models under 97 types of faults;

[0039] Figure 8 This is a loss comparison chart of the OBiLSTM model and other models under 97 types of faults. DETAILED DESCRIPTION

[0040] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0041] The present invention uses industrial machinery equipment fault diagnosis as a carrier, knowledge graph and LSTM algorithm as the main algorithm framework, and its method flow is as follows: Figure 1 As shown, the following steps are included:

[0042] S1: Collect text information and time series sample data about the target device for diagnosis, where the text information is used as device mechanism knowledge and the time series sample data is used as device operation data;

[0043] S2: Extract rules for equipment mechanism knowledge, symbolize the rules and extract index 1 (f1), index 2 (f2) and index n (f n );

[0044] S3: Combine and classify the extracted indicators to obtain different levels and different types of rule nodes of the knowledge graph, including first-level rule nodes (F1), second-level rule nodes F1-F2, ..., n-level rule nodes (F1-F2-...-F n );

[0045] According to the knowledge of equipment mechanism, the size, location, damage depth and other characteristics of equipment data are summarized as classification indicators, and the summarized indicators are symbolized, and the indicator symbols are combined as rule nodes. The first-level rule node F1 takes the minimum number of indicators (such as f1) as the basis for node division, and increases the number of indicators (such as f1, f2) on the basis of F1 to obtain a more detailed second-level rule node F1-F2, and even adds all indicator combinations (such as f1, f2, ..., f n ) of n-level rule nodes F1-F2-...-F n, rule nodes of the same level are divided into the same level, and the subordinate rule nodes (such as F1-F2) and the superior rule nodes (such as F1) are in a belong to (belongsto) relationship. Belongsto means that the subordinate rule node belongs to the superior rule node and is one of the classification types of the superior rule node. Nodes of multiple levels are combined to form a tree structure.

[0046] S4: Use the rule nodes as the classification basis to mark the equipment operation data and divide them into data segments of uniform length;

[0047] S5: Classification training is performed through the improved long short-term memory network model to extract the classification relationship of the equipment operation data corresponding to the rule nodes at different levels in the graph. Figure 2 The OBiLSTM model structure diagram is shown, and the specific model layers and parameters are shown in Table 1;

[0048] Table 1 OBiLSTM model structure parameters

[0049] layer Output parameter enter input_1(InputLayer) [(None,100,3)] 0 conv1d(Conv1D) (None,91,16) 496 input_1[0][0] BiLSTM_1 (None,91,60) 11280 conv1d[0][0] batch_normalization_1 (None,91,60) 240 bidirectional[0][0] dropout_1(Dropout) (None,91,60) 0 batch_normalization[0][0] attention_vec(Permute) (None,91,60) 0 dropout[0][0] attention_mul(Multiply) (None,91,60) 0 attention_vec[0][0] BiLSTM_2 (None,60) 21840 attention_mul[0][0] batch_normalization_2 (None,60) 240 bidirectional_1[0][0] dropout_2(Dropout) (None,60) 0 batch_normalization_1[0][0] dense(Dense) (None,83) 5063 dropout_1[0][0]

[0050] The specific calculation process is as follows:

[0051] 1-1) One-Hot Encoding is used to mark the fault categories;

[0052] 1-2) Add one-dimensional convolutional neural network (1D-CNN) to extract local non-correlation features and weak periodicity of the original equipment operation data;

[0053] 1-3) A bidirectional long short-term memory network (BiLSTM) model is added to extract the contextual data features of the temporal data of the vibration signal processed by 1D-CNN. At the same time, a batch normalization (BN) layer and a Dropout layer are added to prevent overfitting;

[0054] 1-4) Take the global average of all feature values ​​in the BiLSTM channel and obtain the weight of each channel through the Sigmoid activation function. Finally, different channels are multiplied by different weights to realize the attention mechanism for the key feature channel domain;

[0055] 1-5) Repeat 1-3) to further extract contextual data features of temporal data;

[0056] 1-6) The final classification layer uses a Softmax multi-classifier to obtain the probability distribution of fault samples with different faults of the specified number of classifications, and uses the cross-entropy cost function as the verification loss function of the model to output the classification results.

[0057] S6: Construct relationship triples by combining the rule nodes extracted from the mechanism knowledge with the node relationships extracted from the equipment operation data, and import the rule nodes and node relationships into the Neo4j database in the form of csv files to generate a fault map. The process is as follows: Figure 3 As shown, the specific steps are as follows:

[0058] 2-1) Connect each rule node through the relationship to build a relationship triple (F1-F2-...-Fn, R n , F1-F2-...-F n-1 ), the triple represents the n-level rule node F1-F2-...-Fn and the n-1-level rule node F1-F2-...-F n-1 The relationship between them is Rn;

[0059] 2-2) Save the relationship triples in the form of a csv table file, which contains the start node id (start_id), the start node name (start_name), the end node id (end_id), the end node name (end_name), and the relation column;

[0060] 2-3) Use py2neo to write Cypher database statements, including creating new nodes, creating new node attributes, creating new node relationships, deleting nodes and relationships, querying nodes, querying relationships, etc., to generate a graph construction model. Py2neo is the python driver package for the Neo4j database, and Cypher is a descriptive graph query language suitable for the Neo4j database.

[0061] 2-4) Read the rule node and node relationship csv file, import it into the Neo4j database through the graph construction model, and generate knowledge graph nodes, attributes, and relationships. Neo4j is a graph database that can generate and display knowledge graphs.

[0062] S7: Input the equipment fault data into the fault map for fault diagnosis, and obtain the fault diagnosis result and fault related information.

[0063] Based on the above steps, the present invention effectively solves the problem of mechanical equipment fault diagnosis. First, the method summarizes the rules and indicators in the equipment mechanism knowledge, materializes the fault mechanism knowledge, and constructs rule nodes; secondly, through the optimized bidirectional long short-term memory network model, the convolutional neural network and the attention mechanism are integrated to perform fault classification prediction as the rule node relationship extraction. Finally, a fault map integrating the equipment mechanism knowledge and the equipment operation data is established to achieve the map construction in the field of equipment fault diagnosis, and the accurate classification of fault vibration signals is realized by combining knowledge and data. The present invention combines mechanism and data to construct a map in the field of equipment fault diagnosis, and significantly improves the accuracy of mechanical equipment fault diagnosis, and effectively improves the convergence speed of model training.

[0064] Experimental verification of the equipment fault diagnosis method driven by knowledge and data fusion of the present invention:

[0065] 1. Test environment

[0066] This experiment is mainly divided into two parts: fault map construction and OBiLSTM classification prediction. The fault map is stored in Neo4j graph database, and py2neo is used to implement python program operations on Neo4j. OBiLSTM uses TensorFlow-CPU and keras packages for model training.

[0067] 2. Data Description

[0068] The experiment uses the rolling bearing fault data set of Case Western Reserve University (CWRU) in the United States. The mechanism knowledge of this data set is mainly the introduction of vibration data. The vibration data is collected by acceleration sensors at the drive end of the bearing, the fan end, and the motor base. The equipment characteristics in the mechanism knowledge include the motor load of 0, 1, 2, and 3 horsepower (hp), and the corresponding motor rotation speeds are 1797, 1772, 1750, and 1730 (r / min) respectively. Single-point damage faults are made on the inner race, ball, and outer race of the bearing through artificial electrical discharge machining. Each fault includes fault sizes of 0.007 inches (mild damage), 0.014 inches (moderate damage), and 0.021 inches (severe damage). Among them, the damage points of the outer race of the bearing are set at 3 o'clock, 6 o'clock, and 12 o'clock, respectively, and the vibration frequencies are 12kHZ and 48kHZ. In this experiment, the mechanism knowledge of the above vibration data is used as the text description part of the FDM-KDF method for graph entity extraction, and the corresponding bearing vibration data under different features is used as structured data for fault classification and relationship extraction. The normal bearing data only extracts samples of the drive end acceleration sensor and the fan end acceleration sensor. The sampling frequency of the sensors is 12kHZ, including normal data and three different fault locations of rolling element, inner ring and outer ring.

[0069] Experiment 1: Construction of fault map

[0070] In this experiment, only 12kHZ data was selected. The classification indicators included five bearing characteristics: vibration end, bearing part location, damage depth, motor rotation speed, and damage clock. The rules were summarized based on the bearing data set. The rules are as follows:

[0071] ①The fault is divided into two parts: the drive end and the fan end;

[0072] ② There are rolling element, inner ring and outer ring faults on both the drive end and the fan end;

[0073] ③ The rolling element, inner ring and outer ring fault data have damage depth, damage time and operating load indicators;

[0074] ④ Each set of vibration data is composed of three channels of data: the bearing drive end, the fan end, and the motor base. The maximum value, average value, and standard deviation can be calculated for each channel of data.

[0075] The names are symbolized according to the above rules, namely drive end (DE), fan segment (FE), rolling element (BO), inner ring (IR), outer ring (OR), depth 7 (size7), depth 14 (size14), depth 21 (size21), load 0 (load0), load 1 (load1), load 2 (load2), load 3 (load3), clock 3 (clock3), clock 6 (clock6), and clock 12 (clock12).

[0076] According to the above rules and indicators, there are five layers of rule nodes as follows:

[0077] Level 1 rule node (fault_level_1): end, divided into 2 categories;

[0078] Secondary rule node (fault_level_2): end_location, a total of 6 categories;

[0079] Level 3 rule node (fault_level_3): end_location_size, a total of 18 categories;

[0080] Level 4 rule node (fault_level_4): end_location_size_load, a total of 72 categories;

[0081] Level 5 rule node (fault_level_5): end_location_size_load_clock, a total of 97 categories;

[0082] In addition, the fault node is added as the top node of all nodes.

[0083] The attributes entered into the knowledge graph include node ID, name, node type and node description. For example, the rule node named DE_OR_size14_load0_clock6 has an ID of 75, a node type of fault_level_5 and a node description of drive end outer ring fault_depth 14_load 0_clock 6.

[0084] Import CWRU data according to classification and perform preliminary processing to extract the minimum, maximum, average and standard deviation of the three channel data. Store the extracted features as rule node attributes in the node table, and save the table in a csv file.

[0085] The different features of bearing equipment constitute multi-level feature nodes, and OBiLSTM performs accurate fault classification to obtain node classification and subordinate relationships between different levels.

[0086] The extracted rule node relationship is expressed by triples and is also converted into csv table storage. The relationship node attributes include the starting entity node (start_entity), the starting node label (start_label), the ending entity node (end_entity), the ending node label (end_label), and the relationship type (relationship). One line of the csv file is as follows: the starting entity node is DE_OR_size14_load0_clock6, the starting node label is fault_level_5, the ending entity node is DE_OR_size14_load0, the ending node label is fault_level_4, and the relationship type is belongsto. This relationship indicates that the fifth-level rule node named DE_OR_size14_load0_clock6 belongs to the fourth-level rule node named DE_OR_size14_load0.

[0087] Use Python program to read rule nodes and node relationship csv files, and use py2neo package to operate Neo4j and import them into Neo4j database. Use py2neo and Cypher language to perform related operations on the graph database, and import the triples stored in csv files into Neo4j to build the fault graph.

[0088] For example, Figure 4 As shown, after uploading the input fault time series data, click query, classify the fault type through the OBiLSTM model, enter the type into the fault map for query, and display the query results. The example result display includes data visualization of this fault, map node display, the device is the fan end, the position is the outer ring of the bearing, the depth is 0.0014 inches, the motor load is 3 horsepower, the motor speed is 1730 (r / min), the direction is 12 o'clock, and related faults of the same level are displayed.

[0089] Experiment 2: OBiLSTM model relationship classification effect

[0090] The OBiLSTM model is used to accurately classify the fault types, and the classification results are used as the graph relationship. According to the rule node type, the training set is divided into 6 categories, 18 categories, 72 categories, and 97 categories and labeled, and 100 data points are taken as a time series segment. The amount of data for each type is about 12,000, that is, 1,200 time series segments are taken for training in each training set.

[0091] In order to solve the problems of multiple classification categories, slow convergence speed and long training time, an improved LSTM model OBiLSTM is proposed. The traditional models for comparison are: single-layer LSTM and CNN+single-layer LSTM. The above models use the same parameters when training. The training set is divided into multiple batches when training the model. The batch size (batch_size) is 128. One batch of data is input for each round of iterative training. The loss function is the cross entropy of softmax. Adam is used as the optimizer to adjust the training parameters. A total of 70 rounds are iterated.

[0092] The ratio of the training set, validation set, and test set is 6:2:2 respectively. Random sampling is used to cut each set during extraction. Random sampling from excess samples is used to balance the data so that the number of training samples for each classification is the same.

[0093] The evaluation criteria use the following parameters:

[0094] ①Accuracy: It refers to the number of correct predictions / total number of samples in the prediction results.

[0095] ② Loss: the size of the loss function in the last round of training.

[0096] ③ Convergence Rate: The speed at which the accuracy improves during training. This paper uses the number of iterations to reach 90% accuracy as the criterion for judging the convergence rate. \ indicates that the accuracy has not reached 90%.

[0097] Figure 5 and Figure 6 The figures are the accuracy of LSTM and OBiLSTM models under different numbers of classifications, where the end in the curve name represents the fault end, the position represents the damage position, the depth represents the damage depth, the load represents the motor load, the o'clock represents the o'clock direction of the damage, and the last number represents the number of classifications. It can be seen that the more the number of classifications, the worse the classification effect, the slower the convergence speed of the LSTM model, and the lower the accuracy when the number of classifications is large. The numerical comparison of model accuracy is shown in Table 2. By comparison, it can be seen that the OBiLSTM model shows similar stability in accuracy under different classifications, the number of classifications has a low impact on the accuracy, and the convergence speed is fast and the accuracy is high. The reason is that OBiLSTM uses a double-layer bidirectional LSTM to strengthen feature learning, so that the effect is also obvious under multiple classifications, and uses CNN and attention mechanisms to improve the convergence speed. In addition, the OBiLSTM model has good classification results when the training set and the test set have the largest number of classifications (97 categories), with small fluctuations and no large differences. Therefore, this model has no problems such as overfitting and underfitting.

[0098] Table 2 Comparison of accuracy of each classification

[0099] Model Category 2 6 categories 18 categories 72 categories 97 categories OBiLSTM 1 0.9968 0.9939 0.9406 0.9490 LSTM 1 0.9716 0.9441 0.7456 0.7699

[0100] The layer with the largest number of classifications (97 categories) is selected for comparison. The accuracy and loss of the OBiLSTM model and other models are as follows: Figure 7 and Figure 8 As shown in the figure, the names of the curves in the figure represent the names of the various classification models for comparison, including the OBiLSTM model, the CNN+LSTM model, and the LSTM model. The corresponding evaluation of each model is shown in Table 3.

[0101] Table 3 Evaluation of model parameters

[0102] Model Accuracy loss Convergence speed OBiLSTM 0.9503 0.1265 18 CNN+LSTM 0.9233 0.1921 33 LSTM 0.7699 0.6169 \

[0103] Depend on Figure 7 , Figure 8 As shown in Table 3, compared with the traditional CNN+LSTM and LSTM models, the OBiLSTM model has the highest accuracy, the lowest loss, and the fastest convergence speed.

[0104] It can be seen that the OBiLSTM model has the comprehensive advantages of high accuracy, low loss, fast convergence speed, and stable classification in multi-classification problems, and solves the classification problems mentioned above. Specifically, the initial CNN layer plays a role in feature extraction, thereby improving the convergence speed and accuracy; the second layer of the BiLSTM layer plays a role in classification and division training, while ensuring high accuracy and improving the training speed; the third layer of the attention mechanism layer extracts features by allocating weights, thereby improving the training speed and convergence speed; the fourth layer of the BiLSTM layer strengthens the training of the results of the attention layer, optimizing in terms of accuracy and loss; the regularization and dropout after the two layers of BiLSTM layers effectively reduce the overfitting problem, improve the generalization ability of the model, and ensure the stability of the method.

[0105] in conclusion

[0106] Aiming at the problem that traditional equipment fault diagnosis is difficult to effectively combine equipment mechanism knowledge with equipment operation data, a method for equipment fault diagnosis driven by knowledge and data fusion is proposed. The method is mainly divided into two parts. The first part extracts rules and symbolizes indicators for equipment mechanism knowledge, combines rule nodes as fault maps, and constructs fault maps by combining rule nodes and node relationships. The second part uses rule nodes as the classification basis, combines equipment operation data for data annotation, and performs classification training through the OBiLSTM model to complete the relationship extraction of rule nodes. Experimental verification is carried out using CWRU bearing fault data. Through experimental analysis, an equipment fault diagnosis domain map is constructed. The accuracy of multi-classification of bearing fault diagnosis reaches 95.03% on average, which improves the accuracy and convergence speed of fault diagnosis, and can realize the display of fault information and related faults.

Claims

1. A method for equipment fault diagnosis based on knowledge and data fusion, characterized in that: The steps include: S1: Collect text information and time series sample data about the target device for diagnosis, where the text information is used as device mechanism knowledge and the time series sample data is used as device operation data; S2: Extract rules for equipment mechanism knowledge, symbolize the rules and extract index 1, i.e. f1, index 2, i.e. f2, which can be used as the basis for classification, until index n, fn; S3: Combine and classify the extracted indicators to obtain different levels and different types of rule nodes of the knowledge graph, including first-level rule node F1, second-level rule nodes F1-F2, ..., n-level rule nodes F1-F2-...-Fn; S4: Use the rule nodes as the classification basis to mark the equipment operation data and divide them into data segments of uniform length; S5: Classification training is performed through the improved long short-term memory network model to extract the classification relationship of the equipment operation data corresponding to the rule nodes at different levels in the graph; S6: construct relationship triples by combining the rule nodes extracted from the mechanism knowledge and the node relationships extracted from the equipment operation data, and import the rule nodes and node relationships into the Neo4j database in the form of csv files to generate a fault map; S7: input the equipment fault data into the fault map to perform fault diagnosis, and obtain the fault diagnosis result and fault related information; In step S5, classification training is performed through the improved long short-term memory network model to extract the classification relationship of the equipment operation data corresponding to the rule nodes at different levels in the graph. The specific steps are as follows: 1-1) Use one-hot encoding to mark the fault category; 1-2) Add a one-dimensional convolutional neural network to extract the local non-correlation features and weak periodicity of the original operating status data; 1-3) A bidirectional long short-term memory network model is added to extract the contextual data features of the temporal data of the vibration signal processed by 1D-CNN. At the same time, a batch normalization layer and a dropout layer are added to prevent overfitting; 1-4) Take the global average of all feature values ​​in the BiLSTM channel, obtain the weight of each channel through the Sigmoid activation function, and finally multiply different channels by different weights to realize the attention mechanism for the key feature channel domain; 1-5) Repeat 1-3) to further extract contextual data features of temporal data; 1-6) The final classification layer uses Softmax multi-classifier to obtain the probability distribution of fault samples with different faults of the specified classification number, uses the cross entropy cost function as the verification loss function of the model, and outputs the classification results.

2. The equipment fault diagnosis method based on knowledge and data fusion drive according to claim 1 is characterized in that: In step S6, the rule nodes extracted according to the mechanism knowledge and the node relationships extracted according to the equipment operation data are used to construct a relationship triple, and the rule nodes and node relationships are imported into the Neo4j database in the form of a csv file to generate a fault map. The steps are as follows: 2-1) Connect each rule node through a relationship to construct a relationship triple F1-F2-...-Fn, Rn, F1-F2-...-Fn-1, indicating that the relationship between the n-level rule node F1-F2-...-Fn and the n-1-level rule node F1-F2-...-Fn-1 is Rn; 2-2) Save the relationship triples in the form of a csv table file, which lists the starting node id, starting node name, end node id, end node name and relationship column; 2-3) Use py2neo to write Cypher database statements, including creating new nodes, creating new node attributes, creating new node relationships, deleting nodes and relationships, querying nodes, querying relationships, etc., to generate a graph construction model. Py2neo is the python driver package for the Neo4j database, and Cypher is a descriptive graph query language suitable for the Neo4j database. 2-4) Read the rule node and node relationship csv file, import it into the Neo4j database through the graph construction model, and generate knowledge graph nodes, attributes, and relationships. Neo4j is a graph database that can generate and display knowledge graphs.