기본 정보
- 저자
- DOI
- 10.3390/mi13101656
- 저널
- Micromachines
- 발행년도
- 2022
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 17
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/mi13101656
- 토픽
- Gear and Bearing Dynamics Analysis
- OpenAlex ID
- W4303856886
평가 내용
- 관련도
- 사업분야
- 모빌리티 소재 · (4) 카시트 모듈
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '모빌리티 소재 > 카시트 모듈' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 48,712자
본문 펼치기
섹션 본문 130문단 · 46,216자
(제목 없음)
1Fault diagnosis methods based on deep learning have progressed greatly in recent years.However, the limited training data and complex work conditions still restrict the application of these intelligent methods.This paper proposes an intelligent bearing fault diagnosis method, i.e., Siamese Vision Transformer, suiting limited training data and complex work conditions.The Siamese Vision Transformer, combining Siamese network and Vision Transformer, is designed to efficiently extract the feature vectors of input samples in high-level space and complete the classification of the fault.In addition, a new loss function combining the Kullback-Liebler divergence both directions is proposed to improve the performance of the proposed model.Furthermore, a new training strategy termed random mask is designed to enhance input data diversity.A comparative test is conducted on the Case Western Reserve University bearing dataset and Paderborn dataset and our method achieves reasonably high accuracy with limited data and satisfactory generation capability for cross-domain tasks.
Introduction
2Bearings, as core components of rotating mechanisms, are widely applied in industrial fields.Faults are highly likely to cause entire mechanical system damage and threat to the safety of employees [1][2][3][4].Playing a crucial role in the maintenance of mechanical equipment, many fault diagnosis methods have been proposed.Traditional signal-based mechanical fault diagnosis methods commonly require manual feature extraction based on knowledge and prior experience [5].In recent years, deep learning has made progress in many areas, such as computer vision [6,7], natural language processing [8,9] and defect detection [10,11].Therefore, a large number of fault diagnosis methods based on deep learning have been developed.Zhao et al. [12] designed a novel intelligent fault diagnosis method for diagnosing accurately and steadily rolling bearing faults.Their approach was validated on experimental and practical bearing data.Zhang et al. [13] built a novel neural network that uses raw temporal signals as input.Their method achieved high accuracy under complex working conditions.He et al. [14] proposed a bearing fault diagnosis method based on a new strategy's sparse auto-encoder whose weights were assigned.Hu et al. [15] proposed a new method using tensor-aligned invariant subspace learning and convolutional neural networks for cross-domain bearings fault diagnosis.Zhu et al. [16] proposed a new fault diagnosis approach based on principal component analysis and deep belief network.The time-consuming and unreliable manual feature extraction method is gradually being replaced by deep learning methods [5,[17][18][19][20].
3However, deep learning-based methods usually require a large amount of data for model training.Collecting a considerable amount of data for every type of failure under each working condition poses a considerable challenge in actual industrial application scenarios.Some studies of mechanical fault diagnosis have been conducted using limited data.In [21], Zhang et al. applied the Siamese network to fault diagnosis and designed a Siamese CNN model reporting good performance with limited training samples.A novel method termed meta-learning fault diagnosis framework was proposed by Li et al. [22] and performed excellently under complex working conditions.Li et al. [23] designed a deep balanced domain adaptation neural network achieving exciting results using limited labeled training data.Hang et al. [24] used principal component analysis and a two-step clustering algorithm to develop performance in a high-dimensional unbalanced training dataset.A new fault diagnosis approach based on generative adversarial network (GAN) and stacked denoising auto-encoder (SDAE) was proposed by Fu et al. [25], the experimental results representing high diagnosis accuracy under various working conditions.The Feature Space Metric-based Meta-learning Model (FSM3) was designed by Wang et al. [26] to address the challenge of limited training samples.Lu et al. [27] proposed a new cross-domain DC series fault detection framework based on Lightweight Transfer Convolutional Neural Networks.A new support vector data description based on machine learning was proposed by Duan et al. [28] for limited data.Huang et al. [29] proposed a novel method for bearings fault diagnosis under actual conditions and reported that their model achieved good performance under limited data with noise labels.Bai et al. [30] proposed a novel method for bearing fault diagnosis using multi-channel convolution neural network (MCNN) and a multiscale clipping fusion(MSCF) data augmentation algorithm to suit the challenge of limited sensor data.
4At the same time, conventional learning-based methods usually assume that training data and testing data are independent and identically distributed.However, it is impractical to collect sufficient data with the same distribution of test data coming from complex work conditions.This requires the training data to cover all possible operating conditions: different working loads, speeds, noise and so on.Such strict assumptions hinder the application of intelligent fault diagnosis methods in actual industry.From a realistic perspective, the training data are usually collected from specific operating conditions, different but similar equipment, or software fault simulations, which may cause different distributions from tested data.Intelligent diagnosis techniques with a strong in-distribution assumption can fail when differences develop.In recent years, numerous research studies have produced a variety of cross-domain diagnosis methods based on transfer learning or domain adaptation employing data with inconsistencies from various source domains to break the identically distributed assumption [31,32].These studies' fundamental principle is to build a diagnostic model that can effectively perform in the target domain using the knowledge of the relevant source domain.Exciting performance enhancements have been made in a variety of cross-domain scenarios, such as in various work conditions [33,34] and across different equipment [19,35].Zhang et al. [34] propose a conditional adversarial domain generalization aiming to extract domain-invariant features from the different source domains and generalize to unseen target domains.Li et al. [34] implemented adversarial domain training to extra generalized features learned from different domains to hold in new working scenarios.Zheng et al. [36] combine priori knowledge and deep domain generalization network for fault diagnosis.
5Although the above methods have achieved exciting results in both research directions, studies that put limited data and domain generalization into a unified framework are rare.
6In recent years, Transformer has achieved great success in natural language processing and computer vision.Ding et al. [37] applied Transformer to fault diagnosis of rolling bearings and proposed a novel method termed time-frequency Transformer which achieved satisfactory performance.Weng et al. [38] designed a one-dimensional Vision Transformer with Multiscale Convolution Fusion (MCF-1DViT) combining CNN and Vision Transformer for bearing fault diagnosis.They reported that their method can significantly improve diagnosis accuracy and anti-noise ability.Tang et al. [39] introduced integrated learning into the Vision Transformer model for bearing fault diagnosis and achieved good results.The exciting performance of these methods shows the great potential of Transformer in the field of fault diagnosis.
7In the current study, we propose a novel fault diagnosis method to improve the model's generation ability to face the two challenges, i.e., limited training data and domain generation for rolling bearings.First, the time-series signal is converted into a time-frequency graph with short-time Fourier transform (STFT).Second, a Siamese Vision Transformer (SViT) is designed to extract feature vectors efficiently and implement classification tasks.In addition, we design a new loss function, bidirectional Kullback-Liebler divergence (DKLD), to improve the performance of the proposed model.A new training strategy, i.e., the random mask, is also proposed to reduce the overfitting risk of the model.The contributions of this study include the following.The remainder of this paper is organized as follows.Section 2 details our method, including the Siamese networks, Vision Transformer, the new loss function bidirectional KL divergence and random mask strategy.Section 3 presents the experiments, results and discussion.Finally, conclusions are drawn in Section 4.
The Framework of the Proposed Method
8As shown in Figure 1, the proposed method is a Siamese-based neural network using an improved vision transformer as the backbone.The inputs are a pair of time-frequency graphs obtained from raw vibration signals through STFT.First, the time-frequency graphs are divided into 8 × 8 patches.After that, the patches are fed into the Random mask layer r masking the input patches with a random rate p.Second, the 2D patches are flattened into 1D vectors through linear projection.Then the class token (a trainable vector with the same sizeas a patch) is concatenated in the font of the flattened vectors.At the same time, the positional encoders are added to the vectors.Third, the series vectors are fed into the transformer encoder constructed with two transformer encoder layers.At the top of the network, the class token outputs are used to calculate the distance of the two input time-frequency graphs.The details of the layers are shown in Table 1.
Data Processing
9Short-time Fourier transform (STFT) uses a fixed-length nonzero window function to slide along the time axis, truncating the signal int o segments with the same length.Fourier transform can be used to obtain the local frequency spectra of the segments, assuming that these segments are stable.A 2D time-frequency graph is obtained by recombining these local frequency spectra along the time axis.The formula is presented in Equation (1).
10where ( ) x t is the original signal and ( )
11is the window function applied with the center point at the time .
Siamese Network
12The Siamese network algorithm was proposed by Bromley et al. [40,41] for detecting forged signatures in 1994.A typical Siamese network consists of two twin networks with the same structure and parameters.The two networks receive different inputs and are connected by an energy function calculating a metric in high-level feature space.As shown in Figure 2, tying the weights of the two subnetworks ensures that two highly similar inputs are not mapped onto extremely different positions in the feature space by their respective networks.Besides, the network is symmetrical.Thus, whenever two different inputs are presented to the twin network, the top connection layer calculates the same metric, just as the same inputs are inputted into the opposite twin network.The Siamese network can make full use of the limited training samples to achieve efficient feature extraction using the same or different sample pairs as the training samples.
Data Processing
13Short-time Fourier transform (STFT) uses a fixed-length nonzero window function to slide along the time axis, truncating the signal int o segments with the same length.Fourier transform can be used to obtain the local frequency spectra of the segments, assuming that these segments are stable.A 2D time-frequency graph is obtained by recombining these local frequency spectra along the time axis.The formula is presented in Equation (1).
14where x(t) is the original signal and g(t − τ) is the window function applied with the center point at the time τ.
Siamese Network
15The Siamese network algorithm was proposed by Bromley et al. [40,41] for detecting forged signatures in 1994.A typical Siamese network consists of two twin networks with the same structure and parameters.The two networks receive different inputs and are connected by an energy function calculating a metric in high-level feature space.As shown in Figure 2, tying the weights of the two subnetworks ensures that two highly similar inputs are not mapped onto extremely different positions in the feature space by their respective networks.Besides, the network is symmetrical.Thus, whenever two different inputs are presented to the twin network, the top connection layer calculates the same metric, just as the same inputs are inputted into the opposite twin network.The Siamese network can make full use of the limited training samples to achieve efficient feature extraction using the same or different sample pairs as the training samples.As shown in Equation ( 2), f is the hidden layer of the model.The output layer is a fully connected layer that uses the distance feature vector as input and outputs the probability that two input data belong to the same category.This layer is obtained using Equation (3), where simg is the sigmoid function and FC represents the fully connected layer.
16( , ) ( ( ( , )))
17The network is optimized with an Adam optimizer, which adaptively sets the learning rate for each parameter.
Vision Transformer
18A transformer is a neural network model that completely relies on a self-attention mechanism to maintain the relationship between input and output [42].Because of the parallel architecture, which is different from the sequential structure of the traditional recurrent neural network, the transformer can consider the global information comprehensively and be trained in parallel.The architecture of the transformer model is depicted in Figure 3 and primarily comprises an encoder, a decoder and a positional embedding layer.To help the transformer address the issue of long-term dependency more effectively, positional embedding is utilized to add the relative positioning information of the input data to the data processed by the embedding layer.The transformer performs well in many time series tasks based on the above advantages.However, due to the computational complexity of the self-attention mechanism, it requires more memory and computational power in the training and prediction process.Considering the information redundancy between adjacent pixels, to reduce the computational complexity of the model the vision transformer (ViT) was proposed in [43].As shown in Equation ( 2), f is the hidden layer of the model.The output layer is a fully connected layer that uses the distance feature vector as input and outputs the probability that two input data belong to the same category.This layer is obtained using Equation ( 3), where simg is the sigmoid function and FC represents the fully connected layer.
19The network is optimized with an Adam optimizer, which adaptively sets the learning rate for each parameter.
20A transformer is a neural network model that completely relies on a self-attention mechanism to maintain the relationship between input and output [42].Because of the parallel architecture, which is different from the sequential structure of the traditional recurrent neural network, the transformer can consider the global information comprehensively and be trained in parallel.The architecture of the transformer model is depicted in Figure 3 and primarily comprises an encoder, a decoder and a positional embedding layer.To help the transformer address the issue of long-term dependency more effectively, positional embedding is utilized to add the relative positioning information of the input data to the data processed by the embedding layer.The transformer performs well in many time series tasks based on the above advantages.However, due to the computational complexity of the self-attention mechanism, it requires more memory and computational power in the training and prediction process.Considering the information redundancy between adjacent pixels, to reduce the computational complexity of the model the vision transformer (ViT) was proposed in [43].
21Due to its global information sensing capability, ViT achieves exciting performance in the field of image and vision recognition.The structure of the ViT model consists of a projection of flattened patches, a transformer encoder and a classification head.The input image is first divided into a series of patches.These image patches are then passed through an embedding layer and output vectors of a specific length.To preserve the positional relationship of the input image, position embeddings of the same size as embedded vectors are added to the image patches.The sequence of image patches is passed to the transformer encoder, mainly composed of a multi-head attention layer and an MLP layer.The multihead attention layer extracts different levels of self-attention information from the input through each head.The output of the class token is fed to the MLP head to give the classification result.Due to its global information sensing capability, ViT achieves exciting performance in the field of image and vision recognition.The structure of the ViT model consists of a projection of flattened patches, a transformer encoder and a classification head.The input image is first divided into a series of patches.These image patches are then passed through an embedding layer and output vectors of a specific length.To preserve the positional relationship of the input image, position embeddings of the same size as embedded vectors are added to the image patches.The sequence of image patches is passed to the transformer encoder, mainly composed of a multi-head attention layer and an MLP layer.The multi-head attention layer extracts different levels of self-attention information from the input through each head.The output of the class token is fed to the MLP head to give the classification result.
Patch Embedding Layer
22The Patch Embedding Layer transforms a conventional visual problem into a seq2seq problem through image segmentation and linear projection.As shown in Equation ( 4), suppose the input image
23, where h , w , c represent the image's height, width and channel, respectively.(*) P is the dividing operation and (*) Concat is the operation of vector concatenate and
24denotes the input of the transformer encoder, where _ cls token is a learnable parameter with the same size as the mapped vector and the positional coders ( _ position coder ) of the image patches are added to the vector space.
25The Patch Embedding Layer transforms a conventional visual problem into a seq2seq problem through image segmentation and linear projection.As shown in Equation ( 4), suppose the input image x ∈ R h×w×c , where h, w, c represent the image's height, width and channel, respectively.P( * ) is the dividing operation and x p ∈ R N×(p×p×c) denotes the sequence of the divided image, where N, p represent the number of image patches and width of a patch, respectively.L( * ) is the linear projection and x p ∈ R N×D denotes the projected vectors, where D represent the dimension of vector space.Concat( * ) is the operation of vector concatenate and z ∈ R (N+1) * D denotes the input of the transformer encoder, where cls_token is a learnable parameter with the same size as the mapped vector and the positional coders (position_coder) of the image patches are added to the vector space.
26x p = P(x)
Transformer Encoder
27A transformer encoder layer is composed of multiple identical stacked module layers.It mainly contains two sub-layers, i.e., the multi-head self-attention layer and the MLP feedforward layer.In order to improve the stability of the model in training, each sub-layer is connected internally using residual and layer normalization.
• MLP layer
28The structure of the MLP is shown in Figure 4, including a fully connected layer, GELU activation function and dropout.In ViT, the Gaussian error linear unit (GELU) activation function is used in the feedforward layer.GELU activation function is expressed as Equation (5).
29Micromachines 2022, 13, x FOR PEER REVIEW
MLP Head
30The MLP header layer consists of a fully connected layer and an activation for the classification task of diagnosing faults.In this study, the class token vec cessed by the transformer encoder is fed to the MLP header and the probability each fault category is obtained through the SoftMax function.The final fault ca obtained according to the maximum probability value.
Bidirectional KL Divergence
31Kullback-Liebler (KL) divergence measures the similarity of a probability tion to a reference probability distribution [44,45].A KL divergence of 0 indicates two distributions are the same.For discrete probability distributions P and Q in the same probability space, the KL divergence [46] from Q to P is defined tion (9):
32, By contrast, the KL divergence from P to Q is defined as Equation ( 10):
33, Equations ( 8) and ( 9) clearly show that the KL divergence is asymmetric.A in Equation ( 8), in the KL divergence from Q to P, when 0 i P , regardless of the
• Multiheaded self-attention layer
34The self-attention mechanism enables the network model to extract globally valid features, but the single-head attention mechanism can only learn the feature representation of a single representation space.In order to comprehensively extract remote features from global images, the multi-head self-attention mechanism is used to combine features from different feature subspaces.
35The calculation formula of self-attention is written as Equations ( 6) and (7).
36where Q, K, V is the query matrix, key matrix and value matrix, respectively.These matrices are calculated by multiplying the feature matrix X with the learnable matrices W, d denotes the dimension of Q, K and V.The multi-head self-attention mechanism uses multiple self-attention heads to learn features from different representation subspaces and finally integrates these subspace features through linear mapping.The multi-head self-attention mechanism can be expressed as Equation (8).
37where Concat( * ) is the operation of concatenate and W denotes the weight matrix of projection.
MLP Head
38The MLP header layer consists of a fully connected layer and an activation function for the classification task of diagnosing faults.In this study, the class token vector processed by the transformer encoder is fed to the MLP header and the probability value of each fault category is obtained through the SoftMax function.The final fault category is obtained according to the maximum probability value.
Bidirectional KL Divergence
39Kullback-Liebler (KL) divergence measures the similarity of a probability distribution to a reference probability distribution [44,45].A KL divergence of 0 indicates that the two distributions are the same.For discrete probability distributions P and Q defined in the same probability space, the KL divergence [46] from Q to P is defined as Equation ( 9):
40By contrast, the KL divergence from P to Q is defined as Equation ( 10):
41Equations ( 8) and ( 9) clearly show that the KL divergence is asymmetric.As shown in Equation ( 8), in the KL divergence from Q to P, when P i = 0, regardless of the value of Q i , P i log P i Q i = 0.In the two-classification problem, the loss function can only proceed to one term (
42To fully measure the difference between the label and the predicted value, we design a new loss function, called bidirectional KL divergence (DKLD), as shown in Equation (11), where represents the label value and Q i is the predicting probability of the model.
43The iteration of gradient descent updates the parameters as shown in Equation ( 12):
44where W is the model's weight, b is the bias and α is the learning rate.P is a constant and the gradient can be calculated as Equation (13).
45Compared with the gradient of the cross-entropy loss function, as shown in Equation ( 14), the gradient of DKLD has an additional coefficient 1
46. This coefficient contributes to the gradient regardless of whether P approaches 0 or 1.We expect that this characteristic of DKLD can help to improve the performance of the model in cases with limited training samples.To prevent calculation errors, we limit the value P to [0.001, 1] during calculations.
47The comparison between DKLD and cross-entropy is presented in Table 2.
48Table 2. Comparison between DKLD and cross-entropy.
Random Mask Strategy
49Similar to dropout, the mask strategy randomly deactivates neuron units in each forward propagation with probability p during training.Unlike the dropout utility neuron units, the mask strategy has larger operation granularity and the operating object in this paper is a patch.The deactivated neurons in low-level layers will affect high-level neurons.Applying mask strategy directly to the input layer can achieve the effect of data augmentation and ensemble learning at the same time.Mask is applied on input amounts to feed the input image cropped randomly and irregularly.
50Masking patches with a specific distribution was not enough.Motivated by [47,48], we randomly changed the mask rate on each forward propagation to obtain a new input image with the uncertain feature.In this paper, the mask rate p ∼ Uni f orm(0.5, 0.9).The visualization of the random mask strategy is illustrated in Figure 4.
Experimental Setup
51We set up a series of experiments to verify the prediction accuracy and generation ability of SViT on the Case Western Reserve University (CWRU) bearing datasets [49,50] and Paderborn bearing dataset [51].The test platform is an Ubuntu 18.04, Python 3.7 and Pytorch with an Intel ® CORE™ i7 CPU and an Nvidia GTX 3060 GPU.
Comparison Models and Evaluation Metric
52As shown in Table 3, the proposed model was compared with WDCNN, the Siamese CNN, PSDAN, FSM3, DeIN and HCAE.WDCNN, in which the first layer is a wide convolution kernel proposed in [24].The Siamese CNN was designed by Zhang et al. [29].PSDAN, FSM3, DeIN and HCAE and were proposed in [26,[52][53][54], respectively.The details of the comparison methods are shown in Table 4.The SViT model was proposed by our team and the parameters of the comparison models are listed in Table 1.Accuracy, precision, recall and F1 score are used to evaluate the performance of the proposed model.They can be obtained by the following equations:
53where TP, FP, TN, FN represent true positive, false positive, true negative and false negative, respectively.
Case Study 1: CWRU Bearing Datasets
54To verify the performance of the proposed method, the 12k drive-end bearing fault data in the CWRU bearing datasets are selected as the original experimental data.Data are collected from vibration signals, as shown in Figure 5. Table 5 shows four types of faults in these data: normal, ball fault, inner race fault and outer race fault.Each fault has three subtypes: 0.007 inches, 0.014 inches and 0.021 inches.Thus, we have 10 different fault 7, in the cases with a small number of training samples, DKLD significantly improves the model's performance compared with that of crossentropy.For example, when the sample size is 60 and 90, the accuracy rates of using DKLD are 1.33% and 0.56% higher than that of using cross-entropy, respectively.When the training sample size is increased to 120 and above, the performance of the two-loss functions is exceptionally close, reaching more than 99%.
55To improve the understanding of the effect of DKLD, we use t-distributed stochastic neighbor embedding (t-SNE) to visualize the output of the last hidden fully connected layer of the model trained with DKLD and cross-entropy in 60 sample sizes.As shown in Figure 8a,b, the features of DKLD are more divisible than cross-entropy, particularly in the 1 and 3 categories.Figure 8c,d shows the confusion matrix of the results.
Evaluating the Effectiveness of DKLD
56We set up a series of comparative experiments by randomly selecting 60, 90, 120, 200, 300, 600, 900, 1500, 6000 and 19,800 samples from datasets A, B and C. Each experiment uses 60% of the samples as the training set and the remaining samples as the validation set.To verify the proposed DKLD loss function's effectiveness, we use DKLD and crossentropy to train our model separately with different samples size and then compare the test results.As shown in Figure 7, in the cases with a small number of training samples, DKLD significantly improves the model's performance compared with that of cross-entropy.For example, when the sample size is 60 and 90, the accuracy rates of using DKLD are 1.33% and 0.56% higher than that of using cross-entropy, respectively.When the training sample size is increased to 120 and above, the performance of the two-loss functions is exceptionally close, reaching more than 99%.
57Micromachines 2022, 13, x FOR PEER REVIEW 13 of 23 Accuracy(%) To improve the understanding of the effect of DKLD, we use t-distributed stochastic neighbor embedding (t-SNE) to visualize the output of the last hidden fully connected layer of the model trained with DKLD and cross-entropy in 60 sample sizes.As shown in Figure 8a,b, the features of DKLD are more divisible than cross-entropy, particularly in the 1 and 3 categories.Figure 8c,d shows the confusion matrix of the results.
The Effect of the Number of Transformer Encoder Layers
58To observe the effect of the number of transformer encoders, we tested the performance of the proposed model with the different number of transformer encoders in the cross-domain experiment from dataset C to dataset A (the most difficult cross-domain task [21]).As shown in Figure 9, the proposed model achieved the best performance with two transformer encoders.SViT with two transformer encoders is implemented in follow-up experiments.
59To observe the effect of the number of transformer encoders, we tested the performance of the proposed model with the different number of transformer encoders in the cross-domain experiment from dataset C to dataset A (the most difficult cross-domain task [21]).As shown in Figure 9, the proposed model achieved the best performance with
Ablation Experiments
60To verify the effectiveness of the Random Mask strategy and Siamese net structure, we set up ablation experiments on cross-domain with 600 training samples proposed method is removed the Random mask strategy and Siamese network stru in turn.When the Siamese network structure is removed, the distance layer is inste a fully connected classifier.
61As shown in Table 7, (w/o) means without.It can be seen that the Random strategy and the Siamese network effectively improve the robustness of the mod
62To verify the effectiveness of the Random Mask strategy and Siamese network structure, we set up ablation experiments on cross-domain with 600 training samples.The proposed method is removed the Random mask strategy and Siamese network structure in turn.When the Siamese network structure is removed, the distance layer is instead of a fully connected classifier.
63As shown in Table 7, (w/o) means without.It can be seen that the Random mask strategy and the Siamese network effectively improve the robustness of the model in cross-domain tasks.Implementing the same experimental setup as above, we evaluate the performance of various methods by using different numbers of training samples.We repeat the sample selection process five times for each sample size to generate different training sets to reduce the bias when randomly selecting a small training set.For each random training sample set, we repeat the algorithm training four times to address the randomness of the algorithm.Each series of experiments is repeated 20 times.We use one-shot testing in the Siamese CNN and our method.
64Figure 10 clearly shows that as the amount of training samples increases, the accuracy of all methods also increases, but their standard deviation decreases.This shows the sensitivity of the intelligent fault diagnosis method based on deep learning to the amount of training data.Subsequently, we check whether the proposed SViT model's accuracy is better than those of the other models in the cases with limited training samples (e.g., 60 and 90).In both cases, our model performs better than the other models.Simultaneously, the experimental results indicate that when the training sample size is increased to 900 and above, all the algorithms' performance becomes increasingly similar and their accuracy rates are all higher than 97%.This comparison proves that the proposed SViT exhibits significant advantages over the comparison algorithms in cases with limited training samples.Even in the case of 60 training samples, the proposed algorithm's accuracy rate still reaches 97.56%.Subsequently, we check whether the proposed SViT model's accuracy is better than those of the other models in the cases with limited training samples (e.g., 60 and 90).In both cases, our model performs better than the other models.Simultaneously, the experimental results indicate that when the training sample size is increased to 900 and above, all the algorithms' performance becomes increasingly similar and their accuracy rates are all higher than 97%.This comparison proves that the proposed SViT exhibits significant advantages over the comparison algorithms in cases with limited training samples.Even in the case of 60 training samples, the proposed algorithm's accuracy rate still reaches 97.56%.
Performance in Noisy Environment
65In this experiment, we evaluate the performance of the proposed model in a noisy environment.The model is trained with raw data and then tested with samples added with white Gaussian noise with different signal-to-noise ratios (SNRs).SNR is defined as the ratio of the signal power to the noise power and it is frequently expressed in decibels (dB), as follows:SNR dB = 10 log 10 ( P signal P niose ), where P signal denotes the power of the signal and P niose indicates the power of noise.The SNR range is from −4dB to 10dB.The higher the SNR value, the stronger the intensity of noise.
66In Figure 11, we examine the effect of training sample size on the test accuracy of each model in different noisy environments.In Figure 11a,b, SNR = −4 and 0 represent substantial noise interference.By contrast, in Figure 11c,d, SNR = 4 and 8 represent weak noise interference.The anti-noise capability of the proposed model is better than those of the other models.In particular, the advantage is more apparent in cases with intense noise, as shown in Figure 11a,b.Considering that the proposed method is not specifically designed to improve the anti-noise, according to the report in [21], we speculate that this anti-noise ability is derived from the twin network structure.
Domain Generation Experiments
67To further verify the domain generalization ability of the proposed model, we conduct a cross-domain experiment where all models are trained in the source domain and tested in the target domain.It should be noted that the model does not touch the target domain data during training.The experiment was repeated five times for each task.The results of the cross-domain tasks were observed.The classification accuracies of the experiment are shown in
68To further verify the domain generalization ability of the proposed model, we conduct a cross-domain experiment where all models are trained in the source domain and tested in the target domain.It should be noted that the model does not touch the target domain data during training.The experiment was repeated five times for each task.The results of the cross-domain tasks were observed.The classification accuracies of the experiment are shown in Table 8, in which A-B refers to training on dataset A and testing on dataset B. The proposed SViT achieved the best performance among all the methods in all the scenarios.Specifically, SViT achieved an accuracy of 92.24% in C-A task (the most difficult task), which was 13.4%, 31.88%,12.86%, 2.8%, 12.56% and 11.57% higher than WDCNN, Siamese CNN, PSADAN, FSM3, DeIN and HCAE, respectively.This shows that the proposed method performs better domain generalization than the comparison methods.Tables 9-11 demonstrate precision, recall and F1 score compressions for cross domain task C-A with 6000 training samples.The results show that the proposed SViT outperformed all of the compared approaches.In the experiment, datasets contain vibration signals obtained from healthy, artificially damaged bearings and naturally damaged bearings.The datasets filenames selected are shown in Table 13.The details of the datasets selected are in Table 14.In the experiment, datasets contain vibration signals obtained artificially damaged bearings and naturally damaged bearings.The data selected are shown in Table 13.The details of the datasets selected are in T 12.In the experiment, datasets contain vibration signals obtained from healthy, artificially damaged bearings and naturally damaged bearings.The datasets filenames selected are shown in Table 13.The details of the datasets selected are in Table 14.
Results and Analysis
69Performing the same implementation, Figure 14 shows the cross-domain tasks accuracy of comparison approaches and our method with the increasing number of training samples.The results show that our method outperformed the state-of-the-art methods in all the scenarios.Performing the same implementation, Figure 14 shows the cross-domain tasks accuracy of comparison approaches and our method with the increasing number of training samples.The results show that our method outperformed the state-of-the-art methods in all the scenarios.Table 15 reports the cross-domain tasks accuracy of different methods with 1800 training samples.The proposed method outperformed all comparative methods by 1.80-4.29%on average.Tables 16-18 compare the methods in precision, recall and F1 score in the cross-domain task E-D with 1800 training samples.The results also show that our method superior to the alternatives.
Conclusions
70In this work, an intelligent bearing fault diagnosis method, i.e., SViT has been proposed to face the challenges coming from limited data and domain generation.We have designed a Siamese Vision transformer (SViT) to extract features efficiently.In addition, a loss function called DKLD has been proposed to improve our model's prediction accuracy and generation capability.Furthermore, a novel random mask training strategy has been conducted with the SViT to reduce the overfitting risk and improve the model's generation ability.We present the experimental results showing that our method has better generalization ability in the limited data and cross-domain tasks compared with the state-of-the-art approaches.
71However, the proposed method in this paper still has some restrictions.For instance, this method is limited to cross-domain tasks on the same equipment.In addition, In the prediction stage of SViT, a little more supporting data in the target domain is still required, which limits the application scenarios of the proposed method.
( 1 )
72The proposed SViT based on a Siamese network and ViT obtains satisfactory prediction accuracy in limited data and domain generation tasks.(2)We obtain a new loss function by combining the KL divergence of the two directions to improve the proposed model's performance.(3) A novel training strategy, random mask, focusing on increasing the diversity of input data distribution is designed to enhance the generation ability of the model.(4) The experimental result shows that the proposed method achieves effective accuracy rates and has satisfactory anti-noise and domain generation ability.
Figure 1 .
73Figure 1.The overall framework of the proposed method.
74Figure 1.The overall framework of the proposed method.
Figure 2 .
75Figure 2. Typical Siamese network architecture.
76Figure 2. Typical Siamese network architecture.
23 Figure 3 .
77Figure 3.The architecture of the transformer.
78sequence of the divided image, where N , p represent the number of image patches and width of a patch, respectively.(*) L is the linear projection and ' N D p x R denotes the projected vectors, where D represent the dimension of vector space.
Figure 3 .
79Figure 3.The architecture of the transformer.
Figure 4 .
80Figure 4.The Random mask training strategy.
81Figure 4.The Random mask training strategy.
Figure 5 .
82Figure 5. CWRU.Bearing fault diagnosis test plat.We use half of the vibration signals to generate training samples and the remaining signals to generate the test set.As shown in Figure 6, the training samples are generated by a sliding window of 2048 points with 80 points of overlapping steps.The test set samples pass through sliding windows of the same size, but the samples are generated without overlapping.As shown in Table 5, the dataset includes 19,800 training samples and 750 test samples.Finally, the training and test samples of the proposed model are obtained through STFT.
Figure 6 .
83Figure 6.Generate sample with overlap.3.3.1.Evaluating the Effectiveness of DKLD We set up a series of comparative experiments by randomly selecting 60, 90, 120, 200, 300, 600, 900, 1500, 6000 and 19,800 samples from datasets A, B and C. Each experiment uses 60% of the samples as the training set and the remaining samples as the validation set.To verify the proposed DKLD loss function's effectiveness, we use DKLD and crossentropy to train our model separately with different samples size and then compare the test results.As shown in Figure7, in the cases with a small number of training samples, DKLD significantly improves the model's performance compared with that of crossentropy.For example, when the sample size is 60 and 90, the accuracy rates of using DKLD are 1.33% and 0.56% higher than that of using cross-entropy, respectively.When the training sample size is increased to 120 and above, the performance of the two-loss functions is exceptionally close, reaching more than 99%.To improve the understanding of the effect of DKLD, we use t-distributed stochastic neighbor embedding (t-SNE) to visualize the output of the last hidden fully connected layer of the model trained with DKLD and cross-entropy in 60 sample sizes.As shown in Figure8a,b, the features of DKLD are more divisible than cross-entropy, particularly in the 1 and 3 categories.Figure8c,d shows the confusion matrix of the results.
Figure 5 .
84Figure 5. CWRU.Bearing fault diagnosis test plat.
Table 6 .Figure 5 .
85Figure 5. CWRU.Bearing fault diagnosis test plat.
Figure 6 .
86Figure 6.Generate sample with overlap.
87Figure 6.Generate sample with overlap.
Figure 7 .
88Figure 7. Results of proposed model training with different loss functions.
89Figure 7. Results of proposed model training with different loss functions.
Figure 7 .Figure 8 .
90Figure 7. Results of proposed model training with different loss functions.
Figure 8 .
91Figure 8. Feature visualization via t-SNE (a,b) and confusion matrix (c,d).
Figure 9 .
92Figure 9.The accuracy of the proposed model with different numbers of transformer encoder
93Figure 9.The accuracy of the proposed model with different numbers of transformer encoders.
Micromachines 2022 ,
9413, x FOR PEER REVIEW 15 of 23
Figure 10 .
95Figure 10.Diagnosis results of the proposed method compared with those of the comparison models.
96Figure 10.Diagnosis results of the proposed method compared with those of the comparison models.
Figure 11 .
97Figure 11.Results of different sample sizes in a noisy environment.(a) SNR = −4; (b) SNR = 0; (c) SNR = 4; (d) SNR = 8.
98Figure 11.Results of different sample sizes in a noisy environment.(a) SNR = −4; (b) SNR = 0; (c) SNR = 4; (d) SNR = 8.
Figure 12 .
99Figure 12.Feature visualization via t-SNE in cross-domain tasks.3.4.Case Study 2: Paderborn Dataset 3.4.1.Data Description As shown in Figure 13, there are five modules the Paderborn dataset test rig [51]: (1) electric motor, (2) torque-measurement shaft, (3) rolling bearing test module, (4) flywheel and (5) load motor.Bearings are installed in the test module to collect experimental data.Fault types of bearings include artificial and real damage.
Figure 13 .
100Figure 13.Test rig of Paderborn bearing dataset.There work conditions are selected to obtain different domain datasets.In dataset D, the test platform runs at n = 1500 rpm with a load torque of M = 0.7 Nm and a radial force on the bearing of F = 1000 N. In dataset E, load torque changes to M = 0.1.In dataset F, radial force changes to F = 400 N. The details of three datasets are shown in Table12.
Figure 12 .
101Figure 12.Feature visualization via t-SNE in cross-domain tasks.
3. 4 .Figure 12 .
102Figure 12.Feature visualization via t-SNE in cross-domain tasks.
3. 4 .
103Case Study 2: Paderborn Dataset 3.4.1.Data Description As shown in Figure 13, there are five modules the Paderborn dataset electric motor, (2) torque-measurement shaft, (3) rolling bearing test modu and (5) load motor.Bearings are installed in the test module to collect expe Fault types of bearings include artificial and real damage.
Figure 13 .
104Figure 13.Test rig of Paderborn bearing dataset.
105Figure 13.Test rig of Paderborn bearing dataset.There work conditions are selected to obtain different domain datasets.In dataset D, the test platform runs at n = 1500 rpm with a load torque of M = 0.7 Nm and a radial force on the bearing of F = 1000 N. In dataset E, load torque changes to M = 0.1.In dataset F, radial force changes to F = 400 N. The details of three datasets are shown in Table12.
Figure 14 .
106Figure 14.The mean accuracy of cross-domain task with the different number of training samples on the Paderborn dataset.(a) D-E; (b) D-F; (c) E-D; (d) E-F; (e) F-D; (f) F-E.
107Figure 14.The mean accuracy of cross-domain task with the different number of training samples on the Paderborn dataset.(a) D-E; (b) D-F; (c) E-D; (d) E-F; (e) F-D; (f) F-E.
Table 1 .
108Details of the proposed model.
Table 3 .
109The comparison methods.
Table 4 .
110Details of the comparison methods.
Table 5 .
111Description of CWRU dataset.
112.23 98.47 99.35 99.85 99.97 100.00 99.99 99.99 99.99 100.00 DKLD 97.56 99.03 99.48 99.84 99.94 99.99 99.99 99.99 99.99 99.99
Table 7 .
113Ablation experiments with 600 training samples.
Table 8 ,
114in which A-B refers to training on dataset A and testing on dataset B. The proposed SViT achieved the best performance among all the methods
Table 8 .
115Mean classification accuracy (%) with 6000 training samples on CWRU.
Table 9 .
116Precision (%) comparison for cross-domain task C-A with 6000 training samples on CWRU.
Table 10 .
117Recall (%) comparison for cross-domain task C-A with 6000 training samples on CWRU.
Table 11 .
118F1 score (%) comparison for cross-domain task C-A with 6000 training samples on CWRU.
Table 12 .
119Working conditions of test bearing on Paderborn dataset.
Table 13 .
120Data sets used for experiments.
Table 12 .
121Working conditions of test bearing on Paderborn dataset.
122Working conditions of test bearing on Paderborn dataset.
Table 13 .
123Data sets used for experiments.
Table 14 .
124Detail of datasets on Paderborn.
125Detail of datasets on Paderborn.
Table 15
126reports the cross-domain tasks accuracy of different methods with 1800 training samples.The proposed method outperformed all comparative methods by 1.80-
Table 15 .
127Mean classification accuracy (%) with 1800 samples on the Paderborn dataset.
Table 16 .
128Precision (%) comparison for cross-domain task E-D with 1800 training samples per class on the Paderborn dataset.
Table 17 .
129Recall (%) comparison for cross-domain task E-D with 1800 training samples per class on the Paderborn dataset.
Table 18 .
130F1 score (%) comparison for cross-domain task E-D with 1800 training samples per class on the Paderborn dataset.
참고문헌 48건
- A Survey of Fault Diagnosis and Fault-Tolerant Techniques—Part I: Fault Diagnosis With Model-Based and Signal-Based Approaches IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2015 10.1109/tie.2015.2417501
- On Information and Sufficiency The Annals of Mathematical Statistics · Institute of Mathematical Statistics · 1951 10.1214/aoms/1177729694
- Bearing fault diagnosis based on wavelet transform and fuzzy inference Mechanical Systems and Signal Processing · Elsevier BV · 2003 10.1016/s0888-3270(03)00077-3
- Deep Neural Networks for Acoustic Modeling in Speech Recognition: The Shared Views of Four Research Groups IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2012 10.1109/msp.2012.2205597
- Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study Mechanical Systems and Signal Processing · Elsevier BV · 2015 10.1016/j.ymssp.2015.04.021
- A new support vector data description method for machinery fault diagnosis with unbalanced datasets Expert Systems with Applications · Elsevier BV · 2016 10.1016/j.eswa.2016.07.039
- Condition Monitoring of Bearing Damage in Electromechanical Drive Systems by Using Motor Current Signals of Electric Motors: A Benchmark Data Set for Data-Driven Classification PHM Society European Conference · 2016 10.36001/phme.2016.v3i1.1577
- A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signals Sensors · Multidisciplinary Digital Publishing Institute · 2017 10.3390/s17020425
- A deep convolutional neural network with new training methods for bearing fault diagnosis under noisy environment and different working load Mechanical Systems and Signal Processing · Elsevier BV · 2017 10.1016/j.ymssp.2017.06.022
- Artificial intelligence for fault diagnosis of rotating machinery: A review Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.02.016
- Deep learning and its applications to machine health monitoring Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.05.050
- Rolling Bearing Fault Diagnosis Based on an Improved Denoising Method Using the Complete Ensemble Empirical Mode Decomposition and the Optimized Thresholding Operation IEEE Sensors Journal · IEEE Sensors Council · 2018 10.1109/jsen.2018.2853136
- Real-Time Recognition Method for 0.8 cm Darning Needles and KR22 Bearings Based on Convolution Neural Networks and Data Increase Applied Sciences · Multidisciplinary Digital Publishing Institute · 2018 10.3390/app8101857
- A Damage Classification Approach for Structural Health Monitoring Using Machine Learning Complexity · Hindawi Publishing Corporation · 2018 10.1155/2018/5081283
- An intelligent fault diagnosis approach based on transfer learning from laboratory bearings to locomotive bearings Mechanical Systems and Signal Processing · Elsevier BV · 2019 10.1016/j.ymssp.2018.12.051
- Diagnosis of Rolling Bearing Based on Classification for High Dimensional Unbalanced Data IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2919406
- Limited Data Rolling Bearing Fault Diagnosis With Few-Shot Learning IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2934233
- An optimal deep sparse autoencoder with gated recurrent unit for rolling bearing fault diagnosis Measurement Science and Technology · IOP Publishing · 2019 10.1088/1361-6501/ab3a59
- Cross-Domain Fault Diagnosis Using Knowledge Transfer Strategy: A Review IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2939876
- Knowledge Transfer for Rotary Machine Fault Diagnosis IEEE Sensors Journal · IEEE Sensors Council · 2019 10.1109/jsen.2019.2949057
- Intelligent bearing fault diagnosis using PCA–DBN framework Neural Computing and Applications · Springer Science+Business Media · 2019 10.1007/s00521-019-04612-z
- Transfer fault diagnosis of bearing installed in different machines using enhanced deep auto-encoder Measurement · Elsevier BV · 2019 10.1016/j.measurement.2019.107393
- Deep balanced domain adaptation neural networks for fault diagnosis of planetary gearboxes with limited labeled data Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.107570
- A Novel Intelligent Fault Diagnosis Method for Rolling Bearing Based on Integrated Weight Strategy Features Learning Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20061774
- Deep Convolutional and LSTM Recurrent Neural Networks for Rolling Bearing Fault Diagnosis Under Strong Noises and Variable Loads IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2985617
- Novel prescribed performance-tangent barrier Lyapunov function for neural adaptive control of the chaotic PMSM system by backstepping International Journal of Electrical Power & Energy Systems · Elsevier BV · 2020 10.1016/j.ijepes.2020.105991
- A Novel Method of Bearing Fault Diagnosis in Time-Frequency Graphs Using InceptionResnet and Deformable Convolution Networks IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2995198
- Research on Voltage Waveform Fault Detection of Miniature Vibration Motor Based on Improved WP-LSTM Micromachines · Multidisciplinary Digital Publishing Institute · 2020 10.3390/mi11080753
- Cross-domain intelligent fault classification of bearings based on tensor-aligned invariant subspace learning and two-dimensional convolutional neural networks Knowledge-Based Systems · Elsevier BV · 2020 10.1016/j.knosys.2020.106214
- A Novel Deep Learning System with Data Augmentation for Machine Fault Diagnosis from Vibration Signals Applied Sciences · Multidisciplinary Digital Publishing Institute · 2020 10.3390/app10175765
- Siamese Neural Networks: An Overview Methods in molecular biology · Springer Science+Business Media · 2020 10.1007/978-1-0716-0826-5_3
- Deep Domain Generalization Combining A Priori Diagnosis Knowledge Toward Cross-Domain Fault Diagnosis of Rolling Bearing IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3016068
- Fault Diagnosis of Bearing in Wind Turbine Gearbox Under Actual Operating Conditions Driven by Limited Data With Noise Labels IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3025396
- Object Detection Recognition and Robot Grasping Based on Machine Learning: A Survey IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3028740
- A hybrid classification autoencoder for semi-supervised fault diagnosis in rotating machinery Mechanical Systems and Signal Processing · Elsevier BV · 2020 10.1016/j.ymssp.2020.107327
- Deep prototypical networks based domain adaptation for fault diagnosis Journal of Intelligent Manufacturing · Springer Science+Business Media · 2020 10.1007/s10845-020-01709-4
- A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signal 2017 10.20944/preprints201701.0132.v1
- Meta-learning for few-shot bearing fault diagnosis under complex working conditions Neurocomputing · Elsevier BV · 2021 10.1016/j.neucom.2021.01.099
- Metric-based meta-learning model for few-shot fault diagnosis under multiple limited data conditions Mechanical Systems and Signal Processing · Elsevier BV · 2021 10.1016/j.ymssp.2020.107510
- Lightweight transfer nets and adversarial data augmentation for photovoltaic series arc fault detection with limited fault data International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.107035
- Parameter sharing adversarial domain adaptation networks for fault transfer diagnosis of planetary gearboxes Mechanical Systems and Signal Processing · Elsevier BV · 2021 10.1016/j.ymssp.2021.107936
- Rolling bearing fault diagnosis based on multi-channel convolution neural network and multi-scale clipping fusion data augmentation Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109885
- Fault Diagnosis for Electro-Mechanical Actuators Based on STL-HSTA-GRU and SM IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3127641
- A One-Dimensional Vision Transformer with Multiscale Convolution Fusion for Bearing Fault Diagnosis 2021 Global Reliability and Prognostics and Health Management (PHM-Nanjing) · 2021 10.1109/phm-nanjing52125.2021.9612919
- A novel time–frequency Transformer based on self–attention mechanism and its application in fault diagnosis of rolling bearings Mechanical Systems and Signal Processing · Elsevier BV · 2021 10.1016/j.ymssp.2021.108616
- A Novel Fault Diagnosis Method of Rolling Bearing Based on Integrated Vision Transformer Model Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22103878
- A Hybrid Matching Network for Fault Diagnosis under Different Working Conditions with Limited Data Computational Intelligence and Neuroscience · Hindawi Publishing Corporation · 2022 10.1155/2022/3024590
- Command Filter-Based Adaptive Fuzzy Finite-Time Output Feedback Control of Nonlinear Electrohydraulic Servo System IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3218574