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

Bearing Fault Diagnosis Based on Image Information Fusion and Vision Transformer Transfer Learning Model

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Zichen Zhang — School of Mechanical and Equipment Engineering, Hebei University of Engineering, Handan 056038, China
  2. Jing Li — School of Mining and Geomatics Engineering, Hebei University of Engineering, Handan 056038, China
  3. Chaozhi Cai — School of Mechanical and Equipment Engineering, Hebei University of Engineering, Handan 056038, China
  4. Jianhua Ren — School of Mechanical and Equipment Engineering, Hebei University of Engineering, Handan 056038, China
  5. Yingfang Xue — School of Mechanical and Equipment Engineering, Hebei University of Engineering, Handan 056038, China
DOI
10.3390/app14072706
저널
Applied Sciences
발행년도
2024
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
9
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/app14072706
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4393142356

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In order to improve the accuracy of bearing fault diagnosis under a small sample, variable load, and noise conditions, a new fault diagnosis method based on an image information fusion and Vision Transformer (ViT) transfer learning model is proposed in this paper. Firstly, the method applies continuous wavelet transform (CWT), Gramian angular summation field (GASF), and Gramian angular difference field (GADF) to the time series data, and generates three grayscale images. Then, the generated three grayscale images are merged into an information fusion image (IFI) using image processing techniques. Finally, the obtained IFIs are fed into the advanced ViT model and trained based on transfer learning. In order to verify the effectiveness and superiority of the proposed method, the rolling bearing dataset from Case Western Reserve University (CWRU) is used to carry out experimental studies under different working conditions. Experimental results show that the method proposed in this paper is superior to other traditional methods in terms of accuracy, and the effect of ViT model based on transfer learning (TLViT) training is better than that of the Resnet50 model based on transfer learning training (TLResnet50) under variable loads and small sample conditions. In addition, the experimental results also prove that the IFI with multiple image information has better anti-noise ability than the single information image. Therefore, the method proposed in this paper can improve the accuracy of bearing fault diagnosis under small sample, variable load and noise conditions, and provide a new method for bearing fault diagnosis.

본문 50,833자

본문 펼치기
In order to improve the accuracy of bearing fault diagnosis under a small sample, variable load, and noise conditions, a new fault diagnosis method based on an image information fusion and Vision Transformer (ViT) transfer learning model is proposed in this paper.Firstly, the method applies continuous wavelet transform (CWT), Gramian angular summation field (GASF), and Gramian angular difference field (GADF) to the time series data, and generates three grayscale images.Then, the generated three grayscale images are merged into an information fusion image (IFI) using image processing techniques.Finally, the obtained IFIs are fed into the advanced ViT model and trained based on transfer learning.In order to verify the effectiveness and superiority of the proposed method, the rolling bearing dataset from Case Western Reserve University (CWRU) is used to carry out experimental studies under different working conditions.Experimental results show that the method proposed in this paper is superior to other traditional methods in terms of accuracy, and the effect of ViT model based on transfer learning (TLViT) training is better than that of the Resnet50 model based on transfer learning training (TLResnet50) under variable loads and small sample conditions.In addition, the experimental results also prove that the IFI with multiple image information has better anti-noise ability than the single information image.Therefore, the method proposed in this paper can improve the accuracy of bearing fault diagnosis under small sample, variable load and noise conditions, and provide a new method for bearing fault diagnosis. Introduction In the process of industrial production, bearing failure is one of the common causes of mechanical equipment failure.Bearing status directly affects the operation of the whole rotating machinery; the existence of bearing failure will reduce the reliability and availability of equipment.Therefore, the timely diagnosis of bearing is of great significance in the current mechanical equipment maintenance and health management [1].The traditional bearing fault diagnosis method mainly relies on manual experience and professional knowledge, but this method has some problems, such as time consumption, power consumption, and being easy to be affected by subjective factors.With the continuous progress of science and technology, the application of machine learning and artificial intelligence in various fields is more and more extensive, and has attracted wide attention.In recent years, with the continuous development of computer computing power, deep learning models with strong data-mining ability have been widely used in the field of fault diagnosis [2].In the research of bearing fault diagnosis based on a machine learning model, Song et al. [3] used Wavelet Packet Transform (WPT) to decompose bearing vibration signals, and then used a Support vector machine (SVM) to carry out fault diagnosis.Zhu et al. [4] presents a fault diagnosis method based on wavelet threshold (WT), variational mode decomposition (VMD), and random forest.Amarnath et al. [5] extracted features from sound signals, reduced the dimensionality of features through Decision Trees to select important features, and then used a C4.5 Decision Tree algorithm to classify the selected features and complete fault diagnosis.In order to build models and process features, these machine learning methods all require certain prior knowledge and assumptions, and this method of manually extracting features has great limitations. Introduction Deep learning has strong feature-learning ability and does not need to rely on manual feature extraction, so it has received great attention and has been widely used in the field of fault diagnosis.Fuan et al. [6] applied Convolutional Neural Network (CNN) to the fault diagnosis of rolling bearing.Eren et al. [7] proposed an adaptive one-dimensional CNN classification method which combined the feature extraction and classification blocks of the traditional mode into a special structure, learned the best features from the original vibration signals of bearing, and achieved a high degree of generalization.Song et al. [8] adopted the strategy of expanding a convolution kernel to obtain a larger receptive field, and the proposed model has good performance in terms of accuracy, noise resistance, and timeliness.For multi-channel data, Guo et al. [9] proposed a method for fault diagnosis using dimensionality reduction in multi-line subspace and then used CNN to extract fault features.Liu et al. [10] proposed a new bearing fault diagnosis algorithm based on the combination of Sparse Wavelet Decomposition and multi-scale one-dimensional CNN (1-DCNN), they used convolution kerns of different sizes to extract signal features from multiple scales.The original vibration signal of bearing is a kind of time sequence signal, and the CNN model cannot process the time information in the signal, so the recurrent neural network (RNN) sensitive to the time sequence characteristics has been widely used in the field of bearing fault diagnosis.Liu et al. [11] proposed a bearing fault diagnosis method based on RNN.A Long-Shot Term Memory (LSTM) network is a variant of an RNN that can solve the difficulty of RNN convergence and the disappearance of gradients.Zou et al. [12] combined signal processing technology with LSTM network to realize fault diagnosis in the case of small sample size.In order to combine the ability of CNN to extract spatial features and the sensitivity of LSTM to time series information, Pan et al. [13] used the series structure of 1D-CNN and LSTM to realize bearing fault diagnosis, and the diagnosis accuracy was higher than that of the single 1D-CNN model and LSTM model.However, for a too-long time series, LSTM is still prone to gradient disappearance and gradient explosion in the calculation process, and because of the cyclic structure of LSTM model, it is difficult to carry out effective parallel calculation. Introduction The above methods are all proposed based on the original one-dimensional vibration signal data.At present, more and more scholars are beginning to convert one-dimensional data into two-dimensional images and make use of the advantages of deep learning models in the field of computer vision to achieve better diagnosis results.Hoang et al. [14] converted one-dimensional vibration signals into two-dimensional gray images and sent the images into CNN for bearing fault diagnosis, making full use of the advantages of CNN that are good at extracting image features and achieving better diagnosis results.Zhou et al. [15] directly took the bearing vibration waveform as the two-dimensional image input of the CNN model to obtain better real-time performance.Wen et al. [16] proposed a new method to transform one-dimensional data into a two-dimensional image without any predefined parameters, eliminating the influence of expert's knowledge as much as possible.The image was trained in the LeNet-5 model based on CNN, and the proposed method which was tested on three famous datasets, including motor bearing dataset, self-priming centrifugal pump dataset, and axial piston hydraulic pump dataset, and had achieved a prediction accuracy of 99.79%, 99.481%, and 100%, respectively.Luo et al. [17] utilized the Adaptive Optimal-Kernel Time-Frequency Representation (AOK-TFR) algorithm to transform time series into time-frequency spectrogram representations, thereby simultaneously capturing signal characteristics from both time and frequency domains. Introduction In recent years, researchers have introduced attention mechanisms into deep learning to address the drawbacks of traditional models, such as high complexity, large number of parameters, and high computational cost.The attention mechanism is derived from human visual attention and can automatically learn to focus on different parts of the input, thus enhancing the performance of the model.Through this approach, the model can better comprehend the intrinsic structure and semantic information of the input data.Introducing attention mechanism into deep learning models for fault diagnosis tasks has also become a research trend.Guo et al. [18] proposed an attention-based CNN-BiLSTM network, which achieved a diagnosis accuracy of 96.58% even under noisy conditions.Yang et al. [19] introduced a multi-scale feature fusion CNN with an attention mechanism for bearing fault diagnosis.Common methods used to convert one-dimensional vibration signals into two-dimensional images include continuous wavelet transform (CWT) [20], short-time Fourier transform (STFT) [21], and Gramian angular field (GAF) [22].Among them, CWT and STFT are both time-frequency analysis methods, which transform signals from the time domain to the frequency domain for analysis.CWT enables multi-scale analysis of signals, thereby providing more detailed information in both time and frequency domains, making it suitable for analyzing non-stationary signals.Compared to STFT, CWT has better capability to capture the local time-frequency features of a signal, allowing for a more accurate determination of the signal's local characteristics in both time and frequency domains.However, CWT is based on a continuous scale transformation, which means that the choice of scale can impact the analysis results.GAF is an image coding method for time series data.It can effectively capture the similarity and correlation between time series by computing the inner product between vectors, revealing their dynamic relationships.However, GAF is sensitive to noise during the calculation process, which may introduce errors or affect the accuracy of the results [23].Using only one method to represent the original vibration signal may lose some signal features and may affect the model's resistance to noise, reducing the robustness of the fault diagnosis method.Therefore, using multiple methods to represent the original signal simultaneously is a better approach. Introduction Fault diagnosis models based on LSTM and CNN often have complex structures, limited parallel computing capabilities, and difficulties in learning more global and richer feature representations during the training process.In 2017, Vaswani et al. [24] introduced the Transformer, which utilized self-attention mechanisms to quickly capture global sensitive features of time series signals.The emergence of the Transformer sparked a revolution in the field of natural language processing.The attention mechanism can effectively address the challenge of capturing long-range dependencies in time series data and handling of the sequential nature of time series.Indeed, the Transformer architecture discards all recurrent and convolutional structures, enabling parallel computation of sequences and greatly improving training efficiency.The Vision Transformer (ViT) is the application of the Transformer model in the field of image processing.It inherits the multi-head attention mechanism of the Transformer, allowing it to capture global information from images, while abandoning the CNN-based network structures commonly used in computer vision.However, the ViT model has a high demand for training data volume [25], and in realworld scenarios, it can be challenging to acquire a sufficient amount of bearing fault data.Transfer learning is commonly used to address such issues [26,27].It leverages knowledge learned from a source domain dataset to generalize and interpret different but similar or related tasks on the target domain dataset, thereby reducing the requirement for a large number of samples in the target domain dataset [28].In recent years, some scholars have introduced transfer learning into the field of bearing fault diagnosis, demonstrating its effectiveness [29][30][31][32]. Introduction Based on the analysis above, this paper proposed a new fault diagnosis method for improving the accuracy of bearing fault diagnosis under conditions of small samples, varying loads, and noisy operating conditions.This method incorporated image information fusion and transfer learning with ViT.The main innovations and contributions of this paper are as follows. Introduction ( and tested in the image dataset generated using CWT, GASF, and GADF, respectively, and, compared with the proposed TLViT + IFI, it was confirmed that the proposed method has higher fault-diagnosis accuracy. Continuous Wavelet Transform Suppose the function ψ ∈ L 2 (R) ∩ L 1 (R) and ψ ′ (0) = 0, a series of wavelet basis functions can be obtained from ψ by stretching and shifting, as shown in Formula (1), Continuous Wavelet Transform where a, b ∈ R, a ̸ = 0, ψ a,b is a continuous wavelet function, ψ(t) is the mother wavelet function, and a is the scaling factor.When a > 1, it indicates stretch in ψ(t), which is beneficial for extracting low-frequency features from the signal.When 0 < a < 1, it indicates a compression in ψ(t), which is beneficial for extracting high-frequency features from the signal.The Morlet wavelet is suitable for capturing the rapid oscillation characteristics of signals, as it exhibits similar pulse features to those of bearing faults [34].Therefore, in this paper, the Morlet wavelet was adopted as the mother wavelet function.The mathematical expression of the Morlet wavelet is [35]: Continuous Wavelet Transform For any function f (t) ∈ L 2 (R), its CWT is defined as [16], Continuous Wavelet Transform where W f (a, b) represents the wavelet transform coefficient, f , ψ a,b (t) denotes the inner product of two functions, and ψ(t) denotes the complex conjugate function of ψ(t).The wavelet transform coefficient represents the degree of matching between the signal and the wavelet basis function, that is, the amplitude information at different times and frequencies.The more similar the signal is to the wavelet basis function, the greater the coefficient value. Continuous Wavelet Transform After transforming the mother wavelet function through different scales, the wavelet coefficient matrix W f (a, b) can be finally obtained through the above calculation process, which can be used to represent the energy distribution of the signal at different scales and frequencies.In the process of using the python programming language, the value of wavelet coefficient matrix W f (a, b) was displayed in the image through color filling, and the time-frequency graph was obtained. Gramian Angular Field Given a time series X = {x 1 , x 2 , • • • , x n } with n value, normalizing the time series between [0, 1], it can be expressed as Gramian Angular Field , where x i is value of the normal- ized time series.The calculation is shown in Formula (4): Gramian Angular Field By solving the inverse cosine function of the normalized time series, the time series can be converted to the angle in polar coordinates, and the time stamp can be encoded as the radius, which can be represented in polar coordinates.Since the cosine function is monotonic at 0, π 2 , the angle of mapping between time series on polar coordinates is unique.At the same time, radii of different lengths are used to represent time values in polar coordinates to maintain time dependence. Gramian Angular Field where t i is the timestamp and N is the length of the time series.By calculating the cosine value of the sum of angles between each point or the sine value of the difference of angles, the Gramian angular sum field (GASF) and Gramian angular difference field (GADF) are formed, respectively, to reflect the time correlation of data at different time intervals. Gramian Angular Field where I is the unit row vector.Each value in the matrix is then mapped to the grayscale level to visualize it as a GAF plot.In the GAF plot, each data point corresponds to one pixel of the image.The horizontal and vertical axes of the image represent the index of the data points, and can also represent the order of time.The gray level in an image reflects the similarity or correlation between data points. Vision Transformer ViT is mainly composed of an embedding layer, an encoder (composed of L Encoder Blocks), and a classifier, and its structure is shown in Figure 1. Vision Transformer The role of the embedding layer is to process the input images into the tokens required by the Transformer model.For the input image x ∈ R h×w×c , where h, w, and c are the height, width, and number of channels of the image, respectively, the image is first divided into N patches of p × p, and then each patch is linearly mapped to a one-dimensional vector, resulting in a token of length p × p × c.In this paper, this part was implemented by a convolutional layer, which directly applied a convolutional kernel of size p × p, stride p, and number of kernels p 2 × c to the input image.The output of the convolutional layer is Vision Transformer between data points. Vision Transformer ViT is mainly composed of an embedding layer, an encoder (composed of L En- coder Blocks), and a classifier, and its structure is shown in Figure 1. , where h , w , and c are the height, width, and number of channels of the image, respectively, the image is first divided into N patches of pp  , and then each patch is linearly mapped to a one-dimensional vector, resulting in a token of length p p c .In this paper, this part was implemented by a convolutional layer, which directly applied a convolutional kernel of size pp  , stride p , and number of kernels Then, a special category label Then, a special category label x class ∈ R 1×(p 2 ×c) was inserted into x p , and the shape of the concatenated token was [N + 1, p 2 × c].In order to make full use of the location information, the ViT model introduced a learnable position encoding matrix E pos .The sum of position coding information E pos and feature vector space was used as input z 0 of the Transformer Encoder: Vision Transformer The Transformer encoder consists of L identical stacked modules, and its internal structure is shown in Figure 2a.It mainly consists of two sub-layers, namely multi-head selfattention layer (MSA) and multilayer perception (MLP).Before data enters each sublayer, it was normalized using a normalization layer, and then fused by adding the output of each sublayer to the input of that sublayer.The encoder was set to L layers, and the computation process of the l-th layer is as follows: Vision Transformer The encoding result after L layers of encoder is Vision Transformer ViT model adopts a multi-head self-attention mechanism, the multi-head self-attention layer uses multiple self-attention heads for parallel calculation, and finally splices the output of all self-attention heads together to get the result.The multilayer perception (MLP) is mainly composed of the fully connected layer, the GELU activation function, and the dropout layer, and its structure is shown in Figure 2b. Vision Transformer The classifier applies a nonlinear transformation to the encoder's output and produces the final result of fault diagnosis. Vision Transformer '' ( ( )) , 1,..., Vision Transformer The encoding result after L layers of encoder is ViT model adopts a multi-head self-attention mechanism, the multi-head self-attention layer uses multiple self-attention heads for parallel calculation, and finally splices the output of all self-attention heads together to get the result.The multilayer perception (MLP) is mainly composed of the fully connected layer, the GELU activation function, and the dropout layer, and its structure is shown in Figure 2b. Vision Transformer The classifier applies a nonlinear transformation to the encoder's output and produces the final result of fault diagnosis. Transfer Learning Transfer learning is a machine learning technique that speeds up and improves the learning process by applying knowledge and model parameters gained from one task to another related task.Specifically, transfer learning leverages the knowledge learned from the source domain to assist learning in the target domain, aiming to enhance the model's generalization performance in the target domain.Due to the fact that it is difficult to have bearing working in a faulty state for a long period of time in real operating conditions, the volume of bearing fault data samples in actual operating conditions is relatively small, which is quite different from the 14 million data samples in ImageNet-21k.Indeed, ViT models, like many other deep learning models, tend to rely on a larger amount of training data to achieve better performance.When the dataset is limited in size, it can be challenging to train a ViT model that exhibits optimal performance.To address this issue, this paper introduced a pre-trained ViT model trained on the ImageNet-21k dataset as the source model, and then the pre-trained model already was capable of extracting deep image features.Subsequently, a new model was created to be identical to the source model except for the output, which is changed to match the number of bearing fault categories in the target model.Finally, the target model was trained by inputting two-dimensional images generated from bearing vibration signals.The fine-tuned ViT transfer learning model can significantly reduce the training cost, improve the model's generalization ability when the dataset is relatively small, and lower the required data cost. Dataset The rolling bearing dataset used in this paper was derived from the Case Western Reserve University (CWRU) rolling bearing dataset [33].An accelerometer sensor was used to collect the vibration acceleration signals of the bearing, which was installed near the bearing housing on the motor drive end, with a sampling frequency of 12 kHz.According to the different faulty parts, the bearing status is divided into four categories: rolling element fault, inner race fault, outer race fault, and normal operation state.The faulty bearing was installed in the test motor and makes the motor work under different loads, and the vibration data under different motor loads was recorded.The faulty signals collected in this paper were obtained from the driving end deep groove ball bearing SKF6205 under three different operating conditions with motor loads of 1~3 HP.Different motor loads correspond to different motor speeds, and the corresponding relationship between motor loads and motor speeds is shown in Table 1.The signals were collected in the form of acceleration data, sampled at a frequency of 12 kHz.The failure mode of the bearing was pitting corrosion. Experimental Data Preparation In this paper, the sliding time window method was used to perform overlapping sampling on the original vibration signals to reduce the risk of overfitting in the model. Experimental Data Preparation The accuracy of the model will increase with the increase of time window length, but a long time window length will make the calculation more complex and have little impact on the improvement of accuracy.Currently, the commonly used time window length is 1024, and this length had been proven to be a suitable time window length [36,37].According to reference [25,38], the optimal input image size for the TLVIT model is 224 × 224.Therefore, in order to ensure that the pre-trained position encoding can continue to be used, this paper set the input image size of the model to 224 × 224.According to the calculation method of GAF, when the sliding time window length is 1120, the size of the generated GAF image is 1120 × 1120, which is exactly an integer multiple of the input image size selected in this article.Therefore, while ensuring the accuracy of the model, in order to facilitate the compression of image size by using the Python programming language, this article ultimately chose 1120 as the length of the time window.The sliding window length selected in the reference literature is 1024, with a sliding step size of 341 [37].In this paper, the sliding step size is adjusted to 350 accordingly, referencing its window overlap rate.As shown in Figure 3, the blue box indicates the nth data sample, while the red box represents the (n+1)th data sample. Experimental Data Preparation To ensure consistency in the number of channels for the ViT model, the sampled data were processed by using GASF, GADF, and CWT.These methods generated three pseudocolor images, which can be used as a control group in the study.The three pseudo-color images were converted to grayscale images, and an IFI was created by concatenating these grayscale feature images in the order of the RGB channels.It is as shown in Figure 3. Experimental Data Preparation To ensure consistency in the number of channels for the ViT model, the sampled data were processed by using GASF, GADF, and CWT.These methods generated three pseudo-color images, which can be used as a control group in the study.The three pseudocolor images were converted to grayscale images, and an IFI was created by concatenating these grayscale feature images in the order of the RGB channels.It is as shown in Figure 3. were processed by using GASF, GADF, and CWT.These methods generated three pseudo-color images, which can be used as a control group in the study.The three pseudocolor images were converted to grayscale images, and an IFI was created by concatenating these grayscale feature images in the order of the RGB channels.It is as shown in Figure 3. Model Training The experiments described in the paper were implemented by using the TensorFlow 2.0 deep learning framework.TensorFlow 2.0 is a machine learning and deep learning framework developed by Google (Mountain View, CA, USA).It makes the development and deployment of machine learning models easier, more efficient, and more intuitive [39].The data processing process in this paper was carried out on the Intel Core i7-12700H processor (manufactured by Intel Corporation in Santa Clara, CA, USA), and the model training process was carried out on the RTX3060 graphics card (manufactured by NVIDIA Corporation in Santa Clara, CA, USA).The Python version used was 3.8.In the experiment, firstly, data with motor loads of 1-3 HP were selected, and IFIs were generated form these three one-dimensional datasets by using the aforementioned method; then, three different two-dimensional image datasets, A, B, and C were obtained, each dataset containing 1600 samples with an equal number of samples for each fault category.The dataset was randomly partitioned into training, validation, and testing sets in a 6:2:2 ratios.To ensure the reproducibility of the partitioning results, a random seed was used to record the random partitioning process.The ViT model based on transfer learning (TLViT) was then fine-tuned and tested on the partitioned datasets separately.To avoid the influence of randomness in the experimental results, the experiment was repeated five times.Each time, a different random seed was used.The average accuracy on the testing set over the five repetitions was taken as the final result.To validate the performance of the TLViT model, a performance comparison experiment was conducted between different models.ResNet50 and ViT were used as the benchmark models, and they were trained and tested by using IFIs.In order to validate the effectiveness of the image fusion methods used, TLViT + CWT, TLViT + GASF, and TLViT + GADF were used as control experiments.In this study, all experiments were performed more than five times, and the average of the test results was taken as the final result.Based on previous experience, the training process of the ViT model typically stabilized after around 15 epochs.To balance the time cost of experiments and the stability of final training results, all experiments in this paper were set to run for 30 epochs with a batch size of 4. The stochastic gradient descent (SGD) optimization algorithm was selected [40], and during the training process, the weights of the model were recorded as the best weights when the validation loss is the lowest.These best weights were then used for testing on the testing set. Model Training To observe the training process of each model more clearly, taking one training process of a model on dataset A as an example, the variation of the model's loss and accuracy during training is shown in Figure 5. Figure 5h shows the comparison curve of the change of diagnosis accuracy of each model on the verification set during this training process, and the performance of each model can be preliminarily seen from the figure.To accurately evaluate the performance of each method, Table 2 provides the average accuracy on the testing set after five rounds of training and testing for each method on datasets A, B, and C. In the model performance comparison experiment, the ViT + IFI method achieved an accuracy of only 99.12% on the testing set.The performance of ResNet50 + IFI surpasses that of ViT + IFI, with an accuracy of 99.72% on testing set.This indicates that the performance of the ViT model cannot be fully utilized without pre-training on large datasets.As shown in Figure 5c,d To verify the effectiveness of the proposed IFI, the TLViT model was trained and tested on pseudo-color image datasets generated using GADF, GASF, and CWT methods, respectively.The reason for using false color images is that the ViT model is greatly affected by the number of input image channels, so the three-channel image input is uniformly used in the controlled experiment.The TLViT + CWT model also achieved 100% diagnosis accuracy on the testing set, while the TLViT + GADF and TLViT + GASF performed less effectively, with accuracies of only 99.30% and 98.70% on the testing set, respectively.This indicates that using different methods to generate two-dimensional images from one-dimensional vibration signals results in varying diagnosis performance of the models.This difference in performance led to TLViT + GASF performing worse than ViT + IFI, highlighting the superiority of the proposed IFI. Experimental Analysis of Small Samples In practical working conditions, acquiring a substantial amount of fault data often poses challenges.Hence, it is imperative to ensure that fault diagnosis methods proposed under limited training data can uphold a commendable level of diagnostic accuracy.In this experiment, only the data with a motor load of 1HP were utilized to train the model by using four datasets comprising varying numbers of training samples.The dataset sizes were 1000, 500, 300, and 100, respectively, while each dataset consisted of 1152 test data samples.It is noteworthy that an equal number of training and test samples were allocated for each fault class within every dataset. Experimental Analysis of Small Samples In the model performance comparison experiment, As shown in Figure 6, when the training sample is 1000, each method can achieve higher accuracy.In order to more intuitively observe the fault diagnosis ability of the proposed methods under small sample conditions and the diagnosis of various kinds of faults, the test results of a training when the number of training samples of each method was 100 were visualized, and the confusion matrix was drawn.The X and Y axes in Figure 7 represent the predicted and actual categories, respectively.In order to more intuitively observe the fault diagnosis ability of the proposed methods under small sample conditions and the diagnosis of various kinds of faults, the test results of a training when the number of training samples of each method was 100 were visualized, and the confusion matrix was drawn.The X and Y axes in Figure 7 represent the predicted and actual categories, respectively.Appl.Sci.2024, 14, 2706 14 of 18 Experimental Analysis of Variable Motor Load As can be seen from Table 2, each model has achieved high diagnosis accuracy under constant load.However, in the actual work process, the load of the motor often changes; this means that the speed of the bearing changes, so it is very important that the model can still be effectively diagnosed under the condition of variable motor load.In order to test the performance of the model proposed in this paper under varying loads, three datasets A, B, and C (corresponding to three loads of 1HP, 2HP, and 3HP, respectively), were used for training and testing.As shown in Figure 8, A→B means that A is used as the training set and B is used as the test set, and the same is true for other cases.AVG represents the average accuracy of the model under these variable conditions. Experimental Analysis of Variable Motor Load training set and B is used as the test set, and the same is true for other cases.AVG represents the average accuracy of the model under these variable conditions. Experimental Analysis of Variable Motor Load As can be seen from Figure 8, the average diagnosis accuracy of ViT + IFI model under variable load conditions is only 88.08%, lower than the average diagnosis accuracy of Resnet50 + IFI of 94.88%.The advantages of the ViT model have not been reflected, but the performance of the TLViT + IFI model, which uses a large amount of data for pretraining, has been significantly improved, and the average diagnosis accuracy under variable load conditions has reached 98.96%, which is more than 10% higher than that of ViT + IFI.The average diagnosis accuracy of TLResnet50 + IFI is 96.22%, indicating that TLViT model also has better performance under variable load conditions than TLResnet50.The average diagnosis accuracy of TLViT + GASF, TLViT + GADF, and TLViT + CWT models by using only one image as model input was 88.57%, 88.63%, and 96.30%, respectively.Moreover, the difference between the highest accuracy and the lowest accuracy is 7.99%, 7.81%, and 5%, respectively, while the average diagnosis accuracy of the TLViT + IFI method used in our study is 98.96%, and the difference between the highest accuracy and the lowest accuracy is 2.35%, indicating that the proposed method had higher diagnosis accuracy and better generalization. Experimental Analysis of Anti-Noise Ability In previous experiments, the TLViT + IFI method performed slightly better than TLViT + CWT method under small sample training and variable load conditions, but the gap between the two is not obvious.The anti-noise capability of the proposed method was further tested.This experiment was only to verify the noise resistance of the model, so only the samples in dataset A were used for training, and white Gaussian noise with different signal-to-noise ratios (SNRs) was added to the original data corresponding to As can be seen from Figure 8, the average diagnosis accuracy of ViT + IFI model under variable load conditions is only 88.08%, lower than the average diagnosis accuracy of Resnet50 + IFI of 94.88%.The advantages of the ViT model have not been reflected, but the performance of the TLViT + IFI model, which uses a large amount of data for pre-training, has been significantly improved, and the average diagnosis accuracy under variable load conditions has reached 98.96%, which is more than 10% higher than that of ViT + IFI.The average diagnosis accuracy of TLResnet50 + IFI is 96.22%, indicating that TLViT model also has better performance under variable load conditions than TLResnet50.The average diagnosis accuracy of TLViT + GASF, TLViT + GADF, and TLViT + CWT models by using only one image as model input was 88.57%, 88.63%, and 96.30%, respectively.Moreover, the difference between the highest accuracy and the lowest accuracy is 7.99%, 7.81%, and 5%, respectively, while the average diagnosis accuracy of the TLViT + IFI method used in our study is 98.96%, and the difference between the highest accuracy and the lowest accuracy is 2.35%, indicating that the proposed method had higher diagnosis accuracy and better generalization. Experimental Analysis of Anti-Noise Ability In previous experiments, the TLViT + IFI method performed slightly better than TLViT + CWT method under small sample training and variable load conditions, but the gap between the two is not obvious.The anti-noise capability of the proposed method was further tested.This experiment was only to verify the noise resistance of the model, so only the samples in dataset A were used for training, and white Gaussian noise with different signal-to-noise ratios (SNRs) was added to the original data corresponding to dataset A, and then the data added with noise was converted into images, respectively, as the data of the test set.The SNR is defined as follows SNR = 10 × lg P raw P noise , (11) where P raw is the power of the original signal and P noise is the power of the noise.From this formula, it can be seen that the SNR is inversely proportional to P noise .The smaller the SNR is, the more serious the pollution in the original signal is. Experimental Analysis of Anti-Noise Ability In order to verify that the IFI used in this paper has better noise resistance, only the TLViT model was used in the noise resistance comparison experiment.Figure 9 Experimental Analysis of Anti-Noise Ability where raw P is the power of the original signal and noise P is the power of the noise.From this formula, it can be seen that the SNR is inversely proportional to noise P .The smaller the SNR is, the more serious the pollution in the original signal is. Experimental Analysis of Anti-Noise Ability In order to verify that the IFI used in this paper has better noise resistance, only the TLViT model was used in the noise resistance comparison experiment.Figure 9 Conclusions A TLViT + IFI fault diagnosis method based on image information fusion was proposed to solve the problem of variable load conditions, less dataset, and noise in the working environment.The original signal was transformed into a grayscale image by using CWT, GASF, and GADF.This fused image effectively represented the signal characteristics in a comprehensive manner.Subsequently, the obtained IFI was input into the ViT for fault diagnosis based on transfer learning training.Consequently, the following conclusions can be derived. Conclusions In the model performance comparison experiment, the TLViT model trained based on transfer learning outperformed TLResnet50 under varying loads and small samples. Conclusions A TLViT + IFI fault diagnosis method based on image information fusion was proposed to solve the problem of variable load conditions, less dataset, and noise in the working environment.The original signal was transformed into a grayscale image by using CWT, GASF, and GADF.This fused image effectively represented the signal characteristics in a comprehensive manner.Subsequently, the obtained IFI was input into the ViT for fault diagnosis based on transfer learning training.Consequently, the following conclusions can be derived. Conclusions In the model performance comparison experiment, the TLViT model trained based on transfer learning outperformed TLResnet50 under varying loads and small samples.When the number of training samples is 100, the fault diagnosis accuracy on the test set is 97.34%, indicating that this method can be applied to the situation with few training samples.The proposed method has an average diagnosis accuracy of 98.96% in the variable load condition, which is higher than other models, indicating that the fault diagnosis model trained by this method has good generalization. Conclusions The proposed IFI is more effective than the single image coding method.The test results of anti-noise performance show that when the SNR is −4 dB, the TLViT model is difficult to accurately diagnose the faults in the images generated by the control group method.However, the TLViT + IFI method can achieve a diagnosis accuracy of 69.10% on test set.It can be seen that IFI has higher anti-noise ability than the pseudo-color images generated using CWT, GADF, and GASF. Conclusions The above results show that the proposed TLViT + IFI fault diagnosis method has strong generalization and robustness under variable load, small sample, and noise environment, and can provide an effective idea for the research of rolling bearing fault diagnosis.Theoretically, this method can be used to diagnose the fault information in various time series forms, but only the vibration signal of the bearing, namely the acceleration sensor data, is discussed in this paper.In this paper, only the CWRU dataset was used for training and verification, and the bearing types and working conditions in the dataset were limited.In the process of converting time series data into IFIs, three methods, GASF, GADF, and CWT, need to be used first to generate grayscale maps, which increases the calculation cost.To solve the above problems, the author will carry out the following work in the follow-up research.(1) Explore the effect of combining other types of sensor data (such as temperature and sound signals) with the method proposed in this paper.(2) Validate the proposed method in more realistic and complex work environments.(3) The parameter volume of the Resnet50 model is 25.6 M [41], while the parameter volume of the ViT model used in this paper is 86M [25]; therefore, the lightweight treatment of the ViT model will be carried out in subsequent research, and the goal is to reduce its parameter volume by 50%. Figure 1 . Figure 1.The structure of Vision Transformer.The role of the embedding layer is to process the input images into the tokens required by the Transformer model.For the input image h w c xR   Figure 1 . to the input image.The output of the convolutional layer is Figure 1 . order to make full use of the location infor- mation, the ViT model introduced a learnable position encoding matrix pos E .The sum of position coding information pos E and feature vector space was used as input 0 z of the Transformer Encoder: Figure 1 . Figure 1.The structure of Vision Transformer. Figure 2 . Figure 2. Transformer Encoder.(a) Encoder block.(b) MLP block. Figure 2 . Figure 2. Transformer Encoder.(a) Encoder block.(b) MLP block. Figure 3 . Figure 3.The process of converting time series data to IFI. Figure 4 Figure 4 illustrates the fault diagnosis process by using the TLViT + IFI model.It involves converting the one-dimensional vibration signal into an IFI, partitioning the data into training, validation, and testing sets as required, training the ViT model by using transfer learning, and inputting the data samples from the test set into the trained TLViT model to obtain diagnosis results. Figure 4 . Figure 4. Fault diagnosis process of the TLViT + IFI. Figure 3 . Figure 3.The process of converting time series data to IFI. Figure 4 Figure 4 illustrates the fault diagnosis process by using the TLViT + IFI model.It involves converting the one-dimensional vibration signal into an IFI, partitioning the data into training, validation, and testing sets as required, training the ViT model by using transfer learning, and inputting the data samples from the test set into the trained TLViT model to obtain diagnosis results. Figure 3 . Figure 3.The process of converting time series data to IFI. Figure 4 Figure 4 illustrates the fault diagnosis process by using the TLViT + IFI model.It involves converting the one-dimensional vibration signal into an IFI, partitioning the data into training, validation, and testing sets as required, training the ViT model by using transfer learning, and inputting the data samples from the test set into the trained TLViT model to obtain diagnosis results. Figure 4 . Figure 4. Fault diagnosis process of the TLViT + IFI.Figure 4. Fault diagnosis process of the TLViT + IFI. Figure 4 . Figure 4. Fault diagnosis process of the TLViT + IFI.Figure 4. Fault diagnosis process of the TLViT + IFI. Figure 4 . , the TLResnet50 + IFI and TLViT + IFI models have high diagnosis accuracy at the beginning of training, indicating that the pre-trained models already have a certain fault diagnosis capability.The fact that both models ultimately achieved 100% diagnosis accuracy on the testing set demonstrates the effectiveness of transfer learning.This also indicates that it is difficult to compare the performance of the two models when there is an ample amount of training data in the target domain. 19 Figure 5 . Figure 5. Cont. Figure 5 . Figure 5. Accuracy and loss of training set and validation set during training.(a) ViT + IFI, (b) Res-net50 + IFI, (c) TLViT + IFI, (d) TLResnet50 + IFI, (e) TLViT + CWT, (f) TLViT + GADF, (g) TLViT + GASF, and (h).Comparison of accuracy changes of each model on validation set. Figure 5 . Figure 5. Accuracy and loss of training set and validation set during training.(a) ViT + IFI, (b) Resnet50 + IFI, (c) TLViT + IFI, (d) TLResnet50 + IFI, (e) TLViT + CWT, (f) TLViT + GADF, (g) TLViT + GASF, and (h).Comparison of accuracy changes of each model on validation set. Figure 5 . With the decrease of training sample size, the fault diagnosis accuracy of all methods decreased, among which ViT + IFI model is the most affected, only 86.54% when the training sample size is 100, and the fault diagnosis ability decreased significantly.With the same number of training samples, the fault diagnosis accuracy of the Resnet50 + IFI model is slightly higher than that of the ViT + IFI model, and the diagnosis accuracy reaches 88.80% when the training sample size is 100, indicating that the ViT model without pre-training of large data sets has no advantage in diagnosis accuracy compared with the Resnet50 model. 19 Figure 6 . Figure 6.Diagnosis accuracy under different number of training samples. Figure 6 . Figure 6.Diagnosis accuracy under different number of training samples.The TLViT model based on transfer learning solves this problem.As shown in Figure 6, when the number of training samples in the target domain is 1000, 500, and 300, the diagnosis accuracy of TLViT model on the test set is slightly higher than that of TLResnet50 model, but there is no obvious difference between them.When there are 100 training samples in the target domain, TLViT can achieve 97.34% fault diagnosis accuracy on test set, while TLResnet50 + IFI diagnosis accuracy is only 92.76%, indicating that after pretraining on the same large data set, the fault diagnosis accuracy of TLresnet50 + IFI is only 92.76%.The performance of ViT model in this bearing fault diagnosis task exceeds that of Resnet50, which is more suitable for the case of less fault samples in the target domain.In the experiment to test the impact of image data generation on fault diagnosis methods, the fault diagnosis accuracy of each model gradually decreases with the reduction of the training sample size.Among them, TLViT + GADF and TLViT + GASF are most affected by the reduction of training sample size.When there are only 100 training data, the diagnosis accuracy on test set is only 75.87% and 75.61%.When the original data are small, it is not effective to convert one-dimensional vibration data into GAF images to train the model.Compared with TLViT + GADF and TLViT + GASF, TLViT + CWT has obvious advantages.When the amount of training data are only 100, the fault diagnosis accuracy on test set can reach 95.63%, but it is still lower than the 97.34% of TLViT + IFI.It shows that the IFI proposed in this paper can reduce the requirement of training data.It can be seen that TLViT + IFI model has strong diagnosis ability in the case of small samples.In order to more intuitively observe the fault diagnosis ability of the proposed methods under small sample conditions and the diagnosis of various kinds of faults, the test results 19 Figure 7 . Figure 7. Confusion matrix of test results.(a) Resnet50 + IFI, (b) TLResnet50 + IFI, (c) ViT + IFI, (d) TLViT + IFI, (e) TLViT + CWT, (f) TLViT + GADF, and (g) TLViT + GASF. Figure 7 . Figure 7. Confusion matrix of test results.(a) Resnet50 + IFI, (b) TLResnet50 + IFI, (c) ViT + IFI, (d) TLViT + IFI, (e) TLViT + CWT, (f) TLViT + GADF, and (g) TLViT + GASF. Figure 8 . Figure 8.The diagnosis accuracy of each method under variable load condition. Figure 8 . Figure 8.The diagnosis accuracy of each method under variable load condition. Figure 8 . shows the results of TLViT model training on different image datasets and then testing under different SNR.It can be seen from the test results that images containing only one kind of image information have poor noise resistance.Under the influence of noise with a SNR of −4dB, the TLViT model is difficult to diagnose fault images containing only one kind of image information.The diagnosis accuracy of TLViT + CWT, TLViT + GASF, and TLViT + GADF are 29.60%,46.27%, and 43.66%, respectively, and almost all lost the fault diagnosis capability.However, the TL_VIT + IFI proposed in this article still has a diagnosis accuracy of 69.10%, and the diagnosis accuracy is as high as 99.22% when the SNR is 8dB.It can be seen that the proposed image information fusion method greatly improves the anti-noise capability of the fault diagnosis model, because the fusion of multiple image information makes IFI have richer features and is not susceptible to noise. Figure 8 . shows the results of TLViT model training on different image datasets and then testing under different SNR.It can be seen from the test results that images containing only one kind of image information have poor noise resistance.Under the influence of noise with a SNR of -4dB, the TLViT model is difficult to diagnose fault images containing only one kind of image information.The diagnosis accuracy of TLViT + CWT, TLViT + GASF, and TLViT + GADF are 29.60%,46.27%, and 43.66%, respectively, and almost all lost the fault diagnosis capability.However, the TL_VIT + IFI proposed in this article still has a diagnosis accuracy of 69.10%, and the diagnosis accuracy is as high as 99.22% when the SNR is 8dB.It can be seen that the proposed image information fusion method greatly improves the anti-noise capability of the fault diagnosis model, because the fusion of multiple image information makes IFI have richer features and is not susceptible to noise. Figure 9 . Figure 9.The diagnosis accuracy of each method under different SNR. Figure 9 . Figure 9.The diagnosis accuracy of each method under different SNR. Figure 9 . 1)In response to the problem that a single image generation method is unable to describe the features of time-domain vibration signals from multiple perspectives, resulting in poor generalization and noise resistance of the fault diagnosis method, this paper Table 1 . Motor loads and motor speeds. Table 2 . Average accuracy on test set. Table 2 . Average accuracy on test set. Diagnosis Method Average Accuracy on the Test Set Appl.Sci.2024,14, x FOR PEER REVIEW 16 of 19dataset A, and then the data added with noise was converted into images, respectively, as the data of the test set.The SNR is defined as follows

섹션 본문 88문단 · 49,085자

(제목 없음)

1In order to improve the accuracy of bearing fault diagnosis under a small sample, variable load, and noise conditions, a new fault diagnosis method based on an image information fusion and Vision Transformer (ViT) transfer learning model is proposed in this paper.Firstly, the method applies continuous wavelet transform (CWT), Gramian angular summation field (GASF), and Gramian angular difference field (GADF) to the time series data, and generates three grayscale images.Then, the generated three grayscale images are merged into an information fusion image (IFI) using image processing techniques.Finally, the obtained IFIs are fed into the advanced ViT model and trained based on transfer learning.In order to verify the effectiveness and superiority of the proposed method, the rolling bearing dataset from Case Western Reserve University (CWRU) is used to carry out experimental studies under different working conditions.Experimental results show that the method proposed in this paper is superior to other traditional methods in terms of accuracy, and the effect of ViT model based on transfer learning (TLViT) training is better than that of the Resnet50 model based on transfer learning training (TLResnet50) under variable loads and small sample conditions.In addition, the experimental results also prove that the IFI with multiple image information has better anti-noise ability than the single information image.Therefore, the method proposed in this paper can improve the accuracy of bearing fault diagnosis under small sample, variable load and noise conditions, and provide a new method for bearing fault diagnosis.

Introduction

2In the process of industrial production, bearing failure is one of the common causes of mechanical equipment failure.Bearing status directly affects the operation of the whole rotating machinery; the existence of bearing failure will reduce the reliability and availability of equipment.Therefore, the timely diagnosis of bearing is of great significance in the current mechanical equipment maintenance and health management [1].The traditional bearing fault diagnosis method mainly relies on manual experience and professional knowledge, but this method has some problems, such as time consumption, power consumption, and being easy to be affected by subjective factors.With the continuous progress of science and technology, the application of machine learning and artificial intelligence in various fields is more and more extensive, and has attracted wide attention.In recent years, with the continuous development of computer computing power, deep learning models with strong data-mining ability have been widely used in the field of fault diagnosis [2].In the research of bearing fault diagnosis based on a machine learning model, Song et al. [3] used Wavelet Packet Transform (WPT) to decompose bearing vibration signals, and then used a Support vector machine (SVM) to carry out fault diagnosis.Zhu et al. [4] presents a fault diagnosis method based on wavelet threshold (WT), variational mode decomposition (VMD), and random forest.Amarnath et al. [5] extracted features from sound signals, reduced the dimensionality of features through Decision Trees to select important features, and then used a C4.5 Decision Tree algorithm to classify the selected features and complete fault diagnosis.In order to build models and process features, these machine learning methods all require certain prior knowledge and assumptions, and this method of manually extracting features has great limitations.

3Deep learning has strong feature-learning ability and does not need to rely on manual feature extraction, so it has received great attention and has been widely used in the field of fault diagnosis.Fuan et al. [6] applied Convolutional Neural Network (CNN) to the fault diagnosis of rolling bearing.Eren et al. [7] proposed an adaptive one-dimensional CNN classification method which combined the feature extraction and classification blocks of the traditional mode into a special structure, learned the best features from the original vibration signals of bearing, and achieved a high degree of generalization.Song et al. [8] adopted the strategy of expanding a convolution kernel to obtain a larger receptive field, and the proposed model has good performance in terms of accuracy, noise resistance, and timeliness.For multi-channel data, Guo et al. [9] proposed a method for fault diagnosis using dimensionality reduction in multi-line subspace and then used CNN to extract fault features.Liu et al. [10] proposed a new bearing fault diagnosis algorithm based on the combination of Sparse Wavelet Decomposition and multi-scale one-dimensional CNN (1-DCNN), they used convolution kerns of different sizes to extract signal features from multiple scales.The original vibration signal of bearing is a kind of time sequence signal, and the CNN model cannot process the time information in the signal, so the recurrent neural network (RNN) sensitive to the time sequence characteristics has been widely used in the field of bearing fault diagnosis.Liu et al. [11] proposed a bearing fault diagnosis method based on RNN.A Long-Shot Term Memory (LSTM) network is a variant of an RNN that can solve the difficulty of RNN convergence and the disappearance of gradients.Zou et al. [12] combined signal processing technology with LSTM network to realize fault diagnosis in the case of small sample size.In order to combine the ability of CNN to extract spatial features and the sensitivity of LSTM to time series information, Pan et al. [13] used the series structure of 1D-CNN and LSTM to realize bearing fault diagnosis, and the diagnosis accuracy was higher than that of the single 1D-CNN model and LSTM model.However, for a too-long time series, LSTM is still prone to gradient disappearance and gradient explosion in the calculation process, and because of the cyclic structure of LSTM model, it is difficult to carry out effective parallel calculation.

4The above methods are all proposed based on the original one-dimensional vibration signal data.At present, more and more scholars are beginning to convert one-dimensional data into two-dimensional images and make use of the advantages of deep learning models in the field of computer vision to achieve better diagnosis results.Hoang et al. [14] converted one-dimensional vibration signals into two-dimensional gray images and sent the images into CNN for bearing fault diagnosis, making full use of the advantages of CNN that are good at extracting image features and achieving better diagnosis results.Zhou et al. [15] directly took the bearing vibration waveform as the two-dimensional image input of the CNN model to obtain better real-time performance.Wen et al. [16] proposed a new method to transform one-dimensional data into a two-dimensional image without any predefined parameters, eliminating the influence of expert's knowledge as much as possible.The image was trained in the LeNet-5 model based on CNN, and the proposed method which was tested on three famous datasets, including motor bearing dataset, self-priming centrifugal pump dataset, and axial piston hydraulic pump dataset, and had achieved a prediction accuracy of 99.79%, 99.481%, and 100%, respectively.Luo et al. [17] utilized the Adaptive Optimal-Kernel Time-Frequency Representation (AOK-TFR) algorithm to transform time series into time-frequency spectrogram representations, thereby simultaneously capturing signal characteristics from both time and frequency domains.

5In recent years, researchers have introduced attention mechanisms into deep learning to address the drawbacks of traditional models, such as high complexity, large number of parameters, and high computational cost.The attention mechanism is derived from human visual attention and can automatically learn to focus on different parts of the input, thus enhancing the performance of the model.Through this approach, the model can better comprehend the intrinsic structure and semantic information of the input data.Introducing attention mechanism into deep learning models for fault diagnosis tasks has also become a research trend.Guo et al. [18] proposed an attention-based CNN-BiLSTM network, which achieved a diagnosis accuracy of 96.58% even under noisy conditions.Yang et al. [19] introduced a multi-scale feature fusion CNN with an attention mechanism for bearing fault diagnosis.Common methods used to convert one-dimensional vibration signals into two-dimensional images include continuous wavelet transform (CWT) [20], short-time Fourier transform (STFT) [21], and Gramian angular field (GAF) [22].Among them, CWT and STFT are both time-frequency analysis methods, which transform signals from the time domain to the frequency domain for analysis.CWT enables multi-scale analysis of signals, thereby providing more detailed information in both time and frequency domains, making it suitable for analyzing non-stationary signals.Compared to STFT, CWT has better capability to capture the local time-frequency features of a signal, allowing for a more accurate determination of the signal's local characteristics in both time and frequency domains.However, CWT is based on a continuous scale transformation, which means that the choice of scale can impact the analysis results.GAF is an image coding method for time series data.It can effectively capture the similarity and correlation between time series by computing the inner product between vectors, revealing their dynamic relationships.However, GAF is sensitive to noise during the calculation process, which may introduce errors or affect the accuracy of the results [23].Using only one method to represent the original vibration signal may lose some signal features and may affect the model's resistance to noise, reducing the robustness of the fault diagnosis method.Therefore, using multiple methods to represent the original signal simultaneously is a better approach.

6Fault diagnosis models based on LSTM and CNN often have complex structures, limited parallel computing capabilities, and difficulties in learning more global and richer feature representations during the training process.In 2017, Vaswani et al. [24] introduced the Transformer, which utilized self-attention mechanisms to quickly capture global sensitive features of time series signals.The emergence of the Transformer sparked a revolution in the field of natural language processing.The attention mechanism can effectively address the challenge of capturing long-range dependencies in time series data and handling of the sequential nature of time series.Indeed, the Transformer architecture discards all recurrent and convolutional structures, enabling parallel computation of sequences and greatly improving training efficiency.The Vision Transformer (ViT) is the application of the Transformer model in the field of image processing.It inherits the multi-head attention mechanism of the Transformer, allowing it to capture global information from images, while abandoning the CNN-based network structures commonly used in computer vision.However, the ViT model has a high demand for training data volume [25], and in realworld scenarios, it can be challenging to acquire a sufficient amount of bearing fault data.Transfer learning is commonly used to address such issues [26,27].It leverages knowledge learned from a source domain dataset to generalize and interpret different but similar or related tasks on the target domain dataset, thereby reducing the requirement for a large number of samples in the target domain dataset [28].In recent years, some scholars have introduced transfer learning into the field of bearing fault diagnosis, demonstrating its effectiveness [29][30][31][32].

7Based on the analysis above, this paper proposed a new fault diagnosis method for improving the accuracy of bearing fault diagnosis under conditions of small samples, varying loads, and noisy operating conditions.This method incorporated image information fusion and transfer learning with ViT.The main innovations and contributions of this paper are as follows.

8( and tested in the image dataset generated using CWT, GASF, and GADF, respectively, and, compared with the proposed TLViT + IFI, it was confirmed that the proposed method has higher fault-diagnosis accuracy.

Continuous Wavelet Transform

9Suppose the function ψ ∈ L 2 (R) ∩ L 1 (R) and ψ ′ (0) = 0, a series of wavelet basis functions can be obtained from ψ by stretching and shifting, as shown in Formula (1),

10where a, b ∈ R, a ̸ = 0, ψ a,b is a continuous wavelet function, ψ(t) is the mother wavelet function, and a is the scaling factor.When a > 1, it indicates stretch in ψ(t), which is beneficial for extracting low-frequency features from the signal.When 0 < a < 1, it indicates a compression in ψ(t), which is beneficial for extracting high-frequency features from the signal.The Morlet wavelet is suitable for capturing the rapid oscillation characteristics of signals, as it exhibits similar pulse features to those of bearing faults [34].Therefore, in this paper, the Morlet wavelet was adopted as the mother wavelet function.The mathematical expression of the Morlet wavelet is [35]:

11For any function f (t) ∈ L 2 (R), its CWT is defined as [16],

12where W f (a, b) represents the wavelet transform coefficient, f , ψ a,b (t) denotes the inner product of two functions, and ψ(t) denotes the complex conjugate function of ψ(t).The wavelet transform coefficient represents the degree of matching between the signal and the wavelet basis function, that is, the amplitude information at different times and frequencies.The more similar the signal is to the wavelet basis function, the greater the coefficient value.

13After transforming the mother wavelet function through different scales, the wavelet coefficient matrix W f (a, b) can be finally obtained through the above calculation process, which can be used to represent the energy distribution of the signal at different scales and frequencies.In the process of using the python programming language, the value of wavelet coefficient matrix W f (a, b) was displayed in the image through color filling, and the time-frequency graph was obtained.

Gramian Angular Field

14Given a time series X = {x 1 , x 2 , • • • , x n } with n value, normalizing the time series between [0, 1], it can be expressed as

15, where x i is value of the normal- ized time series.The calculation is shown in Formula (4):

16By solving the inverse cosine function of the normalized time series, the time series can be converted to the angle in polar coordinates, and the time stamp can be encoded as the radius, which can be represented in polar coordinates.Since the cosine function is monotonic at 0, π 2 , the angle of mapping between time series on polar coordinates is unique.At the same time, radii of different lengths are used to represent time values in polar coordinates to maintain time dependence.

17where t i is the timestamp and N is the length of the time series.By calculating the cosine value of the sum of angles between each point or the sine value of the difference of angles, the Gramian angular sum field (GASF) and Gramian angular difference field (GADF) are formed, respectively, to reflect the time correlation of data at different time intervals.

18where I is the unit row vector.Each value in the matrix is then mapped to the grayscale level to visualize it as a GAF plot.In the GAF plot, each data point corresponds to one pixel of the image.The horizontal and vertical axes of the image represent the index of the data points, and can also represent the order of time.The gray level in an image reflects the similarity or correlation between data points.

Vision Transformer

19ViT is mainly composed of an embedding layer, an encoder (composed of L Encoder Blocks), and a classifier, and its structure is shown in Figure 1.

20The role of the embedding layer is to process the input images into the tokens required by the Transformer model.For the input image x ∈ R h×w×c , where h, w, and c are the height, width, and number of channels of the image, respectively, the image is first divided into N patches of p × p, and then each patch is linearly mapped to a one-dimensional vector, resulting in a token of length p × p × c.In this paper, this part was implemented by a convolutional layer, which directly applied a convolutional kernel of size p × p, stride p, and number of kernels p 2 × c to the input image.The output of the convolutional layer is

21between data points.

22ViT is mainly composed of an embedding layer, an encoder (composed of L En- coder Blocks), and a classifier, and its structure is shown in Figure 1. , where h , w , and c are the height, width, and number of channels of the image, respectively, the image is first divided into N patches of pp  , and then each patch is linearly mapped to a one-dimensional vector, resulting in a token of length p p c .In this paper, this part was implemented by a convolutional layer, which directly applied a convolutional kernel of size pp  , stride p , and number of kernels Then, a special category label Then, a special category label x class ∈ R 1×(p 2 ×c) was inserted into x p , and the shape of the concatenated token was [N + 1, p 2 × c].In order to make full use of the location information, the ViT model introduced a learnable position encoding matrix E pos .The sum of position coding information E pos and feature vector space was used as input z 0 of the Transformer Encoder:

23The Transformer encoder consists of L identical stacked modules, and its internal structure is shown in Figure 2a.It mainly consists of two sub-layers, namely multi-head selfattention layer (MSA) and multilayer perception (MLP).Before data enters each sublayer, it was normalized using a normalization layer, and then fused by adding the output of each sublayer to the input of that sublayer.The encoder was set to L layers, and the computation process of the l-th layer is as follows:

24The encoding result after L layers of encoder is

25ViT model adopts a multi-head self-attention mechanism, the multi-head self-attention layer uses multiple self-attention heads for parallel calculation, and finally splices the output of all self-attention heads together to get the result.The multilayer perception (MLP) is mainly composed of the fully connected layer, the GELU activation function, and the dropout layer, and its structure is shown in Figure 2b.

26The classifier applies a nonlinear transformation to the encoder's output and produces the final result of fault diagnosis.

27'' ( ( )) , 1,...,

28The encoding result after L layers of encoder is ViT model adopts a multi-head self-attention mechanism, the multi-head self-attention layer uses multiple self-attention heads for parallel calculation, and finally splices the output of all self-attention heads together to get the result.The multilayer perception (MLP) is mainly composed of the fully connected layer, the GELU activation function, and the dropout layer, and its structure is shown in Figure 2b.

29The classifier applies a nonlinear transformation to the encoder's output and produces the final result of fault diagnosis.

Transfer Learning

30Transfer learning is a machine learning technique that speeds up and improves the learning process by applying knowledge and model parameters gained from one task to another related task.Specifically, transfer learning leverages the knowledge learned from the source domain to assist learning in the target domain, aiming to enhance the model's generalization performance in the target domain.Due to the fact that it is difficult to have bearing working in a faulty state for a long period of time in real operating conditions, the volume of bearing fault data samples in actual operating conditions is relatively small, which is quite different from the 14 million data samples in ImageNet-21k.Indeed, ViT models, like many other deep learning models, tend to rely on a larger amount of training data to achieve better performance.When the dataset is limited in size, it can be challenging to train a ViT model that exhibits optimal performance.To address this issue, this paper introduced a pre-trained ViT model trained on the ImageNet-21k dataset as the source model, and then the pre-trained model already was capable of extracting deep image features.Subsequently, a new model was created to be identical to the source model except for the output, which is changed to match the number of bearing fault categories in the target model.Finally, the target model was trained by inputting two-dimensional images generated from bearing vibration signals.The fine-tuned ViT transfer learning model can significantly reduce the training cost, improve the model's generalization ability when the dataset is relatively small, and lower the required data cost.

Dataset

31The rolling bearing dataset used in this paper was derived from the Case Western Reserve University (CWRU) rolling bearing dataset [33].An accelerometer sensor was used to collect the vibration acceleration signals of the bearing, which was installed near the bearing housing on the motor drive end, with a sampling frequency of 12 kHz.According to the different faulty parts, the bearing status is divided into four categories: rolling element fault, inner race fault, outer race fault, and normal operation state.The faulty bearing was installed in the test motor and makes the motor work under different loads, and the vibration data under different motor loads was recorded.The faulty signals collected in this paper were obtained from the driving end deep groove ball bearing SKF6205 under three different operating conditions with motor loads of 1~3 HP.Different motor loads correspond to different motor speeds, and the corresponding relationship between motor loads and motor speeds is shown in Table 1.The signals were collected in the form of acceleration data, sampled at a frequency of 12 kHz.The failure mode of the bearing was pitting corrosion.

Experimental Data Preparation

32In this paper, the sliding time window method was used to perform overlapping sampling on the original vibration signals to reduce the risk of overfitting in the model.

33The accuracy of the model will increase with the increase of time window length, but a long time window length will make the calculation more complex and have little impact on the improvement of accuracy.Currently, the commonly used time window length is 1024, and this length had been proven to be a suitable time window length [36,37].According to reference [25,38], the optimal input image size for the TLVIT model is 224 × 224.Therefore, in order to ensure that the pre-trained position encoding can continue to be used, this paper set the input image size of the model to 224 × 224.According to the calculation method of GAF, when the sliding time window length is 1120, the size of the generated GAF image is 1120 × 1120, which is exactly an integer multiple of the input image size selected in this article.Therefore, while ensuring the accuracy of the model, in order to facilitate the compression of image size by using the Python programming language, this article ultimately chose 1120 as the length of the time window.The sliding window length selected in the reference literature is 1024, with a sliding step size of 341 [37].In this paper, the sliding step size is adjusted to 350 accordingly, referencing its window overlap rate.As shown in Figure 3, the blue box indicates the nth data sample, while the red box represents the (n+1)th data sample.

34To ensure consistency in the number of channels for the ViT model, the sampled data were processed by using GASF, GADF, and CWT.These methods generated three pseudocolor images, which can be used as a control group in the study.The three pseudo-color images were converted to grayscale images, and an IFI was created by concatenating these grayscale feature images in the order of the RGB channels.It is as shown in Figure 3.

35To ensure consistency in the number of channels for the ViT model, the sampled data were processed by using GASF, GADF, and CWT.These methods generated three pseudo-color images, which can be used as a control group in the study.The three pseudocolor images were converted to grayscale images, and an IFI was created by concatenating these grayscale feature images in the order of the RGB channels.It is as shown in Figure 3. were processed by using GASF, GADF, and CWT.These methods generated three pseudo-color images, which can be used as a control group in the study.The three pseudocolor images were converted to grayscale images, and an IFI was created by concatenating these grayscale feature images in the order of the RGB channels.It is as shown in Figure 3.

Model Training

36The experiments described in the paper were implemented by using the TensorFlow 2.0 deep learning framework.TensorFlow 2.0 is a machine learning and deep learning framework developed by Google (Mountain View, CA, USA).It makes the development and deployment of machine learning models easier, more efficient, and more intuitive [39].The data processing process in this paper was carried out on the Intel Core i7-12700H processor (manufactured by Intel Corporation in Santa Clara, CA, USA), and the model training process was carried out on the RTX3060 graphics card (manufactured by NVIDIA Corporation in Santa Clara, CA, USA).The Python version used was 3.8.In the experiment, firstly, data with motor loads of 1-3 HP were selected, and IFIs were generated form these three one-dimensional datasets by using the aforementioned method; then, three different two-dimensional image datasets, A, B, and C were obtained, each dataset containing 1600 samples with an equal number of samples for each fault category.The dataset was randomly partitioned into training, validation, and testing sets in a 6:2:2 ratios.To ensure the reproducibility of the partitioning results, a random seed was used to record the random partitioning process.The ViT model based on transfer learning (TLViT) was then fine-tuned and tested on the partitioned datasets separately.To avoid the influence of randomness in the experimental results, the experiment was repeated five times.Each time, a different random seed was used.The average accuracy on the testing set over the five repetitions was taken as the final result.To validate the performance of the TLViT model, a performance comparison experiment was conducted between different models.ResNet50 and ViT were used as the benchmark models, and they were trained and tested by using IFIs.In order to validate the effectiveness of the image fusion methods used, TLViT + CWT, TLViT + GASF, and TLViT + GADF were used as control experiments.In this study, all experiments were performed more than five times, and the average of the test results was taken as the final result.Based on previous experience, the training process of the ViT model typically stabilized after around 15 epochs.To balance the time cost of experiments and the stability of final training results, all experiments in this paper were set to run for 30 epochs with a batch size of 4. The stochastic gradient descent (SGD) optimization algorithm was selected [40], and during the training process, the weights of the model were recorded as the best weights when the validation loss is the lowest.These best weights were then used for testing on the testing set.

37To observe the training process of each model more clearly, taking one training process of a model on dataset A as an example, the variation of the model's loss and accuracy during training is shown in Figure 5. Figure 5h shows the comparison curve of the change of diagnosis accuracy of each model on the verification set during this training process, and the performance of each model can be preliminarily seen from the figure.To accurately evaluate the performance of each method, Table 2 provides the average accuracy on the testing set after five rounds of training and testing for each method on datasets A, B, and C. In the model performance comparison experiment, the ViT + IFI method achieved an accuracy of only 99.12% on the testing set.The performance of ResNet50 + IFI surpasses that of ViT + IFI, with an accuracy of 99.72% on testing set.This indicates that the performance of the ViT model cannot be fully utilized without pre-training on large datasets.As shown in Figure 5c,d To verify the effectiveness of the proposed IFI, the TLViT model was trained and tested on pseudo-color image datasets generated using GADF, GASF, and CWT methods, respectively.The reason for using false color images is that the ViT model is greatly affected by the number of input image channels, so the three-channel image input is uniformly used in the controlled experiment.The TLViT + CWT model also achieved 100% diagnosis accuracy on the testing set, while the TLViT + GADF and TLViT + GASF performed less effectively, with accuracies of only 99.30% and 98.70% on the testing set, respectively.This indicates that using different methods to generate two-dimensional images from one-dimensional vibration signals results in varying diagnosis performance of the models.This difference in performance led to TLViT + GASF performing worse than ViT + IFI, highlighting the superiority of the proposed IFI.

Experimental Analysis of Small Samples

38In practical working conditions, acquiring a substantial amount of fault data often poses challenges.Hence, it is imperative to ensure that fault diagnosis methods proposed under limited training data can uphold a commendable level of diagnostic accuracy.In this experiment, only the data with a motor load of 1HP were utilized to train the model by using four datasets comprising varying numbers of training samples.The dataset sizes were 1000, 500, 300, and 100, respectively, while each dataset consisted of 1152 test data samples.It is noteworthy that an equal number of training and test samples were allocated for each fault class within every dataset.

39In the model performance comparison experiment, As shown in Figure 6, when the training sample is 1000, each method can achieve higher accuracy.In order to more intuitively observe the fault diagnosis ability of the proposed methods under small sample conditions and the diagnosis of various kinds of faults, the test results of a training when the number of training samples of each method was 100 were visualized, and the confusion matrix was drawn.The X and Y axes in Figure 7 represent the predicted and actual categories, respectively.In order to more intuitively observe the fault diagnosis ability of the proposed methods under small sample conditions and the diagnosis of various kinds of faults, the test results of a training when the number of training samples of each method was 100 were visualized, and the confusion matrix was drawn.The X and Y axes in Figure 7 represent the predicted and actual categories, respectively.Appl.Sci.2024, 14, 2706 14 of 18

Experimental Analysis of Variable Motor Load

40As can be seen from Table 2, each model has achieved high diagnosis accuracy under constant load.However, in the actual work process, the load of the motor often changes; this means that the speed of the bearing changes, so it is very important that the model can still be effectively diagnosed under the condition of variable motor load.In order to test the performance of the model proposed in this paper under varying loads, three datasets A, B, and C (corresponding to three loads of 1HP, 2HP, and 3HP, respectively), were used for training and testing.As shown in Figure 8, A→B means that A is used as the training set and B is used as the test set, and the same is true for other cases.AVG represents the average accuracy of the model under these variable conditions.

41training set and B is used as the test set, and the same is true for other cases.AVG represents the average accuracy of the model under these variable conditions.

42As can be seen from Figure 8, the average diagnosis accuracy of ViT + IFI model under variable load conditions is only 88.08%, lower than the average diagnosis accuracy of Resnet50 + IFI of 94.88%.The advantages of the ViT model have not been reflected, but the performance of the TLViT + IFI model, which uses a large amount of data for pretraining, has been significantly improved, and the average diagnosis accuracy under variable load conditions has reached 98.96%, which is more than 10% higher than that of ViT + IFI.The average diagnosis accuracy of TLResnet50 + IFI is 96.22%, indicating that TLViT model also has better performance under variable load conditions than TLResnet50.The average diagnosis accuracy of TLViT + GASF, TLViT + GADF, and TLViT + CWT models by using only one image as model input was 88.57%, 88.63%, and 96.30%, respectively.Moreover, the difference between the highest accuracy and the lowest accuracy is 7.99%, 7.81%, and 5%, respectively, while the average diagnosis accuracy of the TLViT + IFI method used in our study is 98.96%, and the difference between the highest accuracy and the lowest accuracy is 2.35%, indicating that the proposed method had higher diagnosis accuracy and better generalization.

Experimental Analysis of Anti-Noise Ability

43In previous experiments, the TLViT + IFI method performed slightly better than TLViT + CWT method under small sample training and variable load conditions, but the gap between the two is not obvious.The anti-noise capability of the proposed method was further tested.This experiment was only to verify the noise resistance of the model, so only the samples in dataset A were used for training, and white Gaussian noise with different signal-to-noise ratios (SNRs) was added to the original data corresponding to As can be seen from Figure 8, the average diagnosis accuracy of ViT + IFI model under variable load conditions is only 88.08%, lower than the average diagnosis accuracy of Resnet50 + IFI of 94.88%.The advantages of the ViT model have not been reflected, but the performance of the TLViT + IFI model, which uses a large amount of data for pre-training, has been significantly improved, and the average diagnosis accuracy under variable load conditions has reached 98.96%, which is more than 10% higher than that of ViT + IFI.The average diagnosis accuracy of TLResnet50 + IFI is 96.22%, indicating that TLViT model also has better performance under variable load conditions than TLResnet50.The average diagnosis accuracy of TLViT + GASF, TLViT + GADF, and TLViT + CWT models by using only one image as model input was 88.57%, 88.63%, and 96.30%, respectively.Moreover, the difference between the highest accuracy and the lowest accuracy is 7.99%, 7.81%, and 5%, respectively, while the average diagnosis accuracy of the TLViT + IFI method used in our study is 98.96%, and the difference between the highest accuracy and the lowest accuracy is 2.35%, indicating that the proposed method had higher diagnosis accuracy and better generalization.

44In previous experiments, the TLViT + IFI method performed slightly better than TLViT + CWT method under small sample training and variable load conditions, but the gap between the two is not obvious.The anti-noise capability of the proposed method was further tested.This experiment was only to verify the noise resistance of the model, so only the samples in dataset A were used for training, and white Gaussian noise with different signal-to-noise ratios (SNRs) was added to the original data corresponding to dataset A, and then the data added with noise was converted into images, respectively, as the data of the test set.The SNR is defined as follows SNR = 10 × lg P raw P noise , (11) where P raw is the power of the original signal and P noise is the power of the noise.From this formula, it can be seen that the SNR is inversely proportional to P noise .The smaller the SNR is, the more serious the pollution in the original signal is.

45In order to verify that the IFI used in this paper has better noise resistance, only the TLViT model was used in the noise resistance comparison experiment.Figure 9

46where raw P is the power of the original signal and noise P is the power of the noise.From this formula, it can be seen that the SNR is inversely proportional to noise P .The smaller the SNR is, the more serious the pollution in the original signal is.

47In order to verify that the IFI used in this paper has better noise resistance, only the TLViT model was used in the noise resistance comparison experiment.Figure 9

Conclusions

48A TLViT + IFI fault diagnosis method based on image information fusion was proposed to solve the problem of variable load conditions, less dataset, and noise in the working environment.The original signal was transformed into a grayscale image by using CWT, GASF, and GADF.This fused image effectively represented the signal characteristics in a comprehensive manner.Subsequently, the obtained IFI was input into the ViT for fault diagnosis based on transfer learning training.Consequently, the following conclusions can be derived.

49In the model performance comparison experiment, the TLViT model trained based on transfer learning outperformed TLResnet50 under varying loads and small samples.

50A TLViT + IFI fault diagnosis method based on image information fusion was proposed to solve the problem of variable load conditions, less dataset, and noise in the working environment.The original signal was transformed into a grayscale image by using CWT, GASF, and GADF.This fused image effectively represented the signal characteristics in a comprehensive manner.Subsequently, the obtained IFI was input into the ViT for fault diagnosis based on transfer learning training.Consequently, the following conclusions can be derived.

51In the model performance comparison experiment, the TLViT model trained based on transfer learning outperformed TLResnet50 under varying loads and small samples.When the number of training samples is 100, the fault diagnosis accuracy on the test set is 97.34%, indicating that this method can be applied to the situation with few training samples.The proposed method has an average diagnosis accuracy of 98.96% in the variable load condition, which is higher than other models, indicating that the fault diagnosis model trained by this method has good generalization.

52The proposed IFI is more effective than the single image coding method.The test results of anti-noise performance show that when the SNR is −4 dB, the TLViT model is difficult to accurately diagnose the faults in the images generated by the control group method.However, the TLViT + IFI method can achieve a diagnosis accuracy of 69.10% on test set.It can be seen that IFI has higher anti-noise ability than the pseudo-color images generated using CWT, GADF, and GASF.

53The above results show that the proposed TLViT + IFI fault diagnosis method has strong generalization and robustness under variable load, small sample, and noise environment, and can provide an effective idea for the research of rolling bearing fault diagnosis.Theoretically, this method can be used to diagnose the fault information in various time series forms, but only the vibration signal of the bearing, namely the acceleration sensor data, is discussed in this paper.In this paper, only the CWRU dataset was used for training and verification, and the bearing types and working conditions in the dataset were limited.In the process of converting time series data into IFIs, three methods, GASF, GADF, and CWT, need to be used first to generate grayscale maps, which increases the calculation cost.To solve the above problems, the author will carry out the following work in the follow-up research.(1) Explore the effect of combining other types of sensor data (such as temperature and sound signals) with the method proposed in this paper.(2) Validate the proposed method in more realistic and complex work environments.(3) The parameter volume of the Resnet50 model is 25.6 M [41], while the parameter volume of the ViT model used in this paper is 86M [25]; therefore, the lightweight treatment of the ViT model will be carried out in subsequent research, and the goal is to reduce its parameter volume by 50%.

Figure 1 .

54Figure 1.The structure of Vision Transformer.The role of the embedding layer is to process the input images into the tokens required by the Transformer model.For the input image h w c xR  

55to the input image.The output of the convolutional layer is

56order to make full use of the location infor- mation, the ViT model introduced a learnable position encoding matrix pos E .The sum of position coding information pos E and feature vector space was used as input 0 z of the Transformer Encoder:

57Figure 1.The structure of Vision Transformer.

Figure 2 .

58Figure 2. Transformer Encoder.(a) Encoder block.(b) MLP block.

59Figure 2. Transformer Encoder.(a) Encoder block.(b) MLP block.

Figure 3 .

60Figure 3.The process of converting time series data to IFI.

Figure 4

61Figure 4 illustrates the fault diagnosis process by using the TLViT + IFI model.It involves converting the one-dimensional vibration signal into an IFI, partitioning the data into training, validation, and testing sets as required, training the ViT model by using transfer learning, and inputting the data samples from the test set into the trained TLViT model to obtain diagnosis results.

Figure 4 .

62Figure 4. Fault diagnosis process of the TLViT + IFI.

Figure 3 .

63Figure 3.The process of converting time series data to IFI.

Figure 4

64Figure 4 illustrates the fault diagnosis process by using the TLViT + IFI model.It involves converting the one-dimensional vibration signal into an IFI, partitioning the data into training, validation, and testing sets as required, training the ViT model by using transfer learning, and inputting the data samples from the test set into the trained TLViT model to obtain diagnosis results.

Figure 3 .

65Figure 3.The process of converting time series data to IFI.

Figure 4

66Figure 4 illustrates the fault diagnosis process by using the TLViT + IFI model.It involves converting the one-dimensional vibration signal into an IFI, partitioning the data into training, validation, and testing sets as required, training the ViT model by using transfer learning, and inputting the data samples from the test set into the trained TLViT model to obtain diagnosis results.

Figure 4 .

67Figure 4. Fault diagnosis process of the TLViT + IFI.Figure 4. Fault diagnosis process of the TLViT + IFI.

68Figure 4. Fault diagnosis process of the TLViT + IFI.Figure 4. Fault diagnosis process of the TLViT + IFI.

69, the TLResnet50 + IFI and TLViT + IFI models have high diagnosis accuracy at the beginning of training, indicating that the pre-trained models already have a certain fault diagnosis capability.The fact that both models ultimately achieved 100% diagnosis accuracy on the testing set demonstrates the effectiveness of transfer learning.This also indicates that it is difficult to compare the performance of the two models when there is an ample amount of training data in the target domain.

19 Figure 5 .

70Figure 5. Cont.

Figure 5 .

71Figure 5. Accuracy and loss of training set and validation set during training.(a) ViT + IFI, (b) Res-net50 + IFI, (c) TLViT + IFI, (d) TLResnet50 + IFI, (e) TLViT + CWT, (f) TLViT + GADF, (g) TLViT + GASF, and (h).Comparison of accuracy changes of each model on validation set.

72Figure 5. Accuracy and loss of training set and validation set during training.(a) ViT + IFI, (b) Resnet50 + IFI, (c) TLViT + IFI, (d) TLResnet50 + IFI, (e) TLViT + CWT, (f) TLViT + GADF, (g) TLViT + GASF, and (h).Comparison of accuracy changes of each model on validation set.

73With the decrease of training sample size, the fault diagnosis accuracy of all methods decreased, among which ViT + IFI model is the most affected, only 86.54% when the training sample size is 100, and the fault diagnosis ability decreased significantly.With the same number of training samples, the fault diagnosis accuracy of the Resnet50 + IFI model is slightly higher than that of the ViT + IFI model, and the diagnosis accuracy reaches 88.80% when the training sample size is 100, indicating that the ViT model without pre-training of large data sets has no advantage in diagnosis accuracy compared with the Resnet50 model.

19 Figure 6 .

74Figure 6.Diagnosis accuracy under different number of training samples.

Figure 6 .

75Figure 6.Diagnosis accuracy under different number of training samples.The TLViT model based on transfer learning solves this problem.As shown in Figure 6, when the number of training samples in the target domain is 1000, 500, and 300, the diagnosis accuracy of TLViT model on the test set is slightly higher than that of TLResnet50 model, but there is no obvious difference between them.When there are 100 training samples in the target domain, TLViT can achieve 97.34% fault diagnosis accuracy on test set, while TLResnet50 + IFI diagnosis accuracy is only 92.76%, indicating that after pretraining on the same large data set, the fault diagnosis accuracy of TLresnet50 + IFI is only 92.76%.The performance of ViT model in this bearing fault diagnosis task exceeds that of Resnet50, which is more suitable for the case of less fault samples in the target domain.In the experiment to test the impact of image data generation on fault diagnosis methods, the fault diagnosis accuracy of each model gradually decreases with the reduction of the training sample size.Among them, TLViT + GADF and TLViT + GASF are most affected by the reduction of training sample size.When there are only 100 training data, the diagnosis accuracy on test set is only 75.87% and 75.61%.When the original data are small, it is not effective to convert one-dimensional vibration data into GAF images to train the model.Compared with TLViT + GADF and TLViT + GASF, TLViT + CWT has obvious advantages.When the amount of training data are only 100, the fault diagnosis accuracy on test set can reach 95.63%, but it is still lower than the 97.34% of TLViT + IFI.It shows that the IFI proposed in this paper can reduce the requirement of training data.It can be seen that TLViT + IFI model has strong diagnosis ability in the case of small samples.In order to more intuitively observe the fault diagnosis ability of the proposed methods under small sample conditions and the diagnosis of various kinds of faults, the test results

19 Figure 7 .

76Figure 7. Confusion matrix of test results.(a) Resnet50 + IFI, (b) TLResnet50 + IFI, (c) ViT + IFI, (d) TLViT + IFI, (e) TLViT + CWT, (f) TLViT + GADF, and (g) TLViT + GASF.

Figure 7 .

77Figure 7. Confusion matrix of test results.(a) Resnet50 + IFI, (b) TLResnet50 + IFI, (c) ViT + IFI, (d) TLViT + IFI, (e) TLViT + CWT, (f) TLViT + GADF, and (g) TLViT + GASF.

Figure 8 .

78Figure 8.The diagnosis accuracy of each method under variable load condition.

79Figure 8.The diagnosis accuracy of each method under variable load condition.

80shows the results of TLViT model training on different image datasets and then testing under different SNR.It can be seen from the test results that images containing only one kind of image information have poor noise resistance.Under the influence of noise with a SNR of −4dB, the TLViT model is difficult to diagnose fault images containing only one kind of image information.The diagnosis accuracy of TLViT + CWT, TLViT + GASF, and TLViT + GADF are 29.60%,46.27%, and 43.66%, respectively, and almost all lost the fault diagnosis capability.However, the TL_VIT + IFI proposed in this article still has a diagnosis accuracy of 69.10%, and the diagnosis accuracy is as high as 99.22% when the SNR is 8dB.It can be seen that the proposed image information fusion method greatly improves the anti-noise capability of the fault diagnosis model, because the fusion of multiple image information makes IFI have richer features and is not susceptible to noise.

81shows the results of TLViT model training on different image datasets and then testing under different SNR.It can be seen from the test results that images containing only one kind of image information have poor noise resistance.Under the influence of noise with a SNR of -4dB, the TLViT model is difficult to diagnose fault images containing only one kind of image information.The diagnosis accuracy of TLViT + CWT, TLViT + GASF, and TLViT + GADF are 29.60%,46.27%, and 43.66%, respectively, and almost all lost the fault diagnosis capability.However, the TL_VIT + IFI proposed in this article still has a diagnosis accuracy of 69.10%, and the diagnosis accuracy is as high as 99.22% when the SNR is 8dB.It can be seen that the proposed image information fusion method greatly improves the anti-noise capability of the fault diagnosis model, because the fusion of multiple image information makes IFI have richer features and is not susceptible to noise.

Figure 9 .

82Figure 9.The diagnosis accuracy of each method under different SNR.

83Figure 9.The diagnosis accuracy of each method under different SNR.

841)In response to the problem that a single image generation method is unable to describe the features of time-domain vibration signals from multiple perspectives, resulting in poor generalization and noise resistance of the fault diagnosis method, this paper

Table 1 .

85Motor loads and motor speeds.

Table 2 .

86Average accuracy on test set.

87Average accuracy on test set.

Diagnosis Method Average Accuracy on the Test Set

88Appl.Sci.2024,14, x FOR PEER REVIEW 16 of 19dataset A, and then the data added with noise was converted into images, respectively, as the data of the test set.The SNR is defined as follows

참고문헌 37건

  1. Large-Scale Machine Learning with Stochastic Gradient Descent 2010 10.1007/978-3-7908-2604-3_16
  2. FEATURE EXTRACTION BASED ON MORLET WAVELET AND ITS APPLICATION FOR MECHANICAL FAULT DIAGNOSIS Journal of Sound and Vibration · Elsevier BV · 2000 10.1006/jsvi.2000.2864
  3. Exploiting sound signals for fault diagnosis of bearings using decision tree Measurement · Elsevier BV · 2012 10.1016/j.measurement.2012.11.011
  4. Wind turbine fault diagnosis based on Morlet wavelet transformation and Wigner-Ville distribution Renewable Energy · Elsevier BV · 2010 10.1016/j.renene.2010.05.012
  5. A theory of learning from different domains Machine Learning · Springer Science+Business Media · 2009 10.1007/s10994-009-5152-4
  6. ImageNet: A large-scale hierarchical image database 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2009 10.1109/cvpr.2009.5206848
  7. A Survey on Transfer Learning IEEE Transactions on Knowledge and Data Engineering · IEEE Computer Society · 2009 10.1109/tkde.2009.191
  8. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  9. A review on signal processing techniques utilized in the fault diagnosis of rolling element bearings Tribology International · Elsevier BV · 2016 10.1016/j.triboint.2015.12.037
  10. An adaptive deep convolutional neural network for rolling bearing fault diagnosis Measurement Science and Technology · IOP Publishing · 2017 10.1088/1361-6501/aa6e22
  11. Convolutional Neural Network Based Bearing Fault Diagnosis Lecture notes in computer science · Springer Science+Business Media · 2017 10.1007/978-3-319-63312-1_9
  12. A New Convolutional Neural Network-Based Data-Driven Fault Diagnosis Method IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tie.2017.2774777
  13. A Method Using Numerical Simulation and Support Vector Machine to Detect Faults in Bearings 2017 International Conference on Sensing, Diagnostics, Prognostics, and Control (SDPC) · 2017 10.1109/sdpc.2017.118
  14. Fault diagnosis of rolling bearings with recurrent neural network-based autoencoders ISA Transactions · Elsevier BV · 2018 10.1016/j.isatra.2018.04.005
  15. A Generic Intelligent Bearing Fault Diagnosis System Using Compact Adaptive 1D CNN Classifier Journal of Signal Processing Systems · Springer Science+Business Media · 2018 10.1007/s11265-018-1378-3
  16. 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
  17. Deep Learning Algorithms for Bearing Fault Diagnostics—A Comprehensive Review IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2972859
  18. Rolling Bearing Real Time Fault Diagnosis Using Convolutional Neural Network 2019 10.1109/ccdc.2019.8833222
  19. Bearing Fault Diagnosis Method Based on EEMD and LSTM International Journal of Computers Communications & Control · Agora University · 2020 10.15837/ijccc.2020.1.3780
  20. Fault Diagnosis of Rolling Bearing Based on WT-VMD and Random Forest 2020 10.1109/ccdc49329.2020.9164674
  21. Fault diagnosis of multi-channel data by the CNN with the multilinear principal component analysis Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.108513
  22. A bearing fault diagnosis model based on CNN with wide convolution kernels Journal of Ambient Intelligence and Humanized Computing · Springer Science+Business Media · 2021 10.1007/s12652-021-03177-x
  23. Subdomain Adaptation Transfer Learning Network for Fault Diagnosis of Roller Bearings IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tie.2021.3108726
  24. Bearing Fault Diagnosis Based on Attentional Multi-scale CNN Lecture notes in computer science · Springer Science+Business Media · 2021 10.1007/978-3-030-89134-3_3
  25. A Novel Fault Diagnosis Approach for Rolling Bearing Based on CWT and Adaptive Sparse Representation Shock and Vibration · Hindawi Publishing Corporation · 2022 10.1155/2022/9079790
  26. 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
  27. Multisource Domain Feature Adaptation Network for Bearing Fault Diagnosis Under Time-Varying Working Conditions IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3168903
  28. A Deep Transfer Learning Fault Diagnosis Method Based on WGAN and Minimum Singular Value for Non-Homologous Bearing IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3160533
  29. An Improved Convolutional-Neural-Network-Based Fault Diagnosis Method for the Rotor–Journal Bearings System Machines · Multidisciplinary Digital Publishing Institute · 2022 10.3390/machines10070503
  30. Rotating machinery fault diagnosis based on transfer learning and an improved convolutional neural network Measurement Science and Technology · IOP Publishing · 2022 10.1088/1361-6501/ac7d3d
  31. One Dimensional Convolutional Neural Networks Using Sparse Wavelet Decomposition for Bearing Fault Diagnosis IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3199381
  32. Bearing fault diagnosis based on Gramian angular field and DenseNet Mathematical Biosciences & Engineering · Arizona State University · 2022 10.3934/mbe.2022656
  33. Rolling Bearing Fault Diagnosis Method Based on Attention CNN and BiLSTM Network Neural Processing Letters · Springer Science+Business Media · 2022 10.1007/s11063-022-11013-2
  34. An Intelligent Fault Diagnosis Method of Rolling Bearings Based on Short-Time Fourier Transform and Convolutional Neural Network Journal of Failure Analysis and Prevention · Springer Science+Business Media · 2023 10.1007/s11668-023-01616-9
  35. A Multi-Information Fusion ViT Model and Its Application to the Fault Diagnosis of Bearing with Small Data Samples Machines · Multidisciplinary Digital Publishing Institute · 2023 10.3390/machines11020277
  36. Role of image feature enhancement in intelligent fault diagnosis for mechanical equipment: A review Engineering Failure Analysis · Elsevier BV · 2023 10.1016/j.engfailanal.2023.107815
  37. Bearing fault diagnosis method based on the Gramian angular field and an SE-ResNeXt50 transfer learning model Insight - Non-Destructive Testing and Condition Monitoring · British Institute of Non-Destructive Testing · 2023 10.1784/insi.2023.65.12.695