원시데이터 수집 시스템
선정목록으로

A Fault Diagnosis Method for Rolling Bearing Based on 1D-ViT Model

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Pinghu Xu — National Center for Materials Service Safety, University of Science and Technology Beijing, Beijing, China
  2. Lijun Zhang — Innovation Group of Marine Engineering Materials and Corrosion Control, Southern Marine Science and Engineering Guangdong Laboratory (Zhuhai), Zhuhai, China|||National Center for Materials Service Safety, University of Science and Technology Beijing, Beijing, China|||Research Institute of Macro-Safety Science, University of Science and Technology Beijing, Beijing, China
DOI
10.1109/access.2023.3268534
저널
IEEE Access
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
36
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2023.3268534
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4366378735

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Rolling bearings are the key component of large rotating machinery. When such components fail completely, the equipment will be out of service, causing significant economic loss, and even leading to safety accidents, threatening the lives of workers. However, it is difficult to detect the early failure symptom of rolling bearings during the routine maintenance. Advanced fault diagnosis tools are limited in cost and technology. Therefore, researchers focus on how to implement accuracy and convenience of fault diagnosis method. This paper proposes a fault diagnosis method for rolling bearings based on 1D-vision transformer (1D-ViT) encoder structure, which applies vision transformer (ViT) model to the fault diagnosis area. The end-to-end fault diagnosis can be realized by directly inputting the original one-dimensional acquired data without additional time-frequency domain conversion. After the encoder ablation experiment, the model structure was optimized. With the rolling bearing data set of Southeast University and Case Western Reserve University (CWRU), the number of floating point operations (FLOPs) is as low as 0.169G, the parameter number is as low as 4.13M, and average accuracy is 99.9%, which also has better noise-resistance performance. Compared with common classification models, the 1D-ViT model has achieved great comprehensive advantages in fault diagnosis accuracy, time complexity, space complexity and noise-resistance performance, which verifies the effectiveness and convenience of the proposed fault diagnosis method.

본문 39,913자

본문 펼치기
Rolling bearings are the key component of large rotating machinery. When such components fail completely, the equipment will be out of service, causing significant economic loss, and even leading to safety accidents, threatening the lives of workers. However, it is difficult to detect the early failure symptom of rolling bearings during the routine maintenance. Advanced fault diagnosis tools are limited in cost and technology. Therefore, researchers focus on how to implement accuracy and convenience of fault diagnosis method. This paper proposes a fault diagnosis method for rolling bearings based on 1D-vision transformer (1D-ViT) encoder structure, which applies vision transformer (ViT) model to the fault diagnosis area. The end-to-end fault diagnosis can be realized by directly inputting the original onedimensional acquired data without additional time-frequency domain conversion. After the encoder ablation experiment, the model structure was optimized. With the rolling bearing data set of Southeast University and Case Western Reserve University (CWRU), the number of floating point operations (FLOPs) is as low as 0.169G, the parameter number is as low as 4.13M, and average accuracy is 99.9%, which also has better noise-resistance performance. Compared with common classification models, the 1D-ViT model has achieved great comprehensive advantages in fault diagnosis accuracy, time complexity, space complexity and noise-resistance performance, which verifies the effectiveness and convenience of the proposed fault diagnosis method.INDEX TERMSFault diagnosis, rolling bearing, deep learning, self-attention mechanism, 1D-ViT. I. INTRODUCTION With the development of automation, large rotating machinery equipment such as gas turbine, air compressor has become the core equipment of power, energy, chemical industry, and other industrial fields. It is important to ensure the proper operation of such equipment, which operates all day with high speed and huge kinetic energy. As one of the core parts of rotating machinery equipment, the performance of rolling bearings directly affects the long-term reliable operation of the equipment. Therefore, it is necessary to study and apply I. INTRODUCTION The associate editor coordinating the review of this manuscript and approving it for publication was Guillermo Valencia-Palomo . advanced fault diagnosis technology to accurately diagnose the potential hidden danger of rolling bearings. I. INTRODUCTION The current frontiers of fault diagnosis techniques include intelligent optimization of sensor placement [1], fault diagnosis techniques for complex operating conditions such as redundant systems and closed-loop control systems [2], and fault diagnosis techniques for complex problems such as early fault, few-shot learning and higher precision [3]. In terms of fault diagnosis of rolling bearing, its research has experienced three stages: traditional signal analysis, machine learning and deep learning [4]. There are three stages in the research of fault diagnosis for rolling bearings, traditional signal analysis, machine learning, and deep learning [5]. I. INTRODUCTION The traditional signal analysis technology converts the collected signal into time-frequency domain, and uses wavelet transform, empirical mode decomposition, variational mode decomposition (VMD) and other methods for fault diagnosis [6], [7], [8]. Machine learning uses machine learning models, such as support vector machine (SVM), k-nearest neighbor (KNN), and naive Bayes classification, to establish the mapping relationship between samples and fault categories for feature extraction and classification [9], [10], [11]. I. INTRODUCTION With the advancement of hardware and algorithm technology, neural network, as an important branch of machine learning, breaks through shallow limitations, and deep learning. Convolutional neural network (CNN), recurrent neural network (RNN), long short-term memory (LSTM), and other deep learning models are widely used in various fields of artificial intelligence. Deep learning model has deeper network structure and stronger feature extraction ability. It can also automatically represent and learn from large amounts of data, so it has strong adaptability. The progress of deep learning drives the development of computer vision (CV) and natural language processing (NLP) fields, and these models are also widely used in fault diagnosis. Zhong et al. proposed a transfer learning model of gas turbine fault diagnosis based on CNN and SVM. Using the feature representation of CNN learning samples, SVM realized fault classification and effectively transferred to the fault diagnosis task of small-scale fault data [12]. Ali et al. proposed an endto-end fault diagnosis system for automotive transmission based on fine-tuning VMD and CNN, and used fine-tuning VMD and Hilbert transform to convert original vibration signals into time-frequency two-dimensional images, and achieved good results in compound fault diagnosis [13]. Pan et al. proposed a bearing fault diagnosis method based on CNN and LSTM, which eliminated the pre-processing process of original vibration signals, and verified its excellent performance in comparison with other bearing fault diagnosis algorithms [14]. I. INTRODUCTION In recent years, in order to solve the disadvantages of the traditional deep learning model, such as high complexity, large number of parameters, and high computation cost, researchers have introduced the attention mechanism into deep learning. The attention mechanism is derived from human vision research. The model determines the part of information worth paying attention to at the global level. The essence is to focus limited resources on key information, so as to save resources and quickly obtain the most effective information. Since then, the transformer model based on attention mechanism has been widely applied in the field of NLP [15]. Attention mechanism has also been widely used in image recognition, target detection, audio processing, model pre-training and other fields [16], [17], [18], [19]. Time series classification and time series prediction have gradually proposed a series of researches on attention mechanism [20]. In terms of time series prediction, a method was to a construct sparse attention matrix to reduce the computational complexity [21], [22]. Another method was to decompose time series and predict by autocorrelation, frequency and other attention perspectives [23], [24]. In terms of time series classification, there are also relevant studies on multi-branch encoders and pre-training research [25], [26]. As an important subdomain of the timing domain, the deep learning model which introduces the attention mechanism into the fault diagnosis task has also become a research trend. I. INTRODUCTION The application of attention mechanism in the field of fault diagnosis was mainly to integrate the attention mechanism into the traditional deep learning model in the form of modules, so as to make up for the missing capabilities of the model and enable the model to extract features comprehensively. Zhang et al. combined 1D-CNN with self-attention mechanism to enhance important fault information, and significantly improved accuracy of fault diagnosis methods in natural gas pipeline leak detection compared with traditional methods [27]. Ge et al. proposed a deep learning model based on time convolutional network and attention mechanism for real-time diagnosis of motor faults. Finally, in the experiments of multiple motor datasets, a better classification effect was obtained than 1D-CNN and Time convolutional network (TCN) [28]. Li et al. proposed a multi-channel convolution extraction function, and realized fault diagnosis by LSTM, linear layer and self-attention layer, and verified the effectiveness of the method on a popular rolling bearing dataset, and achieved excellent visualization results [29]. Zhang et al. proposed a fault diagnosis method for wind turbine gearboxes based on an improved residual network with channel attention. The original signal was first transformed by wavelet packet and then input into the fault diagnosis model, which effectively improved the ability of nonlinear feature extraction and verified that the method had good performance in improving the recognition accuracy [30]. I. INTRODUCTION Although the above research combining the attention mechanism with deep learning has achieved a lot, its application in the field of fault diagnosis still has the following problems: I. INTRODUCTION --The attention mechanism is mainly added to complement the ability of the model in global feature extraction, while the fault feature extraction mainly relies on the original deep learning model. There are relatively few explorations on the application of models based only on attention mechanism to fault diagnosis. I. INTRODUCTION --Sometimes the fault data needs to be pre-processed or converted into image form, and accuracy is over-emphasized while the time and space complexity of the model is ignored, which is not conducive to the practical application of the model algorithm. I. INTRODUCTION The contributions of this paper are listed as follows: --A fault diagnosis method is proposed by the ViT model to one-dimensional acquired data of rolling bearings. This method does not need to pre-process the one-dimensional data into signal time-frequency images. Therefore, the method simplifies the fault diagnosis and processes procedures. I. INTRODUCTION --The encoder stack number is optimized from t-distributed stochastic neighbor embedding (t-SNE) and model quantitative classification experiment, which has reference significance for parameter adjustment of the relevant structure. I. INTRODUCTION The rest of the work in this paper is as follows: Section II mainly introduces the relevant knowledge of convolutional neural network, self-attention mechanism and transformer model structure. Section III introduces the rolling bearing fault diagnosis method based on 1D-ViT model we established, including the detailed model parameters and calculation flow. Section VI presents the experimental data set and the comparative analysis of the ablation experiment on the encoder stack number of the 1D-ViT model, and the fault diagnosis experiments on the optimized 1D-ViT model. In Section VI, the noise-resistance performance of different models is proved, and there are also some open issues in the proposed methods in this section. Finally, Section V is the conclusion. II. FUNDAMENTAL THEORY Since the proposed model and experiments are related to convolutional neural network, self-attention mechanism, and transformer model. It is necessary to briefly introduce the relevant methods before proposing the fault diagnosis framework. A. CONVOLUTIONAL NEURAL NETWORK Convolutional neural network is a supervised deep learning feedforward neural network algorithm. Its general network structure is shown in Fig. 1. It consists of feature extraction and classifier. Feature extraction includes convolution layer, linear rectification layer, and pooling layer. Its basic idea is to create some filters that can extract features to perform convolution and pooling of the incoming data, and future to extract unknown features in the data. With the deepening of the network layers, the obtained features are abstracted, and finally the original data rotation, translation and scaling remain unchanged. The core convolution layer of CNN typical contains multiple convolution kernels, whose function is similar to that of filters. The convolution kernels slide on the input features, multiplying and adding the corresponding part of the input vector at each sliding position, and finally obtaining a new feature map. The depth of each convolution kernel is equal to the depth of the input vector, and the depth of the feature graph obtained by the convolution operation is equal to the number of convolution cores. The mathematical model of the convolutional layer can be expressed by (1): A. CONVOLUTIONAL NEURAL NETWORK where i is the output number of channels at layer l, j is the output number of channels at layer l-1, y l j is the output at layer l, f (·) is the activation function, y l−1 j is the output at layer l-1, M j is the input characteristic quantity, k is the convolution kernel, l is the layer l network, b l j is the bias. By using sparse connections, shared weights, CNN makes full use of all features of data and reduces the number of training parameters, which avoids model overfitting, reduces network complexity and data dimensions, which play an important role in related researches in the field of fault diagnosis [31], [32], [33]. B. SELF-ATTENTION MECHANISM Attention mechanism is a resource allocation scheme to allocate computing resources to more important tasks and solve the problem of information overload in the case of limited computing power. According to the computational domain of attention, it includes soft attention, hard attention, and regional attention. According to the information used, it includes self-attention and general attention. In this part, we will introduce the principle of self-attention mechanism in detail [34]. B. SELF-ATTENTION MECHANISM The mechanism of self-attention is shown in Fig. 2. Q, K, and V represent the query vector, the key vector, and the value vector respectively. These vectors are mapped from the original input sequence. The attention score is obtained from the dot product of the query vector and the key vector, appropriately scaled and normalized using the Softmax activation function. The attention score determines the correlation between the current object and all objects. Finally, each value vector is weighted with the corresponding attention score to obtain the final output. The self-attention mechanism can be expressed by (2). B. SELF-ATTENTION MECHANISM where Softmax(·) is the normalized exponential activation function, D k is the characteristic dimension of query, key, and value vectors. Compared with CNN and RNN, self-attention mechanism has smaller model complexity, smaller parameter number, and lower demand for computing power. It not only solves the problem that RNN cannot be computed in parallel and weakens long-distance information, but also solves the problem that CNN feature extraction is not comprehensive. Selfattention mechanism can be combined with traditional deep learning models such as CNN and LSTM to improve model performance. C. TRANSFORMER In the field of natural language processing, the mainstream RNN model can only store long-term sequential information, cannot pay attention to long-term dependency, and cannot perform parallel computation. To solve the above problems, Vaswani proposed the transformer architecture [15] in 2017, which is a model that extracts the global dependency between input and output based entirely on the attention mechanism and abandons the convolution or recursion used in traditional neural networks. It follows the competitive deep learning architecture of encoder and decoder. The encoder and decoder are stacked six times each, consisting multiple same blocks. Each encoder contains a multi-mask self-attention module and a position feedforward network, and each decoder module inserts an additional cross-attention module between the multi-mask self-attention module and the position feedforward network. C. TRANSFORMER The transformer model does not have the recursive property similar to RNN and LSTM, nor the convolutional property of CNN, and the self-attention mechanism will compute the global dependency, ignoring the position relationship of the input sequence. Therefore, additional embedding location coding is required. Initially transformer uses absolute positional Encoding (PE). For each location index t, its location coding added value is shown in (3). C. TRANSFORMER where i is the vector dimension, w i is the angular frequency, which changes depending on the dimension of the vector. Transformer uses a scaling dot product self-attention mechanism. The query vector, key vector and value vector are mapped from the input sequence. In addition, transformer does not use a single set of self-attention, but simultaneously uses multiple sets of Q, K, and V conversion matrices to map the input sequence into multiple sets of Q, K, and V vectors, and then map to the output vector dimension after the attention calculation and weighted summation respectively. The calculation process is shown in (4) and (5). C. TRANSFORMER where W i is the Q, K, and V mapping parameter matrix of group i, head i is the output sequence of the i-th head of self-attention, W O is multiple self-attention output mapping matrix. In terms of functions, transformer's multi-head attention modules can be divided into the encoder self-attention module, the decoder mask self-attention module and the cross-attention module. C. TRANSFORMER In transformer, the position feedforward module is the same full connection layer. Input characteristics are firstly carried out and then reduced to ensure the same dimensions of output and input. The calculation process is shown in (6). C. TRANSFORMER where H ′ is feed-forward layer input, W 1 , b 1 is the weight and bias of the first fully connected layer in the feed-forward layer, W 2 , b 2 is the weight and bias of the second fully connected layer in the feed-forward layer. C. TRANSFORMER To ensure that the overall performance of the model is not worse than that of the upper layer, transformer also introduces residual links. Taking the self-attention layer as an example, the input sequence and the output sequence of this layer are added directly, and the layer normalization LN is carried out to get the final output. C. TRANSFORMER Combined with the above modules, the calculation process of the transformer encoder is shown in (7) and (8). C. TRANSFORMER where SelfAttention(·) is multiple layers of self-attention, FFN(·) is the feed-forward layer, LayerNorm(·) is a layer normalization function. III. PROPOSED METHOD Studies show that CV tasks do not depend on convolutional structure, and the transformer model based on attention mechanism can be directly applied. In addition, the ViT model, which is suitable for CV tasks, is proposed in view of problems such as long sequence input and large amount of model computation [16]. This paper introduces the idea of the ViT model into the problem of fault diagnosis. Aiming at the one-dimensional characteristics of the original data collected from rotating machinery, an end-to-end ViT model, namely the 1D-ViT model, is proposed for fault diagnosis, which can realize the direct input of original data and feature self-extraction. Its structure is shown in Fig. 3. III. PROPOSED METHOD The input sequence is a small batch of multi-channel onedimensional data collection, Seg is the length of the input onedimensional data sequence, C is the number of channels, and B is the size of the small batch. According to the idea of the ViT model, the input sequence is divided into smaller patches, and Patch is taken as the input sequence element, so as to solve the problem of too long input sequence. P is the size of sliced patches, and the number of sliced patches is N = Seg / P. After that, the segmented patch input sequence is linearly mapped and then spliced with CLS Token, which represents the classification header. Finally, the classification header is only used for fault classification. The absolute position code is then added, resulting in an encoder input sequence. The calculation of this process is shown in (9). III. PROPOSED METHOD where z 0 ∈ R (N +1)×D is the encoder input sequence, x p ∈ R P×C is the patch sequence after segmentation, x class ∈ R D is the classification header vector, E ∈ R (P×C)×D is the linear mapping matrix, E pos ∈ R (N +1)×D is the position coding matrix. The sequence is then fed L-stack encoders. The structure in a single encoder is unchanged, and the final encoder gets the output of the same input dimension D. The feed-forward layer is the two fully connected layers, and the output of the selfattention layer and the feed-forward layer are residuals. After the encoder stacked, the CLS Token was extracted and the layer normalization was performed again to obtain the final output y. The detailed process is shown in (10) to (12). III. PROPOSED METHOD where l is the current sequence corresponds to the encoder number, z ′ l is the inner layer output sequence of the l-th encoder, MSA(·) is the multiheaded self-attention layer, MLP(·) is the feed-forward layer, and LN(·) is the layer normalization function. III. PROPOSED METHOD The output of the 1D-ViT model is the same as that of the ViT model, with only the CLS of the classification headers of each batch. This is because the model uses the self-attention mechanism to compute the correlation, and the classification head can learn the correlation with other elements of the sequence through the self-attention mechanism. After the training of multiple encoders behind the self-attention layer and the feed-forward layer, the characteristics of the classification head have fully learned the relationship between the various inputs. After the classification head is normalized by the layer, the final classification result is obtained by extracting features from the linear layer. Classes is the classification number. Table 1 shows the main network structure of 1D-ViT. A. DATA SET, TRAINING SET, AND TEST SET This paper uses the rolling bearing fault data set of Southeast University, and the rolling bearing fault data set of CWRU [34]. The schematic diagrams of equipment platforms are shown in Fig. 4. The rolling bearing fault data set of Southeast University is obtained in the drivetrain dynamics simulator (DDS), which contains two sub-data sets under two operating conditions. The speed system load is set to 20Hz-0V and 30Hz-2V respectively. Each condition contains five data files of four fault types and health status. The fault includes the inner ring fault, the outer ring fault, the roller fault, and the compound fault. Each data file contains 8 columns of collected signals, the column 1 is motor vibration data, the columns 2, 3, and 4 are planetary gear box data in X, Y, and Z directions, The column 5 is motor torque data, and the columns 6, 7, and 8 are parallel gear box data in X, Y and Z directions. The sample length of each column is 1,044,480. A. DATA SET, TRAINING SET, AND TEST SET In this paper, the part of the rolling bearing data set of Southeast University with the working condition of 20Hz-0V was used to intercept the first 1,000,000 samples for data normalization. Since direct input would lead to high calculational cost, the idea of sliding window sampling was adopted to divide the original data into sample fragments in a group of (8, 4000), and the window was shifted backward by 1,000 samples each time. Then, under the premise of maintaining consistent data distribution, the data set, of which 80% were taken as training sets and 20% as test sets, was randomly divided into ten-group data with different training sets and test sets.. Five experiments were conducted on the division of each group data, and the average results were taken as the classification accuracy of the data set. Through the above measures, the error of the test set is as close as possible to the generalization error to the greatest extent, so as to ensure the credibility of the experiment. A. DATA SET, TRAINING SET, AND TEST SET The rolling bearing fault data set of CWRU includes the inner ring failure, the outer ring failure, and the roller failure with different damage depths, totaling 10 bearing states. Each data file contains two columns of acquisition signals. In this paper, the part of CWRU rolling bearing data set with working condition of 12kHz was selected and the first 120,000 samples were intercepted for data normalization. The subsequent processing is completely consistent with the rolling bearing data set of Southeast University. The difference is that the sample segment of this data set is (2,4000). And there are only five-group data separately. B. EXPERIMENTAL SCHEME Since the 1D-ViT model is stacked with the same encoder structure, this will greatly affect the computational complexity and spatial complexity of the model. Therefore, we first perform ablation experiment on this parameter. We choose the first group data of Southeast University data set to perform experiments to reduce the dimension of fault diagnosis performance of models with different encoder stack numbers, and then visualize them by using t-SNE. In order to quantify the classification results, we use all data of rolling bearings of Southeast University to carry out more detailed fault diagnosis experiments on encoder stack numbers. After analyzing the results, the optimal value of this parameter is found by these two angles. B. EXPERIMENTAL SCHEME T-SNE is a dimensionality reduction technique, which represents a high-dimensional data set in a low-dimensional space and preserves the information it carries in a high-dimensional space, thus realizing high-dimensional data visualization. t-SNE uses long-tail T-distribution in low-dimensional space to avoid crowding and also solves the problem that SNE is difficult to optimize [35]. B. EXPERIMENTAL SCHEME After determining the optimal encoder stack number, the two-dimensional convolution layer, pooling layer and normalization layer in AlexNet, GoogleNet, and ResNet models are adjusted to one-dimensional convolution layer, pooling layer and normalization layer, and the number and size of input channels are adjusted. The 1D-AlexNet, 1D-GoogleNet, and 1D-ResNet models are obtained by minimal modification. The 1D-AlexNet, 1D-GoogleNet, 1D-ResNet and the 1D-ViT model without the ablation experiment were used as the comparison model of the experiment, and the 1D-ViT model after the ablation experiment was used as the main model of the experiment, which named 1D-ViT-1Depth. In these experiments, we calculated average accuracy of five models on the two data sets with different groups of training sets and test sets, and compared the time complexity and space complexity of five models by calculating the number of floating point operations (FLOPs) and the number of parameters. Finally, we proved the noise-resistance performance of five models. C. EXPERIMENTAL SETUP The experimental equipment is a computer with the Win-dows10 system, the Intel CORE i7-7700 processor, the NVIDIA GeForce GTX1060 graphics card, and the 16GB memory. The training epochs of the experiment is 30, and the batch size is 32, which means that each batch contained 32 sample segments with the size of (8, 4000). The loss function of the experiment is the cross-entropy function, which commonly used in classification tasks. The optimizer is the Adam optimizer with good performance. In the first few epochs of training, the initial learning rate is 0.0001, which issued to learn the model quickly. Then the cosine annealing learning rate adjustment method without restart is used to gradually reduce the learning rate, to avoid problems such as jumping out of the optimal solution and wandering around the optimal solution due to the large learning rate in the later period. The evolution of the learning rate in 30 epochs of training is shown in Fig. 5. D. EXPERIMENT #1: ABLATION EXPERIMENT OF 1D-VIT ON ENCODER STACK NUMBER The ablation results of the encoder stack number in the 1D-ViT model are shown in Fig. 6. The 1D-ViT model is stacked with 8 encoders by default. The experimental result is a t-SNE dimensional reduction visualization of the output tensor when stacking 1, 3, 5, and 8 encoders before entering the final classifier. It can be seen that different classes are clearly distinguished, but the stacking of different encoders has little influence on the classification effect. Therefore, considering of the time complexity and space complexity of the model, the 1D-ViT model with single encoder is better. It should be noted that results of t-SNE are not unique, and different results are obtained for the same data. So we set the random seed to a fixed value, which ensure that the dimensionality reduction of data is consistent. The quantified classification results are shown in Table 2. We can find that average accuracy of the test set is above 99% with different encoder stack numbers, whose fluctuation is small. We ensure that encoder stack number has no effect on the fault diagnosis accuracy. Consider the above two perspectives, the 1D-ViT model with single encoder is chosen as the main experimental method in this paper, called the 1D-ViT-1Depth. Fig. 7 and Fig. 8 show average accuracy of five models in the rolling bearing fault data set of Southeast University, which was divided into ten-group data, which have different training set and test set. The comprehensive average accuracy and standard deviation is shown in Table 3. The data set was normalized before partitioning, which reduces the difficulty of model training. The sliding window reduces feature loss caused by fragment clipping as much as possible. Due to the completeness of the data set, accuracy of the training set of all models reaches more than 97.5%. Most of the models have good generalization ability. Due to the simple convolutional layer stacking of the 1D-AlexNet model, accuracy of the training set is relatively poor, but it still reaches 98.1%. Facing relatively complete problems, the model has strong generalization ability after training, and accuracy of test set can reach 99.97%. The 1D-GoogleNet uses a multi-layer inception module stack and parallel multiple convolution kernels of different sizes within the module to extract features. The 1D-ResNet adds residual module on the convolution model to avoid the degradation problem of the deep model. The average training set accuracy of these two types of models is relatively high, reaching 98.66% and 99.51%. However, overfitting problems of different degrees occur in both of them, and the average test set accuracy is only 93.72% and 97.72% with large standard deviation. This means that the degradation of experimental models occurs many times during the training process. The 1D-ViT model adds a self-attention mechanism to the encoder. Compared with other convolutional models that focus on local features, it pays more attention to the overall features. Average accuracy of the training set is 98.85%, and average accuracy of the test set is 99.87%. The 1D-ViT-1Depth model selected by ablation experiment removes redundant encoder stack. Its accuracy of training set reaches 98.89%, and accuracy of the test set reaches 99.9%, which shows great generalization ability. It can be seen that the 1D-ViT-1Depth model did not reach the highest level among all models in this fault diagnosis experiment. E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS As shown in Fig. 7, the best model is 1D-ResNet, but accuracy of each model is high, and the gap is small. As shown in Fig. 8, 1D-ResNet and 1D-GoogleNet show poor generalization ability, while the performance of other models shows no significant difference. Fig. 9 and Fig. 10 show average accuracy of five models in the rolling bearing fault data set of CWRU, which was divided into five-group data, which have different training set and test set. The comprehensive average accuracy and standard deviation are shown in Table 4. E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS The sample size of this data set is small, and the number of batches is smaller under the same processing of Southeast University. Under the same training cycle, accuracy of five models decreased to varying degrees. Accuracy of 1D-AlexNet dropped the most, to about 79%. Accuracy of other models is above 94%. In the test set, all five models showed good generalization ability, and accuracy of the test set was above 98%, and accuracy of 1D-ResNet even reached 100%. However, there is always some noise interference in the actual working condition. The noise-resistance performance of the above five models also needs to be further proved. E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS In addition, we compare model performance with other methods. The results are shown in Table 5. We compare our results to the following: local feature-based gated recurrent unit (LFGRU) networks for machine health monitoring, and several other methods including stacked autoencoder based deep neural network (SAE-DNN), gated recurrent units network (GRU), and bidirectional gated recurrent units network (BiGRU) [36]. Reference [31] self-organizing map (SOM) based on time-domain and frequency-domain features. Reference [38] uses ensemble empirical mode decomposition (EMD) and optimized SVM. Our comparative analysis has shown that the proposed approach achieves state-of-the-art results across each data set. It should be noted that the data processing and experimental parameters used by the above methods are different from we proposed in this paper. In order to prove the noise-resistance performance of five models. After the above two data sets were standardized and the training set and test set were divided, Gaussian noise with standard normal distribution is added to all the training sets. E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS We use the new training set to train the model, and compare the noise-resistance performance of five models through accuracy of the test set. The comprehensive average accuracy and standard deviation are shown in Table 6. It can be found that, in the noise-resistance experiment of CWRU data set, the performance of 1D-ViT is better, which reaches more than 95%. Accuracy of 1D-VIT-1Depth test set is about 81%. The performance of the traditional one-dimensional convolution model is very poor, which means that their performance is not good. In order to prevent underfitting of some models, we also verified the noise-resistance performance of 1D-AlexNet and 1D-ViT-1Depth with 200 epochs of training (This part is not presented in the paper). The results showed that 1D-AlexNet did not improve significantly, while accuracy of the test set of 1D-ViT-1Depth increased to about 88%. We think the reason causing the gap between 1D-ViT-1Depth and 1D-ViT may be that the sample size of CWRU data set is small, or the same experimental setting results inadequate training of 1D-ViT-1Depth. E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS In the data set of Southeast University, due to the larger sample size, the training under fixed epochs is more adequate, which leads to the more significant comparison of results. It can be found that accuracy of the test sets of 1D-ViT-1Depth and 1D-ViT are both above 98%. There is not obvious difference between them, which indicates that the encoder stacks number has little influence on the model performance. The traditional one-dimensional convolution model has obvious overfitting phenomenon, which means poor noise-resistance performance. E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS From what has been analyzed above, 1D-AlexNet, 1D-ResNet, and 1D-GoogleNet have poor noise-resistance performance and cannot be applied in actual working conditions. 1D-ViT and 1D-ViT-1Depth both have good noiseresistance performance, and 1D-ViT performs better in certain situations. G. DISCUSSION OF MODEL COMPUTATION In order to further analyze the computational load of the proposed model, the FLOPs, the parameter number and the storage occupancy of the model in a single experiment are shown in Table 7. The number of FLOPs represents floating-point operations, namely the length of network execution time, which can measure the time complexity of the model. The parameter number indicates the video memory usage at run time. The space occupied by the model storage can be used to measure the space complexity of the model. These two indexes can also reflect the deployment cost and difficulty of the model and have important reference significance in real industrial scenarios. The calculation of these two parameters is not affected by the size of the input batch, so the input size can be set to (8,4000) in the calculation. The previous indicators are measured in storage capacity units, such as GB and MB. From TABLE 7, the FLOPs of the 1D-ViT-1Depth is 0.169G, the parameter number is 4.15M, and the storage occupancy of the complete model in this experiment is 47.8M. It can be seen that the computational complexity and spatial complexity of the 1D-ViT-1Depth have obvious advantages compared with the 1D-ResNet and the 1D-ViT models. The computational complexity of the 1D-ViT-1Depth is slightly lower than that of the 1D-AlexNet, but the spatial complexity is slightly higher than that of the 1D-AlexNet. Both of them are highly competitive. G. DISCUSSION OF MODEL COMPUTATION Although the time complexity of the 1D-GoogleNet is low, it is still similar to the 1D-ViT-1Depth. And the space complexity and model storage occupy too much, which means poor overall performance. It can be seen that the 1D-ViT-1Depth and 1D-AlexNet has the relatively small FLOPs, the parameter number, and the storage occupancy of the model, that is, the time complexity and space complexity of the model are low, which has great advantages in actual application deployment. H. OPEN ISSUES There are some open issues in the proposed approach that need to be addressed in the following research. H. OPEN ISSUES --In this paper, ablation experiments were conducted for only one parameter in the 1D-ViT model, which had significant influence on the FLOPs and the parameter number. There are potentials for further research. H. OPEN ISSUES --We proved that the proposed method has advantages over traditional conventional methods, 1D-ViT without ablation experiment and other work. It is feasible to apply 1D-ViT-Depth method to fault diagnosis. However, the comparison with other work is only in the results. The data processing and experimental parameters used by these methods are different. we will conduct other experiments in the same experimental. H. OPEN ISSUES --In the experiment, we found that the noise-resistance performance of the model based on the attention structure is better than the traditional convolution model, and the detailed reasons need to be further explored. V. CONCLUSION In this paper, we conduct ablation experiment on encoder stack number of the proposed 1D-ViT model. We determine the optimal value of the parameter and get the optimal model corresponding to the encoder stack number, called 1D-ViT-1Depth. After that, the fault diagnosis experiment was carried out with the data sets of Southeast University and CWRU to evaluate the comprehensive performance of five models, including 1D-Vit-1Depth, 1D-ViT, 1D-GoogleNet, 1D-AlexNet, and 1D-ResNet by fault diagnosis accuracy, FLOPs, and the parameter number. The proposed 1D-ViT-1Depth fault diagnosis method realizes the direct input of the original acquired signal, eliminates the pre-signal processing, and realizes the end-to-end fault diagnosis with feature selfextraction. Moreover, this method has achieved good results in accuracy of fault diagnosis and has great advantages in time complexity and space complexity, which also is proved to have good noise-resistance performance. According to the above analysis results, 1D-ViT-1Depth has better comprehensive performance of fault diagnosis than the other four models. And it can also be easily applied to industrial tasks.

섹션 본문 55문단 · 38,278자

(제목 없음)

1Rolling bearings are the key component of large rotating machinery. When such components fail completely, the equipment will be out of service, causing significant economic loss, and even leading to safety accidents, threatening the lives of workers. However, it is difficult to detect the early failure symptom of rolling bearings during the routine maintenance. Advanced fault diagnosis tools are limited in cost and technology. Therefore, researchers focus on how to implement accuracy and convenience of fault diagnosis method. This paper proposes a fault diagnosis method for rolling bearings based on 1D-vision transformer (1D-ViT) encoder structure, which applies vision transformer (ViT) model to the fault diagnosis area. The end-to-end fault diagnosis can be realized by directly inputting the original onedimensional acquired data without additional time-frequency domain conversion. After the encoder ablation experiment, the model structure was optimized. With the rolling bearing data set of Southeast University and Case Western Reserve University (CWRU), the number of floating point operations (FLOPs) is as low as 0.169G, the parameter number is as low as 4.13M, and average accuracy is 99.9%, which also has better noise-resistance performance. Compared with common classification models, the 1D-ViT model has achieved great comprehensive advantages in fault diagnosis accuracy, time complexity, space complexity and noise-resistance performance, which verifies the effectiveness and convenience of the proposed fault diagnosis method.INDEX TERMSFault diagnosis, rolling bearing, deep learning, self-attention mechanism, 1D-ViT.

I. INTRODUCTION

2With the development of automation, large rotating machinery equipment such as gas turbine, air compressor has become the core equipment of power, energy, chemical industry, and other industrial fields. It is important to ensure the proper operation of such equipment, which operates all day with high speed and huge kinetic energy. As one of the core parts of rotating machinery equipment, the performance of rolling bearings directly affects the long-term reliable operation of the equipment. Therefore, it is necessary to study and apply

3The associate editor coordinating the review of this manuscript and approving it for publication was Guillermo Valencia-Palomo . advanced fault diagnosis technology to accurately diagnose the potential hidden danger of rolling bearings.

4The current frontiers of fault diagnosis techniques include intelligent optimization of sensor placement [1], fault diagnosis techniques for complex operating conditions such as redundant systems and closed-loop control systems [2], and fault diagnosis techniques for complex problems such as early fault, few-shot learning and higher precision [3]. In terms of fault diagnosis of rolling bearing, its research has experienced three stages: traditional signal analysis, machine learning and deep learning [4]. There are three stages in the research of fault diagnosis for rolling bearings, traditional signal analysis, machine learning, and deep learning [5].

5The traditional signal analysis technology converts the collected signal into time-frequency domain, and uses wavelet transform, empirical mode decomposition, variational mode decomposition (VMD) and other methods for fault diagnosis [6], [7], [8]. Machine learning uses machine learning models, such as support vector machine (SVM), k-nearest neighbor (KNN), and naive Bayes classification, to establish the mapping relationship between samples and fault categories for feature extraction and classification [9], [10], [11].

6With the advancement of hardware and algorithm technology, neural network, as an important branch of machine learning, breaks through shallow limitations, and deep learning. Convolutional neural network (CNN), recurrent neural network (RNN), long short-term memory (LSTM), and other deep learning models are widely used in various fields of artificial intelligence. Deep learning model has deeper network structure and stronger feature extraction ability. It can also automatically represent and learn from large amounts of data, so it has strong adaptability. The progress of deep learning drives the development of computer vision (CV) and natural language processing (NLP) fields, and these models are also widely used in fault diagnosis. Zhong et al. proposed a transfer learning model of gas turbine fault diagnosis based on CNN and SVM. Using the feature representation of CNN learning samples, SVM realized fault classification and effectively transferred to the fault diagnosis task of small-scale fault data [12]. Ali et al. proposed an endto-end fault diagnosis system for automotive transmission based on fine-tuning VMD and CNN, and used fine-tuning VMD and Hilbert transform to convert original vibration signals into time-frequency two-dimensional images, and achieved good results in compound fault diagnosis [13]. Pan et al. proposed a bearing fault diagnosis method based on CNN and LSTM, which eliminated the pre-processing process of original vibration signals, and verified its excellent performance in comparison with other bearing fault diagnosis algorithms [14].

7In recent years, in order to solve the disadvantages of the traditional deep learning model, such as high complexity, large number of parameters, and high computation cost, researchers have introduced the attention mechanism into deep learning. The attention mechanism is derived from human vision research. The model determines the part of information worth paying attention to at the global level. The essence is to focus limited resources on key information, so as to save resources and quickly obtain the most effective information. Since then, the transformer model based on attention mechanism has been widely applied in the field of NLP [15]. Attention mechanism has also been widely used in image recognition, target detection, audio processing, model pre-training and other fields [16], [17], [18], [19]. Time series classification and time series prediction have gradually proposed a series of researches on attention mechanism [20]. In terms of time series prediction, a method was to a construct sparse attention matrix to reduce the computational complexity [21], [22]. Another method was to decompose time series and predict by autocorrelation, frequency and other attention perspectives [23], [24]. In terms of time series classification, there are also relevant studies on multi-branch encoders and pre-training research [25], [26]. As an important subdomain of the timing domain, the deep learning model which introduces the attention mechanism into the fault diagnosis task has also become a research trend.

8The application of attention mechanism in the field of fault diagnosis was mainly to integrate the attention mechanism into the traditional deep learning model in the form of modules, so as to make up for the missing capabilities of the model and enable the model to extract features comprehensively. Zhang et al. combined 1D-CNN with self-attention mechanism to enhance important fault information, and significantly improved accuracy of fault diagnosis methods in natural gas pipeline leak detection compared with traditional methods [27]. Ge et al. proposed a deep learning model based on time convolutional network and attention mechanism for real-time diagnosis of motor faults. Finally, in the experiments of multiple motor datasets, a better classification effect was obtained than 1D-CNN and Time convolutional network (TCN) [28]. Li et al. proposed a multi-channel convolution extraction function, and realized fault diagnosis by LSTM, linear layer and self-attention layer, and verified the effectiveness of the method on a popular rolling bearing dataset, and achieved excellent visualization results [29]. Zhang et al. proposed a fault diagnosis method for wind turbine gearboxes based on an improved residual network with channel attention. The original signal was first transformed by wavelet packet and then input into the fault diagnosis model, which effectively improved the ability of nonlinear feature extraction and verified that the method had good performance in improving the recognition accuracy [30].

9Although the above research combining the attention mechanism with deep learning has achieved a lot, its application in the field of fault diagnosis still has the following problems:

10--The attention mechanism is mainly added to complement the ability of the model in global feature extraction, while the fault feature extraction mainly relies on the original deep learning model. There are relatively few explorations on the application of models based only on attention mechanism to fault diagnosis.

11--Sometimes the fault data needs to be pre-processed or converted into image form, and accuracy is over-emphasized while the time and space complexity of the model is ignored, which is not conducive to the practical application of the model algorithm.

12The contributions of this paper are listed as follows: --A fault diagnosis method is proposed by the ViT model to one-dimensional acquired data of rolling bearings. This method does not need to pre-process the one-dimensional data into signal time-frequency images. Therefore, the method simplifies the fault diagnosis and processes procedures.

13--The encoder stack number is optimized from t-distributed stochastic neighbor embedding (t-SNE) and model quantitative classification experiment, which has reference significance for parameter adjustment of the relevant structure.

14The rest of the work in this paper is as follows: Section II mainly introduces the relevant knowledge of convolutional neural network, self-attention mechanism and transformer model structure. Section III introduces the rolling bearing fault diagnosis method based on 1D-ViT model we established, including the detailed model parameters and calculation flow. Section VI presents the experimental data set and the comparative analysis of the ablation experiment on the encoder stack number of the 1D-ViT model, and the fault diagnosis experiments on the optimized 1D-ViT model. In Section VI, the noise-resistance performance of different models is proved, and there are also some open issues in the proposed methods in this section. Finally, Section V is the conclusion.

II. FUNDAMENTAL THEORY

15Since the proposed model and experiments are related to convolutional neural network, self-attention mechanism, and transformer model. It is necessary to briefly introduce the relevant methods before proposing the fault diagnosis framework.

A. CONVOLUTIONAL NEURAL NETWORK

16Convolutional neural network is a supervised deep learning feedforward neural network algorithm. Its general network structure is shown in Fig. 1. It consists of feature extraction and classifier. Feature extraction includes convolution layer, linear rectification layer, and pooling layer. Its basic idea is to create some filters that can extract features to perform convolution and pooling of the incoming data, and future to extract unknown features in the data. With the deepening of the network layers, the obtained features are abstracted, and finally the original data rotation, translation and scaling remain unchanged. The core convolution layer of CNN typical contains multiple convolution kernels, whose function is similar to that of filters. The convolution kernels slide on the input features, multiplying and adding the corresponding part of the input vector at each sliding position, and finally obtaining a new feature map. The depth of each convolution kernel is equal to the depth of the input vector, and the depth of the feature graph obtained by the convolution operation is equal to the number of convolution cores. The mathematical model of the convolutional layer can be expressed by (1):

17where i is the output number of channels at layer l, j is the output number of channels at layer l-1, y l j is the output at layer l, f (·) is the activation function, y l−1 j is the output at layer l-1, M j is the input characteristic quantity, k is the convolution kernel, l is the layer l network, b l j is the bias. By using sparse connections, shared weights, CNN makes full use of all features of data and reduces the number of training parameters, which avoids model overfitting, reduces network complexity and data dimensions, which play an important role in related researches in the field of fault diagnosis [31], [32], [33].

B. SELF-ATTENTION MECHANISM

18Attention mechanism is a resource allocation scheme to allocate computing resources to more important tasks and solve the problem of information overload in the case of limited computing power. According to the computational domain of attention, it includes soft attention, hard attention, and regional attention. According to the information used, it includes self-attention and general attention. In this part, we will introduce the principle of self-attention mechanism in detail [34].

19The mechanism of self-attention is shown in Fig. 2. Q, K, and V represent the query vector, the key vector, and the value vector respectively. These vectors are mapped from the original input sequence. The attention score is obtained from the dot product of the query vector and the key vector, appropriately scaled and normalized using the Softmax activation function. The attention score determines the correlation between the current object and all objects. Finally, each value vector is weighted with the corresponding attention score to obtain the final output. The self-attention mechanism can be expressed by (2).

20where Softmax(·) is the normalized exponential activation function, D k is the characteristic dimension of query, key, and value vectors. Compared with CNN and RNN, self-attention mechanism has smaller model complexity, smaller parameter number, and lower demand for computing power. It not only solves the problem that RNN cannot be computed in parallel and weakens long-distance information, but also solves the problem that CNN feature extraction is not comprehensive. Selfattention mechanism can be combined with traditional deep learning models such as CNN and LSTM to improve model performance.

C. TRANSFORMER

21In the field of natural language processing, the mainstream RNN model can only store long-term sequential information, cannot pay attention to long-term dependency, and cannot perform parallel computation. To solve the above problems, Vaswani proposed the transformer architecture [15] in 2017, which is a model that extracts the global dependency between input and output based entirely on the attention mechanism and abandons the convolution or recursion used in traditional neural networks. It follows the competitive deep learning architecture of encoder and decoder. The encoder and decoder are stacked six times each, consisting multiple same blocks. Each encoder contains a multi-mask self-attention module and a position feedforward network, and each decoder module inserts an additional cross-attention module between the multi-mask self-attention module and the position feedforward network.

22The transformer model does not have the recursive property similar to RNN and LSTM, nor the convolutional property of CNN, and the self-attention mechanism will compute the global dependency, ignoring the position relationship of the input sequence. Therefore, additional embedding location coding is required. Initially transformer uses absolute positional Encoding (PE). For each location index t, its location coding added value is shown in (3).

23where i is the vector dimension, w i is the angular frequency, which changes depending on the dimension of the vector. Transformer uses a scaling dot product self-attention mechanism. The query vector, key vector and value vector are mapped from the input sequence. In addition, transformer does not use a single set of self-attention, but simultaneously uses multiple sets of Q, K, and V conversion matrices to map the input sequence into multiple sets of Q, K, and V vectors, and then map to the output vector dimension after the attention calculation and weighted summation respectively. The calculation process is shown in (4) and (5).

24where W i is the Q, K, and V mapping parameter matrix of group i, head i is the output sequence of the i-th head of self-attention, W O is multiple self-attention output mapping matrix. In terms of functions, transformer's multi-head attention modules can be divided into the encoder self-attention module, the decoder mask self-attention module and the cross-attention module.

25In transformer, the position feedforward module is the same full connection layer. Input characteristics are firstly carried out and then reduced to ensure the same dimensions of output and input. The calculation process is shown in (6).

26where H ′ is feed-forward layer input, W 1 , b 1 is the weight and bias of the first fully connected layer in the feed-forward layer, W 2 , b 2 is the weight and bias of the second fully connected layer in the feed-forward layer.

27To ensure that the overall performance of the model is not worse than that of the upper layer, transformer also introduces residual links. Taking the self-attention layer as an example, the input sequence and the output sequence of this layer are added directly, and the layer normalization LN is carried out to get the final output.

28Combined with the above modules, the calculation process of the transformer encoder is shown in (7) and (8).

29where SelfAttention(·) is multiple layers of self-attention, FFN(·) is the feed-forward layer, LayerNorm(·) is a layer normalization function.

III. PROPOSED METHOD

30Studies show that CV tasks do not depend on convolutional structure, and the transformer model based on attention mechanism can be directly applied. In addition, the ViT model, which is suitable for CV tasks, is proposed in view of problems such as long sequence input and large amount of model computation [16]. This paper introduces the idea of the ViT model into the problem of fault diagnosis. Aiming at the one-dimensional characteristics of the original data collected from rotating machinery, an end-to-end ViT model, namely the 1D-ViT model, is proposed for fault diagnosis, which can realize the direct input of original data and feature self-extraction. Its structure is shown in Fig. 3.

31The input sequence is a small batch of multi-channel onedimensional data collection, Seg is the length of the input onedimensional data sequence, C is the number of channels, and B is the size of the small batch. According to the idea of the ViT model, the input sequence is divided into smaller patches, and Patch is taken as the input sequence element, so as to solve the problem of too long input sequence. P is the size of sliced patches, and the number of sliced patches is N = Seg / P. After that, the segmented patch input sequence is linearly mapped and then spliced with CLS Token, which represents the classification header. Finally, the classification header is only used for fault classification. The absolute position code is then added, resulting in an encoder input sequence. The calculation of this process is shown in (9).

32where z 0 ∈ R (N +1)×D is the encoder input sequence, x p ∈ R P×C is the patch sequence after segmentation, x class ∈ R D is the classification header vector, E ∈ R (P×C)×D is the linear mapping matrix, E pos ∈ R (N +1)×D is the position coding matrix. The sequence is then fed L-stack encoders. The structure in a single encoder is unchanged, and the final encoder gets the output of the same input dimension D. The feed-forward layer is the two fully connected layers, and the output of the selfattention layer and the feed-forward layer are residuals. After the encoder stacked, the CLS Token was extracted and the layer normalization was performed again to obtain the final output y. The detailed process is shown in (10) to (12).

33where l is the current sequence corresponds to the encoder number, z ′ l is the inner layer output sequence of the l-th encoder, MSA(·) is the multiheaded self-attention layer, MLP(·) is the feed-forward layer, and LN(·) is the layer normalization function.

34The output of the 1D-ViT model is the same as that of the ViT model, with only the CLS of the classification headers of each batch. This is because the model uses the self-attention mechanism to compute the correlation, and the classification head can learn the correlation with other elements of the sequence through the self-attention mechanism. After the training of multiple encoders behind the self-attention layer and the feed-forward layer, the characteristics of the classification head have fully learned the relationship between the various inputs. After the classification head is normalized by the layer, the final classification result is obtained by extracting features from the linear layer. Classes is the classification number. Table 1 shows the main network structure of 1D-ViT.

A. DATA SET, TRAINING SET, AND TEST SET

35This paper uses the rolling bearing fault data set of Southeast University, and the rolling bearing fault data set of CWRU [34]. The schematic diagrams of equipment platforms are shown in Fig. 4. The rolling bearing fault data set of Southeast University is obtained in the drivetrain dynamics simulator (DDS), which contains two sub-data sets under two operating conditions. The speed system load is set to 20Hz-0V and 30Hz-2V respectively. Each condition contains five data files of four fault types and health status. The fault includes the inner ring fault, the outer ring fault, the roller fault, and the compound fault. Each data file contains 8 columns of collected signals, the column 1 is motor vibration data, the columns 2, 3, and 4 are planetary gear box data in X, Y, and Z directions, The column 5 is motor torque data, and the columns 6, 7, and 8 are parallel gear box data in X, Y and Z directions. The sample length of each column is 1,044,480.

36In this paper, the part of the rolling bearing data set of Southeast University with the working condition of 20Hz-0V was used to intercept the first 1,000,000 samples for data normalization. Since direct input would lead to high calculational cost, the idea of sliding window sampling was adopted to divide the original data into sample fragments in a group of (8, 4000), and the window was shifted backward by 1,000 samples each time. Then, under the premise of maintaining consistent data distribution, the data set, of which 80% were taken as training sets and 20% as test sets, was randomly divided into ten-group data with different training sets and test sets.. Five experiments were conducted on the division of each group data, and the average results were taken as the classification accuracy of the data set. Through the above measures, the error of the test set is as close as possible to the generalization error to the greatest extent, so as to ensure the credibility of the experiment.

37The rolling bearing fault data set of CWRU includes the inner ring failure, the outer ring failure, and the roller failure with different damage depths, totaling 10 bearing states. Each data file contains two columns of acquisition signals. In this paper, the part of CWRU rolling bearing data set with working condition of 12kHz was selected and the first 120,000 samples were intercepted for data normalization. The subsequent processing is completely consistent with the rolling bearing data set of Southeast University. The difference is that the sample segment of this data set is (2,4000). And there are only five-group data separately.

B. EXPERIMENTAL SCHEME

38Since the 1D-ViT model is stacked with the same encoder structure, this will greatly affect the computational complexity and spatial complexity of the model. Therefore, we first perform ablation experiment on this parameter. We choose the first group data of Southeast University data set to perform experiments to reduce the dimension of fault diagnosis performance of models with different encoder stack numbers, and then visualize them by using t-SNE. In order to quantify the classification results, we use all data of rolling bearings of Southeast University to carry out more detailed fault diagnosis experiments on encoder stack numbers. After analyzing the results, the optimal value of this parameter is found by these two angles.

39T-SNE is a dimensionality reduction technique, which represents a high-dimensional data set in a low-dimensional space and preserves the information it carries in a high-dimensional space, thus realizing high-dimensional data visualization. t-SNE uses long-tail T-distribution in low-dimensional space to avoid crowding and also solves the problem that SNE is difficult to optimize [35].

40After determining the optimal encoder stack number, the two-dimensional convolution layer, pooling layer and normalization layer in AlexNet, GoogleNet, and ResNet models are adjusted to one-dimensional convolution layer, pooling layer and normalization layer, and the number and size of input channels are adjusted. The 1D-AlexNet, 1D-GoogleNet, and 1D-ResNet models are obtained by minimal modification. The 1D-AlexNet, 1D-GoogleNet, 1D-ResNet and the 1D-ViT model without the ablation experiment were used as the comparison model of the experiment, and the 1D-ViT model after the ablation experiment was used as the main model of the experiment, which named 1D-ViT-1Depth. In these experiments, we calculated average accuracy of five models on the two data sets with different groups of training sets and test sets, and compared the time complexity and space complexity of five models by calculating the number of floating point operations (FLOPs) and the number of parameters. Finally, we proved the noise-resistance performance of five models.

C. EXPERIMENTAL SETUP

41The experimental equipment is a computer with the Win-dows10 system, the Intel CORE i7-7700 processor, the NVIDIA GeForce GTX1060 graphics card, and the 16GB memory. The training epochs of the experiment is 30, and the batch size is 32, which means that each batch contained 32 sample segments with the size of (8, 4000). The loss function of the experiment is the cross-entropy function, which commonly used in classification tasks. The optimizer is the Adam optimizer with good performance. In the first few epochs of training, the initial learning rate is 0.0001, which issued to learn the model quickly. Then the cosine annealing learning rate adjustment method without restart is used to gradually reduce the learning rate, to avoid problems such as jumping out of the optimal solution and wandering around the optimal solution due to the large learning rate in the later period. The evolution of the learning rate in 30 epochs of training is shown in Fig. 5.

D. EXPERIMENT #1: ABLATION EXPERIMENT OF 1D-VIT ON ENCODER STACK NUMBER

42The ablation results of the encoder stack number in the 1D-ViT model are shown in Fig. 6. The 1D-ViT model is stacked with 8 encoders by default. The experimental result is a t-SNE dimensional reduction visualization of the output tensor when stacking 1, 3, 5, and 8 encoders before entering the final classifier. It can be seen that different classes are clearly distinguished, but the stacking of different encoders has little influence on the classification effect. Therefore, considering of the time complexity and space complexity of the model, the 1D-ViT model with single encoder is better. It should be noted that results of t-SNE are not unique, and different results are obtained for the same data. So we set the random seed to a fixed value, which ensure that the dimensionality reduction of data is consistent. The quantified classification results are shown in Table 2. We can find that average accuracy of the test set is above 99% with different encoder stack numbers, whose fluctuation is small. We ensure that encoder stack number has no effect on the fault diagnosis accuracy. Consider the above two perspectives, the 1D-ViT model with single encoder is chosen as the main experimental method in this paper, called the 1D-ViT-1Depth. Fig. 7 and Fig. 8 show average accuracy of five models in the rolling bearing fault data set of Southeast University, which was divided into ten-group data, which have different training set and test set. The comprehensive average accuracy and standard deviation is shown in Table 3. The data set was normalized before partitioning, which reduces the difficulty of model training. The sliding window reduces feature loss caused by fragment clipping as much as possible. Due to the completeness of the data set, accuracy of the training set of all models reaches more than 97.5%. Most of the models have good generalization ability. Due to the simple convolutional layer stacking of the 1D-AlexNet model, accuracy of the training set is relatively poor, but it still reaches 98.1%. Facing relatively complete problems, the model has strong generalization ability after training, and accuracy of test set can reach 99.97%. The 1D-GoogleNet uses a multi-layer inception module stack and parallel multiple convolution kernels of different sizes within the module to extract features. The 1D-ResNet adds residual module on the convolution model to avoid the degradation problem of the deep model. The average training set accuracy of these two types of models is relatively high, reaching 98.66% and 99.51%. However, overfitting problems of different degrees occur in both of them, and the average test set accuracy is only 93.72% and 97.72% with large standard deviation. This means that the degradation of experimental models occurs many times during the training process. The 1D-ViT model adds a self-attention mechanism to the encoder. Compared with other convolutional models that focus on local features, it pays more attention to the overall features. Average accuracy of the training set is 98.85%, and average accuracy of the test set is 99.87%. The 1D-ViT-1Depth model selected by ablation experiment removes redundant encoder stack. Its accuracy of training set reaches 98.89%, and accuracy of the test set reaches 99.9%, which shows great generalization ability. It can be seen that the 1D-ViT-1Depth model did not reach the highest level among all models in this fault diagnosis experiment.

E. EXPERIMENT #2: COMPREHENSIVE EXPERIMENT ON FAULT DIAGNOSIS PERFORMANCE OF FIVE MODELS

43As shown in Fig. 7, the best model is 1D-ResNet, but accuracy of each model is high, and the gap is small. As shown in Fig. 8, 1D-ResNet and 1D-GoogleNet show poor generalization ability, while the performance of other models shows no significant difference. Fig. 9 and Fig. 10 show average accuracy of five models in the rolling bearing fault data set of CWRU, which was divided into five-group data, which have different training set and test set. The comprehensive average accuracy and standard deviation are shown in Table 4.

44The sample size of this data set is small, and the number of batches is smaller under the same processing of Southeast University. Under the same training cycle, accuracy of five models decreased to varying degrees. Accuracy of 1D-AlexNet dropped the most, to about 79%. Accuracy of other models is above 94%. In the test set, all five models showed good generalization ability, and accuracy of the test set was above 98%, and accuracy of 1D-ResNet even reached 100%. However, there is always some noise interference in the actual working condition. The noise-resistance performance of the above five models also needs to be further proved.

45In addition, we compare model performance with other methods. The results are shown in Table 5. We compare our results to the following: local feature-based gated recurrent unit (LFGRU) networks for machine health monitoring, and several other methods including stacked autoencoder based deep neural network (SAE-DNN), gated recurrent units network (GRU), and bidirectional gated recurrent units network (BiGRU) [36]. Reference [31] self-organizing map (SOM) based on time-domain and frequency-domain features. Reference [38] uses ensemble empirical mode decomposition (EMD) and optimized SVM. Our comparative analysis has shown that the proposed approach achieves state-of-the-art results across each data set. It should be noted that the data processing and experimental parameters used by the above methods are different from we proposed in this paper. In order to prove the noise-resistance performance of five models. After the above two data sets were standardized and the training set and test set were divided, Gaussian noise with standard normal distribution is added to all the training sets.

46We use the new training set to train the model, and compare the noise-resistance performance of five models through accuracy of the test set. The comprehensive average accuracy and standard deviation are shown in Table 6. It can be found that, in the noise-resistance experiment of CWRU data set, the performance of 1D-ViT is better, which reaches more than 95%. Accuracy of 1D-VIT-1Depth test set is about 81%. The performance of the traditional one-dimensional convolution model is very poor, which means that their performance is not good. In order to prevent underfitting of some models, we also verified the noise-resistance performance of 1D-AlexNet and 1D-ViT-1Depth with 200 epochs of training (This part is not presented in the paper). The results showed that 1D-AlexNet did not improve significantly, while accuracy of the test set of 1D-ViT-1Depth increased to about 88%. We think the reason causing the gap between 1D-ViT-1Depth and 1D-ViT may be that the sample size of CWRU data set is small, or the same experimental setting results inadequate training of 1D-ViT-1Depth.

47In the data set of Southeast University, due to the larger sample size, the training under fixed epochs is more adequate, which leads to the more significant comparison of results. It can be found that accuracy of the test sets of 1D-ViT-1Depth and 1D-ViT are both above 98%. There is not obvious difference between them, which indicates that the encoder stacks number has little influence on the model performance. The traditional one-dimensional convolution model has obvious overfitting phenomenon, which means poor noise-resistance performance.

48From what has been analyzed above, 1D-AlexNet, 1D-ResNet, and 1D-GoogleNet have poor noise-resistance performance and cannot be applied in actual working conditions. 1D-ViT and 1D-ViT-1Depth both have good noiseresistance performance, and 1D-ViT performs better in certain situations.

G. DISCUSSION OF MODEL COMPUTATION

49In order to further analyze the computational load of the proposed model, the FLOPs, the parameter number and the storage occupancy of the model in a single experiment are shown in Table 7. The number of FLOPs represents floating-point operations, namely the length of network execution time, which can measure the time complexity of the model. The parameter number indicates the video memory usage at run time. The space occupied by the model storage can be used to measure the space complexity of the model. These two indexes can also reflect the deployment cost and difficulty of the model and have important reference significance in real industrial scenarios. The calculation of these two parameters is not affected by the size of the input batch, so the input size can be set to (8,4000) in the calculation. The previous indicators are measured in storage capacity units, such as GB and MB. From TABLE 7, the FLOPs of the 1D-ViT-1Depth is 0.169G, the parameter number is 4.15M, and the storage occupancy of the complete model in this experiment is 47.8M. It can be seen that the computational complexity and spatial complexity of the 1D-ViT-1Depth have obvious advantages compared with the 1D-ResNet and the 1D-ViT models. The computational complexity of the 1D-ViT-1Depth is slightly lower than that of the 1D-AlexNet, but the spatial complexity is slightly higher than that of the 1D-AlexNet. Both of them are highly competitive.

50Although the time complexity of the 1D-GoogleNet is low, it is still similar to the 1D-ViT-1Depth. And the space complexity and model storage occupy too much, which means poor overall performance. It can be seen that the 1D-ViT-1Depth and 1D-AlexNet has the relatively small FLOPs, the parameter number, and the storage occupancy of the model, that is, the time complexity and space complexity of the model are low, which has great advantages in actual application deployment.

H. OPEN ISSUES

51There are some open issues in the proposed approach that need to be addressed in the following research.

52--In this paper, ablation experiments were conducted for only one parameter in the 1D-ViT model, which had significant influence on the FLOPs and the parameter number. There are potentials for further research.

53--We proved that the proposed method has advantages over traditional conventional methods, 1D-ViT without ablation experiment and other work. It is feasible to apply 1D-ViT-Depth method to fault diagnosis. However, the comparison with other work is only in the results. The data processing and experimental parameters used by these methods are different. we will conduct other experiments in the same experimental.

54--In the experiment, we found that the noise-resistance performance of the model based on the attention structure is better than the traditional convolution model, and the detailed reasons need to be further explored.

V. CONCLUSION

55In this paper, we conduct ablation experiment on encoder stack number of the proposed 1D-ViT model. We determine the optimal value of the parameter and get the optimal model corresponding to the encoder stack number, called 1D-ViT-1Depth. After that, the fault diagnosis experiment was carried out with the data sets of Southeast University and CWRU to evaluate the comprehensive performance of five models, including 1D-Vit-1Depth, 1D-ViT, 1D-GoogleNet, 1D-AlexNet, and 1D-ResNet by fault diagnosis accuracy, FLOPs, and the parameter number. The proposed 1D-ViT-1Depth fault diagnosis method realizes the direct input of the original acquired signal, eliminates the pre-signal processing, and realizes the end-to-end fault diagnosis with feature selfextraction. Moreover, this method has achieved good results in accuracy of fault diagnosis and has great advantages in time complexity and space complexity, which also is proved to have good noise-resistance performance. According to the above analysis results, 1D-ViT-1Depth has better comprehensive performance of fault diagnosis than the other four models. And it can also be easily applied to industrial tasks.

참고문헌 37건

  1. A novel bearing fault diagnosis model integrated permutation entropy, ensemble empirical mode decomposition and optimized SVM Measurement · Elsevier BV · 2015 10.1016/j.measurement.2015.03.017
  2. Semisupervised Distance-Preserving Self-Organizing Map for Machine-Defect Detection and Classification IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2013 10.1109/tim.2013.2245180
  3. Study on multi-fractal fault diagnosis based on EMD fusion in hydraulic engineering Applied Thermal Engineering · Elsevier BV · 2016 10.1016/j.applthermaleng.2016.04.036
  4. An approach to fault diagnosis for rotating machinery based on feature reconstruction with LCD and t-SNE Vibroengineering PROCEDIA · JVE International Ltd. · 2017 10.21595/vp.2017.18586
  5. Machine Health Monitoring Using Local Feature-Based Gated Recurrent Unit Networks IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tie.2017.2733438
  6. Planetary gearbox fault diagnosis based on data-driven valued characteristic multigranulation model with incomplete diagnostic information Journal of Sound and Vibration · Elsevier BV · 2018 10.1016/j.jsv.2018.05.020
  7. Highly Accurate Machine Fault Diagnosis Using Deep Transfer Learning IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2864759
  8. AI-Assisted Pipeline for Dynamic Generation of Trustworthy Health Supplement Content at Scale DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2018 10.4230/lipics.cosit.2022.18
  9. Multiple Classifiers and Data Fusion for Robust Diagnosis of Gearbox Mixed Faults IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2883357
  10. A novel gas turbine fault diagnosis method based on transfer learning with CNN Measurement · Elsevier BV · 2019 10.1016/j.measurement.2019.01.022
  11. Understanding and improving deep learning-based rolling bearing fault diagnosis with attention mechanism Signal Processing · Elsevier BV · 2019 10.1016/j.sigpro.2019.03.019
  12. Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1907.00235
  13. Applications of machine learning to machine fault diagnosis: A review and roadmap Mechanical Systems and Signal Processing · Elsevier BV · 2020 10.1016/j.ymssp.2019.106587
  14. Multibranch and Multiscale CNN for Fault Diagnosis of Wheelset Bearings Under Strong Noise and Variable Load Condition IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tii.2020.2967557
  15. An adaptive data fusion strategy for fault diagnosis based on the convolutional neural network Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.108122
  16. A hybrid fine-tuned VMD and CNN scheme for untrained compound fault diagnosis of rotating machinery with unequal-severity faults Expert Systems with Applications · Elsevier BV · 2020 10.1016/j.eswa.2020.114094
  17. Self-Supervised Pretraining of Transformers for Satellite Image Time Series Classification IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · Institute of Electrical and Electronics Engineers · 2020 10.1109/jstars.2020.3036602
  18. A review on wind turbines gearbox fault diagnosis methods Journal of Vibroengineering · JVE International · 2021 10.21595/jve.2020.20178
  19. Gated Transformer Networks for Multivariate Time Series Classification arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2103.14438
  20. Data-driven early fault diagnostic methodology of permanent magnet synchronous motor Expert Systems with Applications · Elsevier BV · 2021 10.1016/j.eswa.2021.115000
  21. A hybrid attention improved ResNet based fault diagnosis method of wind turbines gearbox Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109491
  22. The NLP Cookbook: Modern Recipes for Transformer Based Deep Learning Architectures IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3077350
  23. A novel temporal convolutional network with residual self-attention mechanism for remaining useful life prediction of rolling bearings Reliability Engineering & System Safety · Elsevier BV · 2021 10.1016/j.ress.2021.107813
  24. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2021 10.1609/aaai.v35i12.17325
  25. Autoformer: Decomposition Transformers with Auto-Correlation for\n Long-Term Series Forecasting arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.13008
  26. Roller Bearing Fault Diagnosis Based on Integrated Fault Feature and SVM Journal of Vibration Engineering & Technologies · Springer Science+Business Media · 2021 10.1007/s42417-021-00414-7
  27. Fault diagnosis of gearbox based on wavelet packet transform and CLSPSO-BP Multimedia Tools and Applications · Springer Science+Business Media · 2022 10.1007/s11042-022-12465-3
  28. An Improved Bearing Fault Diagnosis Method using One-Dimensional CNN and LSTM Strojniški vestnik – Journal of Mechanical Engineering · University of Ljubljana · 2018 10.5545/sv-jme.2018.5249
  29. Real-Time Motor Fault Diagnosis Based on TCN and Attention Machines · Multidisciplinary Digital Publishing Institute · 2022 10.3390/machines10040249
  30. FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2201.12740
  31. Optimal sensor placement methodology of hydraulic control system for fault diagnosis Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2022.109069
  32. Rolling Bearing Fault Diagnosis Based on WGWOA-VMD-SVM Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22166281
  33. Fault Diagnosis Methodology of Redundant Closed-Loop Feedback Control Systems: Subsea Blowout Preventer System as a Case Study IEEE Transactions on Systems Man and Cybernetics Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tsmc.2022.3204777
  34. A survey of transformers AI Open · Elsevier BV · 2022 10.1016/j.aiopen.2022.10.001
  35. Fault diagnosis of natural gas pipeline leakage based on 1D-CNN and self-attention mechanism 2022 IEEE 6th Advanced Information Technology, Electronic and Automation Control Conference (IAEAC ) · 2022 10.1109/iaeac54830.2022.9930063
  36. MizAR 60 for Mizar 50 DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2023 10.4230/lipics.itp.2023.19
  37. Transformers in Time Series: A Survey 2023 10.24963/ijcai.2023/759