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

Rolling bearing fault diagnosis based on Gramian angular difference field and improved channel attention model

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

기본 정보

저자
  1. Lunpan Wei — College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin, Heilongjiang, China
  2. Xiuyan Peng — College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin, Heilongjiang, China
  3. Yunpeng Cao — College of Power and Energy Engineering, Harbin Engineering University, Harbin, Heilongjiang, China
DOI
10.7717/peerj-cs.1807
저널
PeerJ Computer Science
발행년도
2024
발행기관
PeerJ, Inc.
피인용수
15
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.7717/peerj-cs.1807
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4390984177

평가 내용

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

초록

Fault diagnosis of rolling bearings is a critical task, and in previous research, convolutional neural networks (CNN) have been used to process vibration signals and perform fault diagnosis. However, traditional CNN models have certain limitations in terms of accuracy. To improve accuracy, we propose a method that combines the Gramian angular difference field (GADF) with residual networks (ResNet) and embeds frequency channel attention module (Fca) in the ResNet to diagnose rolling bearing fault. Firstly, we used GADF to convert the signals into RGB three-channel fault images during data preprocessing. Secondly, to further enhance the performance of the model, on the foundation of the ResNet we embedded the frequency channel attention module with discrete cosine transform (DCT) to form Fca, to effectively explores the channel information of fault images and identifies the corresponding fault characteristics. Finally, the experiment validated that the accuracy of the new model reaches 99.3% and the accuracy reaches 98.6% even under an unbalanced data set, which significantly improves the accuracy of fault diagnosis and the generalization of the model.

본문 40,351자

본문 펼치기
Submitted 25 September 2023 Accepted 18 December 2023 Published 18 January 2024 Corresponding author Yunpeng Cao, [caoyunpeng0908@163.com](mailto:caoyunpeng0908@—163.—com) [Academic editor](https://peerj.com/academic-boards/editors/) [Zhiwei](https://peerj.com/academic-boards/editors/) Gao Additional Information and Declarations can be found on page 17 DOI [10.7717/peerj-cs.1807](http://dx.doi.org/10.7717/peerj-cs.1807) Copyright 2024 Wei et al. [Distributed under](http://www.creativecommons.org/licenses/by/4.0/) Creative [Commons](http://www.creativecommons.org/licenses/by/4.0/) CC-BY 4.0 # Rolling bearing fault diagnosis based on Gramian angular difference field and improved channel attention model Lunpan Wei <sup>1</sup>, Xiuyan Peng <sup>1</sup> and Yunpeng Cao <sup>2</sup> 1 College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin, Heilongjiang, China 2 College of Power and Energy Engineering, Harbin Engineering University, Harbin, Heilongjiang, China ## ABSTRACT Fault diagnosis of rolling bearings is a critical task, and in previous research, convolutional neural networks (CNN) have been used to process vibration signals and perform fault diagnosis. However, traditional CNN models have certain limitations in terms of accuracy. To improve accuracy, we propose a method that combines the Gramian angular difference field (GADF) with residual networks (ResNet) and embeds frequency channel attention module (Fca) in the ResNet to diagnose rolling bearing fault. Firstly, we used GADF to convert the signals into RGB three-channel fault images during data preprocessing. Secondly, to further enhance the performance of the model, on the foundation of the ResNet we embedded the frequency channel attention module with discrete cosine transform (DCT) to form Fca, to effectively explores the channel information of fault images and identifies the corresponding fault characteristics. Finally, the experiment validated that the accuracy of the new model reaches 99.3% and the accuracy reaches 98.6% even under an unbalanced data set, which significantly improves the accuracy of fault diagnosis and the generalization of the model. Subjects Artificial Intelligence, Data Mining and Machine Learning, Neural Networks Keywords Fault diagnosis, Rolling bearings, Gramian Angular Difference Field, Channel attention module, Residual networks ## INTRODUCTION Rolling bearings, as typical components of rotating machinery, play an indispensable role in practical equipment and production. Because they normally work under complex working conditions such as load variations, they are prone to faults, resulting in costly downtime and catastrophic consequences. To ensure the normal operation of mechanical equipment, real-time monitoring (Zhang et al., 2019) of vibration signals generated by rotating machinery is necessary. CNN is a type of deep learning network that plays a crucial role in the field of fault diagnosis by utilizing its unique convolutional layers to extract distinct features. In the study conducted by Chen, Zhang & Gao (2021), they employed a one-dimensional convolutional neural network (1D-CNN) and a long short-term memory network (LSTM) to process signals, and achieved excellent classification results through training and classification tasks. Wang et al. (2020) first de-noised the signal, then input the processed signal into CNN for automatic feature extraction, and finally performed feature partitioning and classification. However, these methods have limitations in solely deepening the network layers for feature extraction, as they may suffer from degradation issues. To address this, the ResNet was introduced. Kong & Wang (2021) introduced the residual structure into the Inception network to form a parallel structure, to alleviate the degradation problem caused by network deepening, which fully demonstrated the performance of fault classification. Che et al. (2021) proposed a novel approach that utilizes a deep residual contraction network to handle multiple faults and long-term sequences of vibration signals in rolling bearing systems. This method demonstrates excellent robustness in dealing with noisy samples and maintains a high accuracy in fault diagnosis. The emergence of attention mechanisms further enhances the feature extraction capability of residual networks. Xie, Wang & Shi (2023) proposed a diagnostic method that integrates multi-scale convolution and attention mechanisms, which can maintain a high diagnostic accuracy even under variable load and noise interference conditions. Li, Wang & Xie (2023) introduced the Convolutional Block Attention Module (CBAM) into residual networks, of which the result shows that this method has a simple structure, easy to implement, and can effectively extract features. However, such methods only utilize the original signals as inputs, which may lead to incomplete feature extraction. Therefore, Zhu et al. (2022) proposed a novel approach where they transformed a series of fault signals into two-dimensional gray-scale images using wavelet transform. And then they feed these images into a residual attention network for classification. This network can automatically learn and highlight the key features in image input, so as to improve the accuracy classification. On the other side, Qiu, Tao & Cheng (2022) employed a different approach. First, they transformed the vibration signals of rolling bearings into two-dimensional frequency domain feature gray-scale images using fast Fourier transform. Then they utilized an auxiliary classifier generative adversarial network (ACGAN) to classify these images. Research results indicate that using two-dimensional feature images as input is more suitable for the recognition task of CNN. The fault diagnosis method proposed in this article fully utilizes the three-channel encoded images of the Gramian angular difference field (GADF) and designs a residual network model with an embedded frequency channel attention module. Combining the advantages of both, can fully exploit fault information and improve diagnostic accuracy. Firstly, the signal is transformed into a two-dimensional image by using GADF encoding. Secondly, it is fed into the Fca-ResNet model for fault classification. Finally, through validation with bearing data from the Western Reserve University, it shows that this method performs best, compared with different models with a sufficient amount of balanced samples. Even under imbalanced data samples, this model still demonstrates excellent generalization capabilities. ## GRAMIAN ANGULAR DIFFERENCE FIELD GADF is an encoding method that can transform one-dimensional signals into RGB threechannel images (Wang & Oates, 2015). This encoding method generates three channels during the data preprocessing stage, aligning with the characteristic of Fca-ResNet’s Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 2/18 emphasis on channel information. When performing fault diagnosis, we aim to extract more useful information. GADF, while generating two-dimensional images, also preserves temporal information. Therefore, we choose to use GADF as the encoding method. Normalize the one-dimensional data by rearranging the measured values X ¼ fx1; x2; …; xng within the interval ½�1; 1�. <u>ð</u> <u>Þ</u> �x� <sup>i</sup> 1 <sup>¼</sup> <sup><u>xi �</u></sup> <sup><u>maxðXÞ þ ðxi �</u></sup> <sup><u>minðXÞ</u></sup> (1) maxðXÞ � minðXÞ The rearranged time series is denoted as X <sup>�</sup> . The numerical values are encoded as angular cosine and displayed in polar coordinates. ( fi ¼ arccosð�xiÞ; �1 � �xi - 1; �xi 2 X <sup>�</sup> (2) ri ¼ <sup><u>ti</u></sup> N N <sup><u>ti</u></sup> <sup>;</sup> ti 2 N The formula contains a constant N used to regulate the span and ti represents the radius. In order to retain temporal information, the values corresponding to time are distributed at certain angles on the span circle. GADF constructs a new feature representation by calculating the angular differences between different time points in a time series. These angular differences can be used to represent the dynamic changes in the time series data. Mapping these angle differences onto a circle can enable time information to be encoded in a more intuitive way, as the circular structure can effectively represent periodic changes and trends. Consequently, even with reduced data dimensions, GADF can still preserve key dynamic features within the time series. After converting to a polar coordinate system, taking into account the triangular differences between each point, the correlation within different time intervals is represented using the angle perspective method. Therefore, the definition of GADF is as follows. GADF ¼ ½sinðfi � fjÞ� f f f f f f f pf f i f f i f f i f f i f f i f f i ffi (3) - X <sup>�</sup> - X <sup>�</sup> <sup>0</sup> - I � X <sup>�</sup> <sup>2</sup> ¼ qf f i f f i f f i f f i f f i f f i f f I � X <sup>�</sup> <sup>02</sup> In the above equation, I represents a unit row vector, while X <sup>�</sup> and X <sup>�</sup> <sup>0</sup> are two distinct row vectors. Figure 1 (GADF encoding process) illustrates the encoding process of GADF. As we can see that the encoding follows the trend of the time-series signal, moving from the top left to the bottom right. This method allows the changes along the time axis to be naturally mapped onto the encoded representation, thereby facilitating subsequent data analysis and model training. Moreover, it can retain information in the temporal dimension. When the one-dimensional vibration signal fluctuates, the corresponding GADF encoding image will show prominent cross patterns, and the larger the fluctuation amplitude, the more obvious the cross is. Therefore, GADF images can reflect impulsive signals and capture the fault characteristics of the vibration process. Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 3/18 Figure 1 GADF encoding process. Full-size DOI: [10.7717/peerj-cs.1807/fig-1](http://dx.doi.org/10.7717/peerj-cs.1807/fig-1) ## RESIDUAL STRUCTURE The most commonly used method for traditional CNN models to achieve stronger feature extraction capabilities was to increase the depth of the model. However, when the model’s depth reaches a certain level, further increasing the number of layers can lead to a decrease in accuracy, resulting in a phenomenon known as model degradation. The introduction of residual networks has largely addressed this problem (He et al., 2016). By using residual blocks, the depth of the model can reach over 1,000 layers without experiencing model degradation. The basic principle of residual networks is to use a shortcut connection channel between convolutional layers, which allows the effective features extracted from the previous layer to be directly transmitted to the subsequent layers through this channel. This approach prevents the convolutional layers from redundantly extracting the features already captured by the previous layers. After passing through the shortcut channel x, the features obtained from the main channel FðxÞ are fused with the features from the shortcut connection, to gain the output features HðxÞ of the residual unit. HðxÞ ¼ FðxÞ þ x (4) This structure effectively reduces the impact of poorly extracted features from the upper layers on the subsequent convolutional layers, thereby reducing the likelihood of the model getting trapped in local optima during training. The model structure is illustrated in Fig. 2 (Residual connections). ## FREQUENCY CHANNEL ATTENTION MODEL The channel attention model enhances the accuracy of classification tasks by adaptively focusing on useful channel information. The introduction of this model enables neural networks to better comprehend and leverage crucial features within the input data, so as to improve performance across various application domains. Qin, Zhang & Wu (2021) utilized the DCT from the signal processing field and proposed a multi-spectral attention module. This method allows for better aggregation of frequency energy. And the principle of this method aligns with the fundamental concept of the channel attention model. Therefore, incorporating it into the channel attention model is a highly effective attempt. This article uses 2D DCT, and the working principle is briefly explained as below. Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 4/18 Figure 2 Residual connections. Full-size The basic principle of 2D-DCT is defined as follows. DOI: [10.7717/peerj-cs.1807/fig-2](http://dx.doi.org/10.7717/peerj-cs.1807/fig-2) 2 WX�1 j¼0 2 fh <sup>2</sup> ; <sup>d</sup> w <sup>¼</sup> XH�1 i¼0 x <sup>2d</sup> i;j <sup>2d</sup> i;j <sup>cos</sup> <sup>ph</sup> H - - �� <sup>ph</sup> i þ <sup><u>1</u></sup> cos <sup>pw</sup> <sup>ph</sup> i þ <sup><u>1</u></sup> H 2 - - �� <sup>pw</sup> j þ <sup><u>1</u></sup> (5) <sup>pw</sup> j þ <sup><u>1</u></sup> W 2 In the equation, f represents the spectrum of the DCT, x denotes the input, H refers to the height of the feature map, and W represents the width of the feature map. As depicted in Fig. 3 (Fca module), let X represent the input feature map, and C denote the number of channels. Divide the channels into n groups, with each group containing C <sup>0</sup> channels. C <sup>0</sup> ¼ <sup><u>C</u></sup> (6) n In order to simplify the equation, the symbol B is used to represent the basic form of the 2D-DCT in Eq. (6). 2 <sup>i</sup> h <sup>;</sup> ; <sup>j</sup> w <sup>¼ cos</sup> <sup>ph</sup> H 2 B <sup>i</sup> h <sup>;</sup> ; <sup>j</sup> - - �� <sup>ph</sup> i þ <sup><u>1</u></sup> cos <sup>pw</sup> <sup>ph</sup> i þ <sup><u>1</u></sup> H 2 - - �� <sup>pw</sup> j þ <sup><u>1</u></sup> (7) <sup>pw</sup> j þ <sup><u>1</u></sup> W 2 Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 5/18 Figure 3 Fca module. Full-size DOI: [10.7717/peerj-cs.1807/fig-3](http://dx.doi.org/10.7717/peerj-cs.1807/fig-3) The parameter ½ u; v - represents the allocated frequency components for each group, and these parameters are pre-defined. The basic form of the multi-spectral attention module is a C <sup>0</sup> dimensional vector denoted as Freq <sup>i</sup> . Freq <sup>i</sup> ¼ XH�1 h¼0 WX�1 w¼0 X: <sup>i</sup> : <sup>i</sup> ;h;w <sup>Bu</sup> h; <sup>;</sup> w <sup>v</sup> <sup>u</sup> h; <sup>;</sup> w <sup>v</sup> (8) The overall pre-processing vector Freq is formed by concatenating these basic vectors together. �� �� Freq ¼ cat Freq <sup>0</sup> ; Freq <sup>1</sup> ; …; Freq <sup>n�1</sup> (9) The above describes the squeezing operation. It is precisely due to the multi-spectral attention module enables Fca to obtain more comprehensive channel information during the squeezing phase. During the excitation phase, in order to reduce computational complexity, compression is performed through a fully connected layer. After activation by the ReLU function, it is passed through another fully connected layer and activated by the Sigmoid function to obtain the S: S ¼ FexðZ; WÞ ¼ rðgðZ; WÞÞ ¼ rðW2dðW1ZÞÞ (10) In the equation, Fex represents the activation of the Sigmoid function, serving as the excitation operation. W1 denotes the compression through the first fully connected layer. dð�Þ represents the activation by the ReLU function. Lastly, W2 corresponds to the release through the second fully connected layer. The operation Fscaleð�Þ in Fig. 3 multiplies the reassembled S with the original feature matrix groups, to obtain a new set of feature matrix groups. ## CONSTRUCTION OF FCA-RESNET MODEL ARCHITECTURE The base model used in this article is a 34-layer ResNet. Frequency channel attention modules are embedded in the convolutional blocks of the intermediate layers, forming the Fca-ResNet model. The input images are processed into 224 � 224 images in the preprocessing stage. Therefore, in order to obtain a larger receptive field, the first convolutional layer uses a convolutional kernel with the size of 7 � 7. The convolutional Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 6/18 Table 1 Fca-ResNet parameter settings. <u>Layout</u> <u>Feature</u> <u>dimension</u> <u>Hierarchy</u> <u>design</u> Input 224 × 224 × 3 —— Convolutional layer 112 × 112 × 64 7 × 7 × 64, s = 2 Maximum pooling layer 56 × 56 × 64 3 × 3, s = 2 Fca ×1 56 × 56 × 64 3 � 3 � 64 � 3 3 � 3 � 64 � 3 Fca ×2 28 × 28 × 128 3 � 3 � 128 � 4 3 � 3 � 128 � 4 Fca ×3 14 × 14 × 256 3 � 3 � 256 � 6 3 � 3 � 256 � 6 Fca ×4 7 × 7 × 512 3 � 3 � 512 � 3 3 � 3 � 512 � 3 ReLU 7 × 7 × 512 —— Average pooling layer 1 × 1 × 512 7 × 7, s = 1 Fully connected layer 1 × 1 × 1,000 —— <u>Softmax</u> <u>10</u> <u>——</u> kernels in the intermediate layers are set to the size of 3 � 3. After average pooling, the input is passed to fully connected layers for classification, and the results of classification diagnosis are obtained through the Softmax layer. The specific design of model parameters is shown in Table 1. The overall structure of the model is illustrated in Fig. 4. ## EXPERIMENTAL RESULTS AND ANALYSIS Data preprocessing The data used in the experiment was obtained from the Case Western Reserve University (CWRU) (Case Western Reserve University, 2013). Taking the drive-end rolling bearing SKF-6205 as an example, researchers created single-point damages of 0.007, 0.014, and 0.021 in (1 in = 25.4 mm) by electric discharge machining at the locations of inner ring, outer ring (at 3, 6, and 12 o’clock positions), and rolling element respectively. To validate the superiority of the Fca-ResNet model, the experiment divided the load of the motor into four categories (0, 1, 2, 3 hp), while this article selected the condition of 1 hp (approximately 0.735 kw) and a speed of 1,772 r/min; And selected three different fault diameters of three types, namely outer ring (@6, where @6 indicates the fault location at 6 o’clock), inner ring, and rolling element as data samples, as well as one sample of normal state data, 10 categories in total. The number of sampling points of a cycle of the bearing is 400, and 300 data points were selected each time (the points collected within 3/4 cycles) (Tong, Pang & Wei, 2021). The original vibration signals were processed using a sliding window approach with a step size of 150. Using the overlapping sampling method, 400 samples were constructed for each category. These samples were then divided into training and validation sets in accordance with a specific ratio, as shown in Table 2. The specific model training parameters are detailed in Table 3. The transformed fault graphs are illustrated in Fig. 5. Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 7/18 Figure 4 Fca-ResNet model architecture. Full-size Table 2 Fault samples. DOI: [10.7717/peerj-cs.1807/fig-4](http://dx.doi.org/10.7717/peerj-cs.1807/fig-4) <u>Fault</u> <u>type</u> <u>Label</u> <u>Fault</u> <u>diameter/in</u> <u>Training</u> <u>set</u> <u>Validation</u> <u>set</u> Normal 0 - 360 40 Inner ring failure 1 0.007 360 40 Rolling element failure 2 0.007 360 40 Outer ring failure (@6) 3 0.007 360 40 Inner ring failure 4 0.014 360 40 Rolling element failure 5 0.014 360 40 Outer ring failure (@6) 6 0.014 360 40 Inner ring failure 7 0.021 360 40 Rolling element failure 8 0.021 360 40 Outer ring failure (@6) 9 0.021 360 40 <u>Total</u> <u>–</u> <u>–</u> <u>3,600</u> <u>400</u> Table 3 Model training parameters. <u>Batch size</u> <u>Loss</u> <u>function</u> <u>Optimizer</u> <u>Learning</u> <u>rate</u> <u>Epoch</u> <u>32</u> <u>CrossEntropy</u> <u>loss</u> <u>Adam</u> <u>0.001</u> <u>300</u> Analysis of experimental results To validate the reliability of our model, we conducted experiments using a partitioned dataset. The comparative experimental models selected were ResNet, ResNet with SE attention modules, group-processed ResNeXt, and traditional CNN models such as GoogleNet and AlexNet. Figure 6 clearly demonstrates the validation accuracy and training loss variations of different models during the training process. As shown in the graph, ResNet, SE-ResNet, and ResNeXt achieved the highest validation accuracies of 98.5%, 98.8%, 98.5%, 98%, and 96.5% respectively. The fluctuation stability was average and the accuracy was not high. While, after 50 rounds of training, Fca-ResNet model Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 8/18 Figure 5 (A–J) Coding diagram of different fault types. (A) 0.007 in inner ring failure; (B) 0.014 in inner ring failure; (C) 0.021 in inner ring failure; (D) 0.007 in rolling element failure; (E) 0.014 in rolling element failure; (F) 0.021 in rolling element failure; (G) 0.007 in outer ring failure; (H) 0.014 in outer ring failure; (I) 0.021 in outer ring failure; (J) normal. Full-size DOI: [10.7717/peerj-cs.1807/fig-5](http://dx.doi.org/10.7717/peerj-cs.1807/fig-5) Figure 6 Validation accuracy and training loss of different models. Full-size DOI: [10.7717/peerj-cs.1807/fig-6](http://dx.doi.org/10.7717/peerj-cs.1807/fig-6) tended to stabilize, reaching a peak validation accuracy of 99.3%, and exhibited the lowest training loss compared to other models in the first 100 rounds. This indicates that our model possesses strong robustness and feature extraction capabilities, far superior to the other models considered. In Fig. 7, we compared the classification results of multiple models on the validation set. By observing the confusion matrix, we can gain a visual understanding of how the models perform in different categories. Each node on the horizontal and vertical axes of the confusion matrix represents a different fault type, and the values on the diagonal indicate the degree of correspondence between the correct labels and predicted labels. From Fig. 7A, it can be observed that Fca-ResNet only misclassified three images, that is, two labels of the 4th class (0.014 in inner ring failure) were misclassified as the 5th class (0.014 in rolling element failure) and the 6th class (0.014 in outer ring failure (@6)) labels; and Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 9/18 Figure 7 (A–F) Confusion matrices for different models’ classification. (A) Confusion matrix for FcaResNet classification; (B) confusion matrix for SE-ResNet classification; (C) confusion matrix for ResNeXt classification; (D) confusion matrix for ResNet classification; (E) confusion matrix for GoogleNet classification; (F) confusion matrix for AlexNet classification. Full-size DOI: [10.7717/peerj-cs.1807/fig-7](http://dx.doi.org/10.7717/peerj-cs.1807/fig-7) Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 10/18 Figure 8 Distribution of high-dimensional feature information in the original dataset. Full-size DOI: [10.7717/peerj-cs.1807/fig-8](http://dx.doi.org/10.7717/peerj-cs.1807/fig-8) one label of the 9th class (0.014 in outer ring failure (@6)) was misclassified as the 7th class (0.021 in inner ring failure) label. However, all other data achieved a perfect classification result. Although several other models achieved full classification for multiple fault types, their individual performance for certain faults was inferior to that of this model. Visualization experiment results of different models This section will validate the effectiveness of various model architectures for different features’ extraction, using the t-distributed stochastic neighbor embedding (t-SNE) method to visualize the training set in the dataset. The main purpose of t-SNE is to reduce the feature space. Similar categories are modeled by nearby points, dissimilar categories are modeled by high-probability distant points, to simplify a high-dimensional dataset into a low-dimensional feature map that retains a large amount of original information, and clustering to visualize the distribution of different features. Figure 8 illustrates the distribution of high-dimensional feature information in the original dataset, while Fig. 9 presents the visual clustering effects of the fully connected layers in different models. From Fig. 8, it can be observed that the high-dimensional feature information of the original dataset is scattered throughout the sample space, and each type of feature information is randomly mixed together. Figure 9A shows that the clustering effect of the last fully connected layer in Fca-ResNet almost completely separates the data samples of different fault types, and directly clustered samples of the same type. Only a few categories are incorrectly clustered into other categories. The visualization of features aligns perfectly with the confusion matrix. From Figs. 9B–9F, it can be observed that SE-ResNet and ResNeXt exhibit significant overlap between two fault classes, while ResNet, GoogleNet, and AlexNet demonstrate substantial overlap among several fault classes. Though all these models achieve the accuracy of over 96.5%, their dimensionality Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 11/18 Figure 9 t-SNE dimensionality reduction visualization. (A) Clustering diagram of the fully connected layer for Fca-ResNet; (B) clustering diagram of the fully connected layer for SE-ResNet; (C) clustering diagram of the fully connected layer for ResNeXt; (D) clustering diagram of the fully connected layer for ResNet; (E) clustering diagram of the fully connected layer for GoogleNet; (F) clustering diagram of the fully connected layer for AlexNet. Full-size DOI: [10.7717/peerj-cs.1807/fig-9](http://dx.doi.org/10.7717/peerj-cs.1807/fig-9) Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 12/18 Table 4 Evaluation metrics for different network models. <u>Method</u> <u>Accuracy</u> <u>%</u> <u>Precision</u> <u>%</u> <u>(average)</u> <u>Recall</u> <u>% (average)</u> <u>F1</u> <u>score</u> Proposed method 99.3 99.28 99.25 99.26 SE-ResNet 98.8 98.78 98.75 98.76 ResNeXt 98.5 98.56 98.5 98.53 ResNet 98.5 98.63 98.5 98.56 GoogleNet 98 98.05 98 98.02 AlexNet 96.5 96.63 96.5 96.6 LSTM-1DCNN 98.46 98.21 98.45 98.06 MTF-ResNet 98.52 98.27 98.56 97.7 <u>ResNet-LSTM</u> <u>99.1</u> <u>99.02</u> <u>98.98</u> <u>99.10</u> reduction effect is notably inferior to that of Fca-ResNet. This suggests that Fca-ResNet possesses very powerful feature extraction and classification capabilities. Comparison of different diagnostic algorithms In order to demonstrate the effectiveness of the proposed method in this article, a comparison was conducted with other methods, using the highest accuracy as a benchmark for validation. Chen, Zhang & Gao (2021) directly input vibration signals into 1D-CNN and LSTM for training and classification; Yan, Kan & Luo (2022) transformed the vibration signals into two-dimensional images using the Markov transition field (MTF), and then utilized ResNet for training and classification; Wang & Cheng (2021) combined ResNet with LSTM to enable ResNet to capture the long-term correlations in time series, and achieved better classification performance. In the field of deep learning fault diagnosis, the evaluation of models is very important. Only by selecting an evaluation method that matches, can problems in the algorithm model or training process be quickly discovered. Standard measures such as accuracy (Ac), precision (Pr), recall (Re), and F1 score (Eqs. (11)–(14)) are widely employed to evaluate model performance. The comparative results are as shown in Table 4. <u>TP þ TN</u> Ac ¼ (11) TP þ FP þ TN þ FN <u>TP</u> Pr ¼ (12) TP þ FP <u>TP</u> Re ¼ (13) TP þ FN F1 ¼ <sup><u>2Pr �</u></sup> <sup><u>Re</u></sup> (14) Pr þ Re The above equation defines TP (true positives) and TN (true negatives) as the counts of correct predictions within the i categories, whereas FP (false positives) and FN (false negatives) represent the counts of incorrect predictions within the same i categories. Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 13/18 Table 5 Imbalanced data sample division. <u>Fault</u> <u>type</u> <u>Fault</u> <u>diameter</u> <u>(in)</u> <u>Label</u> <u>Datasets</u> <u>A1</u> <u>Datasets</u> <u>A2</u> <u>Datasets</u> <u>A3</u> Inner ring failure 0.007 1 100 300 200 Inner ring failure 0.014 2 100 300 200 Inner ring failure 0.021 3 100 300 200 Rolling element failure 0.007 4 200 100 300 Rolling element failure 0.014 5 200 100 300 Rolling element failure 0.021 6 200 100 300 Outer ring failure 0.007 7 300 200 100 Outer ring failure 0.014 8 300 200 100 Outer ring failure 0.021 9 300 200 100 <u>Normal</u> <u>0</u> <u>0</u> <u>400</u> <u>400</u> <u>400</u> Figure 10 Validation accuracy and loss curves for different datasets. (A) Validation accuracy and loss curves for the A1 dataset; (B) validation accuracy and loss curves for the A2 dataset; (C) validation accuracy and loss curves for the A3 dataset. Full-size DOI: [10.7717/peerj-cs.1807/fig-10](http://dx.doi.org/10.7717/peerj-cs.1807/fig-10) Verification of model generalization under imbalanced data sets In this section, we continue to consider the case of 1 hp with a speed of 1,772 r/min. Taking into account the imbalance in the dataset that can occur in practical conditions, we divide Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 14/18 Figure 11 Confusion matrices for different datasets. (A) Confusion matrix for the A1 dataset; (B) confusion matrix for the A2 dataset; (C) confusion matrix for the A3 dataset. Full-size DOI: [10.7717/peerj-cs.1807/fig-11](http://dx.doi.org/10.7717/peerj-cs.1807/fig-11) the imbalanced datasets in different proportions. Datasets A1, A2, and A3 all simulate scenarios where there are adequate healthy samples and imbalanced faulty samples in actual working conditions. Imbalanced data samples are divided into training and validation sets, according to the ratio of 9:1, the division results are shown in Table 5. Set the same training parameters according to Table 3, and set the number of training epochs to 200 for data validation under unbalanced datasets. The validation accuracy and loss curves are shown in Fig. 10. From the figure, it can be observed that, across different imbalanced datasets, the model’s validation accuracy and loss tend to converge after approximately 30–50 training epochs. The highest validation accuracies are as follows: A1: 98.6%, A2: 98.2%, A3: 99.1%, with an average validation accuracy of 98.6%. The lowest training loss is consistently 0.03, achieving convergence effect, which demonstrates that this model exhibits a certain level of stability when dealing with imbalanced datasets. Figure 11 displays the confusion matrices for different datasets. It can be observed that there are some misclassifications in individual categories for each class, while the rest Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 15/18 achieve full classification. Therefore, this model exhibits good generalization performance under various data conditions. ## CONCLUSION (1) Our research employs the GADF coding technique for data preprocessing, which innovatively transforms one-dimensional fault data into a two-dimensional RGB image with three-channel encoding. This approach not only preserves the temporal characteristics of fault signals but also bolsters feature extraction and recognition in concert with the frequency channel attention module. (2) Embedding the frequency channel attention module with discrete cosine transform on the basis of residual network to construct the Fca-ResNet model. This sophisticated model excels at extracting fault information, significantly enhancing the precision of fault diagnosis. The model’s robustness is demonstrated by its remarkable 99.3% accuracy rate in diagnosing 1 hp load bearing faults using the rolling bearing data from CWRU. (3) Comparative analysis with other models underlines the superior accuracy and swift convergence of the Fca-ResNet model. Through analysis methods such as t-SNE dimensionality reduction, confusion matrix, and model evaluation indicators, the strong classification performance of the model has been proven. (4) In simulating several situations of unbalanced data sets in actual working conditions, the average accuracy of this model is 98.6%, which shows that this model still has good generalization in unbalanced samples. ## PROSPECTS Future research in rolling bearing fault diagnosis will focus on improving the interpretability of deep learning models and combining multiple techniques to enhance model performance and reliability for better application of rolling bearing fault diagnosis in industrial production practice. (1) To direct attention towards developing more interpretable deep learning models, such as using gradient or activation visualization methods to explain the model’s decisionmaking process. Such techniques can help engineers understand the key features and rationale of the model in the diagnostic process, to enhance trust and reliability. (2) To leverage transfer learning and incremental learning to improve the model’s generalization ability, enabling it to better adapt to different types and scales of rolling bearing fault data, so as to enhance the model’s robustness and reliability. (3) To employ self-supervised learning and weakly supervised learning methods to reduce reliance on a large amount of labeled data, improve the model’s performance in data-scarce scenarios, and enhance the model’s interpretability. (4) To establish a comprehensive model trustworthiness measurement system, including metrics and methods for model performance evaluation, error analysis, and model robustness assessment, to help engineers better understand and assess the reliability and applicability of the model in rolling bearing fault diagnosis. Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 16/18 ## ADDITIONAL INFORMATION AND DECLARATIONS Funding This work was sponsored by the Marine Power Research & Development (KY10300210082). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Grant Disclosures The following grant information was disclosed by the authors: Marine Power Research & Development: KY10300210082. Competing Interests The authors declare that they have no competing interests. Author Contributions - Lunpan Wei conceived and designed the experiments, performed the experiments, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. - Xiuyan Peng conceived and designed the experiments, performed the experiments, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. - Yunpeng Cao analyzed the data, performed the computation work, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft. Data Availability The following information was supplied regarding data availability: The data is available at GitHub and Zenodo: - [https://github.com/qwerty123456000000/data.git.](https://github.com/qwerty123456000000/data.git) - qwerty123456000000. (2023). qwerty123456000000/data: data [Data set]. Zenodo. [https://doi.org/10.5281/zenodo.10416722.](https://doi.org/10.5281/zenodo.10416722) Supplemental Information [Supplemental information for this article can be found online at http://dx.doi.org/10.7717/](http://dx.doi.org/10.7717/peerj-cs.1807#supplemental-information) [peerj-cs.1807#supplemental-information.](http://dx.doi.org/10.7717/peerj-cs.1807#supplemental-information) ## REFERENCES Case Western Reserve University. 2013. Bearing Data Center. Case Cleveland: Western Reserve University. Che CC, Wang HW, Ni XM, Lin RG. 2021. Rolling rolling bearing fault diagnosis based on deep residual shrinkage network. Journal of Beijing University of Aeronautics and Astronautics 47(7):1399–1406 DOI [10.13700/j.bh.1001-5965.2020.0194.](http://dx.doi.org/10.13700/j.bh.1001-5965.2020.0194) Chen XH, Zhang BK, Gao D. 2021. Bearing fault diagnosis base on multiscale CNN and LSTM model. Journal of Intelligent Manufacturing 32(1):971–987 DOI [10.1007/s10845-020-01600-2.](http://dx.doi.org/10.1007/s10845-020-01600-2) He KM, Zhang X, Ren S, Sun J. 2016. Deep residual learning for image recognition. In: IEEE Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 770–778. Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 17/18 Kong ZY, Wang HR. 2021. Fault classification of rolling bearings based on InceptionResNet model. Electronic Measurement Technology 44(5):5562 DOI [10.19651/j.cnki.emt.2105654.](http://dx.doi.org/10.19651/j.cnki.emt.2105654) Li QT, Wang XQ, Xie F. 2023. Research on rolling rolling bearing fault diagnosis method based on attention mechanism. Rolling Bearings 114(10):84–92 DOI [10.19533/j.issn1000-3762.2023.10.013.](http://dx.doi.org/10.19533/j.issn1000-3762.2023.10.013) Qin Z, Zhang P, Wu F. 2021. FcaNet. Frequency channel attention networks. In: IEEE/CVF International Conference on Computer Vision. Piscataway: IEEE, 763–772. Qiu GE, Tao HF, Cheng L. 2022. Fault diagnosis of rolling bearings based on self-attentive mechanism ACGAN. Information and Control 51(6):753–762 DOI [10.13976/j.cnki.xk.2022.2002.](http://dx.doi.org/10.13976/j.cnki.xk.2022.2002) Tong Y, Pang XY, Wei ZH. 2021. GADFCNN-based rolling bearing fault diagnosis method. Vibration and Shock 40(5):247253–247260 DOI [10.13465/j.cnki.jvs.2021.05.032.](http://dx.doi.org/10.13465/j.cnki.jvs.2021.05.032) Wang YM, Cheng L. 2021. A combination of residual and long-short-term memory networks for bearing fault diagnosis based on timeseries model analysis. Measurement Science and Technology 32(1):5904 DOI [10.1088/1361-6501/abaa1e.](http://dx.doi.org/10.1088/1361-6501/abaa1e) Wang Y, Huang S, Dai J, Tang J. 2020. A novel bearing fault diagnosis methodology based on SVD and one dimensional convolutional neural network. Shock and Vibration 2020:17 DOI [10.1155/2020/1850286.](http://dx.doi.org/10.1155/2020/1850286) Wang Z, Oates T. 2015. Imaging timeseries to improve classification and imputation. In: Proceedings of the 24th International Joint Conference on Artificial Intelligence (IJCAI). Buenos Aires, Argentina, 3939–3945. Xie YS, Wang GQ, Shi NF. 2023. MSCNBiLSTM rolling rolling bearing fault diagnosis method incorporating attention mechanism. Rolling Bearings 31(11):22–30 DOI [10.16526/j.cnki.11-4762/tp.2023.11.004.](http://dx.doi.org/10.16526/j.cnki.11-4762/tp.2023.11.004) Yan J, Kan J, Luo H. 2022. Rolling bearing fault diagnosis based on Markov transition field and residual network. Sensors 22(10):3936 DOI [10.3390/s22103936.](http://dx.doi.org/10.3390/s22103936) Zhang X, Miao Q, Liu Z, He Z. 2019. An adaptive stochastic resonance method based on grey wolf optimizer algorithm and its application to machinery fault diagnosis. ISA Transactions 71(Pt 2):206–214 DOI [10.1016/j.isatra.2017.08.009.](http://dx.doi.org/10.1016/j.isatra.2017.08.009) Zhu P, Dong SJ, Li Y, Pei XW, Pan XJ. 2022. Fault diagnosis of rolling rolling bearings under time-varying speed based on residual attention mechanism and subdomain adaption. Vibration and Shock 41(22):293–300 DOI [10.13465/j.cnki.jvs.2022.22.036.](http://dx.doi.org/10.13465/j.cnki.jvs.2022.22.036) Wei et al (2024) PeerJ Comput Sci DOI [10 7717/peerj](http://dx.doi.org/10.7717/peerj-cs.1807) cs 1807 18/18

섹션 본문 59문단 · 24,325자

(제목 없음)

1Fault diagnosis of rolling bearings is a critical task, and in previous research, convolutional neural networks (CNN) have been used to process vibration signals and perform fault diagnosis.However, traditional CNN models have certain limitations in terms of accuracy.To improve accuracy, we propose a method that combines the Gramian angular difference field (GADF) with residual networks (ResNet) and embeds frequency channel attention module (Fca) in the ResNet to diagnose rolling bearing fault.Firstly, we used GADF to convert the signals into RGB three-channel fault images during data preprocessing.Secondly, to further enhance the performance of the model, on the foundation of the ResNet we embedded the frequency channel attention module with discrete cosine transform (DCT) to form Fca, to effectively explores the channel information of fault images and identifies the corresponding fault characteristics.Finally, the experiment validated that the accuracy of the new model reaches 99.3% and the accuracy reaches 98.6% even under an unbalanced data set, which significantly improves the accuracy of fault diagnosis and the generalization of the model.

INTRODUCTION

2Rolling bearings, as typical components of rotating machinery, play an indispensable role in practical equipment and production.Because they normally work under complex working conditions such as load variations, they are prone to faults, resulting in costly downtime and catastrophic consequences.To ensure the normal operation of mechanical equipment, real-time monitoring (Zhang et al., 2019) of vibration signals generated by rotating machinery is necessary.

3CNN is a type of deep learning network that plays a crucial role in the field of fault diagnosis by utilizing its unique convolutional layers to extract distinct features.In the study conducted by Chen, Zhang & Gao (2021), they employed a one-dimensional convolutional neural network (1D-CNN) and a long short-term memory network (LSTM) to process signals, and achieved excellent classification results through training and classification tasks.Wang et al. (2020) first de-noised the signal, then input the processed signal into CNN for automatic feature extraction, and finally performed feature partitioning and classification.However, these methods have limitations in solely deepening the network layers for feature extraction, as they may suffer from degradation issues.To address this, the ResNet was introduced.Kong & Wang (2021) introduced the residual structure into the Inception network to form a parallel structure, to alleviate the degradation problem caused by network deepening, which fully demonstrated the performance of fault classification.Che et al. (2021) proposed a novel approach that utilizes a deep residual contraction network to handle multiple faults and long-term sequences of vibration signals in rolling bearing systems.This method demonstrates excellent robustness in dealing with noisy samples and maintains a high accuracy in fault diagnosis.

4The emergence of attention mechanisms further enhances the feature extraction capability of residual networks.Xie, Wang & Shi (2023) proposed a diagnostic method that integrates multi-scale convolution and attention mechanisms, which can maintain a high diagnostic accuracy even under variable load and noise interference conditions.Li, Wang & Xie (2023) introduced the Convolutional Block Attention Module (CBAM) into residual networks, of which the result shows that this method has a simple structure, easy to implement, and can effectively extract features.However, such methods only utilize the original signals as inputs, which may lead to incomplete feature extraction.Therefore, Zhu et al. (2022) proposed a novel approach where they transformed a series of fault signals into two-dimensional gray-scale images using wavelet transform.And then they feed these images into a residual attention network for classification.This network can automatically learn and highlight the key features in image input, so as to improve the accuracy classification.On the other side, Qiu, Tao & Cheng (2022) employed a different approach.First, they transformed the vibration signals of rolling bearings into two-dimensional frequency domain feature gray-scale images using fast Fourier transform.Then they utilized an auxiliary classifier generative adversarial network (ACGAN) to classify these images.Research results indicate that using two-dimensional feature images as input is more suitable for the recognition task of CNN.

5The fault diagnosis method proposed in this article fully utilizes the three-channel encoded images of the Gramian angular difference field (GADF) and designs a residual network model with an embedded frequency channel attention module.Combining the advantages of both, can fully exploit fault information and improve diagnostic accuracy.Firstly, the signal is transformed into a two-dimensional image by using GADF encoding.Secondly, it is fed into the Fca-ResNet model for fault classification.Finally, through validation with bearing data from the Western Reserve University, it shows that this method performs best, compared with different models with a sufficient amount of balanced samples.Even under imbalanced data samples, this model still demonstrates excellent generalization capabilities.

GRAMIAN ANGULAR DIFFERENCE FIELD

6GADF is an encoding method that can transform one-dimensional signals into RGB threechannel images (Wang & Oates, 2015).This encoding method generates three channels during the data preprocessing stage, aligning with the characteristic of Fca-ResNet's emphasis on channel information.When performing fault diagnosis, we aim to extract more useful information.GADF, while generating two-dimensional images, also preserves temporal information.Therefore, we choose to use GADF as the encoding method.

7Normalize the one-dimensional data by rearranging the measured values X ¼ fx 1 ; x 2 ; …; x n g within the interval ½À1; 1.

8The rearranged time series is denoted as

9The numerical values are encoded as angular cosine and displayed in polar coordinates.

10The formula contains a constant N used to regulate the span and t i represents the radius.In order to retain temporal information, the values corresponding to time are distributed at certain angles on the span circle.GADF constructs a new feature representation by calculating the angular differences between different time points in a time series.These angular differences can be used to represent the dynamic changes in the time series data.Mapping these angle differences onto a circle can enable time information to be encoded in a more intuitive way, as the circular structure can effectively represent periodic changes and trends.Consequently, even with reduced data dimensions, GADF can still preserve key dynamic features within the time series.

11After converting to a polar coordinate system, taking into account the triangular differences between each point, the correlation within different time intervals is represented using the angle perspective method.Therefore, the definition of GADF is as follows.

12In the above equation, I represents a unit row vector, while X and X 0 are two distinct row vectors.Figure 1 (GADF encoding process) illustrates the encoding process of GADF.As we can see that the encoding follows the trend of the time-series signal, moving from the top left to the bottom right.This method allows the changes along the time axis to be naturally mapped onto the encoded representation, thereby facilitating subsequent data analysis and model training.Moreover, it can retain information in the temporal dimension.When the one-dimensional vibration signal fluctuates, the corresponding GADF encoding image will show prominent cross patterns, and the larger the fluctuation amplitude, the more obvious the cross is.Therefore, GADF images can reflect impulsive signals and capture the fault characteristics of the vibration process.

RESIDUAL STRUCTURE

13The most commonly used method for traditional CNN models to achieve stronger feature extraction capabilities was to increase the depth of the model.However, when the model's depth reaches a certain level, further increasing the number of layers can lead to a decrease in accuracy, resulting in a phenomenon known as model degradation.The introduction of residual networks has largely addressed this problem (He et al., 2016).By using residual blocks, the depth of the model can reach over 1,000 layers without experiencing model degradation.

14The basic principle of residual networks is to use a shortcut connection channel between convolutional layers, which allows the effective features extracted from the previous layer to be directly transmitted to the subsequent layers through this channel.This approach prevents the convolutional layers from redundantly extracting the features already captured by the previous layers.After passing through the shortcut channel x, the features obtained from the main channel FðxÞ are fused with the features from the shortcut connection, to gain the output features HðxÞ of the residual unit.

15This structure effectively reduces the impact of poorly extracted features from the upper layers on the subsequent convolutional layers, thereby reducing the likelihood of the model getting trapped in local optima during training.The model structure is illustrated in Fig. 2 (Residual connections).

FREQUENCY CHANNEL ATTENTION MODEL

16The channel attention model enhances the accuracy of classification tasks by adaptively focusing on useful channel information.The introduction of this model enables neural networks to better comprehend and leverage crucial features within the input data, so as to improve performance across various application domains.Qin, Zhang & Wu (2021) utilized the DCT from the signal processing field and proposed a multi-spectral attention module.This method allows for better aggregation of frequency energy.And the principle of this method aligns with the fundamental concept of the channel attention model.Therefore, incorporating it into the channel attention model is a highly effective attempt.This article uses 2D DCT, and the working principle is briefly explained as below.The basic principle of 2D-DCT is defined as follows.

17In the equation, f represents the spectrum of the DCT, x denotes the input, H refers to the height of the feature map, and W represents the width of the feature map.

18As depicted in Fig. 3 (Fca module), let X represent the input feature map, and C denote the number of channels.Divide the channels into n groups, with each group containing C 0 channels.

19In order to simplify the equation, the symbol B is used to represent the basic form of the 2D-DCT in Eq. (6).The parameter u; v ½ represents the allocated frequency components for each group, and these parameters are pre-defined.The basic form of the multi-spectral attention module is a C 0 dimensional vector denoted as Freq i .

20The overall pre-processing vector Freq is formed by concatenating these basic vectors together.

21The above describes the squeezing operation.It is precisely due to the multi-spectral attention module enables Fca to obtain more comprehensive channel information during the squeezing phase.

22During the excitation phase, in order to reduce computational complexity, compression is performed through a fully connected layer.After activation by the ReLU function, it is passed through another fully connected layer and activated by the Sigmoid function to obtain the S:

23In the equation, F ex represents the activation of the Sigmoid function, serving as the excitation operation.W 1 denotes the compression through the first fully connected layer.dðÁÞ represents the activation by the ReLU function.Lastly, W 2 corresponds to the release through the second fully connected layer.

24The operation F scale ðÁÞ in Fig. 3 multiplies the reassembled S with the original feature matrix groups, to obtain a new set of feature matrix groups.

CONSTRUCTION OF FCA-RESNET MODEL ARCHITECTURE

25The base model used in this article is a 34-layer ResNet.Frequency channel attention modules are embedded in the convolutional blocks of the intermediate layers, forming the Fca-ResNet model.The input images are processed into 224 Â 224 images in the preprocessing stage.Therefore, in order to obtain a larger receptive field, the first convolutional layer uses a convolutional kernel with the size of 7 Â 7. The convolutional

Data preprocessing

26The data used in the experiment was obtained from the Case Western Reserve University (CWRU) (Case Western Reserve University, 2013).Taking the drive-end rolling bearing SKF-6205 as an example, researchers created single-point damages of 0.007, 0.014, and 0.021 in (1 in = 25.4 mm) by electric discharge machining at the locations of inner ring, outer ring (at 3, 6, and 12 o'clock positions), and rolling element respectively.

27To validate the superiority of the Fca-ResNet model, the experiment divided the load of the motor into four categories (0, 1, 2, 3 hp), while this article selected the condition of 1 hp (approximately 0.735 kw) and a speed of 1,772 r/min; And selected three different fault diameters of three types, namely outer ring (@6, where @6 indicates the fault location at 6 o'clock), inner ring, and rolling element as data samples, as well as one sample of normal state data, 10 categories in total.The number of sampling points of a cycle of the bearing is 400, and 300 data points were selected each time (the points collected within 3/4 cycles) (Tong, Pang & Wei, 2021).The original vibration signals were processed using a sliding window approach with a step size of 150.Using the overlapping sampling method, 400 samples were constructed for each category.These samples were then divided into training and validation sets in accordance with a specific ratio, as shown in Table 2.The specific model training parameters are detailed in Table 3.The transformed fault graphs are illustrated in Fig. 5.

Analysis of experimental results

28To validate the reliability of our model, we conducted experiments using a partitioned dataset.The comparative experimental models selected were ResNet, ResNet with SE attention modules, group-processed ResNeXt, and traditional CNN models such as GoogleNet and AlexNet.Figure 6 In Fig. 7, we compared the classification results of multiple models on the validation set.By observing the confusion matrix, we can gain a visual understanding of how the models perform in different categories.Each node on the horizontal and vertical axes of the confusion matrix represents a different fault type, and the values on the diagonal indicate the degree of correspondence between the correct labels and predicted labels.From Fig. 7A, it can be observed that Fca-ResNet only misclassified three images, that is, two labels of the 4th class (0.014 in inner ring failure) were misclassified as the 5th class (0.014 in rolling element failure) and the 6th class (0.014 in outer ring failure (@6)) labels; and

Visualization experiment results of different models

29This section will validate the effectiveness of various model architectures for different features' extraction, using the t-distributed stochastic neighbor embedding (t-SNE) method to visualize the training set in the dataset.The main purpose of t-SNE is to reduce the feature space.Similar categories are modeled by nearby points, dissimilar categories are modeled by high-probability distant points, to simplify a high-dimensional dataset into a low-dimensional feature map that retains a large amount of original information, and clustering to visualize the distribution of different features.Figure 8 illustrates the distribution of high-dimensional feature information in the original dataset, while Fig. 9 presents the visual clustering effects of the fully connected layers in different models.From Fig. 8, it can be observed that the high-dimensional feature information of the original dataset is scattered throughout the sample space, and each type of feature information is randomly mixed together.Figure 9A shows that the clustering effect of the last fully connected layer in Fca-ResNet almost completely separates the data samples of different fault types, and directly clustered samples of the same type.Only a few categories are incorrectly clustered into other categories.The visualization of features aligns perfectly with the confusion matrix.From Figs. 9B-9F, it can be observed that SE-ResNet and ResNeXt exhibit significant overlap between two fault classes, while ResNet, GoogleNet, and AlexNet demonstrate substantial overlap among several fault classes.Though all these models achieve the accuracy of over 96.5%, their dimensionality reduction effect is notably inferior to that of Fca-ResNet.This suggests that Fca-ResNet possesses very powerful feature extraction and classification capabilities.

Comparison of different diagnostic algorithms

30In order to demonstrate the effectiveness of the proposed method in this article, a comparison was conducted with other methods, using the highest accuracy as a benchmark for validation.Chen In the field of deep learning fault diagnosis, the evaluation of models is very important.Only by selecting an evaluation method that matches, can problems in the algorithm model or training process be quickly discovered.Standard measures such as accuracy (Ac), precision (Pr), recall (Re), and F1 score (Eqs.( 11)-( 14)) are widely employed to evaluate model performance.The comparative results are as shown in Table 4.

31The above equation defines TP (true positives) and TN (true negatives) as the counts of correct predictions within the i categories, whereas FP (false positives) and FN (false negatives) represent the counts of incorrect predictions within the same i categories.Verification of model generalization under imbalanced data sets

32In this section, we continue to consider the case of 1 hp with a speed of 1,772 r/min.Taking into account the imbalance in the dataset that can occur in practical conditions, we divide 5. Set the same training parameters according to Table 3, and set the number of training epochs to 200 for data validation under unbalanced datasets.The validation accuracy and loss curves are shown in Fig. 10.From the figure, it can be observed that, across different imbalanced datasets, the model's validation accuracy and loss tend to converge after approximately 30-50 training epochs.The highest validation accuracies are as follows: A1: 98.6%, A2: 98.2%, A3: 99.1%, with an average validation accuracy of 98.6%.The lowest training loss is consistently 0.03, achieving convergence effect, which demonstrates that this model exhibits a certain level of stability when dealing with imbalanced datasets.

33Figure 11 displays the confusion matrices for different datasets.It can be observed that there are some misclassifications in individual categories for each class, while the rest achieve full classification.Therefore, this model exhibits good generalization performance under various data conditions.

CONCLUSION

34(1) Our research employs the GADF coding technique for data preprocessing, which innovatively transforms one-dimensional fault data into a two-dimensional RGB image with three-channel encoding.This approach not only preserves the temporal characteristics of fault signals but also bolsters feature extraction and recognition in concert with the frequency channel attention module.

35(2) Embedding the frequency channel attention module with discrete cosine transform on the basis of residual network to construct the Fca-ResNet model.This sophisticated model excels at extracting fault information, significantly enhancing the precision of fault diagnosis.The model's robustness is demonstrated by its remarkable 99.3% accuracy rate in diagnosing 1 hp load bearing faults using the rolling bearing data from CWRU.

36(3) Comparative analysis with other models underlines the superior accuracy and swift convergence of the Fca-ResNet model.Through analysis methods such as t-SNE dimensionality reduction, confusion matrix, and model evaluation indicators, the strong classification performance of the model has been proven.

37(4) In simulating several situations of unbalanced data sets in actual working conditions, the average accuracy of this model is 98.6%, which shows that this model still has good generalization in unbalanced samples.

PROSPECTS

38Future research in rolling bearing fault diagnosis will focus on improving the interpretability of deep learning models and combining multiple techniques to enhance model performance and reliability for better application of rolling bearing fault diagnosis in industrial production practice.

39(1) To direct attention towards developing more interpretable deep learning models, such as using gradient or activation visualization methods to explain the model's decisionmaking process.Such techniques can help engineers understand the key features and rationale of the model in the diagnostic process, to enhance trust and reliability.

40(2) To leverage transfer learning and incremental learning to improve the model's generalization ability, enabling it to better adapt to different types and scales of rolling bearing fault data, so as to enhance the model's robustness and reliability.

41(3) To employ self-supervised learning and weakly supervised learning methods to reduce reliance on a large amount of labeled data, improve the model's performance in data-scarce scenarios, and enhance the model's interpretability.

42(4) To establish a comprehensive model trustworthiness measurement system, including metrics and methods for model performance evaluation, error analysis, and model robustness assessment, to help engineers better understand and assess the reliability and applicability of the model in rolling bearing fault diagnosis.

Figure 1

43Figure 1 GADF encoding process.Full-size  DOI: 10.7717/peerj-cs.1807/fig-1

Figure 2

44Figure 2 Residual connections.Full-size  DOI: 10.7717/peerj-cs.1807/fig-2

Figure 3

45Figure 3 Fca module.Full-size  DOI: 10.7717/peerj-cs.1807/fig-3

Figure 4

46Figure 4 Fca-ResNet model architecture.Full-size  DOI: 10.7717/peerj-cs.1807/fig-4

47tended to stabilize, reaching a peak validation accuracy of 99.3%, and exhibited the lowest training loss compared to other models in the first 100 rounds.This indicates that our model possesses strong robustness and feature extraction capabilities, far superior to the other models considered.

Figure 5 (Figure 6

48Figure 5 (A-J) Coding diagram of different fault types.(A) 0.007 in inner ring failure; (B) 0.014 in inner ring failure; (C) 0.021 in inner ring failure; (D) 0.007 in rolling element failure; (E) 0.014 in rolling element failure; (F) 0.021 in rolling element failure; (G) 0.007 in outer ring failure; (H) 0.014 in outer ring failure; (I) 0.021 in outer ring failure; (J) normal.Full-size  DOI: 10.7717/peerj-cs.1807/fig-5

Figure 7 (

49Figure 7 (A-F) Confusion matrices for different models' classification.(A) Confusion matrix for Fca-ResNet classification; (B) confusion matrix for SE-ResNet classification; (C) confusion matrix for ResNeXt classification; (D) confusion matrix for ResNet classification; (E) confusion matrix for Goo-gleNet classification; (F) confusion matrix for AlexNet classification.Full-size  DOI: 10.7717/peerj-cs.1807/fig-7

Figure 8

50Figure 8 Distribution of high-dimensional feature information in the original dataset.Full-size  DOI: 10.7717/peerj-cs.1807/fig-8

51, Zhang & Gao (2021) directly input vibration signals into 1D-CNN and LSTM for training and classification; Yan, Kan & Luo (2022) transformed the vibration signals into two-dimensional images using the Markov transition field (MTF), and then utilized ResNet for training and classification; Wang & Cheng (2021) combined ResNet with LSTM to enable ResNet to capture the long-term correlations in time series, and achieved better classification performance.

Figure 10

52Figure 10 Validation accuracy and loss curves for different datasets.(A) Validation accuracy and loss curves for the A1 dataset; (B) validation accuracy and loss curves for the A2 dataset; (C) validation accuracy and loss curves for the A3 dataset.Full-size  DOI: 10.7717/peerj-cs.1807/fig-10

Figure 11

53Figure 11 Confusion matrices for different datasets.(A) Confusion matrix for the A1 dataset; (B) confusion matrix for the A2 dataset; (C) confusion matrix for the A3 dataset.Full-size  DOI: 10.7717/peerj-cs.1807/fig-11

Table 1

54Fca-ResNet parameter settings.

Table 2

55Fault samples.

56Wei et al. (2024), PeerJ Comput.Sci., DOI 10.7717/peerj-cs.1807

Table 4

57Evaluation metrics for different network models.

58Wei et al. (2024), PeerJ Comput.Sci., DOI 10.7717/peerj-cs.180713/18

Table 5

59Imbalanced data sample division.

참고문헌 8건

  1. Imaging Time-Series to Improve Classification and Imputation arXiv (Cornell University) · Cornell University · 2015
  2. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  3. An adaptive stochastic resonance method based on grey wolf optimizer algorithm and its application to machinery fault diagnosis ISA Transactions · Elsevier BV · 2017 10.1016/j.isatra.2017.08.009
  4. A Novel Bearing Fault Diagnosis Methodology Based on SVD and One-Dimensional Convolutional Neural Network Shock and Vibration · Hindawi Publishing Corporation · 2020 10.1155/2020/1850286
  5. Bearing fault diagnosis base on multi-scale CNN and LSTM model Journal of Intelligent Manufacturing · Springer Science+Business Media · 2020 10.1007/s10845-020-01600-2
  6. A combination of residual and long–short-term memory networks for bearing fault diagnosis based on time-series model analysis Measurement Science and Technology · IOP Publishing · 2020 10.1088/1361-6501/abaa1e
  7. FcaNet: Frequency Channel Attention Networks arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2012.11879
  8. Rolling Bearing Fault Diagnosis Based on Markov Transition Field and Residual Network Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22103936