A bearing composite fault diagnosis method based on embedded zero-shot learning model

Through the embedded zero-sample learning model, single fault samples are used to construct semantic and feature vectors, and fault space mapping is established, which solves the problem of lack of samples in bearing composite fault diagnosis and achieves high-accuracy composite fault classification.

CN114383845BActive Publication Date: 2024-08-27HEFEI UNIV OF TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210009582.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-06
Publication Date
2024-08-27
Estimated Expiration
2042-01-06

AI Technical Summary

Technical Problem

It is difficult to effectively diagnose bearing composite faults with existing technology, especially in the absence of composite fault samples. Traditional methods require a large amount of expert knowledge and labeled fault data samples, making it difficult to apply in industrial scenarios.

Method used

Using a method based on the embedded zero-shot learning model, through the semantic processing module, feature extraction module and semantic embedding module, single fault samples are used to construct fault semantic vectors and feature vectors, establish the mapping relationship between fault semantic space and feature space, and realize compound faults. diagnosis.

Benefits of technology

In the absence of compound fault samples, the accuracy of compound fault classification is significantly improved, semantics can be automatically constructed, the dependence on expert knowledge is reduced, mapping domain offset and pivot problems are alleviated, and classification accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114383845B
    Figure CN114383845B
Patent Text Reader

Abstract

The present invention discloses a bearing composite fault diagnosis method based on an embedded zero-sample learning model. An embedded zero-sample learning model is built and composite fault diagnosis is performed using the embedded zero-sample learning model. The embedded zero-sample learning model includes: a semantic processing module, a feature extraction module, and a semantic embedding module. The semantic processing module is used to generate a single fault semantic vector g s and composite fault semantic vector g u ; The feature extraction module is used to extract the single fault feature vector f s and the composite fault feature vector f u ; In the semantic embedding module, the single fault semantic vector g s and single fault feature vector f s , learn the mapping relationship between the fault semantic space and the fault feature space, and according to the mapping relationship between the fault semantic space and the fault feature space, and according to the single fault semantic vector g s and composite fault semantic vector g u The relationship between them is based on the composite fault feature vector f u Perform complex fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bearing composite fault diagnosis, and in particular to a bearing composite fault diagnosis method based on an embedded zero-sample learning model. Background Art

[0002] Bearings are important basic components in rotating machinery. Due to the randomness and complexity of their failures, the diagnosis of bearing compound faults has always been a challenging problem.

[0003] Traditional composite fault diagnosis methods mainly include composite fault diagnosis based on analytical models, qualitative experience, and signal analysis, such as empirical mode decomposition, wavelet transform, and Hilbert transform. These methods do not know the specific composition of the fault in advance and require a lot of expert knowledge. However, it is very difficult to intuitively judge the signal, so these methods are not applicable in actual industrial scenarios.

[0004] In recent years, intelligent fault diagnosis methods based on deep neural networks have gradually emerged. Deep neural networks do not require expert knowledge, but are trained with a large number of labeled fault data samples, and the mapping relationship between compound fault signals and fault categories is established through the back propagation of losses. Then, the compound fault signal to be diagnosed is sent to the trained network to complete the classification. However, in the current industrial scenario, the data of compound faults is difficult to collect and label, so these supervised or semi-supervised deep learning methods are difficult to be applied in practice. Summary of the invention

[0005] In order to overcome the defects in the above-mentioned prior art, the present invention provides a bearing composite fault diagnosis method based on an embedded zero-sample learning model, which uses single fault samples to perform composite fault diagnosis and has a high composite fault classification accuracy.

[0006] To achieve the above object, the present invention adopts the following technical solutions, including:

[0007] A bearing composite fault diagnosis method based on an embedded zero-shot learning model is proposed. An embedded zero-shot learning model is constructed and composite fault diagnosis is performed using the embedded zero-shot learning model.

[0008] The embedded zero-shot learning model includes: semantic processing module, feature extraction module, and semantic embedding module;

[0009] The semantic processing module is used to construct a fault semantic vector g according to the fault sample, including a single fault semantic vector g s and composite fault semantic vector g u ;

[0010] The feature extraction module is used to extract the fault feature vector f according to the fault sample, including the single fault feature vector f s and the composite fault feature vector f u ;

[0011] The semantic embedding module is used to embed the single fault semantic vector g s and single fault feature vector f s , learn the mapping relationship between fault semantic space and fault feature space;

[0012] The semantic embedding module is based on the mapping relationship between the fault semantic space and the fault feature space, and on the single fault semantic vector g s and composite fault semantic vector g u The relationship between them is calculated by using the composite fault feature vector f u Perform complex fault diagnosis.

[0013] Furthermore, the original fault signal, i.e., the one-dimensional vibration signal, is converted into a two-dimensional image, i.e., the fault image. The converted fault image is the fault sample input to the semantic processing module and the feature extraction module. The fault image includes: a wavelet image converted from the vibration signal of a single fault, i.e., a single fault image x s , the wavelet image converted from the vibration signal of a single fault is the composite fault image x u .

[0014] Furthermore, a composite fault is composed of different single faults, and each single fault corresponds to a single fault semantic vector g s , each composite fault corresponds to a composite fault semantic vector g u ;

[0015] The semantic processing module firstly calculates the single fault image x s Generate a single fault semantic vector g s , and then according to the single fault category contained in the composite fault, the corresponding single fault semantic vector g s Add together to get the composite fault semantic vector g u .

[0016] Furthermore, the semantic processing module adopts a convolutional autoencoder, including an encoder E 1 and decoder D 1 ;

[0017] The encoder E 1 For the input single fault image x s Perform hidden feature extraction to obtain a single fault image x s The first deep hidden features of 1 For encoder E1 The obtained single fault image x s The first deep hidden feature of the image is reconstructed to obtain a reconstructed image; the semantic processing module converts the input single fault image x s Compare with the reconstructed image and calculate the image loss. If the image loss meets the requirements, it means that the semantic processing module training is completed;

[0018] After the semantic processing module is trained, the encoder E 1 Then for the input single fault image x s Generate the first deep hidden features, and the single fault image x s The first deep hidden feature is the single fault semantic vector g s .

[0019] Furthermore, the feature extraction module is a feature extractor established using a convolutional neural network;

[0020] The feature extraction module performs a single fault image x s Extract single fault feature vector f s , and predict the single fault image x s The corresponding predicted fault category p s The feature extraction module is based on the input single fault image x s The actual single fault category and the predicted fault category p s , calculate the classification loss. If the classification loss meets the requirements, it means that the feature extraction module training is completed;

[0021] After the feature extraction module is trained, the composite fault image x u Extract the composite fault feature vector f u .

[0022] Furthermore, the semantic embedding module adopts an automatic encoder, which is composed of an encoder E 2 and decoder D 2 constitute;

[0023] The encoder E 2 The decoder D is used to compress the fault feature vector f extracted by the feature extraction module to the hidden layer to obtain the second deep hidden feature h; 2 Used to reconstruct the second deep hidden feature h, and output the reconstructed fault feature vector f'(h) of the second deep hidden feature h;

[0024] The decoder D 2 It is also used to reconstruct the fault semantic vector g generated by the semantic processing module and output a reconstructed fault feature vector f'(g) of the fault semantic vector g.

[0025] Furthermore, the encoder E 2 The single fault feature vector f extracted by the feature extraction module s Compressed to the hidden layer, the second deep hidden feature h of the single fault is obtained s , the decoder D 2 The second deep hidden feature h for a single fault s Reconstruct and output the second deep hidden feature h of the single fault s The reconstructed fault feature vector f s '(h s ); the decoder D 2 The single fault semantic vector g generated by the semantic processing module is also s Reconstruct, decoder D 2 Output single fault semantic vector g s The reconstructed fault feature vector f s '(g s );

[0026] The semantic embedding module is based on the single fault semantic vector g s With the second deep hidden feature h s The loss between the single fault feature vector f s With the second deep hidden feature h s The reconstructed fault feature vector f s '(h s ), the single fault feature vector f s With the single fault semantic vector g s The reconstructed fault feature vector f s '(g s ), calculate the global loss, and if the global loss meets the requirements, it means that the training of the semantic embedding module is completed.

[0027] Furthermore, the embedded zero-shot learning model is used to perform compound fault diagnosis, including the following steps:

[0028] S201, all single fault categories are known. A composite fault is composed of several different single faults. All composite fault categories are obtained by combining the single fault categories.

[0029] 203, the semantic processing module firstly processes the single fault images x under all single fault categories. s Generate a single fault semantic vector g s , get the single fault semantic vector g corresponding to each single fault category s ; Then, according to the single fault category contained in the composite fault, the corresponding single fault semantic vector g s Add together to get the composite fault semantic vector g corresponding to each composite fault category u ;

[0030] S203, the decoder D in the semantic embedding module 2 For each composite fault semantic vector g generated by the semantic processing module u All are reconstructed and the semantic vectors g of each composite fault are output u The reconstructed fault feature vector f u '(g u ), and each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ) as the central points in the composite fault feature space, each central point corresponds to a composite fault category;

[0031] S204, the feature extraction module extracts the composite fault image x to be diagnosed u Extract the composite fault feature vector f u ;

[0032] S205, calculate the composite fault feature vector f u The distance between each center point in the composite fault feature space is selected to be the distance between the composite fault feature vector f u The center point with the smallest distance, the composite fault category corresponding to the center point with the smallest distance is the composite fault image x u of the diagnosis.

[0033] Furthermore, the method for constructing the embedded zero-shot learning model comprises the following steps:

[0034] S1, defines the training set D of the embedded zero-shot learning model train and the test set D test :

[0035] Training set D for embedded zero-shot learning model train It is caused by single fault type C s Constructed, including the single fault image x s , single fault label y s ; The single fault label y s refers to the fault category of the single fault, and each single fault label y s Corresponding to a single fault semantic vector g s ; Subscript s represents a single fault; the training set D train It includes K single fault categories, each of which contains N samples, i.e., N single fault images;

[0036] Test set D for embedded zero-shot learning models test It is a composite fault type C u Constructed, including composite fault image xu , composite fault label y u A composite fault is composed of several different single faults, and the composite fault label y u refers to the single fault category contained in the composite fault, and each composite fault label y u Corresponding to a composite fault semantic vector g u ;Subscript u indicates a composite fault;

[0037] S2, build semantic processing module:

[0038] The semantic processing module adopts a convolutional autoencoder, including an encoder E 1 and decoder D 1 ; The encoder E 1 For the input single fault image x s Perform hidden feature extraction to obtain a single fault image x s The first deep hidden features of 1 For encoder E 1 The obtained single fault image x s The first deep hidden feature of the image is reconstructed to obtain a reconstructed image; the semantic processing module converts the input single fault image x s The image loss is calculated by comparing it with the reconstructed image. If the image loss meets the requirements, it means that the semantic processing module training is completed. After the semantic processing module training is completed, the encoder E 1 Then for the input single fault image x s Generate the first deep hidden features, and the single fault image x s The first deep hidden feature is the single fault semantic vector g s ;

[0039] Among them, the single fault semantic vector of the kth single fault category is It is expressed as:

[0040]

[0041] In the formula, represents the single fault semantic vector of the kth single fault category, where the superscript k represents the category number of the single fault, k = 1, 2, 3…, K, represents the i-th single fault image in the k-th single fault category, i = 1, 2, 3…, N, including K single fault categories in total, and each single fault category includes N single fault images; The first deep hidden feature representing the i-th single fault image in the k-th single fault category;

[0042] The semantic processing module defines the composite fault semantic vector g according to the correlation between composite faults and single faults, that is, the composite fault is composed of several different single faults. u ;

[0043] Among them, the composite fault semantic vector of a composite fault composed of J different single faults is The calculation method is as follows:

[0044]

[0045] in, The composite fault semantic vector represents a composite fault composed of J different single faults. The superscripts 1,…,J refer to the category numbers of the single faults that constitute the composite fault. The single fault semantic vector representing the j-th single fault category among the J single faults, j = 1, ..., J, J = 2, 3 ..., K;

[0046] S3, build feature extraction module:

[0047] The feature extraction module is a feature extractor established by a convolutional neural network, using the training set D train The feature extraction module is trained as follows:

[0048] The feature extraction module inputs a single fault image x s , extract the single fault feature vector f s , and predict the input single fault image x s The corresponding predicted fault category p s ;

[0049] For a single fault category, the classification loss function L of the feature extraction module is cnn :

[0050]

[0051] Among them, y s (i) is the i-th single fault image x in the single fault category s (i) single fault label, i.e., single fault category; i represents the sequence number of the single fault image, i = 1, 2, 3…N; p s (i) is the feature extraction module for the i-th single fault image x in the single fault category. s (i) The predicted fault category;

[0052] When the classification loss function of the feature extraction module L cnn After the requirements are met, the feature extraction module training is completed;

[0053] S4, build semantic embedding module:

[0054] The semantic embedding module uses an automatic encoder to learn the mapping relationship between the fault semantic space and the fault feature space. The semantic embedding module includes an encoder E 2 and decoder D 2 ;

[0055] Using the training set D train The semantic embedding module is trained as follows:

[0056] The encoder E 2 Input feature extraction module for single fault image x s The extracted single fault feature vector f s ; Encoder E 2 The single fault feature vector f s Compress to the hidden layer and get the single fault image x s The second deep hidden feature h s ,h s =E 2 (f s );E 2 (·) is the encoder E 2 Model function of

[0057] The decoder D 2 The second deep hidden feature h for a single fault image s Reconstruct and output single fault image x s The second deep hidden feature h s The reconstructed fault feature vector f s '(h s ), f s '(h s )=D 2 (h s );

[0058] D 2 (·) is the decoder D 2 Model function of

[0059] The decoder D 2 The single fault semantic vector g generated by the semantic processing module is also s Reconstruct, decoder D 2 Output single fault semantic vector g s The reconstructed fault feature vector f s '(g s ), f s '(g s )=D 2 (g s );

[0060] For a single fault category, the global loss function L of the semantic embedding module is sum for:

[0061] L sum =L SA +α·L FR +β·L SR ;

[0062] Among them, L SA is the semantic alignment loss, L FR is the feature reconstruction loss, L SR is the semantic reconstruction loss, α and β are the feature reconstruction loss L FR and semantic reconstruction loss L SR The weight factor of

[0063] For a single fault category, the semantic alignment loss function L SA for:

[0064]

[0065] Among them, h s For encoder E 2 The second deep hidden feature h of the single fault is obtained s , g s is a single fault semantic vector, δ is a hyperparameter;

[0066] For a single fault category, the feature reconstruction loss function L FR for:

[0067]

[0068] Among them, f s (i) is the feature extraction module for the i-th single fault image x s (i) The extracted single fault feature vector, f s '(h s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The second deep hidden feature h s (i) Reconstructed fault feature vector, i = 1, 2, 3...N;

[0069] For a single fault category, the semantic reconstruction loss function L SR :

[0070]

[0071] Among them, f s (i) is the feature extraction module for the i-th single fault image x s(i) The extracted single fault feature vector, f s '(g s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The single fault semantic vector g s (i) Reconstructed fault feature vector, i = 1, 2, 3...N;

[0072] When the global loss function L of the semantic embedding module sum After the requirements are met, the semantic alignment loss function L SA , feature reconstruction loss function L FR , semantic reconstruction loss function L SR After the requirements are met, the semantic embedding module training is completed;

[0073] S5, after the embedded zero-shot learning model training is completed, that is, after the learning and training of the feature extraction module and the semantic embedding module are completed, the test set D test The embedded zero-shot learning model is tested as follows:

[0074] S51, decoder D in the semantic embedding module 2 Each composite fault semantic vector g constructed by the semantic processing module u They are mapped to the fault feature space, namely the decoder D 2 Each composite fault semantic vector g constructed by the semantic processing module u Reconstruct and output each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ), f s '(g u )=D 2 (g u ), and each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ) are the central points in the composite fault feature space, each of which corresponds to a composite fault category;

[0075] S52, feature extraction module for test set D test Composite fault image x in u Extract the composite fault feature vector f u ;

[0076] S53, calculate the composite fault feature vector f u The distance between each center point in the composite fault feature space is selected to be the distance between the composite fault feature vector f uThe center point with the smallest distance is the composite fault image x. u The prediction results;

[0077] S54, the test set D test Composite fault image x in u The composite fault label y u Compare with the prediction result of step S53 to determine whether the prediction result is correct; if the two are consistent, it means that the composite fault image x u The prediction result is correct; otherwise, the prediction result is wrong.

[0078] Furthermore, in step S1, the training set D train and the test set D test Satisfy the following conditions:

[0079]

[0080] Among them, p(x s )、p(x u ) are single fault images x s , composite fault image x u The sample distribution of I(·) is used to calculate the mutual information between two sample distributions, I(p(x s ); p(x u )) is the sample distribution p(x s )、p(x u ) between the mutual information; single fault class C s and composite fault class C u are disjoint sets of classes.

[0081] The advantages of the present invention are:

[0082] (1) In response to the problem that it is difficult to collect and label compound fault data in industrial scenarios, the present invention proposes an embedded zero-shot learning model, which is trained using single fault samples and diagnoses compound faults. Experimental results show that the classification accuracy of the model is significant in the absence of compound fault samples.

[0083] (2) The present invention proposes an embedded zero-shot learning model that uses an automatic semantic construction method. The automatic semantic construction method refers to semantics that are obtained by self-learning using a convolutional autoencoder without manual definition. The embedded zero-shot learning model can be trained using single fault data to identify unknown compound faults. The embedded zero-shot learning model consists of a semantic processing module, a feature extraction module, and a semantic embedding module, which are respectively used for automatically constructing a fault semantic vector, extracting a fault feature vector, and establishing a mapping relationship between a fault semantic space and a fault feature space.

[0084] (3) The present invention designs a method for automatically constructing semantics for constructing fault semantic vectors, which does not require prior knowledge of experts and contains more valid category information than manually defined semantics, alleviating the problem of mapping domain offset.

[0085] (4) The present invention designs a semantic embedding module based on a new autoencoder structure. The new autoencoder also puts the fault semantic vector into the decoder for decoding and shares the weight of the decoder. The semantic embedding module is used to learn the mutual mapping relationship between the fault semantic space and the fault feature space, which enhances the semantic knowledge transfer, further alleviates the hub problem, improves the classification accuracy, and verifies the feasibility of the method using the experimental results of the test set. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 Schematic diagram of the embedded zero-shot learning model of the present invention.

[0087] Figure 2 This is a flow chart for constructing the embedded zero-shot learning model of the present invention.

[0088] Figure 3 Schematic diagram of vibration signals of the bearing in seven fault states of this embodiment.

[0089] Figure 4 This is a comparison chart of compound fault classification results based on different numbers of training samples in this embodiment. DETAILED DESCRIPTION

[0090] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0091] The present invention discloses a bearing composite fault diagnosis method based on an embedded zero-sample learning model. The method first generates an embedded zero-sample learning model based on automatic semantic construction, and then uses the embedded zero-sample learning model to perform composite fault diagnosis.

[0092] Depend on Figure 1As shown, the embedded zero-sample learning model includes: a semantic processing module, a feature extraction module, and a semantic embedding module. First, the one-dimensional vibration signal data is converted into a two-dimensional wavelet image, i.e., a fault image, through wavelet transform (WT). Then the fault image is input into the semantic processing module and the feature extraction module respectively; the semantic processing module is used to generate a fault semantic vector according to the fault image, and send the generated fault semantic vector to the semantic embedding module; the feature extraction module is used to extract a fault feature vector from the fault image, and send the extracted fault feature vector to the semantic embedding module; the semantic embedding module is used for the mutual mapping relationship between the fault semantic space and the fault feature space, and completes the classification of compound faults in the embedded space.

[0093] Depend on Figure 2 As shown, the method for constructing the embedded zero-shot learning model is as follows:

[0094] S101, the original fault signal used in the present invention comes from two non-overlapping clusters: a visible single fault cluster and an invisible compound fault cluster. The present invention first converts the original fault signal, i.e., a one-dimensional vibration signal, into a two-dimensional wavelet image, i.e., a fault image, by wavelet transformation, as shown below:

[0095] Useful information is extracted from the original fault signal, i.e., the one-dimensional vibration signal, and the details of the vibration signal are analyzed using the wavelet transform (WT) method. The wavelet transform method is shown in the following formula:

[0096]

[0097] Among them, a represents the scale factor, which is used for the scale transformation of the wavelet function ψ(·); b represents the translation factor, which is used for the translation of the wavelet function ψ(·); φ(t) is the time domain vibration signal sequence, that is, a one-dimensional vibration signal. The collected vibration signal is data points arranged in sequence, and the numerical value of the data point represents the amplitude.

[0098] The definition of the wavelet function ψ(·) is as follows:

[0099]

[0100] The present invention uses wavelet transform to convert every 256 time domain data points into 64 two-dimensional black and white time and frequency domain images, namely fault images, which reflect the characteristics of vibration signals in the time domain and frequency domain. The center frequency of the wavelet transform is 0.8125.

[0101] Among them, the two-dimensional wavelet image of the original fault signal of a single fault converted by wavelet transform is the single fault image x s The original fault signal of the composite fault is transformed into a two-dimensional wavelet image through wavelet transform, which is the composite fault image x u.

[0102] S102, define the training set D of the embedded zero-shot learning model train and the test set D test :

[0103] Training set D for embedded zero-shot learning model train is the visible single fault class C s Constructed, including the single fault image x s , single fault label y s ; The single fault label y s It refers to the fault category of the single fault. Each single fault category corresponds to a single fault label y s , and each single fault label y s Corresponding to a single fault semantic vector g s ;Subscript s indicates a single fault;

[0104] The training set D train It includes K single fault categories, each of which contains N samples;

[0105] Test set D for embedded zero-shot learning models test is composed of the invisible composite fault class C u Constructed, including composite fault image x u , composite fault label y u A composite fault is composed of several different single faults, and the composite fault label y u refers to the fault category of the composite fault, that is, the single fault category contained in the composite fault, and each composite fault label y u Corresponding to a composite fault semantic vector g u ;Subscript u indicates a composite fault;

[0106] The test set D test It includes L compound fault categories, each of which contains M samples;

[0107] In the training phase, the training set D is used train The embedded zero-shot learning model is trained. In the test phase, the test set D test Testing the embedded zero-shot learning model.

[0108] Training set D train and the test set D test Satisfy the following conditions:

[0109]

[0110] Among them, p(x s )、p(xu ) are single fault images x s , composite fault image x u The sample distribution of I(·) is used to calculate the mutual information between two sample distributions, I(p(x s ); p(x u )) is the sample distribution p(x s )、p(x u ) between the mutual information; single fault class C s and composite fault class C u is a set of disjoint classes; g u is the composite fault semantic vector, g s is the single fault semantic vector, and the composite fault semantic vector g u Through the function From the single fault semantic vector g s get.

[0111] S103, constructing a semantic processing module, wherein the semantic processing module is used to generate a fault semantic vector according to the fault image, specifically: s Generate a single fault semantic vector g s , and then according to the single fault category contained in the composite fault, combined with the corresponding single fault semantic vector g s Get the composite fault semantic vector g u ;

[0112] In the present invention, the fault semantic vector is considered to be the prototype representation of the fault category. The prototype of the fault category is hidden in the fault image. The present invention uses the convolutional autoencoder CAE to generate a single fault image x s Perform image reconstruction. During the image reconstruction process, extract the first deep hidden features of the single fault, and regard the first deep hidden features of the single fault as the corresponding single fault category prototype, that is, as the single fault semantic vector g s .

[0113] The convolutional autoencoder CAE consists of an encoder E 1 and a decoder D 1 , the single fault image x s Input to encoder E 1 , get the first deep hidden features of the single fault image; decoder D 1 Reconstruct the first deep hidden features of the single fault image to obtain the reconstructed image. s Compare with the reconstructed image and calculate the image loss. When the image loss meets the requirements, it means that the convolutional autoencoder CAE training is completed;

[0114] After training, the encoder E 1 Then for the input single fault image xs Generate the first deep hidden feature of a single fault. At this time, the first deep hidden feature of the single fault obtained is equivalent to the category prototype of the single fault, which is regarded as the single fault semantic vector g s ;

[0115] Among them, the single fault semantic vector of the kth single fault category is It is expressed as:

[0116]

[0117] in, The single fault semantic vector of the kth single fault category, where the superscript k represents the category number of the single fault, k = 1, 2, 3…, K, and the training set D train Includes K single fault categories; represents the i-th single fault image in the k-th single fault category, i = 1, 2, 3…, N, training set D train Each single fault category in contains N samples; Represents the encoder E after training is completed 1 Output single fault image of the i-th single fault category in the k-th single fault category The first deep hidden feature of the kth single fault category is obtained by taking the average of the first deep hidden features of the N single faults in the kth single fault category to obtain the single fault semantic vector of the kth single fault category

[0118] The single fault semantic vector of each single fault category k=1,2,3…,K, get the single fault semantic vector set g s ,

[0119] According to the correlation between compound faults and single faults, since compound faults are composed of several different single faults, the compound fault semantic vector is constructed by the corresponding different single fault semantic vectors, where the compound fault semantic vector The calculation method is as follows:

[0120]

[0121] in, The semantic vector of a composite fault composed of J different single faults. The superscripts 1,…,J refer to the category numbers of the single faults that constitute the composite fault. The single fault semantic vector representing the j-th single fault category among the J single faults, j=1,…,J, J=2,3…,K, K is the total number of single fault categories.

[0122] For example, a composite fault is formed by the first single fault category and the second single fault category, and its composite fault semantic vector is That is

[0123] In this embodiment, all single fault categories of the bearing are known, including inner ring fault (IF), rolling element fault (BF) and outer ring fault (OF). By arbitrarily combining these three single fault categories, all composite fault categories of the bearing can be obtained, and the four composite fault categories are: composite fault of inner ring and rolling element (IF&BF), composite fault of outer ring and rolling element (OF&BF), composite fault of inner ring and outer ring (IF&OF), and composite fault of inner ring, outer ring and rolling element (IF&OF&BF).

[0124] S104, constructing a feature extraction module, wherein the feature extraction module is used to extract a fault feature vector from the fault image, as shown below:

[0125] A feature extractor is established using a convolutional neural network (CNN) to extract the fault feature vector from the fault image. The convolution layer, pooling layer, flattening layer and fully connected layer of the convolutional neural network are represented as C, P, F, FC respectively. The input layer of the feature extractor, i.e., the input of the Input layer, is a two-dimensional wavelet image, i.e., the fault image. The output of the last fully connected layer is the fault feature vector f.

[0126] In the present invention, the structure and parameters of the convolutional neural network (CNN) are shown in Table 1 below:

[0127]

[0128] Table 1

[0129] In the learning and training phase of the feature extraction module, i.e., the CNN-based feature extractor, the training set D train Train the embedded zero-shot learning model, that is, use the training set D train Train the feature extraction module. The input layer of the feature extractor is the input single fault image x s , the output of the last fully connected layer is the single fault feature vector f s , and the output layer output of the feature extractor is the single fault image x s The predicted fault label p s That is, predict the fault category;

[0130] The loss of the feature extraction module is the classification loss. For a single fault category, the classification loss function L of the single fault category is cnn :

[0131]

[0132] Among them, y s (i) is the single fault label of the i-th single fault image in the single fault category, i represents the sequence number of the single fault image, i = 1, 2, 3...N; p s (i) is the predicted fault label predicted by the feature extraction module for the i-th single fault image in the single fault category.

[0133] In the feature extraction module learning and training, set the number of iterations and the classification loss function L cnn The target value, after a finite number of iterations, the classification loss function L cnn When the target value is reached, it means that the training of the feature extraction module is completed.

[0134] S105, constructing a semantic embedding module, which is used for the mapping relationship between the fault semantic space and the fault feature space, so as to embed the fault semantics into the fault feature space for fault classification; the details are as follows:

[0135] The mapping relationship between the fault semantic space and the fault feature space is learned by using an autoencoder to embed the fault semantic vector into the fault feature vector for fault classification. The number of neurons in the hidden layer of the autoencoder is consistent with the dimension of the fault semantic vector. The input of the autoencoder is the fault feature vector f extracted by the feature extraction module, i.e., the feature extractor based on CNN. The autoencoder consists of an encoder E 2 and a decoder D 2 The encoder E 2 Used to compress the input fault feature vector f to the hidden layer to obtain the second deep hidden feature h, h = E 2 (f); The decoder D 2 Used to reconstruct the second deep hidden feature h and output the reconstructed fault feature vector f'(h) of the second deep hidden feature h, where f'(h) = D 2 (h); the decoder D 2 It is also used to reconstruct the fault semantic vector g generated by the semantic processing module and output the reconstructed fault feature vector f'(g)=D of the fault semantic vector g. 2 (g);

[0136] In the learning and training phase of the semantic embedding module, i.e., the autoencoder, the training set D train Train the embedded zero-shot learning model, that is, use the training set D train The semantic embedding module is trained; that is, the input of the autoencoder is the single fault feature vector f extracted by the feature extraction module s ; Encoder E 2 The input single fault feature vector fs Compressed to the hidden layer, the second deep hidden feature h of the single fault is obtained s =E 2 (f s ); decoder D 2 The second deep hidden feature h for a single fault s Reconstruct and output the second deep hidden feature h of the single fault s The reconstructed fault feature vector f s '(h s ), f s '(h s )=D 2 (h s ); decoder D 2 The single fault semantic vector g generated by the semantic processing module is also s Reconstruct, decoder D 2 Output single fault semantic vector g s The reconstructed fault feature vector f s '(g s ), f s '(g s )=D 2 (g s );

[0137] The learning and training process of the semantic embedding module is as follows:

[0138] First, reduce the second deep hidden feature h of the single fault s and single fault semantic vector g s The distance between them makes them aligned, that is:

[0139] min||h s -g s ||;

[0140] Then, reduce the single fault feature vector f s and single fault semantic vector g s The reconstructed fault feature vector f s '(g s ) to establish the single fault semantic vector g s To the single fault feature vector f s The mapping is:

[0141] min||f s -f s '(g s )|| 2 ;

[0142] Finally, reduce the single fault feature vector f s and the second deep hidden feature h of the single fault sThe reconstructed fault feature vector f s '(h s ) to maintain the structural stability of the autoencoder:

[0143] min||f s -f s '(h s )|| 2 ;

[0144] The loss of the semantic embedding module consists of three parts: semantic alignment loss, semantic reconstruction loss, and feature reconstruction loss;

[0145] For a single fault category, the semantic alignment loss function L of the single fault category is SA for:

[0146]

[0147] Among them, h s For encoder E 2 The second deep hidden feature h of the single fault is obtained s , g s is a single fault semantic vector, δ is a hyperparameter. When δ approaches 0, Huber loss will tend to MSE, i.e. mean square error loss, and when δ approaches ∞, i.e. infinity, Huber loss will tend to MAE, i.e. mean absolute error.

[0148] For a single fault category, the feature reconstruction loss function L FR for:

[0149]

[0150] Among them, f s (i) is the feature extraction module for the i-th single fault image x s (i) The extracted single fault feature vector, f s '(h s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The second deep hidden feature h s (i) Reconstructed fault feature vector, i = 1, 2, 3...N;

[0151] For a single fault category, the semantic reconstruction loss function L SR :

[0152]

[0153] Among them, f s (i) is the feature extraction module for the i-th single fault image xs (i) The extracted single fault feature vector, f s '(g s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The single fault semantic vector g s (i) Reconstructed fault feature vector, i = 1, 2, 3...N;

[0154] For a single fault category, the global loss function L of the semantic embedding module is sum It consists of the three parts mentioned above:

[0155] L sum =L SA +α·L FR +β·L SR ;

[0156] Wherein, α and β are weight factors of feature reconstruction loss and semantic reconstruction loss, respectively. In this embodiment, α=0.1, β=0.3;

[0157] In the learning and training of the semantic embedding module, set the number of iterations and the global loss function L sum The target value, after a finite number of iterations, the global loss function L sum Reaching the target value indicates that the training of the semantic embedding module is complete.

[0158] S106, after the embedded zero-shot learning model is built and trained, that is, after the learning and training of the feature extraction module and the semantic embedding module are completed, the test set D test Input the embedded zero-shot learning model for testing as follows:

[0159] S1061, the semantic processing module combines the single fault categories to obtain the possibility of all compound faults, thereby obtaining the semantic vectors of all compound faults in, The semantic vector representing a composite fault composed of J different single faults; the superscript 1, ..., J refers to the category number of the single faults constituting the composite fault, j = 1, ..., J, J = 2, 3 ..., K, K is the total number of single fault categories, and the specific method is shown in step S103.

[0160] In this embodiment, all single fault categories of the bearing are known, including inner ring fault (IF), rolling element fault (BF) and outer ring fault (OF). By arbitrarily combining these three single fault categories, all composite fault categories of the bearing can be obtained, and the four composite fault categories are: composite fault of inner ring and rolling element (IF&BF), composite fault of outer ring and rolling element (OF&BF), composite fault of inner ring and outer ring (IF&OF), and composite fault of inner ring, outer ring and rolling element (IF&OF&BF).

[0161] S1062, decoder D in the semantic embedding module 2 Each composite fault semantic vector obtained in step S1061 They are mapped to the fault feature space, namely the decoder D 2 For each composite fault semantic vector obtained in step S1061 Reconstruct, j = 1, ..., J, J = 2, 3 ..., K, and output the reconstructed fault feature vector of each composite fault semantic vector And each composite fault semantic vector The reconstructed fault feature vector As the center point in the composite fault feature space, each center point corresponds to a composite fault category.

[0162] S1063, the feature extraction module extracts the feature according to the test set D test Composite fault image x in u Extract the composite fault feature vector f u ;

[0163] S1064, calculate the composite fault feature vector f u The distance between each center point in the composite fault feature space is selected to be the distance between the composite fault feature vector f u The center point with the smallest distance, the composite fault category corresponding to the center point with the smallest distance is the composite fault image x u The prediction results;

[0164] Due to the ineffectiveness of the Euclidean distance metric in high-dimensional space, we use Manhattan distance instead to measure the composite fault feature vector f u The distances from each center point in the composite fault feature space;

[0165] Manhattan distance is the absolute value distance;

[0166] S1065, the test set D test Composite fault image x in u The composite fault label y uCompare with the prediction result of step S1064 to determine whether the prediction result is correct; if the two are consistent, it means that the composite fault image x u The prediction result is correct;

[0167] The test set D test It includes L composite fault categories, each of which contains M samples, that is, there are L×M composite fault images x u , for each composite fault image x u Predictions are made to verify the accuracy of compound fault classification of the embedded zero-shot learning model of the present invention.

[0168] In this embodiment, a test bench is used to collect vibration signals of a faulty bearing to verify the effectiveness of the method of the present invention. In the test bench, the rotation speed of the bearing is controlled by a three-phase motor through a flexible coupling, and an acceleration sensor is installed on the bearing seat to collect vibration signals. The sampling frequency is 51200 Hz.

[0169] The vibration signals of the bearing under seven fault conditions are as follows: Figure 3 As shown. The vibration signals under the seven fault conditions include: vibration signals of three single faults and vibration signals of four compound faults. The three single faults are inner ring fault (IF), rolling element fault (BF), and outer ring fault (OF); the four compound faults are: compound fault of inner ring and rolling element (IF&BF), compound fault of outer ring and rolling element (OF&BF), compound fault of inner ring and outer ring (IF&OF), and compound fault of inner ring, outer ring and rolling element (IF&OF&BF).

[0170] The effectiveness of the model is verified by experiments on two sets of composite fault diagnosis tasks. The specific results are shown in Table 2. The fault classification results with different numbers of training samples are shown in Table 2. Figure 4 As shown in the figure, with the increase of the number of training samples, the classification accuracy of both task A and task B has been significantly improved. When the number of training samples for each single fault category is 2000, the classification accuracy of task A and task B reaches 78.40% and 57.12% respectively. In addition, it can be observed that the classification accuracy of task A is higher than that of task B. The reason is that compared with task A, task B is more complex and difficult to classify. Task B contains a composite fault coupled by three single faults, that is, it contains composite fault data of the inner ring, outer ring and rolling element.

[0171]

[0172]

[0173] Table 2

[0174] In view of the difficulty in collecting and labeling compound fault data in industrial scenarios, the present invention proposes an embedded zero-sample learning model based on a fault semantic construction method. In the case of sufficient single fault samples, the model ensures that the classification accuracy of compound faults is as high as 78.40%. Experimental results further show that the semantic processing module in the model can construct high-quality single fault semantic vectors and compound fault semantic vectors, and the semantic embedding module can establish a good mapping relationship between features and semantics, thereby alleviating the hub problem in zero-sample learning. According to the experimental results on the experimental data set of the above embodiment, the classification accuracy of the model is significant in the absence of compound fault samples.

[0175] The present invention utilizes the above embedded zero-sample learning model to perform bearing composite fault diagnosis, and the method is as follows:

[0176] S201, all single fault categories of the bearing are known. A composite fault is composed of several different single faults. All composite fault categories can be obtained by combining the single fault categories of the bearing;

[0177] S202, the semantic processing module processes the single fault image x s Generate a single fault semantic vector s s , and then according to the single fault category contained in the composite fault, combined with the corresponding single fault semantic vector g s Get the composite fault semantic vector g u , refer to step S103 for details;

[0178] S203, decoder D in the semantic embedding module 2 Each composite fault semantic vector g obtained in step S202 u They are mapped to the fault feature space, namely the decoder D 2 For each composite fault semantic vector g obtained in step S202 u Reconstruct and output each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ), f u '(g u )=D 2 (s u ), and each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ) as the central points in the composite fault feature space, each of which corresponds to a composite fault semantic vector g u , and each composite fault semantic vector g uThe composite fault categories are all known, which means that each center point corresponds to a composite fault category;

[0179] S204, the feature extraction module processes the composite fault image x to be predicted. u Extract the composite fault feature vector f u ;

[0180] S205, calculate the composite fault feature vector f u The distance between each center point in the composite fault feature space is selected to be the distance between the composite fault feature vector f u The center point with the smallest distance, the composite fault category corresponding to the center point with the smallest distance is the composite fault image x u prediction results.

[0181] The above are only preferred embodiments of the present invention and are 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.

[0182] Unless otherwise specified, the various processes in the text of the present invention that appear in a sequential order do not necessarily have a sequential execution order. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A bearing composite fault diagnosis method based on embedded zero-shot learning model, It is characterized in that Construct an embedded zero-shot learning model and use it to diagnose compound faults; The embedded zero-shot learning model includes: semantic processing module, feature extraction module, and semantic embedding module; The semantic processing module is used to construct a fault semantic vector g according to the fault sample, including a single fault semantic vector g s and composite fault semantic vector g u ; The feature extraction module is used to extract the fault feature vector f according to the fault sample, including the single fault feature vector f s and the composite fault feature vector f u ; The semantic embedding module is used to embed the single fault semantic vector g s and single fault feature vector f s , learn the mapping relationship between fault semantic space and fault feature space; The semantic embedding module is based on the mapping relationship between the fault semantic space and the fault feature space, and on the single fault semantic vector g s and composite fault semantic vector g u The relationship between them is calculated by using the composite fault feature vector f u Conduct complex fault diagnosis; The original fault signal, i.e., the one-dimensional vibration signal, is converted into a two-dimensional image, i.e., the fault image. The converted fault image is the fault sample input to the semantic processing module and the feature extraction module. The fault image includes: the wavelet image converted from the vibration signal of a single fault, i.e., the single fault image x s , the wavelet image converted from the vibration signal of the composite fault is the composite fault image x u ; The semantic embedding module adopts an automatic encoder, which consists of an encoder E 2 and decoder D 2 constitute; The encoder E 2 The decoder D is used to compress the fault feature vector f extracted by the feature extraction module to the hidden layer to obtain the second deep hidden feature h; 2 Used to reconstruct the second deep hidden feature h, and output the reconstructed fault feature vector f'(h) of the second deep hidden feature h; The decoder D 2 It is also used to reconstruct the fault semantic vector g generated by the semantic processing module and output the reconstructed fault feature vector f'(g) of the fault semantic vector g; The encoder E 2 The single fault feature vector f extracted by the feature extraction module s Compressed to the hidden layer, the second deep hidden feature h of the single fault is obtained s , the decoder D 2 The second deep hidden feature h for a single fault s Reconstruct and output the second deep hidden feature h of the single fault s The reconstructed fault feature vector f s '(h s ); the decoder D 2 The single fault semantic vector g generated by the semantic processing module is also s Reconstruct, decoder D 2 Output single fault semantic vector g s The reconstructed fault feature vector f s '(g s ); The semantic embedding module is based on the single fault semantic vector g s With the second deep hidden feature h s The loss between the single fault feature vector f s With the second deep hidden feature h s The reconstructed fault feature vector f s '(h s ), the single fault feature vector f s With the single fault semantic vector g s The reconstructed fault feature vector f s '(g s ) and calculate the global loss. If the global loss meets the requirements, it means that the semantic embedding module training is completed. The global loss function L of the semantic embedding module sum for: L sum =L SA +α·L FR +β·L SR ; Among them, L SA is the semantic alignment loss, i.e., the single fault semantic vector g s With the second deep hidden feature h s The loss between FR is the feature reconstruction loss, i.e., the single fault feature vector f s With the second deep hidden feature h s The reconstructed fault feature vector f s '(h s ) between the loss; L SR is the semantic reconstruction loss, i.e., the single fault feature vector f s With the single fault semantic vector g s The reconstructed fault feature vector f s '(g s ) between them; α and β are the feature reconstruction losses L FR and semantic reconstruction loss L SR The weight factor of Semantic alignment loss function L SA for: Among them, h s For encoder E 2 The second deep hidden feature h of the single fault is obtained s , g s is a single fault semantic vector, δ is a hyperparameter; Feature reconstruction loss function L FR for: Among them, f s (i) is the feature extraction module for the i-th single fault image x s (i) The extracted single fault feature vector, f s '(h s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The second deep hidden feature h s (i) Reconstructed fault feature vector, i = 1, 2, 3...N; Semantic reconstruction loss function L SR : Among them, f s (i) is the feature extraction module for the i-th single fault image x s (i) The extracted single fault feature vector, f s '(g s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The single fault semantic vector g s (i) Reconstructed fault feature vector, i = 1, 2, 3…N.

2. A bearing composite fault diagnosis method based on an embedded zero-sample learning model according to claim 1, It is characterized in that A composite fault is composed of different single faults, and each single fault corresponds to a single fault semantic vector g s , each composite fault corresponds to a composite fault semantic vector g u ; The semantic processing module firstly calculates the single fault image x s Generate a single fault semantic vector g s , and then according to the single fault category contained in the composite fault, the corresponding single fault semantic vector g s Add together to get the composite fault semantic vector g u .

3. A bearing composite fault diagnosis method based on an embedded zero-sample learning model according to claim 2, It is characterized in that The semantic processing module adopts a convolutional autoencoder, including an encoder E 1 and decoder D 1 ; The encoder E 1 For the input single fault image x s Perform hidden feature extraction to obtain a single fault image x s The first deep hidden feature of The decoder D 1 For encoder E 1 The obtained single fault image x s The first deep hidden feature of the image is reconstructed to obtain a reconstructed image; the semantic processing module converts the input single fault image x s Compare with the reconstructed image and calculate the image loss. If the image loss meets the requirements, it means that the semantic processing module training is completed; After the semantic processing module is trained, the encoder E 1 Then for the input single fault image x s Generate the first deep hidden features, and the single fault image x s The first deep hidden feature is the single fault semantic vector g s .

4. A bearing composite fault diagnosis method based on an embedded zero-shot learning model according to claim 1, It is characterized in that The feature extraction module is a feature extractor established using a convolutional neural network; The feature extraction module performs a single fault image x s Extract single fault feature vector f s , and predict the single fault image x s The corresponding predicted fault category p s The feature extraction module is based on the input single fault image x s The actual single fault category and the predicted fault category p s , calculate the classification loss. If the classification loss meets the requirements, it means that the feature extraction module training is completed; After the feature extraction module is trained, the composite fault image x u Extract the composite fault feature vector f u .

5. The bearing composite fault diagnosis method based on embedded zero-shot learning model according to claim 1, It is characterized in that Using the embedded zero-shot learning model for compound fault diagnosis includes the following steps: S201, all single fault categories are known. A composite fault is composed of several different single faults. All composite fault categories are obtained by combining the single fault categories. 202, the semantic processing module first processes the single fault images x under all single fault categories. s Generate a single fault semantic vector g s , get the single fault semantic vector g corresponding to each single fault category s ; Then, according to the single fault category contained in the composite fault, the corresponding single fault semantic vector g s Add together to get the composite fault semantic vector g corresponding to each composite fault category u ; S203, the decoder D in the semantic embedding module 2 For each composite fault semantic vector g generated by the semantic processing module u All are reconstructed and the semantic vectors g of each composite fault are output u The reconstructed fault feature vector f u '(g u ), and each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ) as the central points in the composite fault feature space, each central point corresponds to a composite fault category; S204, the feature extraction module extracts the composite fault image x to be diagnosed u Extract the composite fault feature vector f u ; S205, calculate the composite fault feature vector f u The distance between each center point in the composite fault feature space is selected to be the distance between the composite fault feature vector f u The center point with the smallest distance, the composite fault category corresponding to the center point with the smallest distance is the composite fault image x u of the diagnosis.

6. A bearing composite fault diagnosis method based on an embedded zero-shot learning model according to claim 1, It is characterized in that The method for constructing the embedded zero-shot learning model comprises the following steps: S1, defines the training set D of the embedded zero-shot learning model train and the test set D test : Training set D for embedded zero-shot learning model train It is caused by single fault type C s Constructed, including the single fault image x s , single fault label y s ; The single fault label y s refers to the fault category of the single fault, and each single fault label y s Corresponding to a single fault semantic vector g s ; Subscript s represents a single fault; the training set D train It includes K single fault categories, each of which contains N samples, i.e., N single fault images; Test set D for embedded zero-shot learning models test It is a composite fault type C u Constructed, including composite fault image x u , composite fault label y u A composite fault is composed of several different single faults, and the composite fault label y u It is composed of several different single fault categories contained in the composite fault, and each composite fault label y u Corresponding to a composite fault semantic vector g u ;Subscript u indicates a composite fault; S2, build semantic processing module: The semantic processing module adopts a convolutional autoencoder, including an encoder E 1 and decoder D 1 ; The encoder E 1 For the input single fault image x s Perform hidden feature extraction to obtain a single fault image x s The first deep hidden features of 1 For encoder E 1 The obtained single fault image x s The first deep hidden feature of the image is reconstructed to obtain a reconstructed image; the semantic processing module converts the input single fault image x s The image loss is calculated by comparing it with the reconstructed image. If the image loss meets the requirements, it means that the semantic processing module training is completed. After the semantic processing module training is completed, the encoder E 1 Then for the input single fault image x s Generate the first deep hidden features, and the single fault image x s The first deep hidden feature is the single fault semantic vector g s ; Among them, the single fault semantic vector of the kth single fault category is It is expressed as: In the formula, represents the single fault semantic vector of the kth single fault category, where the superscript k represents the category number of the single fault, k = 1, 2, 3…, K, represents the i-th single fault image in the k-th single fault category, i = 1, 2, 3…, N, including K single fault categories in total, and each single fault category includes N single fault images; represents the first deep hidden feature of the i-th single fault image in the k-th single fault category; The semantic processing module defines the composite fault semantic vector g according to the correlation between composite faults and single faults, that is, the composite fault is composed of several different single faults. u ; Among them, the composite fault semantic vector of a composite fault composed of J different single faults is The calculation method is as follows: in, The composite fault semantic vector represents a composite fault composed of J different single faults. The superscripts 1,…,J refer to the category numbers of the single faults that constitute the composite fault. The single fault semantic vector representing the j-th single fault category among the J single faults, j = 1, ..., J, J = 2, 3 ..., K; S3, build feature extraction module: The feature extraction module is a feature extractor established by a convolutional neural network, using the training set D train The feature extraction module is trained as follows: The feature extraction module inputs a single fault image x s , extract the single fault feature vector f s , and predict the input single fault image x s The corresponding predicted fault category p s ; For a single fault category, the classification loss function L of the feature extraction module is cnn : Among them, y s (i) is the i-th single fault image x in the single fault category s (i) single fault label, i.e., single fault category; i represents the sequence number of the single fault image, i = 1, 2, 3…N; p s (i) is the feature extraction module for the i-th single fault image x in the single fault category. s (i) The predicted fault category; When the classification loss function of the feature extraction module L cnn After the requirements are met, the feature extraction module training is completed; S4, build semantic embedding module: The semantic embedding module uses an automatic encoder to learn the mapping relationship between the fault semantic space and the fault feature space. The semantic embedding module includes an encoder E 2 and decoder D 2 ; Using the training set D train The semantic embedding module is trained as follows: The encoder E 2 Input feature extraction module for single fault image x s The extracted single fault feature vector f s ; Encoder E 2 The single fault feature vector f s Compress to the hidden layer and get the single fault image x s The second deep hidden feature h s ,h s =E 2 (f s );E 2 (·) is the encoder E 2 Model function of The decoder D 2 The second deep hidden feature h for a single fault image s Reconstruct and output single fault image x s The second deep hidden feature h s The reconstructed fault feature vector f s '(h s ), f s '(h s )=D 2 (h s ); D 2 (·) is the decoder D 2 Model function of The decoder D 2 The single fault semantic vector g generated by the semantic processing module is also s Reconstruct, decoder D 2 Output single fault semantic vector g s The reconstructed fault feature vector f s '(g s ), f s '(g s )=D 2 (g s ); For a single fault category, the global loss function L of the semantic embedding module is sum for: L sum =L SA +α·L FR +β·L SR ; Among them, L SA is the semantic alignment loss, L FR is the feature reconstruction loss, L SR is the semantic reconstruction loss, α and β are the feature reconstruction loss L FR and semantic reconstruction loss L SR The weight factor of For a single fault category, the semantic alignment loss function L SA for: Among them, h s For encoder E 2 The second deep hidden feature h of the single fault is obtained s , g s is a single fault semantic vector, δ is a hyperparameter; For a single fault category, the feature reconstruction loss function L FR for: Among them, f s (i) is the feature extraction module for the i-th single fault image x s (i) The extracted single fault feature vector, f s '(h s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The second deep hidden feature h s (i) Reconstructed fault feature vector, i = 1, 2, 3...N; For a single fault category, the semantic reconstruction loss function L SR : Among them, f s (i) is the feature extraction module for the i-th single fault image x s (i) The extracted single fault feature vector, f s '(g s (i)) is the decoder D 2 The output for the i-th single fault image x s (i) The single fault semantic vector g s (i) Reconstructed fault feature vector, i = 1, 2, 3...N; When the global loss function L of the semantic embedding module sum After the requirements are met, the semantic alignment loss function L SA , feature reconstruction loss function L FR , semantic reconstruction loss function L SR After the requirements are met, the semantic embedding module training is completed; S5, after the embedded zero-shot learning model training is completed, that is, after the learning and training of the feature extraction module and the semantic embedding module are completed, the test set D test The embedded zero-shot learning model is tested as follows: S51, decoder D in the semantic embedding module 2 Each composite fault semantic vector g constructed by the semantic processing module u They are mapped to the fault feature space respectively, namely the decoder D 2 Each composite fault semantic vector g constructed by the semantic processing module u Reconstruct and output each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ), f s '(g u )=D 2 (g u ), and each composite fault semantic vector g u The reconstructed fault feature vector f u '(g u ) are the central points in the composite fault feature space, each of which corresponds to a composite fault category; S52, feature extraction module for test set D test Composite fault image x in u Extract the composite fault feature vector f u ; S53, calculate the composite fault feature vector f u The distance between each center point in the composite fault feature space is selected to be the distance between the composite fault feature vector f u The center point with the smallest distance is the composite fault image x. u The prediction results; S54, the test set D test Composite fault image x in u The composite fault label y u Compare with the prediction result of step S53 to determine whether the prediction result is correct; if the two are consistent, it means that the composite fault image x u The prediction result is correct; otherwise, the prediction result is wrong.

7. A bearing composite fault diagnosis method based on an embedded zero-sample learning model according to claim 6, It is characterized in that In step S1, the training set D train and the test set D test Satisfy the following conditions: Among them, p(x s )、p(x u ) are single fault images x s , composite fault image x u The sample distribution of I(·) is used to calculate the mutual information between two sample distributions, I(p(x s ); p(x u )) is the sample distribution p(x s )、p(x u ) between the mutual information; single fault class C s and composite fault class C u are disjoint sets of classes.

Citation Information

Cited By

  • Cross-multi-source-domain industrial fault diagnosis method based on generalized zero sample learning

    CN119989060A

  • A cross-multi-source domain industrial fault diagnosis method based on generalized zero-shot learning

    CN119989060B