An unbalanced fault diagnosis method based on invariant spatiotemporal attention fusion network
Through the invariant spatiotemporal attention fusion network and joint loss function, the problem of data imbalance in rotating machinery fault diagnosis is solved, more accurate fault identification and performance improvement are achieved, and it is suitable for complex industrial systems.
Patent Information
- Application Number
- CN202111107244.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-09-22
AI Technical Summary
Data imbalance problem in rotating machinery fault diagnosis leads to misclassification, existing methods have difficulty in identifying minority class samples, and data-level and algorithm-level methods have problems with information omission or increased computational burden.
Using a method based on the invariant spatiotemporal attention fusion network, features are extracted through convolutional autoencoders, convolutional attention modules and long and short memory networks, and combined with the focal loss function and grid search algorithm, a joint loss function and a training penalty mechanism are designed to adjust The influence of imbalanced conditions is used to obtain the optimal invariant spatiotemporal attention fusion network.
An effective imbalanced data fault detection framework is established, which improves fault diagnosis performance, reduces computational burden, and enhances the robustness and generalization ability of the model.
Smart Images

Figure CN113780230B
Abstract
Description
Technical Field
[0001] The present invention relates to an unbalanced fault diagnosis method based on multimodal data fusion, and more specifically, to an unbalanced fault diagnosis method based on an invariant spatiotemporal attention fusion network. Background Art
[0002] In recent years, data-driven techniques have been widely used in mechanical fault diagnosis instead of model-based methods. Model-based methods are usually implemented using mathematical models of the system, and their performance is too dependent on physical rules. At the same time, building a suitable mathematical model requires expert knowledge, which is particularly difficult for complex industrial systems. Therefore, data-driven fault diagnosis has become common. However, data-driven fault diagnosis is usually classified as a classification problem with high data quality requirements, and the uncertainty of the data interferes with the predictive performance of the model. Data imbalance is one of the main challenges in rotating machinery fault diagnosis, because many fault diagnosis methods cannot identify samples of minority categories, resulting in misclassification. The main solutions to the imbalance problem are currently divided into data-level methods and algorithm-level methods. Data-level methods mainly balance the data set by resampling, but this type of method may miss potential useful information on the one hand, and on the other hand, it will increase the additional computational burden of the network. Algorithm-level methods adjust the cost of misclassification to make network training sensitive to the cost, but the key to these methods is to determine the cost of each category. In actual situations, the actual misclassification cost of different categories is usually difficult to determine. Summary of the invention
[0003] In view of the above problems, the present invention provides an imbalanced fault diagnosis method based on an invariant spatiotemporal attention fusion network, aiming to solve the category imbalance problem by combining a feature fusion method with an algorithm-level training penalty mechanism.
[0004] To achieve the above object, the present invention adopts the following technical solutions:
[0005] S1. Establish an unbalanced data fault detection framework;
[0006] S2, collect data sets and preprocess the data;
[0007] S3, inputting the processed class-balanced vibration and current data into convolutional autoencoders (CAEs) with different parameters and performing pre-training;
[0008] S4, the class-imbalanced vibration and current are sequentially input into the pre-trained CAE, convolutional attention module (CBAM), and long short-term memory network (LSTM) to obtain invariant spatiotemporal attention features;
[0009] S5, concatenating the invariant spatiotemporal attention features of the two modalities and inputting them into the inference network (MLP) for inference representation;
[0010] S6. Combined with the grid search optimization algorithm, the network is trained with a joint loss based on the focal loss function to obtain the optimal invariant spatiotemporal attention fusion network.
[0011] Furthermore, in step S1, the unbalanced data fault detection framework includes six modules, namely, a data acquisition module, a preprocessing module, a pre-trained model acquisition module, an invariant spatiotemporal attention feature acquisition module, a fusion inference module, and a network training module, which are connected in sequence.
[0012] Furthermore, the acquisition module obtains current and vibration signals through current sensors and acceleration sensors for use as training sets and test sets, and divides the signals obtained under different working conditions into source domain (unbalanced) and target domain (balanced) data sets.
[0013] Furthermore, in step S2, the data preprocessing includes a data normalization process, and the original vibration and current data are normalized respectively to eliminate the dimension effect.
[0014] Furthermore, after the normalized vibration and current data of the packaging equipment are segmented, the 1-D data are segmented and reorganized into a 2-D grid matrix form.
[0015] Furthermore, in step S3, the processed category-balanced dataset is input into different convolutional autoencoders and trained to obtain a pre-trained CAE model.
[0016] Furthermore, in step S4, the class-imbalanced target domain data is sequentially passed through the pre-trained CAE, the convolutional attention module (CBAM), and the long short-term memory network (LSTM) to obtain the spatiotemporal attention representation of the data.
[0017] Furthermore, in step S5, the spatiotemporal attention representations are concatenated and input into the inference network (MLP) to obtain the network inference output.
[0018] Furthermore, in step S6, the grid search optimization algorithm is combined to train the network with a joint loss based on the focal loss function to obtain the optimal invariant spatiotemporal attention fusion network.
[0019] The beneficial effects of the present invention are as follows: an unbalanced data fault detection framework is established; a joint constraint loss function based on focal loss is designed to guide the network to learn the corresponding features and adjust the negative impact of unbalanced conditions on the training process; the network hyperparameters and loss function weight parameters are obtained through a grid search algorithm to obtain the optimal model. Finally, the fault diagnosis performance of the network under different unbalanced conditions has achieved good results. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is the overall process framework diagram of the method of the present invention;
[0021] Figure 2 Pre-trained CAE model topology map;
[0022] Figure 3 Topology diagram of the convolutional attention module;
[0023] Figure 4 Provides a topology diagram with detailed parameters for network components;
[0024] Figure 5 This is a structural diagram of the comparison method;
[0025] Figure 6 This is a T-SNE hierarchical visualization of the clustering fusion effect of the network on the test set;
[0026] Figure 7 Confusion matrix diagram of different methods for the network on the test set;
[0027] Figure 8 This is one of the performance comparison graphs of the network under different imbalance rate data sets;
[0028] Fig. 9 The second figure is the performance comparison of the network under different imbalance rate data sets; DETAILED DESCRIPTION
[0029] For ease of understanding of the present invention, preferred embodiments of the present invention are provided below. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification are only for describing specific implementation purposes and are not intended to limit the present invention.
[0031] An Imbalanced Fault Diagnosis Method Based on Invariant Spatiotemporal Attention Fusion Network:
[0032] S1. Establish an unbalanced data fault detection framework.
[0033] like Figure 1 As shown in Figure 1, the unbalanced data fault detection framework includes a data acquisition module, a preprocessing module, a pre-trained model acquisition, an invariant spatiotemporal attention feature acquisition, a fusion inference, and a network training. In the mechanical equipment data acquisition module, the training and test data sets are obtained through acceleration sensors and current sensors, and the signals obtained under different working conditions are divided into source domain (unbalanced) and target domain (balanced) data sets.
[0034] S2. Collect data sets and preprocess the data.
[0035] Data preprocessing includes data normalization and data dimension upgrading process of converting 1-D data into 2-D grid matrix. The specific process is to first normalize the input data to eliminate the impact caused by the dimensional differences between different data; then rearrange the normalized data from 1-D to 2-D to prepare for convolution input.
[0036] S3. The processed category-balanced vibration and current data are respectively input into convolutional autoencoders (CAEs) with different parameters and pre-trained.
[0037] The vibration and current data under the equilibrium condition processed in step S2 are input into two convolutional autoencoders with unshared parameters for pre-training. The structural topology of the pre-training model is shown in Figure 2 shown.
[0038] S4, the vibration and current with imbalanced categories in the target domain are sequentially input into the pre-trained CAE, convolutional attention module (CBAM), and long short-term memory network (LSTM) to obtain invariant spatiotemporal attention features.
[0039] First, after learning the balanced sample distribution, the unbalanced vibration signal (x v ), current signal (x c ) Input the network for fine-tuning to obtain the underlying features of the data. The process is an encoding-decoding process, which is expressed as follows:
[0040]
[0041]
[0042] Where: h m , R m , They are respectively the encoding representation, decoding (reconstruction) representation, encoding network parameters, decoding network parameters, encoding network part, and decoding network part of the m-mode CAE network.
[0043] In order to obtain the spatial and channel characteristics of the data, the encoding representation h of the m-modal pre-trained CAE model is m Input to the convolutional attention block is expressed as follows:
[0044]
[0045] Where: Att m CBAM m , They represent the channel-spatial attention representation of m-mode, the convolutional block attention network and its network parameters respectively. Among them, CBAM is a simple and effective feedforward convolutional neural network attention module, which is defined as follows Figure 3 As shown, given an intermediate feature map As input, the module sequentially infers attention maps along two independent dimensions (channel and spatial). The whole attention process is summarized as follows:
[0046]
[0047] Where: represents isotope multiplication; CBAM is the convolutional block attention module; F' represents the channel attention map; F" represents the final channel-spatial attention map; M c ∈R C×1×1 represents a 1D channel attention map; M s ∈R 1×H×W represents 2D spatial attention mapping; MLP represents multi-layer perceptron mapping representation; AvgPool is the average pooling operation; MaxPool is the maximum pooling operation; f 7×7 represents the convolution operation with a filter size of 7×7; σ2 is the Sigmoid activation function.
[0048] Then, in order to obtain the temporal characteristics, the attention representation is imported into the LSTM network to obtain the temporal characteristics, which is expressed as follows:
[0049]
[0050] Where: M m , LSTM m , They represent the spatiotemporal attention representation of m-modality, LSTM network and network parameters respectively. In addition, the invariant properties of the network will be discussed in the learning strategy.
[0051] S5. The invariant spatiotemporal attention features of the two modalities are concatenated and input into the inference network (MLP) for inference representation.
[0052] In order to obtain the fused representation, the two modal spatiotemporal attention representations are first concatenated as follows:
[0053]
[0054] Where: Represents the vector concatenation operation; Fusion represents the fused vector after concatenation. Then, the fused spatiotemporal attention representation is input into the inference network (MLP) for fusion and fault inference, as shown below:
[0055] Inf = MLP(Fusion; θMLP ) (7)
[0056] Where: Inf is the inference result; θ MLP is to infer network parameters; MLP is a multi-layer perceptron activated by Leaky Relu and Tanh.
[0057] S6. Combined with the grid search optimization algorithm, the network is trained with a joint loss based on the focal loss function to obtain the optimal invariant spatiotemporal attention fusion network.
[0058] The solution to the imbalance problem of the proposed method is mainly reflected in the loss function. Therefore, the joint loss function based on focal loss is expressed as follows:
[0059]
[0060] Where: β, λ, η, δ are loss function control factors, which are used to adjust the contribution of each loss. The network is trained to minimize the above loss functions. task , L sim , L trip They are focal loss, reconstruction loss, similarity loss, and triplet loss, and their definitions are as follows:
[0061] The focal loss can adaptively adjust the impact of different sample sizes by adding an adjustment factor to the cross entropy loss. Its calculation formula is as follows:
[0062] L focal (P) = -α(1-P) γ log(P) (9)
[0063] Where: P represents the probability that the sample belongs to the correct category; α represents the weight factor; (1-P) γ represents the adjustment factor, γ is the adjustable focusing parameter. In addition, P = Inf is the inference network output, α = 0.25 and γ = 2.
[0064] The reconstruction loss aims to minimize the distance between the input data and the reconstructed data, and is used to fine-tune the pre-trained CAE model. In addition, adding reconstruction loss to learning can encourage the network to learn trivial representations (cannot fully learn input features) and suppress input noise. The experiment uses the mean square error function as the reconstruction loss, and its calculation formula is as follows:
[0065]
[0066] Where: x m and R m denote the original input data and the reconstructed data respectively, represents the squared L2 norm.
[0067] Since the network only concatenates and fuses the data of each modality at the MLP layer, it cannot effectively explore the interactive relationship between the modalities and the invariant characteristics between the modalities. Therefore, in order to obtain a more comprehensive fusion representation, the invention adds a similarity constraint between the two modal spatiotemporal attention representations to help the network capture the invariant spatiotemporal attention representation. The central moment deviation (CMD) metric measures the distance between two distributions by matching the difference in high-order moments. It has the characteristics of simple and efficient calculation and can reduce the computational cost of the network. Therefore, the invention introduces CMD as a similarity loss, which is defined as follows:
[0068] Let X and Y be bounded random samples in the tight interval [a,b] N With their own probability distributions p and q, the center distance deviation regularizer CMD K The empirical estimate defined as the CMD metric is as follows:
[0069]
[0070] Among them C k and E(X) are expressed as follows:
[0071]
[0072] Where: E(X) is the empirical expectation vector of sample X, C k (X) is the vector of the central moments of all k-order samples in the X coordinate. The CMD similarity loss adopted by the invention is as follows:
[0073] L sim =CMD K (M v ,M c ) (13)
[0074] Before fusing the invariant spatiotemporal attention representations, in order to ensure a high level of similarity between the two, the invention adds a triple boundary constraint (L trip ) to minimize the distance between all semantically (categorically) similar sample representations from different modalities, while maximizing the distance between dissimilar representations. For the vibration modality, a triple representation is established The current represents Semantically similar to the vibration representation M v positively correlated, while the current is With M v Negative correlation. Then the triple boundary loss with the vibration mode as the anchor point is as follows:
[0075]
[0076] Similarly, the triple boundary loss with the current mode as the anchor point is as follows:
[0077]
[0078] Where: d represents the Euclidean distance margin=1 indicates the margin value (ensuring that the loss function L trip ≥0); M c / v Invariant spatiotemporal attention representations for two modalities.
[0079] Combined with formula (14-15), the total triple boundary loss is as follows:
[0080]
[0081] Experimental analysis:
[0082] In order to verify the detection accuracy and effect of the model, this experiment was implemented using Python code. The experimental equipment was: (1) processor (AMD Ryzen 5 2600X Six-Core Processor, 3.60GHz); (2) running memory (16G); (3) graphics card (NVIDIA GeForce GTX 1660, 6G); (4) code operating environment (Pytorch = 1.2.0, Python = 3.7.9).
[0083] The experiment uses motor bearing test data. The specific data used are: under two different operating conditions (target domain: speed N = 900rpm, load torque T = 0.7Nm, radial force F = 1000N; source domain: speed N = 1500rpm, load torque T = 0.1Nm, radial force F = 1000N), the equipment is respectively equipped with 5 different health states of bearings. The measured vibration and current signal data are shown in Table 1. In the table, each operating condition (speed, torque, radial force) includes 20 files collected by sensors, and the invention selects one of them. In addition, 160,000 (400×400) data are extracted from each data file for the experiment (400 data points are one sample, and there are 400 samples in total), and the training and test sets are divided at a ratio of 3:1.
[0084] Table 1. Dataset parameters
[0085]
[0086] In addition, in order to solve the imbalance problem, the data distribution used in the experiment is shown in Table 2. It shows the number of samples taken for each data category under different imbalance rates. It should be noted that when the data needs to be normalized in the data preprocessing part, in order to better meet the characteristics of vibration and current data, the data needs to be mapped to the interval of [-1,1]. In addition, this experiment uses the grid search algorithm to solve the problem of network hyperparameter selection. When performing grid search, the experiment selects the optimal parameters from the following finite set of hyperparameters: β∈{0.6,0.7,0.8,0.9,1.0}, λ∈{0.1,0.2,0.3,0.4,0.5}, η∈{0.5,0.6,0.7,0.8,0.9,1.0}, δ∈{0.01,0.1,0.2,0.3}, K∈{1,2,3,4,5}, lstm dim∈{32,50,64}, mlp dim∈{128,256,512,1024}.
[0087] Among them, β, λ, η, δ are loss function adjustment factors, K is the order size of CMD, lstm dim is the LSTM hidden layer dimension, and mlp dim is the multilayer perceptron dimension. After grid search, the optimal model is saved and the corresponding hyperparameters are returned: β=0.7, λ=0.1, η=1.0, δ=0.1, K=3, lstm dim=64, mlpdim=128.
[0088] Table 2. Experimental data distribution
[0089]
[0090]
[0091] During the iterative training process, the optimizer, learning rate, random seed, Epoch, and Batch size are set to Adam, 0.01, 123, 300, and 100, respectively. In addition to the above key hyperparameters, the structural details of the network components used in the experiment are as follows Figure 4 shown.
[0092] In order to verify the effectiveness of the present invention, the experiment designed a single-mode (vibration or current) fault diagnosis model based on convolutional neural network (CNN), convolutional autoencoder neural network (CAE), convolutional long short-term memory network (CNN+LSTM) and a dual-mode fusion model based on convolutional fusion neural network (CNN-Fusion) and convolutional autoencoder fusion neural network (CAE-Fusion) for unbalanced samples with different category ratios, and compared them with the proposed model. The topological structure of the comparison model used in the experiment is as follows: Figure 5As shown in Figure 3, the parameters of the convolutional layer and MLP are consistent with the proposed network. In addition, the comparative experimental results can be seen in Tables 3 and 4.
[0093] Table 3 Experimental results I
[0094]
[0095] Table 4 Experimental results II
[0096]
[0097] In the results of the first three single-mode methods in Tables 3 and 4, the left is vibration and the right is current. According to the results, the fault characteristics of the vibration signal in the traditional deep learning model are more obvious than the current signal, which is consistent with the actual situation. In addition, compared with the CNN model, the CNN-LSTM model has better performance under different unbalanced conditions, which is the effect of the memory function of LSTM and the deepening of the network depth. The last three in the table are all dual-mode fusion methods. Compared with the first three single-mode methods, it can be clearly observed that the fusion model combining voltage and current modes has a significant improvement in diagnostic performance, which means that by using the feature fusion method to enrich information, the confidence and performance of the network can be effectively improved. It is worth noting that the method proposed in the present invention has achieved the best performance in the above experiments, which may be related to the fact that the method considers its spatiotemporal characteristics in the feature representation process and adopts a reasonable constraint learning strategy. Therefore, in order to further verify and analyze the performance and rationality of the proposed method, the process representation of the proposed network will be visualized and the network structure and loss function will be ablated.
[0098] The experiment combines visualization methods such as T-SNE and confusion matrix to verify the rationality and effectiveness of the method proposed in this invention. In order to reduce the workload, the experiment is conducted on a representative unbalanced data set (the unbalanced ratio is 10:5:4:3:2), and T-SNE visualization analysis is performed on the feature representation process of the network. Figure 6 As shown in the figure, the five figures in the figure are the semantic feature distribution diagrams of the original input, the encoded representation, the spatiotemporal attention representation, the multi-layer perceptron fusion representation, and the final inference representation. The points of different colors in each figure represent different types of samples, and the smaller the distance between points of the same color and the larger the distance between points of different colors, the better the network performance. As can be seen from Figure 7, the effect of sample clustering improves according to the progressive order of network modules. It can be seen that the process of the network proposed in the present invention is reasonable when performing fault diagnosis tasks under unbalanced conditions. Then, in order to further verify the superiority of the classification performance of the network, the results of CNN-LSTM (vibration mode), CNN-Fusion, CAE-Fusion and the method proposed in the comparative experiment are used for confusion matrix visualization, as shown Figure 7 shown.
[0099] It can be seen from the results of the confusion matrix that fault types 4 and 5 are more difficult to judge than other fault types, and the method proposed in the present invention has achieved the best results in the classification results of each fault type. In addition, the overall classification results of the confusion matrix are consistent with the comparative experimental results under the same unbalanced conditions (10:5:4:3:2), and the method of the present invention also achieves the best performance. This not only verifies the authenticity of the comparative experimental results, but also shows that the proposed model is superior to the traditional deep learning model in classification performance.
[0100] In the experiment, the representation process of the proposed network was visualized and the classification performance of the network was verified through the confusion matrix, but there was a lack of quantitative indicators for evaluation of the design of the model itself. Therefore, the experiment also conducted an ablation study on the structural design and learning strategy of the model, and used the network inference accuracy as a quantitative indicator for evaluation (imbalance ratio: 10:5:4:3:2). The experimental results are shown in Table 5:
[0101] Table 5 Ablation study experimental results
[0102]
[0103] From the results of the loss function study in Table 6, we can see that the degree of influence of the loss function on the network is ranked in the following order: Focal loss, Similirity loss, Recon loss, and Triplet loss. Among them, the network is most sensitive to Focal loss because: Focal loss, as a task loss, plays a decisive role in the results of the network, and its penalty mechanism can effectively suppress the imbalance problem; Similirity loss also has a relatively large impact on the network, because using this loss to obtain the modal invariance between the two modes (that is, obtaining the interactive information between the modes) before performing the fusion task can reduce the network calculation burden while obtaining more comprehensive fault feature information; Recon loss has a relatively small impact on the network, which is caused by the fact that the task loss can already learn trivial representations well without this loss; the reason why Triple loss has the smallest effect is that both the fusion operation and Similirity loss can play the clustering effect of this loss, so the effect of this loss is weakened. In addition, judging from the results of network structure ablation, the lack of pre-trained models, CBAM, LSTM, and MLP modules will have a negative impact on the network, which means that transfer learning, spatiotemporal attention mechanism, and fusion operations are all effective and have a positive impact on the network.
[0104] In addition, in order to verify the generalization ability of the method proposed in the present invention, in addition to using the Bird University bearing data, the experiment also introduced the Xi'an Jiaotong University bearing data (XJTU-SY) and the Western Reserve University bearing data (CWRU) for testing. Among them, the Bird University data are the vibration signals of two different sensors in the target domain data set of the experimental part; the XJTU data include vibration signals of five types of faults, including outer ring, inner ring, inner ring + outer ring, cage, inner ring + rolling element + cage; the Western Reserve University data include five types of vibration data under different fault diameters, including ball 1 (fault diameter = 0.007 inches), ball 2 (fault diameter = 0.014 inches), inner ring (0.007 inches), outer ring (0.007 inches) faults and normal data. The test results are as follows. Figure 8 , 9 As shown, it can be seen that the model proposed in the present invention can still achieve good performance on different data sets under different imbalance conditions, which also proves that the model has good generalization performance.
[0105] The embodiments described in the present invention are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the concept and scope of the present invention. Without departing from the design concept of the present invention, various modifications and improvements made to the technical solutions of the present invention by those skilled in the art should fall within the protection scope of the present invention. The technical contents for which protection is sought in the present invention have all been recorded in the claims.
Claims
1. An unbalanced fault diagnosis method based on an invariant spatiotemporal attention fusion network, characterized in that The following steps are involved: S1. Establish an unbalanced data fault detection framework, which includes a data acquisition module, a preprocessing module, a pre-trained model acquisition module, an invariant spatiotemporal attention feature acquisition module, a fusion inference module and a network training module connected in sequence; S2, collect data sets and preprocess the data; S3, inputting the processed category-balanced vibration and current data into convolutional autoencoders with different parameters and performing pre-training; S4, the vibration and current with imbalanced categories are input into the pre-trained CAE, convolutional attention module, and long short-term memory network in turn to obtain invariant spatiotemporal attention features; first, after learning the balanced sample distribution, the imbalanced vibration signal x v , current signal x c The input network is fine-tuned to obtain the underlying features of the data. The process is an encoding-decoding process, which is expressed as follows: Where: h m , R m ,θ m Encoder ,θ m Decoder 、CAE m Encoder 、CAE m Decoder They are respectively the encoding representation, decoding representation, encoding network parameters, decoding network parameters, encoding network part, and decoding network part of the m-mode CAE network; In order to obtain the spatial and channel characteristics of the data, the encoding representation h of the m-modal pre-trained CAE model is m The input is fed into the convolutional attention module and is represented as follows: Where: Att m CBAM m ,θ m CBAM Represent the channel-spatial attention representation of m modes, the convolutional block attention network and its network parameters respectively; CBAM is a simple and effective feed-forward convolutional neural network attention module. Given an intermediate feature map F∈R C×H×W As input, this module sequentially infers attention maps along two independent dimensions. The entire attention process is summarized as follows: F'=M c (F)=σ2(MLP(AvgPool(F))+MLP(MaxPool(F))) F”=M s (F')=σ2(f 7×7 ([AvgPool(F');MaxPool(F')])) Where: F' represents the channel attention map; F" represents the final channel-spatial attention map; M c ∈R C×1×1 represents a 1D channel attention map; M s ∈R 1×H×W represents 2D spatial attention mapping; MLP represents multi-layer perceptron mapping representation; AvgPool is the average pooling operation; MaxPool is the maximum pooling operation; f 7×7 represents the convolution operation with a filter size of 7×7; σ2 is the Sigmoid activation function; The attention representation is imported into the LSTM network to obtain the temporal characteristics, which is expressed as follows: Where: M m , LSTM m ,θ m LSTM They represent the spatiotemporal attention representation, LSTM network and network parameters of m-mode respectively; S5. The invariant spatiotemporal attention features of the two modalities are concatenated and input into the inference network for inference representation. In order to obtain the fusion representation, the spatiotemporal attention representations of the two modalities are concatenated first. The process is as follows: Where: " represents the vector concatenation operation; Fusion represents the fused vector after concatenation; then, the fused spatiotemporal attention representation is input into the inference network MLP for fusion and fault inference, as shown below: Inf=MLP(Fusion;θ MLP ) Where: Inf is the inference result; θ MLP is to infer network parameters; MLP is a multi-layer perceptron activated by LeakyRelu and Tanh; S6. Combined with the grid search optimization algorithm, the network is trained with a joint loss based on the focal loss function to obtain the optimal invariant spatiotemporal attention fusion network.
2. According to claim 1, the imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network is characterized in that: The data acquisition module obtains current and vibration signals through current sensors and acceleration sensors, and divides the signals obtained under different working conditions into source domain and target domain data sets.
3. The imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network according to claim 1 is characterized in that: In step S2, data preprocessing includes a data normalization process, in which the original vibration and current data are normalized respectively to eliminate the dimension effect.
4. The imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network according to claim 3 is characterized in that: After the normalized vibration and current data of the packaging equipment are segmented, the 1-D data are reorganized into a 2-D grid matrix form.
5. The imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network according to claim 1 is characterized in that: In step S3, the processed category-balanced dataset is input into different convolutional autoencoders and trained to obtain a pre-trained CAE model.
6. The imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network according to claim 1 is characterized in that: In step S4, the target domain data with class imbalance is passed through the pre-trained CAE, convolutional attention module, and long short-term memory network in sequence to obtain the spatiotemporal attention representation of the data.
7. The imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network according to claim 1 is characterized in that: In step S5, the spatiotemporal attention representations are concatenated and input into the inference network to obtain the network inference output.
8. The imbalance fault diagnosis method based on the invariant spatiotemporal attention fusion network according to claim 1 is characterized in that: In step S6, the grid search optimization algorithm is combined to train the network with a joint loss based on the focal loss function to obtain the optimal invariant spatiotemporal attention fusion network.
Citation Information
Patent Citations
Group behavior identification method based on multi-modal information fusion and decision optimization
CN111339908A
Transformer failure identification and location diagnosis method based on multi-stage transfer learning
US20210190882A1
