Rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding

Through methods based on zero-trial learning and latent space coding, the problem of intelligent diagnosis in rotating machinery fault diagnosis with a small number of samples is solved, high-accuracy fault detection with a small amount of data is achieved, and real-time monitoring of mechanical equipment is improved. capabilities, reducing potential hazards and losses.

CN114398957BActive Publication Date: 2024-08-23YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111567596.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-08-23
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

In rotating machinery fault diagnosis, existing technology is difficult to achieve intelligent fault diagnosis under small sample conditions, and it is difficult to find useful data in massive data, resulting in low accuracy and low efficiency of mechanical fault diagnosis.

Method used

Using a method based on zero-trial learning and latent space coding, by obtaining normal, natural damage and man-made fault data samples, performing data preprocessing and feature extraction, a latent space coding model is established, and the encoding-decoding structure and penalty function are used to train the model to find The optimal solution matrix enables diagnosis of unknown faults.

Benefits of technology

It realizes intelligent fault diagnosis of rotating machinery under a small number of samples, improves the accuracy and efficiency of diagnosis, reduces the dependence on a large amount of data, can monitor mechanical equipment in real time, has high prediction accuracy, and reduces potential dangers and losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114398957B
    Figure CN114398957B
Patent Text Reader

Abstract

This invention discloses a fault diagnosis method for rotating machinery based on zero-trial learning and latent space coding. Zero-trial learning eliminates the dependence of traditional deep learning on large amounts of labeled data, enabling fault diagnosis of unknown samples using only a small amount of labeled data. The latent space coding model is a novel encoder-decoder method that uses an encoder-decoder approach to interact and share visual and semantic information in the latent space. This invention does not require a large amount of labeled data for training and significantly reduces the cost of data labeling. By learning the similarity between unknown class samples in the test set and known class samples in the training set in the latent space, high-level semantic features of the unknown class in the test set are obtained for the detection of unknown samples. This invention not only improves the detection performance of the network and reduces the parameter optimization process, but also achieves a better fault diagnosis effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of rotating machinery fault diagnosis, in particular to a rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding. Background Art

[0002] Since the beginning of the 21st century, the use of mechanical equipment has promoted the development of the national economy and brought great convenience to production and life. At present, mechanical equipment is developing towards intelligence and precision. However, due to the correlation between parts, a small failure may cause serious consequences and cause huge losses of manpower and material resources.

[0003] In actual environments, mechanical fault diagnosis faces huge challenges. Since mechanical equipment works in harsh environments such as high temperature and high pressure, the mechanical load will change, and the data types are rich, but the single data type is small, which increases the difficulty of fault detection. At the same time, due to the long equipment monitoring cycle and many monitoring points, a huge amount of data will be obtained, but finding useful data in the massive data increases the difficulty of mechanical fault diagnosis. In addition, due to the correlation between the various components in the system, a small fault may cause a chain reaction, causing the entire equipment to be paralyzed or even cause casualties. Therefore, timely and accurate diagnosis of potential equipment failures has become an important topic in academia and industry.

[0004] In response to the problem of scarce fault data, researchers have simulated fault samples in the laboratory, but the simulated fault samples are difficult to compare with real data. Faced with practical problems, scholars aim to achieve fault diagnosis through training with very few samples. In order to solve practical problems, we use a very few sample learning method to establish a model structure for detecting unknown fault types and realize the detection of unknown samples by mechanical equipment. Therefore, the present invention mainly focuses on the situation with fewer samples to realize the diagnosis research of unknown faults. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding, to realize intelligent fault diagnosis of rotating machinery under the condition of fewer samples, and to detect the operating condition of the machinery.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding, comprising the following steps:

[0007] S1. Collect rotating machinery signals: obtain normal data samples, natural damage data samples and man-made failure data samples required for the experiment, integrate all collected samples into a complete data set, and divide the data set into a training set, a validation set and a test set;

[0008] S2, data preprocessing and feature extraction: preprocess the training set, validation set and test set respectively, and then extract features from the preprocessed data;

[0009] S3. Establish a latent space encoding model based on zero-trial learning. The visual features extracted from the training set and the validation set are used It means that the visual features are sent into the latent space encoding model, and the penalty function of the labeled data is used to train the entire model to find the optimal solution matrix U of the latent space encoding model. i , the optimal solution matrix U i is the encoding matrix that minimizes the difference between the input matrix and the recovery matrix. If the optimal solution matrix U is found i , then use the test set to test and save the relevant parameters, otherwise adjust the hyperparameters and optimize the model until the optimal solution matrix U is found i ;

[0010] S4. After the training is completed, the data in the test set is sent to the trained latent space encoding model to verify the performance. If the detection effect is good, it is the final result. Otherwise, continue to adjust the hyperparameters and continue training until the optimal model is obtained.

[0011] A further improvement of the technical solution of the present invention is that: in the data preprocessing process in step S2, wavelet transform is used to obtain a time-frequency spectrum diagram. The specific process is: first, a single data sample is cut into a sequence with a length of 1024, and then a wavelet transform is used to obtain a time-frequency spectrum diagram of the same size, and finally the preprocessed data is classified and saved.

[0012] A further improvement of the technical solution of the present invention is that: in the process of feature processing of the data sample in step S2, the AlexNet network is used to extract features, and the results of feature extraction by AlexNet are sent to the latent space coding model established in step S3 for training.

[0013] A further improvement of the technical solution of the present invention is that: in step S3, the sample input after feature extraction in the model of latent space coding is x i ∈X1(i=1,2,......,N),x i It refers to the visual feature matrix of the i-th data sample in the data sample of artificial failure in the data set. During the encoding process, the encoder structure encodes the input vector X i Mapping is performed to obtain the encoded vector C, which is represented by the input vector X i and the encoding matrix The product of During the decoding process, the decoder structure maps the vector C to obtain the reconstructed matrix It is an approximation of the input signal, so the vector C is represented by the decoding matrix V i and the reconstruction matrix The product of

[0014] A further improvement of the technical solution of the present invention is that: in step S3, the optimal solution matrix U of the latent space coding model is found i In the process, the penalty function satisfies the following formula:

[0015]

[0016] Among them, λ is the parameter that balances the two terms, is the reconstruction error between the reconstruction matrix and the input matrix, is the code vector C derived from the input matrix and Since the encoding-decoding framework is a symmetrical structure, the encoding matrix and the decoding matrix are symmetrical, and U i =V i .

[0017] A further improvement of the technical solution of the present invention is that: in the process of training the latent space coding model in step S3, when the minimized error function is obtained When U i The optimal solution matrix is:

[0018]

[0019] When U in formula (1) i Replace with U i After the optimal solution matrix, the penalty function of formula (1) is expressed as:

[0020]

[0021] Tr[·] represents the trace of the matrix. In formula (3) is a constant, solve L(X i ,C,U i ), that is, to solve Therefore, the following formula is obtained:

[0022]

[0023] sCC T =1, (4)

[0024] Using C T Substituting C, formula (4) can be written as:

[0025] L(X i ,C)=Tr[CT Δ i C]stCC T =1, (5)

[0026] in,

[0027] A further improvement of the technical solution of the present invention is that: after the latent space coding model training is completed in step S4, a test is performed. In the process of testing samples, the class prototype is obtained by weighting the class prototypes of the visible classes in training, and the class prototype of each class is S i Indicates that i = 1, ..., N; therefore, the unseen class prototypes in the test set are composed of the weighted sum of the class prototypes of the known classes as follows:

[0028] A u =αS1+....+γS N ,α+...+γ=1, (6)

[0029] By calculating the similarity between the visual features and the unknown class prototype, in this process, the class prototype is encoded into the visual space, and zero-trial learning is performed in the visual space, with:

[0030]

[0031] Among them, l(X t ) returns the test instance x t Tags, is the class prototype A of the jth invisible class j Projection vector in view space.

[0032] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:

[0033] 1. The present invention adopts the method of latent space coding under zero-trial learning to perform fault diagnosis of rotating machinery. By utilizing the idea of ​​encoding-decoding model, a latent space matrix based on zero-trial learning is constructed to accurately and quickly perform intelligent mechanical fault diagnosis of unknown data;

[0034] 2. The present invention proposes a new method of zero-trial learning - latent space coding model. Zero-trial learning: by learning the prior knowledge of a small number of samples, the data samples under different conditions are linked together, and finally the diagnosis of unknown faults in the test class is realized. The latent space coding model connects different patterns through implicit learning, interacts visual and semantic information, and shares latent space information. Finally, the test samples are diagnosed by learning the correlation between different sample features. A more important advantage of this method is that the encoding-decoding structure of the model is symmetrical, which reduces the optimization of parameters, and by using the visual features of the known classes in the training set to guide the formation of the visual features of the unknown classes in the test set, the generalization ability of the model is improved. The present invention combines zero-trial learning and latent space coding for fault diagnosis, combining the advantages of both and improving the performance of fault diagnosis;

[0035] 3. The present invention uses the method of latent space coding under zero-trial learning to diagnose the faults of rotating machinery. When a small amount of known data is needed, the fault diagnosis of unknown data is performed, which not only reduces the dependence of deep learning methods on a large amount of data, but also realizes the detection of unknown faults. The most important thing is that the labeled data is reasonably used, and the mechanical equipment can be monitored in real time to prevent potential dangers. The prediction accuracy is high, which reduces the loss of financial and material resources in this regard. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is the overall framework roadmap of the present invention;

[0037] Figure 2 It is the technical roadmap of the entire model;

[0038] Figure 3 It is the network structure of the feature extraction module. DETAILED DESCRIPTION

[0039] The present invention is further described in detail below in conjunction with embodiments:

[0040] like Figure 1 to Figure 3 As shown, the rotating machinery fault diagnosis method based on latent space encoding includes the following steps:

[0041] S1. Obtain the normal data samples, naturally damaged data samples, and man-made failure data samples required for the experiment, integrate all the collected samples into a complete data set, and divide the data set into a training set, a validation set, and a test set.

[0042] S2. Normalize the data, mainly using wavelet transform to obtain the time-frequency spectrum. Before performing the wavelet transform, it is necessary to first determine the length of a single sample. After experimental comparison, it is found that the effect is better when the data is cut into a length of 1024. Therefore, in the preprocessing process, the data samples are first cut into a sequence of length 1024. Then the wavelet transform is used to obtain the time-frequency spectrum of the same size, and finally the preprocessed data is classified and saved. In the process of feature processing of the data samples, the CNN classic model AlexNet network is used for feature extraction. The network structure has a total of 8 layers, the first 5 layers are convolutional layers, and the last 3 layers are fully connected layers. Finally, the output of the fully connected layer is input to the latent space coding model based on zero-trial learning for processing. The structure of the first two convolutional layers is convolution-->ReLU-->Maxpool-->BN, using 96 convolution kernels of size 11×11 and 256 convolution kernels of size 5×5 respectively. The moving steps during convolution are 4 and 1 respectively. When the network performs the maximum pooling operation, the size of the pooling operation is 3×3 and the step size is 2. The third and fourth convolution blocks have a structure of convolution->ReLU, and both use 384 convolution kernels of size 3×3, with the same padding, so that the size of the image after convolution remains unchanged. The structure of the fifth convolution block is convolution->ReLU->Maxpool, with 256 convolution kernels of size 3×3, with the same padding, so that the size of the image after convolution remains unchanged. The final pooling size is 3×3, with a step size of 2. Finally, a two-layer structure of fully connected->ReLU->Dropout and a layer of only fully connected structure are used. The results after AlexNet are sent to the latent space coding model for training.

[0043] S3. The sample input after feature extraction in the latent space encoding model is x i ∈X1(i=1,2,......,N),x i It refers to the visual feature matrix of the i-th data sample in the data sample of artificial failure in the data set. During the encoding process, the encoder structure encodes the input vector X i Mapping is performed to obtain the encoded vector C, which can be expressed as the input vector X i and the encoding matrix The product of During the decoding process, the decoder structure maps the vector C to obtain the reconstructed matrix It is an approximation of the input signal, so the vector C can be expressed as the decoding matrix V i and the reconstruction matrix The product of Find the optimal solution matrix U of the latent space coding model i In the process, the penalty function satisfies the following formula:

[0044]

[0045] Among them, λ is the parameter that balances the two terms, is the reconstruction error between the reconstruction matrix and the input matrix, is the code vector C derived from the input matrix and Since the encoding-decoding framework is a symmetrical structure, the encoding matrix and the decoding matrix are symmetrical and can be represented by the same parameters, with U i =V i The purpose of doing this is mainly to make the input matrix more resilient. i It is a parameter that needs to be determined.

[0046] When the error function is minimized When U i The optimal solution matrix is:

[0047]

[0048] When U in formula (1) i Replace with U i After the optimal solution matrix is ​​obtained, the penalty function of formula (1) is expressed as:

[0049]

[0050] Tr[·] represents the trace of the matrix. In formula (3) is a constant, solve L(X i ,C,U i ), that is, to solve Therefore, the following formula is obtained:

[0051]

[0052] sCC T =1, (4)

[0053] Using C T Substituting C, formula (4) can be written as:

[0054] L(X i ,C)=Tr[C T Δ i C]stCC T =1, (5)

[0055] in,

[0056] S4. After the latent space encoding model is trained, it is tested. In the process of testing samples, since the test samples are unknown, the class prototypes are obtained by weighting the class prototypes of the visible classes in training. The class prototypes of each class are represented by S i Indicates that i = 1, ..., N; therefore, the unseen class prototypes in the test set are composed of the weighted sum of the class prototypes of the known classes as follows:

[0057] A u =αS1+....+γS N ,α+...+γ=1, (6)

[0058] In the test phase, the learned encoding matrix and decoding matrix are used to classify unknown instances. The similarity between the visual features and the unknown class prototype is calculated. In this process, the class prototype is encoded into the visual space, and zero-trial learning is performed in the visual space.

[0059]

[0060] Among them, l(X t ) returns the test instance x t Tags, is the class prototype A of the jth invisible class j Projection vector in view space.

Claims

1. Rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding, Features: The steps include: S1. Collect rotating machinery signals: obtain normal data samples, natural damage data samples and man-made failure data samples required for the experiment, integrate all collected samples into a complete data set, and divide the data set into a training set, a validation set and a test set; S2, data preprocessing and feature extraction: preprocess the training set, validation set and test set respectively, and then extract features from the preprocessed data; S3. Establish a latent space encoding model based on zero-trial learning. The visual features extracted from the training set and the validation set are used It means that the visual features are sent into the latent space encoding model, and the penalty function of the labeled data is used to train the entire model to find the optimal solution matrix U of the latent space encoding model. i , the optimal solution matrix U i is the encoding matrix that minimizes the difference between the input matrix and the recovery matrix. If the optimal solution matrix U is found i , then use the test set to test and save the relevant parameters, otherwise adjust the hyperparameters and optimize the model until the optimal solution matrix U is found i ; S4. After the training is completed, the data in the test set is sent to the trained latent space encoding model to verify the performance. If the detection effect is good, it is the final result. Otherwise, continue to adjust the hyperparameters and continue training until the optimal model is obtained.

2. The rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding according to claim 1, Features: In the data preprocessing process in step S2, wavelet transform is used to obtain a time-frequency spectrum. The specific process is: first, a single data sample is cut into a sequence with a length of 1024, then a wavelet transform is used to obtain a time-frequency spectrum of the same size, and finally the preprocessed data is classified and saved.

3. The rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding according to claim 2, Features: In the process of feature processing of the data samples in step S2, the AlexNet network is used to extract features, and the results of feature extraction by AlexNet are sent to the latent space coding model established in step S3 for training.

4. The rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding according to claim 3, Features: In step S3, the sample input after feature extraction in the latent space encoding model is x i ∈X 1 (i=1,2,......,N),x i It refers to the visual feature matrix of the i-th data sample in the data sample of artificial failure in the data set. During the encoding process, the encoder structure encodes the input vector X i Mapping is performed to obtain the encoded vector C, which is represented by the input vector X i and the encoding matrix The product of During the decoding process, the decoder structure maps the vector C to obtain the reconstructed matrix It is an approximation of the input signal, so the vector C is represented by the decoding matrix V i and the reconstruction matrix The product of 5. The rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding according to claim 4, Features: In step S3, the optimal solution matrix U of the latent space coding model is found i In the process, the penalty function satisfies the following formula: Among them, λ is the parameter that balances the two terms, is the reconstruction error between the reconstructed matrix and the input matrix, is the code vector C derived from the input matrix and Since the encoding-decoding framework is a symmetrical structure, the encoding matrix and the decoding matrix are symmetrical, and U i =V i .

6. The rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding according to claim 5, Features: In the latent space coding model training process in step S3, when the minimized error function is obtained When U i The optimal solution matrix is: When U in formula (1) i Replace with U i After the optimal solution matrix is ​​obtained, the penalty function of formula (1) is expressed as: Tr[·] represents the trace of the matrix. In formula (3) is a constant, solve L(X i ,C,U i ), that is, to solve Therefore, the following formula is obtained: s.t.CC T =1, (4) Using C T Substituting C, formula (4) can be written as: L(X i ,C)=Tr[C T Δ i C]s.t.CC T =1, (5) in, 7. The rotating machinery fault diagnosis method based on zero-trial learning and latent space encoding according to claim 6, Features: After the latent space coding model training in step S4 is completed, the test is performed. In the process of testing samples, the class prototype is obtained by weighting the class prototypes of the visible classes in training. The class prototype of each class is S i Indicates that i = 1, ..., N; therefore, the unseen class prototypes in the test set are composed of the weighted sum of the class prototypes of the known classes as follows: A u =αS 1 +....+γS N ,α+...+γ=1, (6) By calculating the similarity between the visual features and the unknown class prototype, in this process, the class prototype is encoded into the visual space, and zero-trial learning is performed in the visual space, with: Among them, l(X t ) returns the test instance x t Tags, is the class prototype A of the jth invisible class j Projection vector in view space.