A rotating machinery fault diagnosis method and system based on graph data

Through the rotating machinery fault diagnosis method based on graph data, the graph convolutional neural network and the k nearest neighbor algorithm are used to construct sample relationships, which solves the problem of performance degradation caused by data distribution differences in rotating machinery fault diagnosis, and achieves high accuracy and strong adaptability. Sexual fault diagnosis.

CN114564987BActive Publication Date: 2024-08-23HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210164044.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-22
Publication Date
2024-08-23
Estimated Expiration
2042-02-22

AI Technical Summary

Technical Problem

The existing technology has the problem of large distribution differences between training and test data in rotating machinery fault diagnosis, which leads to a decrease in diagnostic performance and model adaptability. Especially in harsh environments and complex load conditions, deep learning models are difficult to effectively adapt.

Method used

A rotating machinery fault diagnosis method based on graph data is used to extract spectral features through fast Fourier transform, and the k-nearest neighbor algorithm is used to construct a graph data structure to express the mapping relationship between samples and sample labels, and input it into pre-training In the domain adaptive graph convolutional neural network, cross entropy loss and maximum mean difference loss are used for training, making the model suitable for different types of rotating machinery fault diagnosis.

Benefits of technology

It improves the classification accuracy and model adaptability of rotating machinery fault diagnosis, can effectively transfer knowledge from the source field to the target field, is suitable for different types of rotating machinery fault diagnosis, and surpasses the model adaptability and accuracy limitations of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564987B
    Figure CN114564987B
Patent Text Reader

Abstract

The present invention discloses a method and system for diagnosing faults of rotating machinery based on graph data, including: obtaining vibration signals of rotating machinery in normal state and fault state, and dividing them into source domain samples for model training and target domain samples to be tested; extracting spectral features of samples, converting source domain and target domain samples into node representations; using k-nearest neighbor algorithm to construct graphs of source domain and target domain samples respectively; constructing domain adaptive graph convolutional neural network based on domain adaptive idea; inputting the graph constructed by source domain and target domain samples into the network, thereby obtaining fault diagnosis results of target domain samples to be tested. The present invention uses k-nearest neighbor algorithm to cluster nodes with the same label, establishes a mapping relationship between labels and nodes, and constructs graphs with similar graph structures for source domain samples and target domain samples respectively, providing more transferable knowledge, applying knowledge learned from the source domain to the target domain, and improving classification accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of rotating machinery fault diagnosis, and more specifically, relates to a rotating machinery fault diagnosis method and system based on graph data. Background Art

[0002] As a key component of the transmission system, rotating machinery has been widely used in modern manufacturing and industrial processes. In most practical applications, rotating machinery operates under harsh or complex conditions, such as high temperature, high pressure environment, variable speed and variable load. Long-term operation will cause various damages and failures, which will affect the system performance and may seriously damage the machine.

[0003] Deep learning methods can automatically learn representative features from data without requiring much professional background knowledge, and have been successfully applied in the field of mechanical fault diagnosis. However, deep learning models still have two shortcomings: 1) It is usually assumed that the data distribution of the training and test sets is the same. However, the working environment of rotating machinery is usually harsh and complex, and the speed and load will constantly change, resulting in distribution differences in the obtained training and test set data, reducing the diagnostic performance of the deep learning model. 2) Deep learning requires a large amount of labeled data with fault information. However, in actual industrial production, machines cannot be in a fault state for a long time, and it is difficult to obtain a large amount of fault data.

[0004] In traditional fault diagnosis methods based on transfer learning, the learnable knowledge mainly includes feature information and shared model parameters, but ignores the relationship between samples or transferable knowledge. However, there is a certain connection between sample relationships and sample labels. Therefore, by mining the relationship between samples and transferring the relationship to the target domain task, the performance of fault diagnosis methods based on transfer learning can be further improved. Traditional data representation methods, such as vectors and matrices, cannot effectively express the "sample-sample label" relationship. Graphs are a type of data that can express complex relationships between objects. They consist of a series of nodes and edges and can be used to establish relationships between samples and applied to fault diagnosis. Summary of the invention

[0005] In view of the defects of the prior art, the purpose of the present invention is to provide a rotating machinery fault diagnosis method and system based on graph data, aiming to solve the problem that the data distribution difference is large when the training and test data come from different machines, and the diagnostic performance and model adaptability of the existing methods are reduced.

[0006] To achieve the above object, in a first aspect, the present invention provides a rotating machinery fault diagnosis method based on graph data, comprising the following steps:

[0007] Obtain the vibration signal of the rotating machinery, perform fast Fourier transform on the vibration signal, and extract the corresponding spectrum features;

[0008] The spectral features are constructed into corresponding graph data using a k-nearest neighbor algorithm; the graph data expresses a mapping relationship between samples and between samples and sample labels, so as to link transferable knowledge between samples; the sample refers to the spectral features corresponding to the vibration signal, and the label refers to the working state of the rotating machinery corresponding to the sample;

[0009] The graph data is input into a pre-trained domain adaptive graph convolutional neural network, and the neural network outputs the corresponding fault diagnosis result based on the graph data; wherein the domain adaptive graph convolutional neural network includes: a graph convolution layer, an activation function and a classifier; the graph convolution layer is used to learn the node features of the graph data, the activation function is used to fit the nonlinear characteristics based on the learned node features, and the classifier is used to predict the health status label of the sample based on the nonlinear characteristics; the health status label corresponds to the rotating machinery fault diagnosis result based on the graph data; the neural network is pre-trained using cross entropy loss and maximum mean difference loss, the cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the accuracy of the prediction result, and the maximum mean difference loss is used to reduce the difference between the source domain sample and the target domain sample; the source domain sample corresponds to the vibration signal of the rotating machinery under normal working state, and the target domain sample corresponds to the vibration signal of the rotating machinery under fault state; the graph data contains transferable knowledge between samples, and the neural network is trained by the maximum mean difference loss so that the neural network is suitable for different types of rotating machinery fault diagnosis based on graph data.

[0010] In an optional example, when the number of vibration signals to be diagnosed is less than M groups, the frequency spectrum features corresponding to each group of vibration signals are taken as a sample to be tested; each sample to be tested is added to the graph data structure corresponding to the training samples used to train the neural network using the k-nearest neighbor algorithm, and each sample to be tested corresponds to a node to be diagnosed in the updated graph data structure; the updated graph data structure is input into the trained neural network, and the neural network is used to diagnose each node to be diagnosed in the graph data structure to determine the fault diagnosis result corresponding to each sample to be tested; M is less than a preset value;

[0011] When the vibration signal to be diagnosed is greater than or equal to M, the frequency spectrum features corresponding to the M groups of vibration signals are used as M samples to be tested; a new graph data structure is generated based on the M samples to be tested using the k-nearest neighbor algorithm, and each sample to be tested corresponds to a node to be diagnosed in the new graph data structure; the new graph data structure is input into a trained neural network, and the neural network is used to diagnose each node to be diagnosed in the new graph data structure to determine the fault diagnosis result corresponding to each sample to be tested.

[0012] In an optional example, the k-nearest neighbor algorithm is used to construct the spectrum features into corresponding graph data, specifically:

[0013] Calculate the distance matrix T∈R n×n , T is calculated by the following formula:

[0014] T(X i ,X j )=||F f,i ,F f,j ||2

[0015] Among them, T(X i ,X j ) is the sample X i and sample X j The Euclidean distance between f,i ,F f,j They are samples X i , Sample X j Node characteristics;

[0016] The k-nearest neighbor algorithm is used to find the k-nearest neighbor node set of each node, as shown in the following formula:

[0017]

[0018] Among them, X ij is a sample X i k nearest neighbor nodes, ψ(X i ) represents sample X i The set of k nearest neighbor nodes;

[0019] Establish the edge set E, and after finding the k nearest neighbor nodes of each node, connect the node to its k nearest neighbor nodes; for the k nearest neighbor node set ψ(X i ), the edge connection can be defined as:

[0020]

[0021] A i,j is the element in the i-th row and j-th column of the adjacency matrix, A j,iis the element in the jth row and ith column of the adjacency matrix. The adjacency matrix is ​​used to represent edge connections. If the adjacency matrix element is 1, it means that there is an edge connection between node i and node j. If the adjacency matrix element is 0, it means that there is no edge connection between node i and node j.

[0022] By performing the above operations on all samples, an edge set E can be obtained, which is the graph data corresponding to all samples.

[0023] In an optional example, the graph convolution layer is used to learn node features of the graph data, specifically:

[0024] Y (1) =Cheb(X,W (1) )

[0025] Y (2) = Cheb(σ(Y (1) ),W (2) )

[0026] Y (3) = Cheb(σ(Y (2) ),W (3) )

[0027] Where W (1) ∈R m×l ,W (2) ∈R l×v ,W (3) ∈R v×g is the trainable weight matrix of the first, second, and third convolutional layers, Cheb(·) is the convolution of the Chebyshev graph, m is the scale of the input vector, l, v, g are the scales of the output vector, and Y (1) ∈R n×l ,Y (2) ∈R n×v ,Y (3) ∈R n×g represents the output of the 1st, 2nd, and 3rd graph convolutional layers, and σ represents the leaky rectifier unit;

[0028] The classification result is calculated using the softmax classifier using the following formula:

[0029] Z = softmax(Y (3) )

[0030] Where Z is the predicted health status label of the node in the graph data.

[0031] In an optional example, the total loss of the neural network is defined as:

[0032] L total (X s ,Y s ,X t)=L CE (X s ,Y s )+αL MMD (X s ,X t )

[0033] Among them, L total is the total loss, L MMD is the cross entropy loss, L MMD is the maximum mean difference loss, α is the trade-off parameter; X s is the source domain sample, Y s is the source domain label, X t is the target domain sample;

[0034] Cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the prediction result, which is defined as:

[0035]

[0036] Among them, b i represents an indicator variable, N L represents the number of fault categories, p c Indicates the predicted probability that the i-th sample belongs to a certain category, L CE represents the cross entropy loss.

[0037] In a second aspect, the present invention provides a rotating machinery fault diagnosis system based on graph data, comprising:

[0038] A frequency spectrum feature acquisition unit is used to acquire the vibration signal of the rotating machinery, and perform fast Fourier transform on the vibration signal to extract the corresponding frequency spectrum feature;

[0039] A graph data determination unit, configured to construct the spectral features into corresponding graph data by using a k-nearest neighbor algorithm; the graph data expresses a mapping relationship between samples and between samples and sample labels, so as to link transferable knowledge between samples; the sample refers to the spectral features corresponding to the vibration signal, and the label refers to the working state of the rotating machinery corresponding to the sample;

[0040] A fault diagnosis unit is used to input the graph data into a pre-trained domain adaptive graph convolutional neural network, and the neural network outputs a corresponding fault diagnosis result based on the graph data; wherein the domain adaptive graph convolutional neural network includes: a graph convolution layer, an activation function and a classifier; the graph convolution layer is used to learn the node features of the graph data, the activation function is used to fit the nonlinear characteristics based on the learned node features, and the classifier is used to predict the health status label of the sample based on the nonlinear characteristics; the health status label corresponds to the rotating machinery fault diagnosis result based on the graph data; the neural network is pre-trained using cross entropy loss and maximum mean difference loss, the cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the accuracy of the prediction result, and the maximum mean difference loss is used to reduce the difference between the source domain sample and the target domain sample; the source domain sample corresponds to the vibration signal of the rotating machinery under normal working state, and the target domain sample corresponds to the vibration signal of the rotating machinery under fault state; the graph data contains transferable knowledge between samples, and the neural network is trained by the maximum mean difference loss so that the neural network is suitable for different types of rotating machinery fault diagnosis based on graph data.

[0041] In an optional example, when the number of vibration signals to be diagnosed is less than M groups, the graph data determination unit uses the frequency spectrum features corresponding to each group of vibration signals as a sample to be tested; uses the k-nearest neighbor algorithm to add each sample to be tested to the graph data structure corresponding to the training sample used to train the neural network, and each sample to be tested corresponds to a node to be diagnosed in the updated graph data structure; the fault diagnosis unit inputs the updated graph data structure into the trained neural network, and uses the neural network to diagnose each node to be diagnosed in the graph data structure, and determines the fault diagnosis result corresponding to each sample to be tested; M is less than a preset value;

[0042] When the vibration signal to be diagnosed is greater than or equal to M, the graph data determination unit uses the frequency spectrum features corresponding to the M groups of vibration signals as M samples to be tested; a new graph data structure is generated based on the M samples to be tested using the k-nearest neighbor algorithm, and each sample to be tested corresponds to a node to be diagnosed in the new graph data structure; the fault diagnosis unit inputs the new graph data structure into the trained neural network, and uses the neural network to diagnose each node to be diagnosed in the new graph data structure, and determines the fault diagnosis results corresponding to each sample to be tested.

[0043] In an optional example, the graph data determining unit constructs the spectrum feature into corresponding graph data using a k-nearest neighbor algorithm, specifically:

[0044] Calculate the distance matrix T∈R n×n , T is calculated by the following formula:

[0045] T(X i ,X j )=||F f,i ,F f,j ||2

[0046] Among them, T(X i ,X j ) is the sample X i and sample X j The Euclidean distance between f,i ,F f,j They are samples X i , Sample X j Node characteristics;

[0047] The k-nearest neighbor algorithm is used to find the k-nearest neighbor node set of each node, as shown in the following formula:

[0048]

[0049] Among them, X ij is a sample X i k nearest neighbor nodes, ψ(X i ) represents sample X i The set of k nearest neighbor nodes;

[0050] Establish the edge set E, and after finding the k nearest neighbor nodes of each node, connect the node to its k nearest neighbor nodes; for the k nearest neighbor node set ψ(X i ), the edge connection can be defined as:

[0051]

[0052] A i,j is the element in the i-th row and j-th column of the adjacency matrix, A j,i is the element in the jth row and ith column of the adjacency matrix. The adjacency matrix is ​​used to represent edge connections. If the adjacency matrix element is 1, it means that there is an edge connection between node i and node j. If the adjacency matrix element is 0, it means that there is no edge connection between node i and node j.

[0053] By performing the above operations on all samples, an edge set E can be obtained, which is the graph data corresponding to all samples.

[0054] In an optional example, the graph convolution layer is used to learn node features of the graph data, specifically:

[0055] Y (1) =Cheb(X,W (1) )

[0056] Y (2) = Cheb(σ(Y (1) ),W (2))

[0057] Y (3) = Cheb(σ(Y (2) ),W (3) )

[0058] Where W (1) ∈R m×l ,W (2) ∈R l×v ,W (3) ∈R v×g is the trainable weight matrix of the first, second, and third convolutional layers, Cheb(·) is the convolution of the Chebyshev graph, m is the scale of the input vector, l, v, g are the scales of the output vector, and Y (1) ∈R n×l ,Y (2) ∈R n×v ,Y (3) ∈R n×g represents the output of the 1st, 2nd, and 3rd graph convolutional layers, and σ represents the leaky rectifier unit;

[0059] The classification result is calculated using the softmax classifier using the following formula:

[0060] Z = softmax(Y (3) )

[0061] Where Z is the predicted health status label of the node in the graph data.

[0062] In an optional example, the total loss of the neural network is defined as:

[0063] L total (X s ,Y s ,X t )=L CE (X s ,Y s )+αL MMD (X s ,X t )

[0064] Among them, L total is the total loss, L MMD is the cross entropy loss, L MMD is the maximum mean difference loss, α is the trade-off parameter; X s is the source domain sample, Y s is the source domain label, X t is the target domain sample;

[0065] Cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the prediction result, which is defined as:

[0066]

[0067] Among them, b i represents an indicator variable, N L represents the number of fault categories, p c Indicates the predicted probability that the i-th sample belongs to a certain category, L CE represents the cross entropy loss.

[0068] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:

[0069] (1) The present invention adopts the k-nearest neighbor algorithm to construct a graph structure. Compared with the traditional Euclidean structure data, the constructed graph structure establishes a mapping relationship between samples and between samples and sample labels, and connects the transferable knowledge between samples to provide more transferable knowledge, which helps the model apply the knowledge learned from the source field to the target field, and can effectively improve the classification accuracy.

[0070] (2) The present invention can minimize the difference between source domain and target domain data by adding the maximum mean difference loss in the graph convolutional neural network training. The trained model can be applied to different types of rotating machinery fault diagnosis. Compared with traditional methods, the model has the advantages of high classification accuracy and strong model adaptability.

[0071] (3) The present invention adopts a graph structure and constructs a domain-adaptive graph convolutional neural network to transfer the fault diagnosis knowledge learned from one machine to different but related machines, thereby realizing cross-machine fault diagnosis. The existing methods are only applicable to fault diagnosis tasks under different working conditions of the same machine. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A flow chart of a rotating machinery fault diagnosis method based on graph data provided by an embodiment of the present invention;

[0073] Figure 2 A flow chart of a cross-domain fault diagnosis method for rotating machinery provided by an embodiment of the present invention;

[0074] Figure 3 A schematic diagram of node embedding provided by an embodiment of the present invention;

[0075] Figure 4 A schematic diagram of constructing a graph structure provided by an embodiment of the present invention;

[0076] Figure 5 A schematic diagram of constructing a domain adaptive graph convolutional neural network provided by an embodiment of the present invention;

[0077] Figure 6A schematic diagram of cross-machine classification accuracy comparing different fault diagnosis methods provided by an embodiment of the present invention;

[0078] Figure 7 This is an architecture diagram of a rotating machinery fault diagnosis system based on graph data provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0080] In view of the defects of the prior art and the need for improvement, the present invention provides a cross-domain fault diagnosis method for rotating machinery based on a transferable graph structure, which aims to solve the technical problems in the prior art such as poor model adaptability, long model training time, and difficulty in applying to complex working conditions.

[0081] Figure 1 A flow chart of a rotating machinery fault diagnosis method based on graph data provided by an embodiment of the present invention; Figure 1 As shown, the following steps are included:

[0082] S101, obtaining a vibration signal of a rotating machine, and performing a fast Fourier transform on the vibration signal to extract corresponding frequency spectrum features;

[0083] S102, constructing the frequency spectrum feature into corresponding graph data using a k-nearest neighbor algorithm; the graph data expresses a mapping relationship between samples and between samples and sample labels, so as to link transferable knowledge between samples; the sample refers to the frequency spectrum feature corresponding to the vibration signal, and the label refers to the working state of the rotating machinery corresponding to the sample;

[0084] S103, input the graph data into a pre-trained domain adaptive graph convolutional neural network, and the neural network outputs the corresponding fault diagnosis result based on the graph data; wherein the domain adaptive graph convolutional neural network includes: a graph convolution layer, an activation function and a classifier; the graph convolution layer is used to learn the node features of the graph data, the activation function is used to fit the nonlinear characteristics based on the learned node features, and the classifier is used to predict the health status label of the sample based on the nonlinear characteristics; the health status label corresponds to the rotating machinery fault diagnosis result based on the graph data; the neural network is pre-trained using cross entropy loss and maximum mean difference loss, the cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the accuracy of the prediction result, and the maximum mean difference loss is used to reduce the difference between the source domain sample and the target domain sample; the source domain sample corresponds to the vibration signal of the rotating machinery under normal working state, and the target domain sample corresponds to the vibration signal of the rotating machinery under fault state; the graph data contains transferable knowledge between samples, and the neural network is trained by the maximum mean difference loss so that the neural network is suitable for different types of rotating machinery fault diagnosis based on graph data.

[0085] Specifically, according to one aspect of the present invention, a rotating machinery fault diagnosis method is provided, comprising the following steps:

[0086] S1: Obtain vibration signals of rotating machinery in normal and fault states, and divide them into source domain samples for model training and target domain samples to be tested;

[0087] S2: Use the fast Fourier transform method to extract the spectral features of the samples and convert the source domain and target domain samples into node representations;

[0088] S3: Use the unsupervised k-nearest neighbor algorithm to construct graphs of source domain and target domain samples respectively;

[0089] S4: Construct a domain adaptive graph convolutional neural network fault diagnosis model based on Chebyshev graph convolutional neural network and domain adaptation;

[0090] S5: Input the graph constructed by the source domain and target domain samples into the model, so as to obtain the fault diagnosis result of the target domain sample to be tested.

[0091] Furthermore, the method described in step S2 includes:

[0092] Given a sample X=(x1,x2,…,x m ), the fast Fourier transform is used to obtain the spectrum features as node features, which can be calculated by the following formula:

[0093] F=FFT(X)

[0094] Where F=(f1,f2,…,f m ) is the spectrum, half of the fast Fourier transform result F f =(f1,f2,…,f m / 2 ) as the node feature. All samples in the source domain and the target domain are converted into nodes, and their corresponding node features are F f .

[0095] Furthermore, the method described in step S3 includes:

[0096] Calculate the distance matrix T∈R n×n . T can be calculated by the following formula:

[0097] T(X i ,X j )=||F f,i ,F f,j ||2

[0098] Among them, T(X i ,X j ) is X i ,X j The Euclidean distance between f,i ,F f,j Yes X i ,X j Node characteristics of

[0099] Clustering k-nearest neighbor nodes. The k-nearest neighbor algorithm is used to find the set of k-nearest neighbor nodes for each node, as shown in the following formula:

[0100]

[0101] Among them, X ij is the k nearest neighbor node of the sample, ψ(X i ) represents sample X i The choice of parameter k is shown in the aggregation of sub-segment nodes using the k-nearest neighbor algorithm;

[0102] Establish the edge set E, and after finding the k nearest neighbor nodes of each node, connect the node to its k nearest neighbor nodes. For example, for the k-nearest neighbor node set ψ(X i ), the edge connection can be defined as:

[0103]

[0104] By performing the above operations on all samples, we can obtain the edge set E.

[0105] Furthermore, the method described in step S4 includes:

[0106] The structure of the three-layer DAGCN includes graph convolution layers, activation functions, and classifiers. The constructed graph is input into the DAGCN to obtain feature representation, and the final output of the DAGCN will be input into the classifier softmax for fault classification. The graph feature learning of DAGCN can be defined as:

[0107] Y (1) =Cheb(X,W (1) )

[0108] Y (2) = Cheb(σ(Y (1) ),W (2) )

[0109] Y (3) = Cheb(σ(Y (2) ),W (3) )

[0110] Where W (1) ∈R m×l ,W (2) ∈R l×v ,W (3) ∈R v×g is the trainable weight matrix of the first, second and third convolutional layers (DAGCN_1, DAGCN_2, DAGCN_3), Cheb(·) is the convolution of the Chebyshev graph, m is the scale of the input vector, l, v, g are the scales of the output vector, and Y (1) ∈R n×l ,Y (2) ∈R n×v ,Y (3) ∈R n×g represents the output of DAGCN_1, DAGCN_2, and DAGCN_3, and σ represents a leaky rectifier unit.

[0111] The classification result is calculated using the softmax classifier using the following formula:

[0112] Z = softmax(Y (3) )

[0113] Where Z is the label of the node in the graph.

[0114] Cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the prediction result. The cross entropy loss can be defined as:

[0115]

[0116] Among them, b i represents an indicator variable, N L represents the number of fault categories, p cIndicates the predicted probability that the i-th sample belongs to a certain category, L CE represents the cross entropy loss.

[0117] The total loss can be defined as:

[0118] L total (X s ,Y s ,X t )=L CE (X s ,Y s )+αL MMD (X s ,X t )

[0119] Among them, L total is the total loss, L MMD is the MMD loss, and α is the trade-off parameter.

[0120] Furthermore, in step S1, the vibration signal of the rotating machinery is collected by an accelerometer.

[0121] Another aspect of the present invention provides a cross-domain fault diagnosis system for rotating machinery, comprising:

[0122] A signal acquisition unit, which acquires vibration signals of the rotating machinery in a normal state and a fault state, and divides the signals into source domain samples for model training and target domain samples to be tested;

[0123] The node embedding unit uses the fast Fourier transform method to extract the spectral features of the samples and convert the source domain and target domain samples into node representations;

[0124] The graph construction unit uses the unsupervised k-nearest neighbor algorithm to construct graphs of source domain and target domain samples respectively;

[0125] A model building unit, which builds a domain adaptive graph convolutional neural network fault diagnosis model based on Chebyshev graph convolutional neural network and domain adaptation;

[0126] The fault diagnosis unit inputs the graph constructed by the source domain and the target domain samples into the model, thereby obtaining the fault diagnosis result of the target domain sample to be tested.

[0127] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the rotating machinery fault diagnosis method as described above is implemented.

[0128] The present invention provides a method for diagnosing faults in rotating machinery, extracting the frequency spectrum of samples by fast Fourier transform to obtain node representation. The unsupervised k-nearest neighbor algorithm is used to construct graphs of source domain and target domain samples respectively, and a domain adaptive graph convolutional network is constructed for target domain sample classification, thereby improving the adaptability of the model and the ability to handle complex working conditions.

[0129] Figure 2 The figure is a flow chart of the cross-domain fault diagnosis method for rotating machinery provided by the present invention, which specifically includes the following steps:

[0130] S1: Obtain vibration signals of rotating machinery in normal and fault states, and divide them into source domain samples for model training and target domain samples to be tested;

[0131] Among them, the fault conditions include inner ring fault, outer ring fault and ball fault;

[0132] Specifically, the vibration signals of the rotating machinery in normal state and fault state are collected by an accelerometer to obtain sample points of the vibration signals in normal state and fault state; some sample points are randomly selected to form a source domain sample set, and the remaining sample points are used to form a target domain sample, and the ratio of training samples to test samples is 1.

[0133] S2: Use the fast Fourier transform method to extract the spectral features of the samples and convert the source domain and target domain samples into node representations;

[0134] Figure 3 The schematic diagram of node embedding provided by the present invention is shown, and the specific operations are as follows:

[0135] Specifically, given a sample X = (x1, x2, ..., x m ), the fast Fourier transform is used to obtain the spectrum features as node features, which can be calculated by the following formula:

[0136] F=FFT(X)

[0137] Where F=(f1,f2,…,f m ) is the spectrum, half of the fast Fourier transform result F f =(f1,f2,…,f m / 2 ) as the node feature. All samples in the source domain and the target domain are converted into nodes, and their corresponding node features are F f .

[0138] S3: Use the unsupervised k-nearest neighbor algorithm to construct graphs of source domain and target domain samples respectively;

[0139] Figure 4 The figure shows a schematic diagram of the graph structure construction provided by the present invention, and the specific operations are as follows:

[0140] Specifically, calculate the distance matrix T∈R n×n . T can be calculated by the following formula:

[0141] T(X i ,X j )=||F f,i ,F f,j ||2

[0142] Among them, T(X i ,X j )yes and The Euclidean distance between f,i ,F f,j Yes X i ,X j Node characteristics;

[0143] Clustering k-nearest neighbor nodes. The k-nearest neighbor algorithm is used to find the set of k-nearest neighbor nodes for each node, as shown in the following formula:

[0144]

[0145] Among them, X ij is the k nearest neighbor node of the sample, ψ(X i ) represents sample X i The choice of parameter k is shown in the aggregation of sub-segment nodes using the k-nearest neighbor algorithm;

[0146] Establish the edge set E, and after finding the k nearest neighbor nodes of each node, connect the node to its k nearest neighbor nodes. For example, for the k-nearest neighbor node set ψ(X i ), the edge connection can be defined as:

[0147]

[0148] By performing the above operations on all samples, we can obtain the edge set E.

[0149] S4: Construct a domain adaptive graph convolutional neural network fault diagnosis model based on Chebyshev graph convolutional neural network and domain adaptation;

[0150] Figure 5 The diagram is a schematic diagram of constructing a domain adaptive graph convolutional neural network provided by the present invention. Specifically, the DAGCN model parameters are set, and the main parameters are shown in Table 1.

[0151] Table 1

[0152]

[0153]

[0154] S5: Input the graph constructed by the source domain and target domain samples into the model, so as to obtain the fault diagnosis result of the target domain sample to be tested.

[0155] Specifically, the graph obtained by processing the original vibration signal under different working conditions in steps S1-S3 is substituted into the fault diagnosis model constructed in step S4 to obtain the corresponding fault diagnosis result.

[0156] The practicability of the present invention is further verified below.

[0157] Example 1: Cross-operating condition validity verification

[0158] In order to verify the effectiveness of the fault diagnosis method proposed in the present invention, this embodiment uses the bearing data set of the Case Western Reserve University Bearing Data Center for verification. The fault types of rolling bearings are normal, inner ring fault, outer ring fault and ball fault, wherein the fault severity is simulated by electrospark machining, and the fault diameters are 7, 14, and 21 (mil) respectively. The vibration signal at the 6 o'clock position of the drive motor end is collected, and the sampling frequency is 12kHz. There are 4 working conditions in the experimental data, and there are 10 bearing states under each working condition, including normal (N), inner ring faults with fault diameters of 0.007 inches (IF 0.007), 0.014 inches (IF 0.014), and 0.021 inches (IF 0.021). Ball faults with fault diameters of 0.007 inches (BR 0.007), 0.014 inches (BR 0.014) and 0.021 inches (BR 0.021). The fault diameters are 0.007 inches (OF 0.007), 0.014 inches (OF 0.014), and 0.021 inches (OF 0.021) for the outer race. The details of the bearing conditions are shown in Tables 2 and 3.

[0159] Table 2

[0160]

[0161]

[0162] Table 3

[0163]

[0164] The specific steps are as follows:

[0165] (1) Data acquisition and fast Fourier transform

[0166] Each health state has 40 samples and each sample has 1024 data points. A total of 400 samples are obtained for each dataset. According to Table 3, 12 migration tasks are created. For example, 0HP→1HP means that the dataset 0HP is regarded as the source domain and 1HP is regarded as the target domain. The goal of the migration task is to classify the target domain samples as accurately as possible. Fast Fourier transform is performed on the experimental dataset to obtain the spectral features of the vibration signal as node features.

[0167] (2) Constructing source domain and target domain graphs

[0168] An unsupervised k-nearest neighbor algorithm is used to cluster similar same-domain samples. Then, the same-domain samples are connected to their similar same-domain samples. Finally, two graphs are constructed, including the k-nearest neighbor source-domain graph (KNNSG) and the k-nearest neighbor target-domain graph (KNNTG).

[0169] (3) Constructing a diagnostic model

[0170] The structure of the three-layer DAGCN includes graph convolutional layers, activation functions, and classifiers. The constructed graph is input into the DAGCN to obtain feature representation, and the final output of the DAGCN will be input into the classifier softmax for fault classification.

[0171] (4) State Identification

[0172] The original vibration signal is processed by steps (1) and (2) to obtain the source domain and target domain graphs, which are substituted into the diagnostic model in step (3) to obtain the corresponding fault diagnosis results. The constructed DAGCN is trained by 10% of the target domain samples in KNNSG and KNNTG, and the remaining target domain samples in KNNTG are used for testing. To avoid unexpected situations, ten experiments were conducted on each transfer fault diagnosis task. In addition, four comparative methods were experimented, including deep domain confusion (DDC), transfer component analysis (TCA), convolutional neural network (CNN) and deep adaptation network (DAN) to verify the effectiveness of the proposed method. The inputs of CNN and TCA are spectral features, and the inputs of DDC and DAN are short-time Fourier transform images. The experimental results are shown in Table 4. The proposed method achieves the highest accuracy on each transfer fault diagnosis task. In addition, even for the most difficult task 2HP→0HP, the proposed method can reach 99.94%, while TCA can only reach 58.61%. From the perspective of overall performance, the proposed method can handle any migration fault diagnosis task with an average accuracy of 99.89%, and the method is stable with a variance of 0.16%.

[0173] Table 4

[0174]

[0175] Example 2: Verification of cross-machine validity

[0176] In order to further verify the model adaptability of the proposed method, a cross-machine migration diagnosis task was carried out to verify the ability of the proposed method to handle cross-machine migration diagnosis tasks. The experiment used two datasets, including the bearing dataset provided by CWRU and the bearing dataset provided by Southeast University (SEU).

[0177] (1) Data description

[0178] The health state of the bearing consists of N, IF 0.007, BR 0.007, and 0.007. Each health state and condition has 50 samples, and each sample has 1024 data points. A total of 800 samples are obtained for each dataset. For the SEU dataset, the vibration data comes from the transmission system dynamic simulator. The health state of the bearing includes normal (N), inner race fault (IF), ball fault (BF), and outer race fault (OF). Vibration data are collected under two working conditions, namely speed load 20Hz-0V and 30Hz-2V. Each health state and condition has 100 samples, and each sample has 1024 data points. A total of 800 samples are obtained for each dataset. Table 5 lists the detailed experimental setup. The cross-machine migration diagnosis task is defined as CWRU→SEU, which means that the dataset CWRU is regarded as the source domain and SEU is regarded as the target domain.

[0179] Table 5

[0180]

[0181] (2) Results Analysis

[0182] The constructed DAGCN is trained by 10% of the target domain samples in KNNSG and KNNTG, and the remaining target domain samples are used for testing. The structure of DAGCN is shown in Table 1, but the weights, Softmax and output size of DAGCN_3 should be 4×1.

[0183] Ten experiments were conducted for each migration diagnosis task, and four comparison methods, DDC, TCA, CNN, and DAN, were tested to verify the effectiveness of the method. The inputs of CNN and TCA are spectral features, and the inputs of DDC and DAN are short-time Fourier transform images. The experimental results are shown in Figure 2. Figure 6 As shown, this method is able to achieve the highest accuracy of 94.94% in the cross-machine fault diagnosis task.

[0184] Figure 7 The rotating machinery fault diagnosis system architecture diagram provided by the embodiment of the present invention is as follows: Figure 7 As shown, including:

[0185] The frequency spectrum feature acquisition unit 710 is used to acquire the vibration signal of the rotating machinery, and perform fast Fourier transform on the vibration signal to extract the corresponding frequency spectrum feature;

[0186] A graph data determination unit 720 is used to construct the spectral features into corresponding graph data using a k-nearest neighbor algorithm; the graph data expresses a mapping relationship between samples and between samples and sample labels to link transferable knowledge between samples; the sample refers to the spectral features corresponding to the vibration signal, and the label refers to the working state of the rotating machinery corresponding to the sample;

[0187] A fault diagnosis unit 730 is used to input the graph data into a pre-trained domain adaptive graph convolutional neural network, and the neural network outputs a corresponding fault diagnosis result based on the graph data; wherein the domain adaptive graph convolutional neural network includes: a graph convolution layer, an activation function and a classifier; the graph convolution layer is used to learn the node features of the graph data, the activation function is used to fit the nonlinear characteristics based on the learned node features, and the classifier is used to predict the health status label of the sample based on the nonlinear characteristics; the health status label corresponds to the rotating machinery fault diagnosis result based on the graph data; the neural network is pre-trained using cross entropy loss and maximum mean difference loss, the cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the accuracy of the prediction result, and the maximum mean difference loss is used to reduce the difference between the source domain sample and the target domain sample; the source domain sample corresponds to the vibration signal of the rotating machinery under normal working state, and the target domain sample corresponds to the vibration signal of the rotating machinery under fault state; the graph data contains transferable knowledge between samples, and the neural network is trained by the maximum mean difference loss so that the neural network is suitable for different types of rotating machinery fault diagnosis based on graph data.

[0188] Specifically, Figure 7 The detailed functional implementation of each unit in the method can be found in the introduction of the aforementioned method embodiment, which will not be repeated here.

[0189] The present invention integrates domain adaptation and relationship construction into a graph convolutional network. The constructed domain adaptive graph convolutional neural network can realize model migration, and the constructed model can solve cross-operating condition and cross-machine tasks. The method proposed in the present invention is a rotating machinery fault diagnosis method based on fast Fourier transform, k-nearest neighbor algorithm and domain adaptive graph convolutional neural network. It is verified by rolling bearing fault diagnosis as an example. In practical application, it can be extended to general rotating machinery, processing and manufacturing, machine maintenance, etc., and has good engineering practicality.

[0190] In traditional fault diagnosis methods based on transfer learning, the learnable knowledge mainly includes feature information and shared model parameters, but ignores the relationship between samples or transferable knowledge. However, there is a certain connection between sample relationships and sample labels. Therefore, by mining the relationship between samples and transferring the relationship to the target domain task, the performance of fault diagnosis methods based on transfer learning can be further improved. Traditional data representation methods, such as vectors and matrices, cannot effectively express the "sample-sample label" relationship, while graphs are a type of data that can express complex relationships between objects. It consists of a series of nodes and edges and can be used to establish relationships between samples. Compared with traditional Euclidean structured data, graph structures can represent the "sample-sample label" mapping, provide more transferable knowledge, and help the model apply the knowledge learned from the source domain to the target domain, which can effectively improve the classification accuracy.

[0191] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A rotating machinery fault diagnosis method based on graph data, characterized in that: The steps include: Obtain the vibration signal of the rotating machinery, perform fast Fourier transform on the vibration signal, and extract the corresponding spectrum features; The spectral features are constructed into corresponding graph data using a k-nearest neighbor algorithm; the graph data expresses a mapping relationship between samples and between samples and sample labels, so as to link transferable knowledge between samples; The sample refers to the frequency spectrum feature corresponding to the vibration signal, and the label refers to the working state of the rotating machinery corresponding to the sample; The graph data is input into a pre-trained domain adaptive graph convolutional neural network, and the neural network outputs the corresponding fault diagnosis result based on the graph data; wherein the domain adaptive graph convolutional neural network includes: a graph convolution layer, an activation function and a classifier; the graph convolution layer is used to learn the node features of the graph data, the activation function is used to fit the nonlinear characteristics based on the learned node features, and the classifier is used to predict the health status label of the sample based on the nonlinear characteristics; the health status label corresponds to the rotating machinery fault diagnosis result based on the graph data; the neural network is pre-trained using cross entropy loss and maximum mean difference loss, the cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the accuracy of the prediction result, and the maximum mean difference loss is used to reduce the difference between the source domain sample and the target domain sample; the source domain sample corresponds to the vibration signal of the rotating machinery under normal working state, and the target domain sample corresponds to the vibration signal of the rotating machinery under fault state; the graph data contains transferable knowledge between samples, and the neural network is trained by the maximum mean difference loss so that the neural network is suitable for different types of rotating machinery fault diagnosis based on graph data.

2. The method according to claim 1, characterized in that When the vibration signals to be diagnosed are less than M groups, the frequency spectrum features corresponding to each group of vibration signals are taken as a sample to be tested; each sample to be tested is added to the graph data structure corresponding to the training samples used to train the neural network using the k-nearest neighbor algorithm, and each sample to be tested corresponds to a node to be diagnosed in the updated graph data structure; the updated graph data structure is input into the trained neural network, and the neural network is used to diagnose each node to be diagnosed in the graph data structure to determine the fault diagnosis result corresponding to each sample to be tested; M is less than a preset value; When the vibration signal to be diagnosed is greater than or equal to M, the frequency spectrum features corresponding to the M groups of vibration signals are used as M samples to be tested; a new graph data structure is generated based on the M samples to be tested using the k-nearest neighbor algorithm, and each sample to be tested corresponds to a node to be diagnosed in the new graph data structure; the new graph data structure is input into a trained neural network, and the neural network is used to diagnose each node to be diagnosed in the new graph data structure to determine the fault diagnosis result corresponding to each sample to be tested.

3. The method according to claim 1 or 2, characterized in that: The k-nearest neighbor algorithm is used to construct the spectrum features into corresponding graph data, specifically: Calculate the distance matrix T∈R n×n , T is calculated by the following formula: T(X i ,X j )=||F f,i ,F f,j ||2 Among them, T(X i ,X j ) is the sample X i and sample X j The Euclidean distance between f,i ,F f,j They are samples X i , Sample X j Node characteristics of The k-nearest neighbor algorithm is used to find the k-nearest neighbor node set of each node, as shown in the following formula: Among them, X ij is a sample X i k nearest neighbor nodes, ψ(X i ) represents sample X i The set of k nearest neighbor nodes; Establish the edge set E, and after finding the k nearest neighbor nodes of each node, connect the node to its k nearest neighbor nodes; for the k nearest neighbor node set ψ(X i ), the edge connection can be defined as: A i,j is the element in the i-th row and j-th column of the adjacency matrix, A j,i is the element in the jth row and ith column of the adjacency matrix. The adjacency matrix is ​​used to represent edge connections. If the adjacency matrix element is 1, it means that there is an edge connection between node i and node j. If the adjacency matrix element is 0, it means that there is no edge connection between node i and node j. By performing the above operations on all samples, an edge set E can be obtained, which is the graph data corresponding to all samples.

4. The method according to any one of claims 1 to 3, characterized in that: The graph convolution layer is used to learn the node features of the graph data, specifically: Y (1) =Cheb(X,W (1) ) Y (2) =Cheb(σ(Y (1) ),W (2) ) Y (3) =Cheb(σ(Y (2) ),W (3) ) Where W (1) ∈R m×l ,W (2) ∈R l×v ,W (3) ∈R v×g is the trainable weight matrix of the first, second, and third convolutional layers, Cheb(·) is the convolution of the Chebyshev graph, m is the scale of the input vector, l, v, g are the scales of the output vector, and Y (1) ∈R n×l ,Y (2) ∈R n×v ,Y (3) ∈R n×g represents the output of the 1st, 2nd, and 3rd graph convolutional layers, and σ represents the leaky rectifier unit; The classification result is calculated using the softmax classifier using the following formula: Z =softmax(Y (3) ) Where Z is the predicted health status label of the node in the graph data.

5. The method according to claim 1, characterized in that The total loss of the neural network is defined as: L total (X s ,Y s ,X t )=L CE (X s ,Y s )+αL MMD (X s ,X t ) Among them, L total is the total loss, L MMD is the cross entropy loss, L MMD is the maximum mean difference loss, α is the trade-off parameter; X s is the source domain sample, Y s is the source domain label, X t is the target domain sample; Cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the prediction result, which is defined as: Among them, b i represents an indicator variable, N L represents the number of fault categories, p c Indicates the predicted probability that the i-th sample belongs to a certain category, L CE represents the cross entropy loss.

6. A rotating machinery fault diagnosis system based on graph data, characterized in that: include: A frequency spectrum feature acquisition unit is used to acquire the vibration signal of the rotating machinery, and perform fast Fourier transform on the vibration signal to extract the corresponding frequency spectrum feature; A graph data determination unit, configured to construct the spectrum features into corresponding graph data using a k-nearest neighbor algorithm; the graph data expresses a mapping relationship between samples and between samples and sample labels, so as to link transferable knowledge between samples; The sample refers to the frequency spectrum feature corresponding to the vibration signal, and the label refers to the working state of the rotating machinery corresponding to the sample; A fault diagnosis unit is used to input the graph data into a pre-trained domain adaptive graph convolutional neural network, and the neural network outputs a corresponding fault diagnosis result based on the graph data; wherein the domain adaptive graph convolutional neural network includes: a graph convolution layer, an activation function and a classifier; the graph convolution layer is used to learn the node features of the graph data, the activation function is used to fit the nonlinear characteristics based on the learned node features, and the classifier is used to predict the health status label of the sample based on the nonlinear characteristics; the health status label corresponds to the rotating machinery fault diagnosis result based on the graph data; the neural network is pre-trained using cross entropy loss and maximum mean difference loss, the cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the accuracy of the prediction result, and the maximum mean difference loss is used to reduce the difference between the source domain sample and the target domain sample; the source domain sample corresponds to the vibration signal of the rotating machinery under normal working state, and the target domain sample corresponds to the vibration signal of the rotating machinery under fault state; the graph data contains transferable knowledge between samples, and the neural network is trained by the maximum mean difference loss so that the neural network is suitable for different types of rotating machinery fault diagnosis based on graph data.

7. The system according to claim 6, characterized in that When the number of vibration signals to be diagnosed is less than M groups, the graph data determination unit takes the frequency spectrum features corresponding to each group of vibration signals as a sample to be tested; uses a k-nearest neighbor algorithm to add each sample to be tested to the graph data structure corresponding to the training samples used to train the neural network, and each sample to be tested corresponds to a node to be diagnosed in the updated graph data structure; The fault diagnosis unit inputs the updated graph data structure into the trained neural network, and uses the neural network to diagnose each node to be diagnosed in the graph data structure to determine the fault diagnosis result corresponding to each sample to be tested; M is less than a preset value; When the vibration signal to be diagnosed is greater than or equal to M, the graph data determination unit uses the frequency spectrum features corresponding to the M groups of vibration signals as M samples to be tested; a new graph data structure is generated based on the M samples to be tested using the k-nearest neighbor algorithm, and each sample to be tested corresponds to a node to be diagnosed in the new graph data structure; the fault diagnosis unit inputs the new graph data structure into the trained neural network, and uses the neural network to diagnose each node to be diagnosed in the new graph data structure, and determines the fault diagnosis results corresponding to each sample to be tested.

8. The system according to claim 6 or 7, characterized in that: The graph data determination unit constructs the spectrum features into corresponding graph data using a k-nearest neighbor algorithm, specifically: Calculate the distance matrix T∈R n×n , T is calculated by the following formula: T(X i ,X j )=||F f,i ,F f,j ||2 Among them, T(X i ,X j ) is the sample X i and sample X j The Euclidean distance between f,i ,F f,j They are samples X i , Sample X j Node characteristics; The k-nearest neighbor algorithm is used to find the k-nearest neighbor node set of each node, as shown in the following formula: Among them, X ij is a sample X i k nearest neighbor nodes, ψ(X i ) represents the sample X i The set of k nearest neighbor nodes; Establish the edge set E, and after finding the k nearest neighbor nodes of each node, connect the node to its k nearest neighbor nodes; for the k nearest neighbor node set ψ(X i ), the edge connection can be defined as: A i,j is the element in the i-th row and j-th column of the adjacency matrix, A j,i is the element in the jth row and ith column of the adjacency matrix. The adjacency matrix is ​​used to represent edge connections. If the adjacency matrix element is 1, it means that there is an edge connection between node i and node j. If the adjacency matrix element is 0, it means that there is no edge connection between node i and node j. By performing the above operations on all samples, an edge set E can be obtained, which is the graph data corresponding to all samples.

9. The system according to any one of claims 6 to 8, characterized in that: The graph convolution layer is used to learn the node features of the graph data, specifically: Y (1) =Cheb(X,W (1) ) Y (2) =Cheb(σ(Y (1) ),W (2) ) Y (3) =Cheb(σ(Y (2) ),W (3) ) Where W (1) ∈R m×l ,W (2) ∈R l×v ,W (3) ∈R v×g is the trainable weight matrix of the first, second, and third convolutional layers, Cheb(·) is the convolution of the Chebyshev graph, m is the scale of the input vector, l, v, g are the scales of the output vector, and Y (1) ∈R n×l ,Y (2) ∈R n×v ,Y (3) ∈R n×g represents the output of the 1st, 2nd, and 3rd graph convolutional layers, and σ represents the leaky rectifier unit; The classification result is calculated using the softmax classifier using the following formula: Z =softmax(Y (3) ) Where Z is the predicted health status label of the node in the graph data.

10. The system according to claim 6, characterized in that The total loss of the neural network is defined as: L total (X s ,Y s ,X t )=L CE (X s ,Y s )+αL MMD (X s ,X t ) Among them, L total is the total loss, L MMD is the cross entropy loss, L MMD is the maximum mean difference loss, α is the trade-off parameter; X s is the source domain sample, Y s is the source domain label, X t is the target domain sample; Cross entropy loss is used to measure the difference between the true label and the predicted label to ensure the prediction result, which is defined as: Among them, b i represents an indicator variable, N L represents the number of fault categories, p c Indicates the predicted probability that the i-th sample belongs to a certain category, L CE represents the cross entropy loss.